AI Slop Code RIsk Monitor

librosa/librosa

Python library for audio and music analysis

17.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for librosa/librosa, a Python project with 8,665 GitHub stars. SynthScan examined 59,368 lines of code across 129 source files, recording 783 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 17.7 (Elevated 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.

17.7
Adjusted Signal
17.7
Raw Pattern Score
100%
Time Factor
2026-10-06
Last Push
8.7K
Stars
Python
Language
59.4K
Lines of Code
129
Files
783
Pattern Hits
2026-10-12
Scan Date
0.16
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 42.7/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 3.7/100 · LOW

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

Agent Over-Engineering Ratio 46.0/100 · MEDIUM

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

PR Review Velocity Impact 59.8/100 · HIGH

Which changes need focused human review? 783 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 0HIGH 20MEDIUM 100LOW 663

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 783 distinct pattern matches across 16 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 Identifiers323 hits · 319 pts
SeverityFileLineSnippetContext
LOWlibrosa/effects.py704def _signal_to_frame_nonsilent(CODE
LOWlibrosa/core/convert.py1585def fourier_tempo_frequencies(CODE
LOWlibrosa/core/convert.py2064def multi_frequency_weighting(CODE
LOWlibrosa/core/pitch.py369def _cumulative_mean_normalized_difference(CODE
LOWlibrosa/util/matching.py53def __match_interval_overlaps(query, intervals_to, candidates): # pragma: no coverCODE
LOW⚡tests/test_sequence.py677def test_trans_local_nstates_fail(n):CODE
LOW⚡tests/test_sequence.py683def test_trans_local_width_fail(width):CODE
LOW⚡tests/test_sequence.py687def test_trans_local_wrap_const():CODE
LOWtests/test_sequence.py45def test_viterbi_multichannel():CODE
LOWtests/test_sequence.py121def test_viterbi_negative_minprob():CODE
LOWtests/test_sequence.py137def test_viterbi_discriminative_negative_minprob():CODE
LOWtests/test_sequence.py210def test_viterbi_bad_transition(trans, rng):CODE
LOWtests/test_sequence.py245def test_viterbi_discriminative_example(transition_min_prob):CODE
LOWtests/test_sequence.py282def test_viterbi_discriminative_multi():CODE
LOWtests/test_sequence.py348def test_viterbi_discriminative_example_init():CODE
LOWtests/test_sequence.py399def test_viterbi_discriminative_bad_transition(x_disc, trans):CODE
LOWtests/test_sequence.py414def test_viterbi_discriminative_bad_init(p_init, trans, x_disc):CODE
LOWtests/test_sequence.py429def test_viterbi_discriminative_bad_marginal(x_disc, trans, p_state):CODE
LOWtests/test_sequence.py444def test_viterbi_discriminative_bad_obs(x, trans):CODE
LOWtests/test_sequence.py449def test_viterbi_binary_example():CODE
LOWtests/test_sequence.py488def test_viterbi_binary_multi():CODE
LOWtests/test_sequence.py525def test_viterbi_binary_example_init():CODE
LOWtests/test_sequence.py567def test_viterbi_binary_bad_transition(x_data, trans):CODE
LOWtests/test_sequence.py578def test_viterbi_binary_bad_init(x_data, trans, p_init):CODE
LOWtests/test_sequence.py589def test_viterbi_binary_bad_marginal(p_state, trans, x_data):CODE
LOWtests/test_sequence.py600def test_viterbi_binary_bad_obs(x, trans):CODE
LOWtests/test_sequence.py614def test_trans_uniform_badshape(n):CODE
LOWtests/test_sequence.py704def test_trans_local_nowrap_const():CODE
LOWtests/test_sequence.py721def test_trans_local_wrap_var():CODE
LOWtests/test_sequence.py738def test_trans_local_nowrap_var():CODE
LOWtests/conftest.py41def pytest_collection_modifyitems(config, items):CODE
LOW⚡tests/test_features.py373def test_spectral_flatness_synthetic(S, flatness_ref):CODE
LOW⚡tests/test_features.py381def test_spectral_flatness_errors(S, amin):CODE
LOW⚡tests/test_features.py387def test_spectral_flatness_badtype(S):CODE
LOW⚡tests/test_features.py757def test_fourier_tempogram_fail_badwin(y, sr, win_length, window):CODE
LOW⚡tests/test_features.py762def test_fourier_tempogram_fail_noinput():CODE
LOW⚡tests/test_features.py770def test_fourier_tempogram_audio(y_chirp, hop_length):CODE
LOW⚡tests/test_features.py1124def test_tempogram_ratio_aggregate(y_clicks, tg_ex):CODE
LOW⚡tests/test_features.py1132def test_tempogram_ratio_with_tg(y_clicks, tg_ex):CODE
LOW⚡tests/test_features.py1142def test_tempogram_ratio_with_bpm(y_clicks, tg_ex):CODE
LOWtests/test_features.py125def test_stack_memory_ndim_badshape(data, delay, n_steps):CODE
LOWtests/test_features.py147def test_spectral_centroid_synthetic(S_ideal, freq):CODE
LOWtests/test_features.py159def test_spectral_centroid_errors(S):CODE
LOWtests/test_features.py167def test_spectral_centroid_empty(y, sr, S):CODE
LOWtests/test_features.py183def test_spectral_feature_dtype(feature, dtype, rng):CODE
LOWtests/test_features.py203def test_spectral_bandwidth_synthetic(S_ideal, freq, norm, p):CODE
LOWtests/test_features.py221def test_spectral_bandwidth_onecol(S_ideal, freq):CODE
LOWtests/test_features.py229def test_spectral_bandwidth_flat():CODE
LOWtests/test_features.py249def test_spectral_bandwidth_errors(S):CODE
LOWtests/test_features.py263def test_spectral_rolloff_synthetic(S, freq, pct):CODE
LOWtests/test_features.py286def test_spectral_rolloff_errors(S, pct):CODE
LOWtests/test_features.py304def test_spectral_contrast_log(y_chirp):CODE
LOWtests/test_features.py316def test_spectral_contrast_flat(linear):CODE
LOWtests/test_features.py327def test_spectral_contrast_maximum(linear):CODE
LOWtests/test_features.py358def test_spectral_contrast_errors(S, freq, fmin, n_bands, quantile):CODE
LOWtests/test_features.py522def test_poly_features_synthetic(poly_S, poly_coeffs, poly_freq):CODE
LOWtests/test_features.py603def test_tempogram_fail_noinput():CODE
LOWtests/test_features.py613def test_tempogram_fail_badwin(y, sr, win_length, window):CODE
LOWtests/test_features.py804def test_fourier_tempogram_invert(sr, hop_length, win_length, center, window):CODE
LOWtests/test_features.py851def test_cens_nosmooth_nonorm(cens_cqt):CODE
263 more matches not shown…
Decorative Section Separators78 hits · 234 pts
SeverityFileLineSnippetContext
MEDIUM⚡docs/conf.py103# ----------------------------------STRING
MEDIUM⚡docs/conf.py105# ----------------------------------STRING
MEDIUM⚡docs/conf.py108# ------------------------------------------------------------------------------STRING
MEDIUM⚡docs/conf.py110# ------------------------------------------------------------------------------STRING
MEDIUMdocs/tutorials/01-intro/05-onsets.py163# ---------------COMMENT
MEDIUMdocs/tutorials/01-intro/05-onsets.py227# ------------COMMENT
MEDIUMdocs/tutorials/01-intro/04-harmony.py14# -------------------------COMMENT
MEDIUMdocs/tutorials/01-intro/04-harmony.py54# -------------------COMMENT
MEDIUMdocs/tutorials/01-intro/04-harmony.py149# ----------------------COMMENT
MEDIUMdocs/tutorials/01-intro/03-f0.py14# ---------------------COMMENT
MEDIUMdocs/tutorials/01-intro/03-f0.py41# ----------------------COMMENT
MEDIUMdocs/tutorials/01-intro/03-f0.py117# -----------------------COMMENT
MEDIUMdocs/tutorials/01-intro/07-timbre.py15# ---------------COMMENT
MEDIUMdocs/tutorials/01-intro/07-timbre.py131# ----------COMMENT
MEDIUMdocs/tutorials/01-intro/07-timbre.py286# -----------COMMENT
MEDIUMdocs/tutorials/01-intro/07-timbre.py338# -------------------------------------------COMMENT
MEDIUMdocs/tutorials/01-intro/07-timbre.py401# -----------------------COMMENT
MEDIUMdocs/tutorials/01-intro/06-rhythm.py65# --------------------COMMENT
MEDIUMdocs/tutorials/01-intro/06-rhythm.py135# -------------------COMMENT
MEDIUMdocs/tutorials/01-intro/01-load.py15# ---------------------COMMENT
MEDIUMdocs/tutorials/01-intro/01-load.py60# ----------------------------------COMMENT
MEDIUMdocs/tutorials/01-intro/01-load.py107# -------------------COMMENT
MEDIUMdocs/tutorials/01-intro/01-load.py139# ----------------------COMMENT
MEDIUMdocs/tutorials/01-intro/08-notation.py14# ------------------------------------COMMENT
MEDIUMdocs/tutorials/01-intro/08-notation.py103# ----------------COMMENT
MEDIUMdocs/tutorials/01-intro/08-notation.py159# --------------------------------COMMENT
MEDIUMdocs/tutorials/01-intro/08-notation.py238# ---------------------COMMENT
MEDIUMdocs/tutorials/01-intro/02-frequency.py15# ----------------COMMENT
MEDIUMdocs/tutorials/01-intro/02-frequency.py129# ---------------------COMMENT
MEDIUMdocs/tutorials/01-intro/02-frequency.py200# ------------COMMENT
MEDIUMdocs/tutorials/02-display/01-wave.py14# ------------------------COMMENT
MEDIUMdocs/tutorials/02-display/01-wave.py163# -----------------COMMENT
MEDIUMdocs/tutorials/02-display/01-wave.py186# -----------------------COMMENT
MEDIUMdocs/tutorials/02-display/04-colors.py17# -----------------------------COMMENT
MEDIUMdocs/tutorials/02-display/04-colors.py28# ---------------------------------------COMMENT
MEDIUMdocs/tutorials/02-display/04-colors.py106# ------------------------------COMMENT
MEDIUMdocs/tutorials/02-display/04-colors.py136# -----------------------------COMMENT
MEDIUMdocs/tutorials/02-display/04-colors.py194# ------------COMMENT
MEDIUMdocs/tutorials/02-display/02-spectrogram.py15# ------------COMMENT
MEDIUMdocs/tutorials/02-display/02-spectrogram.py63# ---------------COMMENT
MEDIUMdocs/tutorials/02-display/02-spectrogram.py151# ----------------------COMMENT
MEDIUMdocs/tutorials/02-display/02-spectrogram.py182# ----------------COMMENT
MEDIUMdocs/tutorials/02-display/08-mireval.py23# ----------------COMMENT
MEDIUMdocs/tutorials/02-display/08-mireval.py31# --------------COMMENT
MEDIUMdocs/tutorials/02-display/08-mireval.py91# -------------COMMENT
MEDIUMdocs/tutorials/02-display/08-mireval.py141# -----------------COMMENT
MEDIUMdocs/tutorials/02-display/07-multichannel.py20# -------------------COMMENT
MEDIUMdocs/tutorials/02-display/07-multichannel.py95# --------------------------COMMENT
MEDIUMdocs/tutorials/02-display/07-multichannel.py126# ----------------COMMENT
MEDIUMdocs/tutorials/02-display/07-multichannel.py151# ----------------COMMENT
MEDIUMdocs/tutorials/02-display/03-axes.py15# ----------------COMMENT
MEDIUMdocs/tutorials/02-display/03-axes.py97# ---------------COMMENT
MEDIUMdocs/tutorials/02-display/05-nonspectral.py63# ----------COMMENT
MEDIUMdocs/tutorials/02-display/05-nonspectral.py99# ----------------COMMENT
MEDIUMdocs/tutorials/03-advanced/plot_audio_playback.py29# -------------------------COMMENT
MEDIUMdocs/tutorials/03-advanced/plot_audio_playback.py47# --------------------COMMENT
MEDIUMdocs/tutorials/03-advanced/plot_audio_playback.py68# -------------------------COMMENT
MEDIUMdocs/tutorials/03-advanced/plot_audio_playback.py103# ------------------COMMENT
MEDIUMdocs/tutorials/03-advanced/plot_dynamic_beat.py35# ------------------------------COMMENT
MEDIUMdocs/tutorials/03-advanced/plot_dynamic_beat.py37# ------------------------------COMMENT
18 more matches not shown…
Over-Commented Block143 hits · 142 pts
SeverityFileLineSnippetContext
LOWlibrosa/core/audio.py1501 epsilon: float,COMMENT
LOWlibrosa/core/audio.py1521 # DEN_{M} from eqn 16 of Marple.COMMENT
LOWlibrosa/core/audio.py1561 # SNIP - we are now done with order M and advance. M-1 <- MCOMMENT
LOWtests/test_features.py581 # F#:dim is [0, 6, 9]COMMENT
LOWtests/test_core.py3001 # array([[0, 1, 2],COMMENT
LOWtests/test_filters.py1#!/usr/bin/env pythonCOMMENT
LOWdocs/conf.py1# -*- coding: utf-8 -*-COMMENT
LOWdocs/conf.py281html_use_modindex = TrueCOMMENT
LOWdocs/conf.py401# The name of an image file (relative to this directory) to place at the top ofCOMMENT
LOWdocs/tutorials/01-intro/05-onsets.py61# sustained F note beginning at around 2.5 seconds, there are no abruptCOMMENT
LOWdocs/tutorials/01-intro/05-onsets.py81# We can put these ideas together as follows.COMMENT
LOWdocs/tutorials/01-intro/05-onsets.py141ax[1].legend()COMMENT
LOWdocs/tutorials/01-intro/05-onsets.py161# %%COMMENT
LOWdocs/tutorials/01-intro/05-onsets.py221COMMENT
LOWdocs/tutorials/01-intro/05-onsets.py241COMMENT
LOWdocs/tutorials/01-intro/05-onsets.py261# floating point numbers, and may be subject to rounding errors.COMMENT
LOWdocs/tutorials/01-intro/04-harmony.py1# coding: utf-8COMMENT
LOWdocs/tutorials/01-intro/04-harmony.py41librosa.display.colorbar_db(img, label="dBFS")COMMENT
LOWdocs/tutorials/01-intro/04-harmony.py61# notions of harmonics, which are spaced **geometrically**.COMMENT
LOWdocs/tutorials/01-intro/04-harmony.py81C = librosa.cqt(y=y, sr=sr)COMMENT
LOWdocs/tutorials/01-intro/04-harmony.py101# 1025.COMMENT
LOWdocs/tutorials/01-intro/04-harmony.py141print(f"CQT shape={C.shape}")COMMENT
LOWdocs/tutorials/01-intro/04-harmony.py181COMMENT
LOWdocs/tutorials/01-intro/04-harmony.py221fig.colorbar(imgchroma, ax=ax[1], aspect=20/3) # aspect compensates for the 3:1 height ratio of these plotsCOMMENT
LOWdocs/tutorials/01-intro/04-harmony.py241# representing harmonic content in musical signals.COMMENT
LOWdocs/tutorials/01-intro/03-f0.py1# coding: utf-8COMMENT
LOWdocs/tutorials/01-intro/03-f0.py21# The discrete Fourier transform implicitly assumes that all signals repeatCOMMENT
LOWdocs/tutorials/01-intro/03-f0.py61# The method that we'll use first is known as `yin`.COMMENT
LOWdocs/tutorials/01-intro/03-f0.py101COMMENT
LOWdocs/tutorials/01-intro/03-f0.py121# 1. `pyin` models continuity in time by using a Markov chain.COMMENT
LOWdocs/tutorials/01-intro/03-f0.py141COMMENT
LOWdocs/tutorials/01-intro/07-timbre.py1# coding: utf-8COMMENT
LOWdocs/tutorials/01-intro/07-timbre.py21# As a result, the analysis in this section will be a bit more exploratory and data-driven thanCOMMENT
LOWdocs/tutorials/01-intro/07-timbre.py121COMMENT
LOWdocs/tutorials/01-intro/07-timbre.py141# directly on the intuition behind our example above.COMMENT
LOWdocs/tutorials/01-intro/07-timbre.py161# %%COMMENT
LOWdocs/tutorials/01-intro/07-timbre.py241# do not contribute visual clutter, and otherwise color-code each frame by its instrument:COMMENT
LOWdocs/tutorials/01-intro/07-timbre.py281# clusters are mostly homogeneous in pitch. This tells us that the STFT similarity is indeed moreCOMMENT
LOWdocs/tutorials/01-intro/07-timbre.py321COMMENT
LOWdocs/tutorials/01-intro/07-timbre.py361 ax[i, 0].set(ylabel=inst)COMMENT
LOWdocs/tutorials/01-intro/07-timbre.py441# %%COMMENT
LOWdocs/tutorials/01-intro/07-timbre.py461knn_eval(mfcc_fit, mfcc_test)COMMENT
LOWdocs/tutorials/01-intro/06-rhythm.py101# %%COMMENT
LOWdocs/tutorials/01-intro/06-rhythm.py121# If we collect these autocorrelation results together, we can visualizeCOMMENT
LOWdocs/tutorials/01-intro/06-rhythm.py141#COMMENT
LOWdocs/tutorials/01-intro/01-load.py1# coding: utf-8COMMENT
LOWdocs/tutorials/01-intro/01-load.py41# :class: sidebarCOMMENT
LOWdocs/tutorials/01-intro/01-load.py61# By default, `librosa.load` will standardize the signal to a sampling rate ofCOMMENT
LOWdocs/tutorials/01-intro/01-load.py81# The sampling rate `sr` tells us how many samples we have every second,COMMENT
LOWdocs/tutorials/01-intro/01-load.py101# sample index, we can use the `librosa.samples_to_time` function:COMMENT
LOWdocs/tutorials/01-intro/01-load.py121# and `librosa.display` to draw the waveform on it.COMMENT
LOWdocs/tutorials/01-intro/01-load.py141# To do this, we'll use the `IPython.display.Audio` class.COMMENT
LOWdocs/tutorials/01-intro/01-load.py161# `IPython.display`, like shown below.COMMENT
LOWdocs/tutorials/01-intro/08-notation.py1# coding: utf-8COMMENT
LOWdocs/tutorials/01-intro/08-notation.py21# second, abbreviated Hz). This is something that we can observe directly in aCOMMENT
LOWdocs/tutorials/01-intro/08-notation.py41# :math:`f = 440 · 2^{(n-69)/12}`. Librosa also supports fractional MIDI noteCOMMENT
LOWdocs/tutorials/01-intro/08-notation.py61# | 62 | D4 | 293.665 |COMMENT
LOWdocs/tutorials/01-intro/08-notation.py101# %%COMMENT
LOWdocs/tutorials/01-intro/08-notation.py121# to pitch class 0 (*C*), the second to pitch class 1 (*C♯* or *D♭*), and so on, regardless of the key.COMMENT
LOWdocs/tutorials/01-intro/08-notation.py141# -------COMMENT
83 more matches not shown…
Empty Error Handlers17 hits · 85 pts
SeverityFileLineSnippetContext
HIGHtests/test_features.py15except KeyError:CODE
HIGHtests/test_effects.py11except KeyError:CODE
HIGHtests/test_notation.py10except KeyError:CODE
HIGHtests/test_constantq.py15except KeyError:CODE
HIGHtests/test_core.py13except KeyError:CODE
HIGHtests/test_display.py11except KeyError:CODE
HIGHtests/test_convert.py10except KeyError:CODE
HIGHtests/test_util.py11except KeyError:CODE
HIGHtests/test_multichannel.py11except KeyError:CODE
HIGHtests/test_decompose.py10except KeyError:CODE
HIGHtests/test_onset.py13except KeyError:CODE
HIGHtests/test_filters.py19except KeyError:CODE
HIGHtests/test_beat.py10except KeyError:CODE
HIGHtests/test_failures.py10except KeyError:CODE
HIGHtests/test_intervals.py11except KeyError:CODE
HIGHtests/test_segment.py11except KeyError:CODE
HIGHtests/test_cache.py21except KeyError:CODE
AI Structural Patterns67 hits · 66 pts
SeverityFileLineSnippetContext
LOWlibrosa/effects.py47CODE
LOWlibrosa/effects.py178CODE
LOWlibrosa/effects.py294CODE
LOWlibrosa/effects.py515CODE
LOWlibrosa/onset.py24CODE
LOWlibrosa/onset.py210CODE
LOWlibrosa/onset.py438CODE
LOWlibrosa/sequence.py46CODE
LOWlibrosa/sequence.py61CODE
LOWlibrosa/sequence.py104CODE
LOWlibrosa/sequence.py119CODE
LOWlibrosa/sequence.py133CODE
LOWlibrosa/sequence.py148CODE
LOWlibrosa/sequence.py161CODE
LOWlibrosa/display.py1340CODE
LOWlibrosa/display.py1965CODE
LOWlibrosa/display.py2572CODE
LOWlibrosa/display.py2891CODE
LOWlibrosa/display.py3075CODE
LOWlibrosa/display.py3842CODE
LOWlibrosa/segment.py345CODE
LOWlibrosa/segment.py360CODE
LOWlibrosa/segment.py375CODE
LOWlibrosa/beat.py37CODE
LOWlibrosa/beat.py52CODE
LOWlibrosa/beat.py67CODE
LOWlibrosa/beat.py81CODE
LOWlibrosa/beat.py312CODE
LOWlibrosa/filters.py560CODE
LOWlibrosa/core/constantq.py42CODE
LOWlibrosa/core/constantq.py209CODE
LOWlibrosa/core/constantq.py415CODE
LOWlibrosa/core/constantq.py594CODE
LOWlibrosa/core/constantq.py820CODE
LOWlibrosa/core/constantq.py1285CODE
LOWlibrosa/core/spectrum.py58CODE
LOWlibrosa/core/spectrum.py395CODE
LOWlibrosa/core/spectrum.py646CODE
LOWlibrosa/core/spectrum.py809CODE
LOWlibrosa/core/spectrum.py990CODE
LOWlibrosa/core/spectrum.py1522CODE
LOWlibrosa/core/spectrum.py2360CODE
LOWlibrosa/core/spectrum.py2379CODE
LOWlibrosa/core/spectrum.py2398CODE
LOWlibrosa/core/spectrum.py2671CODE
LOWlibrosa/core/spectrum.py2922CODE
LOWlibrosa/core/audio.py1731CODE
LOWlibrosa/core/pitch.py182CODE
LOWlibrosa/core/pitch.py631CODE
LOWlibrosa/core/harmonic.py465CODE
LOWlibrosa/feature/spectral.py46CODE
LOWlibrosa/feature/spectral.py195CODE
LOWlibrosa/feature/spectral.py357CODE
LOWlibrosa/feature/spectral.py538CODE
LOWlibrosa/feature/spectral.py695CODE
LOWlibrosa/feature/spectral.py930CODE
LOWlibrosa/feature/spectral.py1152CODE
LOWlibrosa/feature/spectral.py1312CODE
LOWlibrosa/feature/spectral.py1442CODE
LOWlibrosa/feature/spectral.py1592CODE
7 more matches not shown…
Self-Referential Comments15 hits · 45 pts
SeverityFileLineSnippetContext
MEDIUMlibrosa/_cache.py36 # Initialize the memory objectCOMMENT
MEDIUMlibrosa/display.py2309 # The following code centers the FFT bins at their frequenciesCOMMENT
MEDIUMlibrosa/display.py2415 # The following code centers the FFT bins at their frequenciesCOMMENT
MEDIUMlibrosa/display.py2802 # Create the adaptive drawing objectCOMMENT
MEDIUMlibrosa/display.py3043 # Create a proxy artist if we have a label to setCOMMENT
MEDIUMlibrosa/display.py3250 # Create the adaptive drawing objectCOMMENT
MEDIUMlibrosa/core/audio.py854 # Create an empty stereo output bufferCOMMENT
MEDIUMtests/test_display.py1367 # Create a chirpCOMMENT
MEDIUMdocs/conf.py6# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUMdocs/tutorials/01-intro/03-f0.py57# Create a display object for listeningCOMMENT
MEDIUMdocs/tutorials/02-display/01-wave.py39# Create a figureCOMMENT
MEDIUMdocs/tutorials/03-advanced/plot_pcen_stream.py66# Create a handle for storing the block STFT outputsCOMMENT
MEDIUMdocs/tutorials/03-advanced/plot_music_sync.py159 # Create a connection patch between the aligned time pointsCOMMENT
MEDIUMscripts/audit_docstring_examples.py121 # Create a visitor instance and visit the nodesCOMMENT
MEDIUMscripts/create_author_list.py67 # Create a Request object and add a User-Agent header (GitHub requires it).COMMENT
Unused Imports52 hits · 44 pts
SeverityFileLineSnippetContext
LOWlibrosa/effects.py10CODE
LOWlibrosa/onset.py7CODE
LOWlibrosa/decompose.py10CODE
LOWlibrosa/sequence.py11CODE
LOWlibrosa/__init__.py14CODE
LOWlibrosa/display.py11CODE
LOWlibrosa/segment.py11CODE
LOWlibrosa/beat.py4CODE
LOWlibrosa/filters.py7CODE
LOWlibrosa/core/convert.py4CODE
LOWlibrosa/core/notation.py4CODE
LOWlibrosa/core/intervals.py4CODE
LOWlibrosa/core/constantq.py4CODE
LOWlibrosa/core/spectrum.py4CODE
LOWlibrosa/core/audio.py4CODE
LOWlibrosa/core/pitch.py4CODE
LOWlibrosa/core/harmonic.py5CODE
LOWlibrosa/util/files.py4CODE
LOWlibrosa/util/matching.py4CODE
LOWlibrosa/util/_nnls.py11CODE
LOWlibrosa/util/utils.py5CODE
LOWlibrosa/util/decorators.py5CODE
LOWlibrosa/feature/utils.py4CODE
LOWlibrosa/feature/spectral.py4CODE
LOWlibrosa/feature/inverse.py4CODE
LOWlibrosa/feature/rhythm.py4CODE
LOWtests/test_effects.py4CODE
LOWtests/test_notation.py6CODE
LOWtests/test_notation.py13CODE
LOWtests/test_constantq.py6CODE
LOWtests/test_constantq.py8CODE
LOWtests/test_constantq.py21CODE
LOWtests/test_core.py6CODE
LOWtests/test_core.py21CODE
LOWtests/test_core.py28CODE
LOWtests/test_core.py28CODE
LOWtests/test_core.py28CODE
LOWtests/test_display.py25CODE
LOWtests/test_convert.py6CODE
LOWtests/test_util.py4CODE
LOWtests/test_multichannel.py15CODE
LOWtests/test_multichannel.py19CODE
LOWtests/test_multichannel.py20CODE
LOWtests/test_multichannel.py23CODE
LOWtests/test_onset.py17CODE
LOWtests/test_filters.py23CODE
LOWtests/test_filters.py24CODE
LOWtests/test_intervals.py7CODE
LOWtests/test_intervals.py14CODE
LOWtests/test_segment.py4CODE
LOWtests/test_cache.py8CODE
LOWscripts/audit_docstring_examples.py12CODE
Deep Nesting34 hits · 33 pts
SeverityFileLineSnippetContext
LOWlibrosa/onset.py24CODE
LOWlibrosa/sequence.py478CODE
LOWlibrosa/sequence.py846CODE
LOWlibrosa/sequence.py1151CODE
LOWlibrosa/display.py1340CODE
LOWlibrosa/display.py1915CODE
LOWlibrosa/display.py1965CODE
LOWlibrosa/display.py2443CODE
LOWlibrosa/display.py3622CODE
LOWlibrosa/display.py216CODE
LOWlibrosa/segment.py1316CODE
LOWlibrosa/beat.py81CODE
LOWlibrosa/beat.py568CODE
LOWlibrosa/filters.py886CODE
LOWlibrosa/core/convert.py2254CODE
LOWlibrosa/core/convert.py2558CODE
LOWlibrosa/core/notation.py200CODE
LOWlibrosa/core/notation.py626CODE
LOWlibrosa/core/intervals.py28CODE
LOWlibrosa/core/intervals.py302CODE
LOWlibrosa/core/spectrum.py58CODE
LOWlibrosa/core/spectrum.py2398CODE
LOWlibrosa/core/audio.py223CODE
LOWlibrosa/core/audio.py1002CODE
LOWlibrosa/util/matching.py66CODE
LOWlibrosa/util/utils.py797CODE
LOWtests/test_features.py981CODE
LOWtests/test_core.py2736CODE
LOWtests/test_onset.py302CODE
LOWtests/test_filters.py169CODE
LOWtests/test_beat.py186CODE
LOWscripts/audit_docstring_examples.py116CODE
LOWscripts/create_author_list.py58CODE
LOWscripts/create_zenodo_json.py75CODE
Modern Structural Boilerplate24 hits · 24 pts
SeverityFileLineSnippetContext
LOWlibrosa/effects.py33__all__ = [CODE
LOWlibrosa/onset.py21__all__ = ["onset_detect", "onset_strength", "onset_strength_multi", "onset_backtrack"]CODE
LOWlibrosa/decompose.py26__all__ = ["decompose", "hpss", "nn_filter"]CODE
LOWlibrosa/sequence.py30__all__ = [CODE
LOWlibrosa/display.py61__all__ = [CODE
LOWlibrosa/segment.py38__all__ = [CODE
LOWlibrosa/beat.py33__all__ = ["beat_track", "plp"]CODE
LOWlibrosa/filters.py28__all__ = [CODE
LOWlibrosa/core/convert.py31__all__ = [CODE
LOWlibrosa/core/notation.py31__all__ = [CODE
LOWlibrosa/core/constantq.py36__all__ = ["cqt", "hybrid_cqt", "pseudo_cqt", "icqt", "griffinlim_cqt", "vqt"]CODE
LOWlibrosa/core/spectrum.py39__all__ = [CODE
LOWlibrosa/core/audio.py35__all__ = [CODE
LOWlibrosa/core/pitch.py25__all__ = ["estimate_tuning", "pitch_tuning", "piptrack", "yin", "pyin"]CODE
LOWlibrosa/core/harmonic.py22__all__ = ["salience", "interp_harmonics", "f0_harmonics"]CODE
LOWlibrosa/util/files.py21__all__ = [CODE
LOWlibrosa/util/matching.py17__all__ = ["match_intervals", "match_events"]CODE
LOWlibrosa/util/_nnls.py22__all__ = ["nnls"]CODE
LOWlibrosa/util/utils.py43__all__ = [CODE
LOWlibrosa/util/decorators.py25__all__ = ["moved", "deprecated", "vectorize"]CODE
LOWlibrosa/feature/utils.py17__all__ = ["delta", "stack_memory"]CODE
LOWlibrosa/feature/spectral.py26__all__ = [CODE
LOWlibrosa/feature/inverse.py25__all__ = ["mel_to_stft", "mel_to_audio", "mfcc_to_mel", "mfcc_to_audio"]CODE
LOWlibrosa/feature/rhythm.py27__all__ = [CODE
AI Response Leakage3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHdocs/tutorials/01-intro/06-rhythm.py57# musical onsets. In this example, the peaks are also regularly spaced in time.COMMENT
HIGHdocs/tutorials/01-intro/06-rhythm.py104# In this example, the first peak occurs at around 0.4 seconds.COMMENT
HIGHdocs/tutorials/03-advanced/plot_dynamic_beat.py108# In this example, the result is not perfect: `tempo_dynamic` contains jagged andCOMMENT
Slop Phrases5 hits · 13 pts
SeverityFileLineSnippetContext
MEDIUMlibrosa/core/audio.py542 .. note:: This function is primarily useful for demonstration purposes,STRING
MEDIUMdocs/tutorials/01-intro/01-load.py160# To force the player to display, you can use the `display` function fromCOMMENT
MEDIUMdocs/tutorials/02-display/08-mireval.py127# hack suffices for demonstration purposes.COMMENT
MEDIUMdocs/tutorials/03-advanced/plot_audio_playback.py60# If you're playing back packaged examples, you can also use the `url` argument to constructCOMMENT
MEDIUMdocs/tutorials/03-advanced/plot_audio_playback.py151# in the same cell, you can useCOMMENT
AI Slop Vocabulary6 hits · 10 pts
SeverityFileLineSnippetContext
LOWlibrosa/beat.py577 # NOTE: when we can bump the minimum numba to 0.58, we can eliminate this branch and just useCOMMENT
LOWlibrosa/beat.py644 # No back-link found, so just use the current scoreCOMMENT
LOWlibrosa/core/intervals.py484 # Otherwise, just return intervals as floatsCOMMENT
LOWlibrosa/core/audio.py1862 # Normally, just add a click hereCOMMENT
MEDIUMdocs/tutorials/01-intro/07-timbre.py341# Essentially, these work by projecting each dB-scaled mel spectrum (frame) onto a set of basisCOMMENT
LOWdocs/tutorials/01-intro/01-load.py65# To use the audio file's native sampling rate, simply set `sr=None`.COMMENT
Verbosity Indicators6 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡librosa/beat.py458 # Step 2: get the fourier tempogramSTRING
LOW⚡librosa/beat.py466 # Step 3: pin to the feasible tempo rangeSTRING
LOW⚡librosa/beat.py490 # Step 5: invert the Fourier tempogram to get the pulseSTRING
LOW⚡librosa/beat.py495 # Step 6: retain only the positive part of the pulse cycleSTRING
LOWlibrosa/beat.py447 # Step 1: get the onset envelopeSTRING
LOWlibrosa/beat.py479 # Step 3: Discard everything below the peakSTRING
Structural Annotation Overuse6 hits · 4 pts
SeverityFileLineSnippetContext
LOW⚡librosa/beat.py458 # Step 2: get the fourier tempogramSTRING
LOW⚡librosa/beat.py466 # Step 3: pin to the feasible tempo rangeSTRING
LOW⚡librosa/beat.py490 # Step 5: invert the Fourier tempogram to get the pulseSTRING
LOW⚡librosa/beat.py495 # Step 6: retain only the positive part of the pulse cycleSTRING
LOWlibrosa/beat.py447 # Step 1: get the onset envelopeSTRING
LOWlibrosa/beat.py479 # Step 3: Discard everything below the peakSTRING
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWlibrosa/util/matching.py375 # Check if right should be chosenCOMMENT
LOWlibrosa/util/utils.py1249 # Check if we're a local peakCOMMENT
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_util.py1275def test_shear_sparse_1d_raises():CODE
LOWtests/test_util.py1278 except Exception:CODE