content stringlengths 1 103k ⌀ | path stringlengths 8 216 | filename stringlengths 2 179 | language stringclasses 15
values | size_bytes int64 2 189k | quality_score float64 0.5 0.95 | complexity float64 0 1 | documentation_ratio float64 0 1 | repository stringclasses 5
values | stars int64 0 1k | created_date stringdate 2023-07-10 19:21:08 2025-07-09 19:11:45 | license stringclasses 4
values | is_test bool 2
classes | file_hash stringlengths 32 32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
prelude: |\n module AR; end\n class AR::Base\n def create_or_update\n nil\n end\n def save\n create_or_update\n end\n end\n class Foo < AR::Base; end\n class Bar < AR::Base; end\n o1 = Foo.new\n o2 = Bar.new\nbenchmark:\n vm_poly_same_method: |\n o1.save; o2.save;\n o1.save; o2.save;... | dataset_sample\yaml\ruby\vm_poly_same_method.yml | vm_poly_same_method.yml | YAML | 456 | 0.85 | 0.2 | 0 | awesome-app | 930 | 2023-12-22T07:57:08.883672 | MIT | false | d1ca3d640cd500631e4e0256bfcf5c4f |
# loop_count is not utilized since `i` is involved in the script\nbenchmark:\n vm_poly_singleton: |\n class C1\n def m; 1; end\n end\n\n o1 = C1.new\n o2 = C1.new\n o2.singleton_class\n\n i = 0\n while i<6_000_000 # benchmark loop 2\n o = (i % 2 == 0) ? o1 : o2\n o.m; o.m; o.m; o.m;... | dataset_sample\yaml\ruby\vm_poly_singleton.yml | vm_poly_singleton.yml | YAML | 361 | 0.95 | 0.166667 | 0.0625 | vue-tools | 61 | 2023-07-16T21:32:29.659527 | Apache-2.0 | false | c00533842be435d8a94d2502668c0eef |
prelude: |\n def m &b\n b\n end\n\n pr = m{\n a = 1\n }\nbenchmark:\n vm_proc: |\n pr.call\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_proc.yml | vm_proc.yml | YAML | 115 | 0.85 | 0.083333 | 0 | awesome-app | 37 | 2024-12-13T23:26:06.362085 | Apache-2.0 | false | 355852360e0b63582989934d95e22671 |
prelude: |\n def rec n\n if n > 0\n rec n-1\n else\n raise\n end\n end\nbenchmark:\n vm_raise1: |\n begin\n rec 1\n rescue\n # ignore\n end\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_raise1.yml | vm_raise1.yml | YAML | 187 | 0.95 | 0.125 | 0.0625 | react-lib | 249 | 2025-03-02T09:02:00.315702 | MIT | false | 93161e717e9c0fcdde877646f3aa0203 |
prelude: |\n def rec n\n if n > 0\n rec n-1\n else\n raise\n end\n end\nbenchmark:\n vm_raise2: |\n begin\n rec 10\n rescue\n # ignore\n end\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_raise2.yml | vm_raise2.yml | YAML | 188 | 0.95 | 0.125 | 0.0625 | awesome-app | 142 | 2025-04-22T17:44:14.532580 | MIT | false | 70b25e30afdd01b77454ea4b700ea037 |
prelude: |\n str = 'xxxhogexxx'\nbenchmark:\n vm_regexp: |\n /hoge/ =~ str\n vm_regexp_invert: |\n str =~ /hoge/\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_regexp.yml | vm_regexp.yml | YAML | 136 | 0.7 | 0 | 0 | python-kit | 68 | 2024-03-27T21:47:07.017525 | BSD-3-Clause | false | 21a37a093de636135a9f98db4a82814b |
prelude: |\n class C\n def m\n end\n end\n\n o = C.new\n m = :m\nbenchmark:\n vm_send: |\n o.__send__ :m\n vm_send_var: |\n o.__send__ m\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_send.yml | vm_send.yml | YAML | 163 | 0.85 | 0.142857 | 0 | awesome-app | 663 | 2023-11-16T08:12:09.308924 | MIT | false | af52669d442c4ad6a628c2912cb587b8 |
prelude: |\n ary = []\n kw = {a: 1}\n empty_kw = {}\n kw_ary = [Hash.ruby2_keywords_hash(a: 1)]\n empty_kw_ary = [Hash.ruby2_keywords_hash({})]\nbenchmark:\n vm_send_cfunc: itself\n vm_send_cfunc_splat: itself(*ary)\n vm_send_cfunc_splat_kw_hash: equal?(*kw_ary)\n vm_send_cfunc_splat_empty_kw_hash: itself(*emp... | dataset_sample\yaml\ruby\vm_send_cfunc.yml | vm_send_cfunc.yml | YAML | 444 | 0.7 | 0 | 0 | node-utils | 676 | 2023-08-12T17:50:57.061519 | MIT | false | 47cd4fa68f10a9bc5db826dfc723b146 |
benchmark:\n vm_string_literal: |\n x = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_string_literal.yml | vm_string_literal.yml | YAML | 128 | 0.7 | 0 | 0 | awesome-app | 411 | 2023-12-18T23:52:11.367423 | BSD-3-Clause | false | 6df56fa0ffec678891593923a1e70970 |
prelude: |\n s = Struct.new(*('a'..'z').map { |x| x.to_sym })\n x = s.new\nbenchmark:\n vm_struct_big_aref_hi: |\n x.z # x[25]\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_struct_big_aref_hi.yml | vm_struct_big_aref_hi.yml | YAML | 148 | 0.8 | 0 | 0 | vue-tools | 677 | 2024-12-30T16:38:14.476809 | BSD-3-Clause | false | 3eff3db36e2c29e0cad3111a9d8f285a |
prelude: |\n s = Struct.new(*('a'..'z').map { |x| x.to_sym })\n x = s.new\nbenchmark:\n vm_struct_big_aref_lo: |\n x.k # x[10]\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_struct_big_aref_lo.yml | vm_struct_big_aref_lo.yml | YAML | 148 | 0.8 | 0 | 0 | vue-tools | 323 | 2024-08-24T23:58:57.976650 | BSD-3-Clause | false | 3cf50fbd3704e62c044dd12f158feaf3 |
# loop_count is not utilized since `i` is involved in the script\nbenchmark:\n vm_struct_big_aset: |\n s = Struct.new(*('a'..'z').map { |x| x.to_sym })\n x = s.new\n i = 0\n while i<6_000_000\n i += 1\n x.k = i # x[10] = i\n end\nloop_count: 1\n | dataset_sample\yaml\ruby\vm_struct_big_aset.yml | vm_struct_big_aset.yml | YAML | 260 | 0.8 | 0.090909 | 0.090909 | node-utils | 523 | 2023-12-20T06:38:16.380305 | MIT | false | 660ee098ee1f13433978d428967256e3 |
prelude: |\n s = Struct.new(*('a'..'z').map { |x| x.to_sym })\n x = s.new\nbenchmark:\n vm_struct_big_href_hi: |\n x[:z]\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_struct_big_href_hi.yml | vm_struct_big_href_hi.yml | YAML | 142 | 0.7 | 0 | 0 | python-kit | 118 | 2023-10-09T05:48:17.416902 | BSD-3-Clause | false | 2701c96dcde8822aba682f0710988bf4 |
prelude: |\n s = Struct.new(*('a'..'z').map { |x| x.to_sym })\n x = s.new\nbenchmark:\n vm_struct_big_href_lo: |\n x[:k]\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_struct_big_href_lo.yml | vm_struct_big_href_lo.yml | YAML | 142 | 0.7 | 0 | 0 | python-kit | 962 | 2024-10-25T13:16:01.742489 | GPL-3.0 | false | f48c17cb336f77f47712e214444520e5 |
# loop_count is not utilized since `i` is involved in the script\nbenchmark:\n vm_struct_big_hset: |\n s = Struct.new(*('a'..'z').map { |x| x.to_sym })\n x = s.new\n i = 0\n while i<6_000_000\n i += 1\n x[:k] = i\n end\nloop_count: 1\n | dataset_sample\yaml\ruby\vm_struct_big_hset.yml | vm_struct_big_hset.yml | YAML | 250 | 0.8 | 0.090909 | 0.090909 | node-utils | 542 | 2023-09-26T10:57:12.836395 | MIT | false | bcd2858491ecee725d51b1cb9ab4394f |
prelude: |\n s = Struct.new(:a, :b, :c)\n x = s.new\nbenchmark:\n vm_struct_small_aref: |\n x.a\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_struct_small_aref.yml | vm_struct_small_aref.yml | YAML | 117 | 0.7 | 0 | 0 | awesome-app | 412 | 2023-12-01T09:57:22.718057 | MIT | false | 486ba1a88db0d90385967003543561dd |
# loop_count is not utilized since `i` is involved in the script\nbenchmark:\n vm_struct_small_aset: |\n s = Struct.new(:a, :b, :c)\n x = s.new\n i = 0\n while i<6_000_000\n i += 1\n x.a = i\n end\nloop_count: 1\n | dataset_sample\yaml\ruby\vm_struct_small_aset.yml | vm_struct_small_aset.yml | YAML | 228 | 0.8 | 0.090909 | 0.090909 | node-utils | 231 | 2023-12-26T18:52:53.047462 | BSD-3-Clause | false | 21cbd0b684d349a615efce2bd6af95e1 |
prelude: |\n s = Struct.new(:a, :b, :c)\n x = s.new\nbenchmark:\n vm_struct_small_href: |\n x[:a]\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_struct_small_href.yml | vm_struct_small_href.yml | YAML | 119 | 0.7 | 0 | 0 | python-kit | 65 | 2024-05-09T05:37:32.397202 | BSD-3-Clause | false | b70527b888110060c9a5edc7b9d3e3b8 |
prelude: |\n s = Struct.new(:a, :b, :c)\n x = s.new\nbenchmark:\n vm_struct_small_hset: |\n x[:a] = 1\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_struct_small_hset.yml | vm_struct_small_hset.yml | YAML | 123 | 0.7 | 0 | 0 | python-kit | 494 | 2024-03-25T06:35:36.751552 | GPL-3.0 | false | a01c0ad14600d2deb42f1712b0f1edb6 |
prelude: |\n class C\n def m\n 1\n end\n end\n\n class CC < C\n def m\n super()\n end\n end\n\n obj = CC.new\nbenchmark:\n vm_super: obj.m\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_super.yml | vm_super.yml | YAML | 172 | 0.85 | 0.235294 | 0 | awesome-app | 474 | 2024-10-06T22:26:16.396860 | MIT | false | b41c473971285361b9da1bc3c1169aa6 |
prelude: |\n @a = [1].freeze\n @ea = [].freeze\n @kw = {y: 1}.freeze\n @b = lambda{}\n extend(Module.new{def arg_splat(x=0, y: 0) end})\n extend(Module.new{def arg_splat_block(x=0, y: 0) end})\n extend(Module.new{def splat_kw_splat(x=0, y: 0) end})\n extend(Module.new{def splat_kw_splat_block(x=0, y: 0) end})\n... | dataset_sample\yaml\ruby\vm_super_splat_calls.yml | vm_super_splat_calls.yml | YAML | 1,018 | 0.85 | 0.48 | 0 | awesome-app | 287 | 2025-06-19T17:56:30.817804 | Apache-2.0 | false | 5721c41a646e0c4709187e69064016a9 |
benchmark:\n vm_thread_alive_check: |\n t = Thread.new{}\n while t.alive?\n Thread.pass\n end\nloop_count: 50_000\n\n | dataset_sample\yaml\ruby\vm_thread_alive_check.yml | vm_thread_alive_check.yml | YAML | 124 | 0.7 | 0.125 | 0 | python-kit | 531 | 2024-04-28T06:22:00.127226 | GPL-3.0 | false | f2a4db58ba9c086dfc4addf86d99066b |
# while loop cost is not removed due to benchmark_driver.gem's limitation\nbenchmark:\n vm_yield: |\n def m\n i = 0\n while i<30_000_000\n i += 1\n yield\n end\n end\n\n m{}\nloop_count: 1\n | dataset_sample\yaml\ruby\vm_yield.yml | vm_yield.yml | YAML | 216 | 0.95 | 0.230769 | 0.083333 | python-kit | 211 | 2023-10-19T23:05:59.172278 | MIT | false | 9868834be17dd35ee7074d8f6d25d689 |
prelude: |\n class C\n def m a\n 1\n end\n end\n\n class CC < C\n def m a\n super\n end\n end\n\n obj = CC.new\nbenchmark:\n vm_zsuper: |\n obj.m 10\nloop_count: 6000000\n | dataset_sample\yaml\ruby\vm_zsuper.yml | vm_zsuper.yml | YAML | 184 | 0.85 | 0.222222 | 0 | vue-tools | 214 | 2023-08-06T18:13:33.562219 | MIT | false | 05d936fa74a68acd1c2b72d61e5c9a7a |
prelude: |\n a = [1].freeze\n ea = [].freeze\n kw = {y: 1}.freeze\n b = lambda{}\n extend(Module.new{def arg_splat(x=0, y: 0) end})\n extend(Module.new{def arg_splat_block(x=0, y: 0) end})\n extend(Module.new{def arg_splat_post(x=0, y: 0) end})\n extend(Module.new{def splat_kw_splat(x=0, y: 0) end})\n extend(M... | dataset_sample\yaml\ruby\vm_zsuper_splat_calls.yml | vm_zsuper_splat_calls.yml | YAML | 1,224 | 0.85 | 0.5 | 0 | node-utils | 413 | 2023-09-22T15:50:57.738825 | Apache-2.0 | false | f5e59e0ba523f4b4270a93924cfe4ddb |
# Note: You must restart bin/webpack-dev-server for changes to take effect\n\ndefault: &default\n source_path: app/javascript\n source_entry_path: entrypoints\n public_root_path: public\n public_output_path: packs\n cache_path: tmp/cache/webpacker\n check_yarn_integrity: false\n webpack_compile_output: false\n\n... | dataset_sample\yaml\ruby\webpacker.yml | webpacker.yml | YAML | 1,859 | 0.8 | 0.042553 | 0.151899 | react-lib | 966 | 2024-05-31T03:07:17.201963 | Apache-2.0 | false | ec8408d16493c2fc37cee04102208efa |
# Additionally influences open graph metadata as part of jekyll-seo-tag, and the theme\ntitle: 'Metasploit Documentation | Penetration Testing Software, Pen Testing Security'\ndescription: View Metasploit Framework Documentation\nsearchTitle: Metasploit Documentation\nbaseurl: ''\nurl: 'https://rapid7.github.io/metaspl... | dataset_sample\yaml\ruby\_config.yml | _config.yml | YAML | 1,508 | 0.8 | 0 | 0.076923 | react-lib | 448 | 2024-02-18T21:27:39.255996 | Apache-2.0 | false | 0790873a18ce1c5ebf7efaf525a07eaa |
# Staging assumes that it is currently deployed to gh-pages; All links are prefixed with /metasploit-framework\nbaseurl: 'metasploit-framework'\nga_tracking: ''\n | dataset_sample\yaml\ruby\_config_staging.yml | _config_staging.yml | YAML | 159 | 0.8 | 0 | 0.333333 | python-kit | 513 | 2024-10-28T20:32:33.908329 | BSD-3-Clause | false | b8f551173a505828fab3d1479ab42a55 |
# -*- YAML -*-\n# Copyright (C) 2011 Urabe, Shyouhei. All rights reserved.\n#\n# This file is a part of the programming language Ruby. Permission is hereby\n# granted, to either redistribute or modify this file, provided that the\n# conditions mentioned in the file COPYING are met. Consult the file fo... | dataset_sample\yaml\ruby_ruby\.travis.yml | .travis.yml | YAML | 3,337 | 0.8 | 0.018018 | 0.212121 | vue-tools | 331 | 2025-01-13T21:02:17.930046 | Apache-2.0 | false | b8a06cb0f448727de6bbc3f59a57da14 |
files:\n 'yjit*': [team:yjit]\n 'yjit/**/*': [team:yjit]\n 'yjit/src/cruby_bindings.inc.rs': []\n 'doc/yjit/*': [team:yjit]\n 'bootstraptest/test_yjit*': [team:yjit]\n 'test/ruby/test_yjit*': [team:yjit]\n 'zjit*': [team:yjit]\n 'zjit/**/*': [team:yjit]\n 'zjit/src/cruby_bindings.inc.rs': []\n 'doc/zjit*': [t... | dataset_sample\yaml\ruby_ruby\.github\auto_request_review.yml | auto_request_review.yml | YAML | 654 | 0.8 | 0 | 0.222222 | python-kit | 659 | 2024-11-18T09:16:18.987032 | BSD-3-Clause | false | eb0cb65570bb532384df261a7be9632d |
version: 2\nupdates:\n - package-ecosystem: 'github-actions'\n directory: '/'\n schedule:\n interval: 'daily'\n - package-ecosystem: 'github-actions'\n directory: '/.github/actions/slack'\n schedule:\n interval: 'daily'\n - package-ecosystem: 'github-actions'\n directory: '/.github/actions/s... | dataset_sample\yaml\ruby_ruby\.github\dependabot.yml | dependabot.yml | YAML | 457 | 0.7 | 0 | 0 | vue-tools | 591 | 2024-01-13T06:57:12.711642 | MIT | false | f75001d1ce410ad42ec0bd11cf6789a3 |
Documentation:\n- changed-files:\n - all-globs-to-all-files: doc/**\n\nBackport:\n- base-branch: 'ruby_3_\d'\n | dataset_sample\yaml\ruby_ruby\.github\labeler.yml | labeler.yml | YAML | 105 | 0.8 | 0 | 0 | awesome-app | 447 | 2024-03-22T03:47:31.829285 | MIT | false | 54f51a0c26f6629d55238a3b5e1da80b |
name: Compiles ruby in a container\ndescription: >-\n Makes ruby using a dedicated container\n\ninputs:\n tag:\n required: false\n default: clang-18\n description: >-\n container image tag to use in this run.\n\n with_gcc:\n required: false\n description: >-\n override compiler path & flags.... | dataset_sample\yaml\ruby_ruby\.github\actions\compilers\action.yml | action.yml | YAML | 3,739 | 0.95 | 0.02381 | 0.035714 | node-utils | 568 | 2025-04-12T18:35:27.873106 | GPL-3.0 | false | 11b5a47312d1c72b41e43949c74fdb20 |
name: Set up Launchable\ndescription: >-\n Install the required dependencies and execute the necessary Launchable commands for test recording\n\ninputs:\n os:\n required: true\n description: The operating system that CI runs on. This value is used in Launchable flavor.\n\n test-opts:\n default: none\n re... | dataset_sample\yaml\ruby_ruby\.github\actions\launchable\setup\action.yml | action.yml | YAML | 14,807 | 0.95 | 0.083591 | 0.016556 | vue-tools | 73 | 2024-11-29T03:58:43.329305 | Apache-2.0 | false | 20b4869e3f5108ecd0c1dbd1d2d91ef8 |
name: Setup directories etc.\ndescription: >-\n Set up the source code and build directories (plus some\n environmental tweaks)\n\ninputs:\n srcdir:\n required: false\n default: ${{ github.workspace }}\n description: >-\n Directory to (re-)checkout source codes. This will be created\n if absent. ... | dataset_sample\yaml\ruby_ruby\.github\actions\setup\directories\action.yml | action.yml | YAML | 5,740 | 0.95 | 0.102703 | 0.074534 | python-kit | 271 | 2024-02-26T05:59:53.849309 | MIT | false | 580f5ba7cc353a81e8ffc4e1dbe0c195 |
name: Setup macOS environment\ndescription: >-\n Installs necessary packages via Homebrew.\n\ninputs: {} # nothing?\n\noutputs: {} # nothing?\n\nruns:\n using: composite\n\n steps:\n - name: brew\n shell: bash\n run: |\n brew install --quiet jemalloc gmp libffi openssl@3 zlib autoconf automake li... | dataset_sample\yaml\ruby_ruby\.github\actions\setup\macos\action.yml | action.yml | YAML | 683 | 0.8 | 0.034483 | 0 | python-kit | 141 | 2024-11-13T14:49:14.375022 | Apache-2.0 | false | 7937ca417d7503471127bd642cfc3e7e |
name: Setup ubuntu environment\ndescription: >-\n At the beginning there was no way but to copy & paste `apt-get`\n everywhere. But now that we have composite actions, it seems better\n merge them into one.\n\ninputs:\n arch:\n required: false\n default: ''\n description: >-\n Architecture. Because ... | dataset_sample\yaml\ruby_ruby\.github\actions\setup\ubuntu\action.yml | action.yml | YAML | 1,679 | 0.95 | 0.018868 | 0 | react-lib | 541 | 2023-07-23T03:43:50.767038 | BSD-3-Clause | false | 0786f7d9380bb539d22977fdfe6d95ba |
name: Post a message to slack\ndescription: >-\n We have our ruby/action-slack webhook. However its arguments are\n bit verbose to be listed in every workflow files. Better merge them\n into one.\n\ninputs:\n SLACK_WEBHOOK_URL:\n required: true\n description: >-\n The URL to post the payload. This is ... | dataset_sample\yaml\ruby_ruby\.github\actions\slack\action.yml | action.yml | YAML | 1,262 | 0.95 | 0.025641 | 0 | node-utils | 403 | 2023-09-23T06:12:16.346912 | BSD-3-Clause | false | e6cae2194e983d076a712688af8dc561 |
name: Annocheck\n\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n... | dataset_sample\yaml\ruby_ruby\.github\workflows\annocheck.yml | annocheck.yml | YAML | 2,949 | 0.8 | 0.017857 | 0.053191 | python-kit | 997 | 2023-07-30T10:00:39.844981 | Apache-2.0 | false | 71cc01bb175bbef08cab42f5ed448e0d |
name: Auto Request Review\non:\n pull_request_target:\n types: [opened, ready_for_review, reopened]\n branches: [master]\n\npermissions:\n contents: read\n\njobs:\n auto-request-review:\n name: Auto Request Review\n runs-on: ubuntu-latest\n if: ${{ github.repository == 'ruby/ruby' && github.base_ref =... | dataset_sample\yaml\ruby_ruby\.github\workflows\auto_request_review.yml | auto_request_review.yml | YAML | 615 | 0.8 | 0.05 | 0.055556 | node-utils | 681 | 2023-08-21T05:27:13.909926 | MIT | false | fa9007d6367b72ea016f4a3f6bc14f65 |
name: BASERUBY Check\n\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.y... | dataset_sample\yaml\ruby_ruby\.github\workflows\baseruby.yml | baseruby.yml | YAML | 1,910 | 0.8 | 0.025974 | 0 | vue-tools | 601 | 2024-07-13T10:33:31.292768 | BSD-3-Clause | false | a4972aa1209c9da13ce760ccb89b561a |
name: bundled_gems\n\non:\n push:\n branches: ['master']\n paths:\n - '.github/workflows/bundled_gems.yml'\n - 'gems/bundled_gems'\n pull_request:\n branches: ['master']\n paths:\n - '.github/workflows/bundled_gems.yml'\n - 'gems/bundled_gems'\n merge_group:\n schedule:\n - cron: ... | dataset_sample\yaml\ruby_ruby\.github\workflows\bundled_gems.yml | bundled_gems.yml | YAML | 4,304 | 0.95 | 0.080882 | 0.017241 | python-kit | 203 | 2025-06-02T05:27:12.592158 | BSD-3-Clause | false | 5d1d63e85701e5645ed54b2b7290d937 |
name: Check Dependencies\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n merge_group:\n\nconcurrency:\n group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name |... | dataset_sample\yaml\ruby_ruby\.github\workflows\check_dependencies.yml | check_dependencies.yml | YAML | 1,638 | 0.8 | 0.047619 | 0 | react-lib | 560 | 2025-01-09T21:32:16.824255 | MIT | false | fa34e043fdacccefd65dc53a6a71b7a3 |
name: Misc\non: [push, pull_request, merge_group]\n\nconcurrency:\n group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}\n cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}\n\npermissions:\n contents: read\n\njobs:\n checks:\n name: Miscella... | dataset_sample\yaml\ruby_ruby\.github\workflows\check_misc.yml | check_misc.yml | YAML | 3,451 | 0.8 | 0.111111 | 0.039474 | python-kit | 691 | 2025-04-11T17:04:17.412200 | GPL-3.0 | false | 99fc529ac904b8d6bc6963706c34490e |
# Some tests depending on this name 'Compilations' via $GITHUB_WORKFLOW. Make sure to update such tests when renaming this workflow.\nname: Compilations\n\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:... | dataset_sample\yaml\ruby_ruby\.github\workflows\compilers.yml | compilers.yml | YAML | 21,686 | 0.95 | 0.123867 | 0.035144 | react-lib | 263 | 2025-05-31T21:56:02.627144 | Apache-2.0 | false | 102e66c7cf6dabf2629a4a6e0969059f |
name: Cygwin\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n mer... | dataset_sample\yaml\ruby_ruby\.github\workflows\cygwin.yml | cygwin.yml | YAML | 1,929 | 0.8 | 0.014925 | 0 | node-utils | 43 | 2024-03-22T18:44:06.379483 | GPL-3.0 | false | a5276c3e67d5cd303380408a19798b54 |
name: Update default gems list\non: [push, pull_request, merge_group]\n\nconcurrency:\n group: ${{ github.workflow }} / ${{ startsWith(github.event_name, 'pull') && github.ref_name || github.sha }}\n cancel-in-progress: ${{ startsWith(github.event_name, 'pull') }}\n\npermissions:\n contents: read\n\njobs:\n update_... | dataset_sample\yaml\ruby_ruby\.github\workflows\default_gems.yml | default_gems.yml | YAML | 3,142 | 0.95 | 0.105263 | 0.025 | vue-tools | 185 | 2024-03-13T11:08:27.920142 | Apache-2.0 | false | beef0dc67f4aec14d300e573ae1bfdfe |
# from https://github.com/gofiber/swagger/blob/main/.github/workflows/dependabot_automerge.yml\nname: Dependabot auto-merge\non:\n pull_request:\n\npermissions:\n contents: write\n pull-requests: write\n\njobs:\n automerge:\n runs-on: ubuntu-latest\n if: github.event.pull_request.user.login == 'dependabot[bot... | dataset_sample\yaml\ruby_ruby\.github\workflows\dependabot_automerge.yml | dependabot_automerge.yml | YAML | 1,237 | 0.8 | 0.125 | 0.035714 | awesome-app | 955 | 2024-08-03T07:02:51.798827 | GPL-3.0 | false | 73e8f5c1504445bbab7486f9f4693178 |
name: "Pull Request Labeler"\non:\n- pull_request_target\n\njobs:\n labeler:\n permissions:\n contents: read\n pull-requests: write\n runs-on: ubuntu-latest\n steps:\n - uses: actions/labeler@v5\n | dataset_sample\yaml\ruby_ruby\.github\workflows\labeler.yml | labeler.yml | YAML | 207 | 0.7 | 0 | 0 | vue-tools | 515 | 2023-11-15T08:56:33.922057 | GPL-3.0 | false | 3a4d51c6eef81e5fddf15009bcc5b9cf |
name: MinGW\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n merg... | dataset_sample\yaml\ruby_ruby\.github\workflows\mingw.yml | mingw.yml | YAML | 5,427 | 0.8 | 0.041176 | 0.06 | react-lib | 346 | 2023-10-30T19:43:20.391663 | Apache-2.0 | false | dbd35dfd0c9d31497fc7e3573d5ab669 |
name: parse.y\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n me... | dataset_sample\yaml\ruby_ruby\.github\workflows\parsey.yml | parsey.yml | YAML | 2,774 | 0.8 | 0.021053 | 0 | awesome-app | 963 | 2025-03-26T23:38:48.221068 | BSD-3-Clause | false | 71fbd20a141a7f123287d03eeab2e242 |
name: Start release workflow\non:\n push:\n tags:\n - '*'\n\njobs:\n notify:\n runs-on: ubuntu-latest\n steps:\n - name: Build release package\n run: |\n curl -L -X POST \\n -H "Authorization: Bearer ${{ secrets.MATZBOT_GITHUB_WORKFLOW_TOKEN }}" \\n -H "Accept:... | dataset_sample\yaml\ruby_ruby\.github\workflows\publish.yml | publish.yml | YAML | 510 | 0.8 | 0 | 0 | react-lib | 865 | 2024-06-17T01:36:03.896278 | BSD-3-Clause | false | afca14b7320e3ca8664abfac75d24a3f |
name: Publish Ruby packages\n\non:\n repository_dispatch:\n types:\n - release\n workflow_dispatch:\n inputs:\n version:\n description: 'Version of the Ruby package to release'\n required: true\n default: '3.3.4'\n\njobs:\n release:\n runs-on: ubuntu-latest\n steps:\n ... | dataset_sample\yaml\ruby_ruby\.github\workflows\release.yml | release.yml | YAML | 4,674 | 0.95 | 0 | 0 | python-kit | 398 | 2025-07-05T01:12:52.258952 | BSD-3-Clause | false | 37cd49f755613a7ffd0635c7f69d6e9a |
# This workflow uses actions that are not certified by GitHub. They are provided\n# by a third-party and are governed by separate terms of service, privacy\n# policy, and support documentation.\n\nname: Scorecards supply-chain security\non:\n # For Branch-Protection check. Only the default branch is supported. See\n ... | dataset_sample\yaml\ruby_ruby\.github\workflows\scorecards.yml | scorecards.yml | YAML | 3,004 | 0.8 | 0.041667 | 0.546875 | node-utils | 662 | 2025-05-28T09:43:54.038453 | GPL-3.0 | false | a0b1b1ebac484e9eee34e6b8099b12a5 |
name: Rubyspec Version Guards Check\n\non:\n push:\n paths:\n - '.github/workflows/spec_guards.yml'\n - 'spec/**'\n - '!spec/*.md'\n pull_request:\n paths:\n - '.github/workflows/spec_guards.yml'\n - 'spec/**'\n - '!spec/*.md'\n merge_group:\n\nconcurrency:\n group: ${{ github.wo... | dataset_sample\yaml\ruby_ruby\.github\workflows\spec_guards.yml | spec_guards.yml | YAML | 1,951 | 0.8 | 0.029412 | 0.035714 | react-lib | 737 | 2023-07-22T23:47:01.733509 | BSD-3-Clause | false | 8e2b3192e451bca2c202b9168677e2ae |
name: Ubuntu\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n # Do not use paths-ignore for required status checks\n # https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/co... | dataset_sample\yaml\ruby_ruby\.github\workflows\ubuntu.yml | ubuntu.yml | YAML | 5,309 | 0.95 | 0.067485 | 0.021277 | awesome-app | 724 | 2024-12-18T14:24:18.379219 | BSD-3-Clause | false | 336d499e9d8ff1b2de5548788636b744 |
name: WebAssembly\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n... | dataset_sample\yaml\ruby_ruby\.github\workflows\wasm.yml | wasm.yml | YAML | 7,081 | 0.8 | 0.033149 | 0.058065 | python-kit | 722 | 2023-10-14T02:40:29.348841 | BSD-3-Clause | false | dbe28f05e976e71a2b8a6129137ab1c0 |
name: Windows\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n # Do not use paths-ignore for required status checks\n # https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/c... | dataset_sample\yaml\ruby_ruby\.github\workflows\windows.yml | windows.yml | YAML | 7,820 | 0.95 | 0.050459 | 0.085106 | react-lib | 974 | 2024-09-23T11:35:19.561368 | MIT | false | 81f4504fb026766fb389bce0f6e662be |
name: Ubuntu on WSL\n\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n # Do not use paths-ignore for required status checks\n # https://docs.github.com/en/pull-requests/collaborating-with-pull-re... | dataset_sample\yaml\ruby_ruby\.github\workflows\wsl.yml | wsl.yml | YAML | 2,356 | 0.95 | 0.026667 | 0.045455 | node-utils | 565 | 2024-06-07T12:56:39.615161 | Apache-2.0 | false | a31116c14db4b0034415e740c3e674bd |
name: YJIT macOS Arm64\non:\n push:\n branches:\n - master\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n types:\n - opened\n - synchronize\n - reopened\n # Do not use paths-ignore fo... | dataset_sample\yaml\ruby_ruby\.github\workflows\yjit-macos.yml | yjit-macos.yml | YAML | 5,967 | 0.95 | 0.059783 | 0.032051 | awesome-app | 853 | 2024-06-28T09:35:54.854133 | Apache-2.0 | false | 22740dafc94e2fb586c2ce57804adea5 |
name: YJIT Ubuntu\non:\n push:\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n # Do not use paths-ignore for required status checks\n # https://docs.github.com/en/pull-requests/collaborating-with-pull-reques... | dataset_sample\yaml\ruby_ruby\.github\workflows\yjit-ubuntu.yml | yjit-ubuntu.yml | YAML | 7,885 | 0.95 | 0.056522 | 0.074468 | node-utils | 431 | 2023-12-25T18:53:08.108491 | Apache-2.0 | false | a809534017e524516b7a313768ca028e |
name: ZJIT macOS Arm64\non:\n push:\n branches:\n - master\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n types:\n - opened\n - synchronize\n - reopened\n # Do not use paths-ignore fo... | dataset_sample\yaml\ruby_ruby\.github\workflows\zjit-macos.yml | zjit-macos.yml | YAML | 3,570 | 0.95 | 0.058824 | 0.029703 | react-lib | 207 | 2024-11-13T12:37:30.377478 | BSD-3-Clause | false | d61c8b07bd16e8f490a771a054e057e3 |
name: ZJIT Ubuntu\non:\n push:\n branches:\n - master\n paths-ignore:\n - 'doc/**'\n - '**/man/*'\n - '**.md'\n - '**.rdoc'\n - '**/.document'\n - '.*.yml'\n pull_request:\n types:\n - opened\n - synchronize\n - reopened\n # Do not use paths-ignore for req... | dataset_sample\yaml\ruby_ruby\.github\workflows\zjit-ubuntu.yml | zjit-ubuntu.yml | YAML | 4,566 | 0.95 | 0.061224 | 0.03252 | react-lib | 769 | 2024-08-06T18:33:06.946566 | GPL-3.0 | false | 61c7339895641a8438e69dcc89a28b97 |
#\n# Create many HTML strings with ERB.\n#\nprelude: |\n require 'erb'\n\n data = <<erb\n <html>\n <head> <%= title %> </head>\n <body>\n <h1> <%= title %> </h1>\n <p>\n <%= content %>\n </p>\n </body>\n </html>\n erb\n\n title = "hello world!"\n content = "hello world!\n" * 10\nbe... | dataset_sample\yaml\ruby_ruby\benchmark\app_erb.yml | app_erb.yml | YAML | 368 | 0.95 | 0 | 0.142857 | python-kit | 735 | 2025-07-06T09:20:15.362129 | BSD-3-Clause | false | 7f37d80bc58e46d8cab256e3266ff4a2 |
prelude: |\n small_flat_ary = 5.times.to_a\n large_flat_ary = 100.times.to_a\n small_pairs_ary = [[1, 2]] * 5\n large_pairs_ary = [[1, 2]] * 100\n mostly_flat_ary = 100.times.to_a.push([101, 102])\n\nbenchmark:\n small_flat_ary.flatten: small_flat_ary.flatten\n small_flat_ary.flatten!: small_flat_ary.flatten!\n ... | dataset_sample\yaml\ruby_ruby\benchmark\array_flatten.yml | array_flatten.yml | YAML | 751 | 0.7 | 0 | 0 | node-utils | 777 | 2024-09-26T08:16:55.304389 | MIT | false | e1f38ea1513f8c93926044462b68185b |
prelude: |\n small1 = [1, 2, 3]\n small2 = [1, 2, 3, 4, 5]\n small3 = [2, 3, 4, 5]\n small4 = [2]\n big1 = [1, 2, 3, 4] * 64\n big2 = [1, 2, 3] * 64\n big3 = [1, 2] * 64\n\nbenchmark:\n small-&: small1 & small2 & small3 & small4\n small-intersection: small1.intersection(small2, small3, small4)\n big-&: big1 &... | dataset_sample\yaml\ruby_ruby\benchmark\array_intersection.yml | array_intersection.yml | YAML | 371 | 0.7 | 0 | 0 | react-lib | 900 | 2024-02-16T06:08:14.475953 | GPL-3.0 | false | 7a77dc8750289ca2ffc65fec148c0aab |
prelude: |\n ary2 = 2.times.map(&:to_f).shuffle\n ary10 = 10.times.map(&:to_f).shuffle\n ary100 = 100.times.map(&:to_f).shuffle\n ary500 = 500.times.map(&:to_f).shuffle\n ary1000 = 1000.times.map(&:to_f).shuffle\n ary2000 = 2500.times.map(&:to_f).shuffle\n ary3000 = 2500.times.map(&:to_f).shuffle\n ary5000 = 50... | dataset_sample\yaml\ruby_ruby\benchmark\array_max_float.yml | array_max_float.yml | YAML | 875 | 0.7 | 0 | 0 | vue-tools | 882 | 2023-10-23T15:38:24.634623 | MIT | false | b3c3e289551f0517a3422b93dd5e8864 |
prelude: |\n ary2 = 2.times.to_a.shuffle\n ary10 = 10.times.to_a.shuffle\n ary100 = 100.times.to_a.shuffle\n ary500 = 500.times.to_a.shuffle\n ary1000 = 1000.times.to_a.shuffle\n ary2000 = 2500.times.to_a.shuffle\n ary3000 = 2500.times.to_a.shuffle\n ary5000 = 5000.times.to_a.shuffle\n ary10000 = 10000.times.t... | dataset_sample\yaml\ruby_ruby\benchmark\array_max_int.yml | array_max_int.yml | YAML | 865 | 0.7 | 0 | 0 | vue-tools | 506 | 2025-02-11T16:31:18.490419 | Apache-2.0 | false | 652aceb99e9ec76a77819c52f7cedbef |
prelude: |\n ary2 = 2.times.map(&:to_s).shuffle\n ary10 = 10.times.map(&:to_s).shuffle\n ary100 = 100.times.map(&:to_s).shuffle\n ary500 = 500.times.map(&:to_s).shuffle\n ary1000 = 1000.times.map(&:to_s).shuffle\n ary2000 = 2500.times.map(&:to_s).shuffle\n ary3000 = 2500.times.map(&:to_s).shuffle\n ary5000 = 50... | dataset_sample\yaml\ruby_ruby\benchmark\array_max_str.yml | array_max_str.yml | YAML | 875 | 0.7 | 0 | 0 | python-kit | 295 | 2023-11-30T23:51:16.482016 | GPL-3.0 | false | a08a543e352aa7688b8109a7f50a39a8 |
prelude: |\n ary2 = 2.times.to_a.shuffle\n ary10 = 10.times.to_a.shuffle\n ary100 = 100.times.to_a.shuffle\n ary500 = 500.times.to_a.shuffle\n ary1000 = 1000.times.to_a.shuffle\n ary2000 = 2500.times.to_a.shuffle\n ary3000 = 2500.times.to_a.shuffle\n ary5000 = 5000.times.to_a.shuffle\n ary10000 = 10000.times.t... | dataset_sample\yaml\ruby_ruby\benchmark\array_min.yml | array_min.yml | YAML | 865 | 0.7 | 0 | 0 | react-lib | 394 | 2024-10-27T06:56:28.375106 | MIT | false | 682a5f0e72dba76820fd4f58a5e991db |
prelude: |\n ary2 = 2.times.to_a.shuffle\n ary10 = 10.times.to_a.shuffle\n ary100 = 100.times.to_a.shuffle\n ary1000 = 1000.times.to_a.shuffle\n ary10000 = 10000.times.to_a.shuffle\n\nbenchmark:\n ary2.sort: ary2.sort\n ary10.sort: ary10.sort\n ary100.sort: ary100.sort\n ary1000.sort: ary1000.sort\n ary10000.... | dataset_sample\yaml\ruby_ruby\benchmark\array_sort_int.yml | array_sort_int.yml | YAML | 347 | 0.7 | 0 | 0 | awesome-app | 432 | 2024-05-16T03:55:19.931377 | GPL-3.0 | false | c6087276e45e043303ec5016e21691c1 |
prelude: |\n class C\n attr_accessor :x\n def initialize\n @x = nil\n end\n class_eval <<-END\n def ar\n #{'x;'*256}\n end\n def aw\n #{'self.x = nil;'*256}\n end\n def arm\n m = method(:x)\n #{'m.call;'*256}\n end\n def awm\n m = m... | dataset_sample\yaml\ruby_ruby\benchmark\attr_accessor.yml | attr_accessor.yml | YAML | 504 | 0.95 | 0.206897 | 0.137931 | vue-tools | 752 | 2024-09-21T19:35:32.987286 | MIT | false | 2cf15b01ca4165ba2a1b2b6838c04157 |
prelude: |\n # frozen_string_literal: true\n Warning[:experimental] = false\n string = "The quick brown fox jumped over the lazy dog."\n array = string.bytes\n buffer = IO::Buffer.for(string)\nbenchmark:\n string.each_byte: |\n upcased = String.new\n string.each_byte do |byte|\n upcased << (byte ^ 32)\... | dataset_sample\yaml\ruby_ruby\benchmark\buffer_each.yml | buffer_each.yml | YAML | 654 | 0.8 | 0.037037 | 0.037037 | awesome-app | 465 | 2024-10-02T07:39:21.169719 | Apache-2.0 | false | 23991a1c4af4dea5b7b95d854a4120e1 |
prelude: |\n # frozen_string_literal: true\n Warning[:experimental] = false\n string = "The quick brown fox jumped over the lazy dog."\n buffer = IO::Buffer.for(string)\n format = [:U32, :U32, :U32, :U32]\nbenchmark:\n string.unpack1: |\n [\n string.unpack1("N"),\n string.unpack1("N", offset: 4),\n ... | dataset_sample\yaml\ruby_ruby\benchmark\buffer_get.yml | buffer_get.yml | YAML | 658 | 0.8 | 0.04 | 0.04 | awesome-app | 177 | 2024-02-10T01:19:27.106474 | MIT | false | 498c7fe05c61ae3adb61ddf0ef125f4e |
prelude: |\n # frozen_string_literal: true\n require 'cgi/escape'\nbenchmark:\n - script: CGI.escapeHTML("")\n loop_count: 20000000\n - script: CGI.escapeHTML("abcde")\n loop_count: 20000000\n - script: CGI.escapeHTML("abcd<")\n loop_count: 20000000\n - script: CGI.escapeHTML("'&\"<>")\n loop_count: 5... | dataset_sample\yaml\ruby_ruby\benchmark\cgi_escape_html.yml | cgi_escape_html.yml | YAML | 1,065 | 0.95 | 0.064516 | 0.032258 | node-utils | 937 | 2025-06-14T12:25:46.665785 | Apache-2.0 | false | 906150abaee7c91010ccb854659953b8 |
prelude: |\n max, min = 1000.0, -1000.0\n a = Complex(rand(max)+min, rand(max)+min)\n b = Complex(rand(max)+min, rand(max)+min)\nbenchmark:\n complex_float_add: c = a + b\nloop_count: 1000000\n | dataset_sample\yaml\ruby_ruby\benchmark\complex_float_add.yml | complex_float_add.yml | YAML | 190 | 0.7 | 0 | 0 | python-kit | 397 | 2024-04-11T10:39:06.948348 | GPL-3.0 | false | 4902220eb50571d738afb6466fc1ca0c |
prelude: |\n max, min = 1000.0, -1000.0\n a = Complex(rand(max)+min, rand(max)+min)\n b = Complex(rand(max)+min, rand(max)+min)\nbenchmark:\n complex_float_div: c = a / b\nloop_count: 1000000\n | dataset_sample\yaml\ruby_ruby\benchmark\complex_float_div.yml | complex_float_div.yml | YAML | 190 | 0.7 | 0 | 0 | react-lib | 610 | 2025-05-12T10:14:15.678403 | Apache-2.0 | false | 3ae94e7851c583f225e6660c4258782b |
prelude: |\n max, min = 1000.0, -1000.0\n a = Complex(rand(max)+min, rand(max)+min)\n b = Complex(rand(max)+min, rand(max)+min)\nbenchmark:\n complex_float_mul: c = a * b\nloop_count: 1000000\n | dataset_sample\yaml\ruby_ruby\benchmark\complex_float_mul.yml | complex_float_mul.yml | YAML | 190 | 0.7 | 0 | 0 | awesome-app | 852 | 2025-03-01T02:42:18.144148 | BSD-3-Clause | false | 005427a5b392c2b9784bae13a1742932 |
prelude: |\n max, min = 1000.0, -1000.0\n a = Complex(rand(max)+min, rand(max)+min)\n b = Complex(rand(max)+min, rand(max)+min)\nbenchmark:\n complex_float_new: c = Complex(a, b)\nloop_count: 1000000\n | dataset_sample\yaml\ruby_ruby\benchmark\complex_float_new.yml | complex_float_new.yml | YAML | 198 | 0.7 | 0 | 0 | awesome-app | 925 | 2024-05-05T09:42:55.840171 | BSD-3-Clause | false | e558d8f40f074e697b2df5818f1ca364 |
prelude: |\n max, min = 1000.0, -1000.0\n a = Complex(rand(max)+min, rand(max)+min)\n b = Complex(rand(max)+min, rand(max)+min)\nbenchmark:\n complex_float_power: c = a ** b\nloop_count: 1000000\n | dataset_sample\yaml\ruby_ruby\benchmark\complex_float_power.yml | complex_float_power.yml | YAML | 193 | 0.7 | 0 | 0 | node-utils | 556 | 2024-04-26T10:37:02.003307 | Apache-2.0 | false | a6c3cac6440469626d487225b20ba15f |
prelude: |\n max, min = 1000.0, -1000.0\n a = Complex(rand(max)+min, rand(max)+min)\n b = Complex(rand(max)+min, rand(max)+min)\nbenchmark:\n complex_float_sub: c = a - b\nloop_count: 1000000\n | dataset_sample\yaml\ruby_ruby\benchmark\complex_float_sub.yml | complex_float_sub.yml | YAML | 190 | 0.7 | 0 | 0 | react-lib | 382 | 2024-04-28T00:39:43.618084 | BSD-3-Clause | false | 5c50d4ed3ce039bdaba9ca8f9601b26e |
prelude: |\n num = (1..).lazy.take(100)\n ary2 = [[1,2]].cycle.lazy.take(10)\n ary10 = [[*1..10]].cycle.lazy.take(10)\n ary20 = [[*1..20]].cycle.lazy.take(10)\n ary50 = [[*1..50]].cycle.lazy.take(10)\n ary100 = [[*1..100]].cycle.lazy.take(10)\n\nbenchmark:\n num3: num.flat_map {|x| x}.take(3).to_a\n num10: num.... | dataset_sample\yaml\ruby_ruby\benchmark\enum_lazy_flat_map.yml | enum_lazy_flat_map.yml | YAML | 566 | 0.7 | 0 | 0 | awesome-app | 518 | 2024-12-18T06:38:13.295828 | BSD-3-Clause | false | e44e18a9946fb3e32ef20bce4ff23a96 |
prelude: |\n a = (1..3).lazy\n b = a.map {|x| x}\n\nbenchmark:\n first_ary: a.zip(["a", "b", "c"]).first\n first_nonary: a.zip("a".."c").first\n first_noarg: a.zip.first\n\n take3_ary: a.zip(["a", "b", "c"]).take(3).force\n take3_nonary: a.zip("a".."c").take(3).force\n take3_noarg: a.zip.take(3).force\n\n chai... | dataset_sample\yaml\ruby_ruby\benchmark\enum_lazy_zip.yml | enum_lazy_zip.yml | YAML | 618 | 0.7 | 0 | 0 | python-kit | 167 | 2023-08-03T10:13:43.724805 | MIT | false | 623d5a85c43920e1b88fe93a8fd64c24 |
prelude: |\n set2 = 2.times.to_a.shuffle.to_set\n set10 = 10.times.to_a.shuffle.to_set\n set100 = 100.times.to_a.shuffle.to_set\n set1000 = 1000.times.to_a.shuffle.to_set\n set10000 = 10000.times.to_a.shuffle.to_set\n\nbenchmark:\n set2.min: set2.min\n set10.min: set10.min\n set100.min: set100.min\n set1000.mi... | dataset_sample\yaml\ruby_ruby\benchmark\enum_minmax.yml | enum_minmax.yml | YAML | 652 | 0.7 | 0 | 0 | vue-tools | 803 | 2024-08-22T02:58:58.912284 | Apache-2.0 | false | 1b909c615e07ad9ce108016b5f709220 |
prelude: |\n set2 = 2.times.to_a.shuffle.to_set\n set10 = 10.times.to_a.shuffle.to_set\n set100 = 100.times.to_a.shuffle.to_set\n set1000 = 1000.times.to_a.shuffle.to_set\n set10000 = 10000.times.to_a.shuffle.to_set\n\nbenchmark:\n set2.sort_by: set2.sort_by { 0 }\n set10.sort_by: set10.sort_by { 0 }\n set100.s... | dataset_sample\yaml\ruby_ruby\benchmark\enum_sort.yml | enum_sort.yml | YAML | 442 | 0.7 | 0 | 0 | vue-tools | 931 | 2024-09-18T23:51:42.136365 | Apache-2.0 | false | fb2baded82197c021f5e1936485b53d7 |
prelude: |\n array_length = 2\n fixnum_array2 = array_length.times.to_a.map {rand(10000)}\n float_array2 = array_length.times.to_a.map {rand(10000.0).to_f}\n string_array2 = array_length.times.to_a.map {"r" * rand(1..10000)}\n mix_array2 = array_length.times.to_a.map {if rand(1..100) <= 50 then rand(1..10000).to_f... | dataset_sample\yaml\ruby_ruby\benchmark\enum_sort_by.yml | enum_sort_by.yml | YAML | 2,793 | 0.7 | 0.075472 | 0 | awesome-app | 703 | 2024-11-14T19:47:22.858542 | Apache-2.0 | false | 528487ab213b358a8aae3195b7d7713a |
prelude: |\n # frozen_string_literal: true\n require 'erb'\nbenchmark:\n - script: ERB::Util.html_escape("")\n loop_count: 20000000\n - script: ERB::Util.html_escape("abcde")\n loop_count: 20000000\n - script: ERB::Util.html_escape("abcd<")\n loop_count: 20000000\n - script: ERB::Util.html_escape("'&\"<>... | dataset_sample\yaml\ruby_ruby\benchmark\erb_escape_html.yml | erb_escape_html.yml | YAML | 1,107 | 0.95 | 0.064516 | 0.032258 | react-lib | 263 | 2025-06-06T02:12:54.379122 | BSD-3-Clause | false | 615dffd95878df47970e60765bbdd9cb |
prelude: |\n def make_link(previous)\n Fiber.new do\n while message = previous.resume\n Fiber.yield(message)\n end\n end\n end\n\n def make_chain(length = 1000, &block)\n chain = Fiber.new(&block)\n\n (length - 1).times do\n chain = make_link(chain)\n end\n\n return chain\n e... | dataset_sample\yaml\ruby_ruby\benchmark\fiber_chain.yml | fiber_chain.yml | YAML | 581 | 0.85 | 0.138889 | 0 | node-utils | 450 | 2024-09-03T16:05:02.890039 | BSD-3-Clause | false | a239c4dd110d3ea6ffe4546c140d4b96 |
prelude: |\n th = Thread.current\n th[:key] = :val\nbenchmark:\n key?: th.key?(:key)\n []: th[:key]\n keys: th.keys\nloop_count: 1_000_000\n | dataset_sample\yaml\ruby_ruby\benchmark\fiber_locals.yml | fiber_locals.yml | YAML | 137 | 0.7 | 0 | 0 | react-lib | 639 | 2024-02-04T22:25:48.186754 | BSD-3-Clause | false | 08779edeeed889dd3c561e983afa7139 |
prelude: |\n flo = 4.2\nbenchmark:\n to_f: |\n flo.to_f\n abs: |\n flo.abs\n magnitude: |\n flo.magnitude\n -@: |\n -flo\n zero?: |\n flo.zero?\nloop_count: 20000000\n | dataset_sample\yaml\ruby_ruby\benchmark\float_methods.yml | float_methods.yml | YAML | 174 | 0.7 | 0 | 0 | react-lib | 431 | 2024-04-07T09:12:28.717084 | Apache-2.0 | false | 25df89043e4971297c17529b3005927a |
prelude: |\n flo = 4.2\nbenchmark:\n negative?: |\n flo.negative?\n positive?: |\n flo.positive?\nloop_count: 20000000\n | dataset_sample\yaml\ruby_ruby\benchmark\float_neg_posi.yml | float_neg_posi.yml | YAML | 121 | 0.7 | 0 | 0 | node-utils | 909 | 2024-05-04T14:22:02.248840 | Apache-2.0 | false | 988d17072bb5d76356fa97f8df3509c0 |
prelude: |\n floats = [*0.0.step(1.0, 0.0001)]\n\nbenchmark:\n to_s: floats.each {|f| f.to_s}\n\nloop_count: 1000\n | dataset_sample\yaml\ruby_ruby\benchmark\float_to_s.yml | float_to_s.yml | YAML | 110 | 0.7 | 0 | 0 | python-kit | 113 | 2025-04-28T13:28:50.365730 | BSD-3-Clause | false | d3c80f06d482e42baee53bdfaf590733 |
prelude: |\n # frozen_string_literal: true\n hash = 10.times.to_h do |i|\n [i, i]\n end\n dyn_sym = "dynamic_symbol".to_sym\n binary = RubyVM::InstructionSequence.compile("# frozen_string_literal: true\n'iseq_load'").to_binary\n iseq_literal_string = RubyVM::InstructionSequence.load_from_binary(binary).eval\n\... | dataset_sample\yaml\ruby_ruby\benchmark\hash_aref_str_lit.yml | hash_aref_str_lit.yml | YAML | 622 | 0.8 | 0 | 0.052632 | node-utils | 338 | 2025-03-02T14:35:12.896334 | Apache-2.0 | false | 049d9b545158ad768d557c143cfc9faa |
prelude: |\n h = Hash.new { :foo }\nbenchmark:\n default_aref: h[1]\n default_method: h.default(1)\nloop_count: 1000000\n | dataset_sample\yaml\ruby_ruby\benchmark\hash_defaults.yml | hash_defaults.yml | YAML | 118 | 0.7 | 0 | 0 | vue-tools | 352 | 2024-12-30T08:31:03.026479 | BSD-3-Clause | false | 2d8bc51ece16ef22da50b6a6679c0a38 |
prelude: |\n small_hash = { a: 1 }\n larger_hash = 20.times.map { |i| [('a'.ord + i).chr.to_sym, i] }.to_h\n\nbenchmark:\n dup_small: small_hash.dup\n dup_larger: larger_hash.dup\nloop_count: 10000\n | dataset_sample\yaml\ruby_ruby\benchmark\hash_dup.yml | hash_dup.yml | YAML | 195 | 0.7 | 0 | 0 | react-lib | 403 | 2023-08-11T04:23:05.618044 | BSD-3-Clause | false | 73c72d2719538d348648cb758dfa018a |
prelude: |\n hash1 = 1_000_000.times.to_h { [rand, true]}\n hash2 = hash1.dup\n hash2.keys[1..100_000].each { hash2.delete _1 }\n hash2.delete hash2.first[0]\n\nbenchmark:\n hash1: hash1.first\n hash2: hash2.first\n\nloop_count: 100_000\n | dataset_sample\yaml\ruby_ruby\benchmark\hash_first.yml | hash_first.yml | YAML | 233 | 0.7 | 0 | 0 | react-lib | 936 | 2024-10-23T12:24:46.857778 | GPL-3.0 | false | a8fa733316b0b516b6005248f53c642b |
prelude: |\n obj = Object.new\n hash = { obj => true }\nbenchmark: hash.key?(obj)\nloop_count: 30000000\n | dataset_sample\yaml\ruby_ruby\benchmark\hash_key.yml | hash_key.yml | YAML | 102 | 0.7 | 0 | 0 | react-lib | 715 | 2024-03-16T07:23:44.551230 | MIT | false | 4da3f37f2b17107caf64428bb0668551 |
prelude: |\n has_hash_with_capa = Hash.instance_method(:initialize).parameters.include?([:key, :capacity])\n strings_1k = 1_000.times.map { |i| -i.to_s.freeze }\n strings_100k = 100_000.times.map { |i| -i.to_s.freeze }\nbenchmark:\n new: Hash.new\n new_with_capa_1k: |\n h = has_hash_with_capa ? Hash.new(capacit... | dataset_sample\yaml\ruby_ruby\benchmark\hash_new.yml | hash_new.yml | YAML | 542 | 0.7 | 0 | 0 | python-kit | 757 | 2025-02-10T04:59:11.536187 | BSD-3-Clause | false | 3b779d2aa20021350d07644d325005fe |
prelude: |\n require 'irb/color'\n code = <<~'CODE'\n def self.foo # bar\n :"erb #{ERB.new("<%= self %>", trim_mode: ?-).result}"\n end\n CODE\nbenchmark:\n irb_color_complete: |\n IRB::Color.colorize_code(code, complete: true)\n irb_color_incomplete: |\n IRB::Color.colorize_code(code, complete: f... | dataset_sample\yaml\ruby_ruby\benchmark\irb_color.yml | irb_color.yml | YAML | 335 | 0.95 | 0.076923 | 0 | vue-tools | 873 | 2025-05-20T21:02:17.976740 | BSD-3-Clause | false | 78245f5e95899f848cff52b2ec532883 |
prelude: |\n # frozen_string_literal: true\n require 'rbconfig'\n irb_f = [File.join(File.dirname(RbConfig.ruby), 'irb'), '-f']\nbenchmark:\n irb_exec: |\n IO.popen(irb_f, 'w') do |io|\n io.write('exit')\n end\nloop_count: 30\n | dataset_sample\yaml\ruby_ruby\benchmark\irb_exec.yml | irb_exec.yml | YAML | 232 | 0.95 | 0 | 0.1 | python-kit | 309 | 2023-11-20T00:12:44.060622 | MIT | false | 1c49a1a0122d2ce87710547b164b807b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.