Repository Analysis

truffleruby/truffleruby

A high performance implementation of the Ruby programming language, built on GraalVM.

4.8 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of truffleruby/truffleruby, a Ruby project with 3,218 GitHub stars. SynthScan v2.0 examined 1,814,321 lines of code across 12327 source files, recording 7802 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 4.8 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

4.8
Adjusted Score
4.8
Raw Score
100%
Time Factor
2026-08-09
Last Push
3.2K
Stars
Ruby
Language
1.8M
Lines of Code
12.3K
Files
7.8K
Pattern Hits
2026-08-09
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 23HIGH 5MEDIUM 973LOW 6801

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 7802 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block5136 hits · 4306 pts
SeverityFileLineSnippetContext
LOWbench/polybench.rb1# Copyright (c) 2026 TruffleRuby contributors.COMMENT
LOWbench/metrics/mandelbrot.rb1# truffleruby_primitives: trueCOMMENT
LOWbench/metrics/mandelbrot.rb21#COMMENT
LOWbench/micro/file/open.rb1# Copyright (c) 2026 TruffleRuby contributors.COMMENT
LOWbench/micro/hash/promote-null-hash.rb1# Copyright (c) 2026 TruffleRuby contributors.COMMENT
LOWbench/micro/hash/promote-packed-hash.rb1# Copyright (c) 2026 TruffleRuby contributors.COMMENT
LOWbench/micro/array/flatten-simple.rb1# Copyright (c) 2026 TruffleRuby contributors.COMMENT
LOWbench/micro/fiber/create.rb1# Copyright (c) 2026 TruffleRuby contributors.COMMENT
LOWbench/micro/integer/mod_pow2.rb1# Copyright (c) 2026 TruffleRuby contributors.COMMENT
LOWbench/micro/random/random.rb1# Copyright (c) 2026 TruffleRuby contributors.COMMENT
LOWbench/micro/random/random_object.rb1# Copyright (c) 2026 TruffleRuby contributors.COMMENT
LOWbench/micro/thread/current.rb1# Copyright (c) 2026 TruffleRuby contributors.COMMENT
LOWbench/micro/thread/create_join.rb1# Copyright (c) 2026 TruffleRuby contributors.COMMENT
LOWbench/parallel/savina/lib/savina-common.rb1# Copyright (c) 2016 Benoit DalozeCOMMENT
LOWbench/parallel/savina/lib/savina-trapezoidal.rb1# This code is derived from the Savina benchmark suite,COMMENT
LOWbench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt.rb61 # @return the template object that is currently rendering.COMMENT
LOWbench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt.rb81 #COMMENT
LOW…ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb1require 'monitor'COMMENT
LOW…ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb21 #COMMENT
LOW…ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb41 # mapping.register_lazy('Bluecloth::Template', 'bluecloth/template', 'md')COMMENT
LOW…ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb61 @template_map = other.template_map.dupCOMMENT
LOW…ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb121 # mapping.registered?('erb') # => trueCOMMENT
LOW…ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb261 Tilt.autoload :Dummy, "tilt/dummy"COMMENT
LOWbench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/csv.rb21 # # data rowsCOMMENT
LOWbench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/yajl.rb1require 'tilt/template'COMMENT
LOWbench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/yajl.rb21 # # The json variable represents the bufferCOMMENT
LOW…h/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/template.rb141 # @!group For template implementationsCOMMENT
LOW…h/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/template.rb161 # evaluation is guaranteed to be performed in the scope object with theCOMMENT
LOW…nch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/erubis.rb1require 'tilt/erb'COMMENT
LOW…nch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/liquid.rb1require 'tilt/template'COMMENT
LOW…dle/gems/sinatra-2.1.0/lib/sinatra/indifferent_hash.rb1# frozen_string_literal: trueCOMMENT
LOW…dle/gems/sinatra-2.1.0/lib/sinatra/indifferent_hash.rb21 # rgb['black'] # => '#000000' # string retrievalCOMMENT
LOW…sinatra/bundle/gems/mustermann-1.1.1/lib/mustermann.rb1# frozen_string_literal: trueCOMMENT
LOW…sinatra/bundle/gems/mustermann-1.1.1/lib/mustermann.rb21 # * From an Array or multiple inputs: creates a new pattern from each element, combines them to a {Mustermann::ComposiCOMMENT
LOW…sinatra/bundle/gems/mustermann-1.1.1/lib/mustermann.rb41 # class MyObjectCOMMENT
LOW…undle/gems/mustermann-1.1.1/lib/mustermann/identity.rb1# frozen_string_literal: trueCOMMENT
LOW…undle/gems/mustermann-1.1.1/lib/mustermann/identity.rb41 # @example (see Mustermann::Pattern#to_templates)COMMENT
LOW…dle/gems/mustermann-1.1.1/lib/mustermann/to_pattern.rb1# frozen_string_literal: trueCOMMENT
LOW…dle/gems/mustermann-1.1.1/lib/mustermann/to_pattern.rb21 module ToPatternCOMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/sinatra.rb21 # Takes a string and espaces any characters that have special meaning for Sinatra patterns.COMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/sinatra.rb41 # Creates a pattern that matches any string matching either one of the patterns.COMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/sinatra.rb61 return super unless converted.names.empty? or names.empty?COMMENT
LOW…ndle/gems/mustermann-1.1.1/lib/mustermann/extension.rb1# frozen_string_literal: trueCOMMENT
LOW…undle/gems/mustermann-1.1.1/lib/mustermann/expander.rb1# frozen_string_literal: trueCOMMENT
LOW…undle/gems/mustermann-1.1.1/lib/mustermann/expander.rb61 #COMMENT
LOW…undle/gems/mustermann-1.1.1/lib/mustermann/expander.rb81 #COMMENT
LOW…undle/gems/mustermann-1.1.1/lib/mustermann/expander.rb101 # Regexps and Symbols match against key, everything else matches against value.COMMENT
LOW…undle/gems/mustermann-1.1.1/lib/mustermann/expander.rb121 # pattern = Mustermann::Expander.new('/:name', '/:name.:ext')COMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb121 endCOMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb141 string.size.downto(0).detect { |s| self === string[0, s] }COMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb161 # @exampleCOMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb221 #COMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb241 raise NotImplementedError, "expanding not supported by #{self.class}"COMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb261 # pattern = Mustermann.new('/:name')COMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb281 endCOMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb301 # pattern === '/foo' # => falseCOMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb321COMMENT
LOW…bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb341 # pattern = Mustermann.new('/:a/:b')COMMENT
LOW…/bundle/gems/mustermann-1.1.1/lib/mustermann/mapper.rb1# frozen_string_literal: trueCOMMENT
LOW…/bundle/gems/mustermann-1.1.1/lib/mustermann/mapper.rb21 # require 'mustermann/mapper'COMMENT
5076 more matches not shown…
Self-Referential Comments570 hits · 1674 pts
SeverityFileLineSnippetContext
MEDIUM…h/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/template.rb54 # Create a new template with the file, line, and options specified. ByCOMMENT
MEDIUM…h/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/template.rb164 # This method is only used by source generating templates. Subclasses thatCOMMENT
MEDIUM…/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb1307 # Define a custom error handler. Optionally takes either an ExceptionCOMMENT
MEDIUM…/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb1323 # Define a named template. The block must return the template source.COMMENT
MEDIUM…/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb1329 # Define the layout template. The block must return the template source.COMMENT
MEDIUM…/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb1384 # Define a before filter; runs before all requests within the sameCOMMENT
MEDIUM…/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb1391 # Define an after filter; runs after all requests within the sameCOMMENT
MEDIUM…/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb1520 # Create a new instance without middleware in front of it.COMMENT
MEDIUM…/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb1523 # Create a new instance of the class fronted by its middlewareCOMMENT
MEDIUM…/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb1999 # Create a new Sinatra application; the block is evaluated in the class scope.COMMENT
MEDIUM…dle/gems/mustermann-1.1.1/lib/mustermann/ast/parser.rb75 # Create a node for a character we don't have an explicit rule for.COMMENT
MEDIUM…nch/sinatra/bundle/gems/rack-2.2.3/lib/rack/builder.rb128 # Create a new Rack::Builder instance and return the Rack applicationCOMMENT
MEDIUM…ch/sinatra/bundle/gems/rack-2.2.3/lib/rack/response.rb32 # Initialize the response object with the specified body, statusCOMMENT
MEDIUM…/asciidoctor/asciidoctor/lib/asciidoctor/extensions.rb27 # This class provides access to a class-level Hash for holding defaultCOMMENT
MEDIUMbench/asciidoctor/asciidoctor/lib/asciidoctor/reader.rb1003 # This method is typically used in an IncludeProcessor to add sourceCOMMENT
MEDIUMbench/asciidoctor/asciidoctor/lib/asciidoctor/parser.rb17# # Create a Reader for the AsciiDoc lines and retrieve the next block from it.COMMENT
MEDIUMbench/asciidoctor/asciidoctor/lib/asciidoctor/parser.rb52 # This method is the main entry-point into the Parser when parsing a full document.COMMENT
MEDIUMbench/asciidoctor/asciidoctor/lib/asciidoctor/parser.rb2014 # This method handles lines with the following content:COMMENT
MEDIUM…ch/asciidoctor/asciidoctor/lib/asciidoctor/callouts.rb39 # This method is used during conversion to retrieve the unique id of theCOMMENT
MEDIUMbench/chunky_png/chunky_png/lib/chunky_png/dimension.rb53 # This class contains some methods to simplify performing dimension related checks.COMMENT
MEDIUMbench/chunky_png/chunky_png/lib/chunky_png/point.rb53 # This class implements some basic methods to handle comparison, the splat operator andCOMMENT
MEDIUM…/chunky_png/chunky_png/lib/chunky_png/compatibility.rb1# Define the byte-operators on a string if they're not defined (Ruby 1.8)COMMENT
MEDIUMmx.truffleruby/suite.py888 # Create the complete files for bundled gems to let RubyGems know the gems are fully built and can be acCOMMENT
MEDIUM…ecosystem/blog6/config/initializers/wrap_parameters.rb3# This file contains settings for ActionController::ParamsWrapper whichCOMMENT
MEDIUM…m/blog6/config/initializers/content_security_policy.rb3# Define an application-wide content security policyCOMMENT
MEDIUM…log6/config/initializers/new_framework_defaults_6_0.rb3# This file contains migration options to ease your Rails 6.0 upgrade.COMMENT
MEDIUMtest/truffle/ecosystem/blog6/db/schema.rb1# This file is auto-generated from the current state of the database. InsteadCOMMENT
MEDIUM…st/truffle/integration/single_threaded/finalization.rb23# Defining a new finalizer should cause the old finalizer to run in this threadCOMMENT
MEDIUMtest/mri/tests/test_timeout.rb278 # Create the timeout thread under a handle_interrupt(:never)COMMENT
MEDIUMtest/mri/tests/test_timeout.rb325 # Create the timeout thread under a handle_interrupt(:never)COMMENT
MEDIUMtest/mri/tests/rubygems/test_gem_request.rb22 # This method is same code as Base64.encode64COMMENT
MEDIUMtest/mri/tests/rubygems/test_gem_installer.rb1535 # Create the non-user ext dirCOMMENT
MEDIUMtest/mri/tests/json/json_encoding_test.rb137 # Create a large array with repeated elementsCOMMENT
MEDIUMtest/mri/tests/json/json_encoding_test.rb147 # Create a large hashCOMMENT
MEDIUMtest/mri/tests/fiber/scheduler.rb301 # This method is invoked from a thread or fiber to unblock a fiber that isCOMMENT
MEDIUMtest/mri/tests/fiber/scheduler.rb533 # This method is invoked when the thread is exiting.COMMENT
MEDIUMtest/mri/tests/fiber/test_thread.rb109 # Create a fiber that will join a long-running thread:COMMENT
MEDIUMtest/mri/tests/win32/test_registry.rb20 # Create a new registry key per test in an atomic way, which is deleted on teardown.COMMENT
MEDIUMtest/mri/tests/ruby/test_compile_prism.rb3# This file is organized to match itemization in https://github.com/ruby/prism/issues/1335COMMENT
MEDIUMtest/mri/tests/ruby/test_box.rb571 # Define a constant in the box via evalCOMMENT
MEDIUMtest/mri/tests/ruby/test_box.rb582 # Define a class in the box via evalCOMMENT
MEDIUMtest/mri/tests/ruby/test_method.rb1747 # The following code emulate this listing.COMMENT
MEDIUMspec/mspec/lib/mspec/runner/mspec.rb240 # This method is used for registering actions that areCOMMENT
MEDIUMspec/mspec/lib/mspec/runner/actions/leakchecker.rb323 # This function is intended to disable all NSS modules when ruby is compiledCOMMENT
MEDIUMspec/truffle/thread_safe_objects_spec.rb452 # Create a new Thread to make sure the root Fiber is shared as expectedCOMMENT
MEDIUMspec/ffi/spec_helper.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/custom_type_spec.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/strptr_spec.rb3# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/errno_spec.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/io_spec.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/struct_packed_spec.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/fork_spec.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/bitmask_spec.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/managed_struct_spec.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/enum_spec.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/async_callback_spec.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/variadic_spec.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/buffer_spec.rb2# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/pointer_spec.rb3# This file is part of ruby-ffi.COMMENT
MEDIUMspec/ffi/number_spec.rb2# This file is part of ruby-ffi.COMMENT
510 more matches not shown…
Hyper-Verbose Identifiers1430 hits · 1266 pts
SeverityFileLineSnippetContext
LOWbench/sinatra/bundle/gems/rack-2.2.3/lib/rack/mock.rb253 def identify_cookie_attributes(cookie_filling)CODE
LOWbench/sinatra/bundle/gems/rack-2.2.3/lib/rack/utils.rb269 def make_delete_cookie_header(header, key, value)CODE
LOWbench/sinatra/bundle/gems/rack-2.2.3/lib/rack/utils.rb306 def add_remove_cookie_to_header(header, key, value = {})CODE
LOW…nch/sinatra/bundle/gems/rack-2.2.3/lib/rack/request.rb632 def reject_trusted_ip_addresses(ip_addresses)CODE
LOW…inatra/bundle/gems/rack-2.2.3/lib/rack/session/pool.rb80 def get_session_with_fallback(sid)CODE
LOW…ch/asciidoctor/asciidoctor/lib/asciidoctor/document.rb803 def clear_playback_attributes(attributes)CODE
LOW…ch/asciidoctor/asciidoctor/lib/asciidoctor/document.rb887 def apply_attribute_value_subs(value)CODE
LOW…sciidoctor/asciidoctor/lib/asciidoctor/substitutors.rb1196 def parse_quoted_text_attributes(str)CODE
LOWbench/classic/deltablue.rb481 def extract_plan_from_constraints(constraints)CODE
LOWbench/classic/deltablue.rb542 def add_constraints_consuming_to(v, coll)CODE
LOW…h/psd.rb/psd.rb/lib/psd/layer/position_and_channels.rb34 def export_position_and_channels(outfile)CODE
LOWbench/liquid/lib/liquid/parser_switching.rb5 def strict_parse_with_error_mode_fallback(markup)CODE
LOWbench/liquid/lib/liquid/parser_switching.rb17 def parse_with_selected_parser(markup)CODE
LOWbench/liquid/lib/liquid/parser_switching.rb33 def strict_parse_with_error_context(markup)CODE
LOWbench/liquid/lib/liquid/variable.rb135 def evaluate_filter_expressions(context, filter_args, filter_kwargs)CODE
LOWbench/liquid/lib/liquid/context.rb239 def try_variable_find_in_environments(key, raise_on_not_found:)CODE
LOWbench/liquid/lib/liquid/block_body.rb240 def raise_missing_tag_terminator(token, parse_context)CODE
LOWbench/liquid/lib/liquid/block_body.rb245 def raise_missing_variable_terminator(token, parse_context)CODE
LOWbench/chunky_png/chunky_png/lib/chunky_png/canvas.rb161 def set_pixel_if_within_bounds(x, y, color)CODE
LOWbench/chunky_png/chunky_png/lib/chunky_png/color.rb449 def decompose_alpha_component(channel, color, mask, bg)CODE
LOWbench/chunky_png/chunky_png/lib/chunky_png/color.rb466 def decompose_alpha_components(color, mask, bg)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb123 def decode_png_without_interlacing(stream, width, height, color_mode, depth)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb356 def decode_png_pixels_from_scanline_method(color_mode, depth)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb435 def decode_png_str_scanline_sub_none(stream, pos, prev_pos, line_length, pixel_size)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb443 def decode_png_str_scanline_sub(stream, pos, prev_pos, line_length, pixel_size)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb453 def decode_png_str_scanline_up(stream, pos, prev_pos, line_length, pixel_size)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb464 def decode_png_str_scanline_average(stream, pos, prev_pos, line_length, pixel_size)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb476 def decode_png_str_scanline_paeth(stream, pos, prev_pos, line_length, pixel_size)CODE
LOW…nky_png/chunky_png/lib/chunky_png/canvas/resampling.rb95 def resample_nearest_neighbor(new_width, new_height)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb172 def encode_png_image_without_interlacing(color_mode, bit_depth = 8, filtering = ChunkyPNG::FILTER_NONE)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb188 def encode_png_image_with_interlacing(color_mode, bit_depth = 8, filtering = ChunkyPNG::FILTER_NONE)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb203 def encode_png_image_pass_to_stream(stream, color_mode, bit_depth, filtering)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb360 def encode_png_pixels_to_scanline_method(color_mode, depth)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb385 def encode_png_str_scanline_none(stream, pos, prev_pos, line_width, pixel_size)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb392 def encode_png_str_scanline_sub(stream, pos, prev_pos, line_width, pixel_size)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb403 def encode_png_str_scanline_up(stream, pos, prev_pos, line_width, pixel_size)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb414 def encode_png_str_scanline_average(stream, pos, prev_pos, line_width, pixel_size)CODE
LOW…y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb426 def encode_png_str_scanline_paeth(stream, pos, prev_pos, line_width, pixel_size)CODE
LOWbench/rubykon/rubykon/lib/rubykon/group_tracker.rb54 def take_liberties_of_enemies(enemy_neighbours, identifier, board, capturer_color)CODE
LOWbench/rubykon/rubykon/lib/rubykon/group_tracker.rb104 def regain_liberties_from_capture(enemy_group)CODE
LOWbench/rubykon/rubykon/lib/rubykon/group_tracker.rb122 def join_group_of_friendly_stones(friendly_stones, identifier)CODE
LOWbench/rubykon/rubykon/lib/rubykon/group.rb25 def gain_liberties_from_capture_of(captured_group, group_tracker)CODE
LOWbench/rubykon/rubykon/lib/rubykon/game_scorer.rb23 def score_empty_cutting_point(identifier, board, game_score)CODE
LOWbench/optcarrot/lib/optcarrot/opt.rb146 def localize_instance_variables(code, ivars = code.scan(/@\w+/).uniq.sort)CODE
LOWbench/optcarrot/lib/optcarrot/ppu.rb1334 def specialize_clock_handlers(handlers)CODE
LOWmx.truffleruby/mx_truffleruby.py77def get_truffleruby_abi_version():CODE
LOWmx.truffleruby/mx_truffleruby.py422def truffleruby_standalone_deps():CODE
LOWmx.truffleruby/mx_truffleruby.py484def ruby_run_ruby_from_classpath(args):CODE
LOWmx.truffleruby/mx_truffleruby.py505def ruby_testdownstream_hello(args):CODE
LOWmx.truffleruby/mx_truffleruby.py558def ruby_maven_deploy_public_repo_dir(args):CODE
LOWtest/bootstraptest/runner.rb825def in_temporary_working_directory(dir)CODE
LOWtest/truffle/compiler/pe/pe_harness.rb12def create_test_pe_code_method(code)CODE
LOWtest/truffle/compiler/pe/truffle/thread_pe.rb17def detect_recursion_recursive(method, object)CODE
LOWtest/mri/tests/test_securerandom.rb46 def check_forking_random_bytes(target_pid, target)CODE
LOWtest/mri/tests/test_time.rb421 def subtest_xmlschema_leap_second(method)CODE
LOWtest/mri/tests/test_time.rb445 def subtest_xmlschema_fraction(method)CODE
LOWtest/mri/tests/test_forwardable.rb396 def single_forwardable_object(&block)CODE
LOWtest/mri/tests/net/http/test_http.rb668 def _test_request__accept_encoding(http)CODE
LOWtest/mri/tests/net/http/test_http.rb733 def _test_request__stream_body(http)CODE
LOWtest/mri/tests/net/http/test_http.rb872 def _test_set_form_urlencoded(http, data)CODE
1370 more matches not shown…
Decorative Section Separators347 hits · 616 pts
SeverityFileLineSnippetContext
MEDIUMbench/classic/deltablue.rb5# =================COMMENT
MEDIUMbench/optcarrot/lib/optcarrot/apu.rb470 #--------------------------------------------------------------------------COMMENT
MEDIUMbench/optcarrot/lib/optcarrot/apu.rb588 #--------------------------------------------------------------------------COMMENT
MEDIUMbench/optcarrot/lib/optcarrot/apu.rb670 #--------------------------------------------------------------------------COMMENT
MEDIUMbench/optcarrot/lib/optcarrot/apu.rb728 #--------------------------------------------------------------------------COMMENT
MEDIUMtest/mri/tests/ruby/test_module.rb154 # -----------------------------------------------------------COMMENT
MEDIUMtest/mri/tests/ruby/test_class.rb5 # ------------------COMMENT
MEDIUMtest/mri/tests/ruby/test_class.rb7 # ------------------COMMENT
MEDIUMtest/mri/tests/ruby/test_class.rb36 # ------------------COMMENT
MEDIUMtest/mri/tests/ruby/test_class.rb38 # ------------------COMMENT
MEDIUMspec/ruby/language/precedence_spec.rb22# -----------------------------------------------------------------------COMMENT
MEDIUMspec/ruby/language/precedence_spec.rb47# -----------------------------------------------------------------------COMMENT
MEDIUMspec/ruby/language/precedence_spec.rb56# -----------------------------------------------------------------------COMMENT
MEDIUMspec/ruby/language/precedence_spec.rb61#---------------------------------------------------------------COMMENT
MEDIUMspec/ruby/language/precedence_spec.rb84# -----------------------------------------------------------------------COMMENT
MEDIUMspec/ruby/language/predefined_spec.rb12# ---------------------------------------------------------------------------------------------------COMMENT
MEDIUMspec/ruby/language/predefined_spec.rb18# ---------------------------------------------------------------------------------------------------COMMENT
MEDIUMspec/ruby/language/predefined_spec.rb644# ---------------------------------------------------------------------------------------------------COMMENT
MEDIUMspec/ruby/language/predefined_spec.rb1007# ---------------------------------------------------------------------------------------------------COMMENT
MEDIUMspec/ruby/language/predefined_spec.rb1280# ---------------------------------------------------------------------------------------------------COMMENT
MEDIUMspec/ruby/language/predefined_spec.rb1346# ---------------------------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb71 # --------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb74 # --------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb353 # --------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb357 # --------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb465 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb469 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb649 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb653 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb845 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb849 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb1029 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb1033 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb1215 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb1219 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb1390 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb1394 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb1634 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb1638 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb1907 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb1911 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2103 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2107 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2270 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2274 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2411 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2415 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2674 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2678 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2841 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2845 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2986 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb2990 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb3229 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb3233 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb3445 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb3449 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb3693 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb3697 # ----------------------------------------------------------------------------------COMMENT
MEDIUMlib/mri/prism/node.rb3872 # ----------------------------------------------------------------------------------COMMENT
287 more matches not shown…
Hallucination Indicators23 hits · 235 pts
SeverityFileLineSnippetContext
CRITICALtest/mri/excludes/TestArraySubclass.rb21exclude :test_permutation_stack_error, "very slow; SystemStackError: stack level too deep from com.oracle.truffle.api.stCODE
CRITICALtest/mri/excludes/TestHashOnly.rb6exclude :test_ar2st_delete, "<no message> (java.lang.AssertionError) from org.truffleruby.core.hash.library.BucketsHashSCODE
CRITICALtest/mri/excludes/TestHashOnly.rb7exclude :test_ar2st_insert, "<no message> (java.lang.AssertionError) from org.truffleruby.core.hash.library.PackedHashStCODE
CRITICALtest/mri/excludes/TestPack.rb11exclude :test_pack_unpack_u, "<no message> (java.lang.UnsupportedOperationException) from org.truffleruby.core.format.wrCODE
CRITICALtest/mri/excludes/TestPack.rb14exclude :test_unpack_garbage, "<no message> (com.oracle.truffle.api.CompilerDirectives.ShouldNotReachHere) from com.oracCODE
CRITICALtest/mri/excludes/TestTime.rb21exclude :test_strftime_too_wide, "padding width 8189 too large (java.lang.IndexOutOfBoundsException) from org.trufflerubCODE
CRITICALtest/mri/excludes/TestMarshal.rb23exclude :test_nonascii_class_module, "Cannot convert a Ruby String with BINARY encoding containing non-US-ASCII characteCODE
CRITICALtest/mri/excludes/TestFiber.rb6exclude :test_raise, "transient; <no message> (java.lang.AssertionError) from org.truffleruby.core.fiber.FiberManager.trCODE
CRITICALtest/mri/excludes/Test_Symbol/TestType.rb2exclude :test_check_id_invalid_type, "Expected Exception(TypeError) was raised, but the message doesn't match. Expected CODE
CRITICALlib/mri/psych.rb12 org.jruby.ext.psych.PsychLibrary.new.load(JRuby.runtime, false)CODE
CRITICALlib/gems/gems/rdoc-7.0.3/lib/rdoc/rd/inline_parser.rb212 com.headius.racc.Cparse.new.load(JRuby.runtime, false)CODE
CRITICALlib/gems/gems/rdoc-7.0.3/lib/rdoc/rd/block_parser.rb212 com.headius.racc.Cparse.new.load(JRuby.runtime, false)CODE
CRITICALlib/gems/gems/racc-1.8.1/lib/racc/parser-text.rb204 com.headius.racc.Cparse.new.load(JRuby.runtime, false)CODE
CRITICALlib/gems/gems/racc-1.8.1/lib/racc/parser.rb193 com.headius.racc.Cparse.new.load(JRuby.runtime, false)CODE
CRITICALdoc/contributor/debugging.md38`New Watch...` and paste `org.truffleruby.language.backtrace.BacktraceFormatter.printableRubyBacktrace(this)`.CODE
CRITICALtool/extract_host_inlining.rb33 line.include?(' com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate()') orCODE
CRITICALtool/extract_host_inlining.rb34 line.include?(' com.oracle.truffle.api.CompilerDirectives.inInterpreter()')CODE
CRITICAL…c/main/java/org/truffleruby/core/array/ArrayUtils.java277 return com.oracle.truffle.api.ArrayUtils.indexOf(array, start, start + size, find);CODE
CRITICAL…main/java/org/truffleruby/core/module/ModuleNodes.java1687 final RubyClass singletonClass = org.truffleruby.language.objects.SingletonClassNodeGen.getUncached()CODE
CRITICAL…main/java/org/truffleruby/core/module/ModuleNodes.java1747 final RubyClass singletonClass = org.truffleruby.language.objects.SingletonClassNodeGen.getUncached()CODE
CRITICAL…in/java/org/truffleruby/core/string/StringSupport.java235 return com.oracle.truffle.api.ArrayUtils.indexOfWithOrMask(bytes, p, end - p, NON_ASCII_NEEDLE, NON_ASCII_MASK);CODE
CRITICAL…truffleruby/language/backtrace/BacktraceFormatter.java69 // org.truffleruby.language.backtrace.BacktraceFormatter.printableRubyBacktrace(this)COMMENT
CRITICAL…in/java/org/truffleruby/parser/MagicCommentParser.java267 int index = com.oracle.truffle.api.ArrayUtils.indexOf(CODE
Slop Phrases44 hits · 110 pts
SeverityFileLineSnippetContext
MEDIUMbench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/yajl.rb31 # # you can use conditional statements or any other Ruby statementCOMMENT
LOW…ra/bundle/gems/rack-2.2.3/lib/rack/rewindable_input.rb14 # Don't forget to call #close when you're done. This frees up temporary resources thatCOMMENT
MEDIUMbench/sinatra/bundle/gems/rack-2.2.3/lib/rack/mime.rb42 # To amend this list with your local mime.types list you can use:COMMENT
LOWbench/liquid/performance/shopify/vision.database.yml879 content: <p><strong>Welcome to your Shopify store! The jaded Pixel crew is really glad you decided to take ShopiCODE
LOW…t/mri/tests/rubygems/test_gem_commands_cert_command.rb137 assert_equal "Don't forget to move the key file to somewhere private!",CODE
LOW…t/mri/tests/rubygems/test_gem_commands_cert_command.rb169 assert_equal "Don't forget to move the key file to somewhere private!",CODE
LOW…t/mri/tests/rubygems/test_gem_commands_cert_command.rb229 assert_equal "Don't forget to move the key file to somewhere private!",CODE
LOWtest/mri/tests/rubygems/test_gem_specification.rb2759#{w}: make sure you specify the oldest ruby version constraint (like \">= 3.0\") that you want your gem to support by sCOMMENT
LOWtest/mri/tests/rubygems/test_gem_specification.rb2776#{w}: make sure you specify the oldest ruby version constraint (like \">= 3.0\") that you want your gem to support by sCOMMENT
MEDIUMtest/mri/tests/lib/test/unit/testcase.rb9 # Provides a simple set of guards that you can use in your testsCOMMENT
LOWspec/ruby/optional/capi/encoding_spec.rb391 str.valid_encoding? # make sure to set the coderangeCODE
LOWlib/cext/include/ruby/internal/intern/thread.h254 * fork a process don't forget to call it.COMMENT
MEDIUMlib/mri/rubygems.rb56# RubyGems or implementing Ruby you can change RubyGems' defaults.COMMENT
MEDIUMlib/mri/optparse.rb417# For modern shells (e.g. bash, zsh, etc.), you can use shellCOMMENT
MEDIUMlib/mri/erb.rb45# Before you can use \ERB, you must first require itCOMMENT
MEDIUMlib/mri/erb.rb95# Here's a simple example of \ERB in action:COMMENT
MEDIUMlib/mri/delegate.rb285# Here's a simple example that takes advantage of the fact thatCOMMENT
MEDIUMlib/mri/fileutils.rb145# To avoid that vulnerability, you can use this method to remove entries:COMMENT
MEDIUMlib/mri/shellwords.rb21# Once you've required Shellwords, you can use the #split aliasCOMMENT
MEDIUMlib/mri/net/http.rb198 # In the block, you can use these instance methods,COMMENT
MEDIUMlib/mri/net/http.rb405 # you can use argument +p_no_proxy+ to filter proxies:COMMENT
MEDIUMlib/mri/objspace/trace.rb2# When you have an object of unknown provenance, you can use thisCOMMENT
MEDIUMlib/mri/prism/node.rb427 # Similar to #type, this method returns a symbol that you can use forCOMMENT
MEDIUMlib/mri/prism/dispatcher.rb40 # Optionally, you can also use `#dispatch_once` to dispatch enter and leaveCOMMENT
LOWlib/mri/rubygems/errors.rb26 # system. Instead of rescuing from this class, make sure to rescue from theCOMMENT
LOWlib/mri/rubygems/errors.rb51 # not the requested version. Instead of rescuing from this class, make sure toCOMMENT
MEDIUMlib/mri/rubygems/specification.rb2274 # Returns an object you can use to sort specifications in #sort_by.COMMENT
LOWlib/mri/rubygems/commands/cert_command.rb150 say "Don't forget to move the key file to somewhere private!"CODE
MEDIUMlib/mri/uri/generic.rb1250 # you can modify `rel', but cannot `oth'.COMMENT
MEDIUMlib/mri/uri/generic.rb1275 # you can modify `rel', but cannot `oth'.COMMENT
MEDIUMlib/mri/bundler/remote_specification.rb73 # @return [Array] an object you can use to compare and sort thisCOMMENT
MEDIUMlib/gems/gems/fiddle-1.1.8/lib/fiddle.rb120 # already loaded. For example, in most cases you can use this to accessCOMMENT
MEDIUMlib/gems/gems/pstore-0.2.1/lib/pstore.rb196# And recall that you can useCOMMENT
MEDIUMlib/gems/gems/logger-1.7.0/lib/logger.rb24# you can use to create one or moreCOMMENT
MEDIUMlib/gems/gems/logger-1.7.0/lib/logger.rb289# you can use _log_ _file_ _rotation_, which uses multiple log files:COMMENT
MEDIUMlib/gems/gems/minitest-6.0.0/lib/minitest.rb1118 # Provides a simple set of guards that you can use in your testsCOMMENT
LOWlib/gems/gems/rdoc-7.0.3/lib/rdoc/rdoc.rb441 # current directory, so make sure you're somewhere writable before invoking.COMMENT
MEDIUMlib/gems/gems/rdoc-7.0.3/lib/rdoc/markup.rb51# RDoc::Markup is extensible at runtime: you can add \new markup elements toCOMMENT
MEDIUMlib/gems/gems/rdoc-7.0.3/lib/rdoc/markup.rb63# the +convert+ method, so you can use the same RDoc::Markup converter toCOMMENT
MEDIUMlib/gems/gems/rdoc-7.0.3/lib/rdoc/parser/ruby.rb62# If you have a more-complex set of overrides you can use the :call-seq:COMMENT
MEDIUMlib/gems/gems/rake-13.3.1/lib/rake/phony.rb2# Defines a :phony task that you can use as a dependency. This allowsCOMMENT
MEDIUMlib/gems/gems/test-unit-3.7.5/lib/test/unit/testcase.rb448 # For example, you can use a space in name such as "child test".COMMENT
MEDIUMlib/gems/gems/csv-3.3.5/lib/csv.rb1380 # that you can use to specify the Encoding of the data read from +path+ or +io+.COMMENT
MEDIUMlib/gems/gems/csv-3.3.5/lib/csv.rb1585 # that you can use to specify the Encoding of the data read from +path+ or +io+.COMMENT
AI Slop Vocabulary47 hits · 105 pts
SeverityFileLineSnippetContext
LOW…termann-1.1.1/lib/mustermann/ast/template_generator.rb15 # translate(:expression) is not needed, since template patterns simply call to_sCOMMENT
LOWbench/sinatra/bundle/gems/rack-2.2.3/lib/rack/lint.rb580 ## to simply pass on real IO objects, although it is recognized thatCOMMENT
MEDIUMbench/sinatra/bundle/gems/rack-2.2.3/lib/rack/lint.rb588 ## Users are encouraged to utilize this API with a knowledge of theirCOMMENT
LOW…nch/sinatra/bundle/gems/rack-2.2.3/lib/rack/request.rb366 # last client. Or if we trust everyone, we just return the firstCOMMENT
LOW…nch/sinatra/bundle/gems/rack-2.2.3/lib/rack/request.rb372 # If all the addresses are trusted, and we aren't forwarded, just returnCOMMENT
MEDIUM…ection-2.1.0/lib/rack/protection/authenticity_token.rb157 # Essentially the inverse of +mask_token+.COMMENT
MEDIUM…n-2.1.0/lib/rack/protection/content_security_policy.rb33 # section for CSP usage examples and best practices. TheCOMMENT
LOWbench/liquid/lib/liquid/tags/for.rb28 # To reverse the for loop simply use {% for item in collection reversed %} (note that the flag's spelling is differenCOMMENT
MEDIUMbench/liquid/performance/tests/sm-de/data.rb2 [{"author"=>"Octave Larose, Sophie Kaleba, Stefan Marr", "author_abbr_firstname"=>[{"first"=>"O.", "last"=>"Larose"}, CODE
MEDIUMbench/liquid/performance/tests/sm-de/data.rb2 [{"author"=>"Octave Larose, Sophie Kaleba, Stefan Marr", "author_abbr_firstname"=>[{"first"=>"O.", "last"=>"Larose"}, CODE
MEDIUMbench/liquid/performance/tests/sm-de/data.rb2 [{"author"=>"Octave Larose, Sophie Kaleba, Stefan Marr", "author_abbr_firstname"=>[{"first"=>"O.", "last"=>"Larose"}, CODE
MEDIUMbench/liquid/performance/tests/sm-de/data.rb2 [{"author"=>"Octave Larose, Sophie Kaleba, Stefan Marr", "author_abbr_firstname"=>[{"first"=>"O.", "last"=>"Larose"}, CODE
MEDIUM…nterface/lib/benchmark-interface/backends/bench9000.rb27 puts "These are short benchmarks - we're running each #{samples} times so they take about a second and usingCODE
MEDIUMbench/optcarrot/stats.rb1# A fixed-workload harness for OptCarrot with minimal dependencies.COMMENT
MEDIUMbench/optcarrot/fixed-workload.rb1# A fixed-workload harness for OptCarrot with minimal dependencies.COMMENT
MEDIUMtest/mri/tests/rubygems/test_gem_installer.rb33 # this file is here to facilitate running it.COMMENT
LOWtest/mri/tests/ruby/test_random_formatter.rb97 # It would be nice to simply use Time#floor here. But that is problematicCOMMENT
MEDIUMtest/mri/tests/ruby/test_string.rb2602 # more comprehensive tests are in test_pack.rbCOMMENT
MEDIUMtest/mri/tests/ruby/test_array.rb1312 # more comprehensive tests are in test_pack.rbCOMMENT
MEDIUMspec/mspec/lib/mspec/runner/context.rb42 # Returns true if this is a shared +ContextState+. Essentially, whenCOMMENT
LOWspec/mspec/lib/mspec/runner/actions/leakchecker.rb334 # configuration in /etc/nsswitch.conf, and just use the built in files/dnsCOMMENT
LOWlib/patches/openssl.rb8# We could try to symlink in src/main/c/libssl/ssl but it seems much simpler to just use the env vars.COMMENT
LOWlib/patches/openssl.rb10unless ENV['SSL_CERT_FILE'] || ENV['SSL_CERT_DIR'] # If already set, just use thatCODE
LOWlib/truffle/ffi/library_path.rb89 # Otherwise we just add prefix and suffix:COMMENT
LOWlib/json/lib/json/common.rb963 # All these were meant to be deprecated circa 2009, but were just set as undocumentedCOMMENT
LOWlib/mri/timeout.rb123 # In that case, just return and let the main thread create the Timeout thread.COMMENT
LOWlib/mri/prism/inspect_visitor.rb19 # Most of the time, we can simply pass down the indent to the next node.COMMENT
LOWlib/mri/prism/translation/parser.rb294 # just use the offset directly. Otherwise, we build an array where theCOMMENT
LOWlib/mri/rubygems/errors.rb129 # so that we can loop over a list of mismatches and just add them ratherCOMMENT
MEDIUMlib/mri/rubygems/installer.rb724 # this file is here to facilitate running it.COMMENT
MEDIUMlib/mri/rubygems/version.rb114# Essentially, any version is OK with Client A. An incompatible change toCOMMENT
LOWlib/mri/rubygems/spec_fetcher.rb176 # names get rejected, so we just return an empty array immediately instead.COMMENT
MEDIUMlib/mri/psych/tree_builder.rb6 # This class works in conjunction with Psych::Parser to build an in-memoryCOMMENT
MEDIUMlib/mri/bundler/compact_index_client/cache_file.rb8 # write cache files in a way that is robust to concurrent modificationsCOMMENT
LOWlib/gems/gems/irb-1.16.0/lib/irb.rb121 # Irb#eval_input will simply return the input, and we need to pass it to theCOMMENT
MEDIUMlib/gems/gems/minitest-6.0.0/lib/minitest/spec.rb227 # Essentially, define an accessor for +name+ with +block+.COMMENT
MEDIUMlib/gems/gems/net-smtp-0.5.1/lib/net/smtp.rb160 # I strongly recommend this scheme. This form is simpler and more robust.COMMENT
LOWlib/gems/gems/rss-0.3.2/lib/rss/xmlparser.rb24 # This error is legacy, so we just set it to the new oneCOMMENT
LOWlib/gems/gems/rss-0.3.2/lib/rss/parser.rb135 # Attempt to convert rss to a URI, but just return it ifCOMMENT
LOWlib/gems/gems/test-unit-3.7.5/lib/test/unit.rb215 # runner simply set default test runner ID toCOMMENT
MEDIUMlib/gems/gems/net-imap-0.6.2/lib/net/imap.rb272 # Net::IMAP::ResponseError. Essentially, all methods that involveCOMMENT
MEDIUMlib/gems/gems/rinda-0.2.0/lib/rinda/rinda.rb5# A module to implement the Linda distributed computing paradigm in Ruby.COMMENT
MEDIUM…ava/org/truffleruby/core/encoding/EncodingManager.java168 // The parent process seems to explicitly want a C locale (e.g. EnvUtil#invoke_ruby in the MRI test harnCOMMENT
LOW…ffleruby/language/exceptions/TopLevelRaiseHandler.java115 * Context#close for e.g. letting tools print their output, so just return the signal number here. */COMMENT
LOWsrc/main/ruby/truffleruby/core/file.rb128 # value happens to be in the least significant 16 bits, just setCOMMENT
MEDIUMsrc/main/ruby/truffleruby/core/type.rb57# facilities are independent of the object and thus are more robust in theCOMMENT
LOWsrc/main/ruby/truffleruby/core/io.rb638 # Otherwise, we can just return the IO object for the proper half.COMMENT
Fake / Example Data72 hits · 93 pts
SeverityFileLineSnippetContext
LOWbench/asciidoctor/asciidoctor/lib/asciidoctor/parser.rb1803 # # => {'author' => 'Author Name', 'firstname' => 'Author', 'lastname' => 'Name', 'email' => 'author@example.org',COMMENT
LOWbench/liquid/performance/shopify/vision.database.yml556 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore CODE
LOWbench/liquid/performance/shopify/vision.database.yml556 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore CODE
LOWbench/liquid/performance/shopify/vision.database.yml593 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore CODE
LOWbench/liquid/performance/shopify/vision.database.yml593 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore CODE
LOWbench/liquid/performance/shopify/vision.database.yml858 content: <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et CODE
LOWbench/liquid/performance/shopify/vision.database.yml858 content: <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et CODE
LOWbench/liquid/performance/shopify/vision.database.yml867 content: <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et CODE
LOWbench/liquid/performance/shopify/vision.database.yml867 content: <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et CODE
LOWbench/liquid/performance/shopify/vision.database.yml884 content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore etCODE
LOWbench/liquid/performance/shopify/vision.database.yml884 content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore etCODE
LOWbench/liquid/performance/shopify/vision.database.yml896 content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore etCODE
LOWbench/liquid/performance/shopify/vision.database.yml896 content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore etCODE
LOWbench/liquid/performance/shopify/vision.database.yml920 content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore etCODE
LOWbench/liquid/performance/shopify/vision.database.yml920 content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore etCODE
LOWbench/liquid/performance/shopify/vision.database.yml937 content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore etCODE
LOWbench/liquid/performance/shopify/vision.database.yml937 content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore etCODE
LOWbench/liquid/performance/shopify/vision.database.yml943 content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore etCODE
LOWbench/liquid/performance/shopify/vision.database.yml943 content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore etCODE
LOWtest/truffle/gems/asciidoctor/userguide-expected.html3636- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.CODE
LOWtest/truffle/gems/asciidoctor/userguide-expected.html3636- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.CODE
LOWtest/truffle/gems/asciidoctor/userguide-expected.html3700<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>CODE
LOWtest/truffle/gems/asciidoctor/userguide-expected.html3700<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>CODE
LOWtest/mri/tests/psych/test_string.rb64 str = "Lorem ipsum"CODE
LOWtest/mri/tests/psych/test_string.rb71 str = "Lorem ipsum\n"CODE
LOWtest/mri/tests/psych/test_string.rb78 str = "Lorem ipsum dolor sit\n"CODE
LOWtest/mri/tests/psych/test_string.rb86 str = "Lorem ipsum dolor sit amet, consectetur"CODE
LOWtest/mri/tests/psych/test_string.rb86 str = "Lorem ipsum dolor sit amet, consectetur"CODE
LOWtest/mri/tests/psych/test_string.rb94 "Lorem ipsum\ndolor\n",CODE
LOWtest/mri/tests/psych/test_string.rb95 "Lorem ipsum\nZolor\n",CODE
LOWtest/mri/tests/psych/test_string.rb106 "Lorem ipsum\ndolor",CODE
LOWtest/mri/tests/psych/test_string.rb107 "Lorem ipsum\nZolor",CODE
LOWtest/mri/tests/json/json_parser_test.rb403 fake_key = Object.newCODE
LOWtest/mri/tests/json/json_parser_test.rb404 JSON.load('{"a": 1, "a": 2}', -> (obj) { obj == "a" ? fake_key : obj }, allow_duplicate_key: false)CODE
LOWtest/mri/tests/json/json_parser_test.rb408 fake_key = Object.newCODE
LOWtest/mri/tests/json/json_parser_test.rb409 JSON.load('{"a": 1, "a": 2}', -> (obj) { obj == "a" ? fake_key : obj })CODE
LOWtest/mri/tests/open-uri/test_open-uri.rb346 URI.open("#{url}/r1/", "Authorization" => "dummy_token") {|f|CODE
LOWtest/mri/tests/open-uri/test_open-uri.rb347 assert_equal("dummy_token", authorization_header)CODE
LOWtest/mri/tests/open-uri/test_open-uri.rb349 assert_equal("dummy_token", redirected_authorization_header)CODE
LOWtest/mri/tests/open-uri/test_open-uri.rb360 URI.open("#{url}/r1/", request_specific_fields: {"Authorization" => "dummy_token"}) {|f|CODE
LOWtest/mri/tests/open-uri/test_open-uri.rb361 assert_equal("dummy_token", authorization_header)CODE
LOWtest/mri/tests/open-uri/test_open-uri.rb374 "dummy_token"CODE
LOWtest/mri/tests/open-uri/test_open-uri.rb385 assert_equal("dummy_token", authorization_header)CODE
LOWtest/mri/tests/open-uri/test_open-uri.rb395 exc = assert_raise(ArgumentError) { URI.open("#{url}/r1/", request_specific_fields: "dummy_token") {} }CODE
LOWtest/mri/tests/open-uri/test_open-uri.rb396 assert_equal('Invalid request_specific_fields option: "dummy_token"', exc.message)CODE
LOWtest/mri/tests/ruby/test_zjit.rb68 tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...")CODE
LOWtest/mri/tests/ruby/test_zjit.rb68 tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...")CODE
LOWtest/mri/tests/ruby/test_module.rb3382 assert_same m, m.set_temporary_name(name = "fake_name")CODE
LOWtest/mri/tests/ruby/test_module.rb3384 assert_equal("fake_name", m.name)CODE
LOWtest/mri/tests/ruby/test_module.rb3386 assert_equal("fake_name::N", m::N.name)CODE
LOWtest/mri/tests/ruby/test_module.rb3387 assert_equal("fake_name::N::O", m::N::O.name)CODE
LOWtest/mri/tests/ruby/test_module.rb3405 mod.set_temporary_name("fake_name")CODE
LOWspec/ruby/core/module/set_temporary_name_spec.rb9 m.set_temporary_name("fake_name")CODE
LOWspec/ruby/core/module/set_temporary_name_spec.rb10 m.name.should == "fake_name"CODE
LOWspec/ruby/core/module/set_temporary_name_spec.rb18 m.set_temporary_name("fake_name").should.equal? mCODE
LOWspec/ruby/core/module/set_temporary_name_spec.rb64 -> { Object.set_temporary_name("fake_name") }.should.raise(RuntimeError, "can't change permanent name")CODE
LOWspec/ruby/core/module/set_temporary_name_spec.rb72 m::N.set_temporary_name("fake_name")CODE
LOWspec/ruby/core/module/set_temporary_name_spec.rb73 m::N.name.should == "fake_name"CODE
LOWspec/ruby/core/module/set_temporary_name_spec.rb83 m::N.set_temporary_name("fake_name")CODE
LOWspec/ruby/core/module/set_temporary_name_spec.rb84 m::N.name.should == "fake_name"CODE
12 more matches not shown…
Redundant / Tautological Comments40 hits · 62 pts
SeverityFileLineSnippetContext
LOW…ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb229 # Check if a template class is already presentCOMMENT
LOW…h/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/template.rb227 # Set it to the default external (without verifying)COMMENT
LOW…bundle/gems/rack-2.2.3/lib/rack/session/abstract/id.rb332 # Check if the session exists or not.COMMENT
LOW…ciidoctor/asciidoctor/lib/asciidoctor/abstract_node.rb105 # Check if the attribute is defined. First look in the attributes on thisCOMMENT
LOW…ciidoctor/asciidoctor/lib/asciidoctor/abstract_node.rb161 # Check if the option is enabled. This method simply checks to see if theCOMMENT
LOW…ffle/ecosystem/blog6/config/environments/production.rb66 # Set this to true and configure the email server for immediate delivery to raise delivery errors.COMMENT
LOW…ri/tests/rubygems/test_gem_commands_rebuild_command.rb119 # Set SOURCE_DATE_EPOCH to 2001-02-03 04:05:06 -0500.COMMENT
LOW…ri/tests/rubygems/test_gem_commands_rebuild_command.rb133 # Set SOURCE_DATE_EPOCH to a different value, meaning we areCOMMENT
LOWtest/mri/tests/rubygems/test_gem_installer.rb948 Gem.use_paths "#{@gemhome}2" # Set GEM_HOME to an uninitialized repoCODE
LOWspec/ruby/core/process/setpriority_spec.rb38 # Check if we can lower the nice value or not.COMMENT
LOWlib/patches/rubygems.rb3# Check if the Gem paths are correct as early as possibleCOMMENT
LOWlib/truffle/truffle/cext.rb204 # Check if the Panama backend is available, it might not be when embedding TruffleRubyCOMMENT
LOWlib/truffle/socket/truffle/foreign.rb281 # Check if the port is a numeric value we must set the socket type in order for the getaddrinfo callCOMMENT
LOWlib/mri/securerandom.rb82 # Check if Random.urandom is availableCOMMENT
LOWlib/mri/rubygems/query_utils.rb175 # Check if gem +name+ version +version+ is installed.COMMENT
LOWlib/mri/rubygems/specification.rb2206 # Set requirements to +req+, ensuring it is an array.COMMENT
LOWlib/mri/rubygems/installer.rb273 # Set loaded_from to ensure extension_dir is correctCOMMENT
LOWlib/mri/rubygems/command.rb588 # Set us to "really verbose" so the progress meter worksCOMMENT
LOWlib/mri/rubygems/ext/cmake_builder.rb48 # Check if the gem defined presetsCOMMENT
LOWlib/mri/bundler/definition.rb871 # Check if the specs of the given source changedCOMMENT
LOWlib/mri/bundler/plugin/events.rb25 # Check if an event has been definedCOMMENT
LOWlib/gems/gems/matrix-0.4.3/lib/matrix.rb2100 # Iterate over the elements of this vectorCOMMENT
LOWlib/gems/gems/matrix-0.4.3/lib/matrix.rb2109 # Iterate over the elements of this vector and +v+ in conjunction.COMMENT
LOWlib/gems/gems/rdoc-7.0.3/lib/rdoc/options.rb1293 # Set quietness to +bool+COMMENT
LOWlib/gems/gems/rdoc-7.0.3/lib/rdoc/rd/inline_parser.rb80# Print messages time to time while compiling.COMMENT
LOWlib/gems/gems/rdoc-7.0.3/lib/rdoc/rd/block_parser.rb80# Print messages time to time while compiling.COMMENT
LOWlib/gems/gems/net-smtp-0.5.1/lib/net/smtp.rb283 # Set whether to use ESMTP or not. This should be done beforeCOMMENT
LOW…/gems/gems/rbs-3.10.0/lib/rbs/type_alias_dependency.rb18 # Check if an alias type definition is circular & prohibitedCOMMENT
LOWlib/gems/gems/rbs-3.10.0/lib/rbs/prototype/runtime.rb493 # Check if a declaration exists for the actual moduleCOMMENT
LOWlib/gems/gems/rbs-3.10.0/lib/rbs/prototype/runtime.rb539 # Check if a declaration exists for the actual classCOMMENT
LOWlib/gems/gems/drb-2.2.3/lib/drb/drb.rb1523 # Set whether to operate in verbose mode.COMMENT
LOWlib/gems/gems/reline-0.6.3/lib/reline/io/windows.rb209 # Check if this could be a MSYS2 pty pipe ('\msys-XXXX-ptyN-XX')COMMENT
LOWlib/gems/gems/racc-1.8.1/lib/racc/parser-text.rb72# Print messages time to time while compiling.COMMENT
LOWlib/gems/gems/racc-1.8.1/lib/racc/parser.rb61# Print messages time to time while compiling.COMMENT
LOW…gems/gems/net-imap-0.6.2/lib/net/imap/data_encoding.rb161 # Check if argument is a valid 'number' according to RFC 3501COMMENT
LOW…gems/gems/net-imap-0.6.2/lib/net/imap/data_encoding.rb169 # Check if argument is a valid 'nz-number' according to RFC 3501COMMENT
LOW…gems/gems/net-imap-0.6.2/lib/net/imap/data_encoding.rb177 # Check if argument is a valid 'mod-sequence-value' according to RFC 4551COMMENT
LOW…gems/gems/net-imap-0.6.2/lib/net/imap/data_encoding.rb186 # Check if argument is a valid 'mod-sequence-valzer' according to RFC 4551COMMENT
LOWsrc/main/ruby/truffleruby/core/argf.rb538 # Close file stream and return self.COMMENT
LOW…in/ruby/truffleruby/core/truffle/process_operations.rb515 # Check if the command exists before posix_spawn to avoid zombie processesCOMMENT
Example Usage Blocks39 hits · 55 pts
SeverityFileLineSnippetContext
LOWbench/sinatra/bundle/gems/rack-2.2.3/lib/rack/mime.rb12 # Usage:COMMENT
LOWspec/mspec/lib/mspec/guards/feature.rb18# Usage example:COMMENT
LOWspec/mspec/tool/wrap_with_guard.rb4# Example usage:COMMENT
LOWspec/ruby/shared/types/rb_num2dbl_fails.rb4# Usage example:COMMENT
LOWlib/mri/rubygems/specification.rb525 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb539 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb196 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb209 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb220 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb235 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb263 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb277 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb290 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb302 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb312 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb345 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb362 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb408 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb419 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb434 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb459 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb502 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb562 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb577 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb595 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb623 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb645 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb682 # Usage:COMMENT
LOWlib/mri/rubygems/specification.rb695 # Usage:COMMENT
LOWlib/mri/rubygems/basic_specification.rb276 # Usage:COMMENT
LOWlib/mri/rubygems/gemcutter_utilities/webauthn_poller.rb9# Example usage:COMMENT
LOW…/mri/rubygems/gemcutter_utilities/webauthn_listener.rb19# Example usage:COMMENT
LOW…gems/gemcutter_utilities/webauthn_listener/response.rb16# Example usage:COMMENT
LOWlib/mri/syntax_suggest/lex_all.rb12 # Example usage:COMMENT
LOWlib/gems/gems/getoptlong-0.2.1/lib/getoptlong.rb317# Usage:COMMENT
LOWlib/gems/gems/getoptlong-0.2.1/lib/getoptlong.rb360# Usage:COMMENT
LOWlib/gems/gems/rake-13.3.1/lib/rake/ext/core.rb8 # Usage:COMMENT
LOWlib/gems/gems/rbs-3.10.0/lib/rbs/ast/visitor.rb12 # Example usage:COMMENT
LOWtool/parse_mri_errors.rb5# Usage:COMMENT
Verbosity Indicators31 hits · 46 pts
SeverityFileLineSnippetContext
LOWspec/ruby/core/file/expand_path_spec.rb223 # We need to check if getlogin(3) returns non-NULL,COMMENT
LOWlib/gems/gems/rbs-3.10.0/src/util/rbs_constant_pool.c172 // If there is a collision, then we need to check if the content is theCOMMENT
LOWlib/gems/gems/rbs-3.10.0/src/util/rbs_constant_pool.c178 // Since we have found a match, we need to check if this isCOMMENT
LOWtool/generate-cext-trampoline.rb226 # We need to check if the current thread is attached first before calling to Sulong/RubyCOMMENT
LOW…uffleruby/language/constants/OrAssignConstantNode.java27 * We need a separate class for this because we need to check if the constant is defined. Doing so will evaluate theCOMMENT
LOWsrc/main/c/prism-gem/src/constant_pool.c275 // If there is a collision, then we need to check if the content is theCOMMENT
LOWsrc/main/c/prism-gem/src/constant_pool.c279 // Since we have found a match, we need to check if this isCOMMENT
LOWsrc/main/c/prism-gem/src/prism.c9663 * we need to check if there is a heredoc or heredocs that we have already lexedCOMMENT
LOWsrc/main/c/prism-gem/src/prism.c12846 * contain block exits for the current scope, we need to check if theyCOMMENT
LOWsrc/main/c/prism-gem/src/prism.c13493 // a newline or semicolon. At this point we need to check if we're atCOMMENT
LOWsrc/main/c/prism-gem/src/prism.c13705 // Otherwise we need to check if the subsequent token begins an expression.COMMENT
LOWsrc/main/c/prism-gem/src/prism.c13759 // First we need to check if the next token is one that could be the startCOMMENT
LOWsrc/main/c/prism-gem/src/prism.c13962 // If there was a comma, then we need to check if we also accepted aCOMMENT
LOWsrc/main/c/prism-gem/src/prism.c17062 // Now that we have a primitive, we need to check if it's part of a range.COMMENT
LOWsrc/main/c/prism-gem/src/prism.c17066 // Now that we have the operator, we need to check if this is followedCOMMENT
LOWsrc/main/c/prism-gem/src/prism.c18928 * parenthesis, then we need to check if this is possibly a multipleCOMMENT
LOWsrc/main/c/prism-gem/src/prism.c19367 // we need to check if there are arguments following theCOMMENT
LOWsrc/main/c/yarp/src/constant_pool.c275 // If there is a collision, then we need to check if the content is theCOMMENT
LOWsrc/main/c/yarp/src/constant_pool.c279 // Since we have found a match, we need to check if this isCOMMENT
LOWsrc/main/c/yarp/src/prism.c9663 * we need to check if there is a heredoc or heredocs that we have already lexedCOMMENT
LOWsrc/main/c/yarp/src/prism.c12846 * contain block exits for the current scope, we need to check if theyCOMMENT
LOWsrc/main/c/yarp/src/prism.c13493 // a newline or semicolon. At this point we need to check if we're atCOMMENT
LOWsrc/main/c/yarp/src/prism.c13705 // Otherwise we need to check if the subsequent token begins an expression.COMMENT
LOWsrc/main/c/yarp/src/prism.c13759 // First we need to check if the next token is one that could be the startCOMMENT
LOWsrc/main/c/yarp/src/prism.c13962 // If there was a comma, then we need to check if we also accepted aCOMMENT
LOWsrc/main/c/yarp/src/prism.c17062 // Now that we have a primitive, we need to check if it's part of a range.COMMENT
LOWsrc/main/c/yarp/src/prism.c17066 // Now that we have the operator, we need to check if this is followedCOMMENT
LOWsrc/main/c/yarp/src/prism.c18928 * parenthesis, then we need to check if this is possibly a multipleCOMMENT
LOWsrc/main/c/yarp/src/prism.c19367 // we need to check if there are arguments following theCOMMENT
LOWsrc/main/ruby/truffleruby/core/stat.rb260 # Process.groups only return supplemental groups, so we need to check if gid/egid match too.COMMENT
LOWsrc/main/ruby/truffleruby/core/truffle/diggable.rb20 # We've inlined the logic for dig for three core classes - before we use that logic we need to check if the methodCOMMENT
AI Response Leakage5 hits · 38 pts
SeverityFileLineSnippetContext
HIGHlib/json/lib/json.rb373# In this example, +obj+ is used first to generate the shortestCOMMENT
HIGHlib/mri/erb.rb515# In this example, the tag begins with `'<% #'`, and so is an execution tag, not a comment tag;COMMENT
HIGHlib/mri/syntax_suggest/parse_blocks_from_indent_line.rb8 # grabbing one that contains only an "end". In this example:COMMENT
HIGHlib/gems/gems/rexml-3.4.4/lib/rexml/element.rb1999 # In this example, the block returns the passed element,COMMENT
HIGHlib/gems/gems/rexml-3.4.4/lib/rexml/element.rb2036 # In this example, the first object index is <tt>-1</tt>COMMENT
Structural Annotation Overuse7 hits · 10 pts
SeverityFileLineSnippetContext
LOWbench/asciidoctor/asciidoctor/lib/asciidoctor.rb342 # NOTE: The following pattern, which appears frequently, captures theCOMMENT
LOWlib/mri/psych.rb268 # NOTE: This method *should not* be used to parse untrusted documents, such asCOMMENT
LOWlib/mri/psych.rb691 # NOTE: This method *should not* be used to parse untrusted documents, such asCOMMENT
LOWlib/mri/net/protocol.rb18# WARNING: This file is going to remove.COMMENT
LOWlib/gems/gems/minitest-6.0.0/lib/minitest/assertions.rb534 # NOTE: This method is approximately 10x slower than #capture_io soCOMMENT
LOWlib/gems/gems/net-smtp-0.5.1/lib/net/smtp.rb437 # WARNING: This method causes serious security holes.COMMENT
LOWlib/gems/gems/rake-13.3.1/lib/rake/file_list.rb359 # NOTE: This method was formerly named "exclude?", but RailsCOMMENT
Unused Imports8 hits · 8 pts
SeverityFileLineSnippetContext
LOWmx.truffleruby/mx_truffleruby.py10CODE
LOWmx.truffleruby/mx_truffleruby.py24CODE
LOWmx.truffleruby/mx_truffleruby.py33CODE
LOWmx.truffleruby/mx_truffleruby.py34CODE
LOWmx.truffleruby/mx_truffleruby.py34CODE
LOWmx.truffleruby/mx_truffleruby.py34CODE
LOWmx.truffleruby/mx_truffleruby.py44CODE
LOWmx.truffleruby/mx_truffleruby_benchmark.py10CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMlib/mri/syntax_suggest/cli.rb19 # All other intputs are dependency injection for testingCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/main/ruby/truffleruby/core/io.rb1144 #TODO: implement ignoring encoding with negative limitCOMMENT
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWmx.truffleruby/mx_truffleruby.py442CODE