Public report — StudyAssistant, published 3 Aug 2026.
Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version;
ask the repo owner for the full report.
263findings with an exact file:lineof 271 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
26/100dimensions across the health lenses141372 LoC — wide & deep
Executive summary
Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.
v1tzor/StudyAssistant carries serious gaps (41%). Several issues below can materially affect correctness, security, or the cost of changing it — and propagate to everything that depends on it.
It is strongest in Architecture (100%) — the structure is clean and changes stay contained. Security (92%) is solid too.
The area that most needs attention is Readiness (0%) — releases are harder to depend on — versioning, release notes and dependency hygiene are thin, so consumers can't easily tell what changed or trust an upgrade. Domain Modelling (70%) is the next concern — the domain model leaks and drifts, so business rules are harder to trust and change.
Leadership focus, highest impact first: 2 Leaked secret finding(s) (Secret Scanning); CI workflow that builds and runs the test suite on every push/PR (CI/CD gates); Run what this repository's stack ships (Security & performance tooling).
For scale: Large (~141,372 production lines); rebuilding it from scratch would take roughly ~1.1 person-years (~1–3 engineers). Approximate, ±~30%.
It builds on a genuinely strong Architecture foundation (100%); the priorities above are the highest-leverage way to bring the rest up to that level.
How the score is built — each lens's share of the headlineWidth is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
211 finding(s) are new versus the previous scan (2026-07-29) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.
A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.
0.7× (at 41% quality) — the last 20% of quality is most of the work
Size & shape
Large · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk)
This codebase represents roughly ~1.1 person-years of build effort (about ~€160,000 to rebuild). Its weakest lens is Domain Modelling at 70% — the part of that asset most exposed by the findings below.
How we model this: boilerplate at a scaffolding rate + logic × domain High (×1.4) — CQRS, domain model × a 0.7× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source · effort from total production LoC as straight-line logic (the tier split is a C#-only syntax walk), a conservative lower bound. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).
Top priorities
The highest-leverage moves; the full ranked list is in the Roadmap below.
1
Resolve the 2 Leaked secret finding(s) in Secret Scanning — start with RegisterContract.kt, LoginContract.kt.
Value concentrated against a weak lens · High · Value at risk
This is a Large asset (~1.1 person-years to rebuild), and its weakest lens is Readiness at 0%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Resolve the 2 Leaked secret finding(s) in Secret Scanning — start with RegisterContract.kt, LoginContract.kt. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Resolve the 2 Leaked secret finding(s) in Secret Scanning — start with RegisterContract.kt, LoginContract.kt.
Architecture — module dependency matrix
1402 modules, 4241 dependencies — 21 dependency cycles, shown as the red cell(s) above the diagonal. Rows and columns are the same modules, ordered so that a module only depends on ones above it. A cell means the row depends on the column, and its number is how many type pairs create that dependency. Read one thing: is anything above the diagonal? A mark there is a dependency cycle. (A cycle is all this shows — an unusual but cycle-free dependency sits below the diagonal like any other.)
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A02:2021 — Cryptographic Failures
2
High / Critical
A03:2021 — Injection
1
Medium
Roadmap
Begin by resolving the two leaked secrets in the codebase, specifically within RegisterContract.kt and LoginContract.kt. Next, establish a CI workflow to build the project and run the test suite on every push or pull request. Integrate static analysis tools, such as Semgrep or SpotBugs, into this pipeline to fail the build on security regressions. Finally, address the lack of automated tests and test distribution to ensure comprehensive coverage and reliability.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 2 Leaked secret finding(s) in Secret Scanning — start with RegisterContract.kt, LoginContract.kt.
Run what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 24 of 26 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 2 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.4 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 26 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 263 of 271 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D30 Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
D34 Knowledge Freshness — git history too condensed for a reliable signal — The history looks squashed or freshly imported, so per-file ownership reflects those commits rather than real maintenance. This dimension is reported as a low-confidence advisory and is not scored.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D8 Code Coverage: Coverage is measured by building and running the test suite inside Watchdog's isolated image — the target repo is never modified, and nothing on your systems runs. So coverage exists only when the suite builds and runs within the inline time budget; one that needs external services, can't build, or exceeds the budget yields no coverage (D8 then degrades to not-measured, not a low score). Line coverage also says nothing about assertion quality.
D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement.
D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
The LLM boundary
LLM-set scores this run (3): D19, D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) — D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
9 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was HomeworksComposeStore.handleEvent at 21. A further 7 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being Base.handle at 43 — they are counted neither in the figure above nor in this dimension's score.
+ 4 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 HomeworksComposeStore.handleEvent (cyclomatic 21) finding(s) in Cyclomatic Complexity — start with HomeworksComposeStore.kt. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 ClassComposeStore.handleEvent (cyclomatic 19) finding(s) in Cyclomatic Complexity — start with ClassComposeStore.kt. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 Base.fetchGoalsByDate (cyclomatic 17) finding(s) in Cyclomatic Complexity — start with GoalsInteractor.kt. — One of this dimension's main actionable groups (1 warning-level).
Stand up a CI pipeline, then gate Cyclomatic Complexity in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 8 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 Base.updateUserSubscriptionInfo (cognitive 38) finding(s) in Cognitive Complexity — start with AppUserInteractor.kt. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 Base.fetchGoalsByDate (cognitive 23) finding(s) in Cognitive Complexity — start with GoalsInteractor.kt. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 DailyHomeworksDetailsViewKt.DailyHomeworksDetailsView (cognitive 22) finding(s) in Cognitive Complexity — start with DailyHomeworksDetailsView.kt. — One of this dimension's main actionable groups (1 warning-level).
Stand up a CI pipeline, then gate Cognitive Complexity in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes9.9 / 10Exemplary✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
+ 34 more group(s) — more in Appendix A; the complete list is findings.md.
✓ On the Gold path — maintain.
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D8 · Code Coverage0.0 / 10Critical✓ Tool-verified
What it measures: How much of the code is actually exercised by tests.
Method: Coverage from coverlet runs or committed reports (Cobertura/OpenCover/lcov), computed per-file with structured exclusions for generated, trivial, and glue code. When the suite can't be built/run in-image AND no report is committed, coverage is reported NOT-MEASURED (excluded from the score) with the precondition to make it measurable — never a LoC-ratio proxy folded in as if measured. Deterministic.
No automated tests — no test code was found in this repository.
No automated tests
What to do
Resolve the 1 No automated tests finding(s) in Code Coverage. — One of this dimension's main actionable groups (1 issue-level).
Stand up a CI pipeline, then gate Code Coverage in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
Detailed fixes: d8_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D9 · Test Distribution0.0 / 10Critical✓ Tool-verified
What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.
Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
Resolve the 2 Leaked secret finding(s) in Secret Scanning — start with RegisterContract.kt, LoginContract.kt. — One of this dimension's main actionable groups (2 issue-level).
Stand up a CI pipeline, then gate Secret Scanning in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d13_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
10 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/OverviewContent.kt.
Small-team knowledge concentration
✓ On the Gold path — maintain.
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.
The StudyAssistant README is a rich badge-and-visuals banner with an explicit outline (🎓 Your Ultimate Academic Organizer through 🔔 Smart Notifications) and many project-specific sections, but the body is clipped mid-sentence by the scanner. The visible content shows strong branding (Android/iOS badges, Kotlin/Swift/Api24, Jetpack Compose, material-you), release/gitHub stats, and a clear outline; however, the actual documentation is cut off before any of the outlined sections are fully described.
What to do
Improve Documentation Quality — currently 4.0/10. — The StudyAssistant README is a rich badge-and-visuals banner with an explicit outline (🎓 Your Ultimate Academic Organizer through 🔔 Smart Notifications) and many project-specific sections, but the body is clipped mid-sentence by the scanner. The visible content shows strong branding (Android/iOS badges, Kotlin/Swift/Api24, Jetpack Compose, material-you), release/gitHub stats, and a clear outline; however, the actual documentation is cut off before any of the outlined sections are fully described.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.
1 finding(s): 0 critical, 1 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling; coupling through a build step, config, or non-source file isn't seen.
Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.
Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.
Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.
Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.
Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.
Other · Domain Modelling — How much of the domain uses strongly-typed ids vs raw Guid/string/int — adoption curve, not all-or-nothing.
Method: Roslyn (DDD-gated): strongly-typed id adoption on domain entities/events; raw Guid/int/string ids counted versus wrapped types. Deterministic, adoption percentage.
Coverage: Population: id-like members by *Id/*Key NAME suffix; strongly-typed-ID shape then checked semantically — non-suffixed identifiers are not seen.
`DatabaseEvent.documentId` is a raw `String` — give it a strongly-typed id: a dedicated single-field type wrapping the `String`, in whatever form your language spells that. — RemoteDatabaseEventListener.kt:62
What to do
Adopt strongly-typed ids across the domain — finish the migration or document the boundary; primitive ids invite transposed-argument bugs.
Other · Domain Modelling — Whether entities protect their state (private/init-only setters) instead of exposing public setters that bypass invariants. Softened when a rehydration framework (Marten/EF) is present.
Method: Roslyn (DDD-gated): public setters on entities detected; score softened when Marten/EF rehydration frameworks present. Deterministic, framework-aware.
Coverage: Population: entities by convention; encapsulation (setter shape) checked exhaustively within the set.
Other · Domain Modelling — Whether the domain layer stays free of infrastructure dependencies (EF/Marten/HTTP/ASP.NET) — the clean-architecture dependency rule.
Method: Roslyn (DDD-gated): domain-layer types scanned for infrastructure usage in member SIGNATURES and inside method/accessor BODIES — resolved calls and object-creations into EF/Marten/HTTP/Mongo/Redis/message-bus types (not just a namespace allowlist). Deterministic, symbol-resolved, exhaustive over domain-layer bodies, DDD-native.
Coverage: Domain layer identified by NAMESPACE heuristic; infrastructure then resolved by symbol in member SIGNATURES and method/accessor BODIES — rename the layer and the check evaporates.
Other · Domain Modelling — Whether clusters of primitives that travel together (a missing value object) are extracted — a low-weight suggestion, LLM-confirmed when configured.
Method: Roslyn (DDD-gated): primitive parameter clusters recurring three or more times across signatures extracted, then confirmed by language model when configured. Advisory, low-weight.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Add a 'Testing' section to the root README — how to run the test suite.
Add a README to the 31 of 31 project(s) that lack one — worth up to 2 pts.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no `NNNN-title.md` documents and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).
Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.
Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.
No test surface was found — there are no tests here to separate from production code, so the folder question hasn't been reached yet.
What to do
Start a test surface where your build system looks for one (tests/, test/, spec/, or your ecosystem's test source set) — the separation follows from putting the first tests in the right place.
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
Do you agree with this assessment?
P1 · CI/CD gates0.0 / 10Critical✓ Tool-verified
Readiness · Readiness — Whether an automated pipeline builds and tests every change.
Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.
No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
What to do
Add a CI workflow that builds and runs the test suite on every push/PR.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
No static application security testing detected. For this repository's stack, add spotbugs with find-sec-bugs (or `semgrep --config=auto`, which runs on any language) — this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build.
What to do
Run what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
Enable Dependabot/Renovate or a dependency-review gate.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Not included — 74 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
AX1 Captive dependencies — no DI registrations detected
AX10 Code composition — not assessed — code composition is computed by ROLE over a document set that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX2 Stateful singletons — no singleton implementations detected
AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX4 Dependency direction — not applicable to a CQRS architecture (the inward-dependency rule is for layered/clean styles)
AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX8 Test isolation — not assessed — test isolation is computed from a project graph (which projects are test projects, and what they reference) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
D10 Test Quality — No tests were found in the analyzed repository to assess for quality.
D11 Test Reliability — Test reliability not included
D12 Dependency Hygiene — Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
D14 License Compliance — Not scored — this repository's package manifest is not parsed for licence data yet. A gap in the analyzer's language coverage, NOT a finding that the repository's licenses are compliant (a Gradle version catalogue), which this pass does not parse yet — so this dimension asserts nothing about this repository's licensing in either direction.
D17 Explicit Debt — explicit-debt markers are read through a C# workspace today, so they were not read for this repository's language — this asserts nothing about how many markers the code carries. Not scored — this is a gap in the analyzer, not a finding about this repository
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
D22 Internal API Consistency — No exposed public API
D23 Boundary Type-Coupling — Production source is present (.kt, .swift) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored — this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed — see the recommendation on this dimension for where. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — No inline comments to assess — comment value is not applicable here.
D25 ADR Conformance — no ADRs to check
D26 Project Cohesion — Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
D27 Navigability — No calls could be sampled, so navigability was not assessed — tracing effort is measured over resolved call sites and this target exposed none. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle version catalogue — not scanned yet) — where an OSV-supported manifest exists, dependency vulnerabilities for this repository are reported under D38 instead.
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
D32 Data Compliance (PII/GDPR) — No PII/GDPR-handling patterns detected (p/gdpr ruleset) — no data-compliance surface to assess.
D33 JS/npm Dependency Vulnerabilities — No JS/npm manifest or lockfile found outside build output (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
D34 Knowledge Freshness — history too condensed to judge knowledge freshness
D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .gitlab-ci.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, Jenkinsfile, .circleci); there is no build to attest provenance for.
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
D38 OSV Dependency Vulnerabilities — Scanner failed to run — not a clean result
D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D5 Coupling — Inter-project coupling could not be assessed — no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a C#/VB class graph, and this repository's production source is .kt, .swift, which this pass does not read — so no class could be assessed. Not scored — this is a gap in the analyzer, not a finding about this repository.
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
DM1 Aggregate boundaries — no aggregates detected — aggregate-boundary check not applicable
DM3 Integration-event coupling — no integration events detected — coupling check not applicable
DM4 Rich vs anemic model — no data-bearing entities detected — rich-vs-anemic model not assessable
DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and this analysis resolves a call's owner only where the receiver's type is written down in the source. Reported as guidance rather than measured
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this check looks for
GD1 Unfinished & placeholder code — no source files
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P12 CI test-gate honesty — no CI workflow found
P2 Observability — Observability was not assessed: this check reads a source model that does not carry this repository's product — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of a logging idiom this check recognises is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
P7 Outbound HTTP resilience — not measured — the application kind could not be determined for this repo
P8 Schema migrations — not assessed — schema-migration practice is read from a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (JaCoCo XML — the Gradle `jacocoTestReport` task) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
PF1 Benchmark discipline — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
PF2 Allocation hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
PF3 Async & latency hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
Leaked secret: hardcoded-credential shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/register/contract/RegisterContract.kt:55— hardcoded-credential detected. Treat the value as compromised: it is readable by everyone who has ever had the repository, and deleting the line does not un-publish it. In order — (1) REVOKE it at whatever issued it and issue a replacement, which is the only step that actually closes the exposure; (2) load the replacement at run time from your platform's secret store or the process environment instead of from the tree, so no future value is committable; (3) remove the file or line and add its path to the repository's ignore rules, so it cannot come back; (4) if the value was ever live, purge it from the history as well, since a clone taken before the deletion still carries it. If this is instead a FIXTURE — key material generated for tests and valid nowhere — then the exposure is nil and the fix is to make that legible: generate it in test setup, or keep it under a test-data path, so a reader (and this scan) can tell it from the real thing.
Leaked secret: hardcoded-credential shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/login/contract/LoginContract.kt:59— hardcoded-credential detected. Treat the value as compromised: it is readable by everyone who has ever had the repository, and deleting the line does not un-publish it. In order — (1) REVOKE it at whatever issued it and issue a replacement, which is the only step that actually closes the exposure; (2) load the replacement at run time from your platform's secret store or the process environment instead of from the tree, so no future value is committable; (3) remove the file or line and add its path to the repository's ignore rules, so it cannot come back; (4) if the value was ever live, purge it from the history as well, since a clone taken before the deletion still carries it. If this is instead a FIXTURE — key material generated for tests and valid nowhere — then the exposure is nil and the fix is to make that legible: generate it in test setup, or keep it under a test-data path, so a reader (and this scan) can tell it from the real thing.
Duplicated block (11 lines × 2) shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/databases/DatabaseService.kt:347— shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/databases/DatabaseService.kt:347-357 | shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/databases/DatabaseService.kt:422-432 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/databases/DatabaseService.kt:347` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/tasks/HomeworkDataMapper.kt:67— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/tasks/HomeworkDataMapper.kt:67-77 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/tasks/HomeworkDataMapper.kt:122-132 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/tasks/HomeworkDataMapper.kt:67` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/users/AppUserDataMapper.kt:162— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/users/AppUserDataMapper.kt:162-172 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/users/AppUserDataMapper.kt:179-189 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/users/AppUserDataMapper.kt:162` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/users/EmployeeDataMapper.kt:81— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/users/EmployeeDataMapper.kt:81-91 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/users/EmployeeDataMapper.kt:148-158 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/AiAssistantRepositoryImpl.kt:84— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/AiAssistantRepositoryImpl.kt:84-94 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/AiAssistantRepositoryImpl.kt:124-134 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:113— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:113-123 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/CustomScheduleRepositoryImpl.kt:82-92 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:113` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedSchedulesRemoteDataSource.kt:163— shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedSchedulesRemoteDataSource.kt:163-173 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedSchedulesRemoteDataSource.kt:211-221 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedSchedulesRemoteDataSource.kt:163` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantContent.kt:311— shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantContent.kt:311-321 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantContent.kt:494-504 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantContent.kt:311` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:295— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:295-305 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:115-125 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:295` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:243— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:243-253 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:247-257 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:243` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:326— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:326-336 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:332-342 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:326` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/common/EmployeeSubjectView.kt:46— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/common/EmployeeSubjectView.kt:46-56 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/common/EmployeeSubjectView.kt:78-88 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/common/EmployeeSubjectView.kt:46` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:379— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:379-389 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeProfileTopSheet.kt:155-165 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:379` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:402— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:402-412 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:511-521 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:402` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/OrganizationsBottomBar.kt:107— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/OrganizationsBottomBar.kt:107-117 | shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:303-313 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/OrganizationsBottomBar.kt:107` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/ShortSubjectView.kt:122— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/ShortSubjectView.kt:122-132 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:259-269 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/ShortSubjectView.kt:122` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:468— shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:468-478 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:402-412 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:468` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/SharedSchedulesBottomSheet.kt:112— shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/SharedSchedulesBottomSheet.kt:112-122 | shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/SharedSchedulesBottomSheet.kt:272-282 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/SharedSchedulesBottomSheet.kt:112` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/SharedSchedulesBottomSheet.kt:166— shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/SharedSchedulesBottomSheet.kt:166-176 | shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/SharedSchedulesBottomSheet.kt:324-334 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/SharedSchedulesBottomSheet.kt:166` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:142— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:142-152 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt:112-122 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:142` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt:173— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt:173-184 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt:199-209 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt:173` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (11 lines × 2) shared/features/settings/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/settings/impl/domain/interactors/SubscriptionInteractor.kt:98— shared/features/settings/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/settings/impl/domain/interactors/SubscriptionInteractor.kt:98-108 | shared/src/commonMain/kotlin/ru/aleshin/studyassistant/domain/interactors/AppUserInteractor.kt:144-154 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/settings/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/settings/impl/domain/interactors/SubscriptionInteractor.kt:98` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/SharedHomeworksUiMapper.kt:89— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/SharedHomeworksUiMapper.kt:89-99 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/models/tasks/HomeworkUi.kt:64-74 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/SharedHomeworksUiMapper.kt:89` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:522— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:522-532 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:444-454 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:522` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:581— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:581-591 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:501-511 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:581` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/client/AppwriteClient.kt:229— shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/client/AppwriteClient.kt:229-240 | shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/client/AppwriteClient.kt:285-298 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/client/AppwriteClient.kt:229` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/databases/DatabaseService.kt:197— shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/databases/DatabaseService.kt:197-208 | shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/databases/DatabaseService.kt:384-395 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/databases/DatabaseService.kt:197` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/storage/StorageService.kt:95— shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/storage/StorageService.kt:95-106 | shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/storage/StorageService.kt:120-131 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/storage/StorageService.kt:95` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalDataMapper.kt:120— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalDataMapper.kt:120-131 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalDataMapper.kt:175-186 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalDataMapper.kt:120` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:241— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:241-252 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/CustomScheduleRepositoryImpl.kt:189-200 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:241` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:229— shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:229-240 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt:202-213 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:229` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:348— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:348-359 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:434-445 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:348` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:151— shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:151-162 | shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:176-187 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:151` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:186— shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:186-197 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:210-221 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:186` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12 lines × 2) shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantWorkProcessor.kt:121— shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantWorkProcessor.kt:121-132 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantWorkProcessor.kt:138-149 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantWorkProcessor.kt:121` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt:46— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt:46-57 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/mappers/EmployeeUiMapper.kt:46-57 — before extracting anything, compare `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt` and `shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/mappers/EmployeeUiMapper.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt:46` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt:94— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt:94-105 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/WorkTimeInfoField.kt:87-98 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt:94` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:249— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:249-260 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationsInfoFields.kt:137-148 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:249` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:305— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:305-316 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:311-322 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:305` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:127— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:127-138 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:188-199 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:127` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:142— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:142-153 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt:145-156 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:142` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:222— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:222-233 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:268-279 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:222` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:81— shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:81-92 | shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:97-108 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:81` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:195— shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:195-206 | shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContentCompact.kt:110-121 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:195` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12 lines × 2) shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileActionsSection.kt:237— shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileActionsSection.kt:237-248 | shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileActionsSection.kt:289-300 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileActionsSection.kt:237` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:361— shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:361-372 | shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:456-467 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:361` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:100— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:100-111 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SharedScheduleView.kt:85-96 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:100` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:182— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:182-193 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:218-229 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:182` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalBottomSheet.kt:272— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalBottomSheet.kt:272-283 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:288-299 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalBottomSheet.kt:272` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:311— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:311-322 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:401-412 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:311` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/WarningAlertDialog.kt:51— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/WarningAlertDialog.kt:51-63 | shared/features/billing/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/billing/impl/presentation/ui/subscribtion/views/SuccessPaymentDialog.kt:51-63 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/WarningAlertDialog.kt:51` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:92— shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:92-104 | shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:123-135 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:92` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/forgot/views/ForgotActionsSection.kt:97— shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/forgot/views/ForgotActionsSection.kt:97-109 | shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/register/views/RegisterActionsSection.kt:120-132 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/forgot/views/ForgotActionsSection.kt:97` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/login/LoginContent.kt:180— shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/login/LoginContent.kt:180-192 | shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/register/views/RegisterActionsSection.kt:91-103 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/login/LoginContent.kt:180` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:359— shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:359-371 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:388-400 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:359` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:184— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:184-196 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt:234-246 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:184` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:157— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:157-169 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:153-165 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:157` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:181— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:181-193 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleView.kt:218-230 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:181` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt:208— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt:208-220 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/OrganizationContent.kt:214-226 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt:208` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt:55— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt:55-67 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/views/TodoBottomActions.kt:55-67 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt:55` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:76— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:76-88 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt:78-90 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:76` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:184— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:184-196 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt:185-197 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:184` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:222— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:222-234 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/ShortEmployeeView.kt:80-92 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:222` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:421— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:421-433 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:530-542 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:421` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/OrganizationsBottomBar.kt:126— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/OrganizationsBottomBar.kt:126-138 | shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:322-334 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/OrganizationsBottomBar.kt:126` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:207— shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:207-219 | shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContentCompact.kt:122-134 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:207` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/views/OrganizationPageInfo.kt:107— shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/views/OrganizationPageInfo.kt:107-119 | shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/views/ProfilePageInfo.kt:101-113 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/views/OrganizationPageInfo.kt:107` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileActionsSection.kt:209— shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileActionsSection.kt:209-221 | shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileActionsSection.kt:261-273 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileActionsSection.kt:209` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/root/ScheduleContentProvider.kt:45— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/root/ScheduleContentProvider.kt:45-57 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/root/TasksContentProvider.kt:46-58 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/root/ScheduleContentProvider.kt:45` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedEmployeesView.kt:124— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedEmployeesView.kt:124-136 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedSubjectsView.kt:130-142 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedEmployeesView.kt:124` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt:255— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt:255-267 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/TodoInteractor.kt:181-193 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt:255` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:535— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:535-547 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:456-468 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:535` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:632— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:632-644 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:522-534 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:632` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:92— shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:92-100 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:156-164 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:92` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/EndClassesReminderManagerImpl.android.kt:83— shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/EndClassesReminderManagerImpl.android.kt:83-91 | shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/StartClassesReminderManagerImpl.android.kt:83-91 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/EndClassesReminderManagerImpl.android.kt:83` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:111— shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:111-119 | shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/StartClassesReminderWorker.kt:120-128 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:111` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:127— shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:127-135 | shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/StartClassesReminderWorker.kt:136-144 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:127` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:146— shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:146-154 | shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/StartClassesReminderWorker.kt:155-163 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:146` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalDataMapper.kt:43— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalDataMapper.kt:43-51 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalDataMapper.kt:78-86 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalDataMapper.kt:43` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:68— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:68-76 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/CustomScheduleRepositoryImpl.kt:59-67 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:68` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/HomeworksRepositoryImpl.kt:124— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/HomeworksRepositoryImpl.kt:124-132 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/HomeworksRepositoryImpl.kt:141-149 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/HomeworksRepositoryImpl.kt:124` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/TodoRepositoryImpl.kt:98— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/TodoRepositoryImpl.kt:98-106 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/TodoRepositoryImpl.kt:115-123 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/TodoRepositoryImpl.kt:98` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/files/InputFile.kt:32— shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/files/InputFile.kt:32-40 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/models/InputFileUi.kt:36-44 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/files/InputFile.kt:32` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:78— shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:78-86 | shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:170-179 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/domain/interactors/AuthInteractor.kt:170` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (9 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:89— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:89-98 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:171-179 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:89` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DailyScheduleBottomSheet.kt:129— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DailyScheduleBottomSheet.kt:129-137 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt:136-144 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DailyScheduleBottomSheet.kt:129` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt:96— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt:96-104 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt:170-178 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt:96` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:68— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:68-76 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:93-101 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:68` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:445— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:445-453 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:470-478 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:445` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:552— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:552-560 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:575-583 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:552` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleInteractor.kt:231— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleInteractor.kt:231-239 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/store/OverviewWorkProcessor.kt:133-141 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleInteractor.kt:231` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/store/OverviewComposeStore.kt:114— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/store/OverviewComposeStore.kt:114-122 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/store/OverviewComposeStore.kt:186-194 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/store/OverviewComposeStore.kt:114` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:296— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:296-304 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/HomeworksOverview.kt:246-254 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:296` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:180— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:180-188 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksView.kt:409-417 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:180` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/requests/RequestsContent.kt:204— shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/requests/RequestsContent.kt:204-212 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/requests/RequestsContent.kt:322-330 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/requests/RequestsContent.kt:204` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/employee/EmployeeRemoteDataSource.kt:71— shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/employee/EmployeeRemoteDataSource.kt:71-84 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/organizations/OrganizationsRemoteDataSource.kt:71-84 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (14 lines × 2) shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/employee/EmployeeRemoteDataSource.kt:120— shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/employee/EmployeeRemoteDataSource.kt:120-133 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/organizations/OrganizationsRemoteDataSource.kt:120-133 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/employee/EmployeeRemoteDataSource.kt:120` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:110— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:110-123 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseSelectorDialog.kt:130-143 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:110` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:158— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:158-171 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseSelectorDialog.kt:178-191 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:158` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/menu/AvatarView.kt:92— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/menu/AvatarView.kt:92-105 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/menu/AvatarView.kt:150-163 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/menu/AvatarView.kt:92` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/HomeworksUiMapper.kt:25— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/HomeworksUiMapper.kt:25-38 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/HomeworkUiMapper.kt:37-50 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/HomeworksUiMapper.kt:25` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/HomeworksUiMapper.kt:41— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/HomeworksUiMapper.kt:41-54 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/HomeworkUiMapper.kt:71-84 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/HomeworksUiMapper.kt:41` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:136— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:136-149 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/WeekScheduleContent.kt:134-147 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:136` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:209— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:209-222 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt:123-136 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:209` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:135— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:135-148 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:123-136 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:135` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:488— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:488-501 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:593-606 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/OrganizationsContent.kt:488` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileActionsSection.kt:372— shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileActionsSection.kt:372-385 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/SharedHomeworksStatusView.kt:109-122 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileActionsSection.kt:372` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:525— shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:525-538 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:461-474 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ScheduleSenderBottomSheet.kt:525` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:157— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:157-170 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt:127-140 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:157` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:183— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:183-196 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt:153-166 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:183` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt:164— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt:164-177 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/HomeworkTasksChart.kt:139-152 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt:164` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareTopBar.kt:45— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareTopBar.kt:45-58 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/todos/views/TodoTopBar.kt:45-58 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareTopBar.kt:45` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:404— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:404-417 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:332-345 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:404` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:345— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:345-358 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:397-410 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:345` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/views/ReceivedSharedHomeworksView.kt:252— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/views/ReceivedSharedHomeworksView.kt:252-265 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/views/SentSharedHomeworksView.kt:84-97 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/views/ReceivedSharedHomeworksView.kt:252` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeProfileTopSheet.kt:342— shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeProfileTopSheet.kt:342-355 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/user/views/UserProfileTopSheet.kt:314-327 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeProfileTopSheet.kt:342` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/OrganizationDataMapper.kt:76— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/OrganizationDataMapper.kt:76-85 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/OrganizationDataMapper.kt:131-140 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/OrganizationDataMapper.kt:76` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/schedules/BaseScheduleDataMapper.kt:62— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/schedules/BaseScheduleDataMapper.kt:62-71 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/schedules/BaseScheduleDataMapper.kt:98-107 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/schedules/BaseScheduleDataMapper.kt:62` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/schedules/ClassDataMapper.kt:41— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/schedules/ClassDataMapper.kt:41-50 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/schedules/ClassDataMapper.kt:54-63 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/schedules/ClassDataMapper.kt:41` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/users/EmployeeDataMapper.kt:42— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/users/EmployeeDataMapper.kt:42-51 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/users/EmployeeDataMapper.kt:124-133 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:196— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:196-205 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/CustomScheduleRepositoryImpl.kt:127-136 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:196` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:201— shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:201-210 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt:174-183 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:201` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:282— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:282-291 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:287-296 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:282` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeNameInfoField.kt:74— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeNameInfoField.kt:74-83 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/views/OrganizationNameInfoField.kt:72-81 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeNameInfoField.kt:74` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/root/EditorFeatureComponent.kt:269— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/root/EditorFeatureComponent.kt:269-278 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/root/EditorFeatureComponent.kt:349-358 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/root/EditorFeatureComponent.kt:269` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt:321— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt:321-330 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt:351-360 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt:321` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleInteractor.kt:247— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleInteractor.kt:247-256 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/store/OverviewWorkProcessor.kt:149-158 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleInteractor.kt:247` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:228— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:228-237 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SharedScheduleView.kt:179-188 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:228` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedSubjectsView.kt:191— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedSubjectsView.kt:191-200 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/views/LinkDataSelectorDialogs.kt:79-88 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedSubjectsView.kt:191` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:225— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:225-234 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:269-278 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:225` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalBottomSheet.kt:292— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalBottomSheet.kt:292-301 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:300-309 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalBottomSheet.kt:292` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:130— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:130-139 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:253-262 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (10 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:245— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:245-254 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:360-369 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:245` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:253— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:253-262 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:340-349 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:253` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:42— shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:42-49 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:83-90 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:42` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:62— shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:62-69 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:104-111 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:62` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 2) shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:56— shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:56-63 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:118-125 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:56` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:87— shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:87-94 | shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/StartClassesReminderWorker.kt:92-99 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:87` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/AiAssistantRepositoryImpl.kt:120— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/AiAssistantRepositoryImpl.kt:120-127 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/AiAssistantRepositoryImpl.kt:149-156 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/AiAssistantRepositoryImpl.kt:120` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:209— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:209-216 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/CustomScheduleRepositoryImpl.kt:157-164 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:209` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/requests/FriendRequestsRemoteDataSource.kt:117— shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/requests/FriendRequestsRemoteDataSource.kt:117-124 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/requests/FriendRequestsRemoteDataSource.kt:259-266 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/requests/FriendRequestsRemoteDataSource.kt:117` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedHomeworksRemoteDataSource.kt:120— shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedHomeworksRemoteDataSource.kt:120-127 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedHomeworksRemoteDataSource.kt:165-172 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedHomeworksRemoteDataSource.kt:120` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/di/holder/ChatFeatureManager.kt:76— shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/di/holder/ChatFeatureManager.kt:76-83 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/di/holder/EditorFeatureManager.kt:72-79 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:132— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:132-139 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomClassInteractor.kt:81-88 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:132` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/LinkingClassInteractor.kt:86— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/LinkingClassInteractor.kt:86-93 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/LinkingClassInteractor.kt:107-114 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/LinkingClassInteractor.kt:86` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:164— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:164-171 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeSubjectView.kt:65-72 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:164` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SenderUserView.kt:67— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SenderUserView.kt:67-74 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/user/views/UserProfileTopSheet.kt:224-231 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SenderUserView.kt:67` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:239— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:239-246 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/HomeworksOverview.kt:183-190 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:239` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:135— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:135-143 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:115-122 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:135` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:275— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:275-282 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:370-377 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:275` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) androidApp/src/github/java/ru/aleshin/studyassistant/presentation/services/HmsMessagingService.kt:77— androidApp/src/github/java/ru/aleshin/studyassistant/presentation/services/HmsMessagingService.kt:77-83 | androidApp/src/github/java/ru/aleshin/studyassistant/presentation/services/RuStoreMessagingService.kt:77-83 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `androidApp/src/github/java/ru/aleshin/studyassistant/presentation/services/HmsMessagingService.kt:77` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:80— shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:80-86 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:144-150 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:80` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/tasks/TodoDataMapper.kt:88— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/tasks/TodoDataMapper.kt:88-94 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/tasks/TodoDataMapper.kt:152-158 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/EmployeeRepositoryImpl.kt:104— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/EmployeeRepositoryImpl.kt:104-110 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/TodoRepositoryImpl.kt:83-89 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/EmployeeRepositoryImpl.kt:104` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/OrganizationsRepositoryImpl.kt:84— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/OrganizationsRepositoryImpl.kt:84-90 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/SubjectsRepositoryImpl.kt:82-88 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/OrganizationsRepositoryImpl.kt:84` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:458— shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:458-465 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleInteractor.kt:196-202 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (7 lines × 2) shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantContent.kt:543— shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantContent.kt:543-549 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantContent.kt:553-559 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantContent.kt:543` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:95— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:95-101 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/WeekScheduleContent.kt:86-92 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (7 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:401— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:401-407 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:407-413 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:401` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/ScheduleUiMapper.kt:48— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/ScheduleUiMapper.kt:48-54 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/ScheduleUiMapper.kt:71-77 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/ScheduleUiMapper.kt:48` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:89— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:89-103 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseSelectorDialog.kt:106-120 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:89` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:160— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:160-174 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt:210-224 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:160` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:176— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:176-190 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:310-324 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:176` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:344— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:344-358 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:350-364 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:344` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt:62— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt:62-76 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/SubjectsSearchTopBar.kt:62-76 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt:62` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt:206— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt:206-220 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/store/OverviewComposeStore.kt:209-223 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt:206` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:233— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:233-247 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:260-274 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:233` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (15 lines × 2) shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/friends/FriendsContent.kt:256— shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/friends/FriendsContent.kt:256-270 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/requests/RequestsContent.kt:238-252 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/friends/FriendsContent.kt:256` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (11 lines × 3) shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/requests/FriendRequestsRemoteDataSource.kt:232— shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/requests/FriendRequestsRemoteDataSource.kt:232-242 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedHomeworksRemoteDataSource.kt:261-271 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedSchedulesRemoteDataSource.kt:289-299 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/requests/FriendRequestsRemoteDataSource.kt:232` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 3) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:90— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:90-100 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:149-159 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:182-192 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:90` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (11 lines × 3) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/ClassUiMapper.kt:25— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/ClassUiMapper.kt:25-35 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/ClassUiMapper.kt:31-41 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/ClassUiMapper.kt:25-35 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/ClassUiMapper.kt:25` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 3) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/ClassUiMapper.kt:39— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/ClassUiMapper.kt:39-49 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/ClassUiMapper.kt:77-87 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/ClassUiMapper.kt:38-48 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/ClassUiMapper.kt:39` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 3) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/CityInfoField.kt:72— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/CityInfoField.kt:72-82 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/DescriptionInfoField.kt:74-84 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/UsernameInfoField.kt:70-80 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/CityInfoField.kt:72` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 3) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:158— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:158-168 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:141-151 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:161-171 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:158` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (11 lines × 3) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:76— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:76-86 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:199-209 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:317-327 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:76` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/Dialog.kt:70— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/Dialog.kt:70-86 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/Dialog.kt:155-171 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/Dialog.kt:70` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:366— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:366-382 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:452-468 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:366` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/common/AuthTextFields.kt:88— shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/common/AuthTextFields.kt:88-104 | shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/common/AuthTextFields.kt:153-169 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/ui/common/AuthTextFields.kt:88` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt:142— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt:142-158 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt:210-226 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt:142` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:90— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:90-106 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:87-103 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:90` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/auth/AccountService.kt:877— shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/auth/AccountService.kt:877-892 | shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/auth/AccountService.kt:1067-1082 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/auth/AccountService.kt:877` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/theme/tokens/StudyAssistantColors.kt:105— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/theme/tokens/StudyAssistantColors.kt:105-120 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/theme/tokens/StudyAssistantColors.kt:141-156 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/theme/tokens/StudyAssistantColors.kt:105` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:566— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:566-581 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:674-689 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:566` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/models/users/EmployeeDetailsUi.kt:58— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/models/users/EmployeeDetailsUi.kt:58-73 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/models/EmployeeDetailsUi.kt:49-64 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/models/users/EmployeeDetailsUi.kt:58` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:242— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:242-257 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:335-350 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:242` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/message/MessagesDataMapper.kt:30— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/message/MessagesDataMapper.kt:30-35 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/message/MessagesDataMapper.kt:44-49 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/message/MessagesDataMapper.kt:30` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/OrganizationDataMapper.kt:104— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/OrganizationDataMapper.kt:104-109 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/OrganizationUiMapper.kt:116-121 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/OrganizationDataMapper.kt:104` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/DailyGoalsRepositoryImpl.kt:86— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/DailyGoalsRepositoryImpl.kt:86-91 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/EmployeeRepositoryImpl.kt:84-89 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/DailyGoalsRepositoryImpl.kt:86` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/mappers/organizations/OrganizationLocalMapper.kt:97— shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/mappers/organizations/OrganizationLocalMapper.kt:97-102 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/mappers/organizations/OrganizationRemoteMapper.kt:61-66 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (6 lines × 2) shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:471— shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:471-476 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt:530-535 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
FileTooLong: auth/AccountService.kt shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/auth/AccountService.kt:0— FileTooLong — 680 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: connectionManager (68-1526). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
FileTooLong: views/TextFields.kt shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:0— FileTooLong — 643 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: views/DailyHomeworksDetailsView.kt shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:0— FileTooLong — 513 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: views/DailyGoalsView.kt shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyGoalsView.kt:0— FileTooLong — 506 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
Duplicated block (18 lines × 2) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:125— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:125-142 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:205-222 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:125` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:131— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:131-148 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt:181-198 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:131` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:208— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:208-225 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt:258-275 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:208` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 2) shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:166— shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:166-183 | shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContentCompact.kt:81-98 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/intro/IntroContent.kt:166` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:195— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:195-213 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:329-347 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:195` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19 lines × 2) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt:98— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt:98-116 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/SubjectsSearchTopBar.kt:98-116 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt:98` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:200— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:200-218 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:251-269 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:200` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 4) shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/goals/DailyGoalsLocalDataSource.kt:189— shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/goals/DailyGoalsLocalDataSource.kt:189-198 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:211-220 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt:184-193 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/tasks/HomeworksLocalDataSource.kt:161-170 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/goals/DailyGoalsLocalDataSource.kt:189` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 4) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/OrganizationUiMapper.kt:27— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/OrganizationUiMapper.kt:27-36 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/mappers/OrganizationUiMapper.kt:29-38 | shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/mappers/OrganizationUiMapper.kt:25-34 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/OrganizationUiMapper.kt:41-50 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/OrganizationUiMapper.kt:27` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 4) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/OrganizationUiMapper.kt:58— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/OrganizationUiMapper.kt:58-67 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/mappers/OrganizationUiMapper.kt:65-74 | shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/mappers/OrganizationUiMapper.kt:44-53 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/OrganizationUiMapper.kt:76-85 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/OrganizationUiMapper.kt:58` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 3) shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedHomeworksRemoteDataSource.kt:174— shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedHomeworksRemoteDataSource.kt:174-182 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedSchedulesRemoteDataSource.kt:162-170 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedSchedulesRemoteDataSource.kt:210-218 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedHomeworksRemoteDataSource.kt:174` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (9 lines × 3) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleView.kt:105— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleView.kt:105-113 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:112-120 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SharedScheduleView.kt:97-105 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleView.kt:105` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 3) shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/common/NoneUserRequestsView.kt:47— shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/common/NoneUserRequestsView.kt:47-55 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/friends/FriendsContent.kt:474-482 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/user/UserProfileContent.kt:287-295 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/common/NoneUserRequestsView.kt:47` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 3) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleView.kt:114— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleView.kt:114-128 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:121-135 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SharedScheduleView.kt:106-120 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleView.kt:114` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 3) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:239— shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:239-253 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/common/HomeworkTaskView.kt:192-206 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt:209-223 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:239` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 10) shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/mappers/AppUserUiMapper.kt:31— shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/mappers/AppUserUiMapper.kt:31-43 | shared/features/billing/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/billing/impl/presentation/mappers/AppUserUiMapper.kt:31-43 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/mappers/AppUserUiMapper.kt:31-43 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/AppUserUiMapper.kt:31-43 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/mappers/AppUserUiMapper.kt:31-43 | shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/mappers/AppUserUiMapper.kt:31-43 | shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/mappers/AppUserUiMapper.kt:31-43 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/AppUserUiMapper.kt:31-43 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/AppUserUiMapper.kt:31-43 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/mappers/AppUserUiMapper.kt:31-43 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 10 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/mappers/AppUserUiMapper.kt:31` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 10) shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/mappers/AppUserUiMapper.kt:48— shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/mappers/AppUserUiMapper.kt:48-60 | shared/features/billing/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/billing/impl/presentation/mappers/AppUserUiMapper.kt:48-60 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/mappers/AppUserUiMapper.kt:48-60 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/AppUserUiMapper.kt:48-60 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/mappers/AppUserUiMapper.kt:48-60 | shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/mappers/AppUserUiMapper.kt:48-60 | shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/mappers/AppUserUiMapper.kt:48-60 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/AppUserUiMapper.kt:48-60 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/AppUserUiMapper.kt:48-60 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/mappers/AppUserUiMapper.kt:48-60 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 10 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/auth/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/auth/impl/presentation/mappers/AppUserUiMapper.kt:48` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 3) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:136— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:136-145 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:156-165 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:176-185 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:136` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 3) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:106— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:106-115 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:229-238 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:347-356 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:106` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
HomeworksComposeStore.handleEvent (cyclomatic 21) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt:61— HomeworksComposeStore.handleEvent has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
ClassComposeStore.handleEvent (cyclomatic 19) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/store/ClassComposeStore.kt:52— ClassComposeStore.handleEvent has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Base.fetchGoalsByDate (cyclomatic 17) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:85— Base.fetchGoalsByDate has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DailyHomeworksDetailsViewKt.DailyHomeworksDetailsView (cyclomatic 17) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:108— DailyHomeworksDetailsViewKt.DailyHomeworksDetailsView has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DailyHomeworksDetailsViewKt.ShortHomeworkViewContent (cyclomatic 17) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:507— DailyHomeworksDetailsViewKt.ShortHomeworkViewContent has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Base.isOverlay (cyclomatic 16) shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/managers/TimeOverlayManager.kt:30— Base.isOverlay has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SetupContentKt.SetupPageInfoSection (cyclomatic 16) shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/SetupContent.kt:201— SetupContentKt.SetupPageInfoSection has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
OverviewComposeStore.handleEvent (cyclomatic 16) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/store/OverviewComposeStore.kt:58— OverviewComposeStore.handleEvent has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Base.completeOrCancelGoal (cyclomatic 16) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:191— Base.completeOrCancelGoal has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Base.updateUserSubscriptionInfo (cognitive 38) shared/src/commonMain/kotlin/ru/aleshin/studyassistant/domain/interactors/AppUserInteractor.kt:92— Base.updateUserSubscriptionInfo has cognitive complexity 38 (threshold 15). Drivers by points: if/else 28, error handling 8, boolean chains 2 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Base.fetchGoalsByDate (cognitive 23) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:85— Base.fetchGoalsByDate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, boolean chains 2, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DailyHomeworksDetailsViewKt.DailyHomeworksDetailsView (cognitive 22) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:108— DailyHomeworksDetailsViewKt.DailyHomeworksDetailsView has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SetupContentKt.SetupPageInfoSection (cognitive 21) shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/SetupContent.kt:201— SetupContentKt.SetupPageInfoSection has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, match/switch 10 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Base.completeOrCancelGoal (cognitive 21) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:191— Base.completeOrCancelGoal has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, match/switch 8 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Base.cycleUpdateActiveClass (cognitive 19) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/store/OverviewWorkProcessor.kt:121— Base.cycleUpdateActiveClass has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Base.isOverlay (cognitive 18) shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/managers/TimeOverlayManager.kt:30— Base.isOverlay has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 7 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TodoViewItemKt.TodoViewFooter (cognitive 17) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/common/TodoViewItem.kt:196— TodoViewItemKt.TodoViewFooter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, match/switch 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DailyHomeworksDetailsViewKt.ShortHomeworkViewContent (cognitive 17) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:507— DailyHomeworksDetailsViewKt.ShortHomeworkViewContent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ShareContentKt.ReceivedTasksSection (cognitive 17) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/ShareContent.kt:211— ShareContentKt.ReceivedTasksSection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OrganizationPageInfoKt.OrganizationPageInfo (cognitive 16) shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/views/OrganizationPageInfo.kt:69— OrganizationPageInfoKt.OrganizationPageInfo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OverviewTopSheetKt.OverviewTopSheetAnalysis (cognitive 16) shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt:293— OverviewTopSheetKt.OverviewTopSheetAnalysis has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, match/switch 4, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level.
FriendsSearchTopBarKt.FriendsSearchTopBarContent (cognitive 16) shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/friends/views/FriendsSearchTopBar.kt:180— FriendsSearchTopBarKt.FriendsSearchTopBarContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Medium: exported_activity androidApp/src/main/AndroidManifest.xml:52— The application exports an activity. Any application on the device can launch the exported activity which may compromise the integrity of your application or its data. Ensure that any exported activities do not have privileged access to your application's control plane.
TooManyMethods: AccountService shared/core/client-api/src/commonMain/kotlin/ru/aleshin/studyassistant/core/api/auth/AccountService.kt:64— TooManyMethods — 51 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
Duplicated block (20 lines × 2) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksView.kt:233— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksView.kt:233-252 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksView.kt:326-345 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksView.kt:233` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 5) shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt:125— shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt:125-142 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsContent.kt:125-142 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:165-182 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/OverviewContent.kt:200-217 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/todos/TodoContent.kt:103-120 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt:125` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 3) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/ClassTopBar.kt:52— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/ClassTopBar.kt:52-69 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeTopBar.kt:52-69 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/views/SubjectTopBar.kt:52-69 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/ClassTopBar.kt:52` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 3) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:379— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:379-394 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetClassView.kt:173-188 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:385-400 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:379` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 4) shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BirthdayDatePicker.kt:69— shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BirthdayDatePicker.kt:69-83 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/LinkedClassInfoField.kt:351-365 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/views/TodoDeadlineInfoFields.kt:164-178 | shared/features/settings/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/settings/impl/presentation/ui/calendar/views/HolidaysView.kt:483-497 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BirthdayDatePicker.kt:69` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 3) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:166— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:166-179 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:289-302 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:378-391 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:166` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 4) shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/SharedSchedulesBottomSheet.kt:425— shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/SharedSchedulesBottomSheet.kt:425-437 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/common/TodoViewItem.kt:391-403 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeContactInfoView.kt:115-127 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeSubjectView.kt:132-144 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/SharedSchedulesBottomSheet.kt:425` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 3) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:358— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:358-370 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:448-460 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/views/SentSharedHomeworksView.kt:309-321 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:358` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 6) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt:28— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt:28-39 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/mappers/EmployeeUiMapper.kt:26-37 | shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/mappers/EmployeeUiMapper.kt:26-37 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/EmployeeUiMapper.kt:28-39 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/EmployeeUiMapper.kt:26-37 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/mappers/EmployeeUiMapper.kt:28-39 — before extracting anything, compare `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt` and `shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/mappers/EmployeeUiMapper.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt:28` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 4) shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/requests/FriendRequestsRemoteDataSource.kt:195— shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/requests/FriendRequestsRemoteDataSource.kt:195-206 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/settings/CalendarSettingsRemoteDataSource.kt:83-94 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedHomeworksRemoteDataSource.kt:225-236 | shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/share/SharedSchedulesRemoteDataSource.kt:118-129 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/datasources/requests/FriendRequestsRemoteDataSource.kt:195` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 3) shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:206— shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:206-217 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt:254-265 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/TodoInteractor.kt:180-191 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:206` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (11 lines × 6) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt:65— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt:65-75 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/mappers/EmployeeUiMapper.kt:44-54 | shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/mappers/EmployeeUiMapper.kt:44-54 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/EmployeeUiMapper.kt:61-71 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/EmployeeUiMapper.kt:44-54 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/mappers/EmployeeUiMapper.kt:65-75 — before extracting anything, compare `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt` and `shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/mappers/EmployeeUiMapper.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/EmployeeUiMapper.kt:65` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 4) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:123— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:123-133 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleView.kt:114-124 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:121-131 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SharedScheduleView.kt:106-116 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:123` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 6) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:59— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:59-68 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:116-125 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:177-186 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopBar.kt:145-156 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/SocialNetworksInfoFields.kt:206-217 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:78-87 — there are 6 copies across 4 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:59` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 10) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt:66— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt:66-73 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/EmailInfoFields.kt:59-66 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationsInfoFields.kt:57-64 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/PhoneInfoFields.kt:57-64 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:69-76 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/WebInfoFields.kt:59-66 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeNameInfoField.kt:71-78 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/WorkTimeInfoField.kt:62-69 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/LinkedClassInfoField.kt:91-98 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/views/OrganizationNameInfoField.kt:69-76 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 10 times. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt:66` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 4) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:97— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:97-102 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/HomeworksRepositoryImpl.kt:89-94 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/OrganizationsRepositoryImpl.kt:87-92 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/SubjectsRepositoryImpl.kt:85-90 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:97` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 3) androidApp/src/github/java/ru/aleshin/studyassistant/presentation/services/FirebaseMessagingService.kt:80— androidApp/src/github/java/ru/aleshin/studyassistant/presentation/services/FirebaseMessagingService.kt:80-85 | androidApp/src/github/java/ru/aleshin/studyassistant/presentation/services/HmsMessagingService.kt:71-76 | androidApp/src/github/java/ru/aleshin/studyassistant/presentation/services/RuStoreMessagingService.kt:71-76 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `androidApp/src/github/java/ru/aleshin/studyassistant/presentation/services/FirebaseMessagingService.kt:80` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23 lines × 3) shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/managers/sync/FriendRequestsSourceSyncManagerImpl.kt:55— shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/managers/sync/FriendRequestsSourceSyncManagerImpl.kt:55-77 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/managers/sync/SharedHomeworksSourceSyncManagerImpl.kt:55-77 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/managers/sync/SharedSchedulesSourceSyncManagerImpl.kt:55-77 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
Duplicated block (27 lines × 2) shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:85— shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:85-111 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/store/OrganizationWorkProcessor.kt:74-100 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:85` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Recommendation — 5 finding(s)
D11 · Test Reliability· Test reliability not included · ×1
Test reliability not included — No test suite was found, so reliability couldn't be assessed.
D16 · Bus Factor· Small-team knowledge concentration · ×1
Small-team knowledge concentration — 10 file(s) are concentrated to one author — the ambient state with 2 active author(s), not 10 separate risks. The signal becomes meaningful as ownership spreads; no per-file action implied now.
D34 · Knowledge Freshness· history too condensed to judge knowledge freshness · ×1
history too condensed to judge knowledge freshness — Only 135 commits cover 689 analysed files, so per-file recency reflects those few broad commits, not real day-to-day maintenance. The freshness signal is unreliable for this repo and is not scored.
D38 · OSV Dependency Vulnerabilities· Scanner failed to run · ×1
Scanner failed to run — not a clean result — osv-scanner exited 128 with no findings — the advisory database was likely unreachable. The scanner exited non-zero and produced no findings (typically the advisory DB was unreachable), so this is reported as a measurement gap rather than a clean pass.
No tests found — No test suite could be collected — nothing here references a test framework (JUnit (with Kotest or MockK on Kotlin)), so there were no discoverable tests to count. Tests written as plain executables or shell/PowerShell harnesses are not collectible this way and are not scored here.
Info — 2 finding(s)
D12 · Dependency Hygiene· Dependency hygiene not measured · ×1
Dependency hygiene not measured — dependency manifest found but not parsed for hygiene — This repository's dependency manifest (a Gradle version catalogue) was found, but this pass cannot parse it for hygiene, so no package was assessed. Zero packages read is NOT a clean dependency tree, so this is NOT SCORED — a gap in the analyzer, not a verdict about this repository. This row is about dependency HYGIENE — outdated, deprecated or unmaintained direct dependencies; known CVEs in the same dependency graph are a separate question, reported under D38 wherever the manifest is OSV-readable.
D22 · Internal API Consistency· No exposed public API · ×1
No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
trivy: not applicable — No JS/npm manifest or lockfile found outside build output (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .gitlab-ci.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, Jenkinsfile, .circleci); there is no build to attest provenance for.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
0
—
Run 019fc9fb-d064-78e0-a6b2-b0b347e84c24 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 3 · Warnings: 261 · Recommendations: 5 · Info: 2 — Appendix A · all findings · full markdown report.
Generated by Watchdog — deterministic code-health analysis. 03-08-2026 @ 23:35 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.