Repository Analysis

swiftlang/swift

The Swift Programming Language

9.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of swiftlang/swift, a Swift project with 70,161 GitHub stars. SynthScan v2.0 examined 3,670,256 lines of code across 27934 source files, recording 32396 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 9.3 places this repository in the Low AI signal 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).

9.3
Adjusted Score
9.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
70.2K
Stars
Swift
Language
3.7M
Lines of Code
27.9K
Files
32.4K
Pattern Hits
2026-07-14
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 20HIGH 80MEDIUM 987LOW 31309

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 32396 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 Block30246 hits · 29099 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1361 # FIXME: guess target variant based on the host.COMMENT
LOWCMakeLists.txt1601 list(APPEND CMAKE_REQUIRED_DEFINITIONS ${LIBXML2_DEFINITIONS})COMMENT
LOWCONTRIBUTING.md121//COMMENT
LOWCONTRIBUTING.md141// Licensed under Apache License v2.0 with Runtime Library ExceptionCOMMENT
LOWbenchmark/cxx-source/CxxSetToCollection.swift1//===--- CxxSetToCollection.swift -----------------------------------------===//COMMENT
LOWbenchmark/cxx-source/CxxStringConversion.swift1//===--- CxxStringConversion.swift ----------------------------------------===//COMMENT
LOWbenchmark/cxx-source/ReadAccessor.swift1// Subscripts.swift - Very brief descriptionCOMMENT
LOWbenchmark/cxx-source/CreateObjects.swift1//===--- CreateObjects.swift ----------------------------------------------===//COMMENT
LOWbenchmark/cxx-source/CxxVectorSum.swift1//===--- CxxVectorSum.swift -----------------------------------------------===//COMMENT
LOWbenchmark/cxx-source/CxxSpanTests.swift1//===--- CxxSpanTests.swift ----------------------------------------===//COMMENT
LOWbenchmark/utils/TestsUtils.swift1//===--- TestsUtils.swift -------------------------------------------------===//COMMENT
LOWbenchmark/utils/TestsUtils.swift41 // into a benchmark, important functionality like JSON parsing, etc.COMMENT
LOWbenchmark/utils/TestsUtils.swift61 // code--it should exercise a known performance critical area. Typically theseCOMMENT
LOWbenchmark/utils/TestsUtils.swift161 /// Optional `legacyFactor` is a multiplication constant applied to runtimeCOMMENT
LOWbenchmark/utils/DriverUtils.swift1//===--- DriverUtils.swift ------------------------------------------------===//COMMENT
LOWbenchmark/utils/DriverUtils.swift421 #elseCOMMENT
LOWbenchmark/utils/ArgParse.swift1//===--- ArgParse.swift ---------------------------------------------------===//COMMENT
LOWbenchmark/utils/main.swift1//===--- main.swift -------------------------------------------*- swift -*-===//COMMENT
LOWbenchmark/utils/convertToJSON.py1#!/usr/bin/env python3COMMENT
LOWbenchmark/utils/convertToJSON.py21# 2,Ackermann,1,805,805,805,0,805COMMENT
LOWbenchmark/utils/convertToJSON.py41# 805COMMENT
LOWbenchmark/utils/ObjectiveCTests/ObjectiveCTests.h1//===--- ObjectiveCTests.h ------------------------------------------------===//COMMENT
LOWbenchmark/utils/ObjectiveCTests/ObjectiveCTests.m1//===--- ObjectiveCTests.m ------------------------------------------------===//COMMENT
LOWbenchmark/utils/LibProc/LibProcIncludeSystemHeader.h1//===--- LibProcIncludeSystemHeader.h -------------------------------------===//COMMENT
LOW…ark/single-source/ObserverPartiallyAppliedMethod.swift1//===----------------------------------------------------------------------===//COMMENT
LOWbenchmark/single-source/DiffingMyers.swift1//===--- DiffingMyers.swift -----------------------------------------------===//COMMENT
LOWbenchmark/single-source/DictTest.swift1//===--- DictTest.swift ---------------------------------------------------===//COMMENT
LOWbenchmark/single-source/Exclusivity.swift1//===--- Exclusivity.swift -------------------------------------------------===//COMMENT
LOWbenchmark/single-source/DropLast.swift1//===--- DropLast.swift ---------------------------------------*- swift -*-===//COMMENT
LOWbenchmark/single-source/StrComplexWalk.swift1//===--- StrComplexWalk.swift ---------------------------------------------===//COMMENT
LOWbenchmark/single-source/FindStringNaive.swift1//===--- FindStringNaive.swift --------------------------------------------===//COMMENT
LOWbenchmark/single-source/ReduceInto.swift1//===--- ReduceInto.swift -------------------------------------------------===//COMMENT
LOWbenchmark/single-source/ArrayOfRef.swift1//===--- ArrayOfRef.swift -------------------------------------------------===//COMMENT
LOWbenchmark/single-source/ClassArrayGetter.swift1//===--- ClassArrayGetter.swift -------------------------------------------===//COMMENT
LOWbenchmark/single-source/PrefixWhile.swift1//===--- PrefixWhile.swift ------------------------------------*- swift -*-===//COMMENT
LOWbenchmark/single-source/PrefixWhile.swift241COMMENT
LOWbenchmark/single-source/Fibonacci.swift1//===--- Fibonacci.swift --------------------------------------------------===//COMMENT
LOWbenchmark/single-source/Calculator.swift1//===--- Calculator.swift -------------------------------------------------===//COMMENT
LOWbenchmark/single-source/Diffing.swift1//===--- Diffing.swift ----------------------------------------------------===//COMMENT
LOWbenchmark/single-source/PopFrontGeneric.swift1//===--- PopFrontGeneric.swift --------------------------------------------===//COMMENT
LOWbenchmark/single-source/Hash.swift1//===--- Hash.swift -------------------------------------------------------===//COMMENT
LOWbenchmark/single-source/DictionaryCopy.swift1//===--- DictionaryCopy.swift ---------------------------------------------===//COMMENT
LOWbenchmark/single-source/BucketSort.swift1//===--- BucketSort.swift -------------------------------------------------===//COMMENT
LOWbenchmark/single-source/ArrayOfGenericRef.swift1//===--- ArrayOfGenericRef.swift ------------------------------------------===//COMMENT
LOWbenchmark/single-source/OpenClose.swift1//===--- OpenClose.swift --------------------------------------------------===//COMMENT
LOWbenchmark/single-source/StringEdits.swift1//===--- StringEdits.swift ------------------------------------------------===//COMMENT
LOWbenchmark/single-source/FloatingPointPrinting.swift1//===--- FloatingPointPrinting.swift -----------------------------------===//COMMENT
LOWbenchmark/single-source/IntegerParsing.swift1//===--- IntegerParsing.swift -------------------------------------------===//COMMENT
LOWbenchmark/single-source/ObserverClosure.swift1//===----------------------------------------------------------------------===//COMMENT
LOWbenchmark/single-source/ObjectAllocation.swift1//===--- ObjectAllocation.swift -------------------------------------------===//COMMENT
LOWbenchmark/single-source/RangeIteration.swift1//===--- RangeAssignment.swift --------------------------------------------===//COMMENT
LOWbenchmark/single-source/InsertCharacter.swift1//===--- InsertCharacter.swift --------------------------------------------===//COMMENT
LOWbenchmark/single-source/BufferFind.swift1//===--- BufferFind.swift -------------------------------------------===//COMMENT
LOWbenchmark/single-source/RemoveWhere.swift1//===--- RemoveWhere.swift ------------------------------------------------===//COMMENT
LOWbenchmark/single-source/MapReduce.swift1//===--- MapReduce.swift --------------------------------------------------===//COMMENT
LOWbenchmark/single-source/SortLettersInPlace.swift1//===--- SortLettersInPlace.swift -----------------------------------------===//COMMENT
LOWbenchmark/single-source/XorLoop.swift1//===--- XorLoop.swift ----------------------------------------------------===//COMMENT
LOWbenchmark/single-source/ArraySliceTests.swift1//===--- ArraySliceTests.swift --------------------------------------------===//COMMENT
LOWbenchmark/single-source/ArrayOfPOD.swift1//===--- ArrayOfPOD.swift -------------------------------------------------===//COMMENT
LOWbenchmark/single-source/ObserverForwarderStruct.swift1//===----------------------------------------------------------------------===//COMMENT
30186 more matches not shown…
Decorative Section Separators872 hits · 2495 pts
SeverityFileLineSnippetContext
MEDIUMvalidation-test/lit.cfg11# -----------------------------------------------------------------------------COMMENT
MEDIUM…idation-test/ParseableInterface/verify_all_overlays.py18# -----------------------------COMMENT
MEDIUMtest/swift_test.py11# -----------------------------------------------------------------------------COMMENT
MEDIUMtest/swift_test.py15# -----------------------------------------------------------------------------COMMENT
MEDIUMtest/lit.cfg11# -----------------------------------------------------------------------------COMMENT
MEDIUMtest/lit.cfg19# -----------------------------------------------------------------------------COMMENT
MEDIUMtest/Driver/Inputs/filelists/fake-ld.py12# ----------------------------------------------------------------------------COMMENT
MEDIUMtest/Driver/Inputs/filelists/check-filelist-abc.py12# ----------------------------------------------------------------------------COMMENT
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/check-is-old.py13# ----------------------------------------------------------------------------COMMENT
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/check-is-old.py18# ----------------------------------------------------------------------------COMMENT
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/make-old.py13# ----------------------------------------------------------------------------COMMENT
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/make-old.py17# ----------------------------------------------------------------------------COMMENT
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/check-is-new.py13# ----------------------------------------------------------------------------COMMENT
MEDIUMtest/ModuleInterface/ModuleCache/Inputs/check-is-new.py18# ----------------------------------------------------------------------------COMMENT
MEDIUMtest/stdlib/FlattenDistanceFromTo.swift45 /// ─────────────────COMMENT
MEDIUMtest/stdlib/FlattenDistanceFromTo.swift53 /// ─────────────────COMMENT
MEDIUMtest/stdlib/FlattenDistanceFromTo.swift87 /// ────────────────────────────────COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h82/// ┌─────┐COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h83/// ┌────────────────┤ SDK ├───────────────┐COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h84/// │ └─────┘ │COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h85/// │ ┌────────────────┐ │ ┌────────────────┐COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h86/// │ ┌───────┤ Framework Dirs ├────────┐ │ ┌┤ Prebuilt Cache ├┐COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h87/// │ │ └────────────────┘ │ │ │└────────────────┘│COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h92/// │ └────┼───────┼───────┼────────────┘ │ └─────╫──────┼────╫┘COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h93/// │ │ │ └──────────────┼───────╫──────┘ ║COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h94/// └───────┼───────┼──────────────────────┘ ║ ║COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h95/// │ │ ┌───────────────┐ ║ ║COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h96/// │ ┌────┼───┤ Module Cache ├────────┐ ║ ║COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h97/// │ │ │ └───────────────┘ │ ║ ║COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h102/// │ └────────────┼───────╫────────────┘ ║COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h103/// └───────────────┘ ╚══════════════════════════╝COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h53/// ┌───────────────────────────────┐COMMENT
MEDIUMinclude/swift/Frontend/ModuleInterfaceLoader.h63/// └───────────────────────────────┘COMMENT
MEDIUMinclude/swift/AST/AvailabilityDomain.h56/// *────────Swift──────SwiftLang──────Windows──...COMMENT
MEDIUMinclude/swift/AST/AvailabilityDomain.h60/// ┌──────┬─┴──┬──────────────┐COMMENT
MEDIUMinclude/swift/AST/AvailabilityDomain.h63/// │ │ │ ┌──────┼───────────┐COMMENT
MEDIUMinclude/swift/SIL/TypeSubstCloner.h337 // ┌────────────────┐ remap ┌─────────────────────────┐COMMENT
MEDIUMinclude/swift/SIL/TypeSubstCloner.h338 // │ orig. fn type │ ───────(a)──────► │ remapped orig. fn type │COMMENT
MEDIUMinclude/swift/SIL/TypeSubstCloner.h339 // └────────────────┘ └─────────────────────────┘COMMENT
MEDIUMinclude/swift/SIL/TypeSubstCloner.h344 // ┌────────────────┐ remap ┌─────────────────────────┐COMMENT
MEDIUMinclude/swift/SIL/TypeSubstCloner.h345 // │ deriv. fn type │ ───────(c)──────► │ remapped deriv. fn type │COMMENT
MEDIUMinclude/swift/SIL/TypeSubstCloner.h346 // └────────────────┘ └─────────────────────────┘COMMENT
MEDIUMutils/python_lint.py29# -----------------------------------------------------------------------------COMMENT
MEDIUMutils/python_lint.py53# -----------------------------------------------------------------------------STRING
MEDIUMutils/python_lint.py73# -----------------------------------------------------------------------------STRING
MEDIUMutils/build_swift/build_swift/presets.py36# -----------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/presets.py42# -----------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/presets.py100# -----------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/presets.py178# -----------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/presets.py209# -----------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/presets.py220 # -------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/presets.py238 # -------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/presets.py317 # -------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/constants.py27# --------------------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/constants.py45# --------------------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/constants.py59# --------------------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/constants.py187# --------------------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/shell.py77# -----------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/shell.py156# -----------------------------------------------------------------------------COMMENT
MEDIUMutils/build_swift/build_swift/shell.py191# -----------------------------------------------------------------------------COMMENT
812 more matches not shown…
Hyper-Verbose Identifiers554 hits · 588 pts
SeverityFileLineSnippetContext
LOWbenchmark/scripts/test_utils.py85 def assert_called_all_expected(self):CODE
LOWbenchmark/scripts/create_benchmark.py136def insert_line_alphabetically(name, new_line, lines, regex):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py73 def test_command_help_lists_commands(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py78 def test_run_benchmarks_by_name_or_ordinal(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py82 def test_run_benchmarks_matching_pattern(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py87 def test_run_benchmarks_and_filters_are_exclusive(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py138 def test_check_supports_verbose_output(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py143 def test_check_supports_markdown_output(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py148 def test_check_flags_are_mutually_exclusive(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py329 def test_run_benchmark_with_multiple_samples(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py339 def test_run_benchmark_with_specified_number_of_iterations(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py345 def test_run_benchmark_for_specified_time(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py351 def test_run_benchmark_in_verbose_mode(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py578 def test_init_writes_table_header(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py582 def test_close_writes_final_newlines(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py586 def test_errors_and_warnings_start_new_rows_with_icons(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py647 def test_supports_verbose_output(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py655 def test_uses_report_formatter(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py662 def test_uses_optional_markdown_report_formatter(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py58 def test_requires_command_argument(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py103 def test_optimization_argument(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py223 def test_gets_list_of_precommit_benchmarks(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py243 def test_gets_list_of_all_benchmarks_when_benchmarks_args_exist(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py252 def test_filters_benchmarks_by_pattern(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py369 def test_parse_results_from_running_benchmarks(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py388 def test_run_benchmark_independent_samples(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py482 def test_deterministic_hashing(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py554 def test_no_prefix_for_base_logging(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py597 def test_info_stays_in_table_cell_breaking_line_row_to_subscript(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py606 def test_names_in_code_format(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py755 def test_benchmark_name_matches_naming_conventions(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py827 def test_benchmark_runtime_range(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py909 def test_benchmark_has_no_significant_setup_overhead(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py963 def test_benchmark_setup_takes_reasonable_time(self):CODE
LOWbenchmark/scripts/test_Benchmark_Driver.py992 def test_benchmark_has_constant_memory_use(self):CODE
LOWbenchmark/scripts/test_compare_perf_tests.py88 def test_init_delta_quantiles(self):CODE
LOWbenchmark/scripts/test_compare_perf_tests.py99 def test_init_oversampled_quantiles(self):CODE
LOWbenchmark/scripts/test_compare_perf_tests.py427 def test_parse_results_tab_delimited(self):STRING
LOWbenchmark/scripts/test_compare_perf_tests.py434 def test_parse_results_formatted_text(self):STRING
LOWbenchmark/scripts/test_compare_perf_tests.py463 def test_parse_delta_quantiles(self):CODE
LOWbenchmark/scripts/test_compare_perf_tests.py838 def test_required_input_arguments(self):CODE
LOWbenchmark/scripts/test_compare_perf_tests.py867 def test_delta_threshold_argument(self):CODE
LOWbenchmark/scripts/test_compare_perf_tests.py894 def test_changes_only_argument(self):CODE
LOW…SourceKit/tools/sourcekitd/include/sourcekitd/plugin.h22typedef sourcekitd_variant_type_t (*sourcekitd_variant_functions_get_type_t)(CODE
LOWtest/lit.cfg76def darwin_get_watchos_sim_vers():CODE
LOWtest/lit.cfg127def get_lldb_python_interpreter(lldb_build_root):CODE
LOWtest/lit.cfg143def escape_for_substitute_captures(s):CODE
LOWtest/lit.cfg155def configure_individual_test_timeout():CODE
LOWtest/lit.cfg529def availability_macro_to_swift_abi_target_triple(macro):CODE
LOWtest/lit.cfg579def availability_macro_to_current(macro):CODE
LOWtest/lit.cfg1325def use_interpreter_for_simple_runs():STRING
LOWtest/lit.cfg2501def construct_library_path_env(dirs):STRING
LOWtest/attr/Inputs/access-note-gen.py116def move_at_objc_to_access_note(access_notes_file, arg, maybe_bad, offset,CODE
LOWtest/PlaygroundTransform/lit.local.cfg4def escape_for_substitute_captures(s):CODE
LOWutils/swift_build_sdk_interfaces.py159def collect_framework_modules(sdk, xfails, sdk_relative_framework_dirs):CODE
LOWutils/swift_build_sdk_interfaces.py176def collect_non_framework_modules(sdk, xfails, sdk_relative_search_dirs):CODE
LOWutils/swift_build_sdk_interfaces.py207def run_with_module_cache_retry(command_args, module_cache_path, dry_run):CODE
LOWutils/analyze_code_size.py280 def categorize_by_mangled_name(self, symbol):CODE
LOWutils/sil-opt-verify-all-modules.py22def get_verify_toolchain_modules_commands(toolchain_dir, sil_opt):CODE
LOWutils/sil-opt-verify-all-modules.py46def get_verify_build_dir_commands(build_dir, toolchain_name='XcodeDefault'):CODE
494 more matches not shown…
Cross-File Repetition68 hits · 340 pts
SeverityFileLineSnippetContext
HIGHbenchmark/single-source/CharacterRecognizer.swift0the powerful programming language that is also easy to learn. 손쉽게 학습할 수 있는 강력한 프로그래밍 언어. 🪙 a 🥞 short 🍰 piece 🫘 of 🌰 textSTRING
HIGHbenchmark/single-source/StringDistance.swift0the powerful programming language that is also easy to learn. 손쉽게 학습할 수 있는 강력한 프로그래밍 언어. 🪙 a 🥞 short 🍰 piece 🫘 of 🌰 textSTRING
HIGHtest/stdlib/CharacterRecognizer.swift0the powerful programming language that is also easy to learn. 손쉽게 학습할 수 있는 강력한 프로그래밍 언어. 🪙 a 🥞 short 🍰 piece 🫘 of 🌰 textSTRING
HIGHtest/stdlib/StringIndex.swift0the powerful programming language that is also easy to learn. 손쉽게 학습할 수 있는 강력한 프로그래밍 언어. 🪙 a 🥞 short 🍰 piece 🫘 of 🌰 textSTRING
HIGH…ol/Sources/swift_snapshot_tool/bisect_toolchains.swift0the directory where toolchains should be downloaded to.STRING
HIGH…ol/Sources/swift_snapshot_tool/download_snapshot.swift0the directory where toolchains should be downloaded to.STRING
HIGH…t_tool/Sources/swift_snapshot_tool/run_toolchain.swift0the directory where toolchains should be downloaded to.STRING
HIGH…ld_support/swift_build_support/products/swiftsyntax.py0product_source_name() -> str the name of the source code directory of this product.STRING
HIGH…uild_support/swift_build_support/products/swiftdocc.py0product_source_name() -> str the name of the source code directory of this product.STRING
HIGH…support/swift_build_support/products/skstresstester.py0product_source_name() -> str the name of the source code directory of this product.STRING
HIGH…ild_support/swift_build_support/products/foundation.py0product_source_name() -> str the name of the source code directory of this product.STRING
HIGH…t_build_support/swift_build_support/products/xctest.py0product_source_name() -> str the name of the source code directory of this product.STRING
HIGH…upport/swift_build_support/products/swiftdoccrender.py0product_source_name() -> str the name of the source code directory of this product.STRING
HIGH…ld_support/swift_build_support/products/libdispatch.py0product_source_name() -> str the name of the source code directory of this product.STRING
HIGH…ft_build_support/swift_build_support/products/swift.py0product_source_name() -> str the name of the source code directory of this product.STRING
HIGH…ld_support/swift_build_support/products/swiftformat.py0product_source_name() -> str the name of the source code directory of this product.STRING
HIGH…ld_support/swift_build_support/products/stdlib_docs.py0return a list of products that this product depends uponSTRING
HIGH…_build_support/swift_build_support/products/product.py0return a list of products that this product depends uponSTRING
HIGH…pport/swift_build_support/products/staticswiftlinux.py0return a list of products that this product depends uponSTRING
HIGH…ift_build_support/swift_build_support/products/curl.py0is_build_script_impl_product -> bool whether this product is produced by build-script-implSTRING
HIGH…_build_support/swift_build_support/products/libxml2.py0is_build_script_impl_product -> bool whether this product is produced by build-script-implSTRING
HIGH…ift_build_support/swift_build_support/products/zlib.py0is_build_script_impl_product -> bool whether this product is produced by build-script-implSTRING
HIGH…ift_build_support/swift_build_support/products/curl.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl productsSTRING
HIGH…_build_support/swift_build_support/products/libxml2.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl productsSTRING
HIGH…ift_build_support/swift_build_support/products/zlib.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl productsSTRING
HIGH…ift_build_support/swift_build_support/products/curl.py0should_test() -> bool returns true if zlib should be tested. currently is set to falseSTRING
HIGH…_build_support/swift_build_support/products/libxml2.py0should_test() -> bool returns true if zlib should be tested. currently is set to falseSTRING
HIGH…ift_build_support/swift_build_support/products/zlib.py0should_test() -> bool returns true if zlib should be tested. currently is set to falseSTRING
HIGH…t_build_support/swift_build_support/products/libcxx.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.STRING
HIGH…ild_support/swift_build_support/products/foundation.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.STRING
HIGH…ift_build_support/swift_build_support/products/llvm.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.STRING
HIGH…t_build_support/swift_build_support/products/xctest.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.STRING
HIGH…ld_support/swift_build_support/products/libdispatch.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.STRING
HIGH…ft_build_support/swift_build_support/products/swift.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.STRING
HIGH…_build_support/swift_build_support/products/product.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.STRING
HIGH…_build_support/swift_build_support/products/llbuild.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.STRING
HIGH…pport/swift_build_support/products/staticswiftlinux.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.STRING
HIGH…ift_build_support/swift_build_support/products/lldb.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.STRING
HIGH…ft_build_support/swift_build_support/products/cmark.py0is_build_script_impl_product -> bool whether this product is produced by build-script-impl.STRING
HIGH…t_build_support/swift_build_support/products/libcxx.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl products.STRING
HIGH…ild_support/swift_build_support/products/foundation.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl products.STRING
HIGH…ift_build_support/swift_build_support/products/llvm.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl products.STRING
HIGH…ld_support/swift_build_support/products/libdispatch.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl products.STRING
HIGH…_build_support/swift_build_support/products/llbuild.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl products.STRING
HIGH…ift_build_support/swift_build_support/products/lldb.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl products.STRING
HIGH…ft_build_support/swift_build_support/products/cmark.py0is_before_build_script_impl_product -> bool whether this product is built before any build-script-impl products.STRING
HIGH…ift_build_support/swift_build_support/products/llvm.py0should_build() -> bool whether or not this product should be built with the given arguments.STRING
HIGH…_build_support/swift_build_support/products/product.py0should_build() -> bool whether or not this product should be built with the given arguments.STRING
HIGH…pport/swift_build_support/products/staticswiftlinux.py0should_build() -> bool whether or not this product should be built with the given arguments.STRING
HIGH…ft_build_support/swift_build_support/products/cmark.py0should_build() -> bool whether or not this product should be built with the given arguments.STRING
HIGH…ift_build_support/swift_build_support/products/llvm.py0build() -> void perform the build, for a non-build-script-impl product.STRING
HIGH…_build_support/swift_build_support/products/product.py0build() -> void perform the build, for a non-build-script-impl product.STRING
HIGH…pport/swift_build_support/products/staticswiftlinux.py0build() -> void perform the build, for a non-build-script-impl product.STRING
HIGH…ft_build_support/swift_build_support/products/cmark.py0build() -> void perform the build, for a non-build-script-impl product.STRING
HIGH…ift_build_support/swift_build_support/products/llvm.py0should_test() -> bool whether or not this product should be tested with the given arguments.STRING
HIGH…_build_support/swift_build_support/products/product.py0should_test() -> bool whether or not this product should be tested with the given arguments.STRING
HIGH…pport/swift_build_support/products/staticswiftlinux.py0should_test() -> bool whether or not this product should be tested with the given arguments.STRING
HIGH…ft_build_support/swift_build_support/products/cmark.py0should_test() -> bool whether or not this product should be tested with the given arguments.STRING
HIGH…ift_build_support/swift_build_support/products/llvm.py0perform the test phase for the product. this phase might build and execute the product tests.STRING
HIGH…_build_support/swift_build_support/products/product.py0perform the test phase for the product. this phase might build and execute the product tests.STRING
8 more matches not shown…
Hallucination Indicators20 hits · 290 pts
SeverityFileLineSnippetContext
CRITICALtest/IDE/range_info_basics.swift326// CHECK10-NEXT: let b = a.c.c.c.c.getC().getC()</Content>COMMENT
CRITICALtest/IDE/range_info_basics.swift338// CHECK11-NEXT: let b = a.c.c.c.c.getC().getC()COMMENT
CRITICALtest/IDE/range_info_basics.swift352// CHECK12-NEXT: let b = a.c.c.c.c.getC().getC()COMMENT
CRITICALtest/IDE/range_info_basics.swift50 let b = a.c.c.c.c.getC().getC()CODE
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift141// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8p0s_swCOMMENT
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift175// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, i32, i32, i32, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.asynCOMMENT
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift243// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, i32, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8iCOMMENT
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift268// SKIP: {{.*}} = call { i8*, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8p0s_swift.errorss({{.COMMENT
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift296// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, i32, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8iCOMMENT
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift360// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8p0s_swCOMMENT
CRITICAL…tributed/distributed_actor_accessor_thunks_32bit.swift418// CHECK: [[THUNK_RESULT:%.*]] = call { i8*, %swift.error* } (i32, i8*, i8*, ...) @llvm.coro.suspend.async.sl_p0i8p0s_swCOMMENT
CRITICALtest/IRGen/coroutine_accessors_popless.swift282// CHECK: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i64(i64 [[SIZE]], i32 16, i64 [COMMENT
CRITICALtest/IRGen/coroutine_accessors_popless.swift330// CHECK: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i64(i64 [[SIZE]], i32 16, i64 [COMMENT
CRITICALtest/IRGen/coroutine_accessors.swift225// CHECK: [[ID:%[^,]+]] = call token @llvm.coro.id.retcon.once.dynamic(COMMENT
CRITICALtest/IRGen/coroutine_accessors.swift262// CHECK: [[ID:%[^,]+]] = call token @llvm.coro.id.retcon.once.dynamic(COMMENT
CRITICALtest/IRGen/coroutine_accessors.swift389// CHECK-64: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i64(i64 [[SIZE_64]], i32 16, i6COMMENT
CRITICALtest/IRGen/coroutine_accessors.swift390// CHECK-32: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i32(i32 {{%[^,]+}}, i32 16, i64COMMENT
CRITICALtest/IRGen/coroutine_accessors.swift439// CHECK-64: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i64(i64 [[SIZE_64]], i32 16, i6COMMENT
CRITICALtest/IRGen/coroutine_accessors.swift440// CHECK-32: [[ALLOCATION:%[^,]+]] = call token{{.*}} @llvm.coro.alloca.alloc.frame.i32(i32 {{%[^,]+}}, i32 16, i64COMMENT
CRITICALutils/parser-lib/profile-input.swift1815 make.left.right.top.bottom.equalTo(self.webViewContainer)CODE
Structural Annotation Overuse126 hits · 237 pts
SeverityFileLineSnippetContext
LOW…ceKit/tools/sourcekitd/include/sourcekitd/sourcekitd.h102/// NOTE: This function is called implicitly by 'sourcekitd_initialize()'. OnlyCOMMENT
LOWtest/api-digester/use-interface-for.swift11// Step 1: we should be able to load if we prefer cake.swiftinterfaceCOMMENT
LOWtest/api-digester/use-interface-for.swift16// Step 2: we shouldn't be able to load if we prefer cake.swiftinterface and cake.swiftinterface is brokenCOMMENT
LOWtest/api-digester/use-interface-for.swift19// Step 3: we should be able to load if we don't prefer cake.swiftinterfaceCOMMENT
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift10// Step 0: Copy relevant files into the temp dir which will serve as the search pathCOMMENT
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift16// Step 1: Build this file, causing an implicit build of SIMod and CIMod into the module cache.COMMENT
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift21// Step 2: Touch the dummy modulemap we passed in with `-Xcc -fmodule-map-file` above.COMMENT
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift24// Step 3: Re-build this file, and ensure we are not re-building SIMod due to a dependency on the dummy fileCOMMENT
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift27// Step 4: Ensure that SIMod was not re-builtCOMMENT
LOWtest/ModuleInterface/emit-forward-modules.swift8// Step 1: build swift interface from the sourceCOMMENT
LOWtest/ModuleInterface/emit-forward-modules.swift11// Step 2: building a module from the interface, and the module should not be a forwarding module.COMMENT
LOWtest/ModuleInterface/emit-forward-modules.swift16// Step 3: given the adjacent binary module as a candidate, building a module from the interface should give us a forwarCOMMENT
LOWtest/ModuleInterface/emit-forward-modules.swift21// Step 4: given the stale adjacent binary module as a candidate, building a module from the interface should give us a COMMENT
LOW…no-package-dependencies-on-non-package-interface.swift11// Step 1: Build Foo Swift binary moduleCOMMENT
LOW…no-package-dependencies-on-non-package-interface.swift14// Step 2: Build Bar Swift binary module and textual interface with a package-only importCOMMENT
LOW…no-package-dependencies-on-non-package-interface.swift17// Step 3: Now that Bar has been built, remove package-only dependency 'Foo' so that any clients of 'Bar' fail to build COMMENT
LOW…dencies/optional_deps_of_binary_testable_imports.swift10// Step 1: build a binary swift module for `Foo`, make it testableCOMMENT
LOW…dencies/optional_deps_of_binary_testable_imports.swift13// Step 2: scan dependenciesCOMMENT
LOWtest/ScanDependencies/explicit-scanner-input.swift6// Step 1: build swift interface and swift module side by sideCOMMENT
LOWtest/ScanDependencies/explicit-scanner-input.swift9// Step 2: scan dependency should give us the binary module we specify with 'swift-module-file'COMMENT
LOWtest/ScanDependencies/explicit-scanner-input.swift13// Step 3: ensure that if multiple inputs for the same module are specified then a warning is emitted and the latter is COMMENT
LOWtest/ScanDependencies/explicit-scanner-input.swift18// Step 4: verify that the usual invalid module candidate diagnostics applyCOMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift9// Step 1: build Bar swift interface and swift module side by sideCOMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift12// Step 2: build Foo swift interface and swift module side by side belonging to package 'Test'COMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift15// Step 3: scan dependencies with '-no-scanner-module-validation' and '-package-name Test'COMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift17// Step 4: Ensure that same-package scan can see package-only dependenciesCOMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift20// Step 5: scan dependencies with '-no-scanner-module-validation' and no package nameCOMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift22// Step 6: Ensure that non-same-package scan can not see package-only dependenciesCOMMENT
LOW…anDependencies/optional_deps_of_testable_imports.swift10// Step 1: build swift interface and swift module side by side, make them testableCOMMENT
LOW…anDependencies/optional_deps_of_testable_imports.swift13// Step 2: scan dependenciesCOMMENT
LOW…anDependencies/required_deps_of_testable_imports.swift10// Step 1: build swift interface and swift module side by side, make them testableCOMMENT
LOW…anDependencies/required_deps_of_testable_imports.swift13// Step 2: scan dependenciesCOMMENT
LOWtest/ScanDependencies/bin_mod_import.swift5// Step 1: Put the textual interface for E in the right placeCOMMENT
LOWtest/ScanDependencies/bin_mod_import.swift7// Step 1: Build a swift interface into a binary moduleCOMMENT
LOWtest/ScanDependencies/bin_mod_import.swift9// Step 3: scan dependency should give us the binary module and a textual swift dependency from itCOMMENT
LOWtest/ScanDependencies/bin_mod_import.swift13// Step 4: Ensure that round-trip serialization does not affect resultCOMMENT
LOW…anDependencies/explicit-scanner-input-can-import.swift6// Step 1: build swift interface and swift module side by sideCOMMENT
LOW…anDependencies/explicit-scanner-input-can-import.swift9// Step 2: scan dependency should give us the binary module we specify with 'swift-module-file'COMMENT
LOW…anDependencies/explicit-scanner-input-can-import.swift13// Step 3: ensure that versioned canImport still applies with direct -swift-module-fileCOMMENT
LOWtest/ScanDependencies/binary_module_only.swift17// Step 1: build swift interface and swift module side by sideCOMMENT
LOWtest/ScanDependencies/binary_module_only.swift20// Step 2: build module from interface and put it in a location separate from the interface fileCOMMENT
LOWtest/ScanDependencies/binary_module_only.swift23// Step 3: scan dependencies, pointed only at the binary module file should detect it as a swiftBinaryModule kind of depCOMMENT
LOWtest/ScanDependencies/binary_module_only.swift27// Step 4: Ensure that round-trip serialization does not affect resultCOMMENT
LOW…anDependencies/optional_transitive_dep_load_fail.swift37// Step 1: build Foo Swift moduleCOMMENT
LOW…anDependencies/optional_transitive_dep_load_fail.swift40// Step 2: scan dependencies and ensure the transitive dependency on "A" is missingCOMMENT
LOW…anDependencies/optional_transitive_dep_load_fail.swift45// Step 3: Run an explicit module compile of this file ensuring object files are producedCOMMENT
LOW…anDependencies/optional_transitive_dep_load_fail.swift48// Step 4: Ensure the resulting object file existsCOMMENT
LOW…ScanDependencies/duplicate_query_optional_import.swift8// Step 1: Build binary module Foo with 'internal import C' and a .swiftinterfaceCOMMENT
LOW…ScanDependencies/duplicate_query_optional_import.swift11// Step 2: Build binary module Bar with 'internal import C' and a .swiftinterfaceCOMMENT
LOW…ScanDependencies/duplicate_query_optional_import.swift14// Step 3: Scan dependencies with @testable importsCOMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift15// Step 1: build swift interface and swift module side by sideCOMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift18// Step 2: scan dependency should give us the binary module adjacent to the interface file.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift26// Step 3: remove the adjacent module.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift29// Step 4: scan dependency should give us the interface file.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift33// Step 4: build prebuilt module cache using the interface.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift36// Step 5: scan dependency now should give us the prebuilt module cacheCOMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift44// Step 6: update the interface file from where the prebuilt module cache was built.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift47// Step 7: scan dependency should give us the prebuilt module file even though it's out-of-date.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift51// Step 8: The new scanner behavior should not give use prebuilt module file because it is out-of-date.COMMENT
LOW…pendencies/explicit-module-map-forwarding-module.swift7// Step 1: build .swiftmodule and .swiftinterface adjacent to each other from foo.swiftCOMMENT
66 more matches not shown…
AI Slop Vocabulary77 hits · 234 pts
SeverityFileLineSnippetContext
MEDIUMbenchmark/utils/TestsUtils.swift166 /// which are more robust to measurement errors from system under load,COMMENT
MEDIUMbenchmark/utils/DriverUtils.swift594 // actually pretty robust, since almost everything is a number; the onlySTRING
LOWbenchmark/scripts/perf_test_driver/perf_test_driver.py62 # We just use this to create a timeout since we use an older python. OnceCOMMENT
MEDIUM…mark/scripts/generate_harness/test_generate_harness.sh3# validation-test/benchmark/generate-harness.test-sh.COMMENT
MEDIUM…spect/Sources/swift-inspect/AndroidRemoteProcess.swift53 // API, which enumerates allocations in the current process. We leverage thisCOMMENT
MEDIUM…Sources/Sources/Optimizer/Utilities/AddressUtils.swift412 // this is not robust.COMMENT
MEDIUMSwiftCompilerSources/Sources/SIL/Value.swift165 // TODO: This would be much more robust if pai.hasNoescapeCapture simply implied !pai.type.isEscapableCOMMENT
MEDIUM…t/AutoDiff/validation-test/class_differentiation.swift164 // FIXME(TF-1175): Find a robust solution so that derivatives are correct.COMMENT
MEDIUM…s/access/non-public-inheritance-module-interface.swift6// the @available(*, unavailable) attributes (to ensure this test is robustCOMMENT
MEDIUMtest/Interop/Cxx/stdlib/use-std-string.swift494 // Since std::u32string does not support pushing back UInt32 directly, we utilize UInt16 instead.COMMENT
MEDIUMtest/Interop/Cxx/stdlib/use-std-string.swift568 // Since std::u32string does not support pushing back UInt32 directly, we utilize UInt16 instead.COMMENT
MEDIUMtest/attr/attr_abi.swift2180// Essentially part of the name, which is unconstrained.COMMENT
MEDIUMinclude/swift/IDE/CancellableResult.h29/// Essentially this emulates an enum with associated values as followsCOMMENT
MEDIUM…SILOptimizer/Analysis/DifferentiableActivityAnalysis.h20// Essentially, fixing some inputs and neglecting some outputs allows AD toCOMMENT
MEDIUMinclude/swift/SILOptimizer/Analysis/ValueTracking.h87/// Essentially, it is a simple form of a range analysis.COMMENT
MEDIUMinclude/swift/Basic/LangOptions.h551 /// TODO: remove this when @_implementationOnly modules are robust enough.COMMENT
MEDIUMinclude/swift/Basic/PossiblyUniquePtr.h34/// Essentially std::unique_ptr except it dynamically tracks whether theCOMMENT
MEDIUMinclude/swift/Sema/CSBindings.h415 /// Definitely not an lvalue.COMMENT
MEDIUMinclude/swift/Sema/CSBindings.h417 /// Definitely an lvalue.COMMENT
MEDIUMinclude/swift/AST/Types.h2022/// in SIL. Essentially a UInt32 with some structural restrictionsCOMMENT
MEDIUMinclude/swift/AST/Types.h3943 /// differential/pullback typing rules are more nuanced: see documentation forCOMMENT
MEDIUMinclude/swift/AST/Types.h6024 /// differential/pullback typing rules are more nuanced: see documentation forCOMMENT
MEDIUMinclude/swift/AST/Import.h230 /// \warning This is not very robust; for instance, it doesn't check theCOMMENT
MEDIUMinclude/swift/AST/Import.h245 /// \warning This is not very robust; for instance, it doesn't check theCOMMENT
MEDIUMutils/build-presets.ini706# to LLVM_USE_RUNTIMES to build compiler-rt (#60993), so we can leverageCOMMENT
MEDIUMutils/swift-bench.py12# This file implements a test harness for running Swift performance benchmarks.COMMENT
MEDIUMutils/swift-bench.py15# take no arguments and returns Int. The harness makes a separate test fromCOMMENT
MEDIUMutils/swift-bench.py18# The workflow of the harness is the following:COMMENT
MEDIUMutils/swift-bench.py22# o When all files are processed, the harness begins to compile them, keepingCOMMENT
MEDIUMutils/swift-bench.py24# o When all files are compiled, the harness begins to run the tests. TheCOMMENT
MEDIUMutils/swift-bench.py25# harness chooses a number of iterations for each tests to achieve the bestCOMMENT
MEDIUMutils/swift-bench.py29# o At this point everything is ready, and the harness simply reports theCOMMENT
MEDIUMutils/swift-bench.py32# Ideas for the harness improvement and development are welcomed here:COMMENT
MEDIUMutils/build_swift/build_swift/shell.py237 """In order to utilize the same function decorators used to back-portSTRING
LOWutils/bug_reducer/bug_reducer/opt_bug_reducer.py67 # actually have any suffix passes. If we don't, just return.COMMENT
MEDIUMutils/update_checkout/tests/test_stash_clean.py47 # the harness's local_path clones get one), so configure it before theCOMMENT
LOW…ort/swift_build_support/host_specific_configuration.py28 # to make a distinction in between them and can just use args.COMMENT
MEDIUMlib/SILOptimizer/Mandatory/Differentiation.cpp240 // TODO(TF-1055): Can be removed after we have a robust solution for TF-1055.COMMENT
MEDIUMlib/SILOptimizer/Mandatory/Differentiation.cpp760 // FIXME: This is not a very robust way of determining if the functionCOMMENT
MEDIUMlib/SILOptimizer/Mandatory/Differentiation.cpp837 // FIXME: This is not a very robust way of determining if the functionCOMMENT
MEDIUMlib/SILOptimizer/Utils/ConstExpr.cpp2261/// Essentially, these are calls whose "effect" is visible only in their returnCOMMENT
MEDIUMlib/SILOptimizer/Utils/OSSACanonicalizeOwned.cpp45/// canonicalization algorithm as simple and robust, leaving the remainingCOMMENT
MEDIUMlib/SILOptimizer/Utils/StackNesting.cpp35/// Essentially, runInDominanceOrder finds an arbitrary simple path toCOMMENT
MEDIUMlib/SILOptimizer/Transforms/ARCCodeMotion.cpp67/// Essentially, we can implement the release code motion by inverting theCOMMENT
MEDIUMlib/SILOptimizer/Differentiation/VJPCloner.cpp1715 // bb arguments have a lifetime-ending `end_borrow` use, and is robust whenCOMMENT
MEDIUMlib/ClangImporter/ClangImporter.cpp9450 // TODO: enumerate those kinds in a more precise and robust wayCOMMENT
MEDIUMlib/ClangImporter/ClangLookup.cpp534/// Essentially a pair<CXXMethodDecl *, AccessSpecifier>, from qualified lookup.COMMENT
MEDIUMlib/SILGen/SILGenExpr.cpp7306 // This implementation is not very robust; if TapExpr were to ever becomeCOMMENT
MEDIUMlib/SILGen/SILGenDecl.cpp915 // metatypes mostly avoids the issue, but it's not robust and doesn't allowCOMMENT
MEDIUMlib/SILGen/SILGenPattern.cpp823/// Essentially equivalent to forwardIntoIrrefutableSubtree, except itCOMMENT
MEDIUMlib/SILGen/SILGenPattern.cpp861/// Essentially equivalent to forwardIntoSubtree, except it preservesCOMMENT
MEDIUMlib/Serialization/Serialization.cpp4717 // reason). However, we need a more robust handling of deserializationCOMMENT
MEDIUMlib/Serialization/Serialization.cpp4768 // need a more robust handling of deserialization dependencies that canCOMMENT
MEDIUMlib/FrontendTool/LoadedModuleTrace.cpp825// Moreover, going forward, it would be nice if trace emission were more robustCOMMENT
MEDIUMlib/Parse/Lexer.cpp2086 // Definitely a regex literal.COMMENT
MEDIUMlib/IRGen/GenCast.cpp921/// Essentially, both the source and target types must be one of:COMMENT
MEDIUMlib/IRGen/LoadableTypeInfo.h124 /// Essentially, this is like take-initializing the new explosion.COMMENT
MEDIUMlib/Sema/TypeCheckAttr.cpp6291 // NOTE: To be robust, result function type parameters should be added only ifCOMMENT
MEDIUMlib/Sema/CSRanking.cpp1412 // any way more constrained than another. We'll only utilize thisCOMMENT
MEDIUMlib/Sema/TypeCheckDeclObjC.cpp3032 // Definitely no conflicts.COMMENT
17 more matches not shown…
Verbosity Indicators118 hits · 228 pts
SeverityFileLineSnippetContext
LOW…Sources/Optimizer/FunctionPasses/AllocBoxToStack.swift190 // We need to check if the captured argument is escaping via the partial_apply.COMMENT
LOWtest/api-digester/use-interface-for.swift11// Step 1: we should be able to load if we prefer cake.swiftinterfaceCOMMENT
LOWtest/api-digester/use-interface-for.swift16// Step 2: we shouldn't be able to load if we prefer cake.swiftinterface and cake.swiftinterface is brokenCOMMENT
LOWtest/api-digester/use-interface-for.swift19// Step 3: we should be able to load if we don't prefer cake.swiftinterfaceCOMMENT
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift10// Step 0: Copy relevant files into the temp dir which will serve as the search pathCOMMENT
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift16// Step 1: Build this file, causing an implicit build of SIMod and CIMod into the module cache.COMMENT
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift21// Step 2: Touch the dummy modulemap we passed in with `-Xcc -fmodule-map-file` above.COMMENT
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift24// Step 3: Re-build this file, and ensure we are not re-building SIMod due to a dependency on the dummy fileCOMMENT
LOWtest/ModuleInterface/no-implicit-extra-clang-opts.swift27// Step 4: Ensure that SIMod was not re-builtCOMMENT
LOWtest/ModuleInterface/emit-forward-modules.swift8// Step 1: build swift interface from the sourceCOMMENT
LOWtest/ModuleInterface/emit-forward-modules.swift11// Step 2: building a module from the interface, and the module should not be a forwarding module.COMMENT
LOWtest/ModuleInterface/emit-forward-modules.swift16// Step 3: given the adjacent binary module as a candidate, building a module from the interface should give us a forwarCOMMENT
LOWtest/ModuleInterface/emit-forward-modules.swift21// Step 4: given the stale adjacent binary module as a candidate, building a module from the interface should give us a COMMENT
LOW…no-package-dependencies-on-non-package-interface.swift11// Step 1: Build Foo Swift binary moduleCOMMENT
LOW…no-package-dependencies-on-non-package-interface.swift14// Step 2: Build Bar Swift binary module and textual interface with a package-only importCOMMENT
LOW…no-package-dependencies-on-non-package-interface.swift17// Step 3: Now that Bar has been built, remove package-only dependency 'Foo' so that any clients of 'Bar' fail to build COMMENT
LOW…dencies/optional_deps_of_binary_testable_imports.swift10// Step 1: build a binary swift module for `Foo`, make it testableCOMMENT
LOW…dencies/optional_deps_of_binary_testable_imports.swift13// Step 2: scan dependenciesCOMMENT
LOWtest/ScanDependencies/explicit-scanner-input.swift6// Step 1: build swift interface and swift module side by sideCOMMENT
LOWtest/ScanDependencies/explicit-scanner-input.swift9// Step 2: scan dependency should give us the binary module we specify with 'swift-module-file'COMMENT
LOWtest/ScanDependencies/explicit-scanner-input.swift13// Step 3: ensure that if multiple inputs for the same module are specified then a warning is emitted and the latter is COMMENT
LOWtest/ScanDependencies/explicit-scanner-input.swift18// Step 4: verify that the usual invalid module candidate diagnostics applyCOMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift9// Step 1: build Bar swift interface and swift module side by sideCOMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift12// Step 2: build Foo swift interface and swift module side by side belonging to package 'Test'COMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift15// Step 3: scan dependencies with '-no-scanner-module-validation' and '-package-name Test'COMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift17// Step 4: Ensure that same-package scan can see package-only dependenciesCOMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift20// Step 5: scan dependencies with '-no-scanner-module-validation' and no package nameCOMMENT
LOW…ependencies/package_deps_of_same_package_imports.swift22// Step 6: Ensure that non-same-package scan can not see package-only dependenciesCOMMENT
LOW…anDependencies/optional_deps_of_testable_imports.swift10// Step 1: build swift interface and swift module side by side, make them testableCOMMENT
LOW…anDependencies/optional_deps_of_testable_imports.swift13// Step 2: scan dependenciesCOMMENT
LOW…anDependencies/required_deps_of_testable_imports.swift10// Step 1: build swift interface and swift module side by side, make them testableCOMMENT
LOW…anDependencies/required_deps_of_testable_imports.swift13// Step 2: scan dependenciesCOMMENT
LOWtest/ScanDependencies/bin_mod_import.swift5// Step 1: Put the textual interface for E in the right placeCOMMENT
LOWtest/ScanDependencies/bin_mod_import.swift7// Step 1: Build a swift interface into a binary moduleCOMMENT
LOWtest/ScanDependencies/bin_mod_import.swift9// Step 3: scan dependency should give us the binary module and a textual swift dependency from itCOMMENT
LOWtest/ScanDependencies/bin_mod_import.swift13// Step 4: Ensure that round-trip serialization does not affect resultCOMMENT
LOW…anDependencies/explicit-scanner-input-can-import.swift6// Step 1: build swift interface and swift module side by sideCOMMENT
LOW…anDependencies/explicit-scanner-input-can-import.swift9// Step 2: scan dependency should give us the binary module we specify with 'swift-module-file'COMMENT
LOW…anDependencies/explicit-scanner-input-can-import.swift13// Step 3: ensure that versioned canImport still applies with direct -swift-module-fileCOMMENT
LOWtest/ScanDependencies/binary_module_only.swift17// Step 1: build swift interface and swift module side by sideCOMMENT
LOWtest/ScanDependencies/binary_module_only.swift20// Step 2: build module from interface and put it in a location separate from the interface fileCOMMENT
LOWtest/ScanDependencies/binary_module_only.swift23// Step 3: scan dependencies, pointed only at the binary module file should detect it as a swiftBinaryModule kind of depCOMMENT
LOWtest/ScanDependencies/binary_module_only.swift27// Step 4: Ensure that round-trip serialization does not affect resultCOMMENT
LOW…anDependencies/optional_transitive_dep_load_fail.swift37// Step 1: build Foo Swift moduleCOMMENT
LOW…anDependencies/optional_transitive_dep_load_fail.swift40// Step 2: scan dependencies and ensure the transitive dependency on "A" is missingCOMMENT
LOW…anDependencies/optional_transitive_dep_load_fail.swift45// Step 3: Run an explicit module compile of this file ensuring object files are producedCOMMENT
LOW…anDependencies/optional_transitive_dep_load_fail.swift48// Step 4: Ensure the resulting object file existsCOMMENT
LOW…ScanDependencies/duplicate_query_optional_import.swift8// Step 1: Build binary module Foo with 'internal import C' and a .swiftinterfaceCOMMENT
LOW…ScanDependencies/duplicate_query_optional_import.swift11// Step 2: Build binary module Bar with 'internal import C' and a .swiftinterfaceCOMMENT
LOW…ScanDependencies/duplicate_query_optional_import.swift14// Step 3: Scan dependencies with @testable importsCOMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift15// Step 1: build swift interface and swift module side by sideCOMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift18// Step 2: scan dependency should give us the binary module adjacent to the interface file.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift26// Step 3: remove the adjacent module.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift29// Step 4: scan dependency should give us the interface file.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift33// Step 4: build prebuilt module cache using the interface.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift36// Step 5: scan dependency now should give us the prebuilt module cacheCOMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift44// Step 6: update the interface file from where the prebuilt module cache was built.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift47// Step 7: scan dependency should give us the prebuilt module file even though it's out-of-date.COMMENT
LOWtest/ScanDependencies/compiled_swift_modules.swift51// Step 8: The new scanner behavior should not give use prebuilt module file because it is out-of-date.COMMENT
LOW…pendencies/explicit-module-map-forwarding-module.swift7// Step 1: build .swiftmodule and .swiftinterface adjacent to each other from foo.swiftCOMMENT
58 more matches not shown…
Unused Imports87 hits · 72 pts
SeverityFileLineSnippetContext
LOWutils/swift-build-modules.py12CODE
LOWutils/build_swift/build_swift/shell.py28CODE
LOWutils/build_swift/build_swift/argparse/__init__.py17CODE
LOWutils/build_swift/build_swift/argparse/__init__.py17CODE
LOWutils/build_swift/build_swift/argparse/__init__.py17CODE
LOWutils/build_swift/build_swift/argparse/__init__.py17CODE
LOWutils/build_swift/build_swift/argparse/__init__.py17CODE
LOWutils/build_swift/build_swift/argparse/__init__.py17CODE
LOWutils/build_swift/build_swift/argparse/__init__.py17CODE
LOWutils/build_swift/build_swift/argparse/__init__.py17CODE
LOWutils/build_swift/build_swift/argparse/__init__.py21CODE
LOWutils/build_swift/build_swift/argparse/__init__.py21CODE
LOWutils/build_swift/build_swift/argparse/__init__.py21CODE
LOWutils/build_swift/build_swift/argparse/__init__.py21CODE
LOWutils/build_swift/build_swift/argparse/__init__.py23CODE
LOWutils/build_swift/build_swift/argparse/__init__.py23CODE
LOWutils/build_swift/build_swift/argparse/__init__.py24CODE
LOWutils/build_swift/build_swift/argparse/__init__.py25CODE
LOWutils/build_swift/build_swift/argparse/__init__.py25CODE
LOWutils/build_swift/build_swift/argparse/__init__.py25CODE
LOWutils/build_swift/build_swift/argparse/__init__.py25CODE
LOWutils/build_swift/build_swift/argparse/__init__.py25CODE
LOWutils/build_swift/build_swift/argparse/__init__.py25CODE
LOWutils/update_checkout/__init__.py1CODE
LOWutils/update_checkout/tests/scheme_mock.py25CODE
LOWutils/update_checkout/tests/scheme_mock.py25CODE
LOWutils/update_checkout/tests/test_cross_repo_pr.py14CODE
LOWutils/update_checkout/tests/test_cross_repo_pr.py17CODE
LOWutils/update_checkout/tests/test_cross_repo_pr.py17CODE
LOWutils/update_checkout/update_checkout/__init__.py1CODE
LOW…s/update_checkout/update_checkout/commands/__init__.py1CODE
LOWutils/embedded-test-support/embedded-test-support.py16CODE
LOWutils/jobstats/__init__.py23CODE
LOWutils/jobstats/__init__.py23CODE
LOWutils/jobstats/__init__.py23CODE
LOWutils/jobstats/__init__.py23CODE
LOWutils/jobstats/__init__.py23CODE
LOW…ils/swift_build_support/swift_build_support/targets.py19CODE
LOW…ils/swift_build_support/swift_build_support/targets.py22CODE
LOWutils/swift_build_support/swift_build_support/cmake.py20CODE
LOW…d_support/swift_build_support/products/wasiswiftsdk.py19CODE
LOW…d_support/swift_build_support/products/wasiswiftsdk.py20CODE
LOW…build_support/swift_build_support/products/__init__.py13CODE
LOW…build_support/swift_build_support/products/__init__.py14CODE
LOW…build_support/swift_build_support/products/__init__.py15CODE
LOW…build_support/swift_build_support/products/__init__.py16CODE
LOW…build_support/swift_build_support/products/__init__.py17CODE
LOW…build_support/swift_build_support/products/__init__.py18CODE
LOW…build_support/swift_build_support/products/__init__.py19CODE
LOW…build_support/swift_build_support/products/__init__.py20CODE
LOW…build_support/swift_build_support/products/__init__.py21CODE
LOW…build_support/swift_build_support/products/__init__.py21CODE
LOW…build_support/swift_build_support/products/__init__.py22CODE
LOW…build_support/swift_build_support/products/__init__.py23CODE
LOW…build_support/swift_build_support/products/__init__.py24CODE
LOW…build_support/swift_build_support/products/__init__.py25CODE
LOW…build_support/swift_build_support/products/__init__.py26CODE
LOW…build_support/swift_build_support/products/__init__.py27CODE
LOW…build_support/swift_build_support/products/__init__.py28CODE
LOW…build_support/swift_build_support/products/__init__.py29CODE
27 more matches not shown…
Excessive Try-Catch Wrapping39 hits · 69 pts
SeverityFileLineSnippetContext
MEDIUM…Sources/swift-inspect/Operations/DumpConcurrency.swift187 print("Error getting info for async task \(hex: task): \(String(cString: error))")CODE
MEDIUM…Sources/Sources/Optimizer/Utilities/AddressUtils.swift695 print("Error: indeterminate live range")CODE
MEDIUMtest/Interpreter/typed_throws_abi.swift17 print("Error: \(error)")CODE
MEDIUMtest/Interpreter/typed_throws_abi.swift327 print("Error value is: \(String(describing: x))")CODE
MEDIUMtest/stdlib/sort_integers.swift72 print("Error: \(y)")CODE
MEDIUMtest/embedded/concurrency-throwing-task.swift75 print("Error wasn't thrown!?")CODE
MEDIUMutils/download-unpublished-toolchains.py107 print(f"Error: Directory does not exist at {args.output_dir}.")CODE
MEDIUMutils/download-unpublished-toolchains.py113 print(f"Error: Unable to find toolchain for {args.platform}.")CODE
LOWutils/process-stats-dir.py475 except Exception as e:CODE
LOWutils/process-stats-dir.py509 except Exception as e:CODE
MEDIUMutils/optimizer_counters_to_sql.py66 print('Error {}' .format(e.args[0]))CODE
MEDIUMutils/check_freestanding_dependencies.py103 print("Error: Required dependency '{}' missing".format(symbol))CODE
MEDIUMutils/check_freestanding_dependencies.py110 print("Error: Unexpected dependency '{}'".format(symbol))CODE
LOWutils/build_swift/build_swift/presets.py298 except Exception as e:CODE
MEDIUMutils/parser-lib/profile-input.swift1011 print("Error handling URL entry: \"\(text)\".")CODE
MEDIUMutils/parser-lib/profile-input.swift1430 print("Error handling URL entry: \"\(text)\".")CODE
LOWutils/update_checkout/update_checkout/retry.py32 except Exception as e:CODE
MEDIUM…ils/update_checkout/update_checkout/update_checkout.py527 print('Error on repo "%s": %s' % (repo_path, traceback.format_exc()))CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py83 except Exception:CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py249 except Exception:CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py255 except Exception:CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py373 except Exception:CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py387 except Exception:CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py460 except Exception:CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py466 except Exception:CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py525 except Exception:CODE
LOW…ils/update_checkout/update_checkout/parallel_runner.py82 except Exception as e:CODE
MEDIUM…ils/update_checkout/update_checkout/parallel_runner.py79def run_safely(*args, **kwargs):CODE
LOWutils/jobstats/jobstats.py270 except Exception:CODE
LOW…support/swift_build_support/build_script_invocation.py1048 except Exception:CODE
LOWutils/api_checker/swift-api-checker.py38 except Exception as error:CODE
MEDIUMstdlib/public/core/Result.swift307 /// print("Error retrieving the value: \(error)")COMMENT
MEDIUMstdlib/public/RuntimeModule/PDB/PDBFile.swift858 print("Error \(error) during lookup")CODE
MEDIUM…blic/Concurrency/AsyncThrowingCompactMapSequence.swift48 /// print("Error: \(error)")COMMENT
MEDIUMstdlib/public/Concurrency/AsyncThrowingStream.swift115/// print("Error: \(error)")COMMENT
MEDIUM…lic/Concurrency/AsyncThrowingPrefixWhileSequence.swift42 /// print("Error: \(error)")COMMENT
MEDIUM…b/public/Concurrency/AsyncThrowingFilterSequence.swift37 /// print("Error: \(error)")COMMENT
MEDIUMstdlib/public/Concurrency/TaskGroup.swift641 /// print("Error: \(error)")COMMENT
MEDIUM…dlib/public/Concurrency/AsyncThrowingMapSequence.swift49 /// print("Error: \(error)")COMMENT
Deep Nesting57 hits · 56 pts
SeverityFileLineSnippetContext
LOWbenchmark/scripts/create_benchmark.py68CODE
LOWbenchmark/scripts/compare_perf_tests.py107CODE
LOWbenchmark/scripts/compare_perf_tests.py500CODE
LOWtools/SourceKit/bindings/python/sourcekitd/capi.py66CODE
LOWtools/SourceKit/bindings/python/sourcekitd/capi.py220CODE
LOWutils/swift_build_sdk_interfaces.py159CODE
LOWutils/swift_build_sdk_interfaces.py176CODE
LOWutils/swift_build_sdk_interfaces.py338CODE
LOWutils/analyze_code_size.py578CODE
LOWutils/GYBUnicodeDataUtils.py533CODE
LOWutils/GYBUnicodeDataUtils.py593CODE
LOWutils/GYBUnicodeDataUtils.py344CODE
LOWutils/GYBUnicodeDataUtils.py534CODE
LOWutils/GYBUnicodeDataUtils.py595CODE
LOWutils/swift-build-modules.py33CODE
LOWutils/gyb.py122CODE
LOWutils/gyb.py403CODE
LOWutils/gyb.py562CODE
LOWutils/generate_confusables.py32CODE
LOWutils/process-stats-dir.py243CODE
LOWutils/process-stats-dir.py323CODE
LOWutils/process-stats-dir.py514CODE
LOWutils/process-stats-dir.py564CODE
LOWutils/process-stats-dir.py344CODE
LOWutils/build_swift/build_swift/driver_arguments.py46CODE
LOWutils/build_swift/build_swift/defaults.py72CODE
LOWutils/cmpcodesize/cmpcodesize/main.py32CODE
LOWutils/cmpcodesize/cmpcodesize/compare.py66CODE
LOWutils/update_verify_tests/core.py749CODE
LOWutils/update_verify_tests/core.py1011CODE
LOWutils/update_verify_tests/core.py1234CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py306CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py605CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py850CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py1099CODE
LOW…ils/update_checkout/update_checkout/update_checkout.py1153CODE
LOWutils/embedded-test-support/embedded-test-support.py31CODE
LOWutils/jobstats/jobstats.py249CODE
LOWutils/jobstats/jobstats.py299CODE
LOW…ort/swift_build_support/host_specific_configuration.py25CODE
LOW…ils/swift_build_support/swift_build_support/targets.py347CODE
LOW…support/swift_build_support/build_script_invocation.py871CODE
LOW…s/swift_build_support/swift_build_support/toolchain.py214CODE
LOW…s/swift_build_support/swift_build_support/workspace.py42CODE
LOW…d_support/swift_build_support/products/sourcekitlsp.py113CODE
LOW…_support/swift_build_support/products/cmake_product.py134CODE
LOW…d_support/swift_build_support/products/indexstoredb.py82CODE
LOW…ift_build_support/swift_build_support/products/llvm.py122CODE
LOW…ift_build_support/swift_build_support/products/llvm.py229CODE
LOW…ift_build_support/swift_build_support/products/llvm.py564CODE
LOW…_build_support/swift_build_support/products/product.py267CODE
LOW…_build_support/swift_build_support/products/product.py460CODE
LOWutils/api_checker/swift-api-checker.py202CODE
LOWutils/api_checker/swift-api-checker.py141CODE
LOWutils/api_checker/sdk-module-lists/infer-imports.py19CODE
LOWutils/api_checker/sdk-module-lists/infer-imports.py44CODE
LOWutils/api_checker/sdk-module-lists/infer-imports.py127CODE
Fake / Example Data33 hits · 45 pts
SeverityFileLineSnippetContext
LOWbenchmark/single-source/DiffingMyers.swift27let loremIpsum = Array("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labCODE
LOWbenchmark/single-source/DiffingMyers.swift27let loremIpsum = Array("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labCODE
LOWbenchmark/single-source/DiffingMyers.swift28let unabridgedLorem = Array("Lorem ipsum, quia dolor sit amet consectetur adipisci[ng] velit, sed quia non-numquam [do] CODE
LOWbenchmark/single-source/DiffingMyers.swift28let unabridgedLorem = Array("Lorem ipsum, quia dolor sit amet consectetur adipisci[ng] velit, sed quia non-numquam [do] CODE
LOWbenchmark/single-source/Diffing.swift69let loremIpsum = Array("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labCODE
LOWbenchmark/single-source/Diffing.swift69let loremIpsum = Array("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labCODE
LOWbenchmark/single-source/Diffing.swift70let unabridgedLorem = Array("Lorem ipsum, quia dolor sit amet consectetur adipisci[ng] velit, sed quia non-numquam [do] CODE
LOWbenchmark/single-source/Diffing.swift70let unabridgedLorem = Array("Lorem ipsum, quia dolor sit amet consectetur adipisci[ng] velit, sed quia non-numquam [do] CODE
LOWbenchmark/single-source/StringRemoveDupes.swift17 let text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWbenchmark/single-source/StringRemoveDupes.swift17 let text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. " +CODE
LOWbenchmark/single-source/StringComparison.swift772 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna CODE
LOWbenchmark/single-source/StringComparison.swift772 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna CODE
LOWbenchmark/single-source/StringComparison.swift773 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna CODE
LOWbenchmark/single-source/StringComparison.swift773 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna CODE
LOWbenchmark/single-source/StringComparison.swift774 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna CODE
LOWbenchmark/single-source/StringComparison.swift774 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna CODE
LOWbenchmark/single-source/StringComparison.swift775 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna CODE
LOWbenchmark/single-source/StringComparison.swift775 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna CODE
LOWbenchmark/single-source/StringComparison.swift776 🤔Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnaCODE
LOWbenchmark/single-source/StringComparison.swift776 🤔Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magnaCODE
LOWbenchmark/single-source/StringRepeating.swift66 Існує багато варіацій уривків з Lorem Ipsum, але більшість з них зазналаCODE
LOWbenchmark/single-source/CountAlgo.swift44 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas tempusCODE
LOWbenchmark/single-source/CountAlgo.swift44 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas tempusCODE
LOWbenchmark/single-source/CountAlgo.swift48 ipsum primis in faucibus. Lorem ipsum dolor sit amet, consecteturCODE
LOWbenchmark/single-source/CountAlgo.swift48 ipsum primis in faucibus. Lorem ipsum dolor sit amet, consecteturCODE
LOWbenchmark/single-source/CountAlgo.swift53 leo leo sit amet nisl. Lorem ipsum dolor sit amet, consectetur adipiscingCODE
LOWbenchmark/single-source/CountAlgo.swift53 leo leo sit amet nisl. Lorem ipsum dolor sit amet, consectetur adipiscingCODE
LOWbenchmark/single-source/CharacterProperties.swift359 Lorem ipsum something something something...CODE
LOWtools/swift-ide-test/swift-ide-test.cpp2121 case SyntaxNodeKind::EditorPlaceholder: Id = "placeholder"; break;CODE
LOWtest/stdlib/ThreadLocalStorage.swift12var str = "Lorem ipsum dolor sit amet\r\n 🌎 🇺🇸🇨🇦🍁"CODE
LOWtest/stdlib/ThreadLocalStorage.swift12var str = "Lorem ipsum dolor sit amet\r\n 🌎 🇺🇸🇨🇦🍁"CODE
LOW…/build_swift/tests/build_swift/argparse/test_parser.py89 builder.set_defaults('qux', 'Lorem ipsum set dolor')CODE
LOW…/build_swift/tests/build_swift/argparse/test_parser.py95 'qux': 'Lorem ipsum set dolor',CODE
Synthetic Comment Markers5 hits · 38 pts
SeverityFileLineSnippetContext
HIGHinclude/swift/AST/ASTContext.h1146 /// selector and are instance/class methods as requested. This list will beCOMMENT
HIGHinclude/swift/AST/ModuleLoader.h333 /// selector and are instance/class methods as requested. This list will beCOMMENT
HIGH…cs/CppInteroperability/CppInteroperabilityManifesto.md1966 // Property is synthesized as requested by the annotation.COMMENT
HIGH…/Mandatory/ConsumeOperatorCopyableAddressesChecker.cpp120/// the lifetime of the address as requested by the user.COMMENT
HIGHlib/Serialization/ModuleFile.h845 /// selector and are instance/class methods as requested.COMMENT
Slop Phrases17 hits · 34 pts
SeverityFileLineSnippetContext
LOWtest/Interop/Cxx/templates/mangling-irgen.swift11// Don't forget to update manglings.txt when changing s4main20receiveInstantiationyySo34__CxxTemplateInst12MagicWrapperICOMMENT
LOWtest/Interop/Cxx/templates/mangling-irgen.swift18// Don't forget to update manglings.txt when changing s4main19returnInstantiationSo34__CxxTemplateInst12MagicWrapperIiEVCOMMENT
LOWinclude/swift/SIL/SILBuilder.h2903 /// in `someBB`. Don't forget to switch insertion blocks afterCOMMENT
LOWutils/GYBUnicodeDataUtils.py217 # Note: if you change any of these parameters, don't forget to update theCOMMENT
LOWutils/GYBUnicodeDataUtils.py217 # Note: if you change any of these parameters, don't forget to update theCOMMENT
LOW…_support/swift_build_support/products/cmake_product.py384 # This is needed to make sure to avoid using the wrong architectureCOMMENT
MEDIUMdocs/archive/LangRef.html534 <p>Here is a simple example:</p>CODE
LOWlib/SILOptimizer/Analysis/DestructorAnalysis.cpp110 // TODO: Don't forget to check resilience of enum decl, likeCOMMENT
LOW…timizer/Mandatory/MovedAsyncVarDebugInfoPropagator.cpp404 // don't forget to clean it up before processing the next block.COMMENT
MEDIUMlib/SILGen/SILGenPattern.cpp3743 // Enter a break/continue scope. As discussed above, the depth we jump toCOMMENT
LOWlib/IRGen/GenDistributed.cpp663 // Don't forget to actually store the argumentCOMMENT
LOWlib/Sema/OpenedExistentials.cpp173 // Don't forget to look in the parent.COMMENT
LOWlib/Sema/TypeCheckType.cpp1104 // If this is situation #2 we need to make sure to switch base toCOMMENT
MEDIUMlib/SIL/IR/SILTypeSubstitution.cpp148 // through to substitute the component types as discussed above.COMMENT
LOWlib/SIL/Verifier/LinearLifetimeChecker.cpp224 // freeze it. By using a defer here, we can make sure we don't forget to doCOMMENT
MEDIUMstdlib/public/runtime/Metadata.cpp4306 // the field-offset vector, as discussed above.COMMENT
MEDIUMstdlib/public/Concurrency/DispatchGlobalExecutor.cpp243 // API, but as discussed above, that is less important than avoidingCOMMENT
Self-Referential Comments11 hits · 32 pts
SeverityFileLineSnippetContext
MEDIUMbenchmark/scripts/test_compare_perf_tests.py349 # Create a temporary directoryCOMMENT
MEDIUMutils/swift-api-dump.py285 # Create the sets of arguments to dump_module_api.COMMENT
MEDIUMutils/swift-bench.py12# This file implements a test harness for running Swift performance benchmarks.COMMENT
MEDIUMutils/optimizer_counters_to_sql.py42 # Create the required tables, indices, etc.COMMENT
MEDIUMutils/protocol_graph.py13# Create a graph of the protocol refinement relationships, associatedCOMMENT
MEDIUMutils/lldb/lldbToolBox.py103 # Define an alias that prints rax and also steps one instruction.STRING
MEDIUMutils/jobstats/__init__.py15# This module contains subroutines for loading object-representations of one orCOMMENT
MEDIUMutils/jobstats/jobstats.py15# This file contains subroutines for loading object-representations of one orCOMMENT
MEDIUM…s/swift_build_support/swift_build_support/workspace.py43 # Create a name for the build directory.COMMENT
MEDIUM…d_support/swift_build_support/products/wasiswiftsdk.py124 # Create a closure capturing WASI-specific platform config.COMMENT
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to its containingCOMMENT
Cross-Language Confusion7 hits · 32 pts
SeverityFileLineSnippetContext
HIGHutils/gyb_foundation_support.py27 return falseCODE
HIGHutils/gyb_foundation_support.py35 return trueCODE
HIGHutils/gyb_foundation_support.py81 return falseCODE
HIGHutils/gyb_foundation_support.py84 return trueCODE
HIGHutils/swift-bench.py177 if CommandLine.arguments.count <= 2 || CommandLine.arguments[2] == name {CODE
HIGHutils/android/adb_push_built_products/main.py56 print(adb.commands.push(sources, destination))CODE
HIGHutils/swift_build_support/tests/test_shell.py72 shell.capture(["sh", "-c", "echo foo && false"],STRING
Modern Structural Boilerplate29 hits · 29 pts
SeverityFileLineSnippetContext
LOWtools/SourceKit/bindings/python/sourcekitd/capi.py638__all__ = [CODE
LOWtools/SourceKit/bindings/python/sourcekitd/request.py45__all__ = [CODE
LOWtools/SourceKit/bindings/python/sourcekitd/__init__.py24__all__ = ['capi', 'request']STRING
LOWutils/python_lint.py24__all__ = [CODE
LOWutils/build_swift/build_swift/class_utils.py15__all__ = [CODE
LOWutils/build_swift/build_swift/presets.py23__all__ = [CODE
LOWutils/build_swift/build_swift/constants.py12__all__ = [CODE
LOWutils/build_swift/build_swift/shell.py31__all__ = [CODE
LOWutils/build_swift/build_swift/driver_arguments.py23__all__ = [CODE
LOWutils/build_swift/build_swift/cache_utils.py17__all__ = [CODE
LOWutils/build_swift/build_swift/defaults.py23__all__ = [CODE
LOWutils/build_swift/build_swift/versions.py18__all__ = [CODE
LOWutils/build_swift/build_swift/migration.py23__all__ = [CODE
LOWutils/build_swift/build_swift/wrappers/__init__.py12__all__ = [CODE
LOWutils/build_swift/build_swift/wrappers/xcrun.py22__all__ = [CODE
LOWutils/build_swift/build_swift/argparse/actions.py22__all__ = [CODE
LOWutils/build_swift/build_swift/argparse/__init__.py29__all__ = [CODE
LOWutils/build_swift/build_swift/argparse/types.py24__all__ = [CODE
LOWutils/build_swift/build_swift/argparse/parser.py23__all__ = [CODE
LOWutils/build_swift/tests/utils.py20__all__ = [CODE
LOWutils/build_swift/tests/expected_options.py19__all__ = [CODE
LOWutils/cmpcodesize/cmpcodesize/__init__.py23__all__ = []CODE
LOWutils/pygments/swift.py24__all__ = ['SwiftLexer', 'SILLexer', 'SwiftConsoleLexer']CODE
LOWutils/update_checkout/__init__.py3__all__ = ["main"]CODE
LOWutils/update_checkout/update_checkout/__init__.py3__all__ = ["main"]CODE
LOW…s/update_checkout/update_checkout/commands/__init__.py3__all__ = ["StatusCommand"]CODE
LOWutils/android/__init__.py11__all__ = ['adb', 'adb_push_built_products', 'adb_test_runner']CODE
LOW…s/swift_build_support/swift_build_support/toolchain.py27__all__ = [CODE
LOW…build_support/swift_build_support/products/__init__.py57__all__ = [CODE
TODO Padding16 hits · 23 pts
SeverityFileLineSnippetContext
LOW…s/Sources/Optimizer/FunctionPasses/AsyncDemotion.swift455 // TODO: implementSTRING
LOW…SILOptimizer/moveonly_addresschecker_diagnostics.swift4144 // TODO: Fix error to say that it is from nonTrivialStruct2COMMENT
LOW…SILOptimizer/moveonly_addresschecker_diagnostics.swift4147 // TODO: Fix error to say that it is from nonTrivialStruct2COMMENT
LOWtest/AutoDiff/IRGen/loadable_by_address.swift17// TODO: Add tests for `@differentiable(_linear)` functions.COMMENT
LOWtest/Interop/Cxx/templates/Inputs/function-templates.h101// TODO: Add tests for Decltype, UnaryTransform, and TemplateSpecialization withCOMMENT
LOWtest/Interop/Cxx/templates/Inputs/function-templates.h104// TODO: Add test for DeducedTemplateSpecializationType once we support class templates.COMMENT
LOWtest/Sema/builtin_int.swift17// TODO: implement support for dependent-width integer typesCOMMENT
LOWtest/attr/attr_cdecl.swift58// TODO: Handle error conventions in SILGen for toplevel functions.COMMENT
LOWlib/SILOptimizer/Utils/ConstExpr.cpp1959 // TODO: implement caching.COMMENT
LOWlib/IRGen/MetadataLayout.cpp721 // TODO: implement resilient metadata layoutCOMMENT
LOWlib/SIL/IR/SILInstruction.cpp1429 // TODO: implement for all remaining allocationsCOMMENT
LOWstdlib/public/Distributed/DistributedAssertions.swift105 /// TODO: implement the logic in-place perhaps rather than delegating to precondition()?COMMENT
LOWstdlib/public/runtime/Metadata.cpp5851 // TODO: implementCOMMENT
LOWstdlib/public/Concurrency/ExecutorAssertions.swift60 /// TODO: implement the logic in-place perhaps rather than delegating to precondition()?COMMENT
LOWstdlib/public/Concurrency/ExecutorAssertions.swift196 /// TODO: implement the logic in-place perhaps rather than delegating to precondition()?COMMENT
LOWstdlib/public/Concurrency/ExecutorAssertions.swift242 /// TODO: implement the logic in-place perhaps rather than delegating to precondition()?COMMENT
Redundant / Tautological Comments9 hits · 12 pts
SeverityFileLineSnippetContext
LOWtest/lit.cfg691# Check if we overrode the linker; if we do, set a feature to say that, whichCOMMENT
LOWtest/lit.cfg1098# Check if we need to run lit tests using the legacy driver or the new driverSTRING
LOWtest/lit.cfg2658 # Check if the Android environment needs to be in the name.STRING
LOWtest/Interop/lit.local.cfg14 # Check if CF_OPTIONS macro has been updated to be imported into Swift in C++ mode correctly.COMMENT
LOWutils/build_swift/build_swift/constants.py140 # Check if Swift is checked out as part of a unified build.COMMENT
LOWutils/build_swift/build_swift/constants.py194# Set SWIFT_BUILD_ROOT to a directory that will contain a subdirectory for each buildCOMMENT
LOWutils/cmpcodesize/cmpcodesize/compare.py68 # Check if multiple architectures are supported by the object file.COMMENT
LOW…ils/update_checkout/update_checkout/update_checkout.py1169 # Check if `swift` repo itself needs to switch to a cross-repo branch.COMMENT
LOWutils/api_checker/swift-api-checker.py81 # Check if we need fixed clang modulesCOMMENT
Modern AI Meta-Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMutils/UnicodeData/GraphemeBreakProperty.txt1039B77D..B797 ; LVT # Lo [27] HANGUL SYLLABLE RAG..HANGUL SYLLABLE RAHCODE
MEDIUM…ils/gen-unicode-data/Data/17/GraphemeBreakProperty.txt1210B77D..B797 ; LVT # Lo [27] HANGUL SYLLABLE RAG..HANGUL SYLLABLE RAHCODE
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWutils/build_swift/build_swift/shell.py294CODE
LOWutils/build_swift/build_swift/argparse/actions.py60CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWutils/swift-build-modules.py4# Usage:COMMENT