Repository Analysis

google/angle

A conformant OpenGL ES implementation for Windows, Mac, Linux, iOS and Android.

3.2 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of google/angle, a C++ project with 4,043 GitHub stars. SynthScan v2.0 examined 1,547,214 lines of code across 3148 source files, recording 4634 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 3.2 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).

3.2
Adjusted Score
3.2
Raw Score
100%
Time Factor
2026-07-14
Last Push
4.0K
Stars
C++
Language
1.5M
Lines of Code
3.1K
Files
4.6K
Pattern Hits
2026-07-14
Scan Date
0.01
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 0HIGH 36MEDIUM 210LOW 4388

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 4634 distinct pattern matches across 20 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 Block3866 hits · 3598 pts
SeverityFileLineSnippetContext
LOW.rustfmt.toml1# This file defines the Rust style for automatic reformatting.COMMENT
LOWinfra/specs/generate_test_spec_json.py41 # "Use-Permissive-Angle-Pixel-Comparison: True" is present as aCOMMENT
LOWtools/flex-bison/update_flex_bison_binaries.py1#!/usr/bin/python3COMMENT
LOWtools/flex-bison/third_party/skeletons/glr.c1# -*- C -*-COMMENT
LOWtools/flex-bison/third_party/skeletons/glr.c181COMMENT
LOWtools/flex-bison/third_party/skeletons/glr.c261#include <stdlib.h>COMMENT
LOWtools/flex-bison/third_party/skeletons/glr.c281#endifCOMMENT
LOWtools/flex-bison/third_party/skeletons/glr.c421COMMENT
LOWtools/flex-bison/third_party/skeletons/glr.c2741#endifCOMMENT
LOWtools/flex-bison/third_party/skeletons/yacc.c1# -*- C -*-COMMENT
LOWtools/flex-bison/third_party/skeletons/yacc.c141# See README.COMMENT
LOWtools/flex-bison/third_party/skeletons/yacc.c161m4_define([b4_lhs_location],COMMENT
LOWtools/flex-bison/third_party/skeletons/yacc.c441]b4_identification[COMMENT
LOWtools/flex-bison/third_party/skeletons/yacc.c481/* Stored state numbers (used for stacks). */COMMENT
LOWtools/flex-bison/third_party/skeletons/yacc.c521# if YYSTACK_USE_ALLOCACOMMENT
LOWtools/flex-bison/third_party/skeletons/yacc.c541# endifCOMMENT
LOWtools/flex-bison/third_party/skeletons/yacc.c561 && ! ((defined YYMALLOC || defined malloc) \COMMENT
LOWtools/flex-bison/third_party/skeletons/lalr1.java1#Java skeleton for Bison - *-java - *-COMMENT
LOWtools/variations/fieldtrial_util.py1#!/usr/bin/env pythonCOMMENT
LOWtools/glslang/update_glslang_binary.py1#!/usr/bin/python3COMMENT
LOWtools/ubsan/vptr_ignorelist.txt1#############################################################################COMMENT
LOWutil/geometry_utils.h1//COMMENT
LOWutil/random_utils.cpp1//COMMENT
LOWutil/test_utils.h1//COMMENT
LOWutil/OSWindow.cpp1//COMMENT
LOWutil/shader_utils.h1//COMMENT
LOWutil/OSWindow.h1//COMMENT
LOWutil/Matrix.h1//COMMENT
LOWutil/EGLPlatformParameters.h1//COMMENT
LOWutil/test_utils_unittest.cpp1//COMMENT
LOWutil/test_utils_unittest.cpp61 timer.start();COMMENT
LOWutil/random_utils.h1//COMMENT
LOWutil/geometry_utils.cpp1//COMMENT
LOWutil/util_export.h1//COMMENT
LOWutil/util_export.h21# elif defined(__GNUC__)COMMENT
LOWutil/util_gl.h1//COMMENT
LOWutil/test_utils.cpp1//COMMENT
LOWutil/png_utils.cpp1//COMMENT
LOWutil/OSPixmap.h1//COMMENT
LOWutil/Matrix.cpp1//COMMENT
LOWutil/test_utils_unittest_helper.cpp1//COMMENT
LOWutil/png_utils.h1//COMMENT
LOWutil/EGLWindow.cpp1//COMMENT
LOWutil/shader_utils.cpp1//COMMENT
LOWutil/egl_loader_autogen.h1// GENERATED FILE - DO NOT EDIT.COMMENT
LOWutil/egl_loader_autogen.h21#define eglCreateContext l_eglCreateContextCOMMENT
LOWutil/egl_loader_autogen.h41#define eglWaitGL l_eglWaitGLCOMMENT
LOWutil/egl_loader_autogen.h61#define eglCreatePlatformPixmapSurface l_eglCreatePlatformPixmapSurfaceCOMMENT
LOWutil/egl_loader_autogen.h81#define eglCopyMetalSharedEventANGLE l_eglCopyMetalSharedEventANGLECOMMENT
LOWutil/egl_loader_autogen.h101#define eglQueryDisplayAttribEXT l_eglQueryDisplayAttribEXTCOMMENT
LOWutil/egl_loader_autogen.h121#define eglSignalSyncKHR l_eglSignalSyncKHRCOMMENT
LOWutil/gles_loader_autogen.h1// GENERATED FILE - DO NOT EDIT.COMMENT
LOWutil/gles_loader_autogen.h21#define glAlphaFunc l_glAlphaFuncCOMMENT
LOWutil/gles_loader_autogen.h41#define glOrthof l_glOrthofCOMMENT
LOWutil/gles_loader_autogen.h61#define glFogx l_glFogxCOMMENT
LOWutil/gles_loader_autogen.h81#define glMatrixMode l_glMatrixModeCOMMENT
LOWutil/gles_loader_autogen.h101#define glTexEnvxv l_glTexEnvxvCOMMENT
LOWutil/gles_loader_autogen.h121#define glClear l_glClearCOMMENT
LOWutil/gles_loader_autogen.h141#define glDepthMask l_glDepthMaskCOMMENT
LOWutil/gles_loader_autogen.h161#define glGetActiveUniform l_glGetActiveUniformCOMMENT
3806 more matches not shown…
AI Slop Vocabulary152 hits · 429 pts
SeverityFileLineSnippetContext
MEDIUMsrc/libANGLE/FramebufferAttachment.h249 // These are used for robust resource initialization.COMMENT
MEDIUMsrc/libANGLE/Context.cpp103// more custom handling for robust resource init.COMMENT
MEDIUMsrc/libANGLE/Context.cpp1664 // For robust init, make sure the texture is initialized before storage writes.COMMENT
MEDIUMsrc/libANGLE/Context.cpp4090 // Determine robust resource init availability from EGL.COMMENT
MEDIUMsrc/libANGLE/Context.cpp4093 // mState.getExtensions().robustBufferAccessBehaviorKHR is true only if robust access is trueCOMMENT
MEDIUMsrc/libANGLE/Context.cpp4828 // If we are in a WebGL or robust access context and the back-end does not support robust bufferCOMMENT
MEDIUMsrc/libANGLE/Framebuffer.cpp1620 // TODO(jmadill): WebGL behaviour, and robust resource init behaviour without WebGL.COMMENT
MEDIUMsrc/libANGLE/Framebuffer.cpp1640 // TODO(jmadill): WebGL behaviour, and robust resource init behaviour without WebGL.COMMENT
MEDIUMsrc/libANGLE/Framebuffer.cpp1783 // We treat sub-area invalidation as no-op in robust modeCOMMENT
MEDIUMsrc/libANGLE/Context.h522 // robust access is enabled). The following variables help implement this limit given theCOMMENT
MEDIUMsrc/libANGLE/Texture.cpp1541 // other pixels untouched. For safety in robust resource initialization, assume that thatCOMMENT
MEDIUMsrc/libANGLE/Texture.cpp1609 // other pixels untouched. For safety in robust resource initialization, assume that thatCOMMENT
MEDIUMsrc/libANGLE/ShareGroup.h54 // group is robust, any program created in any context of the share group must have robustnessCOMMENT
MEDIUMsrc/libANGLE/Buffer.cpp192 // If we are using robust resource init, make sure the buffer starts cleared.COMMENT
MEDIUMsrc/libANGLE/validationES.cpp7832 // Unimplemented, let the robust command fail in this case.COMMENT
MEDIUMsrc/libANGLE/Renderbuffer.h84 // For robust resource init.COMMENT
MEDIUMsrc/libANGLE/Texture.h82 // Needed for robust resource initialization.COMMENT
MEDIUMsrc/libANGLE/Texture.h719 // Needed for robust resource init.COMMENT
MEDIUMsrc/libANGLE/State.h194 DIRTY_OBJECT_READ_ATTACHMENTS, // Only used if robust resource init is enabledCODE
MEDIUMsrc/libANGLE/State.h195 DIRTY_OBJECT_DRAW_ATTACHMENTS, // Only used if robust resource init is enabledCODE
MEDIUMsrc/libANGLE/State.h1631 // framebuffer, then TEXTURES_INIT and IMAGES_INIT can be removed since robust init happensCOMMENT
MEDIUMsrc/libANGLE/Image.h58// which is important for the robust resource init extension with Textures and EGLImages.COMMENT
MEDIUMsrc/libANGLE/renderer/metal/DisplayMtl.mm484 // Note that robust resource initialization is not yet implemented. We only exposeCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/FramebufferVk.cpp555 // If robust resource initialization is enabled, do not invalidate sub-regions of theCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/FramebufferVk.cpp2311 // If robust resource initialization is enabled, restage clears on the invalidated resources.COMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/FramebufferVk.cpp2392 // When robust-resource init is enabled, a clear is stashed in the image after invalidatingCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/OverlayVk.cpp60 // Don't use robust resource init for overlay widgets.COMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_helpers.cpp5090 // only needed when robust resource init is enabled so that vulkan driver will know theCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_helpers.cpp9840 // Skip staging extra clears if robust resource init is enabled.COMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_helpers.cpp9858 // If the image has an emulated channel and robust resource init is not enabled, always clearCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/TextureVk.cpp2918 // Only staged update here is the robust resource init if any.COMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/TextureVk.cpp3421 // The MSAA image always comes from the single sampled one, so disable robust init.COMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_helpers.h1094 // when robust resource init is enabled, we may want to create a dedicated VkBuffer for theCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_helpers.h2719 // Stage a clear based on robust resource init.COMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_renderer.cpp4649 // Used to support robust buffer access, if VK_EXT_pipeline_robustness is not supported.COMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/ContextVk.h849 // Whether VK_EXT_pipeline_robustness should be used to enable robust buffer access in theCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/SurfaceVk.cpp3225 // image use after ANI must go through barrier code, this approach is very robust. And sinceCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/BufferVk.cpp547 // In case of redefining an existing buffer with no input data and enabled robustCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/VertexArrayVk.cpp1221 // Vulkan requires the offset is within the buffer. We use robust accessCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_cache_utils.cpp3324// effect, or the context is robust. For VK_EXT_graphics_pipeline_library, such state that affectsCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_cache_utils.h547 // Whether the pipeline is robust (vertex input copy)COMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_cache_utils.h603 // Whether the pipeline is robust (shader stages copy)COMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_cache_utils.h818 // Whether VK_EXT_pipeline_robustness should be used to make the pipeline robust. Note thatCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_cache_utils.h819 // programs are allowed to be shared between robust and non-robust contexts, so differentCOMMENT
MEDIUMsrc/libANGLE/renderer/vulkan/vk_caps_utils.cpp453 // Only expose robust buffer access if the physical device supports it.COMMENT
MEDIUM…vulkan/android/HardwareBufferImageSiblingVkAndroid.cpp473 // disable robust init for this external image.COMMENT
MEDIUMsrc/libANGLE/renderer/gl/BufferGL.cpp38 // Shadow WebGL index buffers when the driver is unable to provide robust access.COMMENT
MEDIUMsrc/libANGLE/renderer/gl/DisplayGL.cpp163 // Advertise robust resource initialization on all OpenGL backends for testing even though it isCOMMENT
MEDIUMsrc/libANGLE/renderer/gl/TextureGL.cpp923 // When robust resource initialization is enabled, the area outside the framebuffer must beCOMMENT
MEDIUMsrc/libANGLE/renderer/gl/egl/DisplayEGL.cpp192 // that expose the robustness extensions but fail to create robust contexts.COMMENT
MEDIUMsrc/libANGLE/renderer/d3d/TextureD3D.cpp1256 // Same thing for robust resource init.COMMENT
MEDIUMsrc/libANGLE/renderer/d3d/TextureD3D.cpp2042 // Same thing for robust resource init.COMMENT
MEDIUMsrc/libANGLE/renderer/d3d/d3d11/Renderer11.cpp1404 // All D3D feature levels support robust resource initCOMMENT
LOWsrc/libANGLE/renderer/d3d/d3d11/gen_blit11helper.py212 # 3D and 2DArray just use the RGBA shader for passthrough alphaCOMMENT
LOWsrc/libANGLE/renderer/d3d/d3d11/gen_blit11helper.py274 # 3D and 2DArray just use the RGBA shader for passthrough alphaCOMMENT
MEDIUMsrc/libANGLE/renderer/d3d/d3d11/renderer11_utils.cpp2216 // Qualcomm D3D11 drivers have trouble clearing textures when robust resource initializationCOMMENT
MEDIUMsrc/libANGLE/renderer/d3d/d3d11/Image11.cpp131 // texture will suffice) AND robust resource initialization is not enabled then isDirty shouldCOMMENT
MEDIUMsrc/libANGLE/renderer/d3d/d3d11/Buffer11.cpp377 // TODO(http://anglebug.com/42261543): This ensures that we don't crash or assert in robustCOMMENT
MEDIUMsrc/libANGLE/renderer/d3d/d3d11/StateManager11.h488 // We might want to investigate a more robust approach that is also fast when there'sCOMMENT
MEDIUMsrc/tests/cl_support/angle_oclcts_gtest.cpp9#include "harness/testHarness.h"COMMENT
92 more matches not shown…
Hyper-Verbose Identifiers222 hits · 197 pts
SeverityFileLineSnippetContext
LOWPRESUBMIT.py342 def implementation_and_headers_including_third_party(f):STRING
LOWPRESUBMIT.py377 def implementation_and_headers(f):STRING
LOWscripts/roll_chromium_deps_v2.py383def _ensure_updated_main_branch() -> None:CODE
LOWscripts/roll_chromium_deps_v2.py448def _get_remote_head_revision(remote_url: str) -> str:CODE
LOWscripts/roll_chromium_deps_v2.py509def _read_remote_chromium_file(src_relative_path: str, revision: str) -> str:CODE
LOWscripts/roll_chromium_deps_v2.py521def _get_changed_deps_entries(angle_deps: dict, chromium_deps: dict) -> list[ChangedDepsEntry]:CODE
LOWscripts/roll_chromium_deps_v2.py651def _get_changed_non_exported_repos(angle_deps: dict, chromium_deps: dict) -> list[ChangedRepo]:CODE
LOWscripts/roll_chromium_deps_v2.py687def _get_changed_exported_repos(angle_deps: dict) -> list[ChangedRepo]:CODE
LOWscripts/roll_chromium_deps_v2.py717def _get_raw_url_for_dep_entry(dep_name: str, deps: dict) -> str:CODE
LOWscripts/roll_chromium_deps_v2.py788def _generate_chromium_section(chromium_revision_range: ChangedRepo, autoroll: bool) -> list[str]:CODE
LOWscripts/roll_chromium_deps_v2.py814def _generate_command_section() -> list[str]:CODE
LOWscripts/roll_chromium_deps_v2.py830def _generate_section_for_entry_type(entry_type: Type[ChangedDepsEntry],CODE
LOWscripts/roll_chromium_deps_v2.py861def _generate_variables_section(changed_entries: list[ChangedDepsEntry]) -> list[str]:CODE
LOWscripts/roll_chromium_deps_v2.py916def _generate_footers_section(autoroll: bool) -> list[str]:CODE
LOWscripts/roll_chromium_deps_v2.py999def _run_lucicfg_and_stage_changes() -> None:CODE
LOWscripts/roll_chromium_deps_v2.py1011def _exchange_starlark_package_revision(package_name: str, package_star_contents: str,CODE
LOWscripts/roll_chromium_deps_v2.py1034def _get_starlark_package_regex_for(package_name: str) -> re.Pattern:CODE
LOWscripts/roll_chromium_deps_v2.py1061def _extract_starlark_package_revision(package_name: str, package_star_contents: str) -> str:CODE
LOWscripts/roll_chromium_deps_v2.py1080def _replace_starlark_package_revision(package_name: str, new_revision: str,CODE
LOWscripts/angle_presubmit_utils_unittest.py61 def test_missing_description_body(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py384 def run_shader_version_check_presubmit(self, commit_msg, diffs):CODE
LOWscripts/angle_presubmit_utils_unittest.py393 def test_shader_lang_changed_with_version_change(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py410 def test_shader_lang_changed_with_no_version_change(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py36 def run_check_commit_message_formatting(self, commit_msg):CODE
LOWscripts/angle_presubmit_utils_unittest.py40 def test_correct_commit_message(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py84 def test_missing_tag_paragraph_and_description_body(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py94 def test_missing_blank_line_between_description_summary_and_description_body(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py105 def test_missing_blank_line_between_description_body_and_tags_paragraph(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py113 def test_multiple_blank_lines_before_and_after_commit_message(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py142 def test_summmary_description_in_warning_thresholds(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py172 def test_description_body_exceeds_line_count_limit(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py206 def test_description_body_exceeds_line_count_limit_but_without_space(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py219 def test_description_body_exceeds_line_count_limit_but_in_quote(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py232 def test_tabs_in_commit_message(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py280 def test_multiple_commits_with_errors_in_multiple_commits(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py307 def test_multiple_commits_with_error_in_one_commit(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py328 def test_multiple_commits_with_no_error(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py421 def test_shader_lang_changed_with_no_version_change(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py434 def test_shader_lang_changed_with_version_cosmetic_change(self):CODE
LOWscripts/angle_presubmit_utils_unittest.py51 def test_missing_description_body_and_description_summary(self):STRING
LOWscripts/angle_presubmit_utils_unittest.py71 def test_missing_tag_paragraph(self):STRING
LOWscripts/angle_presubmit_utils_unittest.py401 def test_both_changed_with_version_change(self):STRING
LOWscripts/angle_presubmit_utils_unittest.py126 def test_newlines_within_description_body(self):STRING
LOWscripts/angle_presubmit_utils_unittest.py158 def test_summary_description_in_error_threshold(self):STRING
LOWscripts/angle_presubmit_utils_unittest.py447 def test_shader_lang_changed_with_version_decrement(self):STRING
LOWscripts/angle_presubmit_utils_unittest.py460 def test_shader_lang_changed_in_revert(self):STRING
LOWscripts/generate_android_bp.py194def gn_path_to_blueprint_path(source):CODE
LOWscripts/generate_android_bp.py199def gn_paths_to_blueprint_paths(paths):CODE
LOWscripts/generate_android_bp.py206def gn_generated_sources_to_blueprint_generated_sources(sources):CODE
LOWscripts/generate_android_bp.py298def get_rust_ffi_header_file_gen_target_name(rust_source_full_path):CODE
LOWscripts/generate_android_bp.py305def get_rust_ffi_source_file_gen_target_name(rust_source_full_path):CODE
LOWscripts/generate_android_bp.py82def write_blueprint_key_value(output, name, value, indent=1):CODE
LOWscripts/generate_android_bp.py142def gn_target_to_blueprint_target(target, target_info):CODE
LOWscripts/generate_android_bp.py223def gn_sources_to_blueprint_sources(sources):CODE
LOWscripts/generate_android_bp.py323def gn_deps_to_blueprint_deps(abi, target, build_info):CODE
LOWscripts/generate_android_bp.py391def gn_libs_to_blueprint_shared_libraries(target_info):CODE
LOWscripts/generate_android_bp.py406def gn_include_dirs_to_blueprint_include_dirs(target_info):CODE
LOWscripts/generate_android_bp.py419def gn_cflags_to_blueprint_cflags(target_info):CODE
LOWscripts/generate_android_bp.py483def rustlibrary_target_to_blueprint(target, build_info) -> list[tuple[str, dict]]:CODE
LOWscripts/generate_android_bp.py517def library_target_to_blueprint(target, build_info) -> list[tuple[str, dict]]:CODE
162 more matches not shown…
Decorative Section Separators40 hits · 152 pts
SeverityFileLineSnippetContext
MEDIUMtools/flex-bison/third_party/skeletons/glr.c52# ---------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c61# ----------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c69# ------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c76# -------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c84# ---------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c91# --------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c98# -----------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c110# --------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c117# -----------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c124# --------------------------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c136# -----------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c143# ---------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c151# ---------------------------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/glr.c164# ----------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c98# --------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c106# ------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c116# ---------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c130# -----------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c140# --------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c147# ----------------------------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c198# -------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c206# --------------------------------------------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c349# -------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c358# ------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c366# ----------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c53# ----------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c158# -----------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c166# ---------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c179# ---------------------------------------------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c225# ------------------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c252# -----------------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c304# --------------------------------------------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c327# ------------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c381# ----------------------COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c398# ---------------------------------------COMMENT
MEDIUMscripts/export_targets.py75# ------------------------------------------------------------------------------COMMENT
MEDIUMscripts/export_targets.py113# ------------------------------------------------------------------------------COMMENT
MEDIUMscripts/export_targets.py130# ------------------------------------------------------------------------------COMMENT
MEDIUMscripts/export_targets.py176# ------------------------------------------------------------------------------COMMENT
MEDIUMscripts/export_targets.py366# ------------------------------------------------------------------------------COMMENT
Cross-Language Confusion25 hits · 102 pts
SeverityFileLineSnippetContext
HIGHscripts/generate_entry_points.py1404 if (returnValue != nullptr && frameCaptureShared->enabled())CODE
HIGHscripts/generate_entry_points.py1825 condition = "context->getClientVersion() < ES_2_0 || context->getClientVersion() >= ES_3_2"CODE
HIGHscripts/generate_entry_points.py1871 lockless_assertion = "ASSERT(isCallValid || context->getPushedErrorCount() != errorCount);"STRING
HIGHscripts/generate_entry_points.py3554 prepareCall = "if (attribute == EGL_BUFFER_AGE_EXT || attribute == EGL_SURFACE_COMPRESSION_EXT) {" + prepareCallSTRING
HIGHsrc/libANGLE/gen_overlay_widgets.py44 if (largeFont && fontSize > 0)CODE
HIGHsrc/libANGLE/renderer/gen_load_functions_table.py91 ASSERT(internalFormat == GL_NONE || angleFormat == angle::FormatID::NONE);CODE
HIGHsrc/libANGLE/renderer/metal/gen_mtl_format_table.py98 bool supportDepthStencilAutoResolve = supportDepthAutoResolve && supportStencilAutoResolve;CODE
HIGHsrc/libANGLE/renderer/metal/gen_mtl_format_table.py510 switch_data += " (TARGET_OS_TV && __TV_OS_VERSION_MAX_ALLOWED >= 160400) || TARGET_OS_VISION\n"STRING
HIGHsrc/libANGLE/renderer/metal/gen_mtl_format_table.py549 switch_data += " (TARGET_OS_TV && __TV_OS_VERSION_MAX_ALLOWED >= 160400) || TARGET_OS_VISION\n"STRING
HIGHsrc/libANGLE/renderer/metal/gen_mtl_format_table.py608 switch_data += " (TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 160400) ||\\\n"STRING
HIGHsrc/libANGLE/renderer/metal/gen_mtl_format_table.py609 switch_data += " (TARGET_OS_TV && __TV_OS_VERSION_MAX_ALLOWED >= 160400) || TARGET_OS_VISION\n"STRING
HIGHsrc/libANGLE/renderer/metal/gen_mtl_format_table.py755 caps_init_str += " (TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 160400) ||\\\n"STRING
HIGHsrc/libANGLE/renderer/metal/gen_mtl_format_table.py756 caps_init_str += " (TARGET_OS_TV && __TV_OS_VERSION_MAX_ALLOWED >= 160400) || TARGET_OS_VISION\n"STRING
HIGHsrc/tests/angle_android_test_runner.py128 'dumpsys deviceidle | grep mScreen || true']).decode().split()CODE
HIGHsrc/tests/py_utils/android_helper.py60 'id -u; which su || echo noroot; am get-current-user; stat --format %a /data').decode(CODE
HIGHsrc/tests/py_utils/android_helper.py243 '; tar --no-same-permissions --no-same-owner -xf $r/t.tar -C $r/ && rm $r/t.tar && chmod -R o+r $r/'CODE
HIGHsrc/tests/py_utils/android_helper.py269 '; tar --no-same-permissions --no-same-owner -xf $r/deqp.tar -C $r/ && rm $r/deqp.tar && chmod -R o+r $r/'CODE
HIGHsrc/tests/py_utils/android_helper.py274 pm_path = _AdbShell('pm path com.android.angle.test || true').decode().strip()CODE
HIGHsrc/tests/py_utils/android_helper.py302 cmd = 'test -f {path} && tail -c {gz_tail_size} {path} | sha256sum -b || true'.format(CODE
HIGHsrc/tests/py_utils/android_helper.py349 _AdbShell('appops set com.android.angle.test MANAGE_EXTERNAL_STORAGE allow || true')CODE
HIGHsrc/tests/py_utils/android_helper.py654 'cat /dev/thermal/tz-by-name/*_therm/temp 2>/dev/null || true').decode().split()STRING
HIGHsrc/common/gen_uniform_type_table.py131 ASSERT(index.value >= 0 && index.value < {total_count});CODE
HIGHsrc/compiler/translator/gen_builtin_symbols.py49 return os.write(str.data(), str.length());CODE
HIGHsrc/compiler/translator/gen_builtin_symbols.py359 if (name.length() > {max_mangled_name_length})CODE
HIGHsrc/compiler/translator/gen_builtin_symbols.py380 if (name.length() > {max_unmangled_name_length})CODE
Verbosity Indicators56 hits · 91 pts
SeverityFileLineSnippetContext
LOWtools/flex-bison/update_flex_bison_binaries.py43 # Step 1: Upload to cloud storageCOMMENT
LOWtools/flex-bison/update_flex_bison_binaries.py49 # Step 2: Stage new SHA to gitCOMMENT
LOWtools/glslang/update_glslang_binary.py33 # Step 1: Generate an output directoryCOMMENT
LOWtools/glslang/update_glslang_binary.py47 # Step 2: Generate the ninja build files in the output directoryCOMMENT
LOWtools/glslang/update_glslang_binary.py52 # Step 3: Compile glslang_validatorCOMMENT
LOWtools/glslang/update_glslang_binary.py57 # Step 4: Copy glslang_validator to the tools/glslang directoryCOMMENT
LOWtools/glslang/update_glslang_binary.py65 # Step 5: Delete the build directoryCOMMENT
LOWtools/glslang/update_glslang_binary.py68 # Step 6: Upload to cloud storageCOMMENT
LOWtools/glslang/update_glslang_binary.py73 # Step 7: Stage new SHA to gitCOMMENT
LOWscripts/update_extension_data.py180 # Step 1: Find the build ID.COMMENT
LOWscripts/update_extension_data.py186 # Step 2: Get the test suite swarm hashes.COMMENT
LOWscripts/update_extension_data.py201 # Step 3: Find all tasks using the swarm hashes.COMMENT
LOWscripts/update_extension_data.py206 # Step 4: Download the extension data for each configuration we're monitoring.COMMENT
LOWsrc/libANGLE/renderer/metal/VertexArrayMtl.mm848 // Step 1: Get the index buffer of supported type and resolve the first index toCOMMENT
LOWsrc/libANGLE/renderer/metal/VertexArrayMtl.mm871 // Step 2: GL draw range is firstIndex, count. In case Metal primitive topology forCOMMENT
LOWsrc/libANGLE/renderer/metal/VertexArrayMtl.mm901 // Step 3: Conditionally rewrite the index buffer for provoking vertex.COMMENT
LOWsrc/libANGLE/renderer/metal/VertexArrayMtl.mm911 // Step 4: Compute draw command ranges (handles primitive restart splitting and large drawCOMMENT
LOWsrc/tests/gl_tests/VertexAttributeTest.cpp6713 // Step 1: Setup VAO 0 (default) and draw with prog1.COMMENT
LOWsrc/tests/gl_tests/VertexAttributeTest.cpp6734 // Step 2: Bind VAO 1, force resize of streamed buffer for attribute 1.COMMENT
LOWsrc/tests/gl_tests/VertexAttributeTest.cpp6763 // Step 3: Bind VAO 0, draw with prog2 (active: 0, 3. Inactive: 1, 2, 4).COMMENT
LOWsrc/tests/gl_tests/VertexAttributeTest.cpp6771 // Step 4: Bind VAO 2, force resize of streamed buffer for attribute 3.COMMENT
LOWsrc/tests/gl_tests/VertexAttributeTest.cpp6800 // Step 5: Bind VAO 0, draw with prog3 (active: 0, 2, 4. Inactive: 1, 3).COMMENT
LOWsrc/tests/gl_tests/ComputeShaderTest.cpp5330 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/ComputeShaderTest.cpp5362 // Step 2: load this image through computeCOMMENT
LOWsrc/tests/gl_tests/ComputeShaderTest.cpp5433 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/ComputeShaderTest.cpp5465 // Step 2: load this image through computeCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp1723 // Step 2: Change max level and draw.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp1730 // Step 3: Change max level back to original value and verify we hit the cache.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp8398 // Step 1: Draw to start a render pass.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp8402 // Step 2: Switch to fbo and clear it to set mRenderPassCommandBuffer to null,COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10868 // Step 1: start a render pass on fboA with depthA -> populatesCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10876 // Step 2: invalidate depth so depthA is content-undefined when RP_A ends.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10893 // Step 3: draw on fboB -> closes RP_A, opens RP_B,COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10897 // Step 4: rebind fboA as the *draw* framebuffer. Front-end state only:COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10902 // Step 5: delete depthA. This auto-detached from fboA.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10905 // Step 6: glFinish(), which triggers submission. It should not access deleted render targets.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10937 // Step 1: start a render pass on fboA with depthACOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10945 // Step 2: invalidate depthA so that it is content-undefined.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10962 // Step 3: draw on fboBCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10966 // Step 4: rebind fboA as the draw framebuffer.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10969 // Step 5: delete colA. This auto-detached from fboA and makes fboA dirty.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10972 // Step 6: glFinish(), which triggers submission. It should not access any deleted objects.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp757 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp786 // Step 2: Introduce a new 2D Texture with the same Program and Framebuffer.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp848 // Step 1: Set up a simple 2D texture.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp881 // Step 2: Load a new 2D Texture multiple times with the same Program and Framebuffer. The totalCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp1694 // Step 1: Set up a simple mipped 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp1747 // Step 1: Set up four buffers for two copies.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp1775 // Step 2: Do the two copies.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp6779 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp6814 // Step 2: load this image through computeCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp6891 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp6937 // Step 2: load this image through computeCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp6998 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp7026 // Step 2: sample this texture through computeCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp8413 // Step 3: Run > kMaxReservedOutsideRenderPassQueueSerials compute with glMemoryBarrierCOMMENT
Structural Annotation Overuse56 hits · 91 pts
SeverityFileLineSnippetContext
LOWtools/flex-bison/update_flex_bison_binaries.py43 # Step 1: Upload to cloud storageCOMMENT
LOWtools/flex-bison/update_flex_bison_binaries.py49 # Step 2: Stage new SHA to gitCOMMENT
LOWtools/glslang/update_glslang_binary.py33 # Step 1: Generate an output directoryCOMMENT
LOWtools/glslang/update_glslang_binary.py47 # Step 2: Generate the ninja build files in the output directoryCOMMENT
LOWtools/glslang/update_glslang_binary.py52 # Step 3: Compile glslang_validatorCOMMENT
LOWtools/glslang/update_glslang_binary.py57 # Step 4: Copy glslang_validator to the tools/glslang directoryCOMMENT
LOWtools/glslang/update_glslang_binary.py65 # Step 5: Delete the build directoryCOMMENT
LOWtools/glslang/update_glslang_binary.py68 # Step 6: Upload to cloud storageCOMMENT
LOWtools/glslang/update_glslang_binary.py73 # Step 7: Stage new SHA to gitCOMMENT
LOWscripts/update_extension_data.py180 # Step 1: Find the build ID.COMMENT
LOWscripts/update_extension_data.py186 # Step 2: Get the test suite swarm hashes.COMMENT
LOWscripts/update_extension_data.py201 # Step 3: Find all tasks using the swarm hashes.COMMENT
LOWscripts/update_extension_data.py206 # Step 4: Download the extension data for each configuration we're monitoring.COMMENT
LOWsrc/libANGLE/renderer/metal/VertexArrayMtl.mm848 // Step 1: Get the index buffer of supported type and resolve the first index toCOMMENT
LOWsrc/libANGLE/renderer/metal/VertexArrayMtl.mm871 // Step 2: GL draw range is firstIndex, count. In case Metal primitive topology forCOMMENT
LOWsrc/libANGLE/renderer/metal/VertexArrayMtl.mm901 // Step 3: Conditionally rewrite the index buffer for provoking vertex.COMMENT
LOWsrc/libANGLE/renderer/metal/VertexArrayMtl.mm911 // Step 4: Compute draw command ranges (handles primitive restart splitting and large drawCOMMENT
LOWsrc/tests/gl_tests/VertexAttributeTest.cpp6713 // Step 1: Setup VAO 0 (default) and draw with prog1.COMMENT
LOWsrc/tests/gl_tests/VertexAttributeTest.cpp6734 // Step 2: Bind VAO 1, force resize of streamed buffer for attribute 1.COMMENT
LOWsrc/tests/gl_tests/VertexAttributeTest.cpp6763 // Step 3: Bind VAO 0, draw with prog2 (active: 0, 3. Inactive: 1, 2, 4).COMMENT
LOWsrc/tests/gl_tests/VertexAttributeTest.cpp6771 // Step 4: Bind VAO 2, force resize of streamed buffer for attribute 3.COMMENT
LOWsrc/tests/gl_tests/VertexAttributeTest.cpp6800 // Step 5: Bind VAO 0, draw with prog3 (active: 0, 2, 4. Inactive: 1, 3).COMMENT
LOWsrc/tests/gl_tests/ComputeShaderTest.cpp5330 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/ComputeShaderTest.cpp5362 // Step 2: load this image through computeCOMMENT
LOWsrc/tests/gl_tests/ComputeShaderTest.cpp5433 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/ComputeShaderTest.cpp5465 // Step 2: load this image through computeCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp1723 // Step 2: Change max level and draw.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp1730 // Step 3: Change max level back to original value and verify we hit the cache.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp8398 // Step 1: Draw to start a render pass.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp8402 // Step 2: Switch to fbo and clear it to set mRenderPassCommandBuffer to null,COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10868 // Step 1: start a render pass on fboA with depthA -> populatesCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10876 // Step 2: invalidate depth so depthA is content-undefined when RP_A ends.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10893 // Step 3: draw on fboB -> closes RP_A, opens RP_B,COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10897 // Step 4: rebind fboA as the *draw* framebuffer. Front-end state only:COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10902 // Step 5: delete depthA. This auto-detached from fboA.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10905 // Step 6: glFinish(), which triggers submission. It should not access deleted render targets.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10937 // Step 1: start a render pass on fboA with depthACOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10945 // Step 2: invalidate depthA so that it is content-undefined.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10962 // Step 3: draw on fboBCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10966 // Step 4: rebind fboA as the draw framebuffer.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10969 // Step 5: delete colA. This auto-detached from fboA and makes fboA dirty.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp10972 // Step 6: glFinish(), which triggers submission. It should not access any deleted objects.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp757 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp786 // Step 2: Introduce a new 2D Texture with the same Program and Framebuffer.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp848 // Step 1: Set up a simple 2D texture.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp881 // Step 2: Load a new 2D Texture multiple times with the same Program and Framebuffer. The totalCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp1694 // Step 1: Set up a simple mipped 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp1747 // Step 1: Set up four buffers for two copies.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp1775 // Step 2: Do the two copies.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp6779 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp6814 // Step 2: load this image through computeCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp6891 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp6937 // Step 2: load this image through computeCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp6998 // Step 1: Set up a simple 2D Texture rendering loop.COMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp7026 // Step 2: sample this texture through computeCOMMENT
LOWsrc/tests/gl_tests/VulkanPerformanceCounterTest.cpp8413 // Step 3: Run > kMaxReservedOutsideRenderPassQueueSerials compute with glMemoryBarrierCOMMENT
Deep Nesting87 hits · 76 pts
SeverityFileLineSnippetContext
LOWPRESUBMIT.py52CODE
LOWthird_party/mesa/mesa_build.py49CODE
LOWthird_party/wayland/wayland_scanner_wrapper.py23CODE
LOWscripts/generate_android_bp.py323CODE
LOWscripts/generate_android_bp.py419CODE
LOWscripts/generate_android_bp.py457CODE
LOWscripts/generate_android_bp.py483CODE
LOWscripts/generate_android_bp.py799CODE
LOWscripts/generate_android_bp.py1004CODE
LOWscripts/gen_interpreter_utils.py105CODE
LOWscripts/generate_entry_points.py1794CODE
LOWscripts/generate_entry_points.py2142CODE
LOWscripts/generate_entry_points.py3019CODE
LOWscripts/generate_entry_points.py3094CODE
LOWscripts/generate_entry_points.py3308CODE
LOWscripts/generate_entry_points.py1817CODE
LOWscripts/gen_vk_gl_cts_build.py92CODE
LOWscripts/export_targets.py134CODE
LOWscripts/export_targets.py298CODE
LOWscripts/export_targets.py140CODE
LOWscripts/run_code_generation.py174CODE
LOWscripts/process_angle_perf_results.py134CODE
LOWscripts/process_angle_perf_results.py187CODE
LOWscripts/process_angle_perf_results.py227CODE
LOWscripts/process_angle_perf_results.py511CODE
LOWscripts/gen_gl_enum_utils.py182CODE
LOWscripts/registry_xml.py594CODE
LOWscripts/registry_xml.py616CODE
LOWscripts/update_extension_data.py135CODE
LOWscripts/update_extension_data.py166CODE
LOWscripts/roll_chromium_deps.py305CODE
LOWscripts/roll_chromium_deps.py309CODE
LOWsrc/libANGLE/gen_overlay_fonts.py120CODE
LOWsrc/libANGLE/renderer/gen_angle_format_table.py281CODE
LOWsrc/libANGLE/renderer/angle_format.py71CODE
LOWsrc/libANGLE/renderer/angle_format.py120CODE
LOWsrc/libANGLE/renderer/angle_format.py184CODE
LOWsrc/libANGLE/renderer/angle_format.py237CODE
LOWsrc/libANGLE/renderer/angle_format.py265CODE
LOWsrc/libANGLE/renderer/gen_load_functions_table.py139CODE
LOWsrc/libANGLE/renderer/gen_dxgi_support_tables.py158CODE
LOWsrc/libANGLE/renderer/metal/gen_mtl_format_table.py226CODE
LOWsrc/libANGLE/renderer/vulkan/gen_vk_internal_shaders.py263CODE
LOWsrc/libANGLE/renderer/vulkan/gen_vk_format_table.py134CODE
LOWsrc/libANGLE/renderer/gl/generate_gl_dispatch_table.py155CODE
LOW…ibANGLE/renderer/d3d/d3d11/gen_texture_format_table.py72CODE
LOWsrc/tests/capture_replay_tests.py235CODE
LOWsrc/tests/capture_replay_tests.py281CODE
LOWsrc/tests/capture_replay_tests.py586CODE
LOWsrc/tests/capture_replay_tests.py669CODE
LOWsrc/tests/capture_replay_tests.py123CODE
LOWsrc/tests/capture_replay_tests.py438CODE
LOW…c/tests/restricted_traces/retrace_restricted_traces.py377CODE
LOW…c/tests/restricted_traces/retrace_restricted_traces.py448CODE
LOW…c/tests/restricted_traces/retrace_restricted_traces.py621CODE
LOW…tests/restricted_traces/restricted_trace_gold_tests.py217CODE
LOW…tests/restricted_traces/restricted_trace_gold_tests.py346CODE
LOW…tests/restricted_traces/restricted_trace_gold_tests.py368CODE
LOW…tests/restricted_traces/restricted_trace_gold_tests.py467CODE
LOWsrc/tests/restricted_traces/restricted_trace_perf.py633CODE
27 more matches not shown…
Unused Imports66 hits · 64 pts
SeverityFileLineSnippetContext
LOWinfra/specs/generate_test_spec_json.py15CODE
LOWtools/flex-bison/update_flex_bison_binaries.py17CODE
LOWinclude/platform/gen_features.py11CODE
LOWthird_party/logdog/logdog/varint.py5CODE
LOWthird_party/logdog/logdog/varint.py7CODE
LOWthird_party/wayland/wayland_scanner_wrapper.py9CODE
LOWscripts/angle_presubmit_utils_unittest.py12CODE
LOWscripts/angle_presubmit_utils_unittest.py15CODE
LOWscripts/generate_entry_points.py11CODE
LOWscripts/apply_clang_format_on_all_sources.py12CODE
LOWscripts/gen_vk_gl_cts_build.py11CODE
LOWscripts/gen_vk_gl_cts_build.py14CODE
LOWscripts/export_targets.py51CODE
LOWscripts/export_targets.py54CODE
LOWscripts/process_angle_perf_results.py11CODE
LOWscripts/process_angle_perf_results.py58CODE
LOWscripts/registry_xml.py19CODE
LOWscripts/file_exists.py8CODE
LOWscripts/file_exists.py10CODE
LOWscripts/generate_loader.py11CODE
LOWscripts/generate_loader.py11CODE
LOWscripts/trigger.py48CODE
LOWsrc/libANGLE/gen_overlay_fonts.py26CODE
LOWsrc/libANGLE/renderer/gen_angle_format_table.py13CODE
LOWsrc/libANGLE/renderer/gen_angle_format_table.py15CODE
LOWsrc/libANGLE/renderer/gen_angle_format_table.py16CODE
LOWsrc/libANGLE/renderer/gen_load_functions_table.py13CODE
LOWsrc/libANGLE/renderer/metal/gen_mtl_format_table.py17CODE
LOWsrc/libANGLE/renderer/metal/gen_mtl_format_table.py18CODE
LOWsrc/libANGLE/renderer/metal/gen_mtl_format_table.py20CODE
LOWsrc/libANGLE/renderer/metal/gen_mtl_format_table.py21CODE
LOWsrc/libANGLE/renderer/metal/shaders/embed_in_header.py7CODE
LOWsrc/libANGLE/renderer/metal/shaders/metal_wrapper.py5CODE
LOW…GLE/renderer/metal/shaders/gen_mtl_internal_shaders.py10CODE
LOWsrc/libANGLE/renderer/wgpu/gen_wgpu_format_table.py10CODE
LOWsrc/libANGLE/renderer/wgpu/gen_wgpu_format_table.py11CODE
LOWsrc/libANGLE/renderer/wgpu/gen_wgpu_format_table.py12CODE
LOWsrc/libANGLE/renderer/wgpu/gen_wgpu_format_table.py14CODE
LOWsrc/libANGLE/renderer/vulkan/gen_vk_format_table.py10CODE
LOWsrc/libANGLE/renderer/vulkan/gen_vk_format_table.py11CODE
LOWsrc/libANGLE/renderer/vulkan/gen_vk_format_table.py12CODE
LOWsrc/libANGLE/renderer/gl/generate_gl_dispatch_table.py12CODE
LOWsrc/libANGLE/renderer/d3d/d3d11/gen_blit11helper.py11CODE
LOW…ibANGLE/renderer/d3d/d3d11/gen_texture_format_table.py13CODE
LOWsrc/tests/capture_replay_tests.py28CODE
LOWsrc/tests/capture_replay_tests.py44CODE
LOWsrc/tests/run_angle_android_test.py14CODE
LOWsrc/tests/run_angle_android_test.py15CODE
LOWsrc/tests/run_angle_android_test.py16CODE
LOWsrc/tests/angle_android_test_runner.py15CODE
LOWsrc/tests/run_perf_tests.py13CODE
LOWsrc/tests/run_perf_tests.py14CODE
LOW…c/tests/restricted_traces/retrace_restricted_traces.py36CODE
LOWsrc/tests/restricted_traces/check_trace_diffs.py4CODE
LOW…tests/restricted_traces/restricted_trace_gold_tests.py19CODE
LOW…tests/restricted_traces/restricted_trace_gold_tests.py37CODE
LOWsrc/tests/restricted_traces/restricted_trace_perf.py44CODE
LOW…ts/restricted_traces/sync_restricted_traces_to_cipd.py19CODE
LOWsrc/tests/restricted_traces/gen_restricted_traces.py11CODE
LOWsrc/tests/restricted_traces/gen_restricted_traces.py12CODE
6 more matches not shown…
Excessive Try-Catch Wrapping24 hits · 41 pts
SeverityFileLineSnippetContext
MEDIUMtools/flex-bison/update_flex_bison_binaries.py46 print('Error upload to cloud storage')CODE
MEDIUMtools/flex-bison/update_flex_bison_binaries.py51 print('Error running git add')CODE
MEDIUMtools/glslang/update_glslang_binary.py49 print('Error calling gn')CODE
MEDIUMtools/glslang/update_glslang_binary.py54 print('Error calling ninja')CODE
MEDIUMtools/glslang/update_glslang_binary.py70 print('Error upload to cloud storage')CODE
MEDIUMtools/glslang/update_glslang_binary.py75 print('Error running git add')CODE
LOWscripts/run_code_generation.py48 except Exception:CODE
MEDIUMscripts/run_code_generation.py49 print('Error with auto_script %s: %s, executable %s' % (param, script, exe))CODE
MEDIUMscripts/process_angle_perf_results.py483def _upload_individual_benchmark(params):CODE
MEDIUMscripts/process_angle_perf_results.py493def _GetCpuCount(log=True):CODE
LOWscripts/process_angle_perf_results.py357 except Exception:CODE
LOWscripts/process_angle_perf_results.py364 except Exception:CODE
LOWscripts/process_angle_perf_results.py373 except Exception:CODE
LOWscripts/process_angle_perf_results.py486 except Exception:CODE
LOWscripts/process_angle_perf_results.py756 except Exception:CODE
LOWsrc/tests/capture_replay_tests.py185 except Exception:CODE
LOWsrc/tests/capture_replay_tests.py554 except Exception:CODE
LOWsrc/tests/capture_tests/capture_tests.py160 except Exception as e:CODE
LOW…c/tests/restricted_traces/retrace_restricted_traces.py534 except Exception:CODE
LOW…tests/restricted_traces/restricted_trace_gold_tests.py571 except Exception:CODE
LOW…ests/restricted_traces/check_attribute_interleaving.py145 except Exception as e:CODE
LOW…ests/restricted_traces/check_attribute_interleaving.py160 except Exception as e:CODE
MEDIUMsrc/tests/py_utils/android_helper.py405 print('Error: missing library: ' + local_path)CODE
LOWsrc/tests/py_utils/android_helper.py639 except Exception as e:STRING
Synthetic Comment Markers5 hits · 38 pts
SeverityFileLineSnippetContext
HIGHsrc/libANGLE/angletypes.h557 // Get the number of supported samples that is at least as many as requested. Returns 0 ifCOMMENT
HIGHsrc/libANGLE/renderer/vulkan/ContextVk.cpp5231 // rasterizer discard as requested. Otherwise disable it.COMMENT
HIGHsrc/libANGLE/renderer/gl/wgl/PbufferSurfaceWGL.cpp103 // The returned pbuffer may not be as large as requested, update the size members.COMMENT
HIGHsrc/compiler/translator/glslang_lex_autogen.cpp12// Ignore errors in auto-generated code.COMMENT
HIGHsrc/compiler/translator/glslang_tab_autogen.cpp78// Ignore errors in auto-generated code.COMMENT
Self-Referential Comments10 hits · 28 pts
SeverityFileLineSnippetContext
MEDIUM.rustfmt.toml1# This file defines the Rust style for automatic reformatting.COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c207# Define the parsing function for START-SYMBOL-NUM.COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/yacc.c180# Define the return type of the parsing function for SYMBOL-NUM, andCOMMENT
MEDIUMtools/flex-bison/third_party/skeletons/lalr1.java44#Define a macro to be true when api.push - pull has the value "both".COMMENT
MEDIUMtools/flex-bison/third_party/skeletons/lalr1.java55#Define a macro to encapsulate the parse state variables.ThisCOMMENT
MEDIUMscripts/roll_chromium_deps_v2.py1148 # Create the commit message before adding the entry for the ChromiumCOMMENT
MEDIUMscripts/angle_deqp_bundle.py85 # Create a script directly inside the zip fileSTRING
MEDIUMscripts/gen_vk_gl_cts_build.py170 # Create the copy() commandsSTRING
MEDIUMscripts/process_angle_perf_results.py594 # Create a place to write the perf results that you will write out toCOMMENT
MEDIUMscripts/trigger.py158 # Define a user tag.COMMENT
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHscripts/generate_android_bp.py0// generated file - do not edit. // generated by {script_name} // // copyright 2020 the angle project authors. all rightSTRING
HIGHscripts/gen_vk_gl_cts_build.py0// generated file - do not edit. // generated by {script_name} // // copyright 2020 the angle project authors. all rightSTRING
HIGHsrc/libANGLE/renderer/metal/shaders/embed_in_header.py0// generated file - do not edit. // generated by {script_name} // // copyright 2020 the angle project authors. all rightSTRING
HIGH…GLE/renderer/metal/shaders/gen_mtl_internal_shaders.py0// generated file - do not edit. // generated by {script_name} // // copyright 2020 the angle project authors. all rightSTRING
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHthird_party/logdog/logdog/bootstrap.py70Returns: (StreamClient) stream client for the bootstrap streamserver URI. If the Butler accepts external stream conSTRING
HIGHthird_party/logdog/logdog/varint.py38Reads a uvarint from a stream. This is targeted towards testing, and will not be used in production code. Args: STRING
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWthird_party/r8/playground/build.sh6# Usage:COMMENT
LOWscripts/angle_deqp_bundle.py15# Example usage:COMMENT
LOWscripts/winappsdk_setup.py11# Usage:COMMENT
LOWscripts/angle_trace_bundle.py15# Example usage:COMMENT
LOWsrc/common/base/anglebase/sha1.h41// Usage example:COMMENT
Redundant / Tautological Comments5 hits · 7 pts
SeverityFileLineSnippetContext
LOWscripts/roll_aosp.sh152# Check if we are inside an Android repoCOMMENT
LOWscripts/generate_android_bp.py312# Check if the given gn build target type and target information matches with the target that generates C++ headersCOMMENT
LOWscripts/roll_chromium_deps.py411 # Check if an update is necessary.COMMENT
LOWsrc/libANGLE/renderer/metal/gen_mtl_format_table.py276 # Check if the format can be override with swizzle featureSTRING
LOWsrc/tests/capture_replay_tests.py672 # Set cwd to ANGLE rootCOMMENT
Slop Phrases3 hits · 4 pts
SeverityFileLineSnippetContext
LOWutil/posix/crash_handler_posix.cpp220 // ... and don't forget to trim off excess bytes.COMMENT
LOW…derer/vulkan/shaders/src/third_party/ffx_spd/ffx_spd.h141// [SAMPLER] don't forget to add the define #SPD_LINEAR_SAMPLER :)COMMENT
LOWsrc/tests/perf_tests/TracePerfTest.cpp211// Don't forget to include KHRONOS_APIENTRY in override methods. Necessary on Win/x86.COMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/libANGLE/capture/serialize.cpp985 // TODO: implement MEC context validation only after all contexts have been initializedCOMMENT
LOWsrc/libANGLE/capture/serialize.cpp1132 // TODO: implement MEC context validation only after all contexts have been initializedCOMMENT
LOWsrc/libANGLE/renderer/vulkan/FramebufferVk.cpp3416 // TODO: implement clear of layered framebuffers. UtilsVk::clearFramebuffer should add aCOMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWandroid/compress_symbols.py94CODE
LOWsrc/tests/py_utils/android_helper.py137CODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/libANGLE/Platform.cpp54 constexpr char kPlaceholder[] = "placeholder";CODE