Repository Analysis

bazelbuild/bazel

a fast, scalable, multi-language and extensible build system

4.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of bazelbuild/bazel, a Java project with 25,619 GitHub stars. SynthScan v2.0 examined 514,778 lines of code across 2244 source files, recording 1956 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 4.9 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.9
Adjusted Score
4.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
25.6K
Stars
Java
Language
514.8K
Lines of Code
2.2K
Files
2.0K
Pattern Hits
2026-07-14
Scan Date
0.03
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 9HIGH 52MEDIUM 157LOW 1738

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 1956 distinct pattern matches across 22 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 Block1240 hits · 1236 pts
SeverityFileLineSnippetContext
LOWcompile.sh1#!/usr/bin/env bashCOMMENT
LOWcombine_distfiles.py1# pylint: disable=g-bad-file-headerCOMMENT
LOWcombine_distfiles_to_tar.sh1#!/bin/shCOMMENT
LOWtools/upload_bazel_mirror.sh1#!/usr/bin/env bashCOMMENT
LOWtools/aquery_differ/aquery_differ.py1# Copyright 2020 The Bazel Authors. All rights reserved.COMMENT
LOWtools/aquery_differ/aquery_differ_test.py1# pylint: disable=g-direct-third-party-importCOMMENT
LOWtools/aquery_differ/resolvers/path_fragment_resolver.py1# Copyright 2020 The Bazel Authors. All rights reserved.COMMENT
LOWtools/aquery_differ/resolvers/dep_set_resolver.py1# Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOWtools/genrule/genrule-setup.sh1#!/usr/bin/env bashCOMMENT
LOWtools/launcher/empty.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/test-setup.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/test-setup.sh241start=$(date +%s)COMMENT
LOWtools/test/collect_coverage.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/collect_coverage.sh101 # TODO: GCOV_PREFIX_STRIP=3 is incorrect on MacOS in the default setupCOMMENT
LOWtools/test/collect_coverage.sh121# too large (the combined merged jars for several big tests in a runCOMMENT
LOWtools/test/collect_coverage.sh221# --coverage_dir The absolute path of the directory where theCOMMENT
LOWtools/test/dummy.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/generate-xml.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/generate-xml.sh21DURATION_IN_SECONDS="$3"COMMENT
LOWtools/test/generate-xml.sh41 # We can't use sed in UTF-8 mode, because it would fail on the firstCOMMENT
LOWtools/test/generate-xml.sh61 # 4. Replace the string ']]>' with ']]>]]<![CDATA[>' to prevent escaping theCOMMENT
LOWtools/test/collect_cc_coverage.sh1#!/usr/bin/env bashCOMMENT
LOWtools/test/collect_cc_coverage.sh21#COMMENT
LOWtools/test/collect_cc_coverage.sh121 # If the gcda file was not found we skip generating coverage from the gcnoCOMMENT
LOWtools/test/collect_cc_coverage.sh141 # Invoke gcov to generate a code coverage report with the flags:COMMENT
LOW…e/devtools/coverageoutputgenerator/BranchCoverage.java1// Copyright 2025 The Bazel Authors. All rights reserved.COMMENT
LOW…/devtools/coverageoutputgenerator/LcovMergerFlags.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…om/google/devtools/coverageoutputgenerator/Parser.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…vtools/coverageoutputgenerator/SourceFileCoverage.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…gle/devtools/coverageoutputgenerator/LineCoverage.java1// Copyright 2025 The Bazel Authors. All rights reserved.COMMENT
LOW…/google/devtools/coverageoutputgenerator/Coverage.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…oogle/devtools/coverageoutputgenerator/LcovParser.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…evtools/coverageoutputgenerator/BranchCoverageKey.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…vtools/coverageoutputgenerator/BranchCoverageItem.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…/com/google/devtools/coverageoutputgenerator/Main.java1// Copyright 2016 The Bazel Authors. All rights reserved.COMMENT
LOW…oogle/devtools/coverageoutputgenerator/GcovParser.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…e/devtools/coverageoutputgenerator/GcovJsonParser.java1// Copyright 2020 The Bazel Authors. All rights reserved.COMMENT
LOW…e/devtools/coverageoutputgenerator/build_and_upload.sh1#!/usr/bin/env bashCOMMENT
LOW…ogle/devtools/coverageoutputgenerator/LcovPrinter.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…google/devtools/coverageoutputgenerator/Constants.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…vtools/coverageoutputgenerator/BranchCoverageTest.java1// Copyright 2025 The Bazel Authors. All rights reserved.COMMENT
LOW…gle/devtools/coverageoutputgenerator/CoverageTest.java1// Copyright 2016 The Bazel Authors. All rights reserved.COMMENT
LOW…e/devtools/coverageoutputgenerator/GcovParserTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…/devtools/coverageoutputgenerator/LcovPrinterTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…devtools/coverageoutputgenerator/LineCoverageTest.java1// Copyright 2025 The Bazel Authors. All rights reserved.COMMENT
LOW…tools/coverageoutputgenerator/LcovMergerTestUtils.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…e/devtools/coverageoutputgenerator/LcovParserTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…vtools/coverageoutputgenerator/GcovJsonParserTest.java1// Copyright 2025 The Bazel Authors. All rights reserved.COMMENT
LOW…tools/coverageoutputgenerator/LcovMergerFlagsTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…/google/devtools/coverageoutputgenerator/MainTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOW…ls/coverageoutputgenerator/SourceFileCoverageTest.java1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOWtools/test/windows/tw.h1// Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOWtools/osx/xcode_locator_stub.sh1#!/usr/bin/env bashCOMMENT
LOWtools/osx/xcode_locator.m1// Copyright 2015 Google Inc. All rights reserved.COMMENT
LOWtools/python/pywrapper_test.py1# pylint: disable=g-bad-file-headerCOMMENT
LOWtools/python/pywrapper_template.txt21COMMENT
LOWtools/python/runfiles/runfiles.py1# Copyright 2018 The Bazel Authors. All rights reserved.COMMENT
LOWtools/jdk/proguard_allowlister_test.py1# Copyright 2015 The Bazel Authors. All rights reserved.COMMENT
LOWtools/jdk/proguard_allowlister.py1# Copyright 2015 The Bazel Authors. All rights reserved.COMMENT
LOWtools/compliance/packages_used_test.py1# Copyright 2023 The Bazel Authors. All rights reserved.COMMENT
1180 more matches not shown…
Self-Referential Comments117 hits · 306 pts
SeverityFileLineSnippetContext
MEDIUMcompile.sh42# Create an initial binary so we can host ourselfCOMMENT
MEDIUMtools/upload_bazel_mirror.sh48# Create a temp directory to hold the versioned tarball,COMMENT
MEDIUMtools/test/test-setup.sh98# Create the test temp directory, which may not exist on the remote host whenCOMMENT
MEDIUMtools/test/collect_coverage.sh135 # Create a paramsfile for invoking SingleJar.COMMENT
MEDIUMtools/build_defs/hash/sha256_test.sh37# The following code produces a 120MB file (30*2^22 bytes)COMMENT
MEDIUMthird_party/py/mock/docs/conf.py6# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMthird_party/py/concurrent/futures/_base.py442 # The following methods should only be used by Executors and in tests.COMMENT
MEDIUMthird_party/py/abseil/absl/flags/argparse_flags.py15"""This module provides argparse integration with absl.flags.STRING
MEDIUMthird_party/py/abseil/absl/flags/_helpers.py39# Define the allowed error rate in an input string to get suggestions.COMMENT
MEDIUMthird_party/py/abseil/absl/flags/_helpers.py57# This module is explicitly added to this set so that we never consider it toCOMMENT
MEDIUMthird_party/py/abseil/absl/testing/xml_reporter.py54# This function is much more reliable.COMMENT
MEDIUMthird_party/py/abseil/absl/testing/parameterized.py334 # Create a new dict to avoid modifying the supplied testcase_params.COMMENT
MEDIUMthird_party/py/abseil/absl/testing/parameterized.py677# This function is kept CamelCase because it's used as a class's base class.COMMENT
MEDIUMthird_party/py/abseil/absl/logging/__init__.py837 # Create a symlink to the log file with a canonical name.COMMENT
MEDIUMthird_party/py/dataclasses/dataclasses/__init__.py286# This function is used instead of exposing Field creation directly,COMMENT
MEDIUMthird_party/py/dataclasses/dataclasses/__init__.py510 # Create a comparison function. If the fields in the object areCOMMENT
MEDIUMthird_party/py/dataclasses/dataclasses/__init__.py820 # Create a class doc-string.COMMENT
MEDIUMthird_party/py/dataclasses/dataclasses/__init__.py1051 # Create the new object, which calls __init__() andCOMMENT
MEDIUMthird_party/ijar/test/ijar_test.sh325# Create a huge (~2.2Gb) input jar to test "large file" correctnessCOMMENT
MEDIUMthird_party/ijar/test/ijar_test.sh334# Create an output jar with upper bound on size > 2GBCOMMENT
MEDIUMscripts/bootstrap/build_windows_jni.sh38# Create a temp directory. It will used for the batch file we generate soon andCOMMENT
MEDIUMscripts/bootstrap/compile.sh199# Create the deploy JARCOMMENT
MEDIUMscripts/bootstrap/compile.sh303 # Create the bazel_tools repository.COMMENT
MEDIUMscripts/bootstrap/compile.sh361 # Create the rest of @bazel_tools//tools/...COMMENT
MEDIUMscripts/bootstrap/buildenv.sh319# Create a link for a directory on the filesystemCOMMENT
MEDIUMscripts/ci/build.sh348# Create a debian package with version in package name and add it to the repoCOMMENT
MEDIUMscripts/release/relnotes.sh124# Create the release notes since commit $1 ($2...${[#]} are the cherry-picks,COMMENT
MEDIUMscripts/release/relnotes.sh196# Create the revision information given a list of commits. The firstCOMMENT
MEDIUMscripts/release/release.sh86# Create the release commit by changing the CHANGELOG fileCOMMENT
MEDIUMscripts/release/release.sh132# Create a new release named "$1" with "$2" as the baseline commit.COMMENT
MEDIUMscripts/packages/dmg/create_bazel_dmg.sh93# Create the dmg fileCOMMENT
MEDIUMsrc/create_java_tools_release.sh70# Create a tmp directory to download the artifacts from GCS and compute theirCOMMENT
MEDIUMsrc/upload_java_tools.sh79# Create a temp directory and a writable temp zip file to add a README.md file toCOMMENT
MEDIUMsrc/upload_java_tools.sh92# Create the README.md file and add the re-build java tools instructions.COMMENT
MEDIUMsrc/tools/singlejar/zip64_huge_entry_test.sh67 # Create a single 4GB fileCOMMENT
MEDIUMsrc/test/py/bazel/launcher_test.py771 # Create a directory with a path longer than 260COMMENT
MEDIUMsrc/test/py/bazel/runfiles_test.py201 # Create a copy of the runfiles manifest, replacingCOMMENT
MEDIUMsrc/test/py/bazel/bazel_external_repository_test.py519 # Create a repository rule for bar that symlinks to foo's file.COMMENT
MEDIUM…est/py/bazel/bzlmod/remote_repo_contents_cache_test.py1575 # Create a repo with two BUILD files (one in a subpackage), build a targetCOMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py102 # Create a project with deps on 'sss'COMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py148 # Create a project with deps on 'sss'COMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py183 # Create a project with deps on 'sss'COMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py216 # Create a project with deps on the BCR's 'platforms' moduleCOMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py251 # Create a project with deps on the BCR's 'platforms' moduleCOMMENT
MEDIUMsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py291 # Create a project with an outdated direct dep on aaaCOMMENT
MEDIUMsrc/test/py/bazel/bzlmod/repo_contents_cache_test.py649 # Create the external file outside the workspace so it's not treated asCOMMENT
MEDIUMsrc/test/py/bazel/bzlmod/mod_command_test.py1078 # Create a lockfile and let the extension evaluations emit fixup warnings.COMMENT
MEDIUMsrc/test/py/bazel/bzlmod/mod_command_test.py1420 # Create a lockfile and let the extension evaluations emit fixup warnings.COMMENT
MEDIUMsrc/test/shell/unittest.bash61# This file provides utilities for assertions over the output of aCOMMENT
MEDIUMsrc/test/shell/testenv.sh227 # Create a shorter bazel root on Windows to avoid long path issue.COMMENT
MEDIUMsrc/test/shell/integration/thread_dump_test.sh25 # Create a new workspace to ensure the output_base is cleanCOMMENT
MEDIUMsrc/test/shell/integration/exec_group_test.sh673# Define the toolchains.COMMENT
MEDIUMsrc/test/shell/integration/exec_group_test.sh703# Define the platforms.COMMENT
MEDIUMsrc/test/shell/integration/exec_group_test.sh752 # Define a simple rule to put the aspect on.COMMENT
MEDIUMsrc/test/shell/integration/exec_group_test.sh794# Define the toolchains.COMMENT
MEDIUMsrc/test/shell/integration/exec_group_test.sh837 # Define a simple rule to put the aspect on.COMMENT
MEDIUMsrc/test/shell/integration/platform_based_flags_test.sh77 # Create a transition on platform.COMMENT
MEDIUM…test/shell/integration/starlark_configurations_test.sh900 # Define the flags that are used.COMMENT
MEDIUMsrc/test/shell/integration/toolchain_test.sh176# Define the toolchain.COMMENT
MEDIUMsrc/test/shell/integration/toolchain_test.sh255# Define the toolchain.COMMENT
57 more matches not shown…
Hyper-Verbose Identifiers289 hits · 247 pts
SeverityFileLineSnippetContext
LOWtools/aquery_differ/aquery_differ.py117def _map_action_index_to_output_files(actions, artifacts):CODE
LOWtools/aquery_differ/aquery_differ.py137def _map_output_files_to_input_artifacts(action_graph_container,CODE
LOWtools/aquery_differ/aquery_differ.py172def _map_output_files_to_command_line(actions, action_index_to_output_files):CODE
LOWtools/aquery_differ/aquery_differ_test.py54def make_aquery_output_with_dep_set(action_objs, artifact_objs,CODE
LOWtools/aquery_differ/aquery_differ_test.py120 def test_no_difference_different_output_files_order(self):CODE
LOWtools/aquery_differ/aquery_differ_test.py189 def test_first_has_extra_output_files(self):CODE
LOWtools/aquery_differ/aquery_differ_test.py269 def test_different_command_lines(self):CODE
LOWtools/python/pywrapper_test.py152 def test_no_interpreter_found(self):STRING
LOWtools/python/pywrapper_test.py158 def test_error_getting_version(self):STRING
LOWtools/python/pywrapper_test.py166 def test_interpreter_not_executable(self):STRING
LOWtools/compliance/packages_used_test.py46 def test_found_remote_packages(self):CODE
LOWtools/compliance/write_sbom.py144def maven_install_to_packages(maven_install: dict) -> dict:CODE
LOWtools/android/instrumentation_test_check_test.py51 def test_extract_instrumentation_target_package(self):STRING
LOWtools/android/instrumentation_test_check_test.py56 def test_extract_target_package(self):STRING
LOWtools/android/instrumentation_test_check_test.py60 def test_target_package_check(self):STRING
LOWtools/android/instrumentation_test_check_test.py66 def test_target_package_check_failure(self):STRING
LOWtools/ctexplain/bazel_api.py130def _parse_cquery_result_line(line: str) -> ConfiguredTarget:CODE
LOWtools/ctexplain/ctexplain.py101def _render_analysis_help_text() -> str:CODE
LOWthird_party/py/mock/__init__.py808 def _format_mock_call_signature(self, args, kwargs):CODE
LOWthird_party/py/mock/__init__.py813 def _format_mock_failure_message(self, args, kwargs):CODE
LOWthird_party/py/mock/tests/testcallable.py89 def test_patch_spec_set_instance(self):CODE
LOWthird_party/py/mock/tests/testcallable.py98 def test_patch_spec_callable_class(self):CODE
LOWthird_party/py/mock/tests/testcallable.py151 def test_create_autospec_instance(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py22 def test_deleting_magic_methods(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py46 def test_magic_method_wrapping(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py60 def test_magic_methods_isolated_between_mocks(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py338 def test_non_default_magic_methods(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py348 def test_magic_methods_and_spec(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py373 def test_magic_methods_and_spec_set(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py398 def test_setting_unsupported_magic_method(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py408 def test_attributes_and_return_value(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py421 def test_magic_methods_are_magic_mocks(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py429 def test_magic_method_reset_mock(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py468 def test_descriptor_from_class(self):CODE
LOWthird_party/py/mock/tests/testmagicmethods.py474 def test_iterable_as_iter_return_value(self):CODE
LOWthird_party/py/mock/tests/testmock.py327 def test_attribute_access_returns_mocks(self):CODE
LOWthird_party/py/mock/tests/testmock.py343 def test_attributes_have_name_and_parent_set(self):CODE
LOWthird_party/py/mock/tests/testmock.py353 def test_method_calls_recorded(self):CODE
LOWthird_party/py/mock/tests/testmock.py471 def test_exceptional_side_effect(self):CODE
LOWthird_party/py/mock/tests/testmock.py479 def test_baseexceptional_side_effect(self):CODE
LOWthird_party/py/mock/tests/testmock.py487 def test_assert_called_with_message(self):CODE
LOWthird_party/py/mock/tests/testmock.py93 def test_return_value_in_constructor(self):CODE
LOWthird_party/py/mock/tests/testmock.py175 def test_java_exception_side_effect(self):CODE
LOWthird_party/py/mock/tests/testmock.py230 def test_reset_mock_recursion(self):CODE
LOWthird_party/py/mock/tests/testmock.py272 def test_call_args_comparison(self):CODE
LOWthird_party/py/mock/tests/testmock.py303 def test_assert_called_once_with(self):CODE
LOWthird_party/py/mock/tests/testmock.py368 def test_method_calls_compare_easily(self):CODE
LOWthird_party/py/mock/tests/testmock.py392 def test_only_allowed_methods_exist(self):CODE
LOWthird_party/py/mock/tests/testmock.py445 def test_wraps_call_with_nondefault_return_value(self):CODE
LOWthird_party/py/mock/tests/testmock.py531 def test_setting_attribute_with_spec_set(self):CODE
LOWthird_party/py/mock/tests/testmock.py557 def test_spec_old_style_classes(self):CODE
LOWthird_party/py/mock/tests/testmock.py571 def test_spec_set_old_style_classes(self):CODE
LOWthird_party/py/mock/tests/testmock.py592 def test_subclass_with_properties(self):CODE
LOWthird_party/py/mock/tests/testmock.py714 def test_assert_called_with_failure_message(self):CODE
LOWthird_party/py/mock/tests/testmock.py916 def test_side_effect_iterator(self):CODE
LOWthird_party/py/mock/tests/testmock.py940 def test_side_effect_setting_iterator(self):CODE
LOWthird_party/py/mock/tests/testmock.py962 def test_side_effect_iterator_exceptions(self):CODE
LOWthird_party/py/mock/tests/testmock.py972 def test_assert_has_calls_any_order(self):CODE
LOWthird_party/py/mock/tests/testmock.py1082 def test_mock_calls_create_autospec(self):CODE
LOWthird_party/py/mock/tests/testmock.py1154 def test_mock_add_spec_magic_methods(self):CODE
229 more matches not shown…
Docstring Block Structure41 hits · 205 pts
SeverityFileLineSnippetContext
HIGHtools/build_defs/proguard/wrapper.py31Lookup the runfiles-adjusted path to a binary. Args: r: The Runfiles object to use for the lookup. path: The STRING
HIGHtools/ctexplain/bazel_api.py95Calls "bazel config" with the given config hash. Args: config_hash: A config hash as reported by "bazel cquerSTRING
HIGHtools/ctexplain/bazel_api.py168Strips a fully qualified Java class name to the file scope. Examples: - "A.B.OuterClass" -> "OuterClass" - "ASTRING
HIGHtools/ctexplain/lib.py23Gets a build invocation's configured targets. Args: bazel: API for invoking Bazel. labels: The targets to buiSTRING
HIGHthird_party/py/concurrent/futures/_base.py180An iterator over the given futures that yields each as it completes. Args: fs: The sequence of Futures (posSTRING
HIGHthird_party/py/concurrent/futures/_base.py379Return the result of the call that the future represents. Args: timeout: The number of seconds to wSTRING
HIGHthird_party/py/concurrent/futures/_base.py410Return the exception raised by the call that the future represents. Args: timeout: The number of seSTRING
HIGHthird_party/py/concurrent/futures/_base.py524Returns a iterator equivalent to map(fn, iter). Args: fn: A callable that will take take as many arSTRING
HIGHthird_party/py/abseil/absl/app.py189Registers help flags, parses arguments and shows usage if appropriate. This also calls sys.exit(0) if flag --only_cheSTRING
HIGHthird_party/py/abseil/absl/flags/_validators.py84A function decorator for defining a flag validator. Registers the decorated function as a validator for flag_name, e.STRING
HIGHthird_party/py/abseil/absl/flags/_validators.py160A function decorator for defining a multi-flag validator. Registers the decorated function as a validator for flag_naSTRING
HIGHthird_party/py/abseil/absl/flags/_flagvalues.py356Returns value if setting flag |name| to |value| returned True. Args: name: str, name of the flag to set. STRING
HIGHthird_party/py/abseil/absl/flags/_flagvalues.py614Parses flags from argv; stores parsed flags into this FlagValues object. All unparsed arguments are returned. STRING
HIGHthird_party/py/abseil/absl/flags/_flagvalues.py682Helper function to do the main argument parsing. This function goes through args and does the bulk of the flag parsSTRING
HIGHthird_party/py/abseil/absl/flags/_flagvalues.py1019Returns filename from a flagfile_str of form -[-]flagfile=filename. The cases of --flagfile foo and -flagfile foo sSTRING
HIGHthird_party/py/abseil/absl/flags/_flagvalues.py1109Processes command line args, but also allow args to be read from file. Args: argv: [str], a list of strings, STRING
HIGHthird_party/py/abseil/absl/flags/_defines.py874Defines an alias flag for an existing one. Args: name: str, the flag name. original_name: str, the original fSTRING
HIGHthird_party/py/abseil/absl/flags/_helpers.py230Wraps a given text to a maximum line length and returns it. It turns lines that only contain whitespace into empty liSTRING
HIGHthird_party/py/abseil/absl/flags/_argument_parser.py112Parses the string argument and returns the native value. By default it returns its argument unmodified. Args: STRING
HIGHthird_party/py/abseil/absl/flags/_argument_parser.py338Determines validity of argument and returns the correct element of enum. Args: argument: str, the supplied flSTRING
HIGHthird_party/py/abseil/absl/flags/_argument_parser.py418Determines validity of argument and returns the correct element of enum. Args: argument: str or Enum class meSTRING
HIGHthird_party/py/abseil/absl/testing/absltest.py487Return a context manager for opening the file in text mode. Args: mode: The mode to open the file in. The "t"STRING
HIGHthird_party/py/abseil/absl/testing/absltest.py511Return a context manager for opening the file in binary mode. Args: mode: The mode to open the file in. The "STRING
HIGHthird_party/py/abseil/absl/testing/absltest.py1360Asserts that exception is thrown and predicate(exception) is true. Args: expected_exception: Exception class STRING
HIGHthird_party/py/abseil/absl/testing/absltest.py1405Asserts that the message in a raised exception equals the given string. Unlike assertRaisesRegex, this method takesSTRING
HIGHthird_party/py/abseil/absl/testing/parameterized.py405Implementation of the parameterization decorators. Args: naming_type: The naming type. testcases: Testcase paSTRING
HIGHthird_party/py/abseil/absl/testing/parameterized.py446A decorator for creating parameterized tests. See the module docstring for a usage example. Args: *testcases: STRING
HIGHthird_party/py/abseil/absl/testing/parameterized.py465A decorator for creating parameterized tests. See the module docstring for a usage example. For every parameter tupleSTRING
HIGHthird_party/py/abseil/absl/testing/parameterized.py487A decorator for running tests over cartesian product of parameters values. See the module docstring for a usage exampSTRING
HIGHthird_party/py/abseil/absl/logging/converter.py116Converts an absl log level to a cpp log level. Args: level: int, an absl.logging level. Raises: TypeError:STRING
HIGHthird_party/py/abseil/absl/logging/converter.py137Converts an integer level from the absl value to the standard value. Args: level: int, an absl.logging level. STRING
HIGHthird_party/py/abseil/absl/logging/converter.py172Converts an integer level from the standard value to the absl value. Args: level: int, a Python standard logging STRING
HIGHthird_party/py/abseil/absl/logging/converter.py203Converts an integer level from the standard value to the cpp value. Args: level: int, a Python standard logging lSTRING
HIGHthird_party/py/abseil/absl/logging/__init__.py648Computes the directory and filename prefix for log file. Args: program_name: str|None, the filename part of the pSTRING
HIGHthird_party/py/abseil/absl/logging/__init__.py761Skips reporting the prefix of a given function or name by :class:`~absl.logging.ABSLLogger`. This is a convenience wrSTRING
HIGHsrc/test/py/bazel/test_base.py133Extracts the version of a module from the default MODULE.bazel.lock file. Args: module: string; the name of tSTRING
HIGHsrc/test/py/bazel/test_base.py248Returns environment variable `name`. Args: name: string; name of the environment variable default: anytSTRING
HIGHsrc/test/py/bazel/test_base.py302Returns the absolute path of `path` relative to self._test_cwd. Args: path: string; a path, relative to self.STRING
HIGHsrc/test/py/bazel/test_base.py323Creates directories under the test's scratch directory. Args: path: string; a path, relative to the test's scSTRING
HIGHsrc/test/py/bazel/test_base.py345Creates a file under the test's scratch directory. Args: path: string; a path, relative to the test's scratchSTRING
HIGHsrc/test/py/bazel/test_base.py378Copy a file to a path under the test's scratch directory. Args: src_path: string; a path, the file to copy STRING
Hallucination Indicators9 hits · 115 pts
SeverityFileLineSnippetContext
CRITICAL…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md56 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICAL…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md102 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40:42 CODE
CRITICAL…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md109 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICAL…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md119 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICAL…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md127 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICAL…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md137 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICAL…/proguard/proguard6.2.2/docs/manual/retrace/mapping.md146 3040:3042:java.io.PrintWriter com.example.application.util.PrintWriterUtil.createPrintWriterOut(java.io.File):40CODE
CRITICALsrc/test/shell/bazel/remote/remote_execution_test.sh1003 myrunfiles = ctx.runfiles(files=ctx.attr.dir.default_runfiles.files.to_list())STRING
CRITICAL…t/runner/testdata/system_exit_detecting_test_stack.txt5 at com.google.testing.junit.runner.ProgramThatCallsSystemExit.main(ProgramThatCallsSystemExit.java:XXX)CODE
Decorative Section Separators26 hits · 80 pts
SeverityFileLineSnippetContext
MEDIUMtools/test/collect_coverage.sh93# --------------------------------------COMMENT
MEDIUMthird_party/py/mock/docs/conf.py24# ---------------------COMMENT
MEDIUMthird_party/py/mock/docs/conf.py111# -----------------------STRING
MEDIUMthird_party/py/mock/docs/conf.py179# ------------------------STRING
MEDIUMsite/en/external/migration_tool.md156# -------------------COMMENT
MEDIUMsite/en/external/migration_tool.md165# -------------------COMMENT
MEDIUMsite/en/external/migration_tool.md174# -------------------COMMENT
MEDIUMsite/en/external/migration_tool.md181# -------------------COMMENT
MEDIUMsite/en/external/migration_tool.md217# -------------------COMMENT
MEDIUMsrc/test/shell/unittest.bash23# ------------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/unittest.bash43# ------------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/integration/jvm_flags_escaping_test.sh47# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/integration/jvm_flags_escaping_test.sh49# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/integration/jvm_flags_escaping_test.sh236# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/integration/jvm_flags_escaping_test.sh238# ----------------------------------------------------------------------COMMENT
MEDIUM…/shell/integration/starlark_dependency_pruning_test.sh175# ----------------------------------------------------------------------COMMENT
MEDIUM…/shell/integration/starlark_dependency_pruning_test.sh177# ----------------------------------------------------------------------COMMENT
MEDIUM…/shell/integration/starlark_dependency_pruning_test.sh200# ----------------------------------------------------------------------COMMENT
MEDIUM…/shell/integration/starlark_dependency_pruning_test.sh202# ----------------------------------------------------------------------COMMENT
MEDIUM…test/shell/integration/config_stripped_outputs_test.sh22# -------------------COMMENT
MEDIUMsrc/test/shell/bazel/run_test.sh43# ------------------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/run_test.sh45# ------------------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/py_args_escaping_test.sh43# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/py_args_escaping_test.sh45# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/py_args_escaping_test.sh201# ----------------------------------------------------------------------COMMENT
MEDIUMsrc/test/shell/bazel/py_args_escaping_test.sh203# ----------------------------------------------------------------------COMMENT
Unused Imports67 hits · 60 pts
SeverityFileLineSnippetContext
LOWtools/python/pywrapper_test.py16CODE
LOWtools/build_defs/hash/sha256.py18CODE
LOWtools/build_defs/hash/sha256.py19CODE
LOWtools/build_defs/hash/sha256.py20CODE
LOWthird_party/py/frozendict/frozendict/__init__.py2CODE
LOWthird_party/py/frozendict/frozendict/__init__.py3CODE
LOWthird_party/py/frozendict/frozendict/__init__.py4CODE
LOWthird_party/py/mock/tests/support.py6CODE
LOWthird_party/py/mock/tests/support.py8CODE
LOWthird_party/py/mock/tests/testmagicmethods.py14CODE
LOWthird_party/py/mock/tests/support_with.py1CODE
LOWthird_party/py/mock/tests/support_with.py9CODE
LOWthird_party/py/mock/tests/testwith.py4CODE
LOWthird_party/py/mock/tests/_testwith.py5CODE
LOWthird_party/py/concurrent/futures/_base.py4CODE
LOWthird_party/py/concurrent/futures/_base.py5CODE
LOWthird_party/py/concurrent/futures/thread.py6CODE
LOWthird_party/py/concurrent/futures/__init__.py8CODE
LOWthird_party/py/concurrent/futures/__init__.py8CODE
LOWthird_party/py/concurrent/futures/__init__.py8CODE
LOWthird_party/py/concurrent/futures/__init__.py8CODE
LOWthird_party/py/concurrent/futures/__init__.py8CODE
LOWthird_party/py/concurrent/futures/__init__.py8CODE
LOWthird_party/py/concurrent/futures/__init__.py8CODE
LOWthird_party/py/concurrent/futures/__init__.py8CODE
LOWthird_party/py/concurrent/futures/__init__.py8CODE
LOWthird_party/py/concurrent/futures/__init__.py17CODE
LOWthird_party/py/concurrent/futures/__init__.py18CODE
LOWthird_party/py/concurrent/futures/process.py46CODE
LOWthird_party/py/abseil/absl/app.py30CODE
LOWthird_party/py/abseil/absl/flags/__init__.py28CODE
LOWthird_party/py/abseil/absl/flags/__init__.py29CODE
LOWthird_party/py/abseil/absl/flags/__init__.py30CODE
LOWthird_party/py/abseil/absl/flags/__init__.py32CODE
LOWthird_party/py/abseil/absl/flags/__init__.py33CODE
LOWthird_party/py/abseil/absl/flags/_defines.py32CODE
LOWthird_party/py/abseil/absl/flags/_defines.py32CODE
LOWthird_party/py/abseil/absl/flags/_defines.py32CODE
LOWthird_party/py/abseil/absl/flags/_defines.py37CODE
LOWthird_party/py/abseil/absl/testing/absltest.py26CODE
LOWthird_party/py/abseil/absl/testing/absltest.py43CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/testing/absltest.py67CODE
LOWthird_party/py/abseil/absl/logging/__init__.py93CODE
LOWthird_party/py/abseil/absl/logging/__init__.py100CODE
LOWscripts/generate_fish_completion.py16CODE
LOWscripts/generate_fish_completion.py17CODE
LOWscripts/generate_fish_completion.py18CODE
LOWscripts/docs/rewriter_test.py15CODE
7 more matches not shown…
Deep Nesting53 hits · 50 pts
SeverityFileLineSnippetContext
LOWcombine_distfiles.py28CODE
LOWtools/aquery_differ/aquery_differ.py263CODE
LOWtools/build_defs/pkg/archive_test.py27CODE
LOWtools/build_defs/pkg/build_tar.py56CODE
LOWthird_party/py/mock/__init__.py754CODE
LOWthird_party/py/mock/__init__.py1176CODE
LOWthird_party/py/mock/__init__.py1247CODE
LOWthird_party/py/mock/__init__.py1988CODE
LOWthird_party/py/mock/__init__.py2028CODE
LOWthird_party/py/mock/__init__.py1182CODE
LOWthird_party/py/mock/tests/testmock.py1016CODE
LOWthird_party/py/mock/tests/testmock.py1101CODE
LOWthird_party/py/mock/tests/support_with.py13CODE
LOWthird_party/py/concurrent/futures/_base.py158CODE
LOWthird_party/py/concurrent/futures/_base.py179CODE
LOWthird_party/py/concurrent/futures/_base.py237CODE
LOWthird_party/py/concurrent/futures/thread.py79CODE
LOWthird_party/py/concurrent/futures/process.py192CODE
LOWthird_party/py/abseil/absl/flags/_flagvalues.py516CODE
LOWthird_party/py/abseil/absl/flags/_flagvalues.py681CODE
LOWthird_party/py/abseil/absl/flags/_flagvalues.py1003CODE
LOWthird_party/py/abseil/absl/flags/_flagvalues.py1041CODE
LOWthird_party/py/abseil/absl/flags/_flagvalues.py1108CODE
LOWthird_party/py/abseil/absl/flags/_helpers.py201CODE
LOWthird_party/py/abseil/absl/flags/_helpers.py286CODE
LOWthird_party/py/abseil/absl/flags/_helpers.py205CODE
LOWthird_party/py/abseil/absl/flags/_argument_parser.py206CODE
LOWthird_party/py/abseil/absl/flags/_argument_parser.py247CODE
LOWthird_party/py/abseil/absl/flags/_argument_parser.py268CODE
LOWthird_party/py/abseil/absl/testing/_bazelize_command.py24CODE
LOWthird_party/py/abseil/absl/testing/absltest.py1823CODE
LOWthird_party/py/abseil/absl/testing/absltest.py1896CODE
LOWthird_party/py/abseil/absl/testing/absltest.py2431CODE
LOWthird_party/py/abseil/absl/testing/parameterized.py310CODE
LOWthird_party/py/abseil/absl/testing/parameterized.py314CODE
LOWthird_party/py/abseil/absl/logging/converter.py171CODE
LOWthird_party/py/dataclasses/dataclasses/__init__.py355CODE
LOWthird_party/py/dataclasses/dataclasses/__init__.py427CODE
LOWthird_party/py/dataclasses/dataclasses/__init__.py965CODE
LOWscripts/docs/create_release_docs.py133CODE
LOWscripts/packages/debian/generate_changelog.py22CODE
LOWsrc/create_embedded_tools.py124CODE
LOWsrc/create_embedded_tools_lib.py34CODE
LOWsrc/test/py/bazel/first_time_use_test.py31CODE
LOWsrc/test/py/bazel/test_wrapper_test.py265CODE
LOWsrc/test/py/bazel/test_wrapper_test.py306CODE
LOWsrc/test/py/bazel/test_wrapper_test.py354CODE
LOWsrc/test/py/bazel/test_wrapper_test.py606CODE
LOWsrc/test/py/bazel/test_base.py32CODE
LOWsrc/test/py/bazel/bzlmod/repo_contents_cache_test.py44CODE
LOWsrc/test/py/bazel/bzlmod/mod_command_test.py747CODE
LOWsrc/test/shell/bazel/testing_server.py134CODE
LOWsrc/test/shell/bazel/remote/uds_proxy.py41CODE
Structural Annotation Overuse28 hits · 42 pts
SeverityFileLineSnippetContext
LOWsite/en/install/compile-source.md52### Step 1: Get the latest Bazel release {:#build-bazel-install-bazel}COMMENT
LOWsite/en/install/compile-source.md81### Step 2: Download Bazel's sources from GitHub {:#build-bazel-git}COMMENT
LOWsite/en/install/compile-source.md95### Step 3: Install prerequisites {:#build-bazel-prerequisites}COMMENT
LOWsite/en/install/compile-source.md159### Step 5: Install the built binary {:#build-bazel-install}COMMENT
LOWsite/en/install/compile-source.md173### Step 1: Download Bazel's sources (distribution archive) {:#download-distfile}COMMENT
LOWsite/en/install/ubuntu.md40### Step 1: Add Bazel distribution URI as a package source {:#add-dis-uri}COMMENT
LOWsite/en/install/ubuntu.md58### Step 2: Install and update Bazel {:#install-bazel}COMMENT
LOWsite/en/install/ubuntu.md91### Step 3: Install a JDK (optional) {:#install-jdk}COMMENT
LOWsite/en/install/ubuntu.md113### Step 1: Install required packages {:#install-packages}COMMENT
LOWsite/en/install/ubuntu.md127### Step 2: Run the installer {:#run-installer}COMMENT
LOWsite/en/install/ubuntu.md144### Step 3: Set up your environment {:#set-environment}COMMENT
LOWsite/en/install/os-x.md24### Step 1: Install Homebrew on macOSCOMMENT
LOWsite/en/install/os-x.md32### Step 2: Install Bazel via HomebrewCOMMENT
LOWsite/en/install/os-x.md62### Step 1: Install Xcode command line toolsCOMMENT
LOWsite/en/install/os-x.md85### Step 2: Download the Bazel installerCOMMENT
LOWsite/en/install/os-x.md104### Step 3: Run the installerCOMMENT
LOWsite/en/install/os-x.md122### Step 4: Set up your environmentCOMMENT
LOWsite/en/migrate/xcode.md75### Step 1: Create the `MODULE.bazel` file {:#create-workspace}COMMENT
LOWsite/en/migrate/xcode.md98### Step 3: Create a `BUILD` file {:#create-build-file}COMMENT
LOWsite/en/migrate/xcode.md238### Step 5: Run the build {:#run-build}COMMENT
LOWsite/en/migrate/xcode.md250### Step 6: Generate the Xcode project with rules_xcodeproj {:#generate-the-xcode-project-with-rules_xcodeproj}COMMENT
LOWsite/en/remote/sandbox.md103### Step 1: Run the build {:#run-build}COMMENT
LOWsite/en/remote/sandbox.md127### Step 2: Resolve detected issues {:#resolve-common-issues}COMMENT
LOWsite/en/remote/sandbox.md169### Step 1: Build the container {:#build-container}COMMENT
LOWsite/en/remote/sandbox.md199### Step 2: Start the container {:#start-container}COMMENT
LOWsite/en/remote/sandbox.md224### Step 3: Test the container {:#test-container}COMMENT
LOWsite/en/remote/sandbox.md234### Step 4: Run the build {:#run-build-step}COMMENT
LOWsite/en/remote/sandbox.md246### Step 5: Resolve detected issues {:#resolve-build-failures}COMMENT
AI Slop Vocabulary16 hits · 32 pts
SeverityFileLineSnippetContext
LOWtools/test/test-setup.sh124 # If the file path is already fully specified, simply return it.COMMENT
LOWtools/test/test-setup.sh127 # If the file exists in the $TEST_SRCDIR then just use it.COMMENT
LOWthird_party/py/mock/tests/testmock.py772 # need to do this because MagicMock.mock_calls used to just returnCOMMENT
LOWthird_party/py/abseil/absl/flags/_helpers.py165 # Returning an int as default is fine, int(int) just return the int.COMMENT
LOWthird_party/py/abseil/absl/logging/__init__.py218 # just return a copy.COMMENT
LOWthird_party/py/dataclasses/dataclasses/__init__.py346 # via object.__setattr__. Otherwise, just use a simpleCOMMENT
LOW…est/py/bazel/bzlmod/remote_repo_contents_cache_test.py155 # Deleting the cache fails on Windows, so we just use a different directory.COMMENT
MEDIUMsrc/test/shell/unittest.bash95 # be absolute to be robust againstCOMMENT
LOWsrc/test/shell/unittest.bash248# the stack because they just add noise.) Also prints the contents ofCOMMENT
LOWsrc/test/shell/unittest.bash276# the stack because they just add noise.)COMMENT
MEDIUM…est/shell/integration/param_file_flag_per_line_test.sh17# Tests Starlark API pertaining to action inspection via aspect.COMMENT
MEDIUMsrc/test/shell/integration/action_aspect_test.sh17# Tests Starlark API pertaining to action inspection via aspect.COMMENT
MEDIUMsrc/test/shell/bazel/coverage_helpers.sh67 # Replace newlines with commas to facilitate the assertion.COMMENT
MEDIUMsrc/test/shell/bazel/execution_phase_tests.sh109 # We cannot make any robust assertions on the first run because of implicitCOMMENT
LOWsrc/test/shell/bazel/bazel_test_test.sh415 # We don't just use the local PATH, but use the test's PATH, which is more restrictive.COMMENT
LOWsrc/test/shell/bazel/jdeps_test.sh71 # If jdeps fails with a NPE, just add the class file to the list inCOMMENT
Redundant / Tautological Comments20 hits · 30 pts
SeverityFileLineSnippetContext
LOWtools/test/test-setup.sh70# Set USER to the current user, unless passed by Bazel via --test_env.COMMENT
LOW…party/py/abseil/absl/testing/_pretty_print_reporter.py71 # Set this to true at the class or instance level to run tests using aCOMMENT
LOWthird_party/py/abseil/absl/testing/xml_reporter.py151 # Check if it's something like "setUpClass (__main__.TestCase)".COMMENT
LOWthird_party/py/abseil/absl/testing/parameterized.py586 # Check if the base has _test_params_reprs first, then check if it's aCOMMENT
LOWthird_party/py/dataclasses/dataclasses/__init__.py568 # Check if this is an InitVar.COMMENT
LOWscripts/bash_completion_test.sh39# Set this to test completion with package path (if enabled)COMMENT
LOWscripts/bootstrap/build_windows_jni.sh48 # Check if BAZEL_VC points to Visual C++ Build Tools 2019COMMENT
LOWscripts/bootstrap/build_windows_jni.sh65# Check if Visual Studio 2019 is installed. Look for it at the defaultCOMMENT
LOWscripts/bootstrap/buildenv.sh21# Check if all necessary tools are available.COMMENT
LOWsrc/test/py/bazel/bazel_windows_test.py247 # Set BAZEL_VC to a non-existing path,COMMENT
LOWsrc/test/py/bazel/bazel_windows_test.py304 # Set BAZEL_VC to a non-existing path,COMMENT
LOWsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py979 # Set version to oldCOMMENT
LOWsrc/test/shell/shell_utils.sh47# Print the result to stdout.COMMENT
LOWsrc/test/shell/unittest.bash170# Check if the script path is absolute, if not prefix the PWD.COMMENT
LOWsrc/test/shell/unittest_utils.sh30# Print message in "$1" then exit with status "$2"COMMENT
LOWsrc/test/shell/unittest_utils.sh67# Print message in "$1" then record that a non-fatal error occurred inCOMMENT
LOWsrc/test/shell/integration/java_integration_test.sh293 # Set javabase to an absolute path.COMMENT
LOWsrc/test/shell/integration/build_event_stream_test.sh1558 # Check if null builds still have build metricsCOMMENT
LOWsrc/test/shell/bazel/cc_integration_test.sh2211 # Check if clang version is less than 17COMMENT
LOWsrc/test/shell/bazel/bazel_cc_code_coverage_test.sh31# Check if all the tools required by CC coverage are installed.COMMENT
Cross-Language Confusion6 hits · 25 pts
SeverityFileLineSnippetContext
HIGHtools/ctexplain/bazel_api.py138 "<label> (null)"STRING
HIGHscripts/generate_fish_completion.py178 params.append("({} query -k '{}' 2>/dev/null)".format(_BAZEL, query))CODE
HIGHsrc/test/py/bazel/bzlmod/bazel_repo_mapping_test.py234source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \STRING
HIGHsrc/test/py/bazel/bzlmod/bazel_repo_mapping_test.py235 source "$(grep -sm1 "^$f " "${RUNFILES_MANIFEST_FILE:-/dev/null}" | cut -f2- -d' ')" 2>/dev/null || \STRING
HIGHsrc/test/py/bazel/bzlmod/bazel_lockfile_test.py656 # resolution doesn't rerun (its event is null), the lockfile is stillCOMMENT
HIGHsrc/test/shell/unittest_test.py35if [[ -f "${RUNFILES_DIR:-/dev/null}/bazel_tools/tools/bash/runfiles/runfiles.bash" ]]; thenCODE
Excessive Try-Catch Wrapping12 hits · 21 pts
SeverityFileLineSnippetContext
LOWthird_party/py/mock/tests/_testwith.py31 except Exception:CODE
MEDIUMthird_party/py/mock/tests/_testwith.py26def test_with_statement_exception(self):CODE
LOWthird_party/py/concurrent/futures/_base.py301 except Exception:CODE
LOWthird_party/py/abseil/absl/app.py328 except Exception as e:CODE
LOWthird_party/py/abseil/absl/app.py376 except Exception: # pylint: disable=broad-exceptCODE
LOWthird_party/py/abseil/absl/testing/absltest.py2079 except Exception as e: # pylint: disable=broad-exceptCODE
LOWscripts/release/relnotes.py197 except Exception: # pylint: disable=broad-exception-caughtCODE
MEDIUMscripts/release/relnotes.py198 print("Error: Not a release branch.")CODE
MEDIUM.github/scripts/check_ssl.py49 print(f"Error: Config file not found at {self.config_path}")CODE
MEDIUM.github/scripts/check_ssl.py57 print(f"Error parsing YAML config: {exc}")CODE
MEDIUM.github/scripts/check_ssl.py132 print("Error: No domains found in config.")CODE
MEDIUM…n/java/com/google/devtools/common/options/Options.java37 * System.err.print("Error parsing options: " + e.getMessage());COMMENT
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHexamples/py_native/lib.py0a tiny example binary for the native python rules of bazel.STRING
HIGHexamples/py_native/bin.py0a tiny example binary for the native python rules of bazel.STRING
HIGHexamples/py_native/test.py0a tiny example binary for the native python rules of bazel.STRING
HIGHexamples/py_native/fail.py0a tiny example binary for the native python rules of bazel.STRING
Slop Phrases7 hits · 10 pts
SeverityFileLineSnippetContext
LOWtools/test/generate-xml.sh35 # make sure to append a whitespace in step #1.COMMENT
MEDIUMthird_party/py/abseil/absl/flags/argparse_flags.py21Here is a simple example::STRING
MEDIUMscripts/ci/ci.sh35# you can replace origin/master in the COMMIT_RANGE variable initializationCOMMENT
LOW.github/ISSUE_TEMPLATE/feature_request.yml26 description: Help us triage this issue faster and more accurately to the relevant team(s). Check the [team labels CODE
LOW.github/ISSUE_TEMPLATE/bug_report.yml26 description: Help us triage this issue faster and more accurately to the relevant team(s). Check the [team labels CODE
LOW…main/java/net/starlark/java/eval/MethodDescriptor.java474 @CheckReturnValue // don't forget to throw itCODE
LOWsrc/main/java/net/starlark/java/eval/Starlark.java934 @CheckReturnValue // don't forget to throw itCODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHthird_party/py/abseil/absl/testing/absltest.py2441 # Set up --failfast as requested in environmentCOMMENT
Example Usage Blocks4 hits · 7 pts
SeverityFileLineSnippetContext
LOWthird_party/py/mock/tests/testmock.py334 # Usage exampleCOMMENT
LOWscripts/bootstrap/buildenv.sh353# Usage:COMMENT
LOWsrc/test/shell/unittest_utils.sh143# Usage:COMMENT
LOWsrc/test/shell/unittest_utils.sh174# Usage:COMMENT
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippetContext
LOWscripts/docs/testdata/input/markdown_with_html.md6Lorem ipsum [short link](/foo/bar). Or rather a [long link](https://bazel.build/foo/bar)?CODE
LOW…ts/docs/testdata/expected_output/markdown_with_html.md8Lorem ipsum [short link](/versions/6.6.6/foo/bar). Or rather a [long link](https://bazel.build/versions/6.6.6/foo/bar)?CODE
LOWsrc/test/py/bazel/test_wrapper_test.py55 ' "@echo lorem ipsum",',CODE
LOWsrc/test/py/bazel/test_wrapper_test.py277 if line.startswith('lorem ipsum'):CODE
LOWsrc/test/shell/bazel/bazel_workspace_status_test.sh55echo BUILD_USER fake_userCODE
LOWsrc/test/shell/bazel/bazel_workspace_status_test.sh76 expect_log "BUILD_USER fake_user"CODE
AI Structural Patterns5 hits · 5 pts
SeverityFileLineSnippetContext
LOWtools/build_defs/pkg/archive.py143CODE
LOWthird_party/py/mock/__init__.py477CODE
LOWthird_party/py/mock/__init__.py933CODE
LOWthird_party/py/dataclasses/dataclasses/__init__.py965CODE
LOWsrc/test/py/bazel/bzlmod/test_utils.py322CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…ty/java/proguard/proguard6.2.2/docs/manual/examples.md929### Processing dependency injection {: #injection}COMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWthird_party/py/mock/tests/support_with.py5__all__ = ['nested', 'catch_warnings', 'examine_warnings']CODE
LOWthird_party/py/dataclasses/dataclasses/__init__.py6__all__ = ['dataclass',CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWthird_party/py/mock/tests/testhelpers.py684 def test_function(self):CODE
LOWthird_party/py/abseil/absl/testing/absltest.py2158 def main_function(argv):CODE