Download coderank/dumps/project_search-model-thor.jsonl from paintedwolfcode/bialy-dataset: direct link, hf CLI and curl.
- Browser
- Download file 407 kB
-
https://huggingface.co/datasets/paintedwolfcode/bialy-dataset/resolve/main/coderank/dumps/project_search-model-thor.jsonl
- Command line
-
hf download hf://datasets/paintedwolfcode/bialy-dataset/coderank/dumps/project_search-model-thor.jsonl
-
curl -L -o project_search-model-thor.jsonl https://huggingface.co/datasets/paintedwolfcode/bialy-dataset/resolve/main/coderank/dumps/project_search-model-thor.jsonl
407 kB
| {"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: lib/thor/base.rb\nLine 94: opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check, relations)","file":"lib/thor/base.rb","line":94,"lexical":0.39999999999999997,"target":false},{"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","line":32,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 351: def no_relations","file":"spec/fixtures/script.thor","line":351,"lexical":0.39999999999999997,"target":true},{"text":"File: spec/thor_spec.rb\nLine 691: MyOptionScript.command_help(shell, \"no_relations\")","file":"spec/thor_spec.rb","line":691,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: 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","line":47,"lexical":0.65,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 40: # Checks if the destination file already exists.","file":"lib/thor/actions/empty_directory.rb","line":40,"lexical":0.44999999999999996,"target":false},{"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","line":130,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 144: @content ||= File.read(destination)","file":"lib/thor/actions/inject_into_file.rb","line":144,"lexical":0.65,"target":true},{"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","line":8,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 68: file = File.join(destination_root, \"commands\", \"doc\", \"README\")","file":"spec/actions/directory_spec.rb","line":68,"lexical":0.44999999999999996,"target":false},{"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","line":175,"lexical":0.44999999999999996,"target":false},{"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","line":182,"lexical":0.44999999999999996,"target":false},{"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","line":185,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 137: expect(File.read(File.join(destination_root, \"command.thor\"))).to match(/^OMG/)","file":"spec/actions/file_manipulation_spec.rb","line":137,"lexical":0.65,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 266: expect(File.read(File.join(destination_root, \"doc/config.rb\"))).to match(/^OMG/)","file":"spec/actions/file_manipulation_spec.rb","line":266,"lexical":0.65,"target":false},{"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","line":273,"lexical":0.65,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 305: File.join(destination_root, \"doc\", \"README\")","file":"spec/actions/file_manipulation_spec.rb","line":305,"lexical":0.65,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 32: File.join(destination_root, \"doc/README\")","file":"spec/actions/inject_into_file_spec.rb","line":32,"lexical":0.65,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 170: expect(File.read(File.join(destination_root, \"doc/README.zh\"))).to eq(\"__start__\\n中文\\n说明\\n__end__\\n\")","file":"spec/actions/inject_into_file_spec.rb","line":170,"lexical":0.65,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 319: expect(File.read(File.join(destination_root, \"doc/README.zh\"))).to eq(\"__start__\\n中文\\n说明\\n__end__\\n\")","file":"spec/actions/inject_into_file_spec.rb","line":319,"lexical":0.65,"target":false}]} | |
| {"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: lib/thor/actions.rb\nLine 4: require_relative \"actions/empty_directory\"","file":"lib/thor/actions.rb","line":4,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/create_file.rb\nLine 1: require_relative \"empty_directory\"","file":"lib/thor/actions/create_file.rb","line":1,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/create_file.rb\nLine 32: class CreateFile < EmptyDirectory #:nodoc:","file":"lib/thor/actions/create_file.rb","line":32,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/directory.rb\nLine 1: require_relative \"empty_directory\"","file":"lib/thor/actions/directory.rb","line":1,"lexical":0.6000000000000001,"target":false},{"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","line":8,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/directory.rb\nLine 14: # components/.empty_directory","file":"lib/thor/actions/directory.rb","line":14,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/directory.rb\nLine 55: class Directory < EmptyDirectory #:nodoc:","file":"lib/thor/actions/directory.rb","line":55,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/directory.rb\nLine 65: base.empty_directory given_destination, config","file":"lib/thor/actions/directory.rb","line":65,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/directory.rb\nLine 87: when /\\.empty_directory$/","file":"lib/thor/actions/directory.rb","line":87,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/directory.rb\nLine 90: base.empty_directory(dirname, config)","file":"lib/thor/actions/directory.rb","line":90,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 3: # Creates an empty directory.","file":"lib/thor/actions/empty_directory.rb","line":3,"lexical":0.6000000000000001,"target":true},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 11: # empty_directory \"doc\"","file":"lib/thor/actions/empty_directory.rb","line":11,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 13: def empty_directory(destination, config = {})","file":"lib/thor/actions/empty_directory.rb","line":13,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 14: action EmptyDirectory.new(self, destination, config)","file":"lib/thor/actions/empty_directory.rb","line":14,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 23: class EmptyDirectory #:nodoc:","file":"lib/thor/actions/empty_directory.rb","line":23,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 78: # empty_directory \"baz\"","file":"lib/thor/actions/empty_directory.rb","line":78,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 1: require_relative \"empty_directory\"","file":"lib/thor/actions/inject_into_file.rb","line":1,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 66: class InjectIntoFile < EmptyDirectory #:nodoc:","file":"lib/thor/actions/inject_into_file.rb","line":66,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 113: it \"does not copy .empty_directory files\" do","file":"spec/actions/directory_spec.rb","line":113,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 115: file = File.join(destination_root, \"docs\", \"components\", \".empty_directory\")","file":"spec/actions/directory_spec.rb","line":115,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 4: describe Thor::Actions::EmptyDirectory do","file":"spec/actions/empty_directory_spec.rb","line":4,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 9: def empty_directory(destination, options = {})","file":"spec/actions/empty_directory_spec.rb","line":9,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 10: @action = Thor::Actions::EmptyDirectory.new(base, destination)","file":"spec/actions/empty_directory_spec.rb","line":10,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 27: expect(empty_directory(\"doc\").destination).to eq(File.join(destination_root, \"doc\"))","file":"spec/actions/empty_directory_spec.rb","line":27,"lexical":0.6000000000000001,"target":false},{"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","line":32,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 40: expect(empty_directory(\"contents\").relative_destination).to eq(\"doc/contents\")","file":"spec/actions/empty_directory_spec.rb","line":40,"lexical":0.6000000000000001,"target":false},{"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","line":48,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 55: empty_directory(\"doc\")","file":"spec/actions/empty_directory_spec.rb","line":55,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 61: empty_directory(\"doc\")","file":"spec/actions/empty_directory_spec.rb","line":61,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 67: empty_directory(\"ghost\")","file":"spec/actions/empty_directory_spec.rb","line":67,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 74: empty_directory(\"doc\")","file":"spec/actions/empty_directory_spec.rb","line":74,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 83: empty_directory(\"doc\")","file":"spec/actions/empty_directory_spec.rb","line":83,"lexical":0.6000000000000001,"target":false}]} | |
| {"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/base.rb\nLine 280: \"the non-required argument #{argument.human_name.inspect}.\"","file":"lib/thor/base.rb","line":280,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/group.rb\nLine 186: human_name = value.respond_to?(:classify) ? value.classify : value","file":"lib/thor/group.rb","line":186,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/group.rb\nLine 188: group_options[human_name] ||= []","file":"lib/thor/group.rb","line":188,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/group.rb\nLine 189: group_options[human_name] += klass.class_options.values.select do |class_option|","file":"lib/thor/group.rb","line":189,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/argument.rb\nLine 6: alias_method :human_name, :name","file":"lib/thor/parser/argument.rb","line":6,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/argument.rb\nLine 76: human_name.upcase","file":"lib/thor/parser/argument.rb","line":76,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/arguments.rb\nLine 33: @assigns[argument.human_name] = argument.default.dup","file":"lib/thor/parser/arguments.rb","line":33,"lexical":0.39999999999999997,"target":false},{"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","line":46,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/arguments.rb\nLine 189: o.respond_to?(:switch_name) ? o.switch_name : o.human_name","file":"lib/thor/parser/arguments.rb","line":189,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/option.rb\nLine 79: def human_name","file":"lib/thor/parser/option.rb","line":79,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/parser/option.rb\nLine 80: @human_name ||= dasherized? ? undasherize(name) : name","file":"lib/thor/parser/option.rb","line":80,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/option.rb\nLine 93: sample << \", [#{dasherize('no-' + human_name)}], [#{dasherize('skip-' + human_name)}]\"","file":"lib/thor/parser/option.rb","line":93,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 178: # Option names changes to swith name or human name","file":"lib/thor/parser/options.rb","line":178,"lexical":0.39999999999999997,"target":false},{"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","line":182,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 191: (@assigns[option.human_name] ||= {}).merge!(result)","file":"lib/thor/parser/options.rb","line":191,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 193: (@assigns[option.human_name] ||= []) << result","file":"lib/thor/parser/options.rb","line":193,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 195: @assigns[option.human_name] = result","file":"lib/thor/parser/options.rb","line":195,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 281: # Return the default if there is one, else the human name","file":"lib/thor/parser/options.rb","line":281,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 282: return option.lazy_default || option.default || option.human_name","file":"lib/thor/parser/options.rb","line":282,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 122: it \"returns the human name\" do","file":"spec/parser/option_spec.rb","line":122,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 123: expect(option(\"foo\").human_name).to eq(\"foo\")","file":"spec/parser/option_spec.rb","line":123,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 124: expect(option(\"--foo\").human_name).to eq(\"foo\")","file":"spec/parser/option_spec.rb","line":124,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 434: it \"accepts inputs in the human name format\" do","file":"spec/parser/options_spec.rb","line":434,"lexical":0.39999999999999997,"target":false}]} | |
| {"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.rb\nLine 346: # Extend check unknown options to accept a hash of conditions.","file":"lib/thor.rb","line":346,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 350: def check_unknown_options!(options = {})","file":"lib/thor.rb","line":350,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 351: @check_unknown_options ||= {}","file":"lib/thor.rb","line":351,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 354: @check_unknown_options[key] = Array(value)","file":"lib/thor.rb","line":354,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 356: @check_unknown_options.delete(key)","file":"lib/thor.rb","line":356,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 359: @check_unknown_options","file":"lib/thor.rb","line":359,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 362: # Overwrite check_unknown_options? to take subcommands and options into account.","file":"lib/thor.rb","line":362,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 363: def check_unknown_options?(config) #:nodoc:","file":"lib/thor.rb","line":363,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 364: options = check_unknown_options","file":"lib/thor.rb","line":364,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 398: # check_unknown_options! :except => :exec","file":"lib/thor.rb","line":398,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 94: opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check, relations)","file":"lib/thor/base.rb","line":94,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 101: opts.check_unknown! if self.class.check_unknown_options?(config)","file":"lib/thor/base.rb","line":101,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 167: # If you want to raise an error for unknown options, call check_unknown_options!","file":"lib/thor/base.rb","line":167,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 169: def check_unknown_options!","file":"lib/thor/base.rb","line":169,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 170: @check_unknown_options = true","file":"lib/thor/base.rb","line":170,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 173: def check_unknown_options #:nodoc:","file":"lib/thor/base.rb","line":173,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 174: @check_unknown_options ||= from_superclass(:check_unknown_options, false)","file":"lib/thor/base.rb","line":174,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 177: def check_unknown_options?(config) #:nodoc:","file":"lib/thor/base.rb","line":177,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 178: !!check_unknown_options","file":"lib/thor/base.rb","line":178,"lexical":0.44999999999999996,"target":false},{"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","line":32,"lexical":0.65,"target":false},{"text":"File: spec/base_spec.rb\nLine 333: it \"checks unknown options\" do","file":"spec/base_spec.rb","line":333,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/base_spec.rb\nLine 339: it \"checks unknown options except specified\" do","file":"spec/base_spec.rb","line":339,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 2: check_unknown_options! :except => :with_optional","file":"spec/fixtures/script.thor","line":2,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 222: check_unknown_options!","file":"spec/fixtures/script.thor","line":222,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 165: context \"along with check_unknown_options!\" do","file":"spec/thor_spec.rb","line":165,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 169: check_unknown_options!","file":"spec/thor_spec.rb","line":169,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 220: describe \"#check_unknown_options!\" do","file":"spec/thor_spec.rb","line":220,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 224: check_unknown_options!","file":"spec/thor_spec.rb","line":224,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/actions/directory.rb\nLine 83: file_destination = File.join(given_destination, file_source.gsub(source, \".\"))","file":"lib/thor/actions/directory.rb","line":83,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/directory.rb\nLine 84: file_destination.gsub!(\"/./\", \"/\")","file":"lib/thor/actions/directory.rb","line":84,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/directory.rb\nLine 88: dirname = File.dirname(file_destination).gsub(%r{/\\.$}, \"\")","file":"lib/thor/actions/directory.rb","line":88,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 104: filename.gsub(/%(.*?)%/) do |initial_string|","file":"lib/thor/actions/empty_directory.rb","line":104,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 257: # gsub_file! 'app/controllers/application_controller.rb', /#\\s*(filter_parameter_logging :password)/, '\\1'","file":"lib/thor/actions/file_manipulation.rb","line":257,"lexical":0.6000000000000001,"target":true},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 259: # gsub_file! 'README', /rake/, :green do |match|","file":"lib/thor/actions/file_manipulation.rb","line":259,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 263: def gsub_file!(path, flag, *args, &block)","file":"lib/thor/actions/file_manipulation.rb","line":263,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 271: actually_gsub_file(path, flag, args, true, &block) unless options[:pretend]","file":"lib/thor/actions/file_manipulation.rb","line":271,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 285: # gsub_file 'app/controllers/application_controller.rb', /#\\s*(filter_parameter_logging :password)/, '\\1'","file":"lib/thor/actions/file_manipulation.rb","line":285,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 287: # gsub_file 'README', /rake/, :green do |match|","file":"lib/thor/actions/file_manipulation.rb","line":287,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 291: def gsub_file(path, flag, *args, &block)","file":"lib/thor/actions/file_manipulation.rb","line":291,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 299: actually_gsub_file(path, flag, args, false, &block) unless options[:pretend]","file":"lib/thor/actions/file_manipulation.rb","line":299,"lexical":0.6000000000000001,"target":false},{"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","line":317,"lexical":0.6000000000000001,"target":false},{"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","line":336,"lexical":0.6000000000000001,"target":false},{"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","line":385,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 8: # the file are not changed. Different from gsub_file, this method is reversible.","file":"lib/thor/actions/inject_into_file.rb","line":8,"lexical":0.6000000000000001,"target":false},{"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","line":37,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 341: describe \"#gsub_file!\" do","file":"spec/actions/file_manipulation_spec.rb","line":341,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 344: action :gsub_file!, \"doc/README\", \"__start__\", \"START\"","file":"spec/actions/file_manipulation_spec.rb","line":344,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 350: action :gsub_file!, \"doc/README\", \"__start__\", \"START\"","file":"spec/actions/file_manipulation_spec.rb","line":350,"lexical":0.6000000000000001,"target":false},{"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","line":355,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 360: expect(action(:gsub_file!, \"doc/README\", \"__start__\", \"START\")).to eq(\" gsub doc/README\\n\")","file":"spec/actions/file_manipulation_spec.rb","line":360,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 364: expect(action(:gsub_file!, file, \"__\", verbose: false) { |match| match * 2 }).to be_empty","file":"spec/actions/file_manipulation_spec.rb","line":364,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 369: action :gsub_file!, \"doc/README\", \"___start___\", \"START\"","file":"spec/actions/file_manipulation_spec.rb","line":369,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 380: action :gsub_file!, \"doc/README\", \"__start__\", \"START\"","file":"spec/actions/file_manipulation_spec.rb","line":380,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 386: action :gsub_file!, \"doc/README\", \"__start__\", \"START\"","file":"spec/actions/file_manipulation_spec.rb","line":386,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 392: action(:gsub_file!, \"doc/README\", \"__start__\") { |match| match.gsub(\"__\", \"\").upcase }","file":"spec/actions/file_manipulation_spec.rb","line":392,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 398: expect(action(:gsub_file!, \"doc/README\", \"__start__\", \"START\")).to be_empty","file":"spec/actions/file_manipulation_spec.rb","line":398,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 403: expect(action(:gsub_file!, file, \"__\", verbose: false) { |match| match * 2 }).to be_empty","file":"spec/actions/file_manipulation_spec.rb","line":403,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 410: action :gsub_file!, \"doc/README\", \"__start__\", \"START\", force: true","file":"spec/actions/file_manipulation_spec.rb","line":410,"lexical":0.6000000000000001,"target":false},{"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","line":416,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 422: action(:gsub_file!, \"doc/README\", \"__start__\", force: true) { |match| match.gsub(\"__\", \"\").upcase }","file":"spec/actions/file_manipulation_spec.rb","line":422,"lexical":0.6000000000000001,"target":false}]} | |
| {"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: lib/thor.rb\nLine 383: # Stop parsing of options as soon as an unknown option or a regular","file":"lib/thor.rb","line":383,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 397: # stop_on_unknown_option! :exec","file":"lib/thor.rb","line":397,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 420: def stop_on_unknown_option!(*command_names)","file":"lib/thor.rb","line":420,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 421: @stop_on_unknown_option = stop_on_unknown_option | command_names","file":"lib/thor.rb","line":421,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 424: def stop_on_unknown_option?(command) #:nodoc:","file":"lib/thor.rb","line":424,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 425: command && stop_on_unknown_option.include?(command.name.to_sym)","file":"lib/thor.rb","line":425,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 473: def stop_on_unknown_option #:nodoc:","file":"lib/thor.rb","line":473,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 474: @stop_on_unknown_option ||= []","file":"lib/thor.rb","line":474,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 518: if stop_on_unknown_option?(command) && !args.empty?","file":"lib/thor.rb","line":518,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 79: stop_on_unknown = self.class.stop_on_unknown_option? current_command","file":"lib/thor/base.rb","line":79,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 94: opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check, relations)","file":"lib/thor/base.rb","line":94,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 202: def stop_on_unknown_option?(command_name) #:nodoc:","file":"lib/thor/base.rb","line":202,"lexical":0.44999999999999996,"target":false},{"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","line":32,"lexical":0.65,"target":false},{"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","line":13,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 233: it \"stops parsing on unknown option\" do","file":"spec/parser/options_spec.rb","line":233,"lexical":0.65,"target":false},{"text":"File: spec/thor_spec.rb\nLine 92: describe \"#stop_on_unknown_option!\" do","file":"spec/thor_spec.rb","line":92,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 97: stop_on_unknown_option! :exec","file":"spec/thor_spec.rb","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 140: stop_on_unknown_option! :foo, :bar","file":"spec/thor_spec.rb","line":140,"lexical":0.44999999999999996,"target":false},{"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","line":143,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 144: expect(klass.stop_on_unknown_option?(double(name: \"bar\"))).to be true","file":"spec/thor_spec.rb","line":144,"lexical":0.44999999999999996,"target":false},{"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","line":145,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 151: stop_on_unknown_option! :foo","file":"spec/thor_spec.rb","line":151,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 152: stop_on_unknown_option! :bar","file":"spec/thor_spec.rb","line":152,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 155: expect(klass.stop_on_unknown_option?(double(name: \"foo\"))).to be true","file":"spec/thor_spec.rb","line":155,"lexical":0.44999999999999996,"target":false},{"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","line":156,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 157: expect(klass.stop_on_unknown_option?(double(name: \"baz\"))).to be false","file":"spec/thor_spec.rb","line":157,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 170: stop_on_unknown_option! :exec","file":"spec/thor_spec.rb","line":170,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions/inject_into_file_spec.rb\nLine 20: capture(:stdout) { invoker.insert_into_file(*args, &block) }","file":"spec/actions/inject_into_file_spec.rb","line":20,"lexical":0.44999999999999996,"target":true},{"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","line":24,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 28: capture(:stdout) { revoker.insert_into_file(*args, &block) }","file":"spec/actions/inject_into_file_spec.rb","line":28,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor.rb\nLine 582: \"no_commands{} block. Invoked from #{caller_line.inspect}.\"","file":"lib/thor.rb","line":582,"lexical":0.44999999999999996,"target":false},{"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","line":4,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/group.rb\nLine 241: instance.invoke_command(all_commands[command])","file":"lib/thor/group.rb","line":241,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/invocation.rb\nLine 132: # Invoke all commands for the current instance.","file":"lib/thor/invocation.rb","line":132,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/invocation.rb\nLine 134: self.class.all_commands.map { |_, command| invoke_command(command) }","file":"lib/thor/invocation.rb","line":134,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/group_spec.rb\nLine 12: it \"invokes all the commands under the Thor group\" do","file":"spec/group_spec.rb","line":12,"lexical":0.44999999999999996,"target":false},{"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","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 78: it \"invokes a Thor::Group and all of its commands\" do","file":"spec/invocation_spec.rb","line":78,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions/create_file_spec.rb\nLine 22: capture(:stdout) { @action.revoke! }","file":"spec/actions/create_file_spec.rb","line":22,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/actions/create_link_spec.rb\nLine 36: capture(:stdout) { action.revoke! }","file":"spec/actions/create_link_spec.rb","line":36,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 24: capture(:stdout) { revoker.directory(*args, &block) }","file":"spec/actions/directory_spec.rb","line":24,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 18: capture(:stdout) { @action.revoke! }","file":"spec/actions/empty_directory_spec.rb","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 28: capture(:stdout) { revoker.insert_into_file(*args, &block) }","file":"spec/actions/inject_into_file_spec.rb","line":28,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/base.rb\nLine 615: raise UndefinedCommandError.new(command, all_commands.keys, (namespace if has_namespace))","file":"lib/thor/base.rb","line":615,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/error.rb\nLine 24: class UndefinedCommandError < Error","file":"lib/thor/error.rb","line":24,"lexical":0.65,"target":false},{"text":"File: lib/thor/error.rb\nLine 55: UndefinedTaskError = UndefinedCommandError","file":"lib/thor/error.rb","line":55,"lexical":0.65,"target":false},{"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","line":308,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/base_spec.rb\nLine 317: end.to raise_error(Thor::UndefinedCommandError, 'Could not find command \"what\" in \"my_script\" namespace.')","file":"spec/base_spec.rb","line":317,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 94: it \"raises Thor::UndefinedCommandError if the command can't be found\" do","file":"spec/invocation_spec.rb","line":94,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 97: end.to raise_error(Thor::UndefinedCommandError)","file":"spec/invocation_spec.rb","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 100: it \"raises Thor::UndefinedCommandError if the command can't be found even if all commands were already executed\" do","file":"spec/invocation_spec.rb","line":100,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 106: end.to raise_error(Thor::UndefinedCommandError)","file":"spec/invocation_spec.rb","line":106,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 642: end.to raise_error(Thor::UndefinedCommandError, 'Could not find command \"unknown\" in \"my_script\" namespace.')","file":"spec/thor_spec.rb","line":642,"lexical":0.44999999999999996,"target":false}]} | |
| {"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.rb\nLine 383: # Stop parsing of options as soon as an unknown option or a regular","file":"lib/thor.rb","line":383,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor.rb\nLine 397: # stop_on_unknown_option! :exec","file":"lib/thor.rb","line":397,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 420: def stop_on_unknown_option!(*command_names)","file":"lib/thor.rb","line":420,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 421: @stop_on_unknown_option = stop_on_unknown_option | command_names","file":"lib/thor.rb","line":421,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 424: def stop_on_unknown_option?(command) #:nodoc:","file":"lib/thor.rb","line":424,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 425: command && stop_on_unknown_option.include?(command.name.to_sym)","file":"lib/thor.rb","line":425,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 473: def stop_on_unknown_option #:nodoc:","file":"lib/thor.rb","line":473,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 474: @stop_on_unknown_option ||= []","file":"lib/thor.rb","line":474,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 518: if stop_on_unknown_option?(command) && !args.empty?","file":"lib/thor.rb","line":518,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 79: stop_on_unknown = self.class.stop_on_unknown_option? current_command","file":"lib/thor/base.rb","line":79,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 94: opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check, relations)","file":"lib/thor/base.rb","line":94,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 202: def stop_on_unknown_option?(command_name) #:nodoc:","file":"lib/thor/base.rb","line":202,"lexical":0.44999999999999996,"target":false},{"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","line":32,"lexical":0.65,"target":false},{"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","line":13,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 233: it \"stops parsing on unknown option\" do","file":"spec/parser/options_spec.rb","line":233,"lexical":0.65,"target":false},{"text":"File: spec/thor_spec.rb\nLine 92: describe \"#stop_on_unknown_option!\" do","file":"spec/thor_spec.rb","line":92,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 97: stop_on_unknown_option! :exec","file":"spec/thor_spec.rb","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 140: stop_on_unknown_option! :foo, :bar","file":"spec/thor_spec.rb","line":140,"lexical":0.44999999999999996,"target":false},{"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","line":143,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 144: expect(klass.stop_on_unknown_option?(double(name: \"bar\"))).to be true","file":"spec/thor_spec.rb","line":144,"lexical":0.44999999999999996,"target":false},{"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","line":145,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 151: stop_on_unknown_option! :foo","file":"spec/thor_spec.rb","line":151,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 152: stop_on_unknown_option! :bar","file":"spec/thor_spec.rb","line":152,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 155: expect(klass.stop_on_unknown_option?(double(name: \"foo\"))).to be true","file":"spec/thor_spec.rb","line":155,"lexical":0.44999999999999996,"target":false},{"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","line":156,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 157: expect(klass.stop_on_unknown_option?(double(name: \"baz\"))).to be false","file":"spec/thor_spec.rb","line":157,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 170: stop_on_unknown_option! :exec","file":"spec/thor_spec.rb","line":170,"lexical":0.44999999999999996,"target":false}]} | |
| {"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.rb\nLine 710: # Print all subcommands (from registered Thor subclasses)","file":"lib/thor.rb","line":710,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor","file":"spec/fixtures/subcommand.thor","line":3,"lexical":0.65,"target":false},{"text":"File: spec/register_spec.rb\nLine 85: class SubcommandWithDefault < Thor","file":"spec/register_spec.rb","line":85,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/subcommand_spec.rb\nLine 5: it \"maps a given subcommand to another Thor subclass\" do","file":"spec/subcommand_spec.rb","line":5,"lexical":0.65,"target":false}]} | |
| {"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.rb\nLine 710: # Print all subcommands (from registered Thor subclasses)","file":"lib/thor.rb","line":710,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/subcommand.thor\nLine 3: class Subcommand < Thor","file":"spec/fixtures/subcommand.thor","line":3,"lexical":0.65,"target":false},{"text":"File: spec/register_spec.rb\nLine 85: class SubcommandWithDefault < Thor","file":"spec/register_spec.rb","line":85,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/subcommand_spec.rb\nLine 5: it \"maps a given subcommand to another Thor subclass\" do","file":"spec/subcommand_spec.rb","line":5,"lexical":0.65,"target":false}]} | |
| {"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: spec/actions/create_file_spec.rb\nLine 18: capture(:stdout) { @action.invoke! }","file":"spec/actions/create_file_spec.rb","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/create_link_spec.rb\nLine 32: capture(:stdout) { action.invoke! }","file":"spec/actions/create_link_spec.rb","line":32,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/actions/directory_spec.rb\nLine 20: capture(:stdout) { invoker.directory(*args, &block) }","file":"spec/actions/directory_spec.rb","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 14: capture(:stdout) { @action.invoke! }","file":"spec/actions/empty_directory_spec.rb","line":14,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 20: capture(:stdout) { invoker.insert_into_file(*args, &block) }","file":"spec/actions/inject_into_file_spec.rb","line":20,"lexical":0.44999999999999996,"target":false},{"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","line":24,"lexical":0.44999999999999996,"target":false},{"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","line":12,"lexical":0.44999999999999996,"target":false},{"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","line":16,"lexical":0.44999999999999996,"target":false},{"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","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/group_spec.rb\nLine 124: expect(capture(:stdout) { G.start(%w(--skip-invoked)) }).not_to match(/invoke/)","file":"spec/group_spec.rb","line":124,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/group_spec.rb\nLine 128: content = capture(:stdout) { G.start(%w(--invoked unknown)) }","file":"spec/group_spec.rb","line":128,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/group_spec.rb\nLine 169: expect(capture(:stdout) { H.start(%w(--no-defined)) }).not_to match(/invoke/)","file":"spec/group_spec.rb","line":169,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 7: expect(capture(:stdout) { A.new.invoke(:two) }).to eq(\"2\\n3\\n\")","file":"spec/invocation_spec.rb","line":7,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 11: expect(capture(:stdout) { A.new.invoke(:one) }).to eq(\"1\\n2\\n3\\n\")","file":"spec/invocation_spec.rb","line":11,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 15: expect(capture(:stdout) { Defined.new.invoke(:one) }).to eq(\"1\\n2\\n3\\n4\\n5\\n\")","file":"spec/invocation_spec.rb","line":15,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 24: content = capture(:stdout) { A.new.invoke(\"b\") }","file":"spec/invocation_spec.rb","line":24,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 30: content = capture(:stdout) { A.new.invoke(B) }","file":"spec/invocation_spec.rb","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 79: expect(capture(:stdout) { A.new.invoke(:c) }).to eq(\"1\\n2\\n3\\n\")","file":"spec/invocation_spec.rb","line":79,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 85: expect(capture(:stdout) { base.invoke(:c) }).to be_empty","file":"spec/invocation_spec.rb","line":85,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 91: expect(capture(:stdout) { base.invoke(\"c:one\") }).to be_empty","file":"spec/invocation_spec.rb","line":91,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/actions.rb\nLine 6: require_relative \"actions/inject_into_file\"","file":"lib/thor/actions.rb","line":6,"lexical":0.44999999999999996,"target":false},{"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","line":7,"lexical":0.65,"target":true},{"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","line":33,"lexical":0.65,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 35: alias_method :inject_into_file!, :insert_into_file!","file":"lib/thor/actions/inject_into_file.rb","line":35,"lexical":0.65,"target":false},{"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","line":37,"lexical":0.65,"target":false},{"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","line":62,"lexical":0.65,"target":false},{"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","line":64,"lexical":0.65,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 66: class InjectIntoFile < EmptyDirectory #:nodoc:","file":"lib/thor/actions/inject_into_file.rb","line":66,"lexical":0.65,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do","file":"spec/actions/inject_into_file_spec.rb","line":5,"lexical":0.65,"target":false}]} | |
| {"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: lib/thor.rb\nLine 346: # Extend check unknown options to accept a hash of conditions.","file":"lib/thor.rb","line":346,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 350: def check_unknown_options!(options = {})","file":"lib/thor.rb","line":350,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 351: @check_unknown_options ||= {}","file":"lib/thor.rb","line":351,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 354: @check_unknown_options[key] = Array(value)","file":"lib/thor.rb","line":354,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 356: @check_unknown_options.delete(key)","file":"lib/thor.rb","line":356,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 359: @check_unknown_options","file":"lib/thor.rb","line":359,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 362: # Overwrite check_unknown_options? to take subcommands and options into account.","file":"lib/thor.rb","line":362,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 363: def check_unknown_options?(config) #:nodoc:","file":"lib/thor.rb","line":363,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 364: options = check_unknown_options","file":"lib/thor.rb","line":364,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 398: # check_unknown_options! :except => :exec","file":"lib/thor.rb","line":398,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 94: opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check, relations)","file":"lib/thor/base.rb","line":94,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 101: opts.check_unknown! if self.class.check_unknown_options?(config)","file":"lib/thor/base.rb","line":101,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 167: # If you want to raise an error for unknown options, call check_unknown_options!","file":"lib/thor/base.rb","line":167,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 169: def check_unknown_options!","file":"lib/thor/base.rb","line":169,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 170: @check_unknown_options = true","file":"lib/thor/base.rb","line":170,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 173: def check_unknown_options #:nodoc:","file":"lib/thor/base.rb","line":173,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 174: @check_unknown_options ||= from_superclass(:check_unknown_options, false)","file":"lib/thor/base.rb","line":174,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 177: def check_unknown_options?(config) #:nodoc:","file":"lib/thor/base.rb","line":177,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 178: !!check_unknown_options","file":"lib/thor/base.rb","line":178,"lexical":0.39999999999999997,"target":false},{"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","line":75,"lexical":0.39999999999999997,"target":false},{"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","line":32,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 168: def check_unknown!","file":"lib/thor/parser/options.rb","line":168,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 172: unknown = to_check.select { |str| str =~ /^--?(?:(?!--).)*$/ }","file":"lib/thor/parser/options.rb","line":172,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/base_spec.rb\nLine 333: it \"checks unknown options\" do","file":"spec/base_spec.rb","line":333,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/base_spec.rb\nLine 339: it \"checks unknown options except specified\" do","file":"spec/base_spec.rb","line":339,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 2: check_unknown_options! :except => :with_optional","file":"spec/fixtures/script.thor","line":2,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 222: check_unknown_options!","file":"spec/fixtures/script.thor","line":222,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 20: def check_unknown!","file":"spec/parser/options_spec.rb","line":20,"lexical":0.39999999999999997,"target":true},{"text":"File: spec/parser/options_spec.rb\nLine 21: @opt.check_unknown!","file":"spec/parser/options_spec.rb","line":21,"lexical":0.39999999999999997,"target":false},{"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","line":123,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 137: check_unknown!","file":"spec/parser/options_spec.rb","line":137,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 165: context \"along with check_unknown_options!\" do","file":"spec/thor_spec.rb","line":165,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/actions/directory_spec.rb\nLine 68: file = File.join(destination_root, \"commands\", \"doc\", \"README\")","file":"spec/actions/directory_spec.rb","line":68,"lexical":0.44999999999999996,"target":false},{"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","line":175,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 305: File.join(destination_root, \"doc\", \"README\")","file":"spec/actions/file_manipulation_spec.rb","line":305,"lexical":0.44999999999999996,"target":false},{"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","line":370,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 32: File.join(destination_root, \"doc/README\")","file":"spec/actions/inject_into_file_spec.rb","line":32,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 170: expect(File.read(File.join(destination_root, \"doc/README.zh\"))).to eq(\"__start__\\n中文\\n说明\\n__end__\\n\")","file":"spec/actions/inject_into_file_spec.rb","line":170,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 198: end.to raise_error(Thor::Error, \"The content of #{destination_root}/doc/README did not change\")","file":"spec/actions/inject_into_file_spec.rb","line":198,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 204: end.to raise_error(Thor::Error, \"The content of #{destination_root}/doc/README did not change\")","file":"spec/actions/inject_into_file_spec.rb","line":204,"lexical":0.44999999999999996,"target":false},{"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","line":241,"lexical":0.44999999999999996,"target":false},{"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","line":257,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 273: end.to raise_error(Thor::Error, \"The content of #{destination_root}/doc/README did not change\")","file":"spec/actions/inject_into_file_spec.rb","line":273,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 319: expect(File.read(File.join(destination_root, \"doc/README.zh\"))).to eq(\"__start__\\n中文\\n说明\\n__end__\\n\")","file":"spec/actions/inject_into_file_spec.rb","line":319,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: 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","line":233,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 235: # inject_into_module \"app/helpers/application_helper.rb\", \"ApplicationHelper\" do","file":"lib/thor/actions/file_manipulation.rb","line":235,"lexical":0.44999999999999996,"target":false},{"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","line":239,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 591: describe \"#inject_into_module\" do","file":"spec/actions/file_manipulation_spec.rb","line":591,"lexical":0.44999999999999996,"target":false},{"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","line":597,"lexical":0.44999999999999996,"target":false},{"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","line":602,"lexical":0.44999999999999996,"target":false},{"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","line":607,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 611: action :inject_into_module, \"application_helper.rb\", \"App\", \" def help; 'help'; end\\n\"","file":"spec/actions/file_manipulation_spec.rb","line":611,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/error.rb\nLine 95: class RequiredArgumentMissingError < InvocationError","file":"lib/thor/error.rb","line":95,"lexical":0.65,"target":true},{"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","line":192,"lexical":0.65,"target":false},{"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","line":57,"lexical":0.65,"target":false},{"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","line":195,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 209: expect { parse(\"--bar\") }.to raise_error(Thor::RequiredArgumentMissingError)","file":"spec/parser/options_spec.rb","line":209,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 213: expect { parse(\"--no-foo\") }.to raise_error(Thor::RequiredArgumentMissingError)","file":"spec/parser/options_spec.rb","line":213,"lexical":0.44999999999999996,"target":false}]} | |
| {"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 60: puts msg","file":"spec/register_spec.rb","line":60,"lexical":0.39999999999999997,"target":true},{"text":"File: spec/register_spec.rb\nLine 79: puts msg","file":"spec/register_spec.rb","line":79,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/line_editor/readline.rb\nLine 16: # rb-readline does not allow Readline.completion_proc= to receive nil.","file":"lib/thor/line_editor/readline.rb","line":16,"lexical":0.6000000000000001,"target":true},{"text":"File: lib/thor/line_editor/readline.rb\nLine 18: ::Readline.completion_proc = complete","file":"lib/thor/line_editor/readline.rb","line":18,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 28: expect(::Readline).to_not receive(:completion_proc=)","file":"spec/line_editor/readline_spec.rb","line":28,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 35: expect(::Readline).to_not receive(:completion_proc=)","file":"spec/line_editor/readline_spec.rb","line":35,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 42: expect(::Readline).to receive(:completion_proc=) do |proc|","file":"spec/line_editor/readline_spec.rb","line":42,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 54: expect(::Readline).to receive(:completion_proc=) do |proc|","file":"spec/line_editor/readline_spec.rb","line":54,"lexical":0.6000000000000001,"target":false}]} | |
| {"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: 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","line":83,"lexical":0.65,"target":true},{"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","line":98,"lexical":0.65,"target":false},{"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","line":122,"lexical":0.65,"target":false},{"text":"File: spec/actions/create_file_spec.rb\nLine 128: it \"skips the file if the file collision menu returns false\" do","file":"spec/actions/create_file_spec.rb","line":128,"lexical":0.65,"target":false}]} | |
| {"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.rb\nLine 248: :method_at_least_one_option_names, *args, &block)","file":"lib/thor.rb","line":248,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 469: def method_at_least_one_option_names #:nodoc:","file":"lib/thor.rb","line":469,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 470: @method_at_least_one_option_names ||= []","file":"lib/thor.rb","line":470,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 495: opts = command.method_at_least_one_option_names unless command.nil?","file":"lib/thor.rb","line":495,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 496: opts += class_at_least_one_option_names","file":"lib/thor.rb","line":496,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 570: at_least_one_option_names: method_at_least_one_option_names}","file":"lib/thor.rb","line":570,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 573: @method_exclusive_option_names, @method_at_least_one_option_names = nil","file":"lib/thor.rb","line":573,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 84: {exclusive_option_names: [], at_least_one_option_names: []}","file":"lib/thor/base.rb","line":84,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 90: self.class.class_at_least_one_option_names.map { |n| relations[:at_least_one_option_names] << n }","file":"lib/thor/base.rb","line":90,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 395: :class_at_least_one_option_names, *args, &block)","file":"lib/thor/base.rb","line":395,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 412: def class_at_least_one_option_names","file":"lib/thor/base.rb","line":412,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 413: @class_at_least_one_option_names ||= from_superclass(:class_at_least_one_option_names, [])","file":"lib/thor/base.rb","line":413,"lexical":0.35,"target":false},{"text":"File: lib/thor/command.rb\nLine 70: def method_at_least_one_option_names #:nodoc:","file":"lib/thor/command.rb","line":70,"lexical":0.35,"target":true},{"text":"File: lib/thor/command.rb\nLine 71: self.options_relation[:at_least_one_option_names] || []","file":"lib/thor/command.rb","line":71,"lexical":0.35,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 35: @at_least_ones = (relations[:at_least_one_option_names] || []).select{|array| !array.empty?}","file":"lib/thor/parser/options.rb","line":35,"lexical":0.35,"target":false},{"text":"File: spec/base_spec.rb\nLine 80: describe \"#class_at_least_one_option_names\" do","file":"spec/base_spec.rb","line":80,"lexical":0.35,"target":false},{"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","line":82,"lexical":0.35,"target":false},{"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","line":83,"lexical":0.35,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 8: at_least_one_option_names: at_least_ones","file":"spec/parser/options_spec.rb","line":8,"lexical":0.35,"target":false},{"text":"File: spec/thor_spec.rb\nLine 450: at_least_ones = cmd.options_relation[:at_least_one_option_names]","file":"spec/thor_spec.rb","line":450,"lexical":0.35,"target":false}]} | |
| {"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.rb\nLine 428: # Disable the check for required options for the given commands.","file":"lib/thor.rb","line":428,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor.rb\nLine 434: def disable_required_check!(*command_names)","file":"lib/thor.rb","line":434,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 435: @disable_required_check = disable_required_check | command_names","file":"lib/thor.rb","line":435,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 438: def disable_required_check?(command) #:nodoc:","file":"lib/thor.rb","line":438,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 439: command && disable_required_check.include?(command.name.to_sym)","file":"lib/thor.rb","line":439,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 477: # help command has the required check disabled by default.","file":"lib/thor.rb","line":477,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 478: def disable_required_check #:nodoc:","file":"lib/thor.rb","line":478,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 479: @disable_required_check ||= [:help]","file":"lib/thor.rb","line":479,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 92: disable_required_check = self.class.disable_required_check? current_command","file":"lib/thor/base.rb","line":92,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 94: opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check, relations)","file":"lib/thor/base.rb","line":94,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 208: def disable_required_check?(command_name) #:nodoc:","file":"lib/thor/base.rb","line":208,"lexical":0.44999999999999996,"target":false},{"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","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 36: @disable_required_check = disable_required_check","file":"lib/thor/parser/options.rb","line":36,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 135: check_requirement! unless @disable_required_check","file":"lib/thor/parser/options.rb","line":135,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 281: describe \"#disable_required_check!\" do","file":"spec/thor_spec.rb","line":281,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 285: disable_required_check! :boring","file":"spec/thor_spec.rb","line":285,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 312: expect(my_script.disable_required_check?(double(name: \"help\"))).to be true","file":"spec/thor_spec.rb","line":312,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 317: disable_required_check! :foo, :bar","file":"spec/thor_spec.rb","line":317,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 321: expect(klass.disable_required_check?(double(name: \"help\"))).to be true","file":"spec/thor_spec.rb","line":321,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 322: expect(klass.disable_required_check?(double(name: \"foo\"))).to be true","file":"spec/thor_spec.rb","line":322,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 323: expect(klass.disable_required_check?(double(name: \"bar\"))).to be true","file":"spec/thor_spec.rb","line":323,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 324: expect(klass.disable_required_check?(double(name: \"baz\"))).to be false","file":"spec/thor_spec.rb","line":324,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 330: disable_required_check! :foo","file":"spec/thor_spec.rb","line":330,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 331: disable_required_check! :bar","file":"spec/thor_spec.rb","line":331,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 335: expect(klass.disable_required_check?(double(name: \"help\"))).to be true","file":"spec/thor_spec.rb","line":335,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 336: expect(klass.disable_required_check?(double(name: \"foo\"))).to be true","file":"spec/thor_spec.rb","line":336,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 337: expect(klass.disable_required_check?(double(name: \"bar\"))).to be true","file":"spec/thor_spec.rb","line":337,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 338: expect(klass.disable_required_check?(double(name: \"baz\"))).to be false","file":"spec/thor_spec.rb","line":338,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/base.rb\nLine 416: # Removes a previous defined argument. If :undefine is given, undefine","file":"lib/thor/base.rb","line":416,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 425: # remove_argument :foo, :bar, :baz, :undefine => true","file":"lib/thor/base.rb","line":425,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 69: remove_argument :first, :second, :undefine => true","file":"spec/fixtures/group.thor","line":69,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/actions.rb\nLine 274: abort if !success && config.fetch(:abort_on_failure, self.class.exit_on_failure?)","file":"lib/thor/actions.rb","line":274,"lexical":0.65,"target":false},{"text":"File: lib/thor/base.rb\nLine 588: exit(false) if exit_on_failure?","file":"lib/thor/base.rb","line":588,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 629: def exit_on_failure?","file":"lib/thor/base.rb","line":629,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 630: Thor.deprecation_warning \"Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `#{self.name}`\"","file":"lib/thor/base.rb","line":630,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/runner.rb\nLine 14: def self.exit_on_failure?","file":"lib/thor/runner.rb","line":14,"lexical":0.44999999999999996,"target":false},{"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","line":316,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 330: expect { action :run, \"false\", abort_on_failure: true, capture: true }.to raise_error(SystemExit)","file":"spec/actions_spec.rb","line":330,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 344: context \"exit_on_failure? is true\" do","file":"spec/actions_spec.rb","line":344,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 346: allow(MyCounter).to receive(:exit_on_failure?).and_return(true)","file":"spec/actions_spec.rb","line":346,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/command.thor","line":4,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/exit_status.thor","line":4,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 5: def self.exit_on_failure?","file":"spec/fixtures/group.thor","line":5,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":4,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 186: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":186,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 224: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":224,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 248: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":248,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?","file":"spec/fixtures/verbose.thor","line":8,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/subcommand_spec.rb\nLine 59: def self.exit_on_failure?","file":"spec/subcommand_spec.rb","line":59,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 177: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":177,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/thor_spec.rb\nLine 231: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":231,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 297: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":297,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 877: context \"without an exit_on_failure? method\" do","file":"spec/thor_spec.rb","line":877,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 887: end.to output(/^Deprecation.*exit_on_failure/).to_stderr","file":"spec/thor_spec.rb","line":887,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions/create_file.rb\nLine 40: # Checks if the content of the file at the destination is identical to the rendered result.","file":"lib/thor/actions/create_file.rb","line":40,"lexical":0.65,"target":false},{"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","line":71,"lexical":0.65,"target":false},{"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","line":30,"lexical":0.44999999999999996,"target":false}]} | |
| {"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.rb\nLine 685: desc \"tree\", \"Print a tree of all available commands\"","file":"lib/thor.rb","line":685,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor.rb\nLine 687: build_command_tree(self.class, \"\")","file":"lib/thor.rb","line":687,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 692: def build_command_tree(klass, indent)","file":"lib/thor.rb","line":692,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 712: build_command_tree(subclass, indent)","file":"lib/thor.rb","line":712,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 16: # Shortcuts for help and tree commands.","file":"lib/thor/base.rb","line":16,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/tree_spec.rb\nLine 26: RSpec.describe \"Thor tree command\" do","file":"spec/tree_spec.rb","line":26,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/tree_spec.rb\nLine 29: it \"prints a tree of all commands\" do","file":"spec/tree_spec.rb","line":29,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/tree_spec.rb\nLine 30: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command1/)","file":"spec/tree_spec.rb","line":30,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/tree_spec.rb\nLine 31: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/├─ command2/)","file":"spec/tree_spec.rb","line":31,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/tree_spec.rb\nLine 33: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/subcommand1/)","file":"spec/tree_spec.rb","line":33,"lexical":0.6000000000000001,"target":false},{"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","line":37,"lexical":0.6000000000000001,"target":false},{"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","line":38,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/tree_spec.rb\nLine 39: expect(capture(:stdout) { TreeApp.start([\"tree\"]) }).to match(/A subcommand/)","file":"spec/tree_spec.rb","line":39,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/tree_spec.rb\nLine 46: it \"shows tree command in help\" do","file":"spec/tree_spec.rb","line":46,"lexical":0.6000000000000001,"target":false},{"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","line":47,"lexical":0.6000000000000001,"target":false}]} | |
| {"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: spec/command_spec.rb\nLine 34: it \"allows multiple usages\" do","file":"spec/command_spec.rb","line":34,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 268: desc [\"multiple_usages ARG --foo\", \"multiple_usages ARG --bar\"], \"takes mutually exclusive combinations of args and flags\"","file":"spec/fixtures/script.thor","line":268,"lexical":0.39999999999999997,"target":true},{"text":"File: spec/fixtures/script.thor\nLine 269: def multiple_usages(arg)","file":"spec/fixtures/script.thor","line":269,"lexical":0.39999999999999997,"target":false},{"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","line":487,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 488: Usage: \"thor scripts:arities:multiple_usages ARG --foo\"","file":"spec/thor_spec.rb","line":488,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 489: \"thor scripts:arities:multiple_usages ARG --bar\"'","file":"spec/thor_spec.rb","line":489,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 626: it \"provides full help info when talking about a specific command with multiple usages\" do","file":"spec/thor_spec.rb","line":626,"lexical":0.39999999999999997,"target":false}]} | |
| {"site":"project_search","repo":"thor","task":"这段代码是如何注册子命令并定义对应的动态方法的?","query":"register subcommand","file":"lib/thor.rb","symbol":"subcommand","line":329,"lang":"zh","candidates":[{"text":"File: lib/thor.rb\nLine 37: def register(klass, subcommand_name, usage, description, options = {})","file":"lib/thor.rb","line":37,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor.rb\nLine 710: # Print all subcommands (from registered Thor subclasses)","file":"lib/thor.rb","line":710,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/register_spec.rb\nLine 149: BoringVendorProvidedCLI.register(SubcommandWithDefault,","file":"spec/register_spec.rb","line":149,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/register_spec.rb\nLine 153: it \"registers the plugin as a subcommand\" do","file":"spec/register_spec.rb","line":153,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/register_spec.rb\nLine 210: it \"registers the plugin as a subcommand\" do","file":"spec/register_spec.rb","line":210,"lexical":0.6000000000000001,"target":false}]} | |
| {"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: 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","line":452,"lexical":0.55,"target":false},{"text":"File: spec/group_spec.rb\nLine 12: it \"invokes all the commands under the Thor group\" do","file":"spec/group_spec.rb","line":12,"lexical":0.65,"target":false},{"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","line":20,"lexical":0.65,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 78: it \"invokes a Thor::Group and all of its commands\" do","file":"spec/invocation_spec.rb","line":78,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 82: it \"does not invoke a Thor::Group twice\" do","file":"spec/invocation_spec.rb","line":82,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 88: it \"does not invoke any of Thor::Group commands twice\" do","file":"spec/invocation_spec.rb","line":88,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/runner_spec.rb\nLine 82: it \"invokes a Thor::Group\" do","file":"spec/runner_spec.rb","line":82,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/group.rb\nLine 274: # Shortcut to invoke with padding and block handling. Use internally by","file":"lib/thor/group.rb","line":274,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/invocation.rb\nLine 137: # Invokes using shell padding.","file":"lib/thor/invocation.rb","line":137,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/invocation.rb\nLine 138: def invoke_with_padding(*args)","file":"lib/thor/invocation.rb","line":138,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/invocation.rb\nLine 139: with_padding { invoke(*args) }","file":"lib/thor/invocation.rb","line":139,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/group_spec.rb\nLine 95: it \"uses padding on status generated by the invoked class\" do","file":"spec/group_spec.rb","line":95,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/group_spec.rb\nLine 147: it \"uses padding on status generated by the invoked class\" do","file":"spec/group_spec.rb","line":147,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/group_spec.rb\nLine 176: it \"uses padding on status generated by the invoked class\" do","file":"spec/group_spec.rb","line":176,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: lib/thor.rb\nLine 23: @default_command = meth == :none ? \"help\" : meth.to_s","file":"lib/thor.rb","line":23,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor.rb\nLine 25: @default_command ||= from_superclass(:default_command, \"help\")","file":"lib/thor.rb","line":25,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 252: # Prints help information for the given command.","file":"lib/thor.rb","line":252,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 258: def command_help(shell, command_name)","file":"lib/thor.rb","line":258,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 266: class_options_help(shell, nil => command.options.values)","file":"lib/thor.rb","line":266,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 281: alias_method :task_help, :command_help","file":"lib/thor.rb","line":281,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 288: def help(shell, subcommand = false)","file":"lib/thor.rb","line":288,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 331: subcommand_class.subcommand_help subcommand","file":"lib/thor.rb","line":331,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 477: # help command has the required check disabled by default.","file":"lib/thor.rb","line":477,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 649: def subcommand_help(cmd)","file":"lib/thor.rb","line":649,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 650: desc \"help [COMMAND]\", \"Describe subcommands or one specific subcommand\"","file":"lib/thor.rb","line":650,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 652: def help(command = nil, subcommand = true); super; end","file":"lib/thor.rb","line":652,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 655: alias_method :subtask_help, :subcommand_help","file":"lib/thor.rb","line":655,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 670: desc \"help [COMMAND]\", \"Describe available commands or one specific command\"","file":"lib/thor.rb","line":670,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 671: def help(command = nil, subcommand = false)","file":"lib/thor.rb","line":671,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 674: self.class.subcommand_classes[command].help(shell, true)","file":"lib/thor.rb","line":674,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 676: self.class.command_help(shell, command)","file":"lib/thor.rb","line":676,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 679: self.class.help(shell, subcommand)","file":"lib/thor.rb","line":679,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 700: visible_commands = klass.commands.reject { |_, cmd| cmd.hidden? || cmd.name == \"help\" }","file":"lib/thor.rb","line":700,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 16: # Shortcuts for help and tree commands.","file":"lib/thor/base.rb","line":16,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/command.rb\nLine 128: # A command that is hidden in help messages but still invocable.","file":"lib/thor/command.rb","line":128,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/register_spec.rb\nLine 180: it \"displays the subcommand's help message\" do","file":"spec/register_spec.rb","line":180,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/register_spec.rb\nLine 181: output = capture(:stdout) { BoringVendorProvidedCLI.start(%w(subcommand help)) }","file":"spec/register_spec.rb","line":181,"lexical":0.39999999999999997,"target":false},{"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","line":193,"lexical":0.39999999999999997,"target":false},{"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","line":17,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/runner_spec.rb\nLine 23: expect(content).not_to match(/help \\[COMMAND\\]/)","file":"spec/runner_spec.rb","line":23,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/runner_spec.rb\nLine 34: expect(content).not_to match(/help \\[COMMAND\\]/)","file":"spec/runner_spec.rb","line":34,"lexical":0.39999999999999997,"target":false},{"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","line":7,"lexical":0.6000000000000001,"target":false},{"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","line":27,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/subcommand_spec.rb\nLine 28: output = capture(:stdout) { TestSubcommands::Parent.start(%w(sub print_opt --help)) }","file":"spec/subcommand_spec.rb","line":28,"lexical":0.6000000000000001,"target":false},{"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","line":29,"lexical":0.6000000000000001,"target":false},{"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","line":33,"lexical":0.6000000000000001,"target":false}]} | |
| {"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: spec/line_editor/basic_spec.rb\nLine 6: expect(Thor::LineEditor::Basic).to be_available","file":"spec/line_editor/basic_spec.rb","line":6,"lexical":0.55,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 6: Thor::LineEditor::Readline.available?","file":"spec/line_editor/readline_spec.rb","line":6,"lexical":0.65,"target":false}]} | |
| {"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/actions/create_file.rb\nLine 22: def create_file(destination, *args, &block)","file":"lib/thor/actions/create_file.rb","line":22,"lexical":0.65,"target":true},{"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","line":25,"lexical":0.65,"target":false},{"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","line":24,"lexical":0.65,"target":false}]} | |
| {"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/runner.rb\nLine 218: # Load the Thorfiles. If relevant_to is supplied, looks for specific files","file":"lib/thor/runner.rb","line":218,"lexical":0.55,"target":false},{"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","line":227,"lexical":0.55,"target":false},{"text":"File: lib/thor/runner.rb\nLine 234: # We also ensure that system-wide Thorfiles are loaded first, so local","file":"lib/thor/runner.rb","line":234,"lexical":0.55,"target":false},{"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","line":272,"lexical":0.55,"target":false},{"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","line":273,"lexical":0.55,"target":false},{"text":"File: lib/thor/util.rb\nLine 13: # 2) Loading thor files and sandboxing:","file":"lib/thor/util.rb","line":13,"lexical":0.55,"target":false},{"text":"File: lib/thor/util.rb\nLine 15: # Thor::Util.load_thorfile(\"~/.thor/foo\")","file":"lib/thor/util.rb","line":15,"lexical":0.55,"target":false},{"text":"File: lib/thor/util.rb\nLine 62: load_thorfile(file, contents)","file":"lib/thor/util.rb","line":62,"lexical":0.55,"target":false},{"text":"File: lib/thor/util.rb\nLine 150: # Receives a path and load the thor file in the path. The file is evaluated","file":"lib/thor/util.rb","line":150,"lexical":0.55,"target":false},{"text":"File: lib/thor/util.rb\nLine 153: def load_thorfile(path, content = nil, debug = false)","file":"lib/thor/util.rb","line":153,"lexical":0.55,"target":false},{"text":"File: lib/thor/util.rb\nLine 159: $stderr.puts(\"WARNING: unable to load thorfile #{path.inspect}: #{e.message}\")","file":"lib/thor/util.rb","line":159,"lexical":0.55,"target":false},{"text":"File: spec/encoding_spec.rb\nLine 6: def load_thorfile(filename)","file":"spec/encoding_spec.rb","line":6,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/encoding_spec.rb\nLine 7: Thor::Util.load_thorfile(File.expand_path(\"./fixtures/#{filename}\", __dir__))","file":"spec/encoding_spec.rb","line":7,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/encoding_spec.rb\nLine 11: load_thorfile(\"encoding_with_utf8.thor\")","file":"spec/encoding_spec.rb","line":11,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/encoding_spec.rb\nLine 15: load_thorfile(\"encoding_other.thor\")","file":"spec/encoding_spec.rb","line":15,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/encoding_spec.rb\nLine 19: load_thorfile(\"encoding_implicit.thor\")","file":"spec/encoding_spec.rb","line":19,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/helper.rb\nLine 33: load File.join(File.dirname(__FILE__), \"fixtures\", \"enum.thor\")","file":"spec/helper.rb","line":33,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/helper.rb\nLine 34: load File.join(File.dirname(__FILE__), \"fixtures\", \"group.thor\")","file":"spec/helper.rb","line":34,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/helper.rb\nLine 35: load File.join(File.dirname(__FILE__), \"fixtures\", \"invoke.thor\")","file":"spec/helper.rb","line":35,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/helper.rb\nLine 36: load File.join(File.dirname(__FILE__), \"fixtures\", \"script.thor\")","file":"spec/helper.rb","line":36,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/helper.rb\nLine 37: load File.join(File.dirname(__FILE__), \"fixtures\", \"subcommand.thor\")","file":"spec/helper.rb","line":37,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/helper.rb\nLine 38: load File.join(File.dirname(__FILE__), \"fixtures\", \"command.thor\")","file":"spec/helper.rb","line":38,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/line_editor.rb\nLine 2: require_relative \"line_editor/readline\"","file":"lib/thor/line_editor.rb","line":2,"lexical":0.65,"target":true},{"text":"File: lib/thor/line_editor.rb\nLine 12: Thor::LineEditor::Readline,","file":"lib/thor/line_editor.rb","line":12,"lexical":0.65,"target":false},{"text":"File: lib/thor/shell/basic.rb\nLine 334: result = Thor::LineEditor.readline(message, options)","file":"lib/thor/shell/basic.rb","line":334,"lexical":0.44999999999999996,"target":false},{"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","line":115,"lexical":0.44999999999999996,"target":false},{"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","line":124,"lexical":0.44999999999999996,"target":false},{"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","line":130,"lexical":0.44999999999999996,"target":false},{"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","line":136,"lexical":0.44999999999999996,"target":false},{"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","line":144,"lexical":0.44999999999999996,"target":false},{"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","line":96,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 120: expect(Thor::LineEditor).to receive(:readline).and_return(\"m\")","file":"spec/actions/file_manipulation_spec.rb","line":120,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/line_editor/basic_spec.rb\nLine 16: expect(editor.readline).to eq(\"George\")","file":"spec/line_editor/basic_spec.rb","line":16,"lexical":0.55,"target":false},{"text":"File: spec/line_editor/basic_spec.rb\nLine 25: expect(editor.readline).to eq(\"secret\")","file":"spec/line_editor/basic_spec.rb","line":25,"lexical":0.55,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 3: describe Thor::LineEditor::Readline do","file":"spec/line_editor/readline_spec.rb","line":3,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 6: Thor::LineEditor::Readline.available?","file":"spec/line_editor/readline_spec.rb","line":6,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 29: editor = Thor::LineEditor::Readline.new(\"> \", {})","file":"spec/line_editor/readline_spec.rb","line":29,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 30: expect(editor.readline).to eq(\"foo\")","file":"spec/line_editor/readline_spec.rb","line":30,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 36: editor = Thor::LineEditor::Readline.new(\"> \", add_to_history: false)","file":"spec/line_editor/readline_spec.rb","line":36,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 37: expect(editor.readline).to eq(\"foo\")","file":"spec/line_editor/readline_spec.rb","line":37,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 48: editor = Thor::LineEditor::Readline.new(\"Best food: \", limited_to: %w(Apples Chicken Chocolate))","file":"spec/line_editor/readline_spec.rb","line":48,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 49: editor.readline","file":"spec/line_editor/readline_spec.rb","line":49,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 58: editor = Thor::LineEditor::Readline.new(\"Path to file: \", path: true)","file":"spec/line_editor/readline_spec.rb","line":58,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 59: Dir.chdir(File.dirname(__FILE__)) { editor.readline }","file":"spec/line_editor/readline_spec.rb","line":59,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 67: editor = Thor::LineEditor::Readline.new(\"Password: \", echo: false)","file":"spec/line_editor/readline_spec.rb","line":67,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 68: expect(editor.readline).to eq(\"secret\")","file":"spec/line_editor/readline_spec.rb","line":68,"lexical":0.65,"target":false},{"text":"File: spec/line_editor_spec.rb\nLine 4: describe Thor::LineEditor, \"on a system with Readline support\" do","file":"spec/line_editor_spec.rb","line":4,"lexical":0.65,"target":false},{"text":"File: spec/line_editor_spec.rb\nLine 17: it \"uses the Readline line editor\" do","file":"spec/line_editor_spec.rb","line":17,"lexical":0.65,"target":false},{"text":"File: spec/line_editor_spec.rb\nLine 18: editor = double(\"Readline\")","file":"spec/line_editor_spec.rb","line":18,"lexical":0.65,"target":false},{"text":"File: spec/line_editor_spec.rb\nLine 19: expect(Thor::LineEditor::Readline).to receive(:new).with(\"Enter your name \", {default: \"Brian\"}).and_return(editor)","file":"spec/line_editor_spec.rb","line":19,"lexical":0.65,"target":false},{"text":"File: spec/line_editor_spec.rb\nLine 20: expect(editor).to receive(:readline).and_return(\"George\")","file":"spec/line_editor_spec.rb","line":20,"lexical":0.65,"target":false},{"text":"File: spec/line_editor_spec.rb\nLine 21: expect(Thor::LineEditor.readline(\"Enter your name \", default: \"Brian\")).to eq(\"George\")","file":"spec/line_editor_spec.rb","line":21,"lexical":0.65,"target":false},{"text":"File: spec/line_editor_spec.rb\nLine 26: describe Thor::LineEditor, \"on a system without Readline support\" do","file":"spec/line_editor_spec.rb","line":26,"lexical":0.65,"target":false},{"text":"File: spec/line_editor_spec.rb\nLine 40: expect(editor).to receive(:readline).and_return(\"George\")","file":"spec/line_editor_spec.rb","line":40,"lexical":0.65,"target":false}]} | |
| {"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: lib/thor.rb\nLine 455: # Returns this class exclusive options array set.","file":"lib/thor.rb","line":455,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 398: # Returns this class exclusive options array set, looking up in the ancestors chain.","file":"lib/thor/base.rb","line":398,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/base_spec.rb\nLine 75: expect(MyClassOptionScript.class_exclusive_option_names.size).to be(1)","file":"spec/base_spec.rb","line":75,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/base_spec.rb\nLine 76: expect(MyClassOptionScript.class_exclusive_option_names.first.size).to be(2)","file":"spec/base_spec.rb","line":76,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 590: it \"prints class exclusive options\" do","file":"spec/thor_spec.rb","line":590,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 595: it \"does not print class exclusive options\" do","file":"spec/thor_spec.rb","line":595,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/actions.rb\nLine 1: require_relative \"actions/create_file\"","file":"lib/thor/actions.rb","line":1,"lexical":0.65,"target":false},{"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","line":25,"lexical":0.65,"target":true},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 18: # other actions like create_file and directory.","file":"lib/thor/actions/empty_directory.rb","line":18,"lexical":0.55,"target":false},{"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","line":22,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/create_file_spec.rb\nLine 4: describe Thor::Actions::CreateFile do","file":"spec/actions/create_file_spec.rb","line":4,"lexical":0.65,"target":false},{"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","line":14,"lexical":0.65,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 130: expect(action(:copy_file, \"command.thor\")).to eq(\" create command.thor\\n\")","file":"spec/actions/file_manipulation_spec.rb","line":130,"lexical":0.65,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 160: expect(action(:link_file, \"command.thor\")).to eq(\" create command.thor\\n\")","file":"spec/actions/file_manipulation_spec.rb","line":160,"lexical":0.65,"target":false}]} | |
| {"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/actions.rb\nLine 274: abort if !success && config.fetch(:abort_on_failure, self.class.exit_on_failure?)","file":"lib/thor/actions.rb","line":274,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 588: exit(false) if exit_on_failure?","file":"lib/thor/base.rb","line":588,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 629: def exit_on_failure?","file":"lib/thor/base.rb","line":629,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 630: Thor.deprecation_warning \"Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `#{self.name}`\"","file":"lib/thor/base.rb","line":630,"lexical":0.35,"target":false},{"text":"File: lib/thor/runner.rb\nLine 14: def self.exit_on_failure?","file":"lib/thor/runner.rb","line":14,"lexical":0.35,"target":false},{"text":"File: spec/actions_spec.rb\nLine 344: context \"exit_on_failure? is true\" do","file":"spec/actions_spec.rb","line":344,"lexical":0.35,"target":false},{"text":"File: spec/actions_spec.rb\nLine 346: allow(MyCounter).to receive(:exit_on_failure?).and_return(true)","file":"spec/actions_spec.rb","line":346,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/command.thor","line":4,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/exit_status.thor","line":4,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 5: def self.exit_on_failure?","file":"spec/fixtures/group.thor","line":5,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":4,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 186: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":186,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 224: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":224,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 248: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":248,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?","file":"spec/fixtures/verbose.thor","line":8,"lexical":0.35,"target":false},{"text":"File: spec/subcommand_spec.rb\nLine 59: def self.exit_on_failure?","file":"spec/subcommand_spec.rb","line":59,"lexical":0.35,"target":true},{"text":"File: spec/thor_spec.rb\nLine 177: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":177,"lexical":0.35,"target":false},{"text":"File: spec/thor_spec.rb\nLine 231: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":231,"lexical":0.35,"target":false},{"text":"File: spec/thor_spec.rb\nLine 297: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":297,"lexical":0.35,"target":false},{"text":"File: spec/thor_spec.rb\nLine 877: context \"without an exit_on_failure? method\" do","file":"spec/thor_spec.rb","line":877,"lexical":0.35,"target":false},{"text":"File: spec/thor_spec.rb\nLine 887: end.to output(/^Deprecation.*exit_on_failure/).to_stderr","file":"spec/thor_spec.rb","line":887,"lexical":0.35,"target":false}]} | |
| {"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/base.rb\nLine 109: to_parse += opts.remaining unless self.class.strict_args_position?(config)","file":"lib/thor/base.rb","line":109,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 213: # call strict_args_position! This is disabled by default to allow dynamic","file":"lib/thor/base.rb","line":213,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 215: def strict_args_position!","file":"lib/thor/base.rb","line":215,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 216: @strict_args_position = true","file":"lib/thor/base.rb","line":216,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 219: def strict_args_position #:nodoc:","file":"lib/thor/base.rb","line":219,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 220: @strict_args_position ||= from_superclass(:strict_args_position, false)","file":"lib/thor/base.rb","line":220,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 223: def strict_args_position?(config) #:nodoc:","file":"lib/thor/base.rb","line":223,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 224: !!strict_args_position","file":"lib/thor/base.rb","line":224,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 808: strict_args_position!","file":"spec/thor_spec.rb","line":808,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 822: strict_args_position!","file":"spec/thor_spec.rb","line":822,"lexical":0.44999999999999996,"target":false}]} | |
| {"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.rb\nLine 205: :method_exclusive_option_names, *args, &block)","file":"lib/thor.rb","line":205,"lexical":0.5,"target":true},{"text":"File: lib/thor.rb\nLine 460: def method_exclusive_option_names #:nodoc:","file":"lib/thor.rb","line":460,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 461: @method_exclusive_option_names ||= []","file":"lib/thor.rb","line":461,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 484: opts = command.method_exclusive_option_names unless command.nil?","file":"lib/thor.rb","line":484,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 569: relations = {exclusive_option_names: method_exclusive_option_names,","file":"lib/thor.rb","line":569,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 573: @method_exclusive_option_names, @method_at_least_one_option_names = nil","file":"lib/thor.rb","line":573,"lexical":0.5,"target":false},{"text":"File: lib/thor/command.rb\nLine 66: def method_exclusive_option_names #:nodoc:","file":"lib/thor/command.rb","line":66,"lexical":0.5,"target":false}]} | |
| {"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: lib/thor/runner.rb\nLine 218: # Load the Thorfiles. If relevant_to is supplied, looks for specific files","file":"lib/thor/runner.rb","line":218,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/runner.rb\nLine 234: # We also ensure that system-wide Thorfiles are loaded first, so local","file":"lib/thor/runner.rb","line":234,"lexical":0.39999999999999997,"target":false},{"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","line":272,"lexical":0.39999999999999997,"target":false}]} | |
| {"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 7: if diff_lcs_loaded? && ENV[\"THOR_DIFF\"].nil? && ENV[\"RAILS_DIFF\"].nil?","file":"lib/thor/shell/lcs_diff.rb","line":7,"lexical":0.65,"target":true},{"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","line":35,"lexical":0.65,"target":false},{"text":"File: lib/thor/shell/lcs_diff.rb\nLine 37: def diff_lcs_loaded? #:nodoc:","file":"lib/thor/shell/lcs_diff.rb","line":37,"lexical":0.65,"target":false},{"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","line":39,"lexical":0.65,"target":false},{"text":"File: lib/thor/shell/lcs_diff.rb\nLine 41: @diff_lcs_loaded = begin","file":"lib/thor/shell/lcs_diff.rb","line":41,"lexical":0.65,"target":false}]} | |
| {"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: lib/thor/base.rb\nLine 109: to_parse += opts.remaining unless self.class.strict_args_position?(config)","file":"lib/thor/base.rb","line":109,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 575: # Parses the command and options from the given args, instantiate the class","file":"lib/thor/base.rb","line":575,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor.rb\nLine 289: list = printable_commands(true, subcommand)","file":"lib/thor.rb","line":289,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor.rb\nLine 291: list += klass.printable_commands(false)","file":"lib/thor.rb","line":291,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 309: def printable_commands(all = true, subcommand = false)","file":"lib/thor.rb","line":309,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 318: alias_method :printable_tasks, :printable_commands","file":"lib/thor.rb","line":318,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/group.rb\nLine 199: def printable_commands(*)","file":"lib/thor/group.rb","line":199,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/group.rb\nLine 205: alias_method :printable_tasks, :printable_commands","file":"lib/thor/group.rb","line":205,"lexical":0.39999999999999997,"target":false},{"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","line":299,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/runner.rb\nLine 302: groups.map! { |k| k.printable_commands(false).first }","file":"lib/thor/runner.rb","line":302,"lexical":0.39999999999999997,"target":false}]} | |
| {"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 46: # Add runtime options that help actions execution.","file":"lib/thor/actions.rb","line":46,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/actions.rb\nLine 48: def add_runtime_options!","file":"lib/thor/actions.rb","line":48,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions_spec.rb\nLine 17: it \"adds runtime options to the base class\" do","file":"spec/actions_spec.rb","line":17,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/base_spec.rb\nLine 190: expect(@content).to match(/Runtime options\\:/)","file":"spec/base_spec.rb","line":190,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 3: add_runtime_options!","file":"spec/fixtures/group.thor","line":3,"lexical":0.39999999999999997,"target":false}]} | |
| {"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.rb\nLine 568: base_class = @hide ? Thor::HiddenCommand : Thor::Command","file":"lib/thor.rb","line":568,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 571: commands[meth] = base_class.new(meth, @desc, @long_desc, @long_desc_wrap, @usage, method_options, relations)","file":"lib/thor.rb","line":571,"lexical":0.44999999999999996,"target":false},{"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","line":136,"lexical":0.44999999999999996,"target":false}]} | |
| {"site":"project_search","repo":"thor","task":"这个方法是用来获取当前的命令执行链条的吗?","query":"current_command_chain","file":"spec/fixtures/invoke.thor","symbol":"two","line":122,"lang":"zh","candidates":[{"text":"File: lib/thor/invocation.rb\nLine 30: def current_command_chain","file":"lib/thor/invocation.rb","line":30,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/invoke.thor\nLine 123: current_command_chain","file":"spec/fixtures/invoke.thor","line":123,"lexical":0.35,"target":true}]} | |
| {"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: CONTRIBUTING.md\nLine 9: 5. It changes behavior of an existing public API, breaking backward compatibility.","file":"CONTRIBUTING.md","line":9,"lexical":0.39999999999999997,"target":false},{"text":"File: README.md\nLine 22: [open-uri]: https://ruby-doc.org/stdlib-2.5.1/libdoc/open-uri/rdoc/index.html","file":"README.md","line":22,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 143: # chmod \"script/server\", 0755","file":"lib/thor/actions/file_manipulation.rb","line":143,"lexical":0.6000000000000001,"target":false},{"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","line":30,"lexical":0.6000000000000001,"target":false},{"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","line":41,"lexical":0.6000000000000001,"target":false},{"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","line":42,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 46: expect(FileUtils).to receive(:chmod_R).with(0755, file)","file":"spec/actions/file_manipulation_spec.rb","line":46,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 47: expect(action(:chmod, \"foo\", 0755, verbose: false)).to be_empty","file":"spec/actions/file_manipulation_spec.rb","line":47,"lexical":0.6000000000000001,"target":false},{"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","line":128,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/base_spec.rb\nLine 129: expect(MyCounter.start(%w(1 2 -r 3))[5]).to eq(3)","file":"spec/base_spec.rb","line":129,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 94: options[:fail] ? this_method_does_not_exist : 5","file":"spec/fixtures/group.thor","line":94,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/fixtures/invoke.thor\nLine 92: p 5","file":"spec/fixtures/invoke.thor","line":92,"lexical":0.5,"target":true},{"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","line":21,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/group_spec.rb\nLine 88: expect(@content).to match(/1\\n2\\n3\\n4\\n5\\n/)","file":"spec/group_spec.rb","line":88,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/group_spec.rb\nLine 120: expect(@content).to match(/1\\n2\\n3\\n4\\n5\\n/)","file":"spec/group_spec.rb","line":120,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/group_spec.rb\nLine 165: expect(@content).to match(/1\\n2\\n3\\n4\\n5\\n/)","file":"spec/group_spec.rb","line":165,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 15: expect(capture(:stdout) { Defined.new.invoke(:one) }).to eq(\"1\\n2\\n3\\n4\\n5\\n\")","file":"spec/invocation_spec.rb","line":15,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 19: expect(A.new.invoke(:five, [5])).to be true","file":"spec/invocation_spec.rb","line":19,"lexical":0.6000000000000001,"target":false},{"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","line":531,"lexical":0.6000000000000001,"target":false},{"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","line":223,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/runner_spec.rb\nLine 253: path = File.join(Thor::Util.thor_root, Digest::SHA256.hexdigest(location + \"random\"))","file":"spec/runner_spec.rb","line":253,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 338: expect(content.rstrip).to eq(\"1234567890 a b c d e\")","file":"spec/shell/basic_spec.rb","line":338,"lexical":0.6000000000000001,"target":false},{"text":"File: thor.gemspec\nLine 26: spec.required_rubygems_version = \">= 1.3.5\"","file":"thor.gemspec","line":26,"lexical":0.6000000000000001,"target":false}]} | |
| {"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/base.rb\nLine 432: undef_method name, \"#{name}=\" if options[:undefine]","file":"lib/thor/base.rb","line":432,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 498: # options<Hash>:: You can give :undefine => true if you want commands the method","file":"lib/thor/base.rb","line":498,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 507: undef_method name if options[:undefine]","file":"lib/thor/base.rb","line":507,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions/empty_directory.rb\nLine 87: @given_destination = convert_encoded_instructions(destination.to_s)","file":"lib/thor/actions/empty_directory.rb","line":87,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 103: def convert_encoded_instructions(filename)","file":"lib/thor/actions/empty_directory.rb","line":103,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/create_file_spec.rb\nLine 67: it \"converts encoded instructions\" do","file":"spec/actions/create_file_spec.rb","line":67,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 100: describe \"#convert_encoded_instructions\" do","file":"spec/actions/empty_directory_spec.rb","line":100,"lexical":0.44999999999999996,"target":false},{"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","line":107,"lexical":0.44999999999999996,"target":false},{"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","line":117,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 121: expect(@action.send(:convert_encoded_instructions, \"%some_name%.txt\")).to eq(\"%some_name%.txt\")","file":"spec/actions/empty_directory_spec.rb","line":121,"lexical":0.44999999999999996,"target":false},{"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","line":125,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 242: it \"converts encoded instructions\" do","file":"spec/actions/file_manipulation_spec.rb","line":242,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/invoke.thor\nLine 25: invoke \"defined:five\"","file":"spec/fixtures/invoke.thor","line":25,"lexical":0.6000000000000001,"target":true},{"text":"File: spec/fixtures/invoke.thor\nLine 88: invoke \"defined:five\"","file":"spec/fixtures/invoke.thor","line":88,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 19: expect(A.new.invoke(:five, [5])).to be true","file":"spec/invocation_spec.rb","line":19,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 20: expect(A.new.invoke(:five, [7])).to be false","file":"spec/invocation_spec.rb","line":20,"lexical":0.39999999999999997,"target":false}]} | |
| {"site":"project_search","repo":"thor","task":"我想看看这个命令行工具类是如何生成帮助信息的展示行。能不能帮我找找负责拼接命令名称和用法说明的那部分逻辑?","query":"usage banner","file":"lib/thor/group.rb","symbol":"banner","line":249,"lang":"zh","candidates":[{"text":"File: README.md\nLine 12: \"USAGE:\" banners, and can also be used as an alternative to the [Rake][rake]","file":"README.md","line":12,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 160: # :banner - String to show on usage notes.","file":"lib/thor.rb","line":160,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 257: # :banner - String to show on usage notes.","file":"lib/thor/base.rb","line":257,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 326: # :banner:: -- String to show on usage notes.","file":"lib/thor/base.rb","line":326,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 624: msg << \"\\nUsage: \\\"#{banner(command).split(\"\\n\").join(\"\\\"\\n \\\"\")}\\\"\"","file":"lib/thor/base.rb","line":624,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/base_spec.rb\nLine 176: it \"shows usage with banner content\" do","file":"spec/base_spec.rb","line":176,"lexical":0.39999999999999997,"target":false},{"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","line":248,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 252: expect(option(:foo, required: false, type: :string, banner: \"\").usage).to eq(\"[--foo]\")","file":"spec/parser/option_spec.rb","line":252,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: lib/thor/line_editor.rb\nLine 1: require_relative \"line_editor/basic\"","file":"lib/thor/line_editor.rb","line":1,"lexical":0.65,"target":false},{"text":"File: lib/thor/line_editor.rb\nLine 13: Thor::LineEditor::Basic","file":"lib/thor/line_editor.rb","line":13,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/basic_spec.rb\nLine 3: describe Thor::LineEditor::Basic do","file":"spec/line_editor/basic_spec.rb","line":3,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/basic_spec.rb\nLine 6: expect(Thor::LineEditor::Basic).to be_available","file":"spec/line_editor/basic_spec.rb","line":6,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/basic_spec.rb\nLine 15: editor = Thor::LineEditor::Basic.new(\"Enter your name \", {})","file":"spec/line_editor/basic_spec.rb","line":15,"lexical":0.65,"target":false},{"text":"File: spec/line_editor/basic_spec.rb\nLine 24: editor = Thor::LineEditor::Basic.new(\"Password: \", echo: false)","file":"spec/line_editor/basic_spec.rb","line":24,"lexical":0.65,"target":false},{"text":"File: spec/line_editor_spec.rb\nLine 37: it \"uses the Basic line editor\" do","file":"spec/line_editor_spec.rb","line":37,"lexical":0.65,"target":false},{"text":"File: spec/line_editor_spec.rb\nLine 39: expect(Thor::LineEditor::Basic).to receive(:new).with(\"Enter your name \", {default: \"Brian\"}).and_return(editor)","file":"spec/line_editor_spec.rb","line":39,"lexical":0.65,"target":false}]} | |
| {"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 13: def empty_directory(destination, config = {})","file":"lib/thor/actions/empty_directory.rb","line":13,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/parser/argument.rb\nLine 46: !default.empty?","file":"lib/thor/parser/argument.rb","line":46,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/util.rb\nLine 25: namespace = \"default#{namespace}\" if namespace.empty? || namespace =~ /^:/","file":"lib/thor/util.rb","line":25,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/util.rb\nLine 135: namespace = \"default\" if namespace.empty?","file":"lib/thor/util.rb","line":135,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 9: def empty_directory(destination, options = {})","file":"spec/actions/empty_directory_spec.rb","line":9,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 72: options.empty? ? \"default command\" : options","file":"spec/fixtures/script.thor","line":72,"lexical":0.39999999999999997,"target":false},{"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","line":172,"lexical":0.39999999999999997,"target":false},{"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","line":177,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: lib/thor/actions/create_file.rb\nLine 32: class CreateFile < EmptyDirectory #:nodoc:","file":"lib/thor/actions/create_file.rb","line":32,"lexical":0.6000000000000001,"target":false},{"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","line":23,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 3: # Creates an empty directory.","file":"lib/thor/actions/empty_directory.rb","line":3,"lexical":0.6000000000000001,"target":true},{"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","line":17,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 18: # other actions like create_file and directory.","file":"lib/thor/actions/empty_directory.rb","line":18,"lexical":0.6000000000000001,"target":false},{"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","line":44,"lexical":0.6000000000000001,"target":false},{"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","line":65,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions_spec.rb\nLine 162: it \"creates the directory if it does not exist\" do","file":"spec/actions_spec.rb","line":162,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: lib/thor.rb\nLine 235: # You can use at_least_one and exclusive at the same time.","file":"lib/thor.rb","line":235,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 573: @method_exclusive_option_names, @method_at_least_one_option_names = nil","file":"lib/thor.rb","line":573,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 84: {exclusive_option_names: [], at_least_one_option_names: []}","file":"lib/thor/base.rb","line":84,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 382: # You can use class_at_least_one and class_exclusive at the same time.","file":"lib/thor/base.rb","line":382,"lexical":0.39999999999999997,"target":false},{"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","line":5,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/parser/argument_spec.rb\nLine 24: argument(:command, type: :string, default: \"bar\", required: true)","file":"spec/parser/argument_spec.rb","line":24,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/argument_spec.rb\nLine 30: argument(:command, type: :string, enum: \"bar\")","file":"spec/parser/argument_spec.rb","line":30,"lexical":0.39999999999999997,"target":false},{"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","line":73,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 70: expect(parse(:foo, \"bar\").type).to eq(:string)","file":"spec/parser/option_spec.rb","line":70,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 132: option = option(\"foo\", required: true, type: :string, default: \"bar\")","file":"spec/parser/option_spec.rb","line":132,"lexical":0.39999999999999997,"target":false},{"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","line":248,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 357: create \"--baz\" => :string, \"--foo\" => \"bar\"","file":"spec/parser/options_spec.rb","line":357,"lexical":0.39999999999999997,"target":false}]} | |
| {"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.rb\nLine 384: # argument is encountered. All remaining arguments are passed to the command.","file":"lib/thor.rb","line":384,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 100: # remaining arguments looks like an option.","file":"lib/thor/base.rb","line":100,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 103: # Add the remaining arguments from the options parser to the","file":"lib/thor/base.rb","line":103,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 200: # regular argument is encountered. All remaining arguments are passed to","file":"lib/thor/base.rb","line":200,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: lib/thor.rb\nLine 68: # Long description is by default indented, line-wrapped and repeated whitespace merged.","file":"lib/thor.rb","line":68,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor.rb\nLine 72: # long_desc 'your very long description', wrap: false","file":"lib/thor.rb","line":72,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 272: if command.wrap_long_description","file":"lib/thor.rb","line":272,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 273: shell.print_wrapped(command.long_description, indent: 2)","file":"lib/thor.rb","line":273,"lexical":0.44999999999999996,"target":false},{"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","line":2,"lexical":0.44999999999999996,"target":false},{"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","line":5,"lexical":0.44999999999999996,"target":false},{"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","line":6,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 108: def long_description_unwrapped","file":"spec/fixtures/script.thor","line":108,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 661: it \"prints long description unwrapped if asked for\" do","file":"spec/thor_spec.rb","line":661,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 662: expect(capture(:stdout) { MyScript.command_help(shell, \"long_description_unwrapped\") }).to eq(<<-HELP)","file":"spec/thor_spec.rb","line":662,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/arguments.rb\nLine 73: @pile.shift","file":"lib/thor/parser/arguments.rb","line":73,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/parser/arguments.rb\nLine 80: @pile.unshift(arg)","file":"lib/thor/parser/arguments.rb","line":80,"lexical":0.39999999999999997,"target":false}]} | |
| {"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 261: handle_no_command_error(meth) unless command","file":"lib/thor.rb","line":261,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 614: def handle_no_command_error(command, has_namespace = $thor_runner) #:nodoc:","file":"lib/thor/base.rb","line":614,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 617: alias_method :handle_no_task_error, :handle_no_command_error","file":"lib/thor/base.rb","line":617,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 619: def handle_argument_error(command, error, args, arity) #:nodoc:","file":"lib/thor/base.rb","line":619,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/command.rb\nLine 25: instance.class.handle_no_command_error(name)","file":"lib/thor/command.rb","line":25,"lexical":0.65,"target":false},{"text":"File: lib/thor/command.rb\nLine 32: instance.class.handle_no_command_error(name)","file":"lib/thor/command.rb","line":32,"lexical":0.65,"target":false},{"text":"File: lib/thor/command.rb\nLine 37: handle_no_method_error?(instance, e, caller) ? instance.class.handle_no_command_error(name) : (raise e)","file":"lib/thor/command.rb","line":37,"lexical":0.65,"target":false},{"text":"File: lib/thor/command.rb\nLine 146: instance.class.handle_no_command_error(name)","file":"lib/thor/command.rb","line":146,"lexical":0.65,"target":false},{"text":"File: lib/thor/group.rb\nLine 207: def handle_argument_error(command, error, _args, arity) #:nodoc:","file":"lib/thor/group.rb","line":207,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/runner.rb\nLine 24: self.class.handle_no_command_error(command, false) if klass.nil?","file":"lib/thor/runner.rb","line":24,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/runner.rb\nLine 38: self.class.handle_no_command_error(command, false) if klass.nil?","file":"lib/thor/runner.rb","line":38,"lexical":0.44999999999999996,"target":false},{"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","line":50,"lexical":0.65,"target":false},{"text":"File: spec/command_spec.rb\nLine 72: def self.handle_no_command_error(name)","file":"spec/command_spec.rb","line":72,"lexical":0.65,"target":false},{"text":"File: spec/subcommand_spec.rb\nLine 18: it \"ignores unknown options (the subcommand class will handle them)\" do","file":"spec/subcommand_spec.rb","line":18,"lexical":0.65,"target":false}]} | |
| {"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/actions/directory_spec.rb\nLine 103: expect(File.stat(original).mode).to eq(File.stat(copy).mode)","file":"spec/actions/directory_spec.rb","line":103,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 70: action :copy_file, \"preserve/script.sh\", mode: :preserve","file":"spec/actions/file_manipulation_spec.rb","line":70,"lexical":0.65,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 73: expect(File.stat(original).mode).to eq(File.stat(copy).mode)","file":"spec/actions/file_manipulation_spec.rb","line":73,"lexical":0.65,"target":false},{"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","line":78,"lexical":0.65,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 81: expect(File.stat(original).mode).to eq(File.stat(copy).mode)","file":"spec/actions/file_manipulation_spec.rb","line":81,"lexical":0.65,"target":false}]} | |
| {"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/shell/basic.rb\nLine 258: def set_color(string, *) #:nodoc:","file":"lib/thor/shell/basic.rb","line":258,"lexical":0.44999999999999996,"target":true},{"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","line":53,"lexical":0.65,"target":false},{"text":"File: lib/thor/shell/color.rb\nLine 84: def set_color(string, *colors)","file":"lib/thor/shell/color.rb","line":84,"lexical":0.65,"target":false},{"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","line":49,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/shell/html.rb\nLine 54: def set_color(string, *colors)","file":"lib/thor/shell/html.rb","line":54,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/shell/color_spec.rb\nLine 42: it \"sets the color when NO_COLOR is ignored because the environment variable is an empty-string\" do","file":"spec/shell/color_spec.rb","line":42,"lexical":0.65,"target":false},{"text":"File: spec/shell/color_spec.rb\nLine 80: it \"does not set the color if NO_COLOR is set to any value that is not an empty string\" do","file":"spec/shell/color_spec.rb","line":80,"lexical":0.65,"target":false},{"text":"File: spec/shell/color_spec.rb\nLine 184: it \"does nothing when the NO_COLOR environment variable is set to a non-empty string\" do","file":"spec/shell/color_spec.rb","line":184,"lexical":0.65,"target":false},{"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","line":202,"lexical":0.65,"target":false}]} | |
| {"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.rb\nLine 261: handle_no_command_error(meth) unless command","file":"lib/thor.rb","line":261,"lexical":0.5,"target":false},{"text":"File: lib/thor/base.rb\nLine 614: def handle_no_command_error(command, has_namespace = $thor_runner) #:nodoc:","file":"lib/thor/base.rb","line":614,"lexical":0.5,"target":false},{"text":"File: lib/thor/base.rb\nLine 617: alias_method :handle_no_task_error, :handle_no_command_error","file":"lib/thor/base.rb","line":617,"lexical":0.5,"target":false},{"text":"File: lib/thor/base.rb\nLine 619: def handle_argument_error(command, error, args, arity) #:nodoc:","file":"lib/thor/base.rb","line":619,"lexical":0.5,"target":false},{"text":"File: lib/thor/command.rb\nLine 25: instance.class.handle_no_command_error(name)","file":"lib/thor/command.rb","line":25,"lexical":0.65,"target":true},{"text":"File: lib/thor/command.rb\nLine 32: instance.class.handle_no_command_error(name)","file":"lib/thor/command.rb","line":32,"lexical":0.65,"target":false},{"text":"File: lib/thor/command.rb\nLine 37: handle_no_method_error?(instance, e, caller) ? instance.class.handle_no_command_error(name) : (raise e)","file":"lib/thor/command.rb","line":37,"lexical":0.65,"target":false},{"text":"File: lib/thor/command.rb\nLine 146: instance.class.handle_no_command_error(name)","file":"lib/thor/command.rb","line":146,"lexical":0.65,"target":false},{"text":"File: lib/thor/group.rb\nLine 207: def handle_argument_error(command, error, _args, arity) #:nodoc:","file":"lib/thor/group.rb","line":207,"lexical":0.5,"target":false},{"text":"File: lib/thor/runner.rb\nLine 24: self.class.handle_no_command_error(command, false) if klass.nil?","file":"lib/thor/runner.rb","line":24,"lexical":0.5,"target":false},{"text":"File: lib/thor/runner.rb\nLine 38: self.class.handle_no_command_error(command, false) if klass.nil?","file":"lib/thor/runner.rb","line":38,"lexical":0.5,"target":false},{"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","line":50,"lexical":0.65,"target":false},{"text":"File: spec/command_spec.rb\nLine 72: def self.handle_no_command_error(name)","file":"spec/command_spec.rb","line":72,"lexical":0.65,"target":false}]} | |
| {"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.rb\nLine 650: desc \"help [COMMAND]\", \"Describe subcommands or one specific subcommand\"","file":"lib/thor.rb","line":650,"lexical":0.39999999999999997,"target":false},{"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","line":7,"lexical":0.6000000000000001,"target":false}]} | |
| {"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/base_spec.rb\nLine 26: expect(base.options[:third]).to eq(3)","file":"spec/base_spec.rb","line":26,"lexical":0.35,"target":false},{"text":"File: spec/base_spec.rb\nLine 31: expect(base.options[:third]).to eq(4)","file":"spec/base_spec.rb","line":31,"lexical":0.35,"target":false},{"text":"File: spec/base_spec.rb\nLine 34: expect(base.options[:third]).to eq(4)","file":"spec/base_spec.rb","line":34,"lexical":0.35,"target":false},{"text":"File: spec/base_spec.rb\nLine 163: expect(ClearCounter.class_options[:third]).to be nil","file":"spec/base_spec.rb","line":163,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 40: options[:third]","file":"spec/fixtures/group.thor","line":40,"lexical":0.35,"target":true}]} | |
| {"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/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","line":210,"lexical":0.44999999999999996,"target":true},{"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","line":212,"lexical":0.44999999999999996,"target":false},{"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","line":216,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 66: class InjectIntoFile < EmptyDirectory #:nodoc:","file":"lib/thor/actions/inject_into_file.rb","line":66,"lexical":0.65,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 566: describe \"#inject_into_class\" do","file":"spec/actions/file_manipulation_spec.rb","line":566,"lexical":0.44999999999999996,"target":false},{"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","line":572,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 577: action(:inject_into_class, \"application.rb\", \"Application\") { \" filter_parameters :password\\n\" }","file":"spec/actions/file_manipulation_spec.rb","line":577,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 582: expect(action(:inject_into_class, \"application.rb\", \"Application\", \" filter_parameters :password\\n\")).to eq(\" insert application.rb\\n\")","file":"spec/actions/file_manipulation_spec.rb","line":582,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 586: action :inject_into_class, \"application.rb\", \"App\", \" filter_parameters :password\\n\"","file":"spec/actions/file_manipulation_spec.rb","line":586,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 585: it \"injects class arguments into default usage\" do","file":"spec/thor_spec.rb","line":585,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/base.rb\nLine 546: # namespace is retrieved from the class name. If your Thor class is named","file":"lib/thor/base.rb","line":546,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 571: @namespace ||= Thor::Util.namespace_from_thor_class(self)","file":"lib/thor/base.rb","line":571,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/util.rb\nLine 11: # Thor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\"","file":"lib/thor/util.rb","line":11,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/util.rb\nLine 35: # namespace from a class, just call namespace on it.","file":"lib/thor/util.rb","line":35,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/util.rb\nLine 43: def namespace_from_thor_class(constant)","file":"lib/thor/util.rb","line":43,"lexical":0.44999999999999996,"target":false},{"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","line":110,"lexical":0.44999999999999996,"target":false},{"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","line":570,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/util_spec.rb\nLine 32: describe \"#namespace_from_thor_class\" do","file":"spec/util_spec.rb","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/util_spec.rb\nLine 34: expect(Thor::Util.namespace_from_thor_class(\"Foo::Bar::Baz\")).to eq(\"foo:bar:baz\")","file":"spec/util_spec.rb","line":34,"lexical":0.44999999999999996,"target":false},{"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","line":38,"lexical":0.44999999999999996,"target":false},{"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","line":42,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/util_spec.rb\nLine 43: expect(Thor::Util.namespace_from_thor_class(Thor::Util)).to eq(\"thor:util\")","file":"spec/util_spec.rb","line":43,"lexical":0.44999999999999996,"target":false},{"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","line":47,"lexical":0.44999999999999996,"target":false}]} | |
| {"site":"project_search","repo":"thor","task":"这个用于确保只允许单个项的方法是怎么定义的?","query":"only one","file":"spec/fixtures/script.thor","symbol":"only_one","line":345,"lang":"zh","candidates":[{"text":"File: lib/thor.rb\nLine 244: # Then it is required either only one of \"--one\" or \"--two\".","file":"lib/thor.rb","line":244,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 391: # Then it is required either only one of \"--one\" or \"--two\".","file":"lib/thor/base.rb","line":391,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 337: desc \"only_one\", \"\"","file":"spec/fixtures/script.thor","line":337,"lexical":0.39999999999999997,"target":true},{"text":"File: spec/fixtures/script.thor\nLine 345: def only_one","file":"spec/fixtures/script.thor","line":345,"lexical":0.39999999999999997,"target":false}]} | |
| {"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.rb\nLine 383: # Stop parsing of options as soon as an unknown option or a regular","file":"lib/thor.rb","line":383,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor.rb\nLine 397: # stop_on_unknown_option! :exec","file":"lib/thor.rb","line":397,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 420: def stop_on_unknown_option!(*command_names)","file":"lib/thor.rb","line":420,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 421: @stop_on_unknown_option = stop_on_unknown_option | command_names","file":"lib/thor.rb","line":421,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 424: def stop_on_unknown_option?(command) #:nodoc:","file":"lib/thor.rb","line":424,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 425: command && stop_on_unknown_option.include?(command.name.to_sym)","file":"lib/thor.rb","line":425,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 473: def stop_on_unknown_option #:nodoc:","file":"lib/thor.rb","line":473,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 474: @stop_on_unknown_option ||= []","file":"lib/thor.rb","line":474,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 518: if stop_on_unknown_option?(command) && !args.empty?","file":"lib/thor.rb","line":518,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 79: stop_on_unknown = self.class.stop_on_unknown_option? current_command","file":"lib/thor/base.rb","line":79,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 94: opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check, relations)","file":"lib/thor/base.rb","line":94,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 202: def stop_on_unknown_option?(command_name) #:nodoc:","file":"lib/thor/base.rb","line":202,"lexical":0.44999999999999996,"target":false},{"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","line":32,"lexical":0.65,"target":false},{"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","line":13,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 233: it \"stops parsing on unknown option\" do","file":"spec/parser/options_spec.rb","line":233,"lexical":0.65,"target":false},{"text":"File: spec/thor_spec.rb\nLine 92: describe \"#stop_on_unknown_option!\" do","file":"spec/thor_spec.rb","line":92,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 97: stop_on_unknown_option! :exec","file":"spec/thor_spec.rb","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 140: stop_on_unknown_option! :foo, :bar","file":"spec/thor_spec.rb","line":140,"lexical":0.44999999999999996,"target":false},{"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","line":143,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 144: expect(klass.stop_on_unknown_option?(double(name: \"bar\"))).to be true","file":"spec/thor_spec.rb","line":144,"lexical":0.44999999999999996,"target":false},{"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","line":145,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 151: stop_on_unknown_option! :foo","file":"spec/thor_spec.rb","line":151,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 152: stop_on_unknown_option! :bar","file":"spec/thor_spec.rb","line":152,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 155: expect(klass.stop_on_unknown_option?(double(name: \"foo\"))).to be true","file":"spec/thor_spec.rb","line":155,"lexical":0.44999999999999996,"target":false},{"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","line":156,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 157: expect(klass.stop_on_unknown_option?(double(name: \"baz\"))).to be false","file":"spec/thor_spec.rb","line":157,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 170: stop_on_unknown_option! :exec","file":"spec/thor_spec.rb","line":170,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/actions/create_link.rb\nLine 37: exists? && File.identical?(source, destination)","file":"lib/thor/actions/create_link.rb","line":37,"lexical":0.44999999999999996,"target":false},{"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","line":201,"lexical":0.65,"target":false},{"text":"File: spec/actions/create_file_spec.rb\nLine 208: it \"returns true if the destination file exists and is identical and contains multi-byte UTF-8 codepoints\" do","file":"spec/actions/create_file_spec.rb","line":208,"lexical":0.65,"target":false}]} | |
| {"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: spec/actions/inject_into_file_spec.rb\nLine 20: capture(:stdout) { invoker.insert_into_file(*args, &block) }","file":"spec/actions/inject_into_file_spec.rb","line":20,"lexical":0.44999999999999996,"target":true},{"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","line":24,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 28: capture(:stdout) { revoker.insert_into_file(*args, &block) }","file":"spec/actions/inject_into_file_spec.rb","line":28,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/register_spec.rb\nLine 43: class ClassOptionGroupPlugin < Thor::Group","file":"spec/register_spec.rb","line":43,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/register_spec.rb\nLine 224: describe \".register-ing a Thor::Group subclass with class options\" do","file":"spec/register_spec.rb","line":224,"lexical":0.44999999999999996,"target":false}]} | |
| {"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.rb\nLine 28: alias_method :default_task, :default_command","file":"lib/thor.rb","line":28,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 750: def from_superclass(method, default = nil)","file":"lib/thor/base.rb","line":750,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/command.rb\nLine 19: # By default, a command invokes a method in the thor class. You can change this","file":"lib/thor/command.rb","line":19,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 112: method_option :lazy, :lazy_default => \"yes\"","file":"spec/fixtures/script.thor","line":112,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 113: method_option :lazy_numeric, :type => :numeric, :lazy_default => 42","file":"spec/fixtures/script.thor","line":113,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 114: method_option :lazy_array, :type => :array, :lazy_default => %w[eat at joes]","file":"spec/fixtures/script.thor","line":114,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 115: method_option :lazy_hash, :type => :hash, :lazy_default => {'swedish' => 'meatballs'}","file":"spec/fixtures/script.thor","line":115,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 175: method_option :other, :type => :string, :default => \"method default\", :for => :animal","file":"spec/fixtures/script.thor","line":175,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 200: method_option :coats, :type => :numeric, :default => 2, :desc => 'how many coats of paint'","file":"spec/fixtures/script.thor","line":200,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 214: method_option :new_option, :type => :string, :for => :example_default_command","file":"spec/fixtures/script.thor","line":214,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 423: it \"overwrites default options if called on the method scope\" do","file":"spec/thor_spec.rb","line":423,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 429: it \"allows default options to be merged with method options\" do","file":"spec/thor_spec.rb","line":429,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 506: expect(options).to eq(\"other\" => \"method default\")","file":"spec/thor_spec.rb","line":506,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/actions.rb\nLine 198: # Goes to the root and execute the given block.","file":"lib/thor/actions.rb","line":198,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/actions_spec.rb\nLine 208: it \"executes the block in the root folder\" do","file":"spec/actions_spec.rb","line":208,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/error.rb\nLine 61: # Raised when a command was found, but not invoked properly.","file":"lib/thor/error.rb","line":61,"lexical":0.44999999999999996,"target":true},{"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","line":31,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 492: it \"raises an error if the invoked command does not exist\" do","file":"spec/thor_spec.rb","line":492,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions.rb\nLine 2: require_relative \"actions/create_link\"","file":"lib/thor/actions.rb","line":2,"lexical":0.39999999999999997,"target":false},{"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","line":15,"lexical":0.6000000000000001,"target":true},{"text":"File: lib/thor/actions/create_link.rb\nLine 17: def create_link(destination, *args)","file":"lib/thor/actions/create_link.rb","line":17,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/create_link.rb\nLine 20: action CreateLink.new(self, destination, source, config)","file":"lib/thor/actions/create_link.rb","line":20,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/create_link.rb\nLine 22: alias_method :add_link, :create_link","file":"lib/thor/actions/create_link.rb","line":22,"lexical":0.6000000000000001,"target":false},{"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","line":24,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/create_link.rb\nLine 27: class CreateLink < CreateFile #:nodoc:","file":"lib/thor/actions/create_link.rb","line":27,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/create_link.rb\nLine 44: # Create a symlink by default","file":"lib/thor/actions/create_link.rb","line":44,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 55: create_link destination, source, config","file":"lib/thor/actions/file_manipulation.rb","line":55,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/create_link_spec.rb\nLine 5: describe Thor::Actions::CreateLink, unless: windows? do","file":"spec/actions/create_link_spec.rb","line":5,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/create_link_spec.rb\nLine 28: Thor::Actions::CreateLink.new(base, destination, source, config)","file":"spec/actions/create_link_spec.rb","line":28,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/create_link_spec.rb\nLine 43: it \"creates a symbolic link\" do","file":"spec/actions/create_link_spec.rb","line":43,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/create_link_spec.rb\nLine 55: it \"creates a hard link\" do","file":"spec/actions/create_link_spec.rb","line":55,"lexical":0.6000000000000001,"target":false},{"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","line":63,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/create_link_spec.rb\nLine 72: it \"does not create a link\" do","file":"spec/actions/create_link_spec.rb","line":72,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 160: expect(action(:link_file, \"command.thor\")).to eq(\" create command.thor\\n\")","file":"spec/actions/file_manipulation_spec.rb","line":160,"lexical":0.39999999999999997,"target":false}]} | |
| {"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.rb\nLine 252: # Prints help information for the given command.","file":"lib/thor.rb","line":252,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 283: # Prints help information for this class.","file":"lib/thor.rb","line":283,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/group.rb\nLine 24: # Prints help information.","file":"lib/thor/group.rb","line":24,"lexical":0.44999999999999996,"target":true}]} | |
| {"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 60: puts msg","file":"spec/register_spec.rb","line":60,"lexical":0.39999999999999997,"target":true},{"text":"File: spec/register_spec.rb\nLine 79: puts msg","file":"spec/register_spec.rb","line":79,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: lib/thor.rb\nLine 200: # If you give \"--one\" and \"--two\" at the same time ExclusiveArgumentsError","file":"lib/thor.rb","line":200,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 355: # If you give \"--one\" and \"--two\" at the same time ExclusiveArgumentsError","file":"lib/thor/base.rb","line":355,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/error.rb\nLine 101: class ExclusiveArgumentError < InvocationError","file":"lib/thor/error.rb","line":101,"lexical":0.65,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 152: fail ExclusiveArgumentError, \"Found exclusive #{class_name} #{names.join(\", \")}\"","file":"lib/thor/parser/options.rb","line":152,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/base_spec.rb\nLine 93: end.to raise_error(Thor::ExclusiveArgumentError, \"Found exclusive options '--one', '--two'\")","file":"spec/base_spec.rb","line":93,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/base_spec.rb\nLine 97: end.to raise_error(Thor::ExclusiveArgumentError, \"Found exclusive options '--five', '--six'\")","file":"spec/base_spec.rb","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 266: expect{parse(%w[--foo --bar])}.to raise_error(Thor::ExclusiveArgumentError, \"Found exclusive options '--foo', '--bar'\")","file":"spec/parser/options_spec.rb","line":266,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 296: expect{parse(%w[--foo --bar])}.to raise_error(Thor::ExclusiveArgumentError, \"Found exclusive options '--foo', '--bar'\")","file":"spec/parser/options_spec.rb","line":296,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: 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","line":302,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 307: # flag<Regexp|String>:: the regexp or string used to decide which lines to uncomment","file":"lib/thor/actions/file_manipulation.rb","line":307,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/invocation.rb\nLine 15: Thor::Util.find_class_and_command_by_namespace(name.to_s, !key)","file":"lib/thor/invocation.rb","line":15,"lexical":0.35,"target":true},{"text":"File: lib/thor/runner.rb\nLine 23: klass, command = Thor::Util.find_class_and_command_by_namespace(meth)","file":"lib/thor/runner.rb","line":23,"lexical":0.35,"target":false},{"text":"File: lib/thor/runner.rb\nLine 37: klass, command = Thor::Util.find_class_and_command_by_namespace(meth)","file":"lib/thor/runner.rb","line":37,"lexical":0.35,"target":false},{"text":"File: lib/thor/util.rb\nLine 131: def find_class_and_command_by_namespace(namespace, fallback = true)","file":"lib/thor/util.rb","line":131,"lexical":0.35,"target":false},{"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","line":148,"lexical":0.35,"target":false},{"text":"File: spec/util_spec.rb\nLine 90: describe \"#find_class_and_command_by_namespace\" do","file":"spec/util_spec.rb","line":90,"lexical":0.35,"target":false},{"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","line":92,"lexical":0.35,"target":false},{"text":"File: spec/util_spec.rb\nLine 96: expect(Thor::Util.find_class_and_command_by_namespace(\"thor\")).to eq([Thor, nil])","file":"spec/util_spec.rb","line":96,"lexical":0.35,"target":false},{"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","line":100,"lexical":0.35,"target":false},{"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","line":105,"lexical":0.35,"target":false},{"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","line":110,"lexical":0.35,"target":false},{"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","line":114,"lexical":0.35,"target":false},{"text":"File: spec/util_spec.rb\nLine 115: expect(Thor::Util.find_class_and_command_by_namespace(\"fruits:pear\")).to eq([Pear, \"pear\"])","file":"spec/util_spec.rb","line":115,"lexical":0.35,"target":false},{"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","line":119,"lexical":0.35,"target":false},{"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","line":123,"lexical":0.35,"target":false}]} | |
| {"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: lib/thor/actions.rb\nLine 72: def initialize(args = [], options = {}, config = {})","file":"lib/thor/actions.rb","line":72,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 54: def initialize(args = [], local_options = {}, config = {})","file":"lib/thor/base.rb","line":54,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/invocation.rb\nLine 23: def initialize(args = [], options = {}, config = {}, &block) #:nodoc:","file":"lib/thor/invocation.rb","line":23,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/invocation.rb\nLine 25: @_initializer = [args, options, config]","file":"lib/thor/invocation.rb","line":25,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/shell.rb\nLine 44: def initialize(args = [], options = {}, config = {})","file":"lib/thor/shell.rb","line":44,"lexical":0.44999999999999996,"target":false}]} | |
| {"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.rb\nLine 70: # destination_root<String>:: The root directory needed for some actions.","file":"lib/thor/actions.rb","line":70,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/actions.rb\nLine 84: self.destination_root = config[:destination_root]","file":"lib/thor/actions.rb","line":84,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 97: # Returns the root for this thor class (also aliased as destination root).","file":"lib/thor/actions.rb","line":97,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 99: def destination_root","file":"lib/thor/actions.rb","line":99,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 106: def destination_root=(root)","file":"lib/thor/actions.rb","line":106,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 108: @destination_stack[0] = File.expand_path(root || \"\")","file":"lib/thor/actions.rb","line":108,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 114: def relative_to_original_destination_root(path, remove_dot = true)","file":"lib/thor/actions.rb","line":114,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 115: root = @destination_stack[0]","file":"lib/thor/actions.rb","line":115,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 135: relative_root = relative_to_original_destination_root(destination_root, false)","file":"lib/thor/actions.rb","line":135,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 176: @destination_stack.push File.expand_path(dir, destination_root)","file":"lib/thor/actions.rb","line":176,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 179: if !File.exist?(destination_root) && !pretend","file":"lib/thor/actions.rb","line":179,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 181: FileUtils.mkdir_p(destination_root)","file":"lib/thor/actions.rb","line":181,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 187: result = block.arity == 1 ? yield(destination_root) : yield","file":"lib/thor/actions.rb","line":187,"lexical":0.39999999999999997,"target":false},{"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","line":190,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 251: destination = relative_to_original_destination_root(destination_root, false)","file":"lib/thor/actions.rb","line":251,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 326: super.merge!(destination_root: destination_root)","file":"lib/thor/actions.rb","line":326,"lexical":0.39999999999999997,"target":false},{"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","line":5,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/create_file.rb\nLine 9: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/create_file.rb","line":9,"lexical":0.39999999999999997,"target":false},{"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","line":5,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/create_link.rb\nLine 8: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/create_link.rb","line":8,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/directory.rb\nLine 38: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/directory.rb","line":38,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 6: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/empty_directory.rb","line":6,"lexical":0.39999999999999997,"target":false},{"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","line":73,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 88: @destination = ::File.expand_path(@given_destination, base.destination_root)","file":"lib/thor/actions/empty_directory.rb","line":88,"lexical":0.39999999999999997,"target":false},{"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","line":89,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 10: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/file_manipulation.rb","line":10,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 41: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/file_manipulation.rb","line":41,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 67: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/file_manipulation.rb","line":67,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 108: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/file_manipulation.rb","line":108,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 147: path = File.expand_path(path, destination_root)","file":"lib/thor/actions/file_manipulation.rb","line":147,"lexical":0.39999999999999997,"target":false},{"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","line":148,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 268: path = File.expand_path(path, destination_root)","file":"lib/thor/actions/file_manipulation.rb","line":268,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/actions/create_file_spec.rb\nLine 18: capture(:stdout) { @action.invoke! }","file":"spec/actions/create_file_spec.rb","line":18,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/create_link_spec.rb\nLine 32: capture(:stdout) { action.invoke! }","file":"spec/actions/create_link_spec.rb","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 20: capture(:stdout) { invoker.directory(*args, &block) }","file":"spec/actions/directory_spec.rb","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 14: capture(:stdout) { @action.invoke! }","file":"spec/actions/empty_directory_spec.rb","line":14,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 20: capture(:stdout) { invoker.insert_into_file(*args, &block) }","file":"spec/actions/inject_into_file_spec.rb","line":20,"lexical":0.44999999999999996,"target":false},{"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","line":24,"lexical":0.44999999999999996,"target":false},{"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","line":12,"lexical":0.44999999999999996,"target":false},{"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","line":16,"lexical":0.44999999999999996,"target":false},{"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","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/group_spec.rb\nLine 124: expect(capture(:stdout) { G.start(%w(--skip-invoked)) }).not_to match(/invoke/)","file":"spec/group_spec.rb","line":124,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/group_spec.rb\nLine 128: content = capture(:stdout) { G.start(%w(--invoked unknown)) }","file":"spec/group_spec.rb","line":128,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/group_spec.rb\nLine 169: expect(capture(:stdout) { H.start(%w(--no-defined)) }).not_to match(/invoke/)","file":"spec/group_spec.rb","line":169,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 7: expect(capture(:stdout) { A.new.invoke(:two) }).to eq(\"2\\n3\\n\")","file":"spec/invocation_spec.rb","line":7,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 11: expect(capture(:stdout) { A.new.invoke(:one) }).to eq(\"1\\n2\\n3\\n\")","file":"spec/invocation_spec.rb","line":11,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 15: expect(capture(:stdout) { Defined.new.invoke(:one) }).to eq(\"1\\n2\\n3\\n4\\n5\\n\")","file":"spec/invocation_spec.rb","line":15,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 24: content = capture(:stdout) { A.new.invoke(\"b\") }","file":"spec/invocation_spec.rb","line":24,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 30: content = capture(:stdout) { A.new.invoke(B) }","file":"spec/invocation_spec.rb","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 79: expect(capture(:stdout) { A.new.invoke(:c) }).to eq(\"1\\n2\\n3\\n\")","file":"spec/invocation_spec.rb","line":79,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 85: expect(capture(:stdout) { base.invoke(:c) }).to be_empty","file":"spec/invocation_spec.rb","line":85,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 91: expect(capture(:stdout) { base.invoke(\"c:one\") }).to be_empty","file":"spec/invocation_spec.rb","line":91,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/error.rb\nLine 28: def initialize(error)","file":"lib/thor/error.rb","line":28,"lexical":0.6000000000000001,"target":true},{"text":"File: lib/thor/error.rb\nLine 69: def initialize(error)","file":"lib/thor/error.rb","line":69,"lexical":0.6000000000000001,"target":false}]} | |
| {"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: lib/thor.rb\nLine 56: command = find_and_refresh_command(options[:for])","file":"lib/thor.rb","line":56,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 80: command = find_and_refresh_command(options[:for])","file":"lib/thor.rb","line":80,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 168: find_and_refresh_command(options[:for]).options","file":"lib/thor.rb","line":168,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 709: def find_and_refresh_command(name) #:nodoc:","file":"lib/thor/base.rb","line":709,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 718: alias_method :find_and_refresh_task, :find_and_refresh_command","file":"lib/thor/base.rb","line":718,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 819: find_and_refresh_command(options[:for]).send(name)","file":"lib/thor/base.rb","line":819,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor.rb\nLine 16: # Sets the default command when thor is executed without an explicit command to be called.","file":"lib/thor.rb","line":16,"lexical":0.65,"target":false},{"text":"File: lib/thor/command.rb\nLine 19: # By default, a command invokes a method in the thor class. You can change this","file":"lib/thor/command.rb","line":19,"lexical":0.65,"target":false},{"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","line":124,"lexical":0.55,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 23: it \"invokes the default command if none is given to a Thor class\" do","file":"spec/invocation_spec.rb","line":23,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/register_spec.rb\nLine 75: class PluginWithDefaultcommandAndDeclaredArgument < Thor","file":"spec/register_spec.rb","line":75,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/register_spec.rb\nLine 85: class SubcommandWithDefault < Thor","file":"spec/register_spec.rb","line":85,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/runner_spec.rb\nLine 67: it \"invokes the default command from a specific Thor class if none is specified\" do","file":"spec/runner_spec.rb","line":67,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/runner_spec.rb\nLine 69: expect(Thor::Runner.start).to eq(\"default command\")","file":"spec/runner_spec.rb","line":69,"lexical":0.44999999999999996,"target":false},{"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","line":110,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/shell.rb\nLine 15: Thor::Shell::Basic","file":"lib/thor/shell.rb","line":15,"lexical":0.35,"target":false},{"text":"File: lib/thor/shell.rb\nLine 42: # MyScript.new [1.0], { :foo => :bar }, :shell => Thor::Shell::Basic.new","file":"lib/thor/shell.rb","line":42,"lexical":0.35,"target":false},{"text":"File: lib/thor/shell/basic.rb\nLine 256: # Thor::Shell::Basic class.","file":"lib/thor/shell/basic.rb","line":256,"lexical":0.35,"target":false},{"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","line":8,"lexical":0.35,"target":false},{"text":"File: lib/thor/shell/color.rb\nLine 9: # Thor::Shell::Basic to see all available methods.","file":"lib/thor/shell/color.rb","line":9,"lexical":0.35,"target":false},{"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","line":6,"lexical":0.35,"target":false},{"text":"File: lib/thor/shell/html.rb\nLine 7: # Thor::Shell::Basic to see all available methods.","file":"lib/thor/shell/html.rb","line":7,"lexical":0.35,"target":false},{"text":"File: spec/helper.rb\nLine 30: Thor::Base.shell = Thor::Shell::Basic","file":"spec/helper.rb","line":30,"lexical":0.35,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 4: describe Thor::Shell::Basic do","file":"spec/shell/basic_spec.rb","line":4,"lexical":0.35,"target":true},{"text":"File: spec/shell/basic_spec.rb\nLine 6: @shell ||= Thor::Shell::Basic.new","file":"spec/shell/basic_spec.rb","line":6,"lexical":0.35,"target":false},{"text":"File: spec/shell_spec.rb\nLine 26: class Thor::Shell::TestShell < Thor::Shell::Basic; end","file":"spec/shell_spec.rb","line":26,"lexical":0.35,"target":false},{"text":"File: spec/tree_spec.rb\nLine 27: let(:shell) { Thor::Shell::Basic.new }","file":"spec/tree_spec.rb","line":27,"lexical":0.35,"target":false}]} | |
| {"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/invocation.rb\nLine 115: args, opts, config = _parse_initialization_options(args, opts, config)","file":"lib/thor/invocation.rb","line":115,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/invocation.rb\nLine 166: def _parse_initialization_options(args, opts, config) #:nodoc:","file":"lib/thor/invocation.rb","line":166,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/quality_spec.rb\nLine 2: def check_for_spec_defs_with_single_quotes(filename)","file":"spec/quality_spec.rb","line":2,"lexical":0.65,"target":true},{"text":"File: spec/quality_spec.rb\nLine 58: error_messages << check_for_spec_defs_with_single_quotes(filename)","file":"spec/quality_spec.rb","line":58,"lexical":0.65,"target":false}]} | |
| {"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/actions/create_file_spec.rb\nLine 128: it \"skips the file if the file collision menu returns false\" do","file":"spec/actions/create_file_spec.rb","line":128,"lexical":0.39999999999999997,"target":false},{"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","line":194,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 19: it \"returns false when ::Readline does not exist\" do","file":"spec/line_editor/readline_spec.rb","line":19,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 123: it \"asks the user and returns false if the user replies no\" do","file":"spec/shell/basic_spec.rb","line":123,"lexical":0.39999999999999997,"target":false},{"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","line":128,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 140: it \"asks the user and returns false if the user replies yes\" do","file":"spec/shell/basic_spec.rb","line":140,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 145: 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","line":145,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 506: it \"returns false if the user chooses no\" do","file":"spec/shell/basic_spec.rb","line":506,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 350: it \"returns false for a command that is not defined in the class\" do","file":"spec/thor_spec.rb","line":350,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: lib/thor/shell/terminal.rb\nLine 13: unix? ? dynamic_width : DEFAULT_TERMINAL_WIDTH","file":"lib/thor/shell/terminal.rb","line":13,"lexical":0.65,"target":true},{"text":"File: lib/thor/shell/terminal.rb\nLine 26: # Calculate the dynamic width of the terminal","file":"lib/thor/shell/terminal.rb","line":26,"lexical":0.65,"target":false}]} | |
| {"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: 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","line":33,"lexical":0.39999999999999997,"target":false},{"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","line":47,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/create_file_spec.rb\nLine 70: expect(File.exist?(File.join(destination_root, \"doc/rdoc.rb.tt\"))).to be true","file":"spec/actions/create_file_spec.rb","line":70,"lexical":0.39999999999999997,"target":false},{"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","line":89,"lexical":0.39999999999999997,"target":false},{"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","line":113,"lexical":0.39999999999999997,"target":false},{"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","line":45,"lexical":0.39999999999999997,"target":false},{"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","line":65,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/create_link_spec.rb\nLine 74: expect(File.exist?(File.join(destination_root, \"doc/config.rb\"))).to be false","file":"spec/actions/create_link_spec.rb","line":74,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 65: file = File.join(destination_root, \"commands\", \"doc\")","file":"spec/actions/directory_spec.rb","line":65,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 68: file = File.join(destination_root, \"commands\", \"doc\", \"README\")","file":"spec/actions/directory_spec.rb","line":68,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 74: file = File.join(destination_root, \"docs\", \"excluding\", \"rdoc.rb\")","file":"spec/actions/directory_spec.rb","line":74,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 80: file = File.join(destination_root, \"docs\", \"excluding\", \"rdoc.rb\")","file":"spec/actions/directory_spec.rb","line":80,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 94: file = File.join(destination_root, \"docs\", \"rdoc.rb\")","file":"spec/actions/directory_spec.rb","line":94,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 108: file = File.join(destination_root, \"docs\", \"components\")","file":"spec/actions/directory_spec.rb","line":108,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 115: file = File.join(destination_root, \"docs\", \"components\", \".empty_directory\")","file":"spec/actions/directory_spec.rb","line":115,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 121: file = File.join(destination_root, \"docs\", \"components\")","file":"spec/actions/directory_spec.rb","line":121,"lexical":0.39999999999999997,"target":false},{"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","line":175,"lexical":0.39999999999999997,"target":false},{"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","line":176,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 177: expect(File.exist?(File.join(destination_root, \"doc\", \"components\"))).to be false","file":"spec/actions/directory_spec.rb","line":177,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 27: expect(empty_directory(\"doc\").destination).to eq(File.join(destination_root, \"doc\"))","file":"spec/actions/empty_directory_spec.rb","line":27,"lexical":0.39999999999999997,"target":false},{"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","line":32,"lexical":0.39999999999999997,"target":false},{"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","line":57,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 223: file = File.join(destination_root, \"doc/block_helper.rb\")","file":"spec/actions/file_manipulation_spec.rb","line":223,"lexical":0.39999999999999997,"target":true},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 231: file = File.join(destination_root, \"doc/config.rb\")","file":"spec/actions/file_manipulation_spec.rb","line":231,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 238: file = File.join(destination_root, \"doc/configuration.rb\")","file":"spec/actions/file_manipulation_spec.rb","line":238,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 245: file = File.join(destination_root, \"doc/rdoc.rb\")","file":"spec/actions/file_manipulation_spec.rb","line":245,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 252: file = File.join(destination_root, \"doc/rdoc.rb\")","file":"spec/actions/file_manipulation_spec.rb","line":252,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 266: expect(File.read(File.join(destination_root, \"doc/config.rb\"))).to match(/^OMG/)","file":"spec/actions/file_manipulation_spec.rb","line":266,"lexical":0.39999999999999997,"target":false},{"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","line":273,"lexical":0.39999999999999997,"target":false},{"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","line":282,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 305: File.join(destination_root, \"doc\", \"README\")","file":"spec/actions/file_manipulation_spec.rb","line":305,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 323: expect(File.exist?(File.join(destination_root, \"doc\"))).to be false","file":"spec/actions/file_manipulation_spec.rb","line":323,"lexical":0.39999999999999997,"target":false}]} | |
| {"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.rb\nLine 129: def method_options(options = nil)","file":"lib/thor.rb","line":129,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor.rb\nLine 130: @method_options ||= {}","file":"lib/thor.rb","line":130,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 131: build_options(options, @method_options) if options","file":"lib/thor.rb","line":131,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 132: @method_options","file":"lib/thor.rb","line":132,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 135: alias_method :options, :method_options","file":"lib/thor.rb","line":135,"lexical":0.39999999999999997,"target":false},{"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","line":137,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 163: def method_option(name, options = {})","file":"lib/thor.rb","line":163,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 170: method_options","file":"lib/thor.rb","line":170,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 204: register_options_relation_for(:method_options,","file":"lib/thor.rb","line":204,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 247: register_options_relation_for(:method_options,","file":"lib/thor.rb","line":247,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 571: commands[meth] = base_class.new(meth, @desc, @long_desc, @long_desc_wrap, @usage, method_options, relations)","file":"lib/thor.rb","line":571,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 572: @usage, @desc, @long_desc, @long_desc_wrap, @method_options, @hide = nil","file":"lib/thor.rb","line":572,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 595: class_options.merge!(method_options)","file":"lib/thor.rb","line":595,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 596: @method_options = nil","file":"lib/thor.rb","line":596,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 432: undef_method name, \"#{name}=\" if options[:undefine]","file":"lib/thor/base.rb","line":432,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 498: # options<Hash>:: You can give :undefine => true if you want commands the method","file":"lib/thor/base.rb","line":498,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 507: undef_method name if options[:undefine]","file":"lib/thor/base.rb","line":507,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 687: # options<Hash>:: Described in both class_option and method_option.","file":"lib/thor/base.rb","line":687,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 797: # Register a relation of options for target(method_option/class_option)","file":"lib/thor/base.rb","line":797,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 807: # Get target(method_options or class_options) options","file":"lib/thor/base.rb","line":807,"lexical":0.39999999999999997,"target":false},{"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","line":18,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/runner.rb\nLine 44: method_options as: :string, relative: :boolean, force: :boolean","file":"lib/thor/runner.rb","line":44,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/runner.rb\nLine 166: method_options internal: :boolean","file":"lib/thor/runner.rb","line":166,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/runner.rb\nLine 173: method_options substring: :boolean, group: :string, all: :boolean, debug: :boolean","file":"lib/thor/runner.rb","line":173,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/shell/basic.rb\nLine 180: def print_table(array, options = {}) # rubocop:disable Metrics/MethodLength","file":"lib/thor/shell/basic.rb","line":180,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/shell/color.rb\nLine 58: # Pass foreground, background and bold options to this method as","file":"lib/thor/shell/color.rb","line":58,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/command.thor\nLine 9: method_options :forcefully => :boolean","file":"spec/fixtures/command.thor","line":9,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 94: options[:fail] ? this_method_does_not_exist : 5","file":"spec/fixtures/group.thor","line":94,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 70: method_options :with => :string","file":"spec/fixtures/script.thor","line":70,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 111: method_options :all => :boolean","file":"spec/fixtures/script.thor","line":111,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 160: method_options :force => :boolean, :param => :numeric","file":"spec/fixtures/script.thor","line":160,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 166: method_options :param => :required","file":"spec/fixtures/script.thor","line":166,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/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","line":12,"lexical":0.65,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 7: expect(capture(:stdout) { A.new.invoke(:two) }).to eq(\"2\\n3\\n\")","file":"spec/invocation_spec.rb","line":7,"lexical":0.65,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 11: expect(capture(:stdout) { A.new.invoke(:one) }).to eq(\"1\\n2\\n3\\n\")","file":"spec/invocation_spec.rb","line":11,"lexical":0.65,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 15: expect(capture(:stdout) { Defined.new.invoke(:one) }).to eq(\"1\\n2\\n3\\n4\\n5\\n\")","file":"spec/invocation_spec.rb","line":15,"lexical":0.65,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 79: expect(capture(:stdout) { A.new.invoke(:c) }).to eq(\"1\\n2\\n3\\n\")","file":"spec/invocation_spec.rb","line":79,"lexical":0.65,"target":false}]} | |
| {"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/parser/options_spec.rb\nLine 509: create attributes: Thor::Option.new(\"attributes\", type: :array, repeatable: true)","file":"spec/parser/options_spec.rb","line":509,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 515: create fruit: Thor::Option.new(\"fruits\", type: :array, enum: enum)","file":"spec/parser/options_spec.rb","line":515,"lexical":0.44999999999999996,"target":false}]} | |
| {"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.rb\nLine 445: # command_name<String>:: The name of the command to check for existence.","file":"lib/thor.rb","line":445,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/group.rb\nLine 217: # command_name<String>:: The name of the command to check for existence.","file":"lib/thor/group.rb","line":217,"lexical":0.44999999999999996,"target":false}]} | |
| {"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.rb\nLine 267: print_exclusive_options(shell, command)","file":"lib/thor.rb","line":267,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 268: print_at_least_one_required_options(shell, command)","file":"lib/thor.rb","line":268,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 304: print_exclusive_options(shell)","file":"lib/thor.rb","line":304,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 305: print_at_least_one_required_options(shell)","file":"lib/thor.rb","line":305,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 482: def print_exclusive_options(shell, command = nil) # :nodoc:","file":"lib/thor.rb","line":482,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 493: def print_at_least_one_required_options(shell, command = nil) # :nodoc:","file":"lib/thor.rb","line":493,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 648: print_options(shell, global_options)","file":"lib/thor/base.rb","line":648,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 652: print_options(shell, options, group_name)","file":"lib/thor/base.rb","line":652,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 657: def print_options(shell, options, group_name = nil)","file":"lib/thor/base.rb","line":657,"lexical":0.44999999999999996,"target":false}]} | |
| {"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.rb\nLine 289: list = printable_commands(true, subcommand)","file":"lib/thor.rb","line":289,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 291: list += klass.printable_commands(false)","file":"lib/thor.rb","line":291,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 301: shell.print_table(list, indent: 2, truncate: true)","file":"lib/thor.rb","line":301,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 309: def printable_commands(all = true, subcommand = false)","file":"lib/thor.rb","line":309,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 318: alias_method :printable_tasks, :printable_commands","file":"lib/thor.rb","line":318,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 488: shell.print_table(opts.map{ |ex| ex.map{ |e| \"--#{e}\"}}, indent: 2 )","file":"lib/thor.rb","line":488,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 499: shell.print_table(opts.map{ |ex| ex.map{ |e| \"--#{e}\"}}, indent: 2 )","file":"lib/thor.rb","line":499,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 673: shell.print_table(list, indent: 2)","file":"lib/thor/base.rb","line":673,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/group.rb\nLine 199: def printable_commands(*)","file":"lib/thor/group.rb","line":199,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/group.rb\nLine 205: alias_method :printable_tasks, :printable_commands","file":"lib/thor/group.rb","line":205,"lexical":0.39999999999999997,"target":false},{"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","line":299,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/runner.rb\nLine 302: groups.map! { |k| k.printable_commands(false).first }","file":"lib/thor/runner.rb","line":302,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/runner.rb\nLine 316: print_table(list, truncate: true)","file":"lib/thor/runner.rb","line":316,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/runner.rb\nLine 332: print_table info","file":"lib/thor/runner.rb","line":332,"lexical":0.39999999999999997,"target":false},{"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","line":24,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/shell/basic.rb\nLine 2: require_relative \"table_printer\"","file":"lib/thor/shell/basic.rb","line":2,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/shell/basic.rb\nLine 170: # Prints a table.","file":"lib/thor/shell/basic.rb","line":170,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/shell/basic.rb\nLine 180: def print_table(array, options = {}) # rubocop:disable Metrics/MethodLength","file":"lib/thor/shell/basic.rb","line":180,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/shell/basic.rb\nLine 181: printer = TablePrinter.new(stdout, options)","file":"lib/thor/shell/basic.rb","line":181,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/shell/table_printer.rb\nLine 6: class TablePrinter < ColumnPrinter","file":"lib/thor/shell/table_printer.rb","line":6,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 342: describe \"#print_table\" do","file":"spec/shell/basic_spec.rb","line":342,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 350: it \"prints a table\" do","file":"spec/shell/basic_spec.rb","line":350,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 351: content = capture(:stdout) { shell.print_table(@table) }","file":"spec/shell/basic_spec.rb","line":351,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 359: it \"prints a table with indentation\" do","file":"spec/shell/basic_spec.rb","line":359,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 360: content = capture(:stdout) { shell.print_table(@table, indent: 2) }","file":"spec/shell/basic_spec.rb","line":360,"lexical":0.39999999999999997,"target":false},{"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","line":371,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 382: content = capture(:stdout) { shell.print_table(@table, colwidth: 10) }","file":"spec/shell/basic_spec.rb","line":382,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 390: it \"prints tables with implicit columns\" do","file":"spec/shell/basic_spec.rb","line":390,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 392: content = capture(:stdout) { shell.print_table(@table) }","file":"spec/shell/basic_spec.rb","line":392,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 400: it \"prints a table with small numbers and right-aligns them\" do","file":"spec/shell/basic_spec.rb","line":400,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 405: content = capture(:stdout) { shell.print_table(table) }","file":"spec/shell/basic_spec.rb","line":405,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 417: content = capture(:stdout) { shell.print_table(table) }","file":"spec/shell/basic_spec.rb","line":417,"lexical":0.39999999999999997,"target":false}]} | |
| {"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.rb\nLine 442: # Checks if a specified command exists.","file":"lib/thor.rb","line":442,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 448: # Boolean:: +true+ if the command exists, +false+ otherwise.","file":"lib/thor.rb","line":448,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 449: def command_exists?(command_name) #:nodoc:","file":"lib/thor.rb","line":449,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/group.rb\nLine 214: # Checks if a specified command exists.","file":"lib/thor/group.rb","line":214,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/group.rb\nLine 220: # Boolean:: +true+ if the command exists, +false+ otherwise.","file":"lib/thor/group.rb","line":220,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/group.rb\nLine 221: def command_exists?(command_name) #:nodoc:","file":"lib/thor/group.rb","line":221,"lexical":0.39999999999999997,"target":false},{"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","line":136,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 54: exists_and_identical?(\"command.thor\", \"command.thor\")","file":"spec/actions/file_manipulation_spec.rb","line":54,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 59: exists_and_identical?(\"command.thor\", \"foo.thor\")","file":"spec/actions/file_manipulation_spec.rb","line":59,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 144: exists_and_identical?(\"command.thor\", \"command.thor\")","file":"spec/actions/file_manipulation_spec.rb","line":144,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 149: exists_and_identical?(\"command.thor\", \"foo.thor\")","file":"spec/actions/file_manipulation_spec.rb","line":149,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/group_spec.rb\nLine 189: describe \"#command_exists?\" do","file":"spec/group_spec.rb","line":189,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/group_spec.rb\nLine 191: expect(MyCounter.command_exists?(\"one\")).to be true","file":"spec/group_spec.rb","line":191,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/group_spec.rb\nLine 195: expect(MyCounter.command_exists?(\"zero\")).to be false","file":"spec/group_spec.rb","line":195,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 343: describe \"#command_exists?\" do","file":"spec/thor_spec.rb","line":343,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 345: expect(MyScript.command_exists?(\"zoo\")).to be true","file":"spec/thor_spec.rb","line":345,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 346: expect(MyScript.command_exists?(\"name-with-dashes\")).to be true","file":"spec/thor_spec.rb","line":346,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 347: expect(MyScript.command_exists?(\"animal_prison\")).to be true","file":"spec/thor_spec.rb","line":347,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 351: expect(MyScript.command_exists?(\"animal_heaven\")).to be false","file":"spec/thor_spec.rb","line":351,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: lib/thor/error.rb\nLine 2: Correctable = if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # rubocop:disable Naming/ConstantName","file":"lib/thor/error.rb","line":2,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 143: it \"raises an error if repeatable and default is inconsistent with type and check_default_type is true\" do","file":"spec/parser/option_spec.rb","line":143,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 145: option(\"foo_bar\", type: :numeric, repeatable: true, default: \"baz\", check_default_type: true)","file":"spec/parser/option_spec.rb","line":145,"lexical":0.39999999999999997,"target":false},{"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","line":149,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 151: option(\"foo_bar\", type: :hash, repeatable: true, default: \"baz\", check_default_type: true)","file":"spec/parser/option_spec.rb","line":151,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 155: it \"does not raises an error if type hash is repeatable and default is consistent with type and check_default_type is true\" do","file":"spec/parser/option_spec.rb","line":155,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 157: option(\"foo_bar\", type: :hash, repeatable: true, default: {}, check_default_type: true)","file":"spec/parser/option_spec.rb","line":157,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 161: it \"does not raises an error if repeatable and default is consistent with type and check_default_type is true\" do","file":"spec/parser/option_spec.rb","line":161,"lexical":0.39999999999999997,"target":false},{"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","line":163,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/quality_spec.rb\nLine 12: def check_for_tab_characters(filename)","file":"spec/quality_spec.rb","line":12,"lexical":0.39999999999999997,"target":true},{"text":"File: spec/quality_spec.rb\nLine 45: error_messages << check_for_tab_characters(filename)","file":"spec/quality_spec.rb","line":45,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/actions.rb\nLine 274: abort if !success && config.fetch(:abort_on_failure, self.class.exit_on_failure?)","file":"lib/thor/actions.rb","line":274,"lexical":0.65,"target":false},{"text":"File: lib/thor/base.rb\nLine 588: exit(false) if exit_on_failure?","file":"lib/thor/base.rb","line":588,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 629: def exit_on_failure?","file":"lib/thor/base.rb","line":629,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 630: Thor.deprecation_warning \"Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `#{self.name}`\"","file":"lib/thor/base.rb","line":630,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/runner.rb\nLine 14: def self.exit_on_failure?","file":"lib/thor/runner.rb","line":14,"lexical":0.44999999999999996,"target":true},{"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","line":316,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 330: expect { action :run, \"false\", abort_on_failure: true, capture: true }.to raise_error(SystemExit)","file":"spec/actions_spec.rb","line":330,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 344: context \"exit_on_failure? is true\" do","file":"spec/actions_spec.rb","line":344,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 346: allow(MyCounter).to receive(:exit_on_failure?).and_return(true)","file":"spec/actions_spec.rb","line":346,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/command.thor","line":4,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/exit_status.thor","line":4,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 5: def self.exit_on_failure?","file":"spec/fixtures/group.thor","line":5,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":4,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 186: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":186,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 224: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":224,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 248: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":248,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?","file":"spec/fixtures/verbose.thor","line":8,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/subcommand_spec.rb\nLine 59: def self.exit_on_failure?","file":"spec/subcommand_spec.rb","line":59,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 177: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":177,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 231: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":231,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 297: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":297,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 877: context \"without an exit_on_failure? method\" do","file":"spec/thor_spec.rb","line":877,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 887: end.to output(/^Deprecation.*exit_on_failure/).to_stderr","file":"spec/thor_spec.rb","line":887,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions.rb\nLine 18: # Hold source paths for one Thor instance. source_paths_for_search is the","file":"lib/thor/actions.rb","line":18,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/actions.rb\nLine 38: def source_paths_for_search","file":"lib/thor/actions.rb","line":38,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 128: @source_paths ||= self.class.source_paths_for_search","file":"lib/thor/actions.rb","line":128,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions_spec.rb\nLine 109: describe \"#source_paths_for_search\" do","file":"spec/actions_spec.rb","line":109,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions_spec.rb\nLine 110: it \"add source_root to source_paths_for_search\" do","file":"spec/actions_spec.rb","line":110,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions_spec.rb\nLine 111: expect(MyCounter.source_paths_for_search).to include(File.expand_path(\"fixtures\", File.dirname(__FILE__)))","file":"spec/actions_spec.rb","line":111,"lexical":0.39999999999999997,"target":false},{"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","line":115,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions_spec.rb\nLine 116: expect(ClearCounter.source_paths_for_search).not_to include(File.expand_path(\"fixtures\", File.dirname(__FILE__)))","file":"spec/actions_spec.rb","line":116,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions_spec.rb\nLine 120: expect(ClearCounter.source_paths_for_search[0]).to eq(File.expand_path(\"fixtures/doc\", File.dirname(__FILE__)))","file":"spec/actions_spec.rb","line":120,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions_spec.rb\nLine 121: expect(ClearCounter.source_paths_for_search[1]).to eq(File.expand_path(\"fixtures/bundle\", File.dirname(__FILE__)))","file":"spec/actions_spec.rb","line":121,"lexical":0.39999999999999997,"target":false},{"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","line":125,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: spec/shell/basic_spec.rb\nLine 567: it \"invokes the merge tool with arguments when THOR_MERGE contains them\" do","file":"spec/shell/basic_spec.rb","line":567,"lexical":0.44999999999999996,"target":false},{"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","line":574,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/error.rb\nLine 47: message = \"Could not find command #{command.inspect}\"","file":"lib/thor/error.rb","line":47,"lexical":0.5,"target":true},{"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","line":308,"lexical":0.5,"target":false},{"text":"File: spec/base_spec.rb\nLine 317: end.to raise_error(Thor::UndefinedCommandError, 'Could not find command \"what\" in \"my_script\" namespace.')","file":"spec/base_spec.rb","line":317,"lexical":0.5,"target":false},{"text":"File: spec/base_spec.rb\nLine 321: expected = \"Could not find command \\\"paintz\\\" in \\\"barn\\\" namespace.\\n\".dup","file":"spec/base_spec.rb","line":321,"lexical":0.5,"target":false},{"text":"File: spec/runner_spec.rb\nLine 44: expect(content.strip).to eq('Could not find command \"unknown\" in \"default\" namespace.')","file":"spec/runner_spec.rb","line":44,"lexical":0.5,"target":false},{"text":"File: spec/runner_spec.rb\nLine 51: expect(content.strip).to eq('Could not find command \"unknown\".')","file":"spec/runner_spec.rb","line":51,"lexical":0.5,"target":false},{"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","line":90,"lexical":0.5,"target":false},{"text":"File: spec/runner_spec.rb\nLine 98: expect(content.strip).to eq('Could not find command \"unknown\".')","file":"spec/runner_spec.rb","line":98,"lexical":0.5,"target":false},{"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","line":493,"lexical":0.5,"target":false},{"text":"File: spec/thor_spec.rb\nLine 501: expect(capture(:stderr) { MyScript.start(%w(what)) }.strip).to eq('Could not find command \"what\" in \"my_script\" namespace.')","file":"spec/thor_spec.rb","line":501,"lexical":0.5,"target":false},{"text":"File: spec/thor_spec.rb\nLine 642: end.to raise_error(Thor::UndefinedCommandError, 'Could not find command \"unknown\" in \"my_script\" namespace.')","file":"spec/thor_spec.rb","line":642,"lexical":0.5,"target":false}]} | |
| {"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.rb\nLine 114: def relative_to_original_destination_root(path, remove_dot = true)","file":"lib/thor/actions.rb","line":114,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/actions.rb\nLine 135: relative_root = relative_to_original_destination_root(destination_root, false)","file":"lib/thor/actions.rb","line":135,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions.rb\nLine 251: destination = relative_to_original_destination_root(destination_root, false)","file":"lib/thor/actions.rb","line":251,"lexical":0.44999999999999996,"target":false},{"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","line":5,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/create_file.rb\nLine 9: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/create_file.rb","line":9,"lexical":0.44999999999999996,"target":false},{"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","line":5,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/create_link.rb\nLine 8: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/create_link.rb","line":8,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/directory.rb\nLine 38: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/directory.rb","line":38,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 6: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/empty_directory.rb","line":6,"lexical":0.44999999999999996,"target":false},{"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","line":89,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 10: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/file_manipulation.rb","line":10,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 41: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/file_manipulation.rb","line":41,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 67: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/file_manipulation.rb","line":67,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 108: # destination<String>:: the relative path to the destination root.","file":"lib/thor/actions/file_manipulation.rb","line":108,"lexical":0.44999999999999996,"target":false},{"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","line":148,"lexical":0.44999999999999996,"target":false},{"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","line":269,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 297: say_status :gsub, relative_to_original_destination_root(path), config.fetch(:verbose, true)","file":"lib/thor/actions/file_manipulation.rb","line":297,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 354: say_status :remove, relative_to_original_destination_root(path), config.fetch(:verbose, true)","file":"lib/thor/actions/file_manipulation.rb","line":354,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 11: # destination<String>:: Relative path to the destination root","file":"lib/thor/actions/inject_into_file.rb","line":11,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 41: # destination<String>:: Relative path to the destination root","file":"lib/thor/actions/inject_into_file.rb","line":41,"lexical":0.44999999999999996,"target":false},{"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","line":21,"lexical":0.44999999999999996,"target":false},{"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","line":38,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions_spec.rb\nLine 70: describe \"#relative_to_original_destination_root\" do","file":"spec/actions_spec.rb","line":70,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions_spec.rb\nLine 72: expect(runner.relative_to_original_destination_root(file)).to eq(\"foo\")","file":"spec/actions_spec.rb","line":72,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions_spec.rb\nLine 76: expect(runner.relative_to_original_destination_root(file, false)).to eq(\"./foo\")","file":"spec/actions_spec.rb","line":76,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions_spec.rb\nLine 81: expect(runner.relative_to_original_destination_root(file)).to eq(\"foo\")","file":"spec/actions_spec.rb","line":81,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions_spec.rb\nLine 86: expect(runner.relative_to_original_destination_root(\"/test/file\")).to eq(\"/test/file\")","file":"spec/actions_spec.rb","line":86,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions_spec.rb\nLine 91: expect(runner.relative_to_original_destination_root(\"/something/app/project\")).to eq(\"/something/app/project\")","file":"spec/actions_spec.rb","line":91,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions_spec.rb\nLine 96: expect(runner.relative_to_original_destination_root(\"/application/project\")).to eq(\"/application/project\")","file":"spec/actions_spec.rb","line":96,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions_spec.rb\nLine 101: expect(runner.relative_to_original_destination_root(\"/app/app/project\")).to eq(\"app/project\")","file":"spec/actions_spec.rb","line":101,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions_spec.rb\nLine 106: expect(runner.relative_to_original_destination_root(\"bar\")).to eq(\"bar\")","file":"spec/actions_spec.rb","line":106,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions/create_file.rb\nLine 40: # Checks if the content of the file at the destination is identical to the rendered result.","file":"lib/thor/actions/create_file.rb","line":40,"lexical":0.65,"target":false},{"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","line":30,"lexical":0.44999999999999996,"target":true}]} | |
| {"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: spec/base_spec.rb\nLine 88: it \"raise error when exclusive options are given\" do","file":"spec/base_spec.rb","line":88,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/base_spec.rb\nLine 93: end.to raise_error(Thor::ExclusiveArgumentError, \"Found exclusive options '--one', '--two'\")","file":"spec/base_spec.rb","line":93,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/base_spec.rb\nLine 97: end.to raise_error(Thor::ExclusiveArgumentError, \"Found exclusive options '--five', '--six'\")","file":"spec/base_spec.rb","line":97,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 266: expect{parse(%w[--foo --bar])}.to raise_error(Thor::ExclusiveArgumentError, \"Found exclusive options '--foo', '--bar'\")","file":"spec/parser/options_spec.rb","line":266,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 296: expect{parse(%w[--foo --bar])}.to raise_error(Thor::ExclusiveArgumentError, \"Found exclusive options '--foo', '--bar'\")","file":"spec/parser/options_spec.rb","line":296,"lexical":0.65,"target":false}]} | |
| {"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.rb\nLine 203: def method_exclusive(*args, &block)","file":"lib/thor.rb","line":203,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 205: :method_exclusive_option_names, *args, &block)","file":"lib/thor.rb","line":205,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 207: alias_method :exclusive, :method_exclusive","file":"lib/thor.rb","line":207,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 460: def method_exclusive_option_names #:nodoc:","file":"lib/thor.rb","line":460,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 461: @method_exclusive_option_names ||= []","file":"lib/thor.rb","line":461,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 484: opts = command.method_exclusive_option_names unless command.nil?","file":"lib/thor.rb","line":484,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 569: relations = {exclusive_option_names: method_exclusive_option_names,","file":"lib/thor.rb","line":569,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 573: @method_exclusive_option_names, @method_at_least_one_option_names = nil","file":"lib/thor.rb","line":573,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/command.rb\nLine 66: def method_exclusive_option_names #:nodoc:","file":"lib/thor/command.rb","line":66,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 437: describe \"#method_exclusive\" do","file":"spec/thor_spec.rb","line":437,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: lib/thor/actions/empty_directory.rb\nLine 40: # Checks if the destination file already exists.","file":"lib/thor/actions/empty_directory.rb","line":40,"lexical":0.44999999999999996,"target":true},{"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","line":130,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions/create_file.rb\nLine 40: # Checks if the content of the file at the destination is identical to the rendered result.","file":"lib/thor/actions/create_file.rb","line":40,"lexical":0.44999999999999996,"target":true},{"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","line":30,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/base.rb\nLine 75: # Let Thor::Options parse the options first, so it can remove","file":"lib/thor/base.rb","line":75,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 94: opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check, relations)","file":"lib/thor/base.rb","line":94,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 702: scope[key] = Thor::Option.parse(key, value)","file":"lib/thor/base.rb","line":702,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/command_spec.rb\nLine 6: options[key] = Thor::Option.parse(key, value)","file":"spec/command_spec.rb","line":6,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 6: Thor::Option.parse(key, value)","file":"spec/parser/option_spec.rb","line":6,"lexical":0.5,"target":true},{"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","line":11,"lexical":0.5,"target":false}]} | |
| {"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.rb\nLine 273: shell.print_wrapped(command.long_description, indent: 2)","file":"lib/thor.rb","line":273,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 301: shell.print_table(list, indent: 2, truncate: true)","file":"lib/thor.rb","line":301,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 488: shell.print_table(opts.map{ |ex| ex.map{ |e| \"--#{e}\"}}, indent: 2 )","file":"lib/thor.rb","line":488,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor.rb\nLine 499: shell.print_table(opts.map{ |ex| ex.map{ |e| \"--#{e}\"}}, indent: 2 )","file":"lib/thor.rb","line":499,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 673: shell.print_table(list, indent: 2)","file":"lib/thor/base.rb","line":673,"lexical":0.39999999999999997,"target":false},{"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","line":62,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/shell/table_printer.rb\nLine 80: # Don't output 2 trailing spaces when printing the last column","file":"lib/thor/shell/table_printer.rb","line":80,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 360: content = capture(:stdout) { shell.print_table(@table, indent: 2) }","file":"spec/shell/basic_spec.rb","line":360,"lexical":0.39999999999999997,"target":false},{"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","line":371,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 479: content = capture(:stdout) { shell.print_table(table, borders: true, indent: 2) }","file":"spec/shell/basic_spec.rb","line":479,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/base.rb\nLine 571: @namespace ||= Thor::Util.namespace_from_thor_class(self)","file":"lib/thor/base.rb","line":571,"lexical":0.55,"target":false},{"text":"File: lib/thor/invocation.rb\nLine 15: Thor::Util.find_class_and_command_by_namespace(name.to_s, !key)","file":"lib/thor/invocation.rb","line":15,"lexical":0.55,"target":false},{"text":"File: lib/thor/runner.rb\nLine 23: klass, command = Thor::Util.find_class_and_command_by_namespace(meth)","file":"lib/thor/runner.rb","line":23,"lexical":0.55,"target":false},{"text":"File: lib/thor/runner.rb\nLine 37: klass, command = Thor::Util.find_class_and_command_by_namespace(meth)","file":"lib/thor/runner.rb","line":37,"lexical":0.55,"target":false},{"text":"File: lib/thor/runner.rb\nLine 105: namespaces: Thor::Util.namespaces_in_content(contents, base)","file":"lib/thor/runner.rb","line":105,"lexical":0.55,"target":false},{"text":"File: lib/thor/util.rb\nLine 11: # Thor::Util.namespace_from_thor_class(Foo::Bar::Baz) #=> \"foo:bar:baz\"","file":"lib/thor/util.rb","line":11,"lexical":0.65,"target":true},{"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","line":124,"lexical":0.65,"target":false},{"text":"File: lib/thor/util.rb\nLine 125: # Thor::Util.namespace_to_thor_class(\"baz:foo\") #=> Baz::Foo, nil","file":"lib/thor/util.rb","line":125,"lexical":0.65,"target":false},{"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","line":126,"lexical":0.65,"target":false},{"text":"File: lib/thor/util.rb\nLine 139: klass = Thor::Util.find_by_namespace(namespace)","file":"lib/thor/util.rb","line":139,"lexical":0.65,"target":false},{"text":"File: lib/thor/util.rb\nLine 144: klass = Thor::Util.find_by_namespace(\"\")","file":"lib/thor/util.rb","line":144,"lexical":0.65,"target":false},{"text":"File: spec/util_spec.rb\nLine 12: expect(Thor::Util.find_by_namespace(\"\")).to eq(Scripts::MyDefaults)","file":"spec/util_spec.rb","line":12,"lexical":0.65,"target":false},{"text":"File: spec/util_spec.rb\nLine 16: expect(Thor::Util.find_by_namespace(\":child\")).to eq(Scripts::ChildDefault)","file":"spec/util_spec.rb","line":16,"lexical":0.65,"target":false},{"text":"File: spec/util_spec.rb\nLine 20: expect(Thor::Util.find_by_namespace(\"thor:core_ext:hash_with_indifferent_access\")).to be nil","file":"spec/util_spec.rb","line":20,"lexical":0.65,"target":false},{"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","line":24,"lexical":0.65,"target":false},{"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","line":28,"lexical":0.65,"target":false},{"text":"File: spec/util_spec.rb\nLine 34: expect(Thor::Util.namespace_from_thor_class(\"Foo::Bar::Baz\")).to eq(\"foo:bar:baz\")","file":"spec/util_spec.rb","line":34,"lexical":0.65,"target":false},{"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","line":38,"lexical":0.65,"target":false},{"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","line":42,"lexical":0.65,"target":false},{"text":"File: spec/util_spec.rb\nLine 43: expect(Thor::Util.namespace_from_thor_class(Thor::Util)).to eq(\"thor:util\")","file":"spec/util_spec.rb","line":43,"lexical":0.65,"target":false},{"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","line":47,"lexical":0.65,"target":false},{"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","line":53,"lexical":0.65,"target":false},{"text":"File: spec/util_spec.rb\nLine 59: Thor::Util.namespaces_in_content(\"class Blat; end\")","file":"spec/util_spec.rb","line":59,"lexical":0.65,"target":false},{"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","line":92,"lexical":0.65,"target":false},{"text":"File: spec/util_spec.rb\nLine 96: expect(Thor::Util.find_class_and_command_by_namespace(\"thor\")).to eq([Thor, nil])","file":"spec/util_spec.rb","line":96,"lexical":0.65,"target":false},{"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","line":100,"lexical":0.65,"target":false},{"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","line":105,"lexical":0.65,"target":false},{"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","line":110,"lexical":0.65,"target":false},{"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","line":114,"lexical":0.65,"target":false},{"text":"File: spec/util_spec.rb\nLine 115: expect(Thor::Util.find_class_and_command_by_namespace(\"fruits:pear\")).to eq([Pear, \"pear\"])","file":"spec/util_spec.rb","line":115,"lexical":0.65,"target":false},{"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","line":119,"lexical":0.65,"target":false},{"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","line":123,"lexical":0.65,"target":false}]} | |
| {"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/actions.rb\nLine 172: pretend = options[:pretend]","file":"lib/thor/actions.rb","line":172,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 261: return if options[:pretend]","file":"lib/thor/actions.rb","line":261,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 68: base.options[:pretend]","file":"lib/thor/actions/empty_directory.rb","line":68,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 149: unless options[:pretend]","file":"lib/thor/actions/file_manipulation.rb","line":149,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 271: actually_gsub_file(path, flag, args, true, &block) unless options[:pretend]","file":"lib/thor/actions/file_manipulation.rb","line":271,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 299: actually_gsub_file(path, flag, args, false, &block) unless options[:pretend]","file":"lib/thor/actions/file_manipulation.rb","line":299,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 355: if !options[:pretend] && (File.exist?(path) || File.symlink?(path))","file":"lib/thor/actions/file_manipulation.rb","line":355,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/create_link_spec.rb\nLine 71: let(:options) { {pretend: true} }","file":"spec/actions/create_link_spec.rb","line":71,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions_spec.rb\nLine 18: expect(MyCounter.class_options.keys).to include(:pretend)","file":"spec/actions_spec.rb","line":18,"lexical":0.39999999999999997,"target":false}]} | |
| {"site":"project_search","repo":"thor","task":"빌드 관련 태스크를 실행하는 메서드가 어디에 정의되어 있어?","query":"Rake::Task execute","file":"Thorfile","symbol":"build","line":11,"lang":"ko","candidates":[{"text":"File: Thorfile\nLine 12: Rake::Task[\"build\"].execute","file":"Thorfile","line":12,"lexical":0.39999999999999997,"target":true},{"text":"File: Thorfile\nLine 17: Rake::Task[\"install\"].execute","file":"Thorfile","line":17,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/shell/basic_spec.rb\nLine 123: it \"asks the user and returns false if the user replies no\" do","file":"spec/shell/basic_spec.rb","line":123,"lexical":0.44999999999999996,"target":false},{"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","line":128,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 140: it \"asks the user and returns false if the user replies yes\" do","file":"spec/shell/basic_spec.rb","line":140,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 145: 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","line":145,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/runner.rb\nLine 43: desc \"install NAME\", \"Install an optionally named Thor file into your system commands\"","file":"lib/thor/runner.rb","line":43,"lexical":0.55,"target":true},{"text":"File: lib/thor/runner.rb\nLine 159: filename = install(thor_yaml[name][:location])","file":"lib/thor/runner.rb","line":159,"lexical":0.55,"target":false},{"text":"File: spec/runner_spec.rb\nLine 239: it \"installs thor files\" do","file":"spec/runner_spec.rb","line":239,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/runner_spec.rb\nLine 250: it \"installs thor files\" do","file":"spec/runner_spec.rb","line":250,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor.rb\nLine 428: # Disable the check for required options for the given commands.","file":"lib/thor.rb","line":428,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 434: def disable_required_check!(*command_names)","file":"lib/thor.rb","line":434,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 435: @disable_required_check = disable_required_check | command_names","file":"lib/thor.rb","line":435,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 438: def disable_required_check?(command) #:nodoc:","file":"lib/thor.rb","line":438,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 439: command && disable_required_check.include?(command.name.to_sym)","file":"lib/thor.rb","line":439,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 477: # help command has the required check disabled by default.","file":"lib/thor.rb","line":477,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 478: def disable_required_check #:nodoc:","file":"lib/thor.rb","line":478,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 479: @disable_required_check ||= [:help]","file":"lib/thor.rb","line":479,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 92: disable_required_check = self.class.disable_required_check? current_command","file":"lib/thor/base.rb","line":92,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 94: opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check, relations)","file":"lib/thor/base.rb","line":94,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 208: def disable_required_check?(command_name) #:nodoc:","file":"lib/thor/base.rb","line":208,"lexical":0.44999999999999996,"target":false},{"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","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 36: @disable_required_check = disable_required_check","file":"lib/thor/parser/options.rb","line":36,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 135: check_requirement! unless @disable_required_check","file":"lib/thor/parser/options.rb","line":135,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 281: describe \"#disable_required_check!\" do","file":"spec/thor_spec.rb","line":281,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 285: disable_required_check! :boring","file":"spec/thor_spec.rb","line":285,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 312: expect(my_script.disable_required_check?(double(name: \"help\"))).to be true","file":"spec/thor_spec.rb","line":312,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 317: disable_required_check! :foo, :bar","file":"spec/thor_spec.rb","line":317,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 321: expect(klass.disable_required_check?(double(name: \"help\"))).to be true","file":"spec/thor_spec.rb","line":321,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 322: expect(klass.disable_required_check?(double(name: \"foo\"))).to be true","file":"spec/thor_spec.rb","line":322,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 323: expect(klass.disable_required_check?(double(name: \"bar\"))).to be true","file":"spec/thor_spec.rb","line":323,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 324: expect(klass.disable_required_check?(double(name: \"baz\"))).to be false","file":"spec/thor_spec.rb","line":324,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 330: disable_required_check! :foo","file":"spec/thor_spec.rb","line":330,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 331: disable_required_check! :bar","file":"spec/thor_spec.rb","line":331,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 335: expect(klass.disable_required_check?(double(name: \"help\"))).to be true","file":"spec/thor_spec.rb","line":335,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 336: expect(klass.disable_required_check?(double(name: \"foo\"))).to be true","file":"spec/thor_spec.rb","line":336,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 337: expect(klass.disable_required_check?(double(name: \"bar\"))).to be true","file":"spec/thor_spec.rb","line":337,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 338: expect(klass.disable_required_check?(double(name: \"baz\"))).to be false","file":"spec/thor_spec.rb","line":338,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions.rb\nLine 18: # Hold source paths for one Thor instance. source_paths_for_search is the","file":"lib/thor/actions.rb","line":18,"lexical":0.35,"target":true},{"text":"File: lib/thor/actions.rb\nLine 38: def source_paths_for_search","file":"lib/thor/actions.rb","line":38,"lexical":0.35,"target":false},{"text":"File: lib/thor/actions.rb\nLine 128: @source_paths ||= self.class.source_paths_for_search","file":"lib/thor/actions.rb","line":128,"lexical":0.35,"target":false},{"text":"File: spec/actions_spec.rb\nLine 109: describe \"#source_paths_for_search\" do","file":"spec/actions_spec.rb","line":109,"lexical":0.35,"target":false},{"text":"File: spec/actions_spec.rb\nLine 110: it \"add source_root to source_paths_for_search\" do","file":"spec/actions_spec.rb","line":110,"lexical":0.35,"target":false},{"text":"File: spec/actions_spec.rb\nLine 111: expect(MyCounter.source_paths_for_search).to include(File.expand_path(\"fixtures\", File.dirname(__FILE__)))","file":"spec/actions_spec.rb","line":111,"lexical":0.35,"target":false},{"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","line":115,"lexical":0.35,"target":false},{"text":"File: spec/actions_spec.rb\nLine 116: expect(ClearCounter.source_paths_for_search).not_to include(File.expand_path(\"fixtures\", File.dirname(__FILE__)))","file":"spec/actions_spec.rb","line":116,"lexical":0.35,"target":false},{"text":"File: spec/actions_spec.rb\nLine 120: expect(ClearCounter.source_paths_for_search[0]).to eq(File.expand_path(\"fixtures/doc\", File.dirname(__FILE__)))","file":"spec/actions_spec.rb","line":120,"lexical":0.35,"target":false},{"text":"File: spec/actions_spec.rb\nLine 121: expect(ClearCounter.source_paths_for_search[1]).to eq(File.expand_path(\"fixtures/bundle\", File.dirname(__FILE__)))","file":"spec/actions_spec.rb","line":121,"lexical":0.35,"target":false},{"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","line":125,"lexical":0.35,"target":false}]} | |
| {"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: lib/thor.rb\nLine 594: def initialize_added #:nodoc:","file":"lib/thor.rb","line":594,"lexical":0.35,"target":true},{"text":"File: lib/thor/base.rb\nLine 735: initialize_added","file":"lib/thor/base.rb","line":735,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 789: def initialize_added #:nodoc:","file":"lib/thor/base.rb","line":789,"lexical":0.35,"target":false}]} | |
| {"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 568: File.join(destination_root, \"application.rb\")","file":"spec/actions/file_manipulation_spec.rb","line":568,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 593: File.join(destination_root, \"application_helper.rb\")","file":"spec/actions/file_manipulation_spec.rb","line":593,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions_spec.rb\nLine 96: expect(runner.relative_to_original_destination_root(\"/application/project\")).to eq(\"/application/project\")","file":"spec/actions_spec.rb","line":96,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions.rb\nLine 3: require_relative \"actions/directory\"","file":"lib/thor/actions.rb","line":3,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions.rb\nLine 4: require_relative \"actions/empty_directory\"","file":"lib/thor/actions.rb","line":4,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions.rb\nLine 70: # destination_root<String>:: The root directory needed for some actions.","file":"lib/thor/actions.rb","line":70,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/directory.rb\nLine 52: action Directory.new(self, source, destination || source, config, &block)","file":"lib/thor/actions/directory.rb","line":52,"lexical":0.6000000000000001,"target":true},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 14: action EmptyDirectory.new(self, destination, config)","file":"lib/thor/actions/empty_directory.rb","line":14,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/empty_directory.rb\nLine 18: # other actions like create_file and directory.","file":"lib/thor/actions/empty_directory.rb","line":18,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 5: describe Thor::Actions::Directory do","file":"spec/actions/directory_spec.rb","line":5,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 4: describe Thor::Actions::EmptyDirectory do","file":"spec/actions/empty_directory_spec.rb","line":4,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 10: @action = Thor::Actions::EmptyDirectory.new(base, destination)","file":"spec/actions/empty_directory_spec.rb","line":10,"lexical":0.6000000000000001,"target":false}]} | |
| {"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.rb\nLine 232: # If you do not give \"--one\" and \"--two\" AtLeastOneRequiredArgumentError","file":"lib/thor.rb","line":232,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 260: # ArgumentError:: Raised if you supply a required argument after a non required one.","file":"lib/thor/base.rb","line":260,"lexical":0.44999999999999996,"target":false},{"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","line":279,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 379: # If you do not give \"--one\" and \"--two\" AtLeastOneRequiredArgumentError","file":"lib/thor/base.rb","line":379,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/error.rb\nLine 95: class RequiredArgumentMissingError < InvocationError","file":"lib/thor/error.rb","line":95,"lexical":0.65,"target":true},{"text":"File: lib/thor/error.rb\nLine 104: class AtLeastOneRequiredArgumentError < InvocationError","file":"lib/thor/error.rb","line":104,"lexical":0.65,"target":false},{"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","line":63,"lexical":0.65,"target":false},{"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","line":192,"lexical":0.65,"target":false},{"text":"File: lib/thor/parser/option.rb\nLine 127: raise ArgumentError, \"An option cannot be boolean and required.\" if boolean? && required?","file":"lib/thor/parser/option.rb","line":127,"lexical":0.44999999999999996,"target":false},{"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","line":164,"lexical":0.44999999999999996,"target":false},{"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","line":111,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/base_spec.rb\nLine 115: end.to raise_error(Thor::AtLeastOneRequiredArgumentError, \"Not found at least one of required options '--five', '--six', '--seven'\")","file":"spec/base_spec.rb","line":115,"lexical":0.44999999999999996,"target":false},{"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","line":24,"lexical":0.44999999999999996,"target":false},{"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","line":27,"lexical":0.44999999999999996,"target":false},{"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","line":22,"lexical":0.65,"target":false},{"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","line":25,"lexical":0.65,"target":false},{"text":"File: spec/parser/arguments_spec.rb\nLine 55: it \"and required arguments raises an error\" do","file":"spec/parser/arguments_spec.rb","line":55,"lexical":0.65,"target":false},{"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","line":57,"lexical":0.65,"target":false},{"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","line":182,"lexical":0.44999999999999996,"target":false},{"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","line":195,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 204: it \"raises an error if the required switch has no argument\" do","file":"spec/parser/options_spec.rb","line":204,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 209: expect { parse(\"--bar\") }.to raise_error(Thor::RequiredArgumentMissingError)","file":"spec/parser/options_spec.rb","line":209,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 213: expect { parse(\"--no-foo\") }.to raise_error(Thor::RequiredArgumentMissingError)","file":"spec/parser/options_spec.rb","line":213,"lexical":0.44999999999999996,"target":false},{"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","line":281,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 284: it \"does not raise an error if at least one of required argument is given\" do","file":"spec/parser/options_spec.rb","line":284,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 311: 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","line":311,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 314: it \"does not raise an error if at least one of required argument is given\" do","file":"spec/parser/options_spec.rb","line":314,"lexical":0.44999999999999996,"target":false}]} | |
| {"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.rb\nLine 428: # Disable the check for required options for the given commands.","file":"lib/thor.rb","line":428,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 94: opts = Thor::Options.new(parse_options, hash_options, stop_on_unknown, disable_required_check, relations)","file":"lib/thor/base.rb","line":94,"lexical":0.44999999999999996,"target":false},{"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","line":32,"lexical":0.65,"target":false}]} | |
| {"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/actions.rb\nLine 6: require_relative \"actions/inject_into_file\"","file":"lib/thor/actions.rb","line":6,"lexical":0.44999999999999996,"target":false},{"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","line":7,"lexical":0.65,"target":false},{"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","line":33,"lexical":0.65,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 35: alias_method :inject_into_file!, :insert_into_file!","file":"lib/thor/actions/inject_into_file.rb","line":35,"lexical":0.65,"target":false},{"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","line":37,"lexical":0.65,"target":false},{"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","line":62,"lexical":0.65,"target":false},{"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","line":64,"lexical":0.65,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 66: class InjectIntoFile < EmptyDirectory #:nodoc:","file":"lib/thor/actions/inject_into_file.rb","line":66,"lexical":0.65,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 5: describe Thor::Actions::InjectIntoFile do","file":"spec/actions/inject_into_file_spec.rb","line":5,"lexical":0.65,"target":true}]} | |
| {"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/fixtures/group.thor\nLine 21: class_option :fourth, :type => :numeric, :desc => \"The fourth argument\"","file":"spec/fixtures/group.thor","line":21,"lexical":0.39999999999999997,"target":true},{"text":"File: spec/fixtures/group.thor\nLine 44: options[:fourth]","file":"spec/fixtures/group.thor","line":44,"lexical":0.39999999999999997,"target":false}]} | |
| {"site":"project_search","repo":"thor","task":"CLI 도구를 만들고 있는데, 현재 실행 중인 프로그램의 이름을 가져오는 로직이 어디에 있는지 궁금해요. 실행 파일의 경로에서 파일명만 추출하는 코드를 찾아줄 수 있나요?","query":"program basename","file":"lib/thor/base.rb","symbol":"basename","line":772,"lang":"ko","candidates":[{"text":"File: lib/thor/base.rb\nLine 770: # The basename of the program invoking the thor class.","file":"lib/thor/base.rb","line":770,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/base.rb\nLine 773: File.basename($PROGRAM_NAME).split(\" \").first","file":"lib/thor/base.rb","line":773,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: lib/thor.rb\nLine 37: def register(klass, subcommand_name, usage, description, options = {})","file":"lib/thor.rb","line":37,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor.rb\nLine 47: # Defines the usage and the description of the next command.","file":"lib/thor.rb","line":47,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor.rb\nLine 580: puts \"[WARNING] Attempted to create command #{meth.inspect} without usage or description. \" \\","file":"lib/thor.rb","line":580,"lexical":0.44999999999999996,"target":false},{"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","line":2,"lexical":0.65,"target":false},{"text":"File: spec/thor_spec.rb\nLine 742: end).to match(/\\[WARNING\\] Attempted to create command \"hello_from_thor\" without usage or description/)","file":"spec/thor_spec.rb","line":742,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/group.rb\nLine 276: def _invoke_for_class_method(klass, command = nil, *args, &block) #:nodoc:","file":"lib/thor/group.rb","line":276,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/rake_compat.rb\nLine 53: klass.send :define_method, non_namespaced_name do |*args|","file":"lib/thor/rake_compat.rb","line":53,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 778: it \"method_option raises an ArgumentError if name is not a Symbol or String\" do","file":"spec/thor_spec.rb","line":778,"lexical":0.44999999999999996,"target":true}]} | |
| {"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/base.rb\nLine 2: require_relative \"core_ext/hash_with_indifferent_access\"","file":"lib/thor/base.rb","line":2,"lexical":0.44999999999999996,"target":false},{"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","line":3,"lexical":0.65,"target":true},{"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","line":5,"lexical":0.65,"target":false},{"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","line":11,"lexical":0.65,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 139: assigns = Thor::CoreExt::HashWithIndifferentAccess.new(@assigns)","file":"lib/thor/parser/options.rb","line":139,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/core_ext/hash_with_indifferent_access_spec.rb\nLine 2: require \"thor/core_ext/hash_with_indifferent_access\"","file":"spec/core_ext/hash_with_indifferent_access_spec.rb","line":2,"lexical":0.65,"target":false},{"text":"File: spec/core_ext/hash_with_indifferent_access_spec.rb\nLine 4: describe Thor::CoreExt::HashWithIndifferentAccess do","file":"spec/core_ext/hash_with_indifferent_access_spec.rb","line":4,"lexical":0.65,"target":false},{"text":"File: spec/core_ext/hash_with_indifferent_access_spec.rb\nLine 6: @hash = Thor::CoreExt::HashWithIndifferentAccess.new :foo => \"bar\", \"baz\" => \"bee\", :force => true","file":"spec/core_ext/hash_with_indifferent_access_spec.rb","line":6,"lexical":0.65,"target":false},{"text":"File: spec/util_spec.rb\nLine 20: expect(Thor::Util.find_by_namespace(\"thor:core_ext:hash_with_indifferent_access\")).to be nil","file":"spec/util_spec.rb","line":20,"lexical":0.44999999999999996,"target":false},{"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","line":42,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions.rb\nLine 274: abort if !success && config.fetch(:abort_on_failure, self.class.exit_on_failure?)","file":"lib/thor/actions.rb","line":274,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 588: exit(false) if exit_on_failure?","file":"lib/thor/base.rb","line":588,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 629: def exit_on_failure?","file":"lib/thor/base.rb","line":629,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 630: Thor.deprecation_warning \"Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `#{self.name}`\"","file":"lib/thor/base.rb","line":630,"lexical":0.35,"target":false},{"text":"File: lib/thor/runner.rb\nLine 14: def self.exit_on_failure?","file":"lib/thor/runner.rb","line":14,"lexical":0.35,"target":false},{"text":"File: spec/actions_spec.rb\nLine 344: context \"exit_on_failure? is true\" do","file":"spec/actions_spec.rb","line":344,"lexical":0.35,"target":false},{"text":"File: spec/actions_spec.rb\nLine 346: allow(MyCounter).to receive(:exit_on_failure?).and_return(true)","file":"spec/actions_spec.rb","line":346,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/command.thor","line":4,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/exit_status.thor","line":4,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 5: def self.exit_on_failure?","file":"spec/fixtures/group.thor","line":5,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":4,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 186: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":186,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 224: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":224,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 248: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":248,"lexical":0.35,"target":false},{"text":"File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?","file":"spec/fixtures/verbose.thor","line":8,"lexical":0.35,"target":true},{"text":"File: spec/subcommand_spec.rb\nLine 59: def self.exit_on_failure?","file":"spec/subcommand_spec.rb","line":59,"lexical":0.35,"target":false},{"text":"File: spec/thor_spec.rb\nLine 177: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":177,"lexical":0.35,"target":false},{"text":"File: spec/thor_spec.rb\nLine 231: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":231,"lexical":0.35,"target":false},{"text":"File: spec/thor_spec.rb\nLine 297: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":297,"lexical":0.35,"target":false},{"text":"File: spec/thor_spec.rb\nLine 877: context \"without an exit_on_failure? method\" do","file":"spec/thor_spec.rb","line":877,"lexical":0.35,"target":false}]} | |
| {"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: lib/thor.rb\nLine 464: # Returns this class at least one of required options array set.","file":"lib/thor.rb","line":464,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 300: # class_options :foo => false, :bar => :required, :baz => :string","file":"lib/thor/base.rb","line":300,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 407: # Returns this class at least one of required options array set, looking up in the ancestors chain.","file":"lib/thor/base.rb","line":407,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 283: class_option \"foo\", required: true","file":"spec/thor_spec.rb","line":283,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 605: it \"does not print class at least one of required options\" do","file":"spec/thor_spec.rb","line":605,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 708: context \"with required class_options\" do","file":"spec/thor_spec.rb","line":708,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 711: class_option :foo, required: true","file":"spec/thor_spec.rb","line":711,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/shell/basic.rb\nLine 241: say file_collision_help(block_given?)","file":"lib/thor/shell/basic.rb","line":241,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/shell/basic.rb\nLine 296: def file_collision_help(block_given) #:nodoc:","file":"lib/thor/shell/basic.rb","line":296,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 518: help = capture(:stdout) { shell.file_collision(\"foo\") }","file":"spec/shell/basic_spec.rb","line":518,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 584: help = capture(:stdout) { shell.file_collision(\"foo\") {} }","file":"spec/shell/basic_spec.rb","line":584,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/invocation.rb\nLine 15: Thor::Util.find_class_and_command_by_namespace(name.to_s, !key)","file":"lib/thor/invocation.rb","line":15,"lexical":0.5,"target":true},{"text":"File: lib/thor/runner.rb\nLine 23: klass, command = Thor::Util.find_class_and_command_by_namespace(meth)","file":"lib/thor/runner.rb","line":23,"lexical":0.5,"target":false},{"text":"File: lib/thor/runner.rb\nLine 37: klass, command = Thor::Util.find_class_and_command_by_namespace(meth)","file":"lib/thor/runner.rb","line":37,"lexical":0.5,"target":false},{"text":"File: lib/thor/util.rb\nLine 131: def find_class_and_command_by_namespace(namespace, fallback = true)","file":"lib/thor/util.rb","line":131,"lexical":0.5,"target":false},{"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","line":148,"lexical":0.5,"target":false},{"text":"File: spec/util_spec.rb\nLine 90: describe \"#find_class_and_command_by_namespace\" do","file":"spec/util_spec.rb","line":90,"lexical":0.5,"target":false},{"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","line":92,"lexical":0.5,"target":false},{"text":"File: spec/util_spec.rb\nLine 96: expect(Thor::Util.find_class_and_command_by_namespace(\"thor\")).to eq([Thor, nil])","file":"spec/util_spec.rb","line":96,"lexical":0.5,"target":false},{"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","line":100,"lexical":0.5,"target":false},{"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","line":105,"lexical":0.5,"target":false},{"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","line":110,"lexical":0.5,"target":false},{"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","line":114,"lexical":0.5,"target":false},{"text":"File: spec/util_spec.rb\nLine 115: expect(Thor::Util.find_class_and_command_by_namespace(\"fruits:pear\")).to eq([Pear, \"pear\"])","file":"spec/util_spec.rb","line":115,"lexical":0.5,"target":false},{"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","line":119,"lexical":0.5,"target":false},{"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","line":123,"lexical":0.5,"target":false}]} | |
| {"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/base.rb\nLine 189: # either specify `check_default_type: false` or call `allow_incompatible_default_type!`","file":"lib/thor/base.rb","line":189,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/base.rb\nLine 191: @check_default_type = false","file":"lib/thor/base.rb","line":191,"lexical":0.39999999999999997,"target":false},{"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","line":154,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 173: it \"does not raises an error if default is inconsistent with type and check_default_type is false\" do","file":"spec/parser/option_spec.rb","line":173,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 175: option(\"foo_bar\", type: :numeric, default: \"baz\", check_default_type: false)","file":"spec/parser/option_spec.rb","line":175,"lexical":0.39999999999999997,"target":false},{"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","line":854,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 857: option \"bar\", type: :numeric, default: \"foo\", check_default_type: false","file":"spec/thor_spec.rb","line":857,"lexical":0.39999999999999997,"target":false}]} | |
| {"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.rb\nLine 455: # Returns this class exclusive options array set.","file":"lib/thor.rb","line":455,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 398: # Returns this class exclusive options array set, looking up in the ancestors chain.","file":"lib/thor/base.rb","line":398,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/base_spec.rb\nLine 75: expect(MyClassOptionScript.class_exclusive_option_names.size).to be(1)","file":"spec/base_spec.rb","line":75,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/base_spec.rb\nLine 76: expect(MyClassOptionScript.class_exclusive_option_names.first.size).to be(2)","file":"spec/base_spec.rb","line":76,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 590: it \"prints class exclusive options\" do","file":"spec/thor_spec.rb","line":590,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 595: it \"does not print class exclusive options\" do","file":"spec/thor_spec.rb","line":595,"lexical":0.44999999999999996,"target":false}]} | |
| {"site":"project_search","repo":"thor","task":"テスト用のフィクスチャを作成しているのですが、単純に数値を標準出力に表示するだけのメソッドがどこにあるか教えてください。呼び出しの動作を確認したいです。","query":"p 3","file":"spec/fixtures/invoke.thor","symbol":"three","line":75,"lang":"ja","candidates":[{"text":"File: Gemfile\nLine 8: gem \"rubocop\", \"~> 1.30\"","file":"Gemfile","line":8,"lexical":0.39999999999999997,"target":false},{"text":"File: Gemfile\nLine 14: gem \"rspec\", \">= 3.2\"","file":"Gemfile","line":14,"lexical":0.39999999999999997,"target":false},{"text":"File: Gemfile\nLine 15: gem \"rspec-mocks\", \">= 3\"","file":"Gemfile","line":15,"lexical":0.39999999999999997,"target":false},{"text":"File: Gemfile\nLine 16: gem \"simplecov\", \">= 0.13\"","file":"Gemfile","line":16,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 36: # 3) Parents source paths","file":"lib/thor/actions.rb","line":36,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 212: # apply \"http://gist.github.com/103208\"","file":"lib/thor/actions.rb","line":212,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 266: require \"open3\"","file":"lib/thor/actions.rb","line":266,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 267: result, status = Open3.capture2e(*env_splat, command.to_s)","file":"lib/thor/actions.rb","line":267,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 279: # Executes a ruby script (taking into account WIN32 platform quirks).","file":"lib/thor/actions.rb","line":279,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 302: # thor :install, \"http://gist.github.com/103208\"","file":"lib/thor/actions.rb","line":302,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions.rb\nLine 303: # #=> thor install http://gist.github.com/103208","file":"lib/thor/actions.rb","line":303,"lexical":0.39999999999999997,"target":false},{"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","line":73,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 75: # get \"http://gist.github.com/103208\", \"doc/README\", :http_headers => {\"Content-Type\" => \"application/json\"}","file":"lib/thor/actions/file_manipulation.rb","line":75,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/actions/file_manipulation.rb\nLine 77: # get \"http://gist.github.com/103208\" do |content|","file":"lib/thor/actions/file_manipulation.rb","line":77,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/runner.rb\nLine 243: # 3. /Users/wycats <-- we find a Thorfile here, so we stop","file":"lib/thor/runner.rb","line":243,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/shell/terminal.rb\nLine 8: # Copyright (c) 2003, 2004 Jim Weirich","file":"lib/thor/shell/terminal.rb","line":8,"lexical":0.39999999999999997,"target":false},{"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","line":89,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions_spec.rb\nLine 169: expect(runner.inside(\"foo\") { 123 }).to eq(123)","file":"spec/actions_spec.rb","line":169,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions_spec.rb\nLine 179: expect(runner.inside(\"foo\") { 123 }).to eq(123)","file":"spec/actions_spec.rb","line":179,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions_spec.rb\nLine 241: @file = \"http://gist.github.com/103208.txt\"","file":"spec/actions_spec.rb","line":241,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions_spec.rb\nLine 249: @file = \"https://gist.github.com/103208.txt\"","file":"spec/actions_spec.rb","line":249,"lexical":0.6000000000000001,"target":false},{"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","line":393,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions_spec.rb\nLine 403: expect(runner).to receive(:system).with(\"thor list --foo 1 2 3\")","file":"spec/actions_spec.rb","line":403,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/actions_spec.rb\nLine 404: expect(action(:thor, :list, foo: [1, 2, 3], verbose: false)).to be_empty","file":"spec/actions_spec.rb","line":404,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/base_spec.rb\nLine 26: expect(base.options[:third]).to eq(3)","file":"spec/base_spec.rb","line":26,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/base_spec.rb\nLine 39: expect(base.options[\"third\"]).to eq(3)","file":"spec/base_spec.rb","line":39,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/base_spec.rb\nLine 44: expect(base.options.third).to eq(3)","file":"spec/base_spec.rb","line":44,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/base_spec.rb\nLine 58: expect(MyCounter.start(%w(1 2 --third 3))[0]).to eq(1)","file":"spec/base_spec.rb","line":58,"lexical":0.6000000000000001,"target":false},{"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","line":63,"lexical":0.6000000000000001,"target":false},{"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","line":124,"lexical":0.6000000000000001,"target":false},{"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","line":128,"lexical":0.6000000000000001,"target":false},{"text":"File: spec/base_spec.rb\nLine 129: expect(MyCounter.start(%w(1 2 -r 3))[5]).to eq(3)","file":"spec/base_spec.rb","line":129,"lexical":0.6000000000000001,"target":false}]} | |
| {"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: lib/thor/group.rb\nLine 264: commands[meth.to_s] = Thor::Command.new(meth, nil, nil, nil, nil)","file":"lib/thor/group.rb","line":264,"lexical":0.39999999999999997,"target":true},{"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","line":9,"lexical":0.39999999999999997,"target":false},{"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","line":57,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/error.rb\nLine 2: Correctable = if defined?(DidYouMean::SpellChecker) && defined?(DidYouMean::Correctable) # rubocop:disable Naming/ConstantName","file":"lib/thor/error.rb","line":2,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/error.rb\nLine 9: @corrections ||= self.class.const_get(:SpellChecker).new(self).corrections","file":"lib/thor/error.rb","line":9,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/error.rb\nLine 25: class SpellChecker","file":"lib/thor/error.rb","line":25,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/error.rb\nLine 33: @corrections ||= spell_checker.correct(error.command).map(&:inspect)","file":"lib/thor/error.rb","line":33,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/error.rb\nLine 36: def spell_checker","file":"lib/thor/error.rb","line":36,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/error.rb\nLine 37: DidYouMean::SpellChecker.new(dictionary: error.all_commands)","file":"lib/thor/error.rb","line":37,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/error.rb\nLine 66: class SpellChecker","file":"lib/thor/error.rb","line":66,"lexical":0.39999999999999997,"target":false},{"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","line":75,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/error.rb\nLine 78: def spell_checker","file":"lib/thor/error.rb","line":78,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/error.rb\nLine 79: @spell_checker ||= DidYouMean::SpellChecker.new(dictionary: error.switches)","file":"lib/thor/error.rb","line":79,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: spec/actions/directory_spec.rb\nLine 12: @invoker ||= WhinyGenerator.new([1, 2], {}, destination_root: destination_root)","file":"spec/actions/directory_spec.rb","line":12,"lexical":0.39999999999999997,"target":true},{"text":"File: spec/actions/directory_spec.rb\nLine 16: @revoker ||= WhinyGenerator.new([1, 2], {}, destination_root: destination_root, behavior: :revoke)","file":"spec/actions/directory_spec.rb","line":16,"lexical":0.39999999999999997,"target":false}]} | |
| {"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.rb\nLine 261: handle_no_command_error(meth) unless command","file":"lib/thor.rb","line":261,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 614: def handle_no_command_error(command, has_namespace = $thor_runner) #:nodoc:","file":"lib/thor/base.rb","line":614,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 617: alias_method :handle_no_task_error, :handle_no_command_error","file":"lib/thor/base.rb","line":617,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 619: def handle_argument_error(command, error, args, arity) #:nodoc:","file":"lib/thor/base.rb","line":619,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/command.rb\nLine 25: instance.class.handle_no_command_error(name)","file":"lib/thor/command.rb","line":25,"lexical":0.65,"target":false},{"text":"File: lib/thor/command.rb\nLine 32: instance.class.handle_no_command_error(name)","file":"lib/thor/command.rb","line":32,"lexical":0.65,"target":false},{"text":"File: lib/thor/command.rb\nLine 37: handle_no_method_error?(instance, e, caller) ? instance.class.handle_no_command_error(name) : (raise e)","file":"lib/thor/command.rb","line":37,"lexical":0.65,"target":false},{"text":"File: lib/thor/command.rb\nLine 146: instance.class.handle_no_command_error(name)","file":"lib/thor/command.rb","line":146,"lexical":0.65,"target":false},{"text":"File: lib/thor/group.rb\nLine 207: def handle_argument_error(command, error, _args, arity) #:nodoc:","file":"lib/thor/group.rb","line":207,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/runner.rb\nLine 24: self.class.handle_no_command_error(command, false) if klass.nil?","file":"lib/thor/runner.rb","line":24,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/runner.rb\nLine 38: self.class.handle_no_command_error(command, false) if klass.nil?","file":"lib/thor/runner.rb","line":38,"lexical":0.44999999999999996,"target":false},{"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","line":50,"lexical":0.65,"target":true},{"text":"File: spec/command_spec.rb\nLine 72: def self.handle_no_command_error(name)","file":"spec/command_spec.rb","line":72,"lexical":0.65,"target":false},{"text":"File: spec/subcommand_spec.rb\nLine 18: it \"ignores unknown options (the subcommand class will handle them)\" do","file":"spec/subcommand_spec.rb","line":18,"lexical":0.65,"target":false}]} | |
| {"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 143: # Remove a previously added invocation.","file":"lib/thor/group.rb","line":143,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/group.rb\nLine 147: # remove_invocation :test_framework","file":"lib/thor/group.rb","line":147,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/group.rb\nLine 149: def remove_invocation(*names)","file":"lib/thor/group.rb","line":149,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/base.rb\nLine 182: # the type call check_default_type!","file":"lib/thor/base.rb","line":182,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 184: def check_default_type!","file":"lib/thor/base.rb","line":184,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 185: @check_default_type = true","file":"lib/thor/base.rb","line":185,"lexical":0.44999999999999996,"target":false},{"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","line":189,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 191: @check_default_type = false","file":"lib/thor/base.rb","line":191,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 194: def check_default_type #:nodoc:","file":"lib/thor/base.rb","line":194,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 195: @check_default_type = from_superclass(:check_default_type, nil) unless defined?(@check_default_type)","file":"lib/thor/base.rb","line":195,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 196: @check_default_type","file":"lib/thor/base.rb","line":196,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 690: scope[name] = Thor::Option.new(name, {check_default_type: check_default_type}.merge!(options))","file":"lib/thor/base.rb","line":690,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/parser/option.rb\nLine 8: @check_default_type = options[:check_default_type]","file":"lib/thor/parser/option.rb","line":8,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/parser/option.rb\nLine 150: if @check_default_type","file":"lib/thor/parser/option.rb","line":150,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/parser/option.rb\nLine 152: elsif @check_default_type == nil","file":"lib/thor/parser/option.rb","line":152,"lexical":0.44999999999999996,"target":false},{"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","line":154,"lexical":0.44999999999999996,"target":false},{"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","line":137,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 139: option(\"foo_bar\", type: :numeric, default: \"baz\", check_default_type: true)","file":"spec/parser/option_spec.rb","line":139,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 143: it \"raises an error if repeatable and default is inconsistent with type and check_default_type is true\" do","file":"spec/parser/option_spec.rb","line":143,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 145: option(\"foo_bar\", type: :numeric, repeatable: true, default: \"baz\", check_default_type: true)","file":"spec/parser/option_spec.rb","line":145,"lexical":0.44999999999999996,"target":false},{"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","line":149,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 151: option(\"foo_bar\", type: :hash, repeatable: true, default: \"baz\", check_default_type: true)","file":"spec/parser/option_spec.rb","line":151,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 155: it \"does not raises an error if type hash is repeatable and default is consistent with type and check_default_type is true\" do","file":"spec/parser/option_spec.rb","line":155,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 157: option(\"foo_bar\", type: :hash, repeatable: true, default: {}, check_default_type: true)","file":"spec/parser/option_spec.rb","line":157,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 161: it \"does not raises an error if repeatable and default is consistent with type and check_default_type is true\" do","file":"spec/parser/option_spec.rb","line":161,"lexical":0.44999999999999996,"target":false},{"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","line":163,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 167: it \"does not raises an error if default is an symbol and type string and check_default_type is true\" do","file":"spec/parser/option_spec.rb","line":167,"lexical":0.44999999999999996,"target":false},{"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","line":169,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 173: it \"does not raises an error if default is inconsistent with type and check_default_type is false\" do","file":"spec/parser/option_spec.rb","line":173,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 175: option(\"foo_bar\", type: :numeric, default: \"baz\", check_default_type: false)","file":"spec/parser/option_spec.rb","line":175,"lexical":0.44999999999999996,"target":false},{"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","line":854,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 857: option \"bar\", type: :numeric, default: \"foo\", check_default_type: false","file":"spec/thor_spec.rb","line":857,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 862: it \"checks the default type when check_default_type! is called\" do","file":"spec/thor_spec.rb","line":862,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 865: check_default_type!","file":"spec/thor_spec.rb","line":865,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor.rb\nLine 173: build_option(name, options, scope)","file":"lib/thor.rb","line":173,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 683: # Build an option and adds it to the given scope.","file":"lib/thor/base.rb","line":683,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 689: def build_option(name, options, scope) #:nodoc:","file":"lib/thor/base.rb","line":689,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 700: def build_options(options, scope) #:nodoc:","file":"lib/thor/base.rb","line":700,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/actions.rb\nLine 274: abort if !success && config.fetch(:abort_on_failure, self.class.exit_on_failure?)","file":"lib/thor/actions.rb","line":274,"lexical":0.65,"target":false},{"text":"File: lib/thor/base.rb\nLine 588: exit(false) if exit_on_failure?","file":"lib/thor/base.rb","line":588,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 629: def exit_on_failure?","file":"lib/thor/base.rb","line":629,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 630: Thor.deprecation_warning \"Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `#{self.name}`\"","file":"lib/thor/base.rb","line":630,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/runner.rb\nLine 14: def self.exit_on_failure?","file":"lib/thor/runner.rb","line":14,"lexical":0.44999999999999996,"target":false},{"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","line":316,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 330: expect { action :run, \"false\", abort_on_failure: true, capture: true }.to raise_error(SystemExit)","file":"spec/actions_spec.rb","line":330,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 344: context \"exit_on_failure? is true\" do","file":"spec/actions_spec.rb","line":344,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 346: allow(MyCounter).to receive(:exit_on_failure?).and_return(true)","file":"spec/actions_spec.rb","line":346,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/command.thor","line":4,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/exit_status.thor","line":4,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 5: def self.exit_on_failure?","file":"spec/fixtures/group.thor","line":5,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":4,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 186: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":186,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 224: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":224,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 248: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":248,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?","file":"spec/fixtures/verbose.thor","line":8,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/subcommand_spec.rb\nLine 59: def self.exit_on_failure?","file":"spec/subcommand_spec.rb","line":59,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 177: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":177,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 231: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":231,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 297: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":297,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 877: context \"without an exit_on_failure? method\" do","file":"spec/thor_spec.rb","line":877,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 887: end.to output(/^Deprecation.*exit_on_failure/).to_stderr","file":"spec/thor_spec.rb","line":887,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/command.rb\nLine 40: # Returns the formatted usage by injecting given required arguments","file":"lib/thor/command.rb","line":40,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/command.rb\nLine 56: formatted_specific_usage += required_arguments_for(klass, specific_usage)","file":"lib/thor/command.rb","line":56,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/command.rb\nLine 76: # Add usage with required arguments","file":"lib/thor/command.rb","line":76,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/command.rb\nLine 77: def required_arguments_for(klass, usage)","file":"lib/thor/command.rb","line":77,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor.rb\nLine 205: :method_exclusive_option_names, *args, &block)","file":"lib/thor.rb","line":205,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 460: def method_exclusive_option_names #:nodoc:","file":"lib/thor.rb","line":460,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 461: @method_exclusive_option_names ||= []","file":"lib/thor.rb","line":461,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 484: opts = command.method_exclusive_option_names unless command.nil?","file":"lib/thor.rb","line":484,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 485: opts += class_exclusive_option_names","file":"lib/thor.rb","line":485,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 569: relations = {exclusive_option_names: method_exclusive_option_names,","file":"lib/thor.rb","line":569,"lexical":0.35,"target":false},{"text":"File: lib/thor.rb\nLine 573: @method_exclusive_option_names, @method_at_least_one_option_names = nil","file":"lib/thor.rb","line":573,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 84: {exclusive_option_names: [], at_least_one_option_names: []}","file":"lib/thor/base.rb","line":84,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 89: self.class.class_exclusive_option_names.map { |n| relations[:exclusive_option_names] << n }","file":"lib/thor/base.rb","line":89,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 360: :class_exclusive_option_names, *args, &block)","file":"lib/thor/base.rb","line":360,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 403: def class_exclusive_option_names","file":"lib/thor/base.rb","line":403,"lexical":0.35,"target":false},{"text":"File: lib/thor/base.rb\nLine 404: @class_exclusive_option_names ||= from_superclass(:class_exclusive_option_names, [])","file":"lib/thor/base.rb","line":404,"lexical":0.35,"target":false},{"text":"File: lib/thor/command.rb\nLine 66: def method_exclusive_option_names #:nodoc:","file":"lib/thor/command.rb","line":66,"lexical":0.35,"target":true},{"text":"File: lib/thor/command.rb\nLine 67: self.options_relation[:exclusive_option_names] || []","file":"lib/thor/command.rb","line":67,"lexical":0.35,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 34: @exclusives = (relations[:exclusive_option_names] || []).select{|array| !array.empty?}","file":"lib/thor/parser/options.rb","line":34,"lexical":0.35,"target":false},{"text":"File: spec/base_spec.rb\nLine 73: describe \"#class_exclusive_option_names\" do","file":"spec/base_spec.rb","line":73,"lexical":0.35,"target":false},{"text":"File: spec/base_spec.rb\nLine 75: expect(MyClassOptionScript.class_exclusive_option_names.size).to be(1)","file":"spec/base_spec.rb","line":75,"lexical":0.35,"target":false},{"text":"File: spec/base_spec.rb\nLine 76: expect(MyClassOptionScript.class_exclusive_option_names.first.size).to be(2)","file":"spec/base_spec.rb","line":76,"lexical":0.35,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 7: exclusive_option_names: exclusives,","file":"spec/parser/options_spec.rb","line":7,"lexical":0.35,"target":false},{"text":"File: spec/thor_spec.rb\nLine 440: exclusives = cmd.options_relation[:exclusive_option_names]","file":"spec/thor_spec.rb","line":440,"lexical":0.35,"target":false}]} | |
| {"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/base.rb\nLine 188: # If you want to use defaults that don't match the type of an option,","file":"lib/thor/base.rb","line":188,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 690: scope[name] = Thor::Option.new(name, {check_default_type: check_default_type}.merge!(options))","file":"lib/thor/base.rb","line":690,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/group.rb\nLine 176: option.type == :boolean ? name : option.default","file":"lib/thor/group.rb","line":176,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/invocation.rb\nLine 75: # class_option :mock_framework, :type => :string, :default => :rr","file":"lib/thor/invocation.rb","line":75,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/invocation.rb\nLine 86: # class_option :style, :type => :string, :default => :mock","file":"lib/thor/invocation.rb","line":86,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/parser/option.rb\nLine 8: @check_default_type = options[:check_default_type]","file":"lib/thor/parser/option.rb","line":8,"lexical":0.65,"target":false},{"text":"File: lib/thor/parser/option.rb\nLine 31: # #=> Option foo with default value 2 and type numeric","file":"lib/thor/parser/option.rb","line":31,"lexical":0.65,"target":false},{"text":"File: lib/thor/parser/option.rb\nLine 34: # #=> Option foo without default value and type numeric","file":"lib/thor/parser/option.rb","line":34,"lexical":0.65,"target":false},{"text":"File: lib/thor/parser/option.rb\nLine 37: # #=> Option foo with default value true and type boolean","file":"lib/thor/parser/option.rb","line":37,"lexical":0.65,"target":false},{"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","line":154,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 19: class_option :third, :type => :numeric, :desc => \"The third argument\", :default => 3,","file":"spec/fixtures/group.thor","line":19,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 24: class_option :array, :type => :array, :default => ['foo','bar']","file":"spec/fixtures/group.thor","line":24,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 79: class_option :fail, :type => :boolean, :default => false","file":"spec/fixtures/group.thor","line":79,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/invoke.thor\nLine 58: option :defaulted_value, :type => :string, :default => 'default'","file":"spec/fixtures/invoke.thor","line":58,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/invoke.thor\nLine 111: class_option :invoked, :type => :string, :default => \"defined\"","file":"spec/fixtures/invoke.thor","line":111,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/invoke.thor\nLine 116: class_option :defined, :type => :boolean, :default => true","file":"spec/fixtures/invoke.thor","line":116,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 113: method_option :lazy_numeric, :type => :numeric, :lazy_default => 42","file":"spec/fixtures/script.thor","line":113,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 114: method_option :lazy_array, :type => :array, :lazy_default => %w[eat at joes]","file":"spec/fixtures/script.thor","line":114,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 115: method_option :lazy_hash, :type => :hash, :lazy_default => {'swedish' => 'meatballs'}","file":"spec/fixtures/script.thor","line":115,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 175: method_option :other, :type => :string, :default => \"method default\", :for => :animal","file":"spec/fixtures/script.thor","line":175,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 200: method_option :coats, :type => :numeric, :default => 2, :desc => 'how many coats of paint'","file":"spec/fixtures/script.thor","line":200,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 214: method_option :new_option, :type => :string, :for => :example_default_command","file":"spec/fixtures/script.thor","line":214,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/arguments_spec.rb\nLine 7: options = {required: default.nil?, type: type, default: default}","file":"spec/parser/arguments_spec.rb","line":7,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 132: option = option(\"foo\", required: true, type: :string, default: \"bar\")","file":"spec/parser/option_spec.rb","line":132,"lexical":0.65,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 139: option(\"foo_bar\", type: :numeric, default: \"baz\", check_default_type: true)","file":"spec/parser/option_spec.rb","line":139,"lexical":0.65,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 145: option(\"foo_bar\", type: :numeric, repeatable: true, default: \"baz\", check_default_type: true)","file":"spec/parser/option_spec.rb","line":145,"lexical":0.65,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 151: option(\"foo_bar\", type: :hash, repeatable: true, default: \"baz\", check_default_type: true)","file":"spec/parser/option_spec.rb","line":151,"lexical":0.65,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 157: option(\"foo_bar\", type: :hash, repeatable: true, default: {}, check_default_type: true)","file":"spec/parser/option_spec.rb","line":157,"lexical":0.65,"target":false},{"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","line":163,"lexical":0.65,"target":false},{"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","line":169,"lexical":0.65,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 175: option(\"foo_bar\", type: :numeric, default: \"baz\", check_default_type: false)","file":"spec/parser/option_spec.rb","line":175,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 217: options = {required: true, type: :string, default: \"baz\"}","file":"spec/parser/options_spec.rb","line":217,"lexical":0.65,"target":false}]} | |
| {"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: lib/thor.rb\nLine 209: # Adds and declares option group for required at least one of options in the","file":"lib/thor.rb","line":209,"lexical":0.5,"target":true},{"text":"File: lib/thor.rb\nLine 248: :method_at_least_one_option_names, *args, &block)","file":"lib/thor.rb","line":248,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 268: print_at_least_one_required_options(shell, command)","file":"lib/thor.rb","line":268,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 305: print_at_least_one_required_options(shell)","file":"lib/thor.rb","line":305,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 464: # Returns this class at least one of required options array set.","file":"lib/thor.rb","line":464,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 469: def method_at_least_one_option_names #:nodoc:","file":"lib/thor.rb","line":469,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 470: @method_at_least_one_option_names ||= []","file":"lib/thor.rb","line":470,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 493: def print_at_least_one_required_options(shell, command = nil) # :nodoc:","file":"lib/thor.rb","line":493,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 495: opts = command.method_at_least_one_option_names unless command.nil?","file":"lib/thor.rb","line":495,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 496: opts += class_at_least_one_option_names","file":"lib/thor.rb","line":496,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 570: at_least_one_option_names: method_at_least_one_option_names}","file":"lib/thor.rb","line":570,"lexical":0.5,"target":false},{"text":"File: lib/thor.rb\nLine 573: @method_exclusive_option_names, @method_at_least_one_option_names = nil","file":"lib/thor.rb","line":573,"lexical":0.5,"target":false},{"text":"File: lib/thor/base.rb\nLine 84: {exclusive_option_names: [], at_least_one_option_names: []}","file":"lib/thor/base.rb","line":84,"lexical":0.5,"target":false},{"text":"File: lib/thor/base.rb\nLine 90: self.class.class_at_least_one_option_names.map { |n| relations[:at_least_one_option_names] << n }","file":"lib/thor/base.rb","line":90,"lexical":0.5,"target":false},{"text":"File: lib/thor/base.rb\nLine 363: # Adds and declares option group for required at least one of options in the","file":"lib/thor/base.rb","line":363,"lexical":0.5,"target":false},{"text":"File: lib/thor/base.rb\nLine 395: :class_at_least_one_option_names, *args, &block)","file":"lib/thor/base.rb","line":395,"lexical":0.5,"target":false},{"text":"File: lib/thor/base.rb\nLine 407: # Returns this class at least one of required options array set, looking up in the ancestors chain.","file":"lib/thor/base.rb","line":407,"lexical":0.5,"target":false},{"text":"File: lib/thor/base.rb\nLine 412: def class_at_least_one_option_names","file":"lib/thor/base.rb","line":412,"lexical":0.5,"target":false},{"text":"File: lib/thor/base.rb\nLine 413: @class_at_least_one_option_names ||= from_superclass(:class_at_least_one_option_names, [])","file":"lib/thor/base.rb","line":413,"lexical":0.5,"target":false},{"text":"File: lib/thor/command.rb\nLine 70: def method_at_least_one_option_names #:nodoc:","file":"lib/thor/command.rb","line":70,"lexical":0.5,"target":false},{"text":"File: lib/thor/command.rb\nLine 71: self.options_relation[:at_least_one_option_names] || []","file":"lib/thor/command.rb","line":71,"lexical":0.5,"target":false},{"text":"File: lib/thor/parser/options.rb\nLine 35: @at_least_ones = (relations[:at_least_one_option_names] || []).select{|array| !array.empty?}","file":"lib/thor/parser/options.rb","line":35,"lexical":0.65,"target":false},{"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","line":158,"lexical":0.65,"target":false},{"text":"File: spec/base_spec.rb\nLine 80: describe \"#class_at_least_one_option_names\" do","file":"spec/base_spec.rb","line":80,"lexical":0.5,"target":false},{"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","line":81,"lexical":0.5,"target":false},{"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","line":82,"lexical":0.5,"target":false},{"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","line":83,"lexical":0.5,"target":false},{"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","line":105,"lexical":0.5,"target":false},{"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","line":111,"lexical":0.5,"target":false},{"text":"File: spec/base_spec.rb\nLine 115: end.to raise_error(Thor::AtLeastOneRequiredArgumentError, \"Not found at least one of required options '--five', '--six', '--seven'\")","file":"spec/base_spec.rb","line":115,"lexical":0.5,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 8: at_least_one_option_names: at_least_ones","file":"spec/parser/options_spec.rb","line":8,"lexical":0.65,"target":false},{"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","line":281,"lexical":0.65,"target":false}]} | |
| {"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/directory_spec.rb\nLine 102: copy = File.join(destination_root, \"preserved\", \"script.sh\")","file":"spec/actions/directory_spec.rb","line":102,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 70: action :copy_file, \"preserve/script.sh\", mode: :preserve","file":"spec/actions/file_manipulation_spec.rb","line":70,"lexical":0.65,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 72: copy = File.join(destination_root, \"preserve/script.sh\")","file":"spec/actions/file_manipulation_spec.rb","line":72,"lexical":0.65,"target":false},{"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","line":78,"lexical":0.65,"target":false},{"text":"File: spec/actions/file_manipulation_spec.rb\nLine 80: copy = File.join(destination_root, \"preserve/app.sh\")","file":"spec/actions/file_manipulation_spec.rb","line":80,"lexical":0.65,"target":false}]} | |
| {"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/actions/inject_into_file.rb\nLine 95: elsif replacement_present?","file":"lib/thor/actions/inject_into_file.rb","line":95,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 147: def replacement_present?","file":"lib/thor/actions/inject_into_file.rb","line":147,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/actions/inject_into_file.rb\nLine 154: if force || !replacement_present?","file":"lib/thor/actions/inject_into_file.rb","line":154,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 51: it \"does not change the file if replacement present in the file\" do","file":"spec/actions/inject_into_file_spec.rb","line":51,"lexical":0.39999999999999997,"target":false},{"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","line":194,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: lib/thor/command.rb\nLine 40: # Returns the formatted usage by injecting given required arguments","file":"lib/thor/command.rb","line":40,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/command.rb\nLine 56: formatted_specific_usage += required_arguments_for(klass, specific_usage)","file":"lib/thor/command.rb","line":56,"lexical":0.44999999999999996,"target":false}]} | |
| {"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_link_spec.rb\nLine 43: it \"creates a symbolic link\" do","file":"spec/actions/create_link_spec.rb","line":43,"lexical":0.65,"target":false},{"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","line":63,"lexical":0.65,"target":false}]} | |
| {"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/base.rb\nLine 156: no_commands { super }","file":"lib/thor/base.rb","line":156,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/base.rb\nLine 160: no_commands { super }","file":"lib/thor/base.rb","line":160,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 164: no_commands { super }","file":"lib/thor/base.rb","line":164,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/runner.rb\nLine 305: # Order namespaces with default coming first","file":"lib/thor/runner.rb","line":305,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 69: remove_argument :first, :second, :undefine => true","file":"spec/fixtures/group.thor","line":69,"lexical":0.39999999999999997,"target":true},{"text":"File: spec/fixtures/invoke.thor\nLine 43: def one(first_name)","file":"spec/fixtures/invoke.thor","line":43,"lexical":0.39999999999999997,"target":false}]} | |
| {"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/parser/argument_spec.rb\nLine 44: it \"returns usage for array types\" do","file":"spec/parser/argument_spec.rb","line":44,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/parser/option_spec.rb\nLine 212: it \"returns usage for array types\" do","file":"spec/parser/option_spec.rb","line":212,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/base.rb\nLine 532: no_commands_context.enter(&block)","file":"lib/thor/base.rb","line":532,"lexical":0.44999999999999996,"target":true},{"text":"File: lib/thor/base.rb\nLine 537: def no_commands_context","file":"lib/thor/base.rb","line":537,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 538: @no_commands_context ||= NestedContext.new","file":"lib/thor/base.rb","line":538,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 542: no_commands_context.entered?","file":"lib/thor/base.rb","line":542,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/shell/html_spec.rb\nLine 34: expect(shell.set_color(\"<htmlcontent>\", :blue)).to eq \"<span style=\\\"color: blue;\\\"><htmlcontent></span>\"","file":"spec/shell/html_spec.rb","line":34,"lexical":0.65,"target":false},{"text":"File: spec/shell/html_spec.rb\nLine 38: expect(shell.set_color(\"<htmlcontent>\", [:nocolor])).to eq \"<span style=\\\";\\\"><htmlcontent></span>\"","file":"spec/shell/html_spec.rb","line":38,"lexical":0.65,"target":false}]} | |
| {"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/base.rb\nLine 793: def dispatch(command, given_args, given_opts, config) #:nodoc:","file":"lib/thor/base.rb","line":793,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/group.rb\nLine 228: def dispatch(command, given_args, given_opts, config) #:nodoc:","file":"lib/thor/group.rb","line":228,"lexical":0.39999999999999997,"target":true},{"text":"File: lib/thor/invocation.rb\nLine 116: klass.send(:dispatch, command, args, opts, config) do |instance|","file":"lib/thor/invocation.rb","line":116,"lexical":0.39999999999999997,"target":false}]} | |
| {"site":"project_search","repo":"thor","task":"引数とスイッチを分割する静的メソッドを実装する","query":"argument split","file":"lib/thor/parser/arguments.rb","symbol":"Arguments","line":2,"lang":"ja","candidates":[{"text":"File: lib/thor.rb\nLine 335: args, opts = Thor::Arguments.split(args)","file":"lib/thor.rb","line":335,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/base.rb\nLine 57: # The start method splits inbound arguments at the first argument","file":"lib/thor/base.rb","line":57,"lexical":0.39999999999999997,"target":false}]} | |
| {"site":"project_search","repo":"thor","task":"터미널의 가로 너비를 계산하는 로직이 어디에 있는지 찾고 있어요. 환경 변수나 시스템 명령어를 사용해서 화면 크기를 가져오는 부분이 어디인가요?","query":"terminal width","file":"lib/thor/shell/terminal.rb","symbol":"Thor","line":1,"lang":"ko","candidates":[{"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","line":24,"lexical":0.39999999999999997,"target":false},{"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","line":19,"lexical":0.39999999999999997,"target":false},{"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","line":14,"lexical":0.39999999999999997,"target":false},{"text":"File: lib/thor/shell/terminal.rb\nLine 4: DEFAULT_TERMINAL_WIDTH = 80","file":"lib/thor/shell/terminal.rb","line":4,"lexical":0.6000000000000001,"target":true},{"text":"File: lib/thor/shell/terminal.rb\nLine 9: def terminal_width","file":"lib/thor/shell/terminal.rb","line":9,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/shell/terminal.rb\nLine 13: unix? ? dynamic_width : DEFAULT_TERMINAL_WIDTH","file":"lib/thor/shell/terminal.rb","line":13,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/shell/terminal.rb\nLine 15: result < 10 ? DEFAULT_TERMINAL_WIDTH : result","file":"lib/thor/shell/terminal.rb","line":15,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/shell/terminal.rb\nLine 17: DEFAULT_TERMINAL_WIDTH","file":"lib/thor/shell/terminal.rb","line":17,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/shell/terminal.rb\nLine 26: # Calculate the dynamic width of the terminal","file":"lib/thor/shell/terminal.rb","line":26,"lexical":0.6000000000000001,"target":false},{"text":"File: lib/thor/shell/wrapped_printer.rb\nLine 8: width = Terminal.terminal_width - @indent","file":"lib/thor/shell/wrapped_printer.rb","line":8,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/shell/basic_spec.rb\nLine 368: it \"uses maximum terminal width\" do","file":"spec/shell/basic_spec.rb","line":368,"lexical":0.39999999999999997,"target":false},{"text":"File: spec/thor_spec.rb\nLine 565: expect(Thor::Shell::Terminal).to receive(:terminal_width).and_return(80)","file":"spec/thor_spec.rb","line":565,"lexical":0.39999999999999997,"target":false}]} | |
| {"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: spec/actions/create_file_spec.rb\nLine 18: capture(:stdout) { @action.invoke! }","file":"spec/actions/create_file_spec.rb","line":18,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/actions/create_link_spec.rb\nLine 32: capture(:stdout) { action.invoke! }","file":"spec/actions/create_link_spec.rb","line":32,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/directory_spec.rb\nLine 20: capture(:stdout) { invoker.directory(*args, &block) }","file":"spec/actions/directory_spec.rb","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/empty_directory_spec.rb\nLine 14: capture(:stdout) { @action.invoke! }","file":"spec/actions/empty_directory_spec.rb","line":14,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/actions/inject_into_file_spec.rb\nLine 20: capture(:stdout) { invoker.insert_into_file(*args, &block) }","file":"spec/actions/inject_into_file_spec.rb","line":20,"lexical":0.44999999999999996,"target":false},{"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","line":24,"lexical":0.44999999999999996,"target":false},{"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","line":12,"lexical":0.44999999999999996,"target":false},{"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","line":16,"lexical":0.44999999999999996,"target":false},{"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","line":20,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/group_spec.rb\nLine 124: expect(capture(:stdout) { G.start(%w(--skip-invoked)) }).not_to match(/invoke/)","file":"spec/group_spec.rb","line":124,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/group_spec.rb\nLine 128: content = capture(:stdout) { G.start(%w(--invoked unknown)) }","file":"spec/group_spec.rb","line":128,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/group_spec.rb\nLine 169: expect(capture(:stdout) { H.start(%w(--no-defined)) }).not_to match(/invoke/)","file":"spec/group_spec.rb","line":169,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 7: expect(capture(:stdout) { A.new.invoke(:two) }).to eq(\"2\\n3\\n\")","file":"spec/invocation_spec.rb","line":7,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 11: expect(capture(:stdout) { A.new.invoke(:one) }).to eq(\"1\\n2\\n3\\n\")","file":"spec/invocation_spec.rb","line":11,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 15: expect(capture(:stdout) { Defined.new.invoke(:one) }).to eq(\"1\\n2\\n3\\n4\\n5\\n\")","file":"spec/invocation_spec.rb","line":15,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 24: content = capture(:stdout) { A.new.invoke(\"b\") }","file":"spec/invocation_spec.rb","line":24,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 30: content = capture(:stdout) { A.new.invoke(B) }","file":"spec/invocation_spec.rb","line":30,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 79: expect(capture(:stdout) { A.new.invoke(:c) }).to eq(\"1\\n2\\n3\\n\")","file":"spec/invocation_spec.rb","line":79,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 85: expect(capture(:stdout) { base.invoke(:c) }).to be_empty","file":"spec/invocation_spec.rb","line":85,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/invocation_spec.rb\nLine 91: expect(capture(:stdout) { base.invoke(\"c:one\") }).to be_empty","file":"spec/invocation_spec.rb","line":91,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: spec/fixtures/script.thor\nLine 72: options.empty? ? \"default command\" : options","file":"spec/fixtures/script.thor","line":72,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/thor_spec.rb\nLine 504: it \"uses command default options\" do","file":"spec/thor_spec.rb","line":504,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/actions/create_file.rb\nLine 35: def initialize(base, destination, data, config = {})","file":"lib/thor/actions/create_file.rb","line":35,"lexical":0.44999999999999996,"target":true},{"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","line":69,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/actions.rb\nLine 315: args.push Thor::Options.to_switches(config)","file":"lib/thor/actions.rb","line":315,"lexical":0.55,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 30: expect(Thor::Options.to_switches(color: true)).to eq(\"--color\")","file":"spec/parser/options_spec.rb","line":30,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 34: expect(Thor::Options.to_switches(color: nil)).to eq(\"\")","file":"spec/parser/options_spec.rb","line":34,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 38: expect(Thor::Options.to_switches(color: false)).to eq(\"\")","file":"spec/parser/options_spec.rb","line":38,"lexical":0.65,"target":false},{"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","line":42,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 46: expect(Thor::Options.to_switches(format: \"specdoc\")).to eq('--format \"specdoc\"')","file":"spec/parser/options_spec.rb","line":46,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 50: switches = Thor::Options.to_switches(color: true, foo: \"bar\").split(\" \").sort","file":"spec/parser/options_spec.rb","line":50,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 55: expect(Thor::Options.to_switches(count: [1, 2, 3])).to eq(\"--count 1 2 3\")","file":"spec/parser/options_spec.rb","line":55,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 59: expect(Thor::Options.to_switches(count: {a: :b})).to eq(\"--count a:b\")","file":"spec/parser/options_spec.rb","line":59,"lexical":0.65,"target":false},{"text":"File: spec/parser/options_spec.rb\nLine 63: expect(Thor::Options.to_switches(under_score_option: \"foo bar\")).to eq('--under_score_option \"foo bar\"')","file":"spec/parser/options_spec.rb","line":63,"lexical":0.65,"target":false}]} | |
| {"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/actions.rb\nLine 274: abort if !success && config.fetch(:abort_on_failure, self.class.exit_on_failure?)","file":"lib/thor/actions.rb","line":274,"lexical":0.65,"target":false},{"text":"File: lib/thor/base.rb\nLine 588: exit(false) if exit_on_failure?","file":"lib/thor/base.rb","line":588,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 629: def exit_on_failure?","file":"lib/thor/base.rb","line":629,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 630: Thor.deprecation_warning \"Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `#{self.name}`\"","file":"lib/thor/base.rb","line":630,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/runner.rb\nLine 14: def self.exit_on_failure?","file":"lib/thor/runner.rb","line":14,"lexical":0.44999999999999996,"target":false},{"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","line":316,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 330: expect { action :run, \"false\", abort_on_failure: true, capture: true }.to raise_error(SystemExit)","file":"spec/actions_spec.rb","line":330,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 344: context \"exit_on_failure? is true\" do","file":"spec/actions_spec.rb","line":344,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 346: allow(MyCounter).to receive(:exit_on_failure?).and_return(true)","file":"spec/actions_spec.rb","line":346,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/command.thor","line":4,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/exit_status.thor","line":4,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 5: def self.exit_on_failure?","file":"spec/fixtures/group.thor","line":5,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":4,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 186: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":186,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 224: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":224,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 248: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":248,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?","file":"spec/fixtures/verbose.thor","line":8,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/subcommand_spec.rb\nLine 59: def self.exit_on_failure?","file":"spec/subcommand_spec.rb","line":59,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 177: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":177,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 231: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":231,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 297: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":297,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 877: context \"without an exit_on_failure? method\" do","file":"spec/thor_spec.rb","line":877,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 887: end.to output(/^Deprecation.*exit_on_failure/).to_stderr","file":"spec/thor_spec.rb","line":887,"lexical":0.44999999999999996,"target":false}]} | |
| {"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/actions.rb\nLine 274: abort if !success && config.fetch(:abort_on_failure, self.class.exit_on_failure?)","file":"lib/thor/actions.rb","line":274,"lexical":0.65,"target":false},{"text":"File: lib/thor/base.rb\nLine 588: exit(false) if exit_on_failure?","file":"lib/thor/base.rb","line":588,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 629: def exit_on_failure?","file":"lib/thor/base.rb","line":629,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/base.rb\nLine 630: Thor.deprecation_warning \"Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `#{self.name}`\"","file":"lib/thor/base.rb","line":630,"lexical":0.44999999999999996,"target":false},{"text":"File: lib/thor/runner.rb\nLine 14: def self.exit_on_failure?","file":"lib/thor/runner.rb","line":14,"lexical":0.44999999999999996,"target":false},{"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","line":316,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 330: expect { action :run, \"false\", abort_on_failure: true, capture: true }.to raise_error(SystemExit)","file":"spec/actions_spec.rb","line":330,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 344: context \"exit_on_failure? is true\" do","file":"spec/actions_spec.rb","line":344,"lexical":0.65,"target":false},{"text":"File: spec/actions_spec.rb\nLine 346: allow(MyCounter).to receive(:exit_on_failure?).and_return(true)","file":"spec/actions_spec.rb","line":346,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/command.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/command.thor","line":4,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/exit_status.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/exit_status.thor","line":4,"lexical":0.65,"target":false},{"text":"File: spec/fixtures/group.thor\nLine 5: def self.exit_on_failure?","file":"spec/fixtures/group.thor","line":5,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 4: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":4,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 186: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":186,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 224: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":224,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/script.thor\nLine 248: def self.exit_on_failure?","file":"spec/fixtures/script.thor","line":248,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/fixtures/verbose.thor\nLine 8: def self.exit_on_failure?","file":"spec/fixtures/verbose.thor","line":8,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/subcommand_spec.rb\nLine 59: def self.exit_on_failure?","file":"spec/subcommand_spec.rb","line":59,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 177: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":177,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 231: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":231,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 297: def self.exit_on_failure?","file":"spec/thor_spec.rb","line":297,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 877: context \"without an exit_on_failure? method\" do","file":"spec/thor_spec.rb","line":877,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/thor_spec.rb\nLine 887: end.to output(/^Deprecation.*exit_on_failure/).to_stderr","file":"spec/thor_spec.rb","line":887,"lexical":0.44999999999999996,"target":false}]} | |
| {"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: lib/thor/line_editor/basic.rb\nLine 28: $stdin.noecho(&:gets)","file":"lib/thor/line_editor/basic.rb","line":28,"lexical":0.44999999999999996,"target":true},{"text":"File: spec/line_editor/basic_spec.rb\nLine 22: expect(noecho_stdin).to receive(:gets).and_return(\"secret\")","file":"spec/line_editor/basic_spec.rb","line":22,"lexical":0.44999999999999996,"target":false},{"text":"File: spec/line_editor/readline_spec.rb\nLine 65: expect(noecho_stdin).to receive(:gets).and_return(\"secret\")","file":"spec/line_editor/readline_spec.rb","line":65,"lexical":0.44999999999999996,"target":false}]} | |