Dan42

String split(" ") in 653 gems (http://pastebin.com/KajXEt7A)

May 13th, 2020
96
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #actionpack-6.0.0/lib/action_controller/metal/http_authentication.rb
  2. 116:        request.authorization.to_s.split(" ", 2).first
  3. 120:        request.authorization.to_s.split(" ", 2).second
  4. #activerecord-6.0.0/lib/active_record/connection_adapters/postgresql/schema_statements.rb
  5. 105:            indkey = row[2].split(" ").map(&:to_i)
  6. #airbrake-9.4.3/lib/airbrake/rack/route_filter.rb
  7. 40:        route.split(' ').drop(1).join(' ')
  8. #airbrake-ruby-4.6.0/lib/airbrake-ruby/filters/git_last_checkout_filter.rb
  9. 52:        parts = line.chomp.split("\t").first.split(' ')
  10. #airbrake-ruby-4.6.0/lib/airbrake-ruby/filters/git_revision_filter.rb
  11. 58:          next unless (parts = line.split(' ')).size == 2
  12. #aws-sdk-s3-1.48.0/lib/aws-sdk-s3/file_downloader.rb
  13. 128:        range, _ = resp.content_range.split(" ").last.split("/")
  14. #brakeman-4.6.1/bundle/ruby/2.6.0/gems/erubis-2.7.0/contrib/erubis
  15. 421:          left, right = @pattern.split(' ')
  16. #brakeman-4.6.1/bundle/ruby/2.6.0/gems/erubis-2.7.0/lib/erubis/converter.rb
  17. 236:          left, right = @pattern.split(' ')
  18. #brakeman-4.6.1/bundle/ruby/2.6.0/gems/haml-4.0.7/lib/haml/buffer.rb
  19. 244:        from['class'] = (from['class'].to_s.split(' ') | to['class'].split(' ')).sort.join(' ')
  20. #bundler-2.0.2/lib/bundler/compact_index_client/cache.rb
  21. 30:          name, versions_string, info_checksum = line.split(" ", 3)
  22. 54:          name, _, checksum = line.split(" ", 3)
  23. 96:        version_and_platform, rest = string.split(" ", 2)
  24. #bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/base.rb
  25. 653:        File.basename($PROGRAM_NAME).split(" ").first
  26. #bundler-2.0.2/lib/bundler/vendor/thor/lib/thor/shell/basic.rb
  27. 234:          unwrapped.split(" ").inject do |memo, word|
  28. #bunny-2.14.2/lib/bunny/session.rb
  29. 1169:      @server_authentication_mechanisms = (connection_start.mechanisms || "").split(" ")
  30. #byebug-11.0.1/lib/byebug/command.rb
  31. 52:      @match[0].split(" ").drop(1).join(" ")
  32. #capybara-3.29.0/lib/capybara/selenium/nodes/chrome_node.rb
  33. 110:    capabilities['chrome']['chromedriverVersion'].split(' ')[0]
  34. #chronic-0.10.2/lib/chronic/parser.rb
  35. 227:      tokens = text.split(' ').map { |word| Token.new(word) }
  36. #claide-1.0.3/lib/claide/command.rb
  37. 650:      @arguments = arguments.split(' ').map do |argument|
  38. #compass-core-1.0.3/lib/compass/core/sass_extensions/functions/gradient_support.rb
  39. 406:          opts(list(position_or_angle.to_s.split(' ').map {|s| identifier(s) }, :space))
  40. #cucumber-3.1.2/lib/cucumber/rake/task.rb
  41. 118:        @cucumber_opts = String === opts ? opts.split(' ') : opts
  42. #dalli-2.7.10/lib/dalli/server.rb
  43. 709:      mechanisms = content.split(' ')
  44. #did_you_mean-1.3.0/lib/did_you_mean.rb
  45. 28:#   first_name, last_name = full_name.split(" ")
  46. #erubis-2.7.0/contrib/erubis
  47. 421:          left, right = @pattern.split(' ')
  48. #erubis-2.7.0/lib/erubis/converter.rb
  49. 236:          left, right = @pattern.split(' ')
  50. #excon-0.66.0/lib/excon/socket.rb
  51. 248:          if OpenSSL.const_defined?(:OPENSSL_LIBRARY_VERSION) && OpenSSL::OPENSSL_LIBRARY_VERSION.split(' ')[1] == '1.0.2'
  52. #execjs-2.7.0/lib/execjs/external_runtime.rb
  53. 174:            command = binary.split(" ") << filename
  54. 199:          command = "#{Shellwords.join(binary.split(' ') << filename)} 2>&1"
  55. 212:          io = IO.popen(binary.split(' ') << filename, @popen_options.merge({err: [:child, :out]}))
  56. #facter-2.5.6/lib/facter/kernelrelease.rb
  57. 28:    Facter::Util::POSIX.sysctl("kern.version").split(' ')[1]
  58. #facter-2.5.6/lib/facter/util/dhcp_servers.rb
  59. 8:        device, destination = line.split(' ')
  60. #facter-2.5.6/lib/facter/util/uptime.rb
  61. 26:      output.chomp.split(" ").first.to_i
  62. #faker-2.2.2/lib/faker/default/internet.rb
  63. 152:        with_locale(:en) { Char.prepare(Company.name.split(' ').first) }
  64. #faker-2.2.2/lib/faker/default/markdown.rb
  65. 12:        words = paragraph.split(' ')
  66. #fission-0.5.0/lib/fission/lease.rb
  67. 134:          lease.ip_address = line.split(' ')[1]
  68. 136:          lease.start = DateTime.parse(line.split(' ')[2..3].join(' '))
  69. 138:          lease.end = DateTime.parse(line.split(' ')[2..3].join(' '))
  70. 140:          lease.mac_address = line.split(' ')[2]
  71. #fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/server.rb
  72. 214:                             ips.map { |ip| { :href => ip.network.href, :name => ip.network.name.split(" ")[0], :type => ip.network.type } }.push(:href => options[:href], :name => options[:network_name], :type => "application/vnd.tmrk.cloud.network").uniq
  73. 241:                                 :name => ip.network.name.split(" ")[0],
  74. #foreman-0.85.0/lib/foreman/engine.rb
  75. 150:    options[:cwd] ||= File.dirname(command.split(" ").first)
  76. #foreman-0.85.0/lib/foreman/export/daemon.rb
  77. 21:        arguments = process.command.split(" ")
  78. #foreman-0.85.0/spec/spec_helper.rb
  79. 42:      Foreman::CLI.start(args.split(" "))
  80. #google-api-client-0.23.9/lib/google/apis/core/batch.rb
  81. 204:          _, status = status_line.split(' ', 3)
  82. #google-api-client-0.30.9/lib/google/apis/core/batch.rb
  83. 206:          _, status = status_line.split(' ', 3)
  84. #googleauth-0.6.7/lib/googleauth/scope_util.rb
  85. 54:          scope.split(' ')
  86. #haml-5.1.2/lib/haml/attribute_builder.rb
  87. 129:            merged_class = (merged_class.split(' ') | to.split(' ')).sort.join(' ')
  88. #kgio-2.11.2/setup.rb
  89. 1320:      cmd, *args = *line.strip.sub(/\A\#!/, '').split(' ')
  90. #mini_magick-4.9.5/lib/mini_magick/image/info.rb
  91. 45:          format, width, height, size = self["%m %w %h %b"].split(" ")
  92. 78:        output.split(" ").map(&:to_i)
  93. #mixlib-cli-2.1.1/lib/mixlib/cli/formatter.rb
  94. 16:        usage << short.split(" ").first if short
  95. 18:        usage << long.split(" ").first if long
  96. #mysql2-0.5.2/lib/mysql2/client.rb
  97. 57:        parse_flags_array(opts[:flags].split(' '), @query_options[:connect_flags])
  98. #oauth-0.5.4/lib/oauth/cli/base_command.rb
  99. 121:        arguments = open(v).readlines.map { |l| l.chomp.split(" ") }.flatten
  100. #ohai-15.3.1/lib/ohai/plugins/aix/network.rb
  101. 56:        items = line.split(" ")
  102. #ohai-15.3.1/lib/ohai/plugins/cpu.rb
  103. 89:        cpuinfo[current_cpu]["flags"] = $1.split(" ")
  104. 93:        cpuinfo[current_cpu]["features"] = $1.split(" ")
  105. 97:        cpuinfo["features"] = $1.split(" ")
  106. 282:        cpu[:flags] = Regexp.last_match[1].downcase.split(" ")
  107. #ohai-15.3.1/lib/ohai/plugins/darwin/network.rb
  108. 25:    line_array = media_string.split(" ")
  109. #ohai-15.3.1/lib/ohai/plugins/joyent.rb
  110. 63:          sm_image = line.split(" ")
  111. 67:          sm_baseimage = line.split(" ")
  112. #ohai-15.3.1/lib/ohai/plugins/linux/network.rb
  113. 379:      tags = tags.split(" ")
  114. #ohai-15.3.1/lib/ohai/plugins/packages.rb
  115. 166:      name, version = pkg.split(" ")
  116. #ohai-15.3.1/lib/ohai/plugins/uptime.rb
  117. 57:    uptime, idletime = File.open("/proc/uptime").gets.split(" ")
  118. #oj-3.9.1/ext/oj/extconf.rb
  119. 7:parts = RUBY_DESCRIPTION.split(' ')
  120. #oj-3.9.1/test/helper.rb
  121. 19:$ruby = RUBY_DESCRIPTION.split(' ')[0]
  122. #omniauth-google-oauth2-0.8.0/lib/omniauth/strategies/google_oauth2.rb
  123. 137:        scope_list = raw_scope.split(' ').map { |item| item.split(',') }.flatten
  124. #paperclip-6.1.0/spec/paperclip/attachment_spec.rb
  125. 1207:                width, height, _size, format = out.split(" ")
  126. #pry-0.12.2/lib/pry/command.rb
  127. 361:        args = command_options[:shellwords] ? Shellwords.shellwords(arg_string) : arg_string.split(" ")
  128. #pry-0.12.2/lib/pry/commands/hist.rb
  129. 149:        _slop.parse replay_sequence.split(' ')[1..-1]
  130. #pry-0.12.2/lib/pry/editor.rb
  131. 125:      File.basename(_pry_.config.editor).split(" ").first
  132. #pry-0.12.2/lib/pry/pager.rb
  133. 146:            pager_executable = default_pager.split(' ').first
  134. #pry-0.12.2/lib/pry/rubygem.rb
  135. 62:        gemrc_opts = (gem_config.nil? ? "" : gem_config.split(' '))
  136. #pry-0.12.2/lib/pry/slop.rb
  137. 96:        opt, description = line.split(' ', 2)
  138. #puma-4.1.1/lib/puma/control_cli.rb
  139. 163:        (@http,@code,@message) = response.first.split(" ",3)
  140. #puma-4.1.1/lib/puma/launcher.rb
  141. 213:        cmd.split(' ') + @original_argv
  142. #rack-2.0.7/lib/rack/auth/abstract/request.rb
  143. 24:        @parts ||= @env[authorization_key].split(' ', 2)
  144. #rack-2.0.7/lib/rack/auth/digest/nonce.rb
  145. 21:          new(*string.unpack("m*").first.split(' ', 2))
  146. #rack-2.0.7/test/spec_auth_digest.rb
  147. 85:    challenge = response['WWW-Authenticate'].split(' ', 2).last
  148. #rack-test-1.1.0/lib/rack/test.rb
  149. 281:        challenge = last_response['WWW-Authenticate'].split(' ', 2).last
  150. #raindrops-0.19.0/setup.rb
  151. 1320:      cmd, *args = *line.strip.sub(/\A\#!/, '').split(' ')
  152. #redis-4.1.2/lib/redis/cluster/node_loader.rb
  153. 27:            .map { |str| str.split(' ') }
  154. #redis-4.1.2/lib/redis/cluster.rb
  155. 232:      _, slot, node_key = err_msg.split(' ')
  156. 239:      _, _, node_key = err_msg.split(' ')
  157. #redis-4.1.2/lib/redis.rb
  158. 570:          reply.split(" ")
  159. 678:    args.concat(order.split(" ")) if order
  160. 3414:    arr = str.split(' ')
  161. #resque-2.0.0/lib/resque/worker.rb
  162. 827:        line.split(' ')[0]
  163. 837:        real_pid = line.split(' ')[0]
  164. #rubocop-0.74.0/lib/rubocop/cop/lint/literal_in_interpolation.rb
  165. 86:          contents_range(node).source.split(' ').to_s.gsub('"', '\"')
  166. #rubygems-update-3.0.6/bundler/lib/bundler/compact_index_client/cache.rb
  167. 30:          name, versions_string, info_checksum = line.split(" ", 3)
  168. 54:          name, _, checksum = line.split(" ", 3)
  169. 96:        version_and_platform, rest = string.split(" ", 2)
  170. #rubygems-update-3.0.6/bundler/lib/bundler/vendor/thor/lib/thor/base.rb
  171. 654:        File.basename($PROGRAM_NAME).split(" ").first
  172. #rubygems-update-3.0.6/lib/rubygems/stub_specification.rb
  173. 36:      parts          = data[PREFIX.length..-1].split(" ".freeze, 4)
  174. #sdoc-1.0.0/lib/sdoc/merge.rb
  175. 55:        @urls = v.split(' ').map{|name| name.strip }
  176. #selenium-webdriver-3.142.4/lib/selenium/webdriver/common/error.rb
  177. 36:          klass_name = code.split(' ').map(&:capitalize).join.sub(/Error$/, '')
  178. #sequel-5.24.0/lib/sequel/adapters/shared/sqlanywhere.rb
  179. 76:             :columns=>r[:columns].split(',').map{|v| m.call(v.split(' ').first)}} unless r[:type].downcase == 'primary key'
  180. 100:               :columns=>r[:columns].split(',').map{|v| m.call(v.split(' ').first)},
  181. #serverspec-2.41.5/lib/serverspec/type/base.rb
  182. 28:      to_s.split(" ")
  183. #serverspec-2.41.5/lib/serverspec/type/linux_audit_system.rb
  184. 37:        map = status_str.split(' ')[1..-1].inject({}) { |res,elem| a = elem.split('='); res.store(a[0],a[1] || ''); res }
  185. 39:        map = status_str.split("\n").inject({}) { |res,elem| a = elem.split(' '); res.store(a[0],a[1] || ''); res }
  186. #signet-0.11.0/lib/signet/oauth_2/client.rb
  187. 415:          @scope = new_scope.split(' ')
  188. #spring-2.1.0/lib/spring/client/status.rb
  189. 26:                  .map    { |l| l.split(" ").last   }
  190. #sshkit-1.20.0/test/unit/test_coordinator.rb
  191. 152:      actual_output_commands.map { |line| line.split(' ').last.to_f }
  192. #thor-0.19.4/lib/thor/base.rb
  193. 631:        File.basename($PROGRAM_NAME).split(" ").first
  194. #thor-0.20.3/lib/thor/base.rb
  195. 653:        File.basename($PROGRAM_NAME).split(" ").first
  196. #thor-0.20.3/lib/thor/shell/basic.rb
  197. 234:          unwrapped.split(" ").inject do |memo, word|
  198. #unicorn-5.5.1/setup.rb
  199. 1320:      cmd, *args = *line.strip.sub(/\A\#!/, '').split(' ')
  200. #whenever-1.0.0/test/test_helper.rb
  201. 21:      minutes, hours, days, months = cron.split(' ')
  202. 27:      minutes, hours, days, _ = cron.split(' ')
  203. 33:      minutes, hours, _ = cron.split(' ')
  204. 39:      assert_equal expected, cron.split(' ')[0]
  205. #yajl-ruby-1.4.1/lib/yajl/http_stream.rb
  206. 144:              header = header[0].split(" ")
  207. #yard-0.9.20/spec/handlers/decorator_handler_methods_spec.rb
  208. 251:                  decorator_params[i].split(' ')[1][/\w+$/]
RAW Paste Data