Repository Analysis

argotorg/solidity

Solidity, the Smart Contract Programming Language

3.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of argotorg/solidity, a C++ project with 25,717 GitHub stars. SynthScan v2.0 examined 319,260 lines of code across 1924 source files, recording 728 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 3.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).

3.9
Adjusted Score
3.9
Raw Score
100%
Time Factor
2026-08-28
Last Push
25.7K
Stars
C++
Language
319.3K
Lines of Code
1.9K
Files
728
Pattern Hits
2026-08-29
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

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

Score History

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 4MEDIUM 205LOW 519

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 728 distinct pattern matches across 14 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.

Decorative Section Separators147 hits · 513 pts
SeverityFileLineSnippetContext
MEDIUMtest/cmdlineTests.sh3#------------------------------------------------------------------------------COMMENT
MEDIUMtest/cmdlineTests.sh10# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/cmdlineTests.sh27#------------------------------------------------------------------------------COMMENT
MEDIUMtest/external_tests.py3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/external_tests.py20# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/localeTest.sh3#------------------------------------------------------------------------------COMMENT
MEDIUMtest/localeTest.sh11# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/localeTest.sh28#------------------------------------------------------------------------------COMMENT
MEDIUMtest/libsolutil/DominatorFinderTest.cpp247 // ┌────►A──────┐COMMENT
MEDIUMtest/libsolutil/DominatorFinderTest.cpp254 // └───►G◄─┴─────┘COMMENT
MEDIUMtest/libsolutil/DominatorFinderTest.cpp301 // ┌─────────┐COMMENT
MEDIUMtest/libsolutil/DominatorFinderTest.cpp306 // │ ┌──►C◄───── B──┬──────┐COMMENT
MEDIUMtest/libsolutil/DominatorFinderTest.cpp310 // │ │ D──┘ ┌───►E◄─────ICOMMENT
MEDIUMtest/libsolutil/DominatorFinderTest.cpp315 // │ └───┼─────┼────F └─►HCOMMENT
MEDIUMtest/libsolutil/DominatorFinderTest.cpp319 // │ └─────┴─G◄─┴──────┘COMMENT
MEDIUMtest/libsolutil/DominatorFinderTest.cpp321 // └─────────────┘COMMENT
MEDIUMtest/externalTests/bleeps.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/bleeps.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/gnosis.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/gnosis.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/prb-math.py3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/prb-math.py20# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/euler.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/euler.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/uniswap.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/uniswap.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/brink.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/brink.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/ens.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/ens.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/gp2.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/gp2.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/zeppelin.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/zeppelin.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/chainlink.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/chainlink.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/yield-liquidator.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/yield-liquidator.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/elementfi.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/elementfi.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/trident.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/trident.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/colony.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/colony.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/pool-together.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/pool-together.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/solc-js/solc-js.sh3# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/externalTests/solc-js/solc-js.sh20#------------------------------------------------------------------------------COMMENT
MEDIUMtest/benchmarks/external.sh3#------------------------------------------------------------------------------COMMENT
MEDIUMtest/benchmarks/external.sh15# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/benchmarks/external.sh32#------------------------------------------------------------------------------COMMENT
MEDIUMtest/benchmarks/external-setup.sh3#------------------------------------------------------------------------------COMMENT
MEDIUMtest/benchmarks/external-setup.sh10# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/benchmarks/external-setup.sh27#------------------------------------------------------------------------------COMMENT
MEDIUMtest/benchmarks/local.sh3#------------------------------------------------------------------------------COMMENT
MEDIUMtest/benchmarks/local.sh5# ------------------------------------------------------------------------------COMMENT
MEDIUMtest/benchmarks/local.sh22#------------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs.sh3#------------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs.sh10# ------------------------------------------------------------------------------COMMENT
MEDIUMdocs/docs.sh27#------------------------------------------------------------------------------COMMENT
87 more matches not shown…
Over-Commented Block404 hits · 404 pts
SeverityFileLineSnippetContext
LOWsolc/CommandLineInterface.h21 * Solidity command line interface.COMMENT
LOWsolc/CommandLineInterface.h61 /// expected to exit with a non-zero exit code despite there being no error.COMMENT
LOWsolc/CommandLineInterface.h121COMMENT
LOWsolc/CommandLineInterface.cpp21 * @date 2014COMMENT
LOWsolc/CommandLineInterface.cpp41COMMENT
LOWsolc/CommandLineInterface.cpp61#include <range/v3/view/map.hpp>COMMENT
LOWsolc/CommandLineParser.h21#pragma onceCOMMENT
LOWsolc/CommandLineParser.h301 /// The object can be used to parse command-line arguments or to generate the help screen.COMMENT
LOWlibevmasm/AssemblyItem.h21 */COMMENT
LOWlibevmasm/Assembly.cpp21 */COMMENT
LOWlibevmasm/KnownState.h21 * @date 2015COMMENT
LOWlibevmasm/KnownState.h41#pragma warning(pop)COMMENT
LOWlibevmasm/KnownState.h161 /// and stores the new value at the given slot.COMMENT
LOWlibevmasm/Assembly.h21#include <libevmasm/Instruction.h>COMMENT
LOWlibevmasm/Assembly.h161 /// Constructs an @a Assembly from the serialized JSON representation.COMMENT
LOWlibevmasm/LinkerObject.h61 {COMMENT
LOWlibevmasm/Inliner.cpp21 */COMMENT
LOWlibevmasm/SemanticInformation.h61 /// Unknown if not provided.COMMENT
LOWlibevmasm/CommonSubexpressionEliminator.h21 * @date 2015COMMENT
LOWlibevmasm/GasMeter.h241 /// @returns the gas cost of the supplied data, depending whether it is in creation code, or not.COMMENT
LOWlibsolutil/Numeric.h21COMMENT
LOWlibsolutil/CommonData.h21 *COMMENT
LOWlibsolutil/CommonData.h441/// Convert a single byte to a string of hex characters (of length two),COMMENT
LOWlibsolutil/CommonData.h581/// sequence of @tparam N elements that starts with the second element of the previousCOMMENT
LOWlibsolutil/StringUtils.h41// Calculates the Damerau–Levenshtein distance between _str1 and _str2 and returns true if that distance is not greater COMMENT
LOWlibsolutil/StringUtils.h101 return {};COMMENT
LOWlibsolutil/Exceptions.h21#include <liblangutil/SourceLocation.h>COMMENT
LOWlibsolutil/Exceptions.h81/// exception was thrown from.COMMENT
LOWlibsolutil/Result.h21COMMENT
LOWlibsolutil/Visitor.h61// (Run-Time Check Failure #2 - Stack around the variable '....' was corrupted).COMMENT
LOWlibsolutil/Common.h21 *COMMENT
LOWlibsolutil/picosha2.h21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INCOMMENT
LOWlibsolutil/DominatorFinder.h21 * https://www.cs.princeton.edu/courses/archive/spr03/cs423/download/dominators.pdfCOMMENT
LOWlibsolutil/DominatorFinder.h381 /// The entry vertex is the first element of the vector.COMMENT
LOWlibsolutil/DominatorFinder.h401 /// Maps a vertex' DFS index (i.e. array index) to its immediate dominator DFS index.COMMENT
LOWlibsolutil/Profiler.h21#include <chrono>COMMENT
LOWliblangutil/Exceptions.h21 * Solidity exception hierarchy.COMMENT
LOWliblangutil/Token.h1// Copyright 2006-2012, the V8 project authors. All rights reserved.COMMENT
LOWliblangutil/Token.h21// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTCOMMENT
LOWliblangutil/Token.h41// along with solidity. If not, see <http://www.gnu.org/licenses/>.COMMENT
LOWliblangutil/Token.cpp1// Copyright 2006-2012, the V8 project authors. All rights reserved.COMMENT
LOWliblangutil/Token.cpp21// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTCOMMENT
LOWtools/yulPhaser/Mutations.h61COMMENT
LOWtools/yulPhaser/Mutations.h81/// unless there is no other choice (i.e. one of the chromosomes is empty).COMMENT
LOWtools/yulPhaser/Program.cpp21#include <liblangutil/CharStream.h>COMMENT
LOWtools/yulPhaser/Phaser.cpp21#include <tools/yulPhaser/AlgorithmRunner.h>COMMENT
LOWtools/yulPhaser/Phaser.h21 */COMMENT
LOWtools/yulPhaser/Common.h21COMMENT
LOWtest/Common.cpp21#include <test/EVMHost.h>COMMENT
LOWtest/cmdlineTests.sh1#!/usr/bin/env bashCOMMENT
LOWtest/CommonSyntaxTest.cpp21#include <test/TestCase.h>COMMENT
LOWtest/InteractiveTests.h21#include <test/TestCase.h>COMMENT
LOWtest/InteractiveTests.h41#include <test/libyul/EVMCodeTransformTest.h>COMMENT
LOWtest/EVMHost.cpp21 */COMMENT
LOWtest/soltest.cpp21 * Stub for generating main boost.test module.COMMENT
LOWtest/external_tests.py1#!/usr/bin/env python3COMMENT
LOWtest/localeTest.sh1#!/usr/bin/env bashCOMMENT
LOWtest/ExecutionFramework.h21 * Framework for executing contracts and testing them using RPC.COMMENT
LOWtest/solc/CommandLineInterfaceAllowPaths.cpp21#include <solc/CommandLineInterface.h>COMMENT
LOWtest/solc/CommandLineInterface.cpp21#include <solc/CommandLineInterface.h>COMMENT
344 more matches not shown…
Self-Referential Comments54 hits · 194 pts
SeverityFileLineSnippetContext
MEDIUMtest/cmdlineTests.sh11# This file is part of solidity.COMMENT
MEDIUMtest/external_tests.py4# This file is part of solidity.COMMENT
MEDIUMtest/localeTest.sh12# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/bleeps.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/gnosis.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/prb-math.py4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/euler.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/uniswap.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/brink.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/ens.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/gp2.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/zeppelin.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/chainlink.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/yield-liquidator.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/elementfi.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/trident.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/colony.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/pool-together.sh4# This file is part of solidity.COMMENT
MEDIUMtest/externalTests/solc-js/solc-js.sh4# This file is part of solidity.COMMENT
MEDIUMtest/benchmarks/external.sh16# This file is part of solidity.COMMENT
MEDIUMtest/benchmarks/external-setup.sh11# This file is part of solidity.COMMENT
MEDIUMtest/benchmarks/local.sh6# This file is part of solidity.COMMENT
MEDIUMdocs/conf.py7# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMdocs/docs.sh11# This file is part of solidity.COMMENT
MEDIUMscripts/common.sh4# This file is part of solidity.COMMENT
MEDIUMscripts/get_version.sh11# This file is part of solidity.COMMENT
MEDIUMscripts/test_emscripten.sh11# This file is part of solidity.COMMENT
MEDIUMscripts/build_emscripten.sh11# This file is part of solidity.COMMENT
MEDIUMscripts/get_nightly_version.sh12# This file is part of solidity.COMMENT
MEDIUMscripts/docs_version_pragma_check.sh4# This file is part of solidity.COMMENT
MEDIUMscripts/tests.sh11# This file is part of solidity.COMMENT
MEDIUMscripts/ASTImportTest.sh4# This file is part of solidity.COMMENT
MEDIUMscripts/list_contributors.sh15# This file is part of solidity.COMMENT
MEDIUMscripts/yul_coverage.sh36# This file is part of solidity.COMMENT
MEDIUMscripts/common_cmdline.sh4# This file is part of solidity.COMMENT
MEDIUMscripts/docker_deploy_manual.sh28# Create a classic PAT with write:packages scope by visiting the following URL:COMMENT
MEDIUMscripts/wasm-rebuild/docker-scripts/genbytecode.sh10# This file is part of solidity.COMMENT
MEDIUMscripts/ci/build_emscripten.sh17# This file is part of solidity.COMMENT
MEDIUMscripts/ci/buildpack-deps_test_emscripten.sh17# This file is part of solidity.COMMENT
MEDIUMscripts/bytecodecompare/prepare_report.py350 # Create a copy that we can use directly with the CLI interfaceCOMMENT
MEDIUMscripts/externalTests/update_external_repos.sh21# This file is part of solidity.COMMENT
MEDIUMscripts/externalTests/common.sh4# This file is part of solidity.COMMENT
MEDIUMscripts/externalTests/summarize_benchmarks.sh16# This file is part of solidity.COMMENT
MEDIUMscripts/externalTests/test_helpers.py4# This file is part of solidity.COMMENT
MEDIUMscripts/externalTests/merge_benchmarks.sh15# This file is part of solidity.COMMENT
MEDIUMscripts/externalTests/runners/foundry.py4# This file is part of solidity.COMMENT
MEDIUMscripts/externalTests/runners/base.py4# This file is part of solidity.COMMENT
MEDIUM…pts/solc-bin/bytecode_reports_for_modified_binaries.sh32# This file is part of solidity.COMMENT
MEDIUMscripts/solc-bin/compare_bytecode_reports.sh18# This file is part of solidity.COMMENT
MEDIUM.circleci/soltest.sh18# This file is part of solidity.COMMENT
MEDIUM.circleci/compare_bytecode_reports.sh8# This file is part of solidity.COMMENT
MEDIUM.circleci/osx_install_dependencies.sh10# This file is part of solidity.COMMENT
MEDIUM.circleci/parallel_bytecode_report.sh12# This file is part of solidity.COMMENT
MEDIUM.circleci/soltest_all.sh10# This file is part of solidity.COMMENT
Hyper-Verbose Identifiers87 hits · 83 pts
SeverityFileLineSnippetContext
LOWtest/external_tests.py43def display_available_external_tests(_):CODE
LOWtest/ethdebugSchemaTests/conftest.py32def ethdebug_schema_repository(ethdebug_schema_dir):CODE
LOW…ethdebugSchemaTests/test_ethdebug_schema_conformity.py107def test_resources_match_standard_json_sources(solc_output):CODE
LOW…ethdebugSchemaTests/test_ethdebug_schema_conformity.py116def test_resources_include_standard_json_source_contents(standard_json_input, solc_output):CODE
LOW…ethdebugSchemaTests/test_ethdebug_schema_conformity.py128def test_resources_include_empty_type_and_pointer_tables(solc_output):CODE
LOW…ethdebugSchemaTests/test_ethdebug_schema_conformity.py133def test_resources_and_compilation_share_compilation(solc_output):CODE
LOWtest/evmc/evmc.h1122typedef evmc_capabilities_flagset (*evmc_get_capabilities_fn)(struct evmc_vm* vm);CODE
LOW…ts/~bytecode_equivalence_with_unused_contracts/test.py21def test_bytecode_equivalence():CODE
LOW…ivalence_independent_of_import_discovery_order/test.py21def test_bytecode_equivalence():CODE
LOWtest/scripts/test_externalTests_benchmark_downloader.py226 def test_download_benchmarks_branch(download_file_mock):CODE
LOWtest/scripts/test_externalTests_benchmark_downloader.py248 def test_download_benchmarks_pr(download_file_mock):CODE
LOWtest/scripts/test_externalTests_benchmark_downloader.py270 def test_download_benchmarks_base_of_pr(download_file_mock):CODE
LOWtest/scripts/test_externalTests_benchmark_downloader.py291 def test_download_benchmarks_unauthorized_request(self, _):CODE
LOWtest/scripts/test_externalTests_benchmark_diff.py131 def _assert_single_value_diff_matches(self, differ, cases, nest_result=True, nestings=None):CODE
LOWtest/scripts/test_externalTests_benchmark_diff.py153 def test_number_diff_absolute_json(self):CODE
LOWtest/scripts/test_externalTests_benchmark_diff.py213 def test_number_diff_humanized_json_and_console(self):CODE
LOWtest/scripts/test_externalTests_benchmark_diff.py243 def test_number_diff_humanized_markdown(self):CODE
LOWtest/scripts/test_externalTests_benchmark_diff.py385 def test_diff_table_formatter(self):CODE
LOWtest/scripts/test_externalTests_benchmark_diff.py393 def test_diff_table_formatter_json_absolute(self):CODE
LOWtest/scripts/test_externalTests_benchmark_diff.py447 def test_diff_table_formatter_console_relative(self):CODE
LOWtest/scripts/test_externalTests_benchmark_diff.py476 def test_diff_table_formatter_markdown_humanized(self):STRING
LOWtest/scripts/test_gas_diff_stats.py12 def test_collect_statistics_should_fail_on_empty_diff(self):CODE
LOWtest/scripts/test_gas_diff_stats.py16 def test_collect_statistics_should_accept_whitespace_only_diff(self):CODE
LOWtest/scripts/test_gas_diff_stats.py22 def test_collect_statistics_should_report_sum_of_gas_costs(self):CODE
LOWtest/scripts/test_gas_diff_stats.py58 def test_collect_statistics_should_ignore_ir_costs(self):STRING
LOWtest/scripts/test_gas_diff_stats.py77 def test_collect_statistics_should_ignore_unchanged_costs(self):STRING
LOWtest/scripts/test_gas_diff_stats.py95 def test_collect_statistics_should_include_code_deposit_in_total_cost(self):STRING
LOWtest/scripts/test_bytecodecompare_prepare_report.py91 def test_format_report_should_print_error_if_contract_report_list_is_missing(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py98 def test_format_report_should_not_print_anything_if_contract_report_list_is_empty(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py107 def test_aggregate_bytecode_and_metadata_present(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py112 def test_aggregate_bytecode_missing(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py117 def test_aggregate_metadata_missing(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py122 def test_aggregate_no_contract_reports(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py127 def test_aggregate_missing_contract_report_list(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py132 def test_aggregate_multiple_contract_reports(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py157 def test_load_source_should_strip_smt_pragmas_if_requested(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py166 def test_load_source_should_not_strip_smt_pragmas_if_not_requested(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py170 def test_load_source_preserves_lf_newlines(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py180 def test_load_source_preserves_crlf_newlines(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py190 def test_load_source_preserves_cr_newlines(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py200 def test_load_source_preserves_mixed_newlines(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py376 def test_parse_standard_json_output_should_report_error_on_compiler_errors(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py382 def test_parse_standard_json_output_should_report_error_on_empty_json(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py387 def test_parse_standard_json_output_should_report_error_if_contracts_is_empty(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py394 def test_parse_standard_json_output_should_report_error_if_every_file_has_no_contracts(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py425 def test_parse_standard_json_output_should_report_error_on_unimplemented_feature_error(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py430 def test_parse_standard_json_output_should_report_error_on_stack_too_deep_error(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py435 def test_parse_standard_json_output_should_report_error_on_code_generation_error(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py442 def test_parse_standard_json_output_should_report_missing_if_value_is_just_whitespace(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py212 def test_prepare_compiler_input_should_work_with_standard_json_interface(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py239 def test_prepare_compiler_input_should_work_with_cli_interface(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py257 def test_prepare_compiler_input_for_json_preserves_newlines(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py291 def test_prepare_compiler_input_for_cli_preserves_newlines(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py305 def test_prepare_compiler_input_for_cli_should_handle_force_no_optimize_yul_flag(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py323 def test_prepare_compiler_input_for_cli_should_not_use_metadata_option_if_not_supported(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py343 def test_parse_standard_json_output(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py408 def test_parse_standard_json_output_should_not_report_error_if_there_is_at_least_one_file_with_contracts(self):CODE
LOWtest/scripts/test_bytecodecompare_prepare_report.py500 def test_parse_cli_output_should_report_error_on_compiler_errors(self):STRING
LOWtest/scripts/test_bytecodecompare_prepare_report.py506 def test_parse_cli_output_should_report_error_on_empty_output(self):STRING
LOWtest/scripts/test_bytecodecompare_prepare_report.py511 def test_parse_cli_output_should_report_missing_bytecode_and_metadata(self):STRING
27 more matches not shown…
Cross-Language Confusion4 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtest/formal/combine_byte_shr_1.py7given B % 8 == 0 && A < n_bits/8 && B <= n_bits && A >= B / 8STRING
HIGHtest/formal/rule.py30 self.solver.push()CODE
HIGHtest/formal/combine_byte_shl.py7given B % 8 == 0 && A <= 32 && B <= 256STRING
HIGHscripts/regressions.py109 cmd = f"find {corpus_dir} -type f | xargs -n1 sh -c '{fuzzer} $0 || exit 255'"CODE
Example Usage Blocks7 hits · 14 pts
SeverityFileLineSnippetContext
LOWtest/localeTest.sh8# Usage:COMMENT
LOWscripts/list_contributors.sh11# Usage:COMMENT
LOWscripts/yul_coverage.sh6# Usage:COMMENT
LOWscripts/externalTests/update_external_repos.sh13# Usage:COMMENT
LOWscripts/externalTests/summarize_benchmarks.sh8# Usage:COMMENT
LOWscripts/externalTests/merge_benchmarks.sh7# Usage:COMMENT
LOW…pts/solc-bin/bytecode_reports_for_modified_binaries.sh16# Usage:COMMENT
Deep Nesting11 hits · 11 pts
SeverityFileLineSnippetContext
LOWscripts/pylint_all.py19CODE
LOWscripts/extract_test_cases.py12CODE
LOWscripts/isolate_tests.py74CODE
LOWscripts/isolate_tests.py114CODE
LOWscripts/error_codes.py112CODE
LOWscripts/error_codes.py287CODE
LOWscripts/bytecodecompare/prepare_report.py368CODE
LOWscripts/externalTests/benchmark_diff.py136CODE
LOWscripts/externalTests/parse_eth_gas_report.py188CODE
LOWscripts/externalTests/download_benchmarks.py117CODE
LOWscripts/common/rest_api_helpers.py16CODE
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMdocs/_static/js/initialize.js158 // TODO: We should consider a more robust way to handle this in the future.COMMENT
LOWscripts/yul_coverage.sh20# e.g. ./yul_coverage.sh --successful --list-files will just return a list ofCOMMENT
LOWscripts/yul_coverage.sh29# To change the used compiler, just set the SOLC environment variable.COMMENT
Excessive Try-Catch Wrapping3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtest/external_tests.py144 print(f"Error: {exception}", file=sys.stderr)CODE
MEDIUMtest/external_tests.py147 print(f"Error: {exception}", file=sys.stderr)CODE
MEDIUMscripts/error_codes.py22 print(f"Error reading: {file_name}")CODE
Structural Annotation Overuse3 hits · 4 pts
SeverityFileLineSnippetContext
LOWscripts/externalTests/common.sh619 # NOTE: The output of this function is a series of concatenated JSON dicts rather than a list.COMMENT
LOWscripts/externalTests/common.sh638 # NOTE: The output of this function is a series of concatenated JSON dicts rather than a list.COMMENT
LOWlibyul/AsmAnalysis.cpp690 // NOTE: This function uses the default EVM version instead of the currently selected one.COMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWlibsolutil/DominatorFinder.h252 // TODO: implement sophisticated link-eval algorithm as shown in pg 132COMMENT
LOWlibsolidity/interface/CompilerStack.cpp1924 /// TODO: implement + overload to avoid the need of +=COMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest/tools/ossfuzz/protoToYul.cpp1293 // This variable stores the <string> part i.e., literal minus the first and lastCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…pts/solc-bin/bytecode_reports_for_modified_binaries.sh107# Set locale to C to prevent it from affecting glob sort order.COMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/ext/remix_code_links.py9logger = logging.getLogger(__name__)CODE