You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
core/operator/matcher.py::hyphen_compound_emission — imported by operator_extractor.py but never called; hyphen handling is inlined at the call site. Dead import + dead function.
backend/src/edcmbone/parser/turns_rounds.py — import math present but math is never referenced in the file. Dead import.
core/parsing/tokenizer.py — dead fallback if not toks: toks = text.split() is unreachable: the trailing-gap path always appends at least one token. Dead branch.
canon/loader.py — affix section list is hardcoded: ["inflectional", "derivational_prefixes", "derivational_suffixes"]. A new section added to the JSON is silently ignored. Should iterate affix_dict.keys() instead.
core/behavioral/behavioral_metrics.py — accepts a ucns_store parameter, but behavioral_window.compute_behavioral_windows never passes it. The UCNS marker comparison path is dead in normal pipeline flow. Either wire it up or remove the parameter.
canon/loader.py::CanonLoader() — re-reads and re-parses JSON on every construction. compute_round and compute_transcript create a fresh CanonLoader() when canon=None, causing per-round or per-transcript file reads at scale. Use a module-level singleton or require callers to pass the loader in.
Six small cleanup items suitable for a single PR:
core/operator/matcher.py::hyphen_compound_emission— imported byoperator_extractor.pybut never called; hyphen handling is inlined at the call site. Dead import + dead function.backend/src/edcmbone/parser/turns_rounds.py—import mathpresent butmathis never referenced in the file. Dead import.core/parsing/tokenizer.py— dead fallbackif not toks: toks = text.split()is unreachable: the trailing-gap path always appends at least one token. Dead branch.canon/loader.py— affix section list is hardcoded:["inflectional", "derivational_prefixes", "derivational_suffixes"]. A new section added to the JSON is silently ignored. Should iterateaffix_dict.keys()instead.core/behavioral/behavioral_metrics.py— accepts aucns_storeparameter, butbehavioral_window.compute_behavioral_windowsnever passes it. The UCNS marker comparison path is dead in normal pipeline flow. Either wire it up or remove the parameter.canon/loader.py::CanonLoader()— re-reads and re-parses JSON on every construction.compute_roundandcompute_transcriptcreate a freshCanonLoader()whencanon=None, causing per-round or per-transcript file reads at scale. Use a module-level singleton or require callers to pass the loader in.