AI Slop Code RIsk Monitor

plasma-umass/scalene

Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals

14.4 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for plasma-umass/scalene, a Python project with 13,525 GitHub stars. SynthScan examined 113,973 lines of code across 452 source files, recording 1067 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 14.4 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

14.4
Adjusted Signal
14.4
Raw Pattern Score
100%
Time Factor
2026-10-01
Last Push
13.5K
Stars
Python
Language
114.0K
Lines of Code
452
Files
1.1K
Pattern Hits
2026-10-12
Scan Date
0.15
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 29.6/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 691 finding(s).

Hallucinated Dependency & Supply Chain Risk 11.7/100 · LOW

Are imports declared and package/API names verified? 185 finding(s).

Agent Over-Engineering Ratio 35.5/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 645 finding(s).

PR Review Velocity Impact 51.7/100 · HIGH

Which changes need focused human review? 1067 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 67MEDIUM 123LOW 876

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1067 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers454 hits · 440 pts
SeverityFileLineSnippetContext
LOWsetup.py186def fetch_vendor_deps_windows():CODE
LOWsetup.py303 def _fix_windows_arch_mismatch(self):CODE
LOWsetup.py429 def copy_extensions_to_source(self):CODE
LOWtest/test_sparkline.py19def test_get_bars__in_wsl_and_windows_terminal(monkeypatch):CODE
LOW⚡test/test_sparkline.py35def test_generate__up_and_down():CODE
LOW⚡test/test_sparkline.py43def test_generate__all_zeroes():CODE
LOW⚡test/test_sparkline.py51def test_generate__with_negative_values():CODE
LOWtest/test_sparkline.py67def test_generate__with_max_same_as_actual_max():CODE
LOWtest/test_sparkline.py75def test_generate__with_max_below_actual_max():CODE
LOWtest/test_tracer.py117 def test_sys_monitoring_default(self):STRING
LOWtest/test_tracer.py157 def test_using_sys_monitoring(self):STRING
LOWtest/test_tracer.py166 def test_set_use_legacy_tracer(self):STRING
LOWtest/test_tracer.py187 def test_pywhere_sysmon_available(self):STRING
LOWtest/test_tracer.py240 def test_function_call_attribution(self):STRING
LOWtest/issues/test-issue167.py18def get_mean_for_indicator_poor(df, indicator):CODE
LOWtest/issues/test-issue167.py28def get_mean_for_indicator_better(df, indicator, rnd_cols):CODE
LOWtests/test_memory_multithreaded_gil_release.py48def test_worker_alloc_outweighs_main_sleep(tmp_path: Path) -> None:CODE
LOWtests/test_memory_multithreaded_gil_release.py84def test_memory_stacks_leaf_is_worker(tmp_path: Path) -> None:CODE
LOW⚡tests/test_cli_leak_velocity_zero_elapsed.py41def test_cli_leak_velocity_no_divide_by_zero_on_short_run():CODE
LOW⚡tests/test_cli_leak_velocity_zero_elapsed.py49def test_cli_leak_velocity_normal_case():CODE
LOW⚡tests/test_cli_leak_velocity_zero_elapsed.py54def test_compute_leaks_independent_of_elapsed_time():CODE
LOWtests/test_signal_all_threads_cap.py52def test_cap_caps_signaled_per_call(unwind_module, batch_size):CODE
LOWtests/test_signal_all_threads_cap.py90def test_cap_rotates_across_calls(unwind_module, batch_size):CODE
LOWtests/test_signal_all_threads_cap.py133def test_cap_is_a_noop_when_under_cap(unwind_module, batch_size):CODE
LOWtests/test_signal_all_threads_cap.py189def test_visit_order_is_shuffled_across_calls(unwind_module, batch_size):CODE
LOWtests/test_launchbrowser_serve_dir.py52def test_serve_dir_is_private_and_holds_page_and_assets(served) -> None:CODE
LOWtests/test_launchbrowser_serve_dir.py70def test_other_temp_files_are_not_served(served) -> None:CODE
LOWtests/test_launchbrowser_serve_dir.py86def test_directory_listings_are_disabled(served) -> None:CODE
LOWtests/test_launchbrowser_serve_dir.py93def test_remove_serve_dir_deletes_it(tmp_path: Path) -> None:CODE
LOWtests/test_cpu_attribution.py236 def test_c_time_attributed_to_call_line(self, profiler, stats):CODE
LOWtests/test_cpu_attribution.py275 def test_pure_python_no_preceding_call(self, profiler, stats):CODE
LOWtests/test_cpu_attribution.py306 def test_multi_consecutive_c_calls(self, profiler, stats):CODE
LOWtests/test_cpu_attribution.py359 def test_thread_at_call_instruction_attributes_to_c(self, profiler, stats):CODE
LOWtests/test_cpu_attribution.py422 def test_at_call_instruction_attributes_to_c(CODE
LOWtests/test_cpu_attribution.py461 def test_not_at_call_attributes_to_python(CODE
LOWtests/test_cpu_attribution.py556 def test_first_body_line_detected(self) -> None:CODE
LOWtests/test_cpu_attribution.py578 def test_non_loop_line_returns_none(self) -> None:CODE
LOWtests/test_cpu_attribution.py589 def test_mid_body_line_returns_none(self) -> None:CODE
LOWtests/test_cpu_attribution.py604 def test_loop_with_calls_returns_none(self) -> None:CODE
LOWtests/test_cpu_attribution.py624 def test_nested_loop_picks_innermost(self) -> None:CODE
LOWtests/test_cpu_attribution.py651 def test_loop_body_time_redistributed(self, profiler: ScaleneCPUProfiler, stats: ScaleneStatistics) -> None:CODE
LOWtests/test_cpu_attribution.py702 def test_no_loop_redistribution_mid_body(self, profiler: ScaleneCPUProfiler, stats: ScaleneStatistics) -> None:CODE
LOWtests/test_coverup_98.py26def test_remove_nonexistent_child_pid():CODE
LOWtests/test_line_attribution_nested.py99def test_mallocs_credited_to_allocator_not_caller(tmp_path: Path) -> None:CODE
LOWtests/test_line_attribution_nested.py140def test_memory_samples_timeline_only_on_allocator(tmp_path: Path) -> None:CODE
LOWtests/test_line_attribution_nested.py182def test_memory_stacks_leaf_is_allocator(tmp_path: Path) -> None:CODE
LOWtests/test_coverup_121.py17def test_launch_browser_insecure_on_mac(mock_platform_system):CODE
LOWtests/test_coverup_121.py31def test_launch_browser_insecure_on_windows(mock_platform_system):CODE
LOWtests/test_sysmon_tool_id_conflict.py22 def test_fallback_when_profiler_id_taken(self):CODE
LOWtests/test_sysmon_tool_id_conflict.py51 def test_fallback_to_legacy_when_all_ids_taken(self):CODE
LOWtests/test_sysmon_tool_id_conflict.py89 def test_profiling_works_with_id_conflict(self):CODE
LOWtests/test_sysmon_tool_id_conflict.py210 def test_scalene_with_torch_profiler(self):STRING
LOWtests/test_memory_multithreaded_stacks.py49def test_memory_stacks_cover_both_workers(tmp_path: Path) -> None:CODE
LOWtests/test_memory_multithreaded_stacks.py78def test_memory_stacks_leaves_are_fixture(tmp_path: Path) -> None:CODE
LOWtests/test_coverup_131.py18def test_profile_this_code_without_files_to_profile(scalene_cleanup):CODE
LOWtests/test_coverup_125.py13def scalene_setup_and_teardown():CODE
LOWtests/test_coverup_125.py38def test_start_signal_handler(scalene_setup_and_teardown):CODE
LOW⚡tests/test_jax_profiler.py41 def test_jax_profiler_is_available_matches_import(self):CODE
LOW⚡tests/test_jax_profiler.py51 def test_jax_profiler_get_line_time_default(self):CODE
LOW⚡tests/test_jax_profiler.py57 def test_jax_profiler_get_gpu_line_time_default(self):CODE
394 more matches not shown…
Decorative Section Separators67 hits · 239 pts
SeverityFileLineSnippetContext
MEDIUMtest/test_freethreaded_parity.py23# ── Workload scripts ────────────────────────────────────────────────COMMENT
MEDIUMtest/test_freethreaded_parity.py156# ── Helpers ─────────────────────────────────────────────────────────STRING
MEDIUMtest/test_freethreaded_parity.py269# ── Test phases ─────────────────────────────────────────────────────COMMENT
MEDIUMtest/test_freethreaded_parity.py581# ── Main ────────────────────────────────────────────────────────────COMMENT
MEDIUM…t/expensive_benchmarks/docutils_data/docs/dev/todo.txt807 # =================COMMENT
MEDIUMformal/extract/scalene_verified_core.py1# ============================================================================COMMENT
MEDIUMformal/extract/scalene_verified_core.py18# ============================================================================COMMENT
MEDIUMtests/test_cpu_attribution.py30# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cpu_attribution.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cpu_attribution.py154# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cpu_attribution.py156# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cpu_attribution.py174# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cpu_attribution.py176# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cpu_attribution.py218# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cpu_attribution.py220# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cpu_attribution.py397# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cpu_attribution.py399# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cpu_attribution.py500# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_cpu_attribution.py502# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_classifier_soundness.py50# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_classifier_soundness.py52# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_classifier_soundness.py172# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_classifier_soundness.py174# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_classifier_soundness.py258# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_classifier_soundness.py260# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_nested_package_relative_import.py15 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_nested_package_relative_import.py17 # ------------------------------------------------------------------COMMENT
MEDIUMtests/test_nested_package_relative_import.py41 # ------------------------------------------------------------------COMMENT
MEDIUMtests/test_nested_package_relative_import.py43 # ------------------------------------------------------------------COMMENT
MEDIUMtests/test_nested_package_relative_import.py64 # ------------------------------------------------------------------COMMENT
MEDIUMtests/test_nested_package_relative_import.py66 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_child_cmdline.py53# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_child_cmdline.py55# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_child_cmdline.py128# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_child_cmdline.py130# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_child_cmdline.py153# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_child_cmdline.py157# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_issue999_wallclock.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_issue999_wallclock.py28# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_native_stacks.py155# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_native_stacks.py157# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_native_stacks.py186# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_native_stacks.py188# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_native_stacks.py928# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_native_stacks.py930# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_native_stacks.py1270# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_native_stacks.py1272# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_native_stacks.py1569# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_native_stacks.py1571# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_native_stacks.py59# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_native_stacks.py61# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_native_stacks.py752# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_native_stacks.py754# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_native_stacks.py292# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_native_stacks.py294# ---------------------------------------------------------------------------STRING
MEDIUM⚡tests/test_on_off_windows.py94# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_on_off_windows.py96# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_on_off_windows.py321# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_on_off_windows.py323# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_on_off_windows.py345# ---------------------------------------------------------------------------COMMENT
7 more matches not shown…
Empty Error Handlers45 hits · 225 pts
SeverityFileLineSnippetContext
HIGHtest/test-size.py8except ImportError:CODE
HIGHtest/timeline_view_demo.py63except OSError:CODE
HIGHtest/test_freethreaded_parity.py180except (json.JSONDecodeError, ValueError):CODE
HIGHtest/smoketest_pool_spawn.py44except FileNotFoundError:CODE
HIGHtest/smoketest_pool_spawn.py94except subprocess.TimeoutExpired:CODE
HIGHtest/smoketest_pool_spawn.py88except ProcessLookupError:CODE
HIGHtest/expensive_benchmarks/bm_docutils.py26except ImportError:CODE
HIGHtests/test_signal_all_threads_cap.py30except ImportError:CODE
HIGHtests/test_perthread_stack_stitching.py505except OSError:CODE
HIGHtests/test_perthread_stack_stitching.py509except OSError:CODE
HIGHtests/test_async_profiling.py287except asyncio.CancelledError:CODE
HIGHtests/test_native_stacks.py103except OSError:CODE
HIGHtests/test_native_stacks.py341except (ProcessLookupError, PermissionError, OSError):CODE
HIGHtests/test_native_stacks.py345except (ProcessLookupError, PermissionError, OSError):CODE
HIGHtests/test_native_stacks.py391except subprocess.TimeoutExpired:CODE
HIGHscalene/scalene_profiler.py29except ModuleNotFoundError:CODE
HIGHscalene/scalene_profiler.py1313except ImportError:CODE
HIGHscalene/scalene_profiler.py2122except StopJupyterExecution:CODE
HIGHscalene/scalene_profiler.py1453except Exception:CODE
HIGHscalene/scalene_profiler.py2099except StopJupyterExecution:CODE
HIGHscalene/scalene_profiler.py1921except Exception:CODE
HIGHscalene/scalene_utility.py909except OSError:CODE
HIGHscalene/launchbrowser.py214except OSError:CODE
HIGHscalene/scalene_tensorflow.py43except ImportError:CODE
HIGHscalene/scalene_tensorflow.py41except (AttributeError, ValueError, IndexError):CODE
HIGHscalene/scalene_tensorflow.py71except (ImportError, AttributeError):CODE
HIGHscalene/scalene_tensorflow.py164except Exception:CODE
HIGHscalene/scalene_tensorflow.py125except (TypeError, AttributeError):CODE
HIGHscalene/scalene_tensorflow.py137except (TypeError, AttributeError):CODE
HIGHscalene/scalene_async.py255except (ValueError, AttributeError):CODE
HIGHscalene/scalene_async.py279except (ValueError, AttributeError):CODE
HIGHscalene/scalene_torch.py33except ImportError:CODE
HIGHscalene/scalene_torch.py178except Exception:CODE
HIGHscalene/scalene_torch.py219except Exception:CODE
HIGHscalene/scalene_tracing.py198except Exception:CODE
HIGHscalene/scalene_library_registry.py55except ImportError:CODE
HIGHscalene/scalene_library_registry.py64except ImportError:CODE
HIGHscalene/scalene_tracer.py302except (AttributeError, NotImplementedError):CODE
HIGHscalene/scalene_jax.py30except ImportError:CODE
HIGHscalene/scalene_jax.py91except Exception:CODE
HIGHscalene/scalene_neuron.py206except KeyboardInterrupt:CODE
HIGHscalene/scalene_library_profiler.py178except Exception:CODE
HIGHscalene/scalene_library_profiler.py203except Exception:CODE
HIGHscalene/scalene_mapfile.py193except FileNotFoundError:CODE
HIGHbenchmarks/measure_profiler_memory.py58except (subprocess.CalledProcessError, FileNotFoundError, ProcessLookupError,CODE
Unused Imports165 hits · 156 pts
SeverityFileLineSnippetContext
LOWtest/test-size.py1CODE
LOWtest/test_sparkline.py1CODE
LOWtest/multiprocessing_test.py1CODE
LOWtest/multiprocessing_test.py3CODE
LOWtest/smoketest_issue_1022.py39CODE
LOWtest/profile_annotation_test.py14CODE
LOWtest/profile_annotation_test.py80CODE
LOWtest/small_mp_test.py2CODE
LOWtest/small_mp_test.py3CODE
LOWtest/small_mp_test.py4CODE
LOWtest/threads-test.py2CODE
LOWtest/testflask-driver.py1CODE
LOWtest/testflask-driver.py2CODE
LOWtest/pool-test.py1CODE
LOWtest/new_mp_test.py2CODE
LOWtest/testme.py2CODE
LOWtest/test-martinheinz.py1CODE
LOWtest/original/bm_richards.py12CODE
LOWtest/automatic/dataframe/dataframe-select-optimized.py3CODE
LOWtest/automatic/dataframe/dataframe-select-original.py3CODE
LOWtest/optimized/bm_richards.py12CODE
LOWtest/expensive_benchmarks/bm_async_tree_io.py24CODE
LOWtest/expensive_benchmarks/bm_docutils.py6CODE
LOWtest/expensive_benchmarks/bm_docutils.py10CODE
LOWtest/expensive_benchmarks/bm_docutils.py12CODE
LOWtest/expensive_benchmarks/bm_fannukh.py9CODE
LOWtest/issues/test-issue167.py1CODE
LOWtest/issues/test-issue379.py1CODE
LOWtest/issues/test-issue130.py1CODE
LOWtest/issues/test-issue266.py1CODE
LOWtest/issues/test-issue266.py3CODE
LOWformal/extract/scalene_verified_core.py22CODE
LOWformal/extract/scalene_verified_core.py24CODE
LOWformal/extract/scalene_verified_core.py25CODE
LOWtests/test_memory_multithreaded_gil_release.py22CODE
LOWtests/test_coverup_110.py5CODE
LOWtests/test_coverup_98.py5CODE
LOWtests/test_line_attribution_nested.py17CODE
LOWtests/test_coverup_115.py7CODE
LOWtests/test_coverup_115.py7CODE
LOWtests/test_coverup_121.py6CODE
LOWtests/test_sysmon_tool_id_conflict.py135CODE
LOWtests/test_sysmon_tool_id_conflict.py221CODE
LOWtests/test_memory_multithreaded_stacks.py18CODE
LOWtests/test_coverup_89.py7CODE
LOWtests/test_coverup_65.py5CODE
LOWtests/test_coverup_34.py5CODE
LOWtests/test_coverup_24.py5CODE
LOWtests/test_coverup_24.py7CODE
LOWtests/test_coverup_55.py7CODE
LOWtests/test_coverup_45.py5CODE
LOWtests/test_coverup_71.py7CODE
LOWtests/test_coverup_71.py9CODE
LOWtests/test_issue1091_bom.py3CODE
LOWtests/test_memory_arithmetic_smear.py23CODE
LOWtests/test_memory_two_allocators.py15CODE
LOWtests/test_coverup_54.py5CODE
LOWtests/test_coverup_54.py6CODE
LOWtests/test_coverup_54.py7CODE
LOWtests/test_coverup_54.py8CODE
105 more matches not shown…
Self-Referential Comments43 hits · 134 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_sysmon_tool_id_conflict.py139 # Create a test script that uses PyTorchCOMMENT
MEDIUMtests/test_sysmon_tool_id_conflict.py225 # Create a test script that uses torch.profilerSTRING
MEDIUMtests/test_coverup_125.py19 # Create a child process and add its PID to the setCOMMENT
MEDIUMtests/test_jax_profiler.py402 # Create a realistic trace file with multiple eventsCOMMENT
MEDIUMtests/test_jax_profiler.py527 # Create a temporary trace fileCOMMENT
MEDIUMtests/test_tensorflow_profiler.py492 # Create a realistic trace file with multiple eventsCOMMENT
MEDIUMtests/test_coverup_24.py14# Create a test function to execute the missing lines/branchesCOMMENT
MEDIUMtests/test_coverup_75.py28 # Create a temporary file to ensure the test environment is cleanCOMMENT
MEDIUMtests/test_coverup_30.py41 # Create a ScaleneArguments object with default argumentsCOMMENT
MEDIUM⚡tests/test_coverup_20.py34 # Create a dummy profile fileCOMMENT
MEDIUM⚡tests/test_coverup_20.py48 # Create a dummy profile fileCOMMENT
MEDIUMtests/test_coverup_15.py16 # Create a temporary directory for the testCOMMENT
MEDIUMtests/test_coverup_53.py13# Define a fixture to clean up state after each testCOMMENT
MEDIUMtests/test_coverup_53.py38 # Create a Namespace object with the necessary attributesCOMMENT
MEDIUMtests/test_coverup_118.py36 frame = MagicMock() # Create a MagicMock frame to simulate the behaviorCODE
MEDIUMtests/test_coverup_84.py18 # Create a temporary file to simulate the malloc lock fileCOMMENT
MEDIUMtests/test_torch_profiler.py132 # Define a JIT function in this file so we know the filenameCOMMENT
MEDIUMtests/test_torch_profiler.py338 # Create a test script that uses JIT - must run long enough to profileCOMMENT
MEDIUMtests/test_perthread_stack_stitching.py424 # Create a minimal test script that runs worker threadsCOMMENT
MEDIUMtests/test_coverup_91.py11 # Create a mock function to be decoratedCOMMENT
MEDIUMtests/test_coverup_17.py19 # Define a process function that will be called by the queueCOMMENT
MEDIUMtests/test_coverup_17.py27 # Create an instance of ScaleneSigQueueCOMMENT
MEDIUM⚡tests/test_coverup_139.py22 # Create a fake frame object using MagicMockCOMMENT
MEDIUMtests/test_coverup_116.py20 # Create a temporary profile file with some contentCOMMENT
MEDIUM⚡tests/test_coverup_122.py12# Define a test function to improve coverageCOMMENT
MEDIUM⚡tests/test_coverup_122.py15 # Create a temporary file to simulate a Python scriptCOMMENT
MEDIUMtests/test_coverup_137.py29 # Define a dummy function to be decoratedCOMMENT
MEDIUMtests/test_coverup_19.py15 # Create a temporary directory to simulate a native package with a .so fileCOMMENT
MEDIUMtests/test_coverup_68.py18 # Define the source and destination dictionariesCOMMENT
MEDIUMtests/test_coverup_133.py10# Create a dummy function to profileCOMMENT
MEDIUMscalene/scalene_profiler.py411 # Create a temporary directory to hold aliases to the PythonCOMMENT
MEDIUMscalene/scalene_utility.py849 # Create a new error with just the custom messageCOMMENT
MEDIUMscalene/scalene_magics.py40 # Create a file to hold the supplied code.COMMENT
MEDIUMscalene/launchbrowser.py28 # Create a temporary directoryCOMMENT
MEDIUMscalene/launchbrowser.py30 # Create a command with the required flagsCOMMENT
MEDIUMscalene/scalene_tensorflow.py114 # Create a temporary directory for tracesCOMMENT
MEDIUMscalene/scalene_signals.py1# Import the necessary libraries.COMMENT
MEDIUMscalene/scalene_statistics.py569 # Create a temporary instance to inspect attributesCOMMENT
MEDIUMscalene/scalene_statistics.py705 # Initialize statistics classesCOMMENT
MEDIUMscalene/scalene_statistics.py871 # Create a file in the Python alias directory with the relevant info.COMMENT
MEDIUMscalene/scalene_jax.py65 # Create a temporary directory for tracesCOMMENT
MEDIUMscalene/scalene_windows.py151 # Create a C callback wrapperCOMMENT
MEDIUMscalene/scalene_analysis.py33 # This module is not installed or something else went wrong; fail gracefully.COMMENT
Cross-Language Confusion18 hits · 118 pts
SeverityFileLineSnippetContext
HIGHsetup.py179 print("Please install Node.js and run 'npm install && npm run build' in scalene/scalene-gui/")CODE
HIGHtests/test_runningstats.py30 rstats.push(value)CODE
HIGHtests/test_coverup_41.py16 running_stats.push(1)CODE
HIGHtests/test_coverup_41.py18 running_stats.push(2)CODE
HIGH⚡tests/test_coverup_4.py16 running_stats.push(10.0)CODE
HIGH⚡tests/test_coverup_4.py22 running_stats.push(20.0)CODE
HIGH⚡tests/test_coverup_4.py28 running_stats.push(5.0)CODE
HIGHtests/test_eintr_retry.py149 int poll_ok = (r==0 && e>=380);CODE
HIGHtests/test_eintr_retry.py159 int select_ok = (r==0 && e>=380);CODE
HIGH⚡tests/test_eintr_retry.py177 int sigint_ok = (r<0 && errno==EINTR && sigints>0 && e<1000);CODE
HIGH⚡tests/test_eintr_retry.py181 return (poll_ok && select_ok && sigint_ok) ? 0 : 1;CODE
HIGH⚡tests/test_coverup_40.py11 stats.push(10)CODE
HIGH⚡tests/test_coverup_40.py12 stats.push(20)CODE
HIGH⚡tests/test_coverup_40.py13 stats.push(5)CODE
HIGH⚡tests/test_coverup_39.py11 stats.push(1)CODE
HIGH⚡tests/test_coverup_39.py12 stats.push(2)CODE
HIGH⚡tests/test_coverup_39.py13 stats.push(3)CODE
HIGHscalene/scalene_output.py364 file=null,CODE
Over-Commented Block85 hits · 82 pts
SeverityFileLineSnippetContext
LOWmypy.ini21# It's useful to try this occasionally, and keep it clean; but whenCOMMENT
LOWsetup.py521COMMENT
LOW.readthedocs.yaml21 # builder: "dirhtml"COMMENT
LOWtest/test_freethreaded_parity.py541 print(f"\n Memory scaling (8T / 1T): {ratio_8_to_1:.2f}x (nominal 8x)")COMMENT
LOWtest/original/bm_pyflate.py361 base[symbol] += 1COMMENT
LOWtest/optimized/bm_raytrace.py421# args.width, args.height,COMMENT
LOW…e_benchmarks/docutils_data/docs/dev/enthought-plan.txt181Python doesn't have multi-line comments; only single-line. A similarCOMMENT
LOWformal/extract/scalene_verified_core.py1# ============================================================================COMMENT
LOWtests/test_classifier_soundness.py261#COMMENT
LOWtests/test_classifier_soundness.py281# actual interruption — but that is the mechanism under test, so using it as itsCOMMENT
LOWtests/test_coverup_14.py21 assert len(signals) == len(set(signals))COMMENT
LOWtests/test_eintr_retry.py101# re-armed from the SIGALRM handler via setitimer() on every tick (exactly whatCOMMENT
LOWtests/test_issue1086_non_ascii_paths.py61COMMENT
LOWtests/test_coverup_17.py61 # Before each testCOMMENT
LOWtests/test_native_stacks.py561""")COMMENT
LOWtests/test_native_stacks.py681 # At least one of the two phases should produce a classified run —COMMENT
LOWscalene/scalene_memory_profiler.py281 #COMMENT
LOWscalene/scalene_memory_profiler.py301 # next legitimate sparkline sample reflects the rightCOMMENT
LOWscalene/replacement_asyncio.py21 # Nothing to do here - activation is handled by the profilerCOMMENT
LOWscalene/scalene_arguments.py121 whose dest async_profile defaults to True).COMMENT
LOWscalene/scalene_profiler.py741 # sparkline) is driven by __last_profiled, updated from this asyncCOMMENT
LOWscalene/scalene_profiler.py841 )COMMENT
LOWscalene/scalene_profiler.py921COMMENT
LOWscalene/scalene_profiler.py1941 # When running "python -c <code> <args>", sys.argv is ['-c'] + <args>COMMENT
LOWscalene/scalene_utility.py101# These caches ensure that equal frames share a single instance, so a tupleCOMMENT
LOWscalene/scalene_utility.py981# ``malloc`` *does* fire under the GIL during that line (arena resizes,COMMENT
LOWscalene/scalene_signal_manager.py241COMMENT
LOWscalene/scalene_json.py161COMMENT
LOWscalene/scalene_json.py401 # Stitched Python+native call stacks (emitted when --stacks is set).COMMENT
LOWscalene/scalene_json.py761 100.0COMMENT
LOWscalene/scalene_json.py801 stack_stats_dict = {COMMENT
LOWscalene/scalene_json.py1021 native_samples = stats.memory_stats.memory_malloc_samples.get(COMMENT
LOWscalene/scalene_json.py1161 # boundary (preserves the existing JSON layout).COMMENT
LOWscalene/scalene_statistics.py661 # frame tuples (outermost-first). Native IPs are resolved (andCOMMENT
LOWscalene/scalene_statistics.py681COMMENT
LOWscalene/scalene_cpu_profiler.py121 self._stats.gpu_stats.total_gpu_samples += gpu_timeCOMMENT
LOWscalene/scalene_cpu_profiler.py241 # instruction. If so, the signal was likely deferred during thatCOMMENT
LOWscalene/scalene-gui/scalene-gui.ts1381 }COMMENT
LOWscalene/scalene-gui/scalene-gui.ts1821 else if (normalized <= 2) niceFactor = 2;COMMENT
LOWbenchmarks/new_benchmark.py1import jsonCOMMENT
LOWbenchmarks/new_benchmark.py21 # "run",COMMENT
LOW.github/workflows/tests.yml21jobs:COMMENT
LOW.github/workflows/test-smoketests.yml61 # always-passing checks come last as smoke for the lifecycle bits.COMMENT
LOWsrc/include/sampleheap.hpp1#pragma onceCOMMENT
LOWsrc/include/sampleheap.hpp21#include <sys/types.h>COMMENT
LOWsrc/include/samplefile_win.hpp1#pragma onceCOMMENT
LOWsrc/include/common_win.hpp1#pragma onceCOMMENT
LOWsrc/include/common_win.hpp21#elseCOMMENT
LOWsrc/include/common_win.hpp41#endifCOMMENT
LOWsrc/include/traceconfig.hpp1#pragma onceCOMMENT
LOWsrc/include/traceconfig.hpp121 // Two complementary checks run here:COMMENT
LOWsrc/include/eintr_retry.hpp1// -*- C++ -*-COMMENT
LOWsrc/include/eintr_retry.hpp21// report (issue #1060) is the Microsoft ODBC Driver 18 for SQL Server: its TCPCOMMENT
LOWsrc/include/eintr_retry.hpp41// is returned to the caller unchanged.COMMENT
LOWsrc/include/eintr_retry.hpp61namespace scalene {COMMENT
LOWsrc/include/eintr_retry.hpp81COMMENT
LOWsrc/include/sampler.hpp1#pragma onceCOMMENT
LOWsrc/include/sampler.hpp21COMMENT
LOWsrc/include/sampleheap_win.hpp1#pragma onceCOMMENT
LOWsrc/include/mallocrecursionguard.hpp1#pragma onceCOMMENT
25 more matches not shown…
Redundant / Tautological Comments54 hits · 82 pts
SeverityFileLineSnippetContext
LOWsetup.py124 # Check if node_modules exists (dependencies installed)COMMENT
LOWtest/smoketest.py62 # Check if the target path parts appear at the end of the profiled pathCOMMENT
LOWtests/test_coverup_88.py22 # Check if __in_jupyter is now TrueCOMMENT
LOWtests/test_coverup_31.py15 # Set attributes to non-default valuesCOMMENT
LOWtests/test_coverup_31.py23 # Check if the attributes are reset to their default valuesCOMMENT
LOW⚡tests/test_coverup_15.py31 # Check if the sys.executable has been changedCOMMENT
LOW⚡tests/test_coverup_15.py33 # Check if the sys.path has been updatedCOMMENT
LOW⚡tests/test_coverup_15.py35 # Check if the PATH environment variable has been updatedCOMMENT
LOW⚡tests/test_coverup_15.py37 # Check if the files have been createdCOMMENT
LOWtests/test_coverup_118.py39 frame.f_back = None # Set f_back to None to trigger the return in line 1171CODE
LOWtests/test_coverup_77.py16 # Check if elapsed_time has been updatedCOMMENT
LOWtests/test_coverup_77.py18 # Check if start_time has been reset to 0COMMENT
LOWtests/test_torch_profiler.py368 # Check if profile was generatedSTRING
LOWtests/test_torch_profiler.py376 # Check if we have files to analyzeSTRING
LOWtests/test_perthread_stack_stitching.py416 # Check if native unwinding is availableCOMMENT
LOW⚡tests/test_coverup_139.py26 # Check if the queue put method was called with the correct argumentsCOMMENT
LOWtests/test_coverup_116.py31 # Check if the output file was created and has contentCOMMENT
LOWtests/test_coverup_116.py37 # Check if the output file contains the profile contentCOMMENT
LOWtests/test_coverup_106.py27 # Check if the signal.SIGVTALRM is in the returned tupleCOMMENT
LOWtests/test_coverup_106.py29 # Check if the returned tuple only contains timer signalsCOMMENT
LOWtests/test_coverup_59.py27 # Check if decimation occurredCOMMENT
LOWtests/test_coverup_59.py31 # Check if the median was correctly calculatedCOMMENT
LOWtests/test_coverup_59.py56 # Check if decimation occurredCOMMENT
LOWtests/test_coverup_59.py60 # Check if the median was correctly calculatedCOMMENT
LOWtests/test_coverup_107.py24 # Check if Scalene is now initializedCOMMENT
LOWscalene/scalene_memory_profiler.py191 # Iterate through the array to compute the new current footprintCOMMENT
LOWscalene/scalene_profiler.py1165 # Check if it's time to print profiling info.COMMENT
LOWscalene/scalene_utility.py270 # Set frame to None so we skip this frame entirely.COMMENT
LOWscalene/scalene_parseargs.py266 # Check if --help-advanced is in the argumentsCOMMENT
LOWscalene/scalene_parseargs.py810 # Check if we should print this lineCOMMENT
LOWscalene/scalene_parseargs.py954 # Check if the profile file existsCOMMENT
LOWscalene/scalene_parseargs.py1184 # Check if user provided a .py file without a subcommandSTRING
LOWscalene/scalene_parseargs.py1193 # Check if any argument looks like a Python file or moduleSTRING
LOWscalene/scalene_tensorflow.py22# Check if TensorFlow is available at import timeCOMMENT
LOWscalene/scalene_torch.py19# Check if PyTorch is available at import timeCOMMENT
LOWscalene/scalene_tracing.py93 # Check if this function is specifically decorated for profilingCOMMENT
LOWscalene/scalene_tracing.py239 # Check if the file is in the same directory tree as the program being profiled.COMMENT
LOWscalene/scalene_tracing.py243 # Check if file is in program's directory or a subdirectoryCOMMENT
LOWscalene/scalene_json.py505 # Check if this line has PyTorch profiler timing (for JIT-compiled code)COMMENT
LOWscalene/scalene_json.py668 # Check if the function at this line is a coroutineCOMMENT
LOWscalene/scalene_tracer.py21# Check if we're running Python 3.12+ where sys.monitoring is availableCOMMENT
LOWscalene/scalene_tracer.py24# Check if we're running Python 3.12+ where the C API for sys.monitoring is availableCOMMENT
LOWscalene/scalene_tracer.py230 # Check if we're still on the same lineCOMMENT
LOWscalene/scalene_tracer.py236 # Check if the original line is still on the call stack.COMMENT
LOWscalene/scalene_jax.py22# Check if JAX is available at import timeCOMMENT
LOWscalene/set_nvidia_gpu_modes.py38 # Check if the script is running as rootCOMMENT
LOWscalene/scalene_cpu_profiler.py457 # Check if the original caller is stuck inside a callCOMMENT
LOWscalene/merge_scalene_neuron_profiles.py41 # Check if source matches any of the files in scalene profileCOMMENT
LOW⚡scalene/merge_scalene_neuron_profiles.py85 # Check if CPU sample overlaps with any interval (strict overlap)COMMENT
LOW⚡scalene/merge_scalene_neuron_profiles.py87 # Check if CPU sample falls within interval exactlyCOMMENT
LOWscalene/merge_scalene_neuron_profiles.py278 # Check if this line has neuron eventsCOMMENT
LOWscalene/scalene_analysis.py62 # Check if the node represents an import statementCOMMENT
LOWscalene/scalene_analysis.py92 # Check if the node represents an import from statementCOMMENT
LOWscalene/scalene_nvidia_gpu.py57 # Check if each GPU has accounting mode set.COMMENT
Excessive Try-Catch Wrapping52 hits · 53 pts
SeverityFileLineSnippetContext
LOWsetup.py425 except Exception as e:CODE
LOWtests/test_sysmon_tool_id_conflict.py240except Exception as e:CODE
LOWscalene/scalene_profiler.py365 except Exception as e:CODE
LOWscalene/scalene_profiler.py1338 except Exception:CODE
LOWscalene/scalene_profiler.py1402 except Exception:CODE
LOWscalene/scalene_profiler.py1453 except Exception:CODE
LOWscalene/scalene_profiler.py1566 except Exception as e:CODE
LOWscalene/scalene_profiler.py1844 except Exception as e:CODE
LOWscalene/scalene_profiler.py1921 except Exception:CODE
LOWscalene/scalene_profiler.py1963 except Exception:CODE
LOWscalene/scalene_profiler.py1992 except Exception as ex:CODE
LOWscalene/scalene_profiler.py2105 except Exception as ex:CODE
LOWscalene/scalene_profiler.py2124 except Exception:CODE
LOWscalene/scalene_utility.py198 except Exception:CODE
LOWscalene/scalene_utility.py341 except Exception:CODE
LOWscalene/scalene_utility.py375 except Exception:CODE
LOWscalene/scalene_utility.py396 except Exception:CODE
LOWscalene/scalene_utility.py414 except Exception:CODE
LOWscalene/scalene_utility.py429 except Exception:CODE
LOWscalene/scalene_utility.py449 except Exception:CODE
LOWscalene/scalene_utility.py462 except Exception:CODE
LOWscalene/scalene_utility.py491 except Exception:CODE
LOWscalene/scalene_parseargs.py982 except Exception as e:CODE
LOWscalene/scalene_tensorflow.py145 except Exception:CODE
LOWscalene/scalene_tensorflow.py164 except Exception:CODE
LOWscalene/scalene_async.py314 except Exception:CODE
LOWscalene/scalene_torch.py115 except Exception:CODE
LOWscalene/scalene_torch.py150 except Exception:CODE
LOWscalene/scalene_torch.py152 except Exception:CODE
LOWscalene/scalene_torch.py169 except Exception:CODE
LOWscalene/scalene_torch.py178 except Exception:CODE
LOWscalene/scalene_torch.py219 except Exception:CODE
LOWscalene/scalene_torch.py248 except Exception:CODE
LOWscalene/scalene_tracing.py198 except Exception:CODE
LOWscalene/scalene_json.py103 except Exception:CODE
LOWscalene/scalene_apple_gpu.py225 except Exception:CODE
LOWscalene/scalene_jax.py72 except Exception:CODE
LOWscalene/scalene_jax.py91 except Exception:CODE
MEDIUMscalene/scalene_neuron.py195 print(f"Error decoding JSON: {e}")CODE
LOWscalene/scalene_neuron.py196 except Exception as e:CODE
MEDIUMscalene/scalene_neuron.py96def has_gpu(self) -> bool:CODE
LOWscalene/scalene_windows.py136 except Exception as e:CODE
MEDIUMscalene/merge_scalene_neuron_profiles.py121 print(f"Error parsing {scalene_file}: {e}")CODE
LOWscalene/scalene_library_profiler.py178 except Exception:CODE
LOWscalene/scalene_library_profiler.py203 except Exception:CODE
LOWscalene/__main__.py12 except Exception as exc:CODE
MEDIUMscalene/__main__.py5def main() -> None:CODE
LOWscalene/scalene_mapfile.py278 except Exception:CODE
MEDIUMscalene/redirect_python.py40 print(f"Error writing to {fname}: {e}")CODE
LOWscalene/scalene_lifecycle.py162 except Exception:CODE
LOWscalene/scalene_lifecycle.py184 except Exception:CODE
LOWbenchmarks/benchmark.py208 except Exception as err:CODE
Deep Nesting44 hits · 42 pts
SeverityFileLineSnippetContext
LOWtest/test_tracer.py104CODE
LOWtest/test_tracer.py240CODE
LOWtest/original/bm_scimark.py226CODE
LOWtest/original/bm_pyflate.py398CODE
LOWtest/original/bm_pyflate.py551CODE
LOWtest/optimized/bm_scimark.py228CODE
LOWtest/optimized/bm_pyflate.py401CODE
LOWtest/optimized/bm_pyflate.py558CODE
LOWtests/test_multiprocessing_pool_spawn.py19CODE
LOWtests/test_coverup_71.py13CODE
LOWtests/test_coverup_87.py80CODE
LOWtests/test_perthread_stack_stitching.py402CODE
LOWtests/test_memory_stacks_bigmem.py43CODE
LOWscalene/scalene_preload.py23CODE
LOWscalene/scalene_memory_profiler.py102CODE
LOWscalene/scalene_profiler.py885CODE
LOWscalene/scalene_profiler.py1012CODE
LOWscalene/scalene_profiler.py1808CODE
LOWscalene/scalene_utility.py569CODE
LOWscalene/scalene_utility.py651CODE
LOWscalene/scalene_signal_manager.py377CODE
LOWscalene/scalene_parseargs.py199CODE
LOWscalene/scalene_parseargs.py585CODE
LOWscalene/scalene_tensorflow.py47CODE
LOWscalene/scalene_torch.py185CODE
LOWscalene/scalene_tracing.py131CODE
LOWscalene/scalene_json.py708CODE
LOWscalene/scalene_output.py277CODE
LOWscalene/scalene_statistics.py907CODE
LOWscalene/scalene_neuron.py125CODE
LOWscalene/scalene_cpu_profiler.py61CODE
LOWscalene/merge_scalene_neuron_profiles.py9CODE
LOWscalene/merge_scalene_neuron_profiles.py96CODE
LOWscalene/scalene_library_profiler.py163CODE
LOWscalene/scalene_analysis.py18CODE
LOWscalene/scalene_analysis.py69CODE
LOWscalene/scalene_analysis.py101CODE
LOWscalene/scalene_analysis.py136CODE
LOWscalene/scalene_analysis.py168CODE
LOWscalene/scalene_analysis.py175CODE
LOWscalene/scalene_nvidia_gpu.py112CODE
LOWbenchmarks/new_benchmark.py42CODE
LOWbenchmarks/pystone.py198CODE
LOWbenchmarks/measure_profiler_memory.py42CODE
Modern Structural Boilerplate20 hits · 20 pts
SeverityFileLineSnippetContext
LOWscalene/scalene_profiler.py581 def update_line() -> None:CODE
LOWscalene/scalene_profiler.py586 def update_profiled() -> None:CODE
LOWscalene/scalene_profiler.py641 def set_thread_sleeping(tid: int) -> None:CODE
LOWscalene/scalene_profiler.py1090 def _set_in_jupyter() -> None:CODE
LOWscalene/scalene_profiler.py1737 def set_initialized() -> None:CODE
LOWscalene/scalene_signal_manager.py80 def set_timer_signals(self, enabled: bool) -> None:CODE
LOWscalene/scalene_tracing.py43 def set_args(self, args: ScaleneArguments) -> None:CODE
LOWscalene/scalene_tracing.py49 def set_program_path(self, program_path: Filename) -> None:CODE
LOWscalene/scalene_signals.py49 def set_timer_signals(self, use_virtual_time: bool = True) -> None:CODE
LOWscalene/scalene_tracer.py47def set_use_legacy_tracer(use_legacy: bool) -> None:CODE
LOWscalene/scalene_tracer.py57def set_use_python_callback(use_python: bool) -> None:CODE
LOWscalene/scalene_tracer.py164 def _setup_monitoring(cls) -> None:CODE
LOWscalene/scalene_apple_gpu.py191 def set_torch_mps_time(self, time_seconds: float) -> None:CODE
LOWscalene/scalene_neuron.py59 def _update_line(self) -> None:CODE
LOWscalene/scalene_windows.py140 def set_where_in_python(self, func) -> None:CODE
LOWscalene/scalene_windows.py156 def set_done(self, done: bool) -> None:CODE
LOWscalene/scalene_client_timer.py24 def set_itimer(self, seconds: float, interval: float) -> None:CODE
LOWscalene/scalene_lifecycle.py60 def set_initialized(self) -> None:CODE
LOWscalene/scalene_lifecycle.py74 def set_child_info(self, is_child: bool, pid: int) -> None:CODE
LOWscalene/scalene_lifecycle.py79 def set_python_alias_dir(self, path: Path) -> None:CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtest/original/bm_raytrace.py0this file contains definitions for a simple raytracer. copyright callum and tony garnock-jones, 2008. this file may be fSTRING
HIGHtest/optimized/bm_raytrace.py0this file contains definitions for a simple raytracer. copyright callum and tony garnock-jones, 2008. this file may be fSTRING
HIGHtest/expensive_benchmarks/bm_raytrace.py0this file contains definitions for a simple raytracer. copyright callum and tony garnock-jones, 2008. this file may be fSTRING
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALscalene/scalene-gui/jquery-3.6.0.slim.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):fCODE
AI Slop Vocabulary4 hits · 8 pts
SeverityFileLineSnippetContext
LOWsetup.py291 # so it seems best to just use them and let it error out if not recognized.COMMENT
LOWtests/test_coverup_66.py39 # Mock webbrowser.get().open to simply return TrueCOMMENT
MEDIUMscalene/scalene-gui/package-lock.json2585 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",CODE
MEDIUMsrc/include/traceconfig.hpp125 // installed ``scalene.__file__``). This is the robust check: itCOMMENT
Dead Code4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMtest/original/bm_pyflate.py236CODE
MEDIUMtest/optimized/bm_scimark.py20CODE
MEDIUMtest/optimized/bm_scimark.py22CODE
MEDIUMtest/optimized/bm_pyflate.py237CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscalene/scalene_parseargs.py164Load and parse a YAML configuration file. Args: config_path: Path to the YAML config file STRING
Overly Generic Function Names3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/test_coverup_55.py20 def my_method(self):CODE
LOWtests/test_coverup_16.py12 def my_method(self):CODE
LOWscalene/scalene-gui/scalene-gui.ts3052function doSomething(e: ProgressEvent<FileReader>): void {CODE
Slop Phrases2 hits · 2 pts
SeverityFileLineSnippetContext
MEDIUMscalene/scalene_tensorflow.py10This is a basic implementation that captures overall timing.STRING
MEDIUMscalene/scalene_jax.py10This is a basic implementation that captures overall timing.STRING
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtests/test_coverup_66.py58 # we don't have direct access to the variable name. We need to check if the directoryCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…xpensive_benchmarks/docutils_data/docs/user/config.txt977example, "abc@example.org" will be output as::CODE