Public report of AnywhereSoftware/B4J, published 17 November 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.4). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 17 November 2026, 19:09 UTC · Survey ID cd_0dbd1bf314024947933bb48c9030faee
AnywhereSoftware/B4J
Measured 17 November 2026, 19:09 UTC, at code version 3f1b5d3
First survey, so nothing to compare with yet
CAI scoreWeak
CriticalWeakAdequateStrongExemplary
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A large codebase: 180,675 lines of product code in 1 project, tests not counted · Estimated rebuild effort: about 1.0 person-years · Weakest lens: Production Readiness, 26.7
Findings by how serious they are
16 critical1689 serious72 minor
23 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Canine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 19:09 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that
implements it, and today the Canine Code Analyzer is the only one that does.
The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
49of 49 dimensions measured by tools.
1770of 1777 findings point to an exact file and line, so you can open each one in the code. The other 7 concern the repository as a whole, such as missing documentation.
49dimensions across 7 lenses, read from 180,675 lines of product code in 1 project.
AnywhereSoftware/B4J falls short of our standard for production because we found no working pipeline that builds or tests changes to the code and no automated security scanning of the code, its secrets or its dependencies. It scores 41.6 out of 100 and is rated Weak, and three of its 16 critical findings are security problems.
Production Readiness, at 26.7, is the weakest lens and counts most in the score. The best first steps are adding an automated build and test pipeline and adding automated security scanning, each worth about 10.2 points. Raising Production Readiness to 70 would lift the score to about 53.4.
Two places turn outside data straight into objects, which an attacker could use. One password or key is open to anyone who can read the repository. Reading outside data into plain values and replacing the exposed password or key would close both risks. The seven pages that don't say their language need their language set.
The product code is 180,675 lines, about €140,000 to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
If Production Readiness rose from 26.7 to 70, the lowest score rated Strong, the score would rise from 41.6 to about 53.4.
Code composition: what the lines of code are
Product code 100%Tests 0%
Rebuild cost: about €140,000 · Estimate
Cost to rebuild
€46,000 to €230,000, for 770 to 2,442 hours of work, about 1.0 person-years for 1 to 2 engineers
Difficulty of the problem
Low, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.7 at a score of 42. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Large: 180,675 lines of product code
What it is not
Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.
How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Add a CI workflow that builds and runs the test suite on every push/PR.
Raises the score by about 10.2 points · Medium effort · CI/CD gates
2
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.
Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
Raises the score by about 4.2 points · Medium effort · Observability
Diagnosis: what the measurements show together
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
Where the investment is most exposed · Value at risk
This code would cost about €140,000 to build again, about 1.0 person-years of work. Its weakest lens is Production Readiness, at 26.7 (checked 4 of 10). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Add a CI workflow that builds and runs the test suite on every push/PR. Of all the actions in this report, it raises the score most for the work it takes: about 10.2 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 6.2 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 4% to 10% on every change. The history of the code shows how much it changes: about 9,391 lines over the last 90 days, which is about 38,086 lines a year. At that pace, the extra work comes to an estimated 4.2 to 25.3 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
84 modules, with 180 dependencies between them. 8 loops run through 38 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 44 more are left out to keep it readable.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
anywheresoftware.b4a.objects.collections uses anywheresoftware.b4a, so a change to anywheresoftware.b4a can break anywheresoftware.b4a.objects.collections, while a change to anywheresoftware.b4a.objects.collections can't break anywheresoftware.b4a.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
com.lynden.gmapsfx.javascript.object uses com.lynden.gmapsfx.javascript, so a change to com.lynden.gmapsfx.javascript can break com.lynden.gmapsfx.javascript.object, while a change to com.lynden.gmapsfx.javascript.object can't break com.lynden.gmapsfx.javascript.
Position
Below the diagonal: com.lynden.gmapsfx.javascript.object uses a module listed above it, which is the healthy direction.
10→23 io.moquette.broker.subscriptions uses io.moquette.brokerpart of a loop✕
Connections
2 pairs of types, where a type in io.moquette.broker.subscriptions uses a type in io.moquette.broker.
io.moquette.broker.subscriptions uses io.moquette.broker, so a change to io.moquette.broker can break io.moquette.broker.subscriptions, while a change to io.moquette.broker.subscriptions can't break io.moquette.broker.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
org.apache.commons.net.ftp uses org.apache.commons.net, so a change to org.apache.commons.net can break org.apache.commons.net.ftp, while a change to org.apache.commons.net.ftp can't break org.apache.commons.net.
Position
Below the diagonal: org.apache.commons.net.ftp uses a module listed above it, which is the healthy direction.
org.eclipse.paho.client.mqttv3.internal.wire uses org.eclipse.paho.client.mqttv3.logging, so a change to org.eclipse.paho.client.mqttv3.logging can break org.eclipse.paho.client.mqttv3.internal.wire, while a change to org.eclipse.paho.client.mqttv3.internal.wire can't break org.eclipse.paho.client.mqttv3.logging.
Position
Below the diagonal: org.eclipse.paho.client.mqttv3.internal.wire uses a module listed above it, which is the healthy direction.
12→20 org.eclipse.paho.client.mqttv3.internal.wire uses org.eclipse.paho.client.mqttv3.internalpart of a loop✕
Connections
2 pairs of types, where a type in org.eclipse.paho.client.mqttv3.internal.wire uses a type in org.eclipse.paho.client.mqttv3.internal.
org.eclipse.paho.client.mqttv3.internal.wire uses org.eclipse.paho.client.mqttv3.internal, so a change to org.eclipse.paho.client.mqttv3.internal can break org.eclipse.paho.client.mqttv3.internal.wire, while a change to org.eclipse.paho.client.mqttv3.internal.wire can't break org.eclipse.paho.client.mqttv3.internal.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
12→24 org.eclipse.paho.client.mqttv3.internal.wire uses org.eclipse.paho.client.mqttv3part of a loop✕
Connections
5 pairs of types, where a type in org.eclipse.paho.client.mqttv3.internal.wire uses a type in org.eclipse.paho.client.mqttv3.
org.eclipse.paho.client.mqttv3.internal.wire uses org.eclipse.paho.client.mqttv3, so a change to org.eclipse.paho.client.mqttv3 can break org.eclipse.paho.client.mqttv3.internal.wire, while a change to org.eclipse.paho.client.mqttv3.internal.wire can't break org.eclipse.paho.client.mqttv3.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
org.jbox2d.collision.broadphase uses org.jbox2d.common, so a change to org.jbox2d.common can break org.jbox2d.collision.broadphase, while a change to org.jbox2d.collision.broadphase can't break org.jbox2d.common.
Position
Below the diagonal: org.jbox2d.collision.broadphase uses a module listed above it, which is the healthy direction.
13→33 org.jbox2d.collision.broadphase uses org.jbox2d.collisionpart of a loop✕
Connections
11 pairs of types, where a type in org.jbox2d.collision.broadphase uses a type in org.jbox2d.collision.
org.jbox2d.collision.broadphase uses org.jbox2d.collision, so a change to org.jbox2d.collision can break org.jbox2d.collision.broadphase, while a change to org.jbox2d.collision.broadphase can't break org.jbox2d.collision.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
13→34 org.jbox2d.collision.broadphase uses org.jbox2d.callbackspart of a loop✕
Connections
17 pairs of types, where a type in org.jbox2d.collision.broadphase uses a type in org.jbox2d.callbacks.
org.jbox2d.collision.broadphase uses org.jbox2d.callbacks, so a change to org.jbox2d.callbacks can break org.jbox2d.collision.broadphase, while a change to org.jbox2d.collision.broadphase can't break org.jbox2d.callbacks.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
org.jbox2d.pooling uses org.jbox2d.common, so a change to org.jbox2d.common can break org.jbox2d.pooling, while a change to org.jbox2d.pooling can't break org.jbox2d.common.
Position
Below the diagonal: org.jbox2d.pooling uses a module listed above it, which is the healthy direction.
14→21 org.jbox2d.pooling uses org.jbox2d.dynamics.contactspart of a loop✕
Connections
1 pair of types, where a type in org.jbox2d.pooling uses a type in org.jbox2d.dynamics.contacts.
org.jbox2d.pooling uses org.jbox2d.dynamics.contacts, so a change to org.jbox2d.dynamics.contacts can break org.jbox2d.pooling, while a change to org.jbox2d.pooling can't break org.jbox2d.dynamics.contacts.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
14→33 org.jbox2d.pooling uses org.jbox2d.collisionpart of a loop✕
Connections
4 pairs of types, where a type in org.jbox2d.pooling uses a type in org.jbox2d.collision.
org.jbox2d.pooling uses org.jbox2d.collision, so a change to org.jbox2d.collision can break org.jbox2d.pooling, while a change to org.jbox2d.pooling can't break org.jbox2d.collision.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
anywheresoftware.b4a.objects.streams uses anywheresoftware.b4a.objects.collections, so a change to anywheresoftware.b4a.objects.collections can break anywheresoftware.b4a.objects.streams, while a change to anywheresoftware.b4a.objects.streams can't break anywheresoftware.b4a.objects.collections.
Position
Below the diagonal: anywheresoftware.b4a.objects.streams uses a module listed above it, which is the healthy direction.
15→37 anywheresoftware.b4a.objects.streams uses anywheresoftware.b4apart of a loop✕
Connections
5 pairs of types, where a type in anywheresoftware.b4a.objects.streams uses a type in anywheresoftware.b4a.
anywheresoftware.b4a.objects.streams uses anywheresoftware.b4a, so a change to anywheresoftware.b4a can break anywheresoftware.b4a.objects.streams, while a change to anywheresoftware.b4a.objects.streams can't break anywheresoftware.b4a.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
com.lynden.gmapsfx.service.geocoding uses com.lynden.gmapsfx.javascript, so a change to com.lynden.gmapsfx.javascript can break com.lynden.gmapsfx.service.geocoding, while a change to com.lynden.gmapsfx.service.geocoding can't break com.lynden.gmapsfx.javascript.
Position
Below the diagonal: com.lynden.gmapsfx.service.geocoding uses a module listed above it, which is the healthy direction.
com.lynden.gmapsfx.service.geocoding uses com.lynden.gmapsfx.javascript.object, so a change to com.lynden.gmapsfx.javascript.object can break com.lynden.gmapsfx.service.geocoding, while a change to com.lynden.gmapsfx.service.geocoding can't break com.lynden.gmapsfx.javascript.object.
Position
Below the diagonal: com.lynden.gmapsfx.service.geocoding uses a module listed above it, which is the healthy direction.
io.moquette.broker.security uses io.moquette.broker.config, so a change to io.moquette.broker.config can break io.moquette.broker.security, while a change to io.moquette.broker.security can't break io.moquette.broker.config.
Position
Below the diagonal: io.moquette.broker.security uses a module listed above it, which is the healthy direction.
io.moquette.broker.security uses io.moquette.broker.subscriptions, so a change to io.moquette.broker.subscriptions can break io.moquette.broker.security, while a change to io.moquette.broker.security can't break io.moquette.broker.subscriptions.
Position
Below the diagonal: io.moquette.broker.security uses a module listed above it, which is the healthy direction.
io.moquette.interception uses io.moquette.broker.config, so a change to io.moquette.broker.config can break io.moquette.interception, while a change to io.moquette.interception can't break io.moquette.broker.config.
Position
Below the diagonal: io.moquette.interception uses a module listed above it, which is the healthy direction.
io.moquette.interception uses io.moquette.broker.subscriptions, so a change to io.moquette.broker.subscriptions can break io.moquette.interception, while a change to io.moquette.interception can't break io.moquette.broker.subscriptions.
Position
Below the diagonal: io.moquette.interception uses a module listed above it, which is the healthy direction.
io.moquette.persistence uses io.moquette.broker.config, so a change to io.moquette.broker.config can break io.moquette.persistence, while a change to io.moquette.persistence can't break io.moquette.broker.config.
Position
Below the diagonal: io.moquette.persistence uses a module listed above it, which is the healthy direction.
io.moquette.persistence uses io.moquette.broker.subscriptions, so a change to io.moquette.broker.subscriptions can break io.moquette.persistence, while a change to io.moquette.persistence can't break io.moquette.broker.subscriptions.
Position
Below the diagonal: io.moquette.persistence uses a module listed above it, which is the healthy direction.
19→23 io.moquette.persistence uses io.moquette.brokerpart of a loop✕
Connections
9 pairs of types, where a type in io.moquette.persistence uses a type in io.moquette.broker.
io.moquette.persistence uses io.moquette.broker, so a change to io.moquette.broker can break io.moquette.persistence, while a change to io.moquette.persistence can't break io.moquette.broker.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
org.eclipse.paho.client.mqttv3.internal uses org.eclipse.paho.client.mqttv3.logging, so a change to org.eclipse.paho.client.mqttv3.logging can break org.eclipse.paho.client.mqttv3.internal, while a change to org.eclipse.paho.client.mqttv3.internal can't break org.eclipse.paho.client.mqttv3.logging.
Position
Below the diagonal: org.eclipse.paho.client.mqttv3.internal uses a module listed above it, which is the healthy direction.
org.eclipse.paho.client.mqttv3.internal uses org.eclipse.paho.client.mqttv3.internal.wire, so a change to org.eclipse.paho.client.mqttv3.internal.wire can break org.eclipse.paho.client.mqttv3.internal, while a change to org.eclipse.paho.client.mqttv3.internal can't break org.eclipse.paho.client.mqttv3.internal.wire.
Position
Below the diagonal: org.eclipse.paho.client.mqttv3.internal uses a module listed above it, which is the healthy direction.
20→24 org.eclipse.paho.client.mqttv3.internal uses org.eclipse.paho.client.mqttv3part of a loop✕
Connections
36 pairs of types, where a type in org.eclipse.paho.client.mqttv3.internal uses a type in org.eclipse.paho.client.mqttv3. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
org.eclipse.paho.client.mqttv3.internal uses org.eclipse.paho.client.mqttv3, so a change to org.eclipse.paho.client.mqttv3 can break org.eclipse.paho.client.mqttv3.internal, while a change to org.eclipse.paho.client.mqttv3.internal can't break org.eclipse.paho.client.mqttv3.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
org.jbox2d.dynamics.contacts uses org.jbox2d.common, so a change to org.jbox2d.common can break org.jbox2d.dynamics.contacts, while a change to org.jbox2d.dynamics.contacts can't break org.jbox2d.common.
Position
Below the diagonal: org.jbox2d.dynamics.contacts uses a module listed above it, which is the healthy direction.
org.jbox2d.dynamics.contacts uses org.jbox2d.pooling, so a change to org.jbox2d.pooling can break org.jbox2d.dynamics.contacts, while a change to org.jbox2d.dynamics.contacts can't break org.jbox2d.pooling.
Position
Below the diagonal: org.jbox2d.dynamics.contacts uses a module listed above it, which is the healthy direction.
21→29 org.jbox2d.dynamics.contacts uses org.jbox2d.dynamicspart of a loop✕
Connections
12 pairs of types, where a type in org.jbox2d.dynamics.contacts uses a type in org.jbox2d.dynamics.
org.jbox2d.dynamics.contacts uses org.jbox2d.dynamics, so a change to org.jbox2d.dynamics can break org.jbox2d.dynamics.contacts, while a change to org.jbox2d.dynamics.contacts can't break org.jbox2d.dynamics.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
21→32 org.jbox2d.dynamics.contacts uses org.jbox2d.collision.shapespart of a loop✕
Connections
2 pairs of types, where a type in org.jbox2d.dynamics.contacts uses a type in org.jbox2d.collision.shapes.
org.jbox2d.dynamics.contacts uses org.jbox2d.collision.shapes, so a change to org.jbox2d.collision.shapes can break org.jbox2d.dynamics.contacts, while a change to org.jbox2d.dynamics.contacts can't break org.jbox2d.collision.shapes.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
21→33 org.jbox2d.dynamics.contacts uses org.jbox2d.collisionpart of a loop✕
Connections
11 pairs of types, where a type in org.jbox2d.dynamics.contacts uses a type in org.jbox2d.collision.
org.jbox2d.dynamics.contacts uses org.jbox2d.collision, so a change to org.jbox2d.collision can break org.jbox2d.dynamics.contacts, while a change to org.jbox2d.dynamics.contacts can't break org.jbox2d.collision.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
21→34 org.jbox2d.dynamics.contacts uses org.jbox2d.callbackspart of a loop✕
Connections
1 pair of types, where a type in org.jbox2d.dynamics.contacts uses a type in org.jbox2d.callbacks.
org.jbox2d.dynamics.contacts uses org.jbox2d.callbacks, so a change to org.jbox2d.callbacks can break org.jbox2d.dynamics.contacts, while a change to org.jbox2d.dynamics.contacts can't break org.jbox2d.callbacks.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
com.lynden.gmapsfx.service.directions uses com.lynden.gmapsfx.javascript, so a change to com.lynden.gmapsfx.javascript can break com.lynden.gmapsfx.service.directions, while a change to com.lynden.gmapsfx.service.directions can't break com.lynden.gmapsfx.javascript.
Position
Below the diagonal: com.lynden.gmapsfx.service.directions uses a module listed above it, which is the healthy direction.
com.lynden.gmapsfx.service.directions uses com.lynden.gmapsfx.javascript.object, so a change to com.lynden.gmapsfx.javascript.object can break com.lynden.gmapsfx.service.directions, while a change to com.lynden.gmapsfx.service.directions can't break com.lynden.gmapsfx.javascript.object.
Position
Below the diagonal: com.lynden.gmapsfx.service.directions uses a module listed above it, which is the healthy direction.
com.lynden.gmapsfx.service.directions uses com.lynden.gmapsfx.service.geocoding, so a change to com.lynden.gmapsfx.service.geocoding can break com.lynden.gmapsfx.service.directions, while a change to com.lynden.gmapsfx.service.directions can't break com.lynden.gmapsfx.service.geocoding.
Position
Below the diagonal: com.lynden.gmapsfx.service.directions uses a module listed above it, which is the healthy direction.
io.moquette.broker uses io.moquette.broker.config, so a change to io.moquette.broker.config can break io.moquette.broker, while a change to io.moquette.broker can't break io.moquette.broker.config.
Position
Below the diagonal: io.moquette.broker uses a module listed above it, which is the healthy direction.
io.moquette.broker uses io.moquette.broker.subscriptions, so a change to io.moquette.broker.subscriptions can break io.moquette.broker, while a change to io.moquette.broker can't break io.moquette.broker.subscriptions.
Position
Below the diagonal: io.moquette.broker uses a module listed above it, which is the healthy direction.
io.moquette.broker uses io.moquette.broker.security, so a change to io.moquette.broker.security can break io.moquette.broker, while a change to io.moquette.broker can't break io.moquette.broker.security.
Position
Below the diagonal: io.moquette.broker uses a module listed above it, which is the healthy direction.
io.moquette.broker uses io.moquette.interception, so a change to io.moquette.interception can break io.moquette.broker, while a change to io.moquette.broker can't break io.moquette.interception.
Position
Below the diagonal: io.moquette.broker uses a module listed above it, which is the healthy direction.
io.moquette.broker uses io.moquette.persistence, so a change to io.moquette.persistence can break io.moquette.broker, while a change to io.moquette.broker can't break io.moquette.persistence.
Position
Below the diagonal: io.moquette.broker uses a module listed above it, which is the healthy direction.
org.eclipse.paho.client.mqttv3 uses org.eclipse.paho.client.mqttv3.logging, so a change to org.eclipse.paho.client.mqttv3.logging can break org.eclipse.paho.client.mqttv3, while a change to org.eclipse.paho.client.mqttv3 can't break org.eclipse.paho.client.mqttv3.logging.
Position
Below the diagonal: org.eclipse.paho.client.mqttv3 uses a module listed above it, which is the healthy direction.
org.eclipse.paho.client.mqttv3 uses org.eclipse.paho.client.mqttv3.internal.wire, so a change to org.eclipse.paho.client.mqttv3.internal.wire can break org.eclipse.paho.client.mqttv3, while a change to org.eclipse.paho.client.mqttv3 can't break org.eclipse.paho.client.mqttv3.internal.wire.
Position
Below the diagonal: org.eclipse.paho.client.mqttv3 uses a module listed above it, which is the healthy direction.
org.eclipse.paho.client.mqttv3 uses org.eclipse.paho.client.mqttv3.internal, so a change to org.eclipse.paho.client.mqttv3.internal can break org.eclipse.paho.client.mqttv3, while a change to org.eclipse.paho.client.mqttv3 can't break org.eclipse.paho.client.mqttv3.internal.
Position
Below the diagonal: org.eclipse.paho.client.mqttv3 uses a module listed above it, which is the healthy direction.
33 pairs of types, where a type in org.jbox2d.dynamics.joints uses a type in org.jbox2d.common. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
org.jbox2d.dynamics.joints uses org.jbox2d.common, so a change to org.jbox2d.common can break org.jbox2d.dynamics.joints, while a change to org.jbox2d.dynamics.joints can't break org.jbox2d.common.
Position
Below the diagonal: org.jbox2d.dynamics.joints uses a module listed above it, which is the healthy direction.
org.jbox2d.dynamics.joints uses org.jbox2d.pooling, so a change to org.jbox2d.pooling can break org.jbox2d.dynamics.joints, while a change to org.jbox2d.dynamics.joints can't break org.jbox2d.pooling.
Position
Below the diagonal: org.jbox2d.dynamics.joints uses a module listed above it, which is the healthy direction.
org.jbox2d.dynamics.joints uses org.jbox2d.dynamics.contacts, so a change to org.jbox2d.dynamics.contacts can break org.jbox2d.dynamics.joints, while a change to org.jbox2d.dynamics.joints can't break org.jbox2d.dynamics.contacts.
Position
Below the diagonal: org.jbox2d.dynamics.joints uses a module listed above it, which is the healthy direction.
25→29 org.jbox2d.dynamics.joints uses org.jbox2d.dynamicspart of a loop✕
Connections
29 pairs of types, where a type in org.jbox2d.dynamics.joints uses a type in org.jbox2d.dynamics. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
org.jbox2d.dynamics.joints uses org.jbox2d.dynamics, so a change to org.jbox2d.dynamics can break org.jbox2d.dynamics.joints, while a change to org.jbox2d.dynamics.joints can't break org.jbox2d.dynamics.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
org.jbox2d.pooling.normal uses org.jbox2d.common, so a change to org.jbox2d.common can break org.jbox2d.pooling.normal, while a change to org.jbox2d.pooling.normal can't break org.jbox2d.common.
Position
Below the diagonal: org.jbox2d.pooling.normal uses a module listed above it, which is the healthy direction.
org.jbox2d.pooling.normal uses org.jbox2d.pooling, so a change to org.jbox2d.pooling can break org.jbox2d.pooling.normal, while a change to org.jbox2d.pooling.normal can't break org.jbox2d.pooling.
Position
Below the diagonal: org.jbox2d.pooling.normal uses a module listed above it, which is the healthy direction.
org.jbox2d.pooling.normal uses org.jbox2d.dynamics.contacts, so a change to org.jbox2d.dynamics.contacts can break org.jbox2d.pooling.normal, while a change to org.jbox2d.pooling.normal can't break org.jbox2d.dynamics.contacts.
Position
Below the diagonal: org.jbox2d.pooling.normal uses a module listed above it, which is the healthy direction.
26→33 org.jbox2d.pooling.normal uses org.jbox2d.collisionpart of a loop✕
Connections
5 pairs of types, where a type in org.jbox2d.pooling.normal uses a type in org.jbox2d.collision.
org.jbox2d.pooling.normal uses org.jbox2d.collision, so a change to org.jbox2d.collision can break org.jbox2d.pooling.normal, while a change to org.jbox2d.pooling.normal can't break org.jbox2d.collision.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
anywheresoftware.b4j.objects uses io.moquette.broker.config, so a change to io.moquette.broker.config can break anywheresoftware.b4j.objects, while a change to anywheresoftware.b4j.objects can't break io.moquette.broker.config.
Position
Below the diagonal: anywheresoftware.b4j.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.objects uses org.apache.commons.exec, so a change to org.apache.commons.exec can break anywheresoftware.b4j.objects, while a change to anywheresoftware.b4j.objects can't break org.apache.commons.exec.
Position
Below the diagonal: anywheresoftware.b4j.objects uses a module listed above it, which is the healthy direction.
36 pairs of types, where a type in anywheresoftware.b4j.objects uses a type in anywheresoftware.b4a.objects.collections. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
anywheresoftware.b4j.objects uses anywheresoftware.b4a.objects.collections, so a change to anywheresoftware.b4a.objects.collections can break anywheresoftware.b4j.objects, while a change to anywheresoftware.b4j.objects can't break anywheresoftware.b4a.objects.collections.
Position
Below the diagonal: anywheresoftware.b4j.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.objects uses anywheresoftware.b4a.objects.streams, so a change to anywheresoftware.b4a.objects.streams can break anywheresoftware.b4j.objects, while a change to anywheresoftware.b4j.objects can't break anywheresoftware.b4a.objects.streams.
Position
Below the diagonal: anywheresoftware.b4j.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.objects uses io.moquette.broker.security, so a change to io.moquette.broker.security can break anywheresoftware.b4j.objects, while a change to anywheresoftware.b4j.objects can't break io.moquette.broker.security.
Position
Below the diagonal: anywheresoftware.b4j.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.objects uses io.moquette.broker, so a change to io.moquette.broker can break anywheresoftware.b4j.objects, while a change to anywheresoftware.b4j.objects can't break io.moquette.broker.
Position
Below the diagonal: anywheresoftware.b4j.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.objects uses org.eclipse.paho.client.mqttv3, so a change to org.eclipse.paho.client.mqttv3 can break anywheresoftware.b4j.objects, while a change to anywheresoftware.b4j.objects can't break org.eclipse.paho.client.mqttv3.
Position
Below the diagonal: anywheresoftware.b4j.objects uses a module listed above it, which is the healthy direction.
27→37 anywheresoftware.b4j.objects uses anywheresoftware.b4apart of a loop✕
Connections
109 pairs of types, where a type in anywheresoftware.b4j.objects uses a type in anywheresoftware.b4a. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
anywheresoftware.b4j.objects uses anywheresoftware.b4a, so a change to anywheresoftware.b4a can break anywheresoftware.b4j.objects, while a change to anywheresoftware.b4j.objects can't break anywheresoftware.b4a.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
com.lynden.gmapsfx uses com.lynden.gmapsfx.javascript, so a change to com.lynden.gmapsfx.javascript can break com.lynden.gmapsfx, while a change to com.lynden.gmapsfx can't break com.lynden.gmapsfx.javascript.
Position
Below the diagonal: com.lynden.gmapsfx uses a module listed above it, which is the healthy direction.
com.lynden.gmapsfx uses com.lynden.gmapsfx.javascript.object, so a change to com.lynden.gmapsfx.javascript.object can break com.lynden.gmapsfx, while a change to com.lynden.gmapsfx can't break com.lynden.gmapsfx.javascript.object.
Position
Below the diagonal: com.lynden.gmapsfx uses a module listed above it, which is the healthy direction.
com.lynden.gmapsfx uses com.lynden.gmapsfx.service.geocoding, so a change to com.lynden.gmapsfx.service.geocoding can break com.lynden.gmapsfx, while a change to com.lynden.gmapsfx can't break com.lynden.gmapsfx.service.geocoding.
Position
Below the diagonal: com.lynden.gmapsfx uses a module listed above it, which is the healthy direction.
com.lynden.gmapsfx uses com.lynden.gmapsfx.service.directions, so a change to com.lynden.gmapsfx.service.directions can break com.lynden.gmapsfx, while a change to com.lynden.gmapsfx can't break com.lynden.gmapsfx.service.directions.
Position
Below the diagonal: com.lynden.gmapsfx uses a module listed above it, which is the healthy direction.
org.jbox2d.dynamics uses org.jbox2d.common, so a change to org.jbox2d.common can break org.jbox2d.dynamics, while a change to org.jbox2d.dynamics can't break org.jbox2d.common.
Position
Below the diagonal: org.jbox2d.dynamics uses a module listed above it, which is the healthy direction.
org.jbox2d.dynamics uses org.jbox2d.collision.broadphase, so a change to org.jbox2d.collision.broadphase can break org.jbox2d.dynamics, while a change to org.jbox2d.dynamics can't break org.jbox2d.collision.broadphase.
Position
Below the diagonal: org.jbox2d.dynamics uses a module listed above it, which is the healthy direction.
org.jbox2d.dynamics uses org.jbox2d.pooling, so a change to org.jbox2d.pooling can break org.jbox2d.dynamics, while a change to org.jbox2d.dynamics can't break org.jbox2d.pooling.
Position
Below the diagonal: org.jbox2d.dynamics uses a module listed above it, which is the healthy direction.
org.jbox2d.dynamics uses org.jbox2d.dynamics.contacts, so a change to org.jbox2d.dynamics.contacts can break org.jbox2d.dynamics, while a change to org.jbox2d.dynamics can't break org.jbox2d.dynamics.contacts.
Position
Below the diagonal: org.jbox2d.dynamics uses a module listed above it, which is the healthy direction.
org.jbox2d.dynamics uses org.jbox2d.dynamics.joints, so a change to org.jbox2d.dynamics.joints can break org.jbox2d.dynamics, while a change to org.jbox2d.dynamics can't break org.jbox2d.dynamics.joints.
Position
Below the diagonal: org.jbox2d.dynamics uses a module listed above it, which is the healthy direction.
29→30 org.jbox2d.dynamics uses org.jbox2d.particlepart of a loop✕
Connections
7 pairs of types, where a type in org.jbox2d.dynamics uses a type in org.jbox2d.particle.
org.jbox2d.dynamics uses org.jbox2d.particle, so a change to org.jbox2d.particle can break org.jbox2d.dynamics, while a change to org.jbox2d.dynamics can't break org.jbox2d.particle.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→31 org.jbox2d.dynamics uses org.jbox2d.pooling.arrayspart of a loop✕
Connections
1 pair of types, where a type in org.jbox2d.dynamics uses a type in org.jbox2d.pooling.arrays.
org.jbox2d.dynamics uses org.jbox2d.pooling.arrays, so a change to org.jbox2d.pooling.arrays can break org.jbox2d.dynamics, while a change to org.jbox2d.dynamics can't break org.jbox2d.pooling.arrays.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→32 org.jbox2d.dynamics uses org.jbox2d.collision.shapespart of a loop✕
Connections
8 pairs of types, where a type in org.jbox2d.dynamics uses a type in org.jbox2d.collision.shapes.
org.jbox2d.dynamics uses org.jbox2d.collision.shapes, so a change to org.jbox2d.collision.shapes can break org.jbox2d.dynamics, while a change to org.jbox2d.dynamics can't break org.jbox2d.collision.shapes.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→33 org.jbox2d.dynamics uses org.jbox2d.collisionpart of a loop✕
Connections
10 pairs of types, where a type in org.jbox2d.dynamics uses a type in org.jbox2d.collision.
org.jbox2d.dynamics uses org.jbox2d.collision, so a change to org.jbox2d.collision can break org.jbox2d.dynamics, while a change to org.jbox2d.dynamics can't break org.jbox2d.collision.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
29→34 org.jbox2d.dynamics uses org.jbox2d.callbackspart of a loop✕
Connections
18 pairs of types, where a type in org.jbox2d.dynamics uses a type in org.jbox2d.callbacks.
org.jbox2d.dynamics uses org.jbox2d.callbacks, so a change to org.jbox2d.callbacks can break org.jbox2d.dynamics, while a change to org.jbox2d.dynamics can't break org.jbox2d.callbacks.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
org.jbox2d.particle uses org.jbox2d.common, so a change to org.jbox2d.common can break org.jbox2d.particle, while a change to org.jbox2d.particle can't break org.jbox2d.common.
Position
Below the diagonal: org.jbox2d.particle uses a module listed above it, which is the healthy direction.
org.jbox2d.particle uses org.jbox2d.pooling.normal, so a change to org.jbox2d.pooling.normal can break org.jbox2d.particle, while a change to org.jbox2d.particle can't break org.jbox2d.pooling.normal.
Position
Below the diagonal: org.jbox2d.particle uses a module listed above it, which is the healthy direction.
org.jbox2d.particle uses org.jbox2d.dynamics, so a change to org.jbox2d.dynamics can break org.jbox2d.particle, while a change to org.jbox2d.particle can't break org.jbox2d.dynamics.
Position
Below the diagonal: org.jbox2d.particle uses a module listed above it, which is the healthy direction.
30→32 org.jbox2d.particle uses org.jbox2d.collision.shapespart of a loop✕
Connections
3 pairs of types, where a type in org.jbox2d.particle uses a type in org.jbox2d.collision.shapes.
org.jbox2d.particle uses org.jbox2d.collision.shapes, so a change to org.jbox2d.collision.shapes can break org.jbox2d.particle, while a change to org.jbox2d.particle can't break org.jbox2d.collision.shapes.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
30→33 org.jbox2d.particle uses org.jbox2d.collisionpart of a loop✕
Connections
3 pairs of types, where a type in org.jbox2d.particle uses a type in org.jbox2d.collision.
org.jbox2d.particle uses org.jbox2d.collision, so a change to org.jbox2d.collision can break org.jbox2d.particle, while a change to org.jbox2d.particle can't break org.jbox2d.collision.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
30→34 org.jbox2d.particle uses org.jbox2d.callbackspart of a loop✕
Connections
5 pairs of types, where a type in org.jbox2d.particle uses a type in org.jbox2d.callbacks.
org.jbox2d.particle uses org.jbox2d.callbacks, so a change to org.jbox2d.callbacks can break org.jbox2d.particle, while a change to org.jbox2d.particle can't break org.jbox2d.callbacks.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
org.jbox2d.pooling.arrays uses org.jbox2d.common, so a change to org.jbox2d.common can break org.jbox2d.pooling.arrays, while a change to org.jbox2d.pooling.arrays can't break org.jbox2d.common.
Position
Below the diagonal: org.jbox2d.pooling.arrays uses a module listed above it, which is the healthy direction.
org.jbox2d.pooling.arrays uses org.jbox2d.particle, so a change to org.jbox2d.particle can break org.jbox2d.pooling.arrays, while a change to org.jbox2d.pooling.arrays can't break org.jbox2d.particle.
Position
Below the diagonal: org.jbox2d.pooling.arrays uses a module listed above it, which is the healthy direction.
org.jbox2d.collision.shapes uses org.jbox2d.common, so a change to org.jbox2d.common can break org.jbox2d.collision.shapes, while a change to org.jbox2d.collision.shapes can't break org.jbox2d.common.
Position
Below the diagonal: org.jbox2d.collision.shapes uses a module listed above it, which is the healthy direction.
org.jbox2d.collision.shapes uses org.jbox2d.pooling.arrays, so a change to org.jbox2d.pooling.arrays can break org.jbox2d.collision.shapes, while a change to org.jbox2d.collision.shapes can't break org.jbox2d.pooling.arrays.
Position
Below the diagonal: org.jbox2d.collision.shapes uses a module listed above it, which is the healthy direction.
32→33 org.jbox2d.collision.shapes uses org.jbox2d.collisionpart of a loop✕
Connections
15 pairs of types, where a type in org.jbox2d.collision.shapes uses a type in org.jbox2d.collision.
org.jbox2d.collision.shapes uses org.jbox2d.collision, so a change to org.jbox2d.collision can break org.jbox2d.collision.shapes, while a change to org.jbox2d.collision.shapes can't break org.jbox2d.collision.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
27 pairs of types, where a type in org.jbox2d.collision uses a type in org.jbox2d.common. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
org.jbox2d.collision uses org.jbox2d.common, so a change to org.jbox2d.common can break org.jbox2d.collision, while a change to org.jbox2d.collision can't break org.jbox2d.common.
Position
Below the diagonal: org.jbox2d.collision uses a module listed above it, which is the healthy direction.
org.jbox2d.collision uses org.jbox2d.pooling, so a change to org.jbox2d.pooling can break org.jbox2d.collision, while a change to org.jbox2d.collision can't break org.jbox2d.pooling.
Position
Below the diagonal: org.jbox2d.collision uses a module listed above it, which is the healthy direction.
org.jbox2d.collision uses org.jbox2d.collision.shapes, so a change to org.jbox2d.collision.shapes can break org.jbox2d.collision, while a change to org.jbox2d.collision can't break org.jbox2d.collision.shapes.
Position
Below the diagonal: org.jbox2d.collision uses a module listed above it, which is the healthy direction.
org.jbox2d.callbacks uses org.jbox2d.common, so a change to org.jbox2d.common can break org.jbox2d.callbacks, while a change to org.jbox2d.callbacks can't break org.jbox2d.common.
Position
Below the diagonal: org.jbox2d.callbacks uses a module listed above it, which is the healthy direction.
org.jbox2d.callbacks uses org.jbox2d.dynamics.contacts, so a change to org.jbox2d.dynamics.contacts can break org.jbox2d.callbacks, while a change to org.jbox2d.callbacks can't break org.jbox2d.dynamics.contacts.
Position
Below the diagonal: org.jbox2d.callbacks uses a module listed above it, which is the healthy direction.
org.jbox2d.callbacks uses org.jbox2d.dynamics.joints, so a change to org.jbox2d.dynamics.joints can break org.jbox2d.callbacks, while a change to org.jbox2d.callbacks can't break org.jbox2d.dynamics.joints.
Position
Below the diagonal: org.jbox2d.callbacks uses a module listed above it, which is the healthy direction.
org.jbox2d.callbacks uses org.jbox2d.dynamics, so a change to org.jbox2d.dynamics can break org.jbox2d.callbacks, while a change to org.jbox2d.callbacks can't break org.jbox2d.dynamics.
Position
Below the diagonal: org.jbox2d.callbacks uses a module listed above it, which is the healthy direction.
org.jbox2d.callbacks uses org.jbox2d.particle, so a change to org.jbox2d.particle can break org.jbox2d.callbacks, while a change to org.jbox2d.callbacks can't break org.jbox2d.particle.
Position
Below the diagonal: org.jbox2d.callbacks uses a module listed above it, which is the healthy direction.
org.jbox2d.callbacks uses org.jbox2d.collision, so a change to org.jbox2d.collision can break org.jbox2d.callbacks, while a change to org.jbox2d.callbacks can't break org.jbox2d.collision.
Position
Below the diagonal: org.jbox2d.callbacks uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.objects uses org.jbox2d.common, so a change to org.jbox2d.common can break anywheresoftware.b4a.objects, while a change to anywheresoftware.b4a.objects can't break org.jbox2d.common.
Position
Below the diagonal: anywheresoftware.b4a.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.objects uses anywheresoftware.b4a.objects.collections, so a change to anywheresoftware.b4a.objects.collections can break anywheresoftware.b4a.objects, while a change to anywheresoftware.b4a.objects can't break anywheresoftware.b4a.objects.collections.
Position
Below the diagonal: anywheresoftware.b4a.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.objects uses org.jbox2d.dynamics.contacts, so a change to org.jbox2d.dynamics.contacts can break anywheresoftware.b4a.objects, while a change to anywheresoftware.b4a.objects can't break org.jbox2d.dynamics.contacts.
Position
Below the diagonal: anywheresoftware.b4a.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.objects uses org.jbox2d.dynamics.joints, so a change to org.jbox2d.dynamics.joints can break anywheresoftware.b4a.objects, while a change to anywheresoftware.b4a.objects can't break org.jbox2d.dynamics.joints.
Position
Below the diagonal: anywheresoftware.b4a.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.objects uses anywheresoftware.b4j.objects, so a change to anywheresoftware.b4j.objects can break anywheresoftware.b4a.objects, while a change to anywheresoftware.b4a.objects can't break anywheresoftware.b4j.objects.
Position
Below the diagonal: anywheresoftware.b4a.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.objects uses org.jbox2d.dynamics, so a change to org.jbox2d.dynamics can break anywheresoftware.b4a.objects, while a change to anywheresoftware.b4a.objects can't break org.jbox2d.dynamics.
Position
Below the diagonal: anywheresoftware.b4a.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.objects uses org.jbox2d.collision.shapes, so a change to org.jbox2d.collision.shapes can break anywheresoftware.b4a.objects, while a change to anywheresoftware.b4a.objects can't break org.jbox2d.collision.shapes.
Position
Below the diagonal: anywheresoftware.b4a.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.objects uses org.jbox2d.collision, so a change to org.jbox2d.collision can break anywheresoftware.b4a.objects, while a change to anywheresoftware.b4a.objects can't break org.jbox2d.collision.
Position
Below the diagonal: anywheresoftware.b4a.objects uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.objects uses org.jbox2d.callbacks, so a change to org.jbox2d.callbacks can break anywheresoftware.b4a.objects, while a change to anywheresoftware.b4a.objects can't break org.jbox2d.callbacks.
Position
Below the diagonal: anywheresoftware.b4a.objects uses a module listed above it, which is the healthy direction.
35→36 anywheresoftware.b4a.objects uses anywheresoftware.b4a.keywordspart of a loop✕
Connections
1 pair of types, where a type in anywheresoftware.b4a.objects uses a type in anywheresoftware.b4a.keywords.
anywheresoftware.b4a.objects uses anywheresoftware.b4a.keywords, so a change to anywheresoftware.b4a.keywords can break anywheresoftware.b4a.objects, while a change to anywheresoftware.b4a.objects can't break anywheresoftware.b4a.keywords.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
35→37 anywheresoftware.b4a.objects uses anywheresoftware.b4apart of a loop✕
Connections
32 pairs of types, where a type in anywheresoftware.b4a.objects uses a type in anywheresoftware.b4a. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
anywheresoftware.b4a.objects uses anywheresoftware.b4a, so a change to anywheresoftware.b4a can break anywheresoftware.b4a.objects, while a change to anywheresoftware.b4a.objects can't break anywheresoftware.b4a.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
anywheresoftware.b4a.keywords uses anywheresoftware.b4a.objects.collections, so a change to anywheresoftware.b4a.objects.collections can break anywheresoftware.b4a.keywords, while a change to anywheresoftware.b4a.keywords can't break anywheresoftware.b4a.objects.collections.
Position
Below the diagonal: anywheresoftware.b4a.keywords uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.keywords uses anywheresoftware.b4a.objects.streams, so a change to anywheresoftware.b4a.objects.streams can break anywheresoftware.b4a.keywords, while a change to anywheresoftware.b4a.keywords can't break anywheresoftware.b4a.objects.streams.
Position
Below the diagonal: anywheresoftware.b4a.keywords uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.keywords uses anywheresoftware.b4a.objects, so a change to anywheresoftware.b4a.objects can break anywheresoftware.b4a.keywords, while a change to anywheresoftware.b4a.keywords can't break anywheresoftware.b4a.objects.
Position
Below the diagonal: anywheresoftware.b4a.keywords uses a module listed above it, which is the healthy direction.
36→37 anywheresoftware.b4a.keywords uses anywheresoftware.b4apart of a loop✕
Connections
7 pairs of types, where a type in anywheresoftware.b4a.keywords uses a type in anywheresoftware.b4a.
anywheresoftware.b4a.keywords uses anywheresoftware.b4a, so a change to anywheresoftware.b4a can break anywheresoftware.b4a.keywords, while a change to anywheresoftware.b4a.keywords can't break anywheresoftware.b4a.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
anywheresoftware.b4a uses anywheresoftware.b4a.keywords, so a change to anywheresoftware.b4a.keywords can break anywheresoftware.b4a, while a change to anywheresoftware.b4a can't break anywheresoftware.b4a.keywords.
Position
Below the diagonal: anywheresoftware.b4a uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.net uses anywheresoftware.b4a.objects.collections, so a change to anywheresoftware.b4a.objects.collections can break anywheresoftware.b4a.net, while a change to anywheresoftware.b4a.net can't break anywheresoftware.b4a.objects.collections.
Position
Below the diagonal: anywheresoftware.b4a.net uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.net uses org.apache.commons.net.ftp, so a change to org.apache.commons.net.ftp can break anywheresoftware.b4a.net, while a change to anywheresoftware.b4a.net can't break org.apache.commons.net.ftp.
Position
Below the diagonal: anywheresoftware.b4a.net uses a module listed above it, which is the healthy direction.
anywheresoftware.b4a.net uses anywheresoftware.b4a, so a change to anywheresoftware.b4a can break anywheresoftware.b4a.net, while a change to anywheresoftware.b4a.net can't break anywheresoftware.b4a.
Position
Below the diagonal: anywheresoftware.b4a.net uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.googlemaps uses anywheresoftware.b4a.objects.collections, so a change to anywheresoftware.b4a.objects.collections can break anywheresoftware.b4j.googlemaps, while a change to anywheresoftware.b4j.googlemaps can't break anywheresoftware.b4a.objects.collections.
Position
Below the diagonal: anywheresoftware.b4j.googlemaps uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.googlemaps uses com.lynden.gmapsfx.javascript.object, so a change to com.lynden.gmapsfx.javascript.object can break anywheresoftware.b4j.googlemaps, while a change to anywheresoftware.b4j.googlemaps can't break com.lynden.gmapsfx.javascript.object.
Position
Below the diagonal: anywheresoftware.b4j.googlemaps uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.googlemaps uses anywheresoftware.b4j.objects, so a change to anywheresoftware.b4j.objects can break anywheresoftware.b4j.googlemaps, while a change to anywheresoftware.b4j.googlemaps can't break anywheresoftware.b4j.objects.
Position
Below the diagonal: anywheresoftware.b4j.googlemaps uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.googlemaps uses com.lynden.gmapsfx, so a change to com.lynden.gmapsfx can break anywheresoftware.b4j.googlemaps, while a change to anywheresoftware.b4j.googlemaps can't break com.lynden.gmapsfx.
Position
Below the diagonal: anywheresoftware.b4j.googlemaps uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.googlemaps uses anywheresoftware.b4a, so a change to anywheresoftware.b4a can break anywheresoftware.b4j.googlemaps, while a change to anywheresoftware.b4j.googlemaps can't break anywheresoftware.b4a.
Position
Below the diagonal: anywheresoftware.b4j.googlemaps uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.object uses anywheresoftware.b4a.objects.collections, so a change to anywheresoftware.b4a.objects.collections can break anywheresoftware.b4j.object, while a change to anywheresoftware.b4j.object can't break anywheresoftware.b4a.objects.collections.
Position
Below the diagonal: anywheresoftware.b4j.object uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.object uses anywheresoftware.b4a.objects.streams, so a change to anywheresoftware.b4a.objects.streams can break anywheresoftware.b4j.object, while a change to anywheresoftware.b4j.object can't break anywheresoftware.b4a.objects.streams.
Position
Below the diagonal: anywheresoftware.b4j.object uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.object uses anywheresoftware.b4j.objects, so a change to anywheresoftware.b4j.objects can break anywheresoftware.b4j.object, while a change to anywheresoftware.b4j.object can't break anywheresoftware.b4j.objects.
Position
Below the diagonal: anywheresoftware.b4j.object uses a module listed above it, which is the healthy direction.
anywheresoftware.b4j.object uses anywheresoftware.b4a, so a change to anywheresoftware.b4a can break anywheresoftware.b4j.object, while a change to anywheresoftware.b4j.object can't break anywheresoftware.b4a.
Position
Below the diagonal: anywheresoftware.b4j.object uses a module listed above it, which is the healthy direction.
At a glance — Code Health · 54.8 · Adequate · gated by X5 ·
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
A05:2025 — Injection
23
High / Critical
A07:2025 — Authentication Failures
2
High / Critical
Roadmap
Top priorities: Add a CI workflow that builds and runs the test suite on every push/PR; 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; Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Add a CI workflow that builds and runs the test suite on every push/PR.
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.
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Every finding carries one of four grades. Three say how serious it is. The fourth says this
survey could not settle it — and it is a grade, not a gap.
Critical — 16
A definite problem that already costs you something and drags the score down: a
missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here
tends to cause failures elsewhere.
Serious — 1689
Likely wrong, but not failing yet. It degrades
the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to
carry for two years either.
Minor — 72
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 23
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
This survey 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. All 49 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.7, the weighted average across measured dimensions.
Every figure here is one of two 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. 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.
What we checked — 49 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, 1770 of 1777 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 or a scanner, 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.
D5 Coupling — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
D8 Code Coverage — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.java) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo.
D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.java) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. No dependency manifest this pass reads for hygiene (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems)) was found in this repository, 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 D30 wherever the manifest is OSV-readable.
D14 License Compliance — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — no dependency manifest this pass reads for licence data (a Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems)) was found in this repository, so it declares no third-party dependency closure to grade. A gap in the analyzer, NOT a finding that this repository's licences are compliant: a manifest in an ecosystem outside that list, or third-party code copied into the tree, is not read — so this dimension asserts nothing about this repository's licensing in either direction.
D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Too few commits for a meaningful bus factor (32 commit(s) sampled, fewer than the 50 this dimension needs before a bus factor means anything).
D20 ADR Quality — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. The ADR expectation is gated on whether a repository ships a deployable product. Our repo-kind classifier reads .NET project files and the host and package markers of the other ecosystems it knows (a Go `package main`, a Cargo binary, a package.json `bin`, `start` script or application dev server such as Vite or Next, Python console scripts or a Django/WSGI entry point, a Spring Boot / WAR / Gradle application build, a Rack or Rails app, a Composer project, an OTP release or escript, a Dockerfile, a Procfile, a Platform.sh `.platform/routes.yaml`, and the corresponding published-package manifests, including an OTP `*.app.src`, a Drupal module's `*.info` and a Claude Code `.claude-plugin/plugin.json`), and found none here, so we could not tell what kind of repository this is and did not assess its ADR log. This is a gap in our analyzer, not a finding about this repository. No manifest, project file or entry point of any ecosystem it reads exists in this tree.
D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. D21's naming rules read C# through Roslyn and every other language through its sidecar model; these languages are left out (PHP's reading is its own change, a Roslyn-loaded VB or F# project has no population builder yet). Their declarations carry no naming verdict this run — this says nothing about whether their names are consistent.
D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
D21 Naming Consistency — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is a COLLECTOR gap, not an environment fault: no published-package marker D22 reads admitted any project here, so this ecosystem's public API has no collector, and the remedy is to write one — no change to the scan image can close it.
D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Each source language's comment syntax, and the code a comment annotates in it, needs its own proof before D24 judges it. Until then those comments are left unread, not counted as clean.
D26 Project Cohesion — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `(repository root)` (182034 LoC, 1056 module-visible types across 103 directories) is over its size bounds, and whether one unit is a coherent whole or a grab-bag is read from its type references: the parts of it that reach the rest only through its shared core. Those are read over the C#/VB code model, which this unit's source did not supply. Its size alone is no verdict on its cohesion, so none is published.
D34 Knowledge Freshness — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Too few commits to judge knowledge freshness (32 commit(s) sampled).
D44 Platform End-of-Life — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a build.sbt scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a Dockerfile) is simply not read here yet.
AX3 Project dependency cycles — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over which project references which. That is a language-neutral question, but the project-reference graph is collected from MSBuild .csproj/.fsproj/.vbproj, Gradle, Maven, Cargo, npm/pnpm/yarn, Go module (and dep/glide/godep), Python pyproject.toml/setup.cfg/setup.py, SwiftPM, sbt, Mill, RubyGems, Composer, Mix/rebar3, pub, Unity assembly-definition, Deno/JSR, Tuist, CMake, Bazel, Xcode and XcodeGen builds and uni-app uni_modules plugins, or — when none declares a module — from the imports between a JavaScript/TypeScript, Python, Ruby, loose Rust, build-less C# or manifest-less Go tree's top-level directories, or as one module when all of a tree's source is one directory, and this repository offers none of them — so there was no graph to read, and re-running the same commit reads the same nothing. No module manifest of any ecosystem this engine recognises was found either, and the source's own imports could not stand in: they are read for JavaScript/TypeScript, Python and Ruby only, and only when those languages are the product — in any other language a tree is read only when its whole source is one directory, which this one's is not. The collector owed is an import reader for this repository's languages. That is a COLLECTOR gap in this analyzer — no change to the scan image closes it — and not a finding that the repository is free of what this check looks for.
AX8 Test isolation — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over which projects are test projects, and what they reference. That is a language-neutral question, but the project-reference graph is collected from MSBuild .csproj/.fsproj/.vbproj, Gradle, Maven, Cargo, npm/pnpm/yarn, Go module (and dep/glide/godep), Python pyproject.toml/setup.cfg/setup.py, SwiftPM, sbt, Mill, RubyGems, Composer, Mix/rebar3, pub, Unity assembly-definition, Deno/JSR, Tuist, CMake, Bazel, Xcode and XcodeGen builds and uni-app uni_modules plugins, or — when none declares a module — from the imports between a JavaScript/TypeScript, Python, Ruby, loose Rust, build-less C# or manifest-less Go tree's top-level directories, or as one module when all of a tree's source is one directory, and this repository offers none of them — so there was no graph to read, and re-running the same commit reads the same nothing. No module manifest of any ecosystem this engine recognises was found either, and the source's own imports could not stand in: they are read for JavaScript/TypeScript, Python and Ruby only, and only when those languages are the product — in any other language a tree is read only when its whole source is one directory, which this one's is not. The collector owed is an import reader for this repository's languages. That is a COLLECTOR gap in this analyzer — no change to the scan image closes it — and not a finding that the repository is free of what this check looks for.
AXB1 Runtime evidence locked — no reproducible boot — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Subject: 7 markup document(s) — HTML, Razor, JSX, Vue, Svelte or server templates. The Runtime Evidence tier boots an app only via docker-compose, an Aspire AppHost, a Dockerfile, an npm dev script, a web service's own toolchain entry point (cargo, go, dotnet, Python, Spring Boot), or an Android app's own Gradle wrapper (run on an emulator); an Apple or Flutter app needs a host it lacks. None applied, so no live runtime a11y/egress/header evidence was collected. You can widen what we reach: add a docker-compose.yml (or an Aspire AppHost) that brings the app up with its dependencies. We then boot it in an isolated sandbox and gathers real runtime evidence — you change nothing in your pipeline (no CI step, no SDK).
C1 Data Protection — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
C2 Access Controls — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
C3 Audit Trail — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
C4 Data Retention — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
C5 Data-Subject Rights — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
GD1 Unfinished & placeholder code — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 11 further occurrence(s) are not listed individually; the score already reflects all 51.
M3 Folder & project structure — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Whether the tests sit apart from production code is not visible here, because the suite is not in a form this pass reads. The test-separation credit is granted rather than withheld: this is a gap in the analyzer's language coverage, not a finding about the repository's tests. You can widen what we reach: keep the test surface somewhere a reader can find it without opening a binary — an exported/checked-in test source tree beside the production code makes the suite reviewable, diffable and discoverable by tooling.
P10 Library API & versioning — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads NuGet packaging and C# public API, and npm, PyPI, crates.io, Maven/Gradle, Go module, RubyGems, Composer, SwiftPM, CocoaPods, pub.dev, Hex, sbt, Mill and scala-cli package manifests only, and no .NET project and no package manifest of those ecosystems was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
P5 DR & Backup — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found. Whether there is anything here to recover could NOT be determined: persistence is detected from deployment/container manifests and from dependency manifests, and neither was readable by this pass, so a data store this code opens directly — a file, an embedded database — would not be visible to it. The blindness is this analyzer's, not a finding that the repository holds no data. You can widen what we reach: keep the deployment/container manifest or a dependency manifest in this repository — or a link to the ops repo that holds the DR evidence — so the persistence probe has something to read.
X1 Async correctness — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover most of the languages this repository's product is written in. What it read is kept, but it is too small a share to grade the product by. That is a gap in this analyzer's language reach — not a finding about this repository.
X10 Duplicated predicate — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 7 further occurrence(s) are not listed individually; the score already reflects all 47.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
We assess the repository exactly as committed, and only the repository. By design we do 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 — an in-process token-stream comparison over sliding windows, with type-aware normalization — so 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.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D13 REDACTED Scanning: REDACTED 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.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D21 Naming Consistency: Naming consistency compares each name with the convention its structural peers follow in this repository: it cannot tell whether a consistently used name is a good one, and languages other than C# and TypeScript are not measured.
D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
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.
AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
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.
123 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was GaugeBuilder.build at 186. A further 9 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 Gauge.createDefaultSkin at 31 — they are counted neither in the figure above nor in this dimension's score. 2 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: Libs_jGauges/src/eu/hansolo/medusa/Gauge.java (Gauge.createDefaultSkin at 31), Libs_MqttBroker2/src/io/moquette/broker/metrics/MQTTMessageLogger.java (MQTTMessageLogger.logMQTTMessage at 17). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
+ 118 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 4 bodies over 120 down to 120 or less in Cyclomatic Complexity — start with GaugeBuilder.build (cyclomatic 186), TidyUtils.isXMLLetter (cyclomatic 156), Lexer.getToken (cyclomatic 146). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 4 together lifts Cyclomatic Complexity from 5.4 to about 5.8/10, projected with the scoring formula itself and assuming each lands exactly at 120; a cleaner split scores higher.
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.
+ 262 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 5 bodies over 240 down to 240 or less in Cognitive Complexity — start with Lexer.getToken (cognitive 407), Helper.drawRadialTickMarks (cognitive 333), QuarterSkin.drawTickMarks (cognitive 311). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 5 together lifts Cognitive Complexity from 4.4 to about 5.0/10, projected with the scoring formula itself and assuming each lands exactly at 240; a cleaner split scores higher.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes7.9 / 10Strong✓ 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.
Resolve the 61 MethodTooLong finding(s) in God Classes — start with MorphingClockSkin.java (11), QuarterSkin.java (6), ParserImpl.java (4). — One of this dimension's main actionable groups (61 warning-level).
Resolve the 48 TooManyMethods finding(s) in God Classes — start with Gauge.java, Clock.java, Tidy.java. — One of this dimension's main actionable groups (48 warning-level).
Resolve the 43 ClassTooLong finding(s) in God Classes — start with Gauge.java, MorphingClockSkin.java, Lexer.java. — One of this dimension's main actionable groups (43 warning-level).
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.
651 duplicated block group(s) detected. 11.9 % of the production lines (21,512 of 180,675) are in a reported copy. A further 289 rows report members as variants of one another; the share counts each copied line once, however many rows cite it.
+ 268 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 61 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with Clock.java (15), JSONArray.java (7), DirectionsLeg.java (3). — One of this dimension's main actionable groups (61 warning-level).
Resolve the 44 Duplicated block (5 lines × 2) finding(s) in Code Duplication — start with JSONArray.java (5), SectionSkin.java (4), ModernSkin.java (3). — One of this dimension's main actionable groups (44 warning-level).
Resolve the 43 Duplicated block (7 lines × 2) finding(s) in Code Duplication — start with DashboardSkin.java (4), TidyUtils.java (2), DynamicTree.java (2). — One of this dimension's main actionable groups (43 warning-level).
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 2 Low cohesion finding(s) in Cohesion (LCOM4) — start with GameViewHelper.java, Collision.java. — One of this dimension's main actionable groups (2 warning-level).
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
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: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
54 deducted task-comment markers across 180675 LoC (0.0/KLoC) → score 9.9. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
Resolve the 53 TodoComment finding(s) in Explicit Debt — start with StubServletRequest.java (15), World.java (5), Session.java (4). — One of this dimension's main actionable groups (53 warning-level).
Resolve the 1 XxxComment finding(s) in Explicit Debt — start with Clean.java. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Seven vocabulary-free rules (N1-N7) mine each naming convention from the repository and flag a name that breaks a convention its structural peers in the same unit follow; production C# and TypeScript, each its own population. Deterministic, no model, no sample. Advisory.
4 naming inconsistencies among 90 declarations measured against a convention their peers follow.
`findTITLE` spells `TITLE` where 31 names in the project spell it `Title`Libs_JTidy/src/org/w3c/tidy/Node.java:1274
`CheckAREA` spells `AREA` where 15 names in the project spell it `Area`Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:436
`CheckSTYLE` spells `STYLE` where 25 names in the project spell it `Style`Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:515
`GetLED` spells `LED` where 17 names in the project spell it `Led`Libs_Pi4JWrapper/src/anywheresoftware/b4j/objects/PiFaceWrapper.java:55
What to do
Resolve the 1 `findTITLE` spells `TITLE` where 31 names in the project spell it… finding(s) in Naming Consistency — start with Node.java. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 `CheckAREA` spells `AREA` where 15 names in the project spell it `Area` finding(s) in Naming Consistency — start with TagCheckImpl.java. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 `CheckSTYLE` spells `STYLE` where 25 names in the project spell it… finding(s) in Naming Consistency — start with TagCheckImpl.java. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d21_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D27 · Navigability8.9 / 10Strong✓ Tool-verified
What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.
Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.
Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.
73 % of calls cross a namespace and 1 % go through an interface, but 71 % of collaborators are co-located — so following a call takes several hops. Baseline: small — navigation cost is tolerated.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
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.
REDACTED
REDACTED
What to do
Resolve the 1 REDACTED finding(s) in Secrets (history) — start with REDACTED. — One of this dimension's main actionable groups (1 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
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).
+ 2 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 11 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (7), REDACTED (2), REDACTED (2). — One of this dimension's main actionable groups (11 warning-level).
Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED, REDACTED. — One of this dimension's main actionable groups (4 warning-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
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. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
No strong hidden change-coupling between production files.
✓ On the Gold path — maintain.
Detailed fixes: d35_recommendation.md.
Do you agree with this assessment?
Frontend & cross-cutting dimensions
R = React/JS · M = Maturity · P = Readiness.
AC2 · Forms & labels3.5 / 10Weak✓ Tool-verified
Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, a click handler on a plain element names the control it declares, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.
Coverage: Population: form controls, buttons, links, fieldsets and known UI-library field components in the PARSED MARKUP files only (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx); components, hidden subtrees and spread/dynamic-attribute elements are skipped, so a control whose label arrives through a spread or a runtime expression is deliberately not judged. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it. — REDACTED:50
What to do
Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
Do you agree with this assessment?
AC3 · Page structure3.5 / 10Weak✓ Tool-verified
Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.
Coverage: Population: the PARSED MARKUP documents (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx). The page-level checks — lang, title, single main landmark — fire ONCE PER FULL DOCUMENT (an <html> root) and never on a partial or component fragment, so a repo of fragments is assessed only on the per-element checks (heading order, table headers, iframe titles, meta-refresh, zoom). Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en"). (×7) — REDACTED:17, Libs_GoogleMaps/src/html/clustered/maps_clustered.html:2, REDACTED:2, …
No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. (×2) — REDACTED:17, Libs_GoogleMaps/src/html/maps-debug.html:2
user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta. (×5) — Libs_GoogleMaps/src/html/clustered/maps_clustered.html:6, REDACTED:6, Libs_GoogleMaps/src/html/maps.html:6, …
What to do
Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.
Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.
Coverage: Population: styled elements in the PARSED MARKUP files (.html/.htm/.cshtml/.razor/.vue/.svelte/.jsx/.tsx), plus in-repo <style> blocks, in-repo .css files and CSS-in-JS literals. Colour contrast is computed from LITERAL colour pairs only (hex/rgb/hsl/named, including var() tokens and Tailwind neutral utilities) — computed, runtime-themed and external-CDN colour is never resolved, so this is a partial read of contrast by construction. Markup built in script — tagged-template (html`…`) UIs and hyperscript DOM factories — is not read at all.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
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 interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.
`Logger` declares 28 abstract methods under just 14 distinct name(s): `config`, `config`, `config`, `dumpTrace`, `fine`, `fine`, `fine`, `finer`, `finer`, `finer`, `finest`, `finest`, `finest`, `formatMessage`, `info`, `info`, `info`, `initialise`, `isLoggable`, `log`, `setResourceName`, `severe`, `severe`, `severe`, `trace`, `warning`, `warning`, `warning`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 28 separate responsibilities: a caller binds to 14 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 28 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface. — Libs_MQTT/src/org/eclipse/paho/client/mqttv3/logging/Logger.java:53
`IMqttAsyncClient` declares 29 abstract methods under just 12 distinct name(s): `close`, `connect`, `connect`, `connect`, `connect`, `disconnect`, `disconnect`, `disconnect`, `disconnect`, `disconnectForcibly`, `disconnectForcibly`, `disconnectForcibly`, `getClientId`, `getPendingDeliveryTokens`, `getServerURI`, `isConnected`, `publish`, `publish`, `publish`, `publish`, `setCallback`, `subscribe`, `subscribe`, `subscribe`, `subscribe`, `unsubscribe`, `unsubscribe`, `unsubscribe`, `unsubscribe`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 29 separate responsibilities: a caller binds to 12 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 29 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface. — Libs_MQTT/src/org/eclipse/paho/client/mqttv3/IMqttAsyncClient.java:120
`IMqttClient` declares 23 abstract methods under just 14 distinct name(s): `close`, `connect`, `connect`, `connectWithResult`, `disconnect`, `disconnect`, `disconnectForcibly`, `disconnectForcibly`, `disconnectForcibly`, `getClientId`, `getPendingDeliveryTokens`, `getServerURI`, `getTopic`, `isConnected`, `publish`, `publish`, `setCallback`, `subscribe`, `subscribe`, `subscribe`, `subscribe`, `unsubscribe`, `unsubscribe`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 23 separate responsibilities: a caller binds to 14 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 23 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface. — Libs_MQTT/src/org/eclipse/paho/client/mqttv3/IMqttClient.java:61
`IWorldPool` declares 29 abstract methods: `getChainCircleContactStack`, `getChainPolyContactStack`, `getCircleContactStack`, `getCollision`, `getDistance`, `getEdgeCircleContactStack`, `getEdgePolyContactStack`, `getFloatArray`, `getIntArray`, `getPolyCircleContactStack`, `getPolyContactStack`, `getTimeOfImpact`, `getVec2Array`, `popAABB`, `popAABB`, `popMat22`, `popMat22`, `popMat33`, `popRot`, `popVec2`, `popVec2`, `popVec3`, `popVec3`, `pushAABB`, `pushMat22`, `pushMat33`, `pushRot`, `pushVec2`, `pushVec3`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 29 declarations carry 25 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 25 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — Libs_XUI2D/src/org/jbox2d/pooling/IWorldPool.java:42
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Where the width is an overload set rather than separate responsibilities, collapse the overloads instead — segregating those relieves no caller.
Other · Code Health — Unreviewed-generation residue in this repository's Java: methods whose whole body only throws a "not implemented" or bare unsupported-operation exception, or returns a default value (or nothing) under a TODO/FIXME marker, and placeholder text (lorem ipsum, changeme/replace_me…) left in strings of non-test, non-generated code. Scored as a quality signature, never as a claim about authorship.
Method: Roslyn syntax scan: NotImplementedException throws and placeholder string literals in non-test, non-generated shipped code. Deterministic, code-shape signature.
`check` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:349
`getFirstChild` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMAttrImpl.java:175
`getLastChild` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMAttrImpl.java:184
`getOwnerDocument` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMAttrImpl.java:219
`getOwnerElement` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMAttrImpl.java:283
`getSchemaTypeInfo` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. (×2) — Libs_JTidy/src/org/w3c/tidy/DOMAttrImpl.java:292, Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:406
`getElementById` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:307
`getDocumentURI` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:325
`getDomConfig` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:334
`getInputEncoding` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:343
`getXmlEncoding` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:361
`getXmlStandalone` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:370
`normalizeDocument` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:390
`setDocumentURI` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:409
`setStrictErrorChecking` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:418
`setXmlStandalone` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:427
`setXmlVersion` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:436
`getEntities` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentTypeImpl.java:113
`getNotations` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentTypeImpl.java:122
`getPublicId` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentTypeImpl.java:131
`getSystemId` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentTypeImpl.java:140
`getInternalSubset` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMDocumentTypeImpl.java:149
`normalize` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:323
`hasAttribute` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:388
`hasAttributeNS` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:397
`getBaseURI` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:594
`getFeature` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:603
`getTextContent` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:612
`getUserData` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:621
`isEqualNode` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:638
`isSameNode` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:647
`setUserData` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:681
`getTarget` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMProcessingInstructionImpl.java:90
`getWholeText` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMTextImpl.java:108
`isElementContentWhitespace` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_JTidy/src/org/w3c/tidy/DOMTextImpl.java:117
`getPart` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:321
`getParts` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:327
`getPathInfo` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:333
`getPathTranslated` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it. — Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:339
What to do
Finish or delete the methods that still throw "not implemented" or return a placeholder under a TODO, and replace placeholder text before shipping.
Other · Code Health — Unfinished work detected by code SHAPE, not keywords, in this repository's Java: methods that only throw a "not implemented" exception, methods that take inputs and return a constant or do nothing, dead `if (false)` branches, and skeleton classes most of whose methods are holes.
Method: Roslyn syntax scan: incompleteness by code shape (constant-returning methods, async-never-await, #if false branches, guards that return what the code already falls through to, tests an earlier guard already decided, comparisons against NaN, skeleton types), not keyword-gated. Deterministic, code-shape heuristic.
Maturity · Maturity — Whether the repository and its projects have a README, and whether it is substantive.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
The root README is 40 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, in the README and in the repository documents it links, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise — or with no heading at all — is not seen and this row may understate what the document covers. — README.md:1
What to do
Expand the README with getting-started, architecture overview and a project map.
Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
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 numbered `NNNN-title` documents in any markup this check reads, 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.
No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
What to do
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.
Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.
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.
Do you agree with this assessment?
P2 · Observability5.5 / 10Adequate✓ Tool-verified
Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.
Only 1/2 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`.
What to do
Extend structured logging to the remaining runnable modules so everything you run is diagnosable in production.
Add a health-check endpoint (Spring Boot Actuator's /actuator/health, or a /health route) so orchestrators and load balancers can probe liveness/readiness.
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 was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
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.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.
Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.
Other · Security — Only what this repository's own non-C# files could be read for was assessed — markup this repository SHIPS is scored for third-party script integrity whether or not the repository serves it itself, since a page handed to a consumer runs in that consumer’s origin. Nothing else in this dimension was assessed: the transport, cookie, input-validation and crypto controls are read from a source model that was not loaded for this repository’s language, so their absence here is not a finding about this repository.
Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.
`http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session. 8 such include(s) across the repository's markup. — REDACTED:44
What to do
Pin third-party scripts and verify them: name an exact version in the URL and add an `integrity="sha384-…"` hash alongside `crossorigin="anonymous"` (both are required — an integrity hash on a cross-origin script without `crossorigin` is not evaluated, it blocks the script). Where the vendor ships a continuously-updated loader and publishes no stable hash (tag managers, analytics, chat widgets), Subresource Integrity is not available: constrain it instead with a `Content-Security-Policy` that names the exact origins allowed to execute, and drop the script from the pages that do not need it. Where the page is shipped inside a package that others host, prefer vendoring the asset and serving it from the app’s own origin, so no consumer inherits a third-party dependency they did not choose.
Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.
Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.
`s == null` can never be true where it stands: control only reaches it when `s != null` (line 114). The conditional arm it guards never runs — whatever it was meant to handle is silently handled elsewhere or not at all. Remove it, or fix the test it repeats or the guard that decides it. — jCore/src/anywheresoftware/b4a/objects/streams/File.java:115
`"RESIZE".equals(EVENT_TYPE)` can never be true where it stands: control only reaches it when `EVENT_TYPE != "RESIZE"` (line 171). The branch it guards never runs — whatever it was meant to handle is silently handled elsewhere or not at all. Remove it, or fix the test it repeats or the guard that decides it. — Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:180
`DEBUG_SOLVER` can never be true where it stands: it is decided by constants. The branch it guards never runs — whatever it was meant to handle is silently handled elsewhere or not at all. Remove it, or fix the test it repeats or the guard that decides it. (×3) — Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:562, Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:627, Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:687
What to do
Each finding names the span that makes the branch dead and the span it is dead because of. Confirm from the two, then delete the dead arm or fix the predicate that was meant to be reachable.
Do you agree with this assessment?
X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.
Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.
Other · Security — Whether a hand-rolled public/private IP check can be walked past — a method that unwraps IPv4-mapped IPv6 but returns the opposite verdict for the same host written as IPv4-compatible, 6to4 or NAT64.
Method: Roslyn syntax + semantics: methods that unwrap IPv4-mapped IPv6 and hand-roll IPv4 range carve-outs, checked for whether the IPv6 branch also accounts for the IPv4-compatible, 6to4 and NAT64 embeddings. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X15 · Unvalidated length from an untrusted reader10.0 / 10Exemplary○ Nothing flagged
Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.
Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X17 · Uncapped recursion over a caller-supplied document1.8 / 10Critical✓ Tool-verified
Other · Security — Whether a walk that recurses through a JSON/XML tree handed in by its caller bounds how deep it will go — an uncapped walk lets the document's nesting choose the stack depth, and the resulting StackOverflowException cannot be caught.
Method: Roslyn syntax + semantics: methods that take a JSON/XML document node and call themselves with a child of it, reachable from an externally-callable member of the same type that accepts a document, checked for any depth parameter, descent counter or threaded arithmetic anywhere in the walk. On a repository with no .NET source it reads TypeScript off the engine’s own token stream (test, vendored, generated and minified paths and `.d.ts` not) with the same rule: a function or method with a parameter typed as a document value — `unknown`, `any`, `object`, `Record<string, unknown|any>`, a JSON alias (`JsonValue`, `JSONObject`, …) or a DOM node global the file does not rebind — that calls itself (bare, or through `this` for a method, or hands itself to a call over the value as in `value.map(walk)`) with something it took out of that value and never through an ancestor accessor such as `closest()` or `parentElement`, that is exported or reached from an exported function (a public method of the same exported class) taking such a value, and that names no depth, level, nesting, recursion, remaining or budget anywhere and threads no `+`/`-` arithmetic through a self-call. Plain JavaScript is not read: with no annotation nothing tells a parsed document from a tree the code built itself. Deterministic, provable per finding. Advisory.
`is_serializable` is public and takes `obj: Any` from its caller, and it calls itself at line 65 (`self.is_serializable`) with a piece of `obj` (and at line 70, line 72) — and nowhere in `is_serializable` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `is_serializable` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — PyBridge/b4x_bridge/b4x_serializator.py:65
`unwrap_dict` is public and takes `_dict: dict` from its caller, and it calls itself at line 101 (`self.unwrap_dict`) with a piece of `_dict` — and nowhere in `unwrap_dict` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `unwrap_dict` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack. — PyBridge/b4x_bridge/bridge.py:101
`loadLayout` is not private, takes a value from its caller (line 62) and hands it on to `loadLayoutHeader`, which calls itself at line 227 with a piece of `props` — and nowhere in the walk is a depth or nesting counter compared with a bound, nor is the parser that builds the document given a nesting limit in this file. The walk therefore spends one stack frame (more through a lambda or a stream) per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes; javac turns no recursive call into a loop. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25). org.json, the W3C DOM, dom4j and StAX set no nesting limit of their own, Jackson before 2.15 none and 2.15+ 1,000 — on a cold JVM past the point the walk fails — and a `Map<String, Object>` tree is as deep as whatever built it. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (Exception e)` around the call does not stop it, and the request or the thread dies with it. Thread a depth argument through `loadLayoutHeader` and reject the value past a fixed maximum, configure the parser's nesting limit (`StreamReadConstraints.maxNestingDepth`, SnakeYAML's `setNestingDepthLimit`), or rewrite the descent with an explicit stack. — Libs_jFX/src/anywheresoftware/b4j/objects/LayoutBuilder.java:227
`WriteObject` is not private, takes a value from its caller (line 117) and hands it on to `writeMap`, which recurses at line 255 through `writeList`, `writeObject` and back with a piece of `m` (and at line 256, line 269) — and nowhere in the walk is a depth or nesting counter compared with a bound, nor is the parser that builds the document given a nesting limit in this file. The walk therefore spends one stack frame (more through a lambda or a stream) per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes; javac turns no recursive call into a loop. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25). org.json, the W3C DOM, dom4j and StAX set no nesting limit of their own, Jackson before 2.15 none and 2.15+ 1,000 — on a cold JVM past the point the walk fails — and a `Map<String, Object>` tree is as deep as whatever built it. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (Exception e)` around the call does not stop it, and the request or the thread dies with it. Thread a depth argument through `writeMap` and reject the value past a fixed maximum, configure the parser's nesting limit (`StreamReadConstraints.maxNestingDepth`, SnakeYAML's `setNestingDepthLimit`), or rewrite the descent with an explicit stack. — Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/B4XSerializator.java:255
`getDocumentId` is not private, takes a value from its caller (line 98) and hands it on to `writeIterable`, which recurses at line 196 through `writeValue` and back with a piece of `list` — and nowhere in the walk is a depth or nesting counter compared with a bound, nor is the parser that builds the document given a nesting limit in this file. The walk therefore spends one stack frame (more through a lambda or a stream) per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes; javac turns no recursive call into a loop. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25). org.json, the W3C DOM, dom4j and StAX set no nesting limit of their own, Jackson before 2.15 none and 2.15+ 1,000 — on a cold JVM past the point the walk fails — and a `Map<String, Object>` tree is as deep as whatever built it. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (Exception e)` around the call does not stop it, and the request or the thread dies with it. Thread a depth argument through `writeIterable` and reject the value past a fixed maximum, configure the parser's nesting limit (`StreamReadConstraints.maxNestingDepth`, SnakeYAML's `setNestingDepthLimit`), or rewrite the descent with an explicit stack. — Libs_MongoDB/src/anywheresoftware/mongo/MapCodec.java:196
What to do
Each finding names the externally-callable member that accepts the document and the self-call that descends, and states that no depth parameter or counter exists anywhere in the walk. Confirm from the two, then thread a depth argument through the walk and reject documents past a fixed maximum, or rewrite it with an explicit stack.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
`ds` is a `new DatagramSocket(…)`, which holds something that has to be given back, and it is created here (line 37). Every use of it in this block calls a member through it — it is never returned, never stored, never handed to anything else, no view of it is handed on, it is not captured by a lambda or an anonymous class, and it is never released — so this block both creates the value and is the last thing that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it. Declare it in a try-with-resources (`try (DatagramSocket ds = …)`), which releases it on every path including a throw, or call `ds.close()` in a `finally`. — jCore/src/anywheresoftware/b4a/BridgeLog.java:37
What to do
Each finding names the value and the span that decides who owns it — the `new` that created it, or the constructor parameter that handed it over. Confirm ownership from that span, then make the disposal match it: release what this type created, leave what it was injected with to whoever created THAT, and drop a finalizer whose type holds nothing unmanaged to release.
Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.
Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether an argument guard throws the exception its own condition describes — a guard that rejects a value for being EMPTY and reports it as `NullPointerException` (Java, Kotlin, Scala), `ArgumentError.notNull` (Dart) or `ArgumentNullException` (F#'s `nullArg`) tells the caller a parameter was null when it provably was not.
Method: Roslyn syntax: `throw new ArgumentNullException(nameof(p))` statements (or a repository exception type deriving from it) controlled by an `if` — directly or through the `using`, `lock` or `try` that wraps the throw — whose condition is read for a test that is true of a NON-null `p` — an emptiness test that dereferences it (`p.Count == 0`, `!p.Any()`) or a BCL predicate documented true of the empty value (`string.IsNullOrEmpty(p)`); in the `else` branch, for a conjunct of the admitting condition that is FALSE of a non-null `p`. Range guards are read for bounds that leave nothing and for a `p > C.Count` bound whose index then reaches `C[p]`, `C.RemoveAt(p)` or a method of the same type that indexes with it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether the work a diagnostic log line costs is paid only when that line is wanted — C# evaluates a call's arguments BEFORE the call, so a trace/debug message joined or projected out of a collection is built in full on every pass, and then discarded by a sink the shipped configuration leaves switched off.
Method: Roslyn syntax: log calls at a diagnostic level (a `Log`-prefixed method naming Trace/Debug/Verbose, or a bare `Debug`/`Trace`/`Verbose` on a receiver named for a logger), whose argument list is read for a call whose cost scales with a sequence — a LINQ operator, a materialisation, `string.Join`, a serializer — with no enclosing level check or conditional-compilation region. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `debug`/`trace`/`verbose` call on a receiver named for a logger, or a `log`-prefixed method naming the level, whose argument calls an array operator (`map`/`filter`/`reduce`/`sort`/…), `Array.from`, `Object.keys/values/entries`, `JSON.stringify`/`util.inspect` over anything but a literal, or an array `join` — outside any arrow or function passed as an argument, which the logger calls only when the level is on — with no enclosing `if`, `&&` or `?:` whose condition names a level, a level string, or the `NODE_ENV`/`__DEV__`/`DEV` build switch. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X24 · Document value interpolated into markup unescaped2.7 / 10Weak✓ Tool-verified
Other · Security — Whether text read out of the document being converted is escaped before it is written into generated markup — a value the document's author chose, interpolated into an attribute the surrounding literal delimits, can close that attribute and open another.
Method: Roslyn semantic model over the whole compilation: a string-typed `Value`/`InnerText`/`InnerXml`/`Text` member declared inside `DocumentFormat.OpenXml` or `System.Xml` is a taint SOURCE, propagated through assignments, returns, arguments, tuple elements and string composition to its transitive closure, then read at interpolated-string holes that sit in a markup position the surrounding literal itself delimits. Escaper/encoder calls and enclosing validator conditions cut the flow. Flow- and container-insensitive by construction. A second arm needs no provenance at all and reports a type that CONTRADICTS ITSELF — the same expression escaped at one delimited markup hole and interpolated raw at another hole in the same markup position of the same type, which the type's own escaping proves is a defect without knowing where the value came from. On a repository with no .NET source it reads JavaScript/TypeScript off the token stream with the same rule: a DOM read of raw document text (`getAttribute`, `textContent`, `innerText`, `nodeValue`) is the source, propagated through local bindings and string composition, and judged at template-literal and concatenation holes in the same two delimited markup positions; escapers and validating conditions cut it, and documentation-site, test, vendored and minified scripts are not read. Deterministic, provable per finding. Advisory.
`this.sums_.text` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — Libs_GoogleMaps/src/html/clustered/js/markerclusterer.js:1071
`sums.text` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup. — Libs_GoogleMaps/src/html/clustered/js/markerclusterer.js:1185
What to do
Each finding names the expression, the attribute it lands in and the line. Confirm the value's origin from the read this analyzer traced, then escape it at the sink or validate it against the shape the attribute accepts before interpolating.
Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.
Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.
Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether an enhanced `for` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is iterating invalidates the fail-fast iterator it is holding, so the next `next()` throws `ConcurrentModificationException` and the remaining elements are never seen. Whether a `for` loop leaves the `dict`, `set` or `deque` it is walking alone — CPython's iterators over those check that the collection has not changed size since the loop began, so a body that removes from (or empties) the very collection the loop is walking makes the next step raise `RuntimeError: dictionary changed size during iteration` and the remaining items are never seen.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.
Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×29) — jCore/src/anywheresoftware/b4a/keywords/Common.java:635, jCore/src/anywheresoftware/b4a/keywords/Common.java:644, Libs_jGauges/src/eu/hansolo/medusa/Fonts.java:79, …
`catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter. (×8) — jCore/src/anywheresoftware/b4a/keywords/Common.java:844, Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/MessageCatalog.java:31, Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/MessageCatalog.java:37, …
What to do
Swallowed exception (empty catch)
Do you agree with this assessment?
X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.
Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.
Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `package.json` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.
`error` at line 217 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — Libs_MqttBroker2/src/io/moquette/broker/Server.java:217
`warn` at line 56 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — Libs_MqttBroker2/src/io/moquette/broker/security/ACLFileParser.java:56
`warn` at line 66 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — Libs_MqttBroker2/src/io/moquette/broker/security/ACLFileParser.java:66
`error` at line 71 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — Libs_MqttBroker2/src/io/moquette/broker/security/DBAuthenticator.java:71
`info` at line 59 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — Libs_MqttBroker2/src/io/moquette/broker/security/ResourceAuthenticator.java:59
`warn` at line 64 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — Libs_MqttBroker2/src/io/moquette/broker/security/ResourceAuthenticator.java:64
`warn` at line 69 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — Libs_MqttBroker2/src/io/moquette/broker/security/ResourceAuthenticator.java:69
`warn` at line 71 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — Libs_MqttBroker2/src/io/moquette/broker/security/ResourceAuthenticator.java:71
`warn` at line 51 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text. — Libs_MqttBroker2/src/io/moquette/broker/config/ConfigurationParser.java:51
Other · Code Health — Whether Java packages are null-marked and not undermined by heavy nullness suppression — a package under `@NullMarked` (or `@NonNullApi`, `@ParametersAreNonnullByDefault`, `@NonNullByDefault`, or a NullAway/Checker Framework configuration naming it) makes an unannotated reference exclude null, and `@SuppressWarnings("NullAway")`, `("nullness")`, `("null")` and `castToNonNull(…)` are what silence it.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
0/99 of this repository's Java package directories are under a non-null default: a `package-info.java` declaring `@NullMarked` (JSpecify) or `@NonNullApi`, `@ParametersAreNonnullByDefault`, `@NonNullByDefault`, `@DefaultQualifier(NonNull.class)`; a `module-info.java` declaring `@NullMarked`; every type in it `@NullMarked`; or a build that runs NullAway with the package in `AnnotatedPackages`, or the Checker Framework's `NullnessChecker`. Elsewhere every reference admits null and no checker warns on the dereference that throws a `NullPointerException`.
What to do
Declare the default where Java declares it: `@NullMarked` (org.jspecify.annotations) in each package's `package-info.java`, or once in `module-info.java`, and run NullAway (Error Prone) or the Checker Framework so the declaration is enforced. Then annotate the real exceptions `@Nullable` and resolve the suppressions rather than adding to them: a `@SuppressWarnings("NullAway")` or `castToNonNull(x)` on a value the checker could show to be null is a `NullPointerException` waiting for the path that makes it true — where the value genuinely cannot be null, say something the checker can see instead (a null check, `Objects.requireNonNull`, a non-null field initialised in the constructor).
Do you agree with this assessment?
WCAG coverage — what static analysis assessed
Statically assessed 10 of 55 WCAG 2.2 Level A/AA success criteria (18%; ≈20% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 45 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).
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.
Unscored — 2 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
X10 Duplicated predicate — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 3 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 6 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
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.
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
Not included — 59 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 image/media element found in the parsed markup — AC1 not applicable here.
AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
AC5 ARIA correctness — No ARIA usage found in the parsed markup — AC5 not applicable here.
AX1 Captive dependencies — Not applicable: this repository's Java imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's JavaScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's Python imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Java code is a Spring, JSR-330 or CDI singleton bean. No function in this Python code is served by a threaded web framework (a Flask, Bottle or FastAPI route, a Django or Pyramid view), so no module is shared between request threads. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
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 commits no project file of a kind this check models. This is a gap in the analyzer, not a finding about this repository
AX4 Dependency direction — not applicable to a transaction-script/CRUD architecture (the inward-dependency rule is for layered/clean styles)
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 commits no project file of a kind this check models. This is a gap in the analyzer, not a finding about this repository
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
AXB1 Runtime evidence locked — no reproducible boot — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
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.
D10 Test Quality — ~87 lines of test source are present (.java) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
D11 Test Reliability — Test reliability not included — no .java test runner
D12 Dependency Hygiene — Dependency hygiene not measured — no supported dependency manifest was read
D14 License Compliance — No dependency manifest found — no declared dependency closure to grade for licences
D16 Bus Factor — too few commits for a meaningful bus factor
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.
D19 Documentation Quality — No runnable or published unit to look for an example in, and no multi-project root README to look for a map in; the other documentation kinds are withheld (see the gaps), so documentation quality is not applicable here.
D20 ADR Quality — Repository kind not determined
D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. 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 — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only; comments in this repository's .java, .py source were not judged.
D25 ADR Conformance — no ADRs to check
D26 Project Cohesion — D26 could not read how the parts of this repository's one build unit reference each other, so its cohesion was not measured. Not scored: this is a gap in the analyzer, 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 Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet).
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
D34 Knowledge Freshness — too few commits to judge knowledge freshness
D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); 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.
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.
D43 Malicious Dependencies — 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 Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet).
D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
D5 Coupling — D5 reads a .NET project-reference graph only — this repository's production source is .java, which was left unread. Not scored: this is a gap in the analyzer, not a verdict 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
D8 Code Coverage — Coverage not included — suite not readable by the collector
DM1 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 29 value object(s); 2 domain event(s); its domain events are published by services or handlers — no domain entity raises one
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
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 lens looks for
M4 Documentation accuracy — Not applicable: the 1 current-state document(s) make no claim of a kind M4 checks.
P10 Library API & versioning — 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
P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JVM, JavaScript/TypeScript, Python source, so there is no service whose uptime a failing dependency could take down
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for `@Benchmark` in a Java, Kotlin or Scala file importing JMH or kotlinx-benchmark, Jetpack Benchmark's `measureRepeated` in a file importing androidx.benchmark, or JMH/kotlinx-benchmark/androidx.benchmark in a pom.xml, Gradle or sbt build, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
X1 Async correctness — X1 reached only 1% of this repository's production lines — java (180,193 lines), vba (3,074 lines) was left unread. Not scored: a score over a minority of the product would be published as the whole of it.
X2 Cancellation propagation — no C# was loaded; this repository's Java and Python were read, and no request in it can be cancelled by a caller — a Java request off Android takes no token: it is cancelled through the handle it returns (Future.cancel, Call.cancel, a Disposable), ambiently (io.grpc.Context) or by interrupting its thread, not through a parameter; a Python request takes no token: asyncio cancels the task and trio or anyio the scope that made it, from outside the call, and requests, httpx, aiohttp and gRPC take a timeout, not a cancellation
X21 Side-effecting pattern guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
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.
<html> without a lang REDACTED:17— The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
<html> without a lang Libs_GoogleMaps/src/html/clustered/maps_clustered.html:2— The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
<html> without a lang REDACTED:2— The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
<html> without a lang Libs_GoogleMaps/src/html/maps-debug.html:2— The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
<html> without a lang Libs_GoogleMaps/src/html/maps.html:2— The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
<html> without a lang REDACTED:2— The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
<html> without a lang REDACTED:2— The page declares no language, so assistive tech can't pick the right pronunciation. Add lang (e.g. lang="en").
Viewport restricts zoom Libs_GoogleMaps/src/html/clustered/maps_clustered.html:6— user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
Viewport restricts zoom REDACTED:6— user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
Viewport restricts zoom Libs_GoogleMaps/src/html/maps.html:6— user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
Viewport restricts zoom REDACTED:4— user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
Viewport restricts zoom REDACTED:5— user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta.
AC2 · Forms & labels· <textarea> without a programmatic label · ×1
<textarea> without a programmatic label REDACTED:50— This control has no associated label. Add a <label for> / wrapping <label> / aria-label / aria-labelledby so assistive tech can name it.
MethodTooLong: GaugeBuilder.build Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java:825— MethodTooLong — build runs 568 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 468 over it, 5.68× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Helper.drawRadialTickMarks Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:461— MethodTooLong — drawRadialTickMarks runs 534 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 434 over it, 5.34× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: QuarterSkin.drawTickMarks Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:429— MethodTooLong — drawTickMarks runs 480 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 380 over it, 4.80× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Lexer.getToken Libs_JTidy/src/org/w3c/tidy/Lexer.java:1912— MethodTooLong — getToken runs 478 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 378 over it, 4.78× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ClockBuilder.build Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java:423— MethodTooLong — build runs 291 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 191 over it, 2.91× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: EPCollider.collide Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1004— MethodTooLong — collide runs 284 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 184 over it, 2.84× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ParseInline.parse Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1066— MethodTooLong — parse runs 257 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 157 over it, 2.57× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Gauge.presetGaugeParameters Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:5568— MethodTooLong — presetGaugeParameters runs 247 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 147 over it, 2.47× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: PPrint.printChar Libs_JTidy/src/org/w3c/tidy/PPrint.java:539— MethodTooLong — printChar runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.31× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ParseBlock.parse Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2012— MethodTooLong — parse runs 220 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 120 over it, 2.20× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: TidyUtils.isXMLLetter Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:272— MethodTooLong — isXMLLetter runs 208 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 108 over it, 2.08× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MorphingClockSkin.updateArray Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:240— MethodTooLong — updateArray runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Gauge.init Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:568— MethodTooLong — init runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ContactSolver.solveVelocityConstraints Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:336— MethodTooLong — solveVelocityConstraints runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Report.warning Libs_JTidy/src/org/w3c/tidy/Report.java:1215— MethodTooLong — warning runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MorphingClockSkin.toZero Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:489— MethodTooLong — toZero runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MorphingClockSkin.toOne Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:665— MethodTooLong — toOne runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MorphingClockSkin.toTwo Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:841— MethodTooLong — toTwo runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MorphingClockSkin.toThree Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:1017— MethodTooLong — toThree runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MorphingClockSkin.toFour Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:1193— MethodTooLong — toFour runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MorphingClockSkin.toFive Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:1369— MethodTooLong — toFive runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MorphingClockSkin.toSix Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:1545— MethodTooLong — toSix runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MorphingClockSkin.toSeven Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:1721— MethodTooLong — toSeven runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MorphingClockSkin.toEight Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:1897— MethodTooLong — toEight runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: MorphingClockSkin.toNine Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:2073— MethodTooLong — toNine runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
Duplicated block (8 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:45— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:45-52 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:106-114 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:45` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:55— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:55-62 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:53-60 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:65— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:65-72 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:63-70 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 2) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1376— Libs_JTidy/src/org/w3c/tidy/Lexer.java:1376-1383 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:1657-1664 — 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 (8 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1526— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1526-1533 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3270-3278 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1526` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (8 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1588— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1588-1595 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2475-2482 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1588` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (8 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2203— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2203-2212 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2219-2226 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2203` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:427— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:427-434 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:523-530 — 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 (8 lines × 2) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1174— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1174-1181 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1240-1247 — 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 (8 lines × 2) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1209— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1209-1216 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1277-1285 — 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 `Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1209` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1216` calls `MqttSecurityException` and `Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1285` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 2) Libs_MqttBroker2/src/io/moquette/broker/Session.java:230— Libs_MqttBroker2/src/io/moquette/broker/Session.java:230-237 | Libs_MqttBroker2/src/io/moquette/broker/Session.java:247-254 — 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 `Libs_MqttBroker2/src/io/moquette/broker/Session.java:230` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_MqttBroker2/src/io/moquette/broker/Session.java:256` calls `drainQueueToConnection` and `Libs_MqttBroker2/src/io/moquette/broker/Session.java:240` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 2) Libs_StringUtils/src/anywheresoftware/b4a/objects/StringUtils.java:154— Libs_StringUtils/src/anywheresoftware/b4a/objects/StringUtils.java:154-161 | Libs_StringUtils/src/anywheresoftware/b4a/objects/StringUtils.java:251-258 — 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. 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) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1059— Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1059-1066 | Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1076-1083 — 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 `Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1059` 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) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:535— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:535-542 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:547-554 — 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 `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:535` 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) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:729— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:729-736 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:779-786 — 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 `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:729` 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:534— Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:534-541 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:265-272 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:345— Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:345-352 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:482-489 — 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 (8 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:391— Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:391-398 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:425-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 `Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:391` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jFX/src/anywheresoftware/b4j/objects/ChoiceBoxWrapper.java:49— Libs_jFX/src/anywheresoftware/b4j/objects/ChoiceBoxWrapper.java:49-56 | Libs_jFX/src/anywheresoftware/b4j/objects/ListViewWrapper.java:53-60 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jFX/src/anywheresoftware/b4j/objects/ChoiceBoxWrapper.java:49` 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) Libs_jFX/src/anywheresoftware/b4j/objects/PaneWrapper.java:423— Libs_jFX/src/anywheresoftware/b4j/objects/PaneWrapper.java:423-430 | Libs_jXUI/src/anywheresoftware/b4a/objects/B4XViewWrapper.java:1070-1077 — 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 `Libs_jFX/src/anywheresoftware/b4j/objects/PaneWrapper.java:423` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jFX/src/anywheresoftware/b4j/objects/TableViewWrapper.java:240— Libs_jFX/src/anywheresoftware/b4j/objects/TableViewWrapper.java:240-247 | Libs_jFX/src/anywheresoftware/b4j/objects/TreeTableViewWrapper.java:188-195 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java:832— Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java:832-839 | Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java:841-848 — 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. 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) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:324— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:324-331 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:275-282 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:491— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:491-498 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1174-1181 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:491` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:947— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:947-954 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1759-1766 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java` as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 717 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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.
TodoComment Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1129— //TODO: Add an indicator to the section like -1 or similar — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1168— //TODO: Add an indicator to the area like -1 or similar — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1392— // TODO: split the group — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1988— // TODO Auto-generated constructor stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_XUI2D/src/org/jbox2d/dynamics/Fixture.java:370— // TODO pool shapes — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_XUI2D/src/org/jbox2d/dynamics/Fixture.java:371— // TODO pool fixtures — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_XUI2D/src/org/jbox2d/dynamics/World.java:343— // TODO djm pooling — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_XUI2D/src/org/jbox2d/dynamics/World.java:408— // TODO djm recycle fixtures (here or in that destroy method) — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_XUI2D/src/org/jbox2d/dynamics/World.java:429— // TODO djm recycle body — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_XUI2D/src/org/jbox2d/dynamics/World.java:1060— // TODO djm find a good initial stack number; — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_XUI2D/src/org/jbox2d/dynamics/World.java:1530— // TODO djm write after writing joints — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Shell/src/org/apache/commons/exec/environment/DefaultProcessingEnvironment.java:173— // // TODO: I have no idea how to get it, someone must fix it — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:322— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:328— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:334— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:340— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:351— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:367— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:373— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:389— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:395— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:401— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:407— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:413— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TodoComment Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:419— // TODO Auto-generated method stub — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
TooManyMethods: Gauge Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:115— TooManyMethods — 434 methods. The bar is 30 methods; this is 404 over it, 14.47× the bar. 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.
TooManyMethods: Clock Libs_jGauges/src/eu/hansolo/medusa/Clock.java:77— TooManyMethods — 208 methods. The bar is 30 methods; this is 178 over it, 6.93× the bar. 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.
TooManyMethods: Tidy Libs_JTidy/src/org/w3c/tidy/Tidy.java:79— TooManyMethods — 157 methods. The bar is 30 methods; this is 127 over it, 5.23× the bar. 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.
TooManyMethods: GaugeBuilder Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java:60— TooManyMethods — 156 methods. The bar is 30 methods; this is 126 over it, 5.20× the bar. 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.
TooManyMethods: FTPClient Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:279— TooManyMethods — 116 methods. The bar is 30 methods; this is 86 over it, 3.87× the bar. 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.
TooManyMethods: World Libs_XUI2D/src/org/jbox2d/dynamics/World.java:85— TooManyMethods — 99 methods. The bar is 30 methods; this is 69 over it, 3.30× the bar. 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.
TooManyMethods: Common jCore/src/anywheresoftware/b4a/keywords/Common.java:62— TooManyMethods — 97 methods. The bar is 30 methods; this is 67 over it, 3.23× the bar. 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.
TooManyMethods: B4XViewWrapper Libs_jXUI/src/anywheresoftware/b4a/objects/B4XViewWrapper.java:107— TooManyMethods — 78 methods. The bar is 30 methods; this is 48 over it, 2.60× the bar. 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.
TooManyMethods: ClockBuilder Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java:48— TooManyMethods — 77 methods. The bar is 30 methods; this is 47 over it, 2.57× the bar. 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.
TooManyMethods: FTP Libs_Net/src/org/apache/commons/net/ftp/FTP.java:97— TooManyMethods — 73 methods. The bar is 30 methods; this is 43 over it, 2.43× the bar. 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.
TooManyMethods: StubServletRequest Libs_Server/src/anywheresoftware/b4j/object/StubServletRequest.java:36— TooManyMethods — 71 methods. The bar is 30 methods; this is 41 over it, 2.37× the bar. 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.
TooManyMethods: ParticleSystem Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:43— TooManyMethods — 71 methods. The bar is 30 methods; this is 41 over it, 2.37× the bar. 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.
TooManyMethods: Body Libs_XUI2D/src/org/jbox2d/dynamics/Body.java:43— TooManyMethods — 67 methods. The bar is 30 methods; this is 37 over it, 2.23× the bar. 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.
TooManyMethods: Mat22 Libs_XUI2D/src/org/jbox2d/common/Mat22.java:31— TooManyMethods — 54 methods. The bar is 30 methods; this is 24 over it, 1.80× the bar. 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.
TooManyMethods: NodeWrapper Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:87— TooManyMethods — 54 methods. The bar is 30 methods; this is 24 over it, 1.80× the bar. 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.
TooManyMethods: Clean Libs_JTidy/src/org/w3c/tidy/Clean.java:85— TooManyMethods — 52 methods. The bar is 30 methods; this is 22 over it, 1.73× the bar. 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.
TooManyMethods: Marker Libs_jGauges/src/eu/hansolo/medusa/Marker.java:39— TooManyMethods — 52 methods. The bar is 30 methods; this is 22 over it, 1.73× the bar. 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.
TooManyMethods: Lexer Libs_JTidy/src/org/w3c/tidy/Lexer.java:77— TooManyMethods — 50 methods. The bar is 30 methods; this is 20 over it, 1.67× the bar. 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.
TooManyMethods: Section Libs_jGauges/src/eu/hansolo/medusa/Section.java:39— TooManyMethods — 48 methods. The bar is 30 methods; this is 18 over it, 1.60× the bar. 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.
TooManyMethods: BA jCore/src/anywheresoftware/b4a/BA.java:50— TooManyMethods — 48 methods. The bar is 30 methods; this is 18 over it, 1.60× the bar. 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.
TooManyMethods: SocketClient Libs_Net/src/org/apache/commons/net/SocketClient.java:60— TooManyMethods — 47 methods. The bar is 30 methods; this is 17 over it, 1.57× the bar. 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.
TooManyMethods: JSONObject Libs_Json/src/org/json/JSONObject.java:78— TooManyMethods — 46 methods. The bar is 30 methods; this is 16 over it, 1.53× the bar. 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.
TooManyMethods: Node Libs_JTidy/src/org/w3c/tidy/Node.java:66— TooManyMethods — 44 methods. The bar is 30 methods; this is 14 over it, 1.47× the bar. 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.
TooManyMethods: JSONArray Libs_Json/src/org/json/JSONArray.java:47— TooManyMethods — 44 methods. The bar is 30 methods; this is 14 over it, 1.47× the bar. 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.
TooManyMethods: Helper Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:70— TooManyMethods — 44 methods. The bar is 30 methods; this is 14 over it, 1.47× the bar. 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 (5 lines × 2) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1202— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1202-1206 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1269-1274 — 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 `Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1202` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:704— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:704-708 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:713-717 — 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 (5 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:754— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:754-758 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:763-767 — 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 (5 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:211— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:211-216 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:127-131 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/Needle.java:103— Libs_jGauges/src/eu/hansolo/medusa/Needle.java:103-107 | Libs_jGauges/src/eu/hansolo/medusa/Needle.java:145-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. 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 (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:368— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:368-372 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:599-603 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:988— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:988-992 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:318-322 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:988` 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 (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:909— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:909-913 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:908-912 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:188— Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:188-192 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:363-367 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:188` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:476— Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:476-480 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:547-551 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:476` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:637— Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:637-641 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:970-974 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:637` 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 (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:618— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:618-622 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:676-680 — 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 (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:305— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:305-309 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:272-276 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java: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 (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:312— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:312-316 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:279-283 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:312` 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 (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1235— Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1235-1239 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1254-1259 — 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 `Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1235` 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 2) Libs_Json/src/org/json/JSONArray.java:306— Libs_Json/src/org/json/JSONArray.java:306-310 | Libs_Json/src/org/json/JSONObject.java:395-399 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. 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 (5 lines × 2) Libs_Json/src/org/json/JSONArray.java:340— Libs_Json/src/org/json/JSONArray.java:340-344 | Libs_Json/src/org/json/JSONObject.java:429-433 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. 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 (5 lines × 2) Libs_Json/src/org/json/JSONArray.java:374— Libs_Json/src/org/json/JSONArray.java:374-378 | Libs_Json/src/org/json/JSONObject.java:463-467 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. 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 (5 lines × 2) Libs_Json/src/org/json/JSONArray.java:408— Libs_Json/src/org/json/JSONArray.java:408-412 | Libs_Json/src/org/json/JSONObject.java:501-505 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. 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 (5 lines × 2) Libs_Json/src/org/json/JSONArray.java:441— Libs_Json/src/org/json/JSONArray.java:441-445 | Libs_Json/src/org/json/JSONObject.java:534-538 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. 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 (5 lines × 2) Libs_jFX/src/anywheresoftware/b4j/objects/TreeTableViewWrapper.java:334— Libs_jFX/src/anywheresoftware/b4j/objects/TreeTableViewWrapper.java:334-338 | Libs_jFX/src/anywheresoftware/b4j/objects/TreeViewWrapper.java:166-170 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jFX/src/anywheresoftware/b4j/objects/TreeTableViewWrapper.java:333` calls `SuppressWarnings` and `Libs_jFX/src/anywheresoftware/b4j/objects/TreeViewWrapper.java:162` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:158— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:158-162 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:163-167 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:196— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:196-200 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:202-206 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:144— Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:144-148 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:121-125 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (5 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:174— Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:174-178 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:144-148 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
ClassTooLong: Gauge Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:115— ClassTooLong — 3056 significant lines (blank, comment-only and punctuation-only lines excluded), 434 methods. The bar is 400 significant lines; this is 2656 over it, 7.64× the bar. 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.
ClassTooLong: MorphingClockSkin Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:47— ClassTooLong — 2115 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 1715 over it, 5.29× the bar. 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.
ClassTooLong: Lexer Libs_JTidy/src/org/w3c/tidy/Lexer.java:77— ClassTooLong — 1717 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 400 significant lines; this is 1317 over it, 4.29× the bar. 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.
ClassTooLong: ParticleSystem Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:43— ClassTooLong — 1598 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 400 significant lines; this is 1198 over it, 4.00× the bar. 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.
ClassTooLong: QuarterSkin Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:91— ClassTooLong — 1597 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 1197 over it, 3.99× the bar. 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.
ClassTooLong: ParserImpl Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:63— ClassTooLong — 1556 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 1156 over it, 3.89× the bar. 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.
ClassTooLong: Clock Libs_jGauges/src/eu/hansolo/medusa/Clock.java:77— ClassTooLong — 1349 significant lines (blank, comment-only and punctuation-only lines excluded), 208 methods. The bar is 400 significant lines; this is 949 over it, 3.37× the bar. 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.
ClassTooLong: PPrint Libs_JTidy/src/org/w3c/tidy/PPrint.java:71— ClassTooLong — 1181 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 781 over it, 2.95× the bar. 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.
ClassTooLong: GaugeBuilder Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java:60— ClassTooLong — 1032 significant lines (blank, comment-only and punctuation-only lines excluded), 156 methods. The bar is 400 significant lines; this is 632 over it, 2.58× the bar. 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.
ClassTooLong: HSkin Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:87— ClassTooLong — 963 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 563 over it, 2.41× the bar. 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.
ClassTooLong: VSkin Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:87— ClassTooLong — 958 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 558 over it, 2.40× the bar. 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.
ClassTooLong: GaugeSkin Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:87— ClassTooLong — 950 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 550 over it, 2.38× the bar. 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.
ClassTooLong: Clean Libs_JTidy/src/org/w3c/tidy/Clean.java:85— ClassTooLong — 941 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 541 over it, 2.35× the bar. 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.
ClassTooLong: Helper Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:70— ClassTooLong — 929 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 529 over it, 2.32× the bar. 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.
ClassTooLong: World Libs_XUI2D/src/org/jbox2d/dynamics/World.java:85— ClassTooLong — 899 significant lines (blank, comment-only and punctuation-only lines excluded), 99 methods. The bar is 400 significant lines; this is 499 over it, 2.25× the bar. 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.
ClassTooLong: Base64 Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:170— ClassTooLong — 879 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 479 over it, 2.20× the bar. 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.
ClassTooLong: Collision Libs_XUI2D/src/org/jbox2d/collision/Collision.java:46— ClassTooLong — 852 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 452 over it, 2.13× the bar. 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.
ClassTooLong: FTPClient Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:279— ClassTooLong — 765 significant lines (blank, comment-only and punctuation-only lines excluded), 116 methods. The bar is 400 significant lines; this is 365 over it, 1.91× the bar. 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.
ClassTooLong: Report Libs_JTidy/src/org/w3c/tidy/Report.java:74— ClassTooLong — 725 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 325 over it, 1.81× the bar. 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.
ClassTooLong: LinearSkin Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:64— ClassTooLong — 662 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 262 over it, 1.66× the bar. 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.
ClassTooLong: Tidy Libs_JTidy/src/org/w3c/tidy/Tidy.java:79— ClassTooLong — 642 significant lines (blank, comment-only and punctuation-only lines excluded), 157 methods. The bar is 400 significant lines; this is 242 over it, 1.61× the bar. 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.
ClassTooLong: NodeWrapper Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:87— ClassTooLong — 623 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 400 significant lines; this is 223 over it, 1.56× the bar. 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.
ClassTooLong: AmpSkin Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:76— ClassTooLong — 616 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 216 over it, 1.54× the bar. 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.
ClassTooLong: ModernSkin Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:66— ClassTooLong — 603 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 203 over it, 1.51× the bar. 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.
ClassTooLong: PlainAmpSkin Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:73— ClassTooLong — 580 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 180 over it, 1.45× the bar. 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 (7 lines × 2) Libs_JTidy/src/org/w3c/tidy/Lexer.java:2068— Libs_JTidy/src/org/w3c/tidy/Lexer.java:2068-2074 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2833-2839 — 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 `Libs_JTidy/src/org/w3c/tidy/Lexer.java:2068` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (7 lines × 2) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:395— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:395-401 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:585-591 — 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) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:418— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:418-424 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:433-439 — 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) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttSubscribe.java:86— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttSubscribe.java:86-92 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttUnsubscribe.java:72-78 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttSubscribe.java: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 (7 lines × 2) REDACTED:41— REDACTED:41-47 | REDACTED:62-68 — 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) Libs_XUI2D/src/org/jbox2d/collision/TimeOfImpact.java:458— Libs_XUI2D/src/org/jbox2d/collision/TimeOfImpact.java:458-465 | Libs_XUI2D/src/org/jbox2d/collision/TimeOfImpact.java:507-513 — 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 `Libs_XUI2D/src/org/jbox2d/collision/TimeOfImpact.java:458` 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) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:716— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:716-722 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:725-731 — 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) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:766— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:766-772 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:775-781 — 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) Libs_XUI2D/src/org/jbox2d/collision/shapes/ChainShape.java:197— Libs_XUI2D/src/org/jbox2d/collision/shapes/ChainShape.java:197-203 | Libs_XUI2D/src/org/jbox2d/collision/shapes/ChainShape.java:226-232 — 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 `Libs_XUI2D/src/org/jbox2d/collision/shapes/ChainShape.java: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 (7 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:853— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:853-859 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:953-959 — 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) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:275— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:275-282 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:285-291 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:283` calls `popVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:273` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:667— Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:667-673 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:316-322 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:677` calls `popVec3` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:326` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 2) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:888— Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:888-894 | Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1757-1763 — 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 `Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:888` 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) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1021— Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1021-1027 | Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1041-1047 — 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 `Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1021` 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) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1207— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1207-1213 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2019-2025 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1207` 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) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3444— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3444-3450 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3511-3517 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:142— Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:142-148 | Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:134-140 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:176— Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:176-182 | Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:153-159 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:192— Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:192-198 | Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:183-189 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:263— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:263-269 | Libs_jGauges/src/eu/hansolo/medusa/skins/RoundLcdClockSkin.java:280-286 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:263` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:221— Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:221-227 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:245-251 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 223 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:760— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:760-766 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:758-764 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:760` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:180— Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:180-186 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:164-170 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:179` calls `setPickOnBounds` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:163` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:373— Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:373-379 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:564-570 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:562` calls `getTickLabelDecimals` and `Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:371` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/WhiteSkin.java:226— Libs_jGauges/src/eu/hansolo/medusa/skins/WhiteSkin.java:226-232 | Libs_jGauges/src/eu/hansolo/medusa/skins/WhiteSkin.java:234-240 — 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.
Unfinished stub — empty body under a TODO marker Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:349— `check` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMAttrImpl.java:175— `getFirstChild` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMAttrImpl.java:184— `getLastChild` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMAttrImpl.java:219— `getOwnerDocument` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMAttrImpl.java:283— `getOwnerElement` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMAttrImpl.java:292— `getSchemaTypeInfo` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:307— `getElementById` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:325— `getDocumentURI` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:334— `getDomConfig` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:343— `getInputEncoding` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:361— `getXmlEncoding` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:370— `getXmlStandalone` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — empty body under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:390— `normalizeDocument` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it.
Unfinished stub — empty body under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:409— `setDocumentURI` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it.
Unfinished stub — empty body under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:418— `setStrictErrorChecking` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it.
Unfinished stub — empty body under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:427— `setXmlStandalone` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it.
Unfinished stub — empty body under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:436— `setXmlVersion` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentTypeImpl.java:113— `getEntities` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentTypeImpl.java:122— `getNotations` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentTypeImpl.java:131— `getPublicId` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentTypeImpl.java:140— `getSystemId` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMDocumentTypeImpl.java:149— `getInternalSubset` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — empty body under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:323— `normalize` is a shipped method whose body is empty except for a TODO/FIXME — scaffolding that was never completed. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:388— `hasAttribute` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
Unfinished stub — returns a placeholder under a TODO marker Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:397— `hasAttributeNS` is a shipped method whose whole body returns a default value under a TODO/FIXME — a placeholder standing in for the implementation. Implement it or remove it.
FileTooLong: medusa/Gauge.java Libs_jGauges/src/eu/hansolo/medusa/Gauge.java— FileTooLong — 3147 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Gauge (115-5867). The bar is 500 significant lines; this is 2647 over it, 6.29× the bar. 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: skins/MorphingClockSkin.java Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java— FileTooLong — 2141 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: MorphingClockSkin (47-2361). The bar is 500 significant lines; this is 1641 over it, 4.28× the bar. 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: tidy/Lexer.java Libs_JTidy/src/org/w3c/tidy/Lexer.java— FileTooLong — 1722 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Lexer (77-4072). The bar is 500 significant lines; this is 1222 over it, 3.44× the bar. 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: skins/QuarterSkin.java Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java— FileTooLong — 1664 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: QuarterSkin (91-1964). The bar is 500 significant lines; this is 1164 over it, 3.33× the bar. 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: particle/ParticleSystem.java Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java— FileTooLong — 1620 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ParticleSystem (43-2189). The bar is 500 significant lines; this is 1120 over it, 3.24× the bar. 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: tidy/ParserImpl.java Libs_JTidy/src/org/w3c/tidy/ParserImpl.java— FileTooLong — 1557 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ParserImpl (63-3629). The bar is 500 significant lines; this is 1057 over it, 3.11× the bar. 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: medusa/Clock.java Libs_jGauges/src/eu/hansolo/medusa/Clock.java— FileTooLong — 1402 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: Clock (77-2418). The bar is 500 significant lines; this is 902 over it, 2.80× the bar. 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: tidy/PPrint.java Libs_JTidy/src/org/w3c/tidy/PPrint.java— FileTooLong — 1186 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: PPrint (71-2798). The bar is 500 significant lines; this is 686 over it, 2.37× the bar. 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: medusa/GaugeBuilder.java Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java— FileTooLong — 1068 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: GaugeBuilder (60-1433). The bar is 500 significant lines; this is 568 over it, 2.14× the bar. 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: skins/HSkin.java Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java— FileTooLong — 1026 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: HSkin (87-1242). The bar is 500 significant lines; this is 526 over it, 2.05× the bar. 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: skins/VSkin.java Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java— FileTooLong — 1021 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: VSkin (87-1239). The bar is 500 significant lines; this is 521 over it, 2.04× the bar. 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: skins/GaugeSkin.java Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java— FileTooLong — 1013 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: GaugeSkin (87-1230). The bar is 500 significant lines; this is 513 over it, 2.03× the bar. 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: dynamics/World.java Libs_XUI2D/src/org/jbox2d/dynamics/World.java— FileTooLong — 976 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: World (85-2007). The bar is 500 significant lines; this is 476 over it, 1.95× the bar. 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: tools/Helper.java Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java— FileTooLong — 975 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: Helper (70-1260). The bar is 500 significant lines; this is 475 over it, 1.95× the bar. 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: tidy/Clean.java Libs_JTidy/src/org/w3c/tidy/Clean.java— FileTooLong — 942 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Clean (85-2408). The bar is 500 significant lines; this is 442 over it, 1.88× the bar. 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: objects/Base64.java Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java— FileTooLong — 882 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Base64 (170-2087). The bar is 500 significant lines; this is 382 over it, 1.76× the bar. 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: collision/Collision.java Libs_XUI2D/src/org/jbox2d/collision/Collision.java— FileTooLong — 865 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Collision (46-1444). The bar is 500 significant lines; this is 365 over it, 1.73× the bar. 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: ftp/FTPClient.java Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java— FileTooLong — 808 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: FTPClient (279-3409). The bar is 500 significant lines; this is 308 over it, 1.62× the bar. 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: tidy/Report.java Libs_JTidy/src/org/w3c/tidy/Report.java— FileTooLong — 733 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Report (74-1809). The bar is 500 significant lines; this is 233 over it, 1.47× the bar. 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: skins/LinearSkin.java Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java— FileTooLong — 702 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: LinearSkin (64-912). The bar is 500 significant lines; this is 202 over it, 1.40× the bar. 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: objects/NodeWrapper.java Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java— FileTooLong — 689 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: NodeWrapper (87-1074). The bar is 500 significant lines; this is 189 over it, 1.38× the bar. 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: skins/AmpSkin.java Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java— FileTooLong — 668 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: AmpSkin (76-853). The bar is 500 significant lines; this is 168 over it, 1.34× the bar. 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: tidy/Tidy.java Libs_JTidy/src/org/w3c/tidy/Tidy.java— FileTooLong — 657 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Tidy (79-2308). The bar is 500 significant lines; this is 157 over it, 1.31× the bar. 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: skins/ModernSkin.java Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java— FileTooLong — 645 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: ModernSkin (66-834). The bar is 500 significant lines; this is 145 over it, 1.29× the bar. 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: skins/PlainAmpSkin.java Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java— FileTooLong — 631 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: PlainAmpSkin (73-804). The bar is 500 significant lines; this is 131 over it, 1.26× the bar. 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.
Duplicated block (6 lines × 2) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:578— Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:578-583 | Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:602-607 — 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 `Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:578` 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) Libs_jFX/src/anywheresoftware/b4j/objects/ColorPickerWrapper.java:52— Libs_jFX/src/anywheresoftware/b4j/objects/ColorPickerWrapper.java:52-57 | Libs_jFX/src/anywheresoftware/b4j/objects/ComboBoxWrapper.java:54-59 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jFX/src/anywheresoftware/b4j/objects/ColorPickerWrapper.java:52` 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) Libs_jGauges/src/eu/hansolo/medusa/MarkerBuilder.java:113— Libs_jGauges/src/eu/hansolo/medusa/MarkerBuilder.java:113-118 | Libs_jGauges/src/eu/hansolo/medusa/SectionBuilder.java:121-126 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/MarkerBuilder.java: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. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (6 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:114— Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:114-119 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:139-144 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:231— Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:231-236 | Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:234-239 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java: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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:230` calls `getSections` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:233` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:172— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:172-177 | Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:2284-2289 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:172` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1060— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1060-1065 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1058-1063 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (6 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:458— Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:458-463 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:517-522 — 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 (6 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:219— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:219-224 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:356-361 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1119— Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1119-1124 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1158-1163 — 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 `Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1119` 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) Libs_XUI2D/src/org/jbox2d/common/Mat22.java:574— Libs_XUI2D/src/org/jbox2d/common/Mat22.java:574-579 | Libs_XUI2D/src/org/jbox2d/common/Mat33.java:279-284 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/common/Mat33.java:287` calls `equals` and `Libs_XUI2D/src/org/jbox2d/common/Mat22.java:580` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/Island.java:279— Libs_XUI2D/src/org/jbox2d/dynamics/Island.java:279-284 | Libs_XUI2D/src/org/jbox2d/dynamics/Island.java:544-549 — 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 (6 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:1064— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:1064-1069 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:1092-1097 — 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 (6 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/GearJoint.java:300— Libs_XUI2D/src/org/jbox2d/dynamics/joints/GearJoint.java:300-305 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/GearJoint.java:466-471 — 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 (6 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:256— Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:256-261 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:299-304 — 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 (6 lines × 2) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:512— Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:512-517 | Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:531-536 — 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 `Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:512` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:313— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:313-318 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:293-298 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (6 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:595— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:595-600 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:637-642 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:595` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:645` calls `getElements`, `add`, `LineTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:603` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:596— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:596-601 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:638-643 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:596` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:646` calls `getElements`, `add`, `LineTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:604` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1161— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1161-1166 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1203-1208 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1161` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1211` calls `getElements`, `add`, `LineTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1169` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:594— Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:594-599 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:636-641 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:594` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:644` calls `getElements`, `add`, `LineTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:602` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 2) Libs_MqttBroker2/src/io/moquette/broker/AutoFlushHandler.java:45— Libs_MqttBroker2/src/io/moquette/broker/AutoFlushHandler.java:45-50 | Libs_MqttBroker2/src/io/moquette/broker/InflightResender.java:78-83 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) Libs_MqttBroker2/src/io/moquette/broker/metrics/BytesMetricsHandler.java:40— Libs_MqttBroker2/src/io/moquette/broker/metrics/BytesMetricsHandler.java:40-45 | Libs_MqttBroker2/src/io/moquette/broker/metrics/MessageMetricsHandler.java:39-44 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (6 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ChainAndCircleContact.java:51— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ChainAndCircleContact.java:51-56 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ChainAndPolygonContact.java:51-56 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ChainAndCircleContact.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ChainAndPolygonContact.java` as WHOLE FILES: 85% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientState.java:324— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientState.java:324-329 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientState.java:337-342 — 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 `Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientState.java:324` 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) Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp.java:423— Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp.java:423-431 | Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp2.java:190-198 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp2.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsGeocodedWaypoint.java:51— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsGeocodedWaypoint.java:51-59 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingResult.java:59-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderRequest.java:53— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderRequest.java:53-61 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderRequest.java:68-76 — 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 `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderRequest.java:53` 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) Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:807— Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:807-815 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:841-849 — 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 `Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:807` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_JTidy/src/org/w3c/tidy/Lexer.java:619— Libs_JTidy/src/org/w3c/tidy/Lexer.java:619-627 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:261-269 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (9 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:607— Libs_JTidy/src/org/w3c/tidy/PPrint.java:607-615 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:618-626 — 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 `Libs_JTidy/src/org/w3c/tidy/PPrint.java:607` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_JTidy/src/org/w3c/tidy/PPrint.java:616` calls `addC` and `Libs_JTidy/src/org/w3c/tidy/PPrint.java:605` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2111— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2111-2119 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2309-2317 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2111` 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) Libs_JTidy/src/org/w3c/tidy/Report.java:1136— Libs_JTidy/src/org/w3c/tidy/Report.java:1136-1144 | Libs_JTidy/src/org/w3c/tidy/Report.java:1424-1436 — 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 `Libs_JTidy/src/org/w3c/tidy/Report.java:1136` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1186— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1186-1194 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1252-1260 — 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 `Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1186` 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) Libs_XUI2D/src/org/jbox2d/collision/Distance.java:548— Libs_XUI2D/src/org/jbox2d/collision/Distance.java:548-556 | Libs_XUI2D/src/org/jbox2d/collision/Distance.java:568-576 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/collision/Distance.java:586` calls `getVertexCount` and `Libs_XUI2D/src/org/jbox2d/collision/Distance.java:558` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/TimeOfImpact.java:441— Libs_XUI2D/src/org/jbox2d/collision/TimeOfImpact.java:441-449 | Libs_XUI2D/src/org/jbox2d/collision/TimeOfImpact.java:496-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 `Libs_XUI2D/src/org/jbox2d/collision/TimeOfImpact.java:441` 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) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:519— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:519-527 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:532-540 — 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 `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:519` 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) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:187— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:187-195 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:346-354 — 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 (9 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:422— Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:422-430 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:379-387 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:876— Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:876-884 | Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1085-1093 — 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 `Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:876` 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) Libs_jFX/src/anywheresoftware/b4j/objects/PaneWrapper.java:183— Libs_jFX/src/anywheresoftware/b4j/objects/PaneWrapper.java:183-191 | Libs_jFX/src/anywheresoftware/b4j/objects/PaneWrapper.java:194-202 — 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 `Libs_jFX/src/anywheresoftware/b4j/objects/PaneWrapper.java:183` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:833— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:833-841 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:871-879 — 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 `Libs_jGauges/src/eu/hansolo/medusa/Clock.java:833` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:229— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:229-237 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:229-237 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 238 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:240` calls `setLineWidth` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:240` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:442— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:442-450 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:514-522 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java` as WHOLE FILES: this scan already matched 26 separate duplicated blocks between them, totalling at least 238 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:88— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:88-96 | Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:159-167 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:88` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:168` calls `setLineWidth`, `setStroke` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:98` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:148— Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:148-156 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:138-146 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:148` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:147` calls `enableNode`, `isValueVisible` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:157` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:122— Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:122-130 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:174-182 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:347— Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:347-355 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:361-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 `Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java: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 (9 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:184— Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:184-192 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java:172-180 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:184` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:2278— Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:2278-2286 | Libs_jGauges/src/eu/hansolo/medusa/skins/TextClockSkin.java:154-162 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TextClockSkin.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:2278` 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.
Swallowed exception (empty catch) jCore/src/anywheresoftware/b4a/keywords/Common.java:635— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) jCore/src/anywheresoftware/b4a/keywords/Common.java:644— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_jGauges/src/eu/hansolo/medusa/Fonts.java:79— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_WebSocketClient/src/anywhersoftware/b4j/objects/WebSocketClientWrapper.java:91— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:706— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:707— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:708— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:709— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:948— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:949— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:950— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1309— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1310— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1311— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1401— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1402— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1441— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1473— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1534— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1587— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1616— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1644— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/logging/SimpleLogFormatter.java:74— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientState.java:426— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Swallowed exception (empty catch) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/FileLock.java:79— An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
Duplicated block (11 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRoute.java:61— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRoute.java:61-71 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:132-142 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 2) Libs_JTidy/src/org/w3c/tidy/Lexer.java:474— Libs_JTidy/src/org/w3c/tidy/Lexer.java:474-484 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:496-506 — 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 `Libs_JTidy/src/org/w3c/tidy/Lexer.java:474` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (11 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1387— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1387-1397 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1419-1429 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1387` 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) Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:374— Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:374-384 | Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:446-456 — 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 `Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:374` 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) Libs_Net/src/org/apache/commons/net/ftp/parser/MLSxEntryParser.java:184— Libs_Net/src/org/apache/commons/net/ftp/parser/MLSxEntryParser.java:184-194 | Libs_Net/src/org/apache/commons/net/ftp/parser/MLSxEntryParser.java: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. 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 (11 lines × 2) Libs_Net/src/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java:113— Libs_Net/src/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java:113-123 | Libs_Net/src/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java:137-147 — 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 `Libs_Net/src/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java:113` 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) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:179— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:179-189 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:295-305 — 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 `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:179` 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) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:788— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:788-798 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:813-823 — 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) Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:72— Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:72-82 | Libs_jFX/src/anywheresoftware/b4j/objects/TextInputControlWrapper.java:144-154 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:72` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:130— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:130-140 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:137-147 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:156— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:156-166 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:153-163 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:156` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:164` calls `enableNode`, `isValueVisible`, `getTitle` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:167` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:994— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:994-1004 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1681-1691 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java` as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 717 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:491— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:491-501 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:486-496 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:491` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:500` calls `getTickLabelLocation` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:505` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:278— Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:278-288 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:517-527 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:278` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:479— Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:479-489 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:526-536 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:479` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (11 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:468— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:468-478 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:510-520 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:468` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:508` calls `getLocale` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:466` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:277— Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:277-287 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:232-242 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:342— Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:342-352 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:416-426 — 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) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:417— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:417-427 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:409-419 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:422— Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:422-432 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileTextKpiSkin.java:222-232 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:434` calls `setX` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TileTextKpiSkin.java:234` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:169— Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:169-179 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/MotorJoint.java:232-242 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:168` calls `popMat22` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/MotorJoint.java:230` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:185— Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:185-195 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:287-297 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:185` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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.
D4 · Code Duplication· Edited copy of a member (10 corresponding lines) · ×19
Edited copy of a member (10 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:252— Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:252-262 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:212-221 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Mat22.java:461— Libs_XUI2D/src/org/jbox2d/common/Mat22.java:461-470 | Libs_XUI2D/src/org/jbox2d/common/Mat22.java:506-516 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Mat22.java:283— Libs_XUI2D/src/org/jbox2d/common/Mat22.java:283-292 | Libs_XUI2D/src/org/jbox2d/common/Mat22.java:331-344 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:990— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:990-1000 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1039-1048 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:254— Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:254-263 | Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:312-324 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:249— Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:249-258 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:149-164 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_GoogleMaps/src/com/lynden/gmapsfx/GoogleMapView.java:464— Libs_GoogleMaps/src/com/lynden/gmapsfx/GoogleMapView.java:464-473 | Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/JavascriptRuntime.java:124-136 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:648— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:648-657 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:4108-4117 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:678— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:678-687 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:4234-4243 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:766— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:766-775 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:4264-4273 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:796— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:796-805 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:4360-4369 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1528— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1528-1537 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:4484-4493 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1825— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1825-1834 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2461-2470 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/CanvasWrapper.java:115— Libs_jFX/src/anywheresoftware/b4j/objects/CanvasWrapper.java:115-124 | Libs_jFX/src/anywheresoftware/b4j/objects/CanvasWrapper.java:192-201 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:4676— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:4676-4685 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:4710-4719 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:185— Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:185-194 | Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:200-209 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:5307— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:5307-5316 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:5337-5347 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_JTidy/src/org/w3c/tidy/OutFactory.java:84— Libs_JTidy/src/org/w3c/tidy/OutFactory.java:84-93 | Libs_JTidy/src/org/w3c/tidy/StreamInFactory.java:84-93 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (10 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Section.java:95— Libs_jGauges/src/eu/hansolo/medusa/Section.java:95-105 | Libs_jGauges/src/eu/hansolo/medusa/TimeSection.java:88-97 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (11 corresponding lines) · ×18
Edited copy of a member (11 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:181— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:181-191 | Libs_jGauges/src/eu/hansolo/medusa/skins/TextClockSkin.java:189-203 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/ComboBoxWrapper.java:117— Libs_jFX/src/anywheresoftware/b4j/objects/ComboBoxWrapper.java:117-127 | Libs_jFX/src/anywheresoftware/b4j/objects/ListViewWrapper.java:163-178 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/joints/ConstantVolumeJoint.java:110— Libs_XUI2D/src/org/jbox2d/dynamics/joints/ConstantVolumeJoint.java:110-120 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/ConstantVolumeJoint.java:122-132 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_Net/src/org/apache/commons/net/ftp/FTPListParseEngine.java:166— Libs_Net/src/org/apache/commons/net/ftp/FTPListParseEngine.java:166-177 | Libs_Net/src/org/apache/commons/net/ftp/FTPListParseEngine.java:205-215 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/ProgressIndicatorWrapper.java:50— Libs_jFX/src/anywheresoftware/b4j/objects/ProgressIndicatorWrapper.java:50-60 | Libs_jFX/src/anywheresoftware/b4j/objects/ProgressIndicatorWrapper.java:81-91 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:577— Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:577-587 | Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:601-613 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/MemoryRetainedRepository.java:55— Libs_MqttBroker2/src/io/moquette/broker/MemoryRetainedRepository.java:55-65 | Libs_MqttBroker2/src/io/moquette/persistence/H2RetainedRepository.java:60-71 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_XUI2D/src/org/jbox2d/collision/AABB.java:309— Libs_XUI2D/src/org/jbox2d/collision/AABB.java:309-319 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DefaultBroadPhaseBuffer.java:116-130 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1144— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1144-1154 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1953-1963 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1175— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1175-1185 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1985-1995 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1240— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1240-1250 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2054-2064 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1269— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1269-1279 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3741-3751 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1414— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1414-1424 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2647-2657 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1674— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1674-1684 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3593-3606 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1888— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1888-1898 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3132-3145 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1923— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1923-1933 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2573-2586 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_Server/src/anywheresoftware/b4j/object/WebSocket.java:132— Libs_Server/src/anywheresoftware/b4j/object/WebSocket.java:132-144 | Libs_Server/src/anywheresoftware/b4j/object/WebSocket.java:156-166 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (11 corresponding lines) Libs_Net/src/org/apache/commons/net/pop3/POP3.java:143— Libs_Net/src/org/apache/commons/net/pop3/POP3.java:143-153 | Libs_Net/src/org/apache/commons/net/smtp/SMTP.java:256-266 — These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (14 lines × 2) Libs_JTidy/src/org/w3c/tidy/Clean.java:1361— Libs_JTidy/src/org/w3c/tidy/Clean.java:1361-1374 | Libs_JTidy/src/org/w3c/tidy/Clean.java:1417-1430 — 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 `Libs_JTidy/src/org/w3c/tidy/Clean.java:1361` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_JTidy/src/org/w3c/tidy/Lexer.java:2227— Libs_JTidy/src/org/w3c/tidy/Lexer.java:2227-2240 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2245-2258 — 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 `Libs_JTidy/src/org/w3c/tidy/Lexer.java:2227` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (14 lines × 2) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3702— Libs_JTidy/src/org/w3c/tidy/Lexer.java:3702-3715 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:3744-3757 — 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. 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) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1399— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1399-1412 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1431-1444 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1399` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (14 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1642— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1642-1655 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1785-1798 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1642` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2733— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2733-2746 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2891-2904 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2733` 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) Libs_JTidy/src/org/w3c/tidy/Report.java:1295— Libs_JTidy/src/org/w3c/tidy/Report.java:1295-1308 | Libs_JTidy/src/org/w3c/tidy/Report.java:1311-1324 — 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. 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) Libs_Net/src/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.java:85— Libs_Net/src/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.java:85-98 | Libs_Net/src/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java:179-192 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_Net/src/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java:176` calls `group` and `Libs_Net/src/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.java:84` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (14 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:314— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:314-327 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:322-335 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:102— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:102-115 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:106-119 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:102` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:102` calls `getSections`, `getAreas` and `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:99` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (14 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:446— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:446-459 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:291-304 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:446` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:727— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:727-740 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1292-1305 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java` as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 717 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:727` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:272— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:272-285 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:266-279 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:272` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:946— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:946-959 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:938-951 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:111— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:111-124 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:114-127 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:111` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:699— Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:699-712 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:778-791 — 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 (14 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:731— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:731-744 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:729-742 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:731` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:134— Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:134-147 | Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:118-131 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (7 lines × 3) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRequest.java:143— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRequest.java:143-149 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderRequest.java:56-62 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderRequest.java:71-77 — 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 `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRequest.java:143` 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 × 3) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:294— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:294-300 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:429-435 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:525-531 — 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.
Duplicated block (7 lines × 3) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:349— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:349-355 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:400-406 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:561-567 — 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.
Duplicated block (7 lines × 3) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:419— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:419-425 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:571-577 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:603-609 — 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.
Duplicated block (7 lines × 3) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1052— Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1052-1058 | Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1086-1092 | Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1158-1164 — 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 `Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1052` 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 × 3) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1069— Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1069-1075 | Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1103-1109 | Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1175-1181 — 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 `Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1069` 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 × 3) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1122— Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1122-1128 | Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1139-1145 | Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1193-1199 — 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 `Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1122` 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 × 3) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:270— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:270-276 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:278-284 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:372-378 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:285` calls `popVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:279` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:2074— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:2074-2080 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:2083-2090 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:2094-2101 — 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 `Libs_jGauges/src/eu/hansolo/medusa/Clock.java:2074` 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 (7 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3039— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3039-3045 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3075-3081 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3111-3117 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:338— Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:338-344 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:348-354 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:358-364 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:451— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:451-457 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:561-567 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:431-437 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:560` calls `getMaxValue` and `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:449` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:233— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:233-239 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:245-251 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:233-239 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:252` calls `setLineWidth` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:240` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:163— Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:163-169 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:181-187 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:181-187 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:194— Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:194-200 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:216-222 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:216-222 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:194` 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 × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1091— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1091-1097 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1813-1819 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1089-1095 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java` as WHOLE FILES: this scan already matched 52 separate duplicated blocks between them, totalling at least 609 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:189— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:189-195 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:189-195 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:183-189 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:185` calls `Text`, `setVisible`, `isDateVisible` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:181` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:945— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:945-951 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1058-1064 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1056-1062 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (6 lines × 3) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:291— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:291-296 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:399-404 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:514-519 — 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.
Duplicated block (6 lines × 3) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:295— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:295-300 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:491-496 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:526-531 — 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.
Duplicated block (6 lines × 3) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:351— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:351-356 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:397-402 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:587-592 — 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.
Duplicated block (6 lines × 3) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:394— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:394-399 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:440-445 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:522-527 — 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.
Duplicated block (6 lines × 3) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:404— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:404-409 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:439-444 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:581-586 — 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.
Duplicated block (6 lines × 3) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:403— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:403-408 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:438-443 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:564-569 — 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.
Duplicated block (6 lines × 3) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:443— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:443-448 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:453-458 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:517-522 — 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.
Duplicated block (6 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:267— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:267-272 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:270-275 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:270-275 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:267` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:143— Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:143-148 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:222-227 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:246-251 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:116— Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:116-121 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:135-140 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileTextKpiSkin.java:123-128 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (6 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:271— Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:271-276 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:280-285 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:289-294 — 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 `Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:271` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (6 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:311— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:311-316 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:494-499 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:379-384 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 225 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:311` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (6 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:232— Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:232-237 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:144-149 | Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:235-240 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java: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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:230` calls `getSections` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:233` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 3) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2548— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2548-2553 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2783-2788 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2992-2997 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2548` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (6 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java:586— Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java:586-591 | Libs_jGauges/src/eu/hansolo/medusa/FGaugeBuilder.java:148-153 | Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java:1141-1146 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java` and `Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java:586` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:384— Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:384-389 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:519-524 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:605-610 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:528— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:528-533 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:614-619 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:494-499 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:524` calls `setFont`, `latoLight`, `relocate` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:493` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:437— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:437-446 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1016-1025 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:437` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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 (10 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2644— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2644-2653 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2732-2741 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2644` 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) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2815— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2815-2824 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2924-2933 — 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. 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 (10 lines × 2) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/logging/SimpleLogFormatter.java:93— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/logging/SimpleLogFormatter.java:93-102 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/util/Debug.java:169-178 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 2) Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:280— Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:280-289 | Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:305-314 — 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 `Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:280` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:278` calls `debug` and `Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:304` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 2) REDACTED:377— REDACTED:377-386 | REDACTED:443-452 — 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. 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 (10 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1110— Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1110-1119 | Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1146-1155 — 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 `Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1110` 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) Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:328— Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:328-337 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:292-301 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 2) Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:387— Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:387-396 | Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:411-420 — 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 `Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:387` 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 (10 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/AABB.java:310— Libs_XUI2D/src/org/jbox2d/collision/AABB.java:310-319 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DefaultBroadPhaseBuffer.java:121-130 — 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 `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DefaultBroadPhaseBuffer.java:121` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (10 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:335— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:335-344 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:233-242 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:244` calls `pushRot`, `pushVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:347` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:371— Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:371-380 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:299-308 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 374 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:371` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:297` calls `getElements`, `add`, `LineTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:370` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:452— Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:452-461 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:344-353 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 374 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:452` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:342` calls `getElements`, `add`, `LineTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:451` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (10 lines × 2) Libs_MqttBroker2/src/io/moquette/broker/AutoFlushHandler.java:53— Libs_MqttBroker2/src/io/moquette/broker/AutoFlushHandler.java:53-62 | Libs_MqttBroker2/src/io/moquette/broker/InflightResender.java:86-95 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (10 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/Section.java:339— Libs_jGauges/src/eu/hansolo/medusa/Section.java:339-348 | Libs_jGauges/src/eu/hansolo/medusa/TimeSection.java:270-279 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind `VALUE` to `double` in one and `LocalTime` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (10 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/SectionBuilder.java:107— Libs_jGauges/src/eu/hansolo/medusa/SectionBuilder.java:107-116 | Libs_jGauges/src/eu/hansolo/medusa/TimeSectionBuilder.java:101-110 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/SectionBuilder.java: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.
D4 · Code Duplication· Edited copy of a member (7 corresponding lines) · ×15
Edited copy of a member (7 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:204— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:204-210 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:210-216 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:312— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:312-318 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:292-298 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:218— Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:218-224 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileTextKpiSkin.java:206-220 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/MemoryRetainedRepository.java:41— Libs_MqttBroker2/src/io/moquette/broker/MemoryRetainedRepository.java:41-47 | Libs_MqttBroker2/src/io/moquette/persistence/H2RetainedRepository.java:46-52 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Mat22.java:560— Libs_XUI2D/src/org/jbox2d/common/Mat22.java:560-566 | Libs_XUI2D/src/org/jbox2d/common/Mat33.java:264-271 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/JFX.java:175— Libs_jFX/src/anywheresoftware/b4j/objects/JFX.java:175-182 | Libs_jXUI/src/anywheresoftware/b4a/objects/B4XViewWrapper.java:1188-1194 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:83— Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:83-89 | Libs_jFX/src/anywheresoftware/b4j/objects/CheckboxWrapper.java:67-73 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Transform.java:148— Libs_XUI2D/src/org/jbox2d/common/Transform.java:148-154 | Libs_XUI2D/src/org/jbox2d/common/Transform.java:164-170 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/ColorPickerWrapper.java:73— Libs_jFX/src/anywheresoftware/b4j/objects/ColorPickerWrapper.java:73-79 | Libs_jFX/src/anywheresoftware/b4j/objects/HTMLEditorWrapper.java:58-66 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/metrics/DropWizardMetricsHandler.java:87— Libs_MqttBroker2/src/io/moquette/broker/metrics/DropWizardMetricsHandler.java:87-93 | Libs_MqttBroker2/src/io/moquette/broker/metrics/MQTTMessageLogger.java:107-113 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_XUI2D/src/org/jbox2d/pooling/arrays/GeneratorArray.java:40— Libs_XUI2D/src/org/jbox2d/pooling/arrays/GeneratorArray.java:40-46 | Libs_XUI2D/src/org/jbox2d/pooling/arrays/Vec2Array.java:50-56 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/AutoFlushHandler.java:128— Libs_MqttBroker2/src/io/moquette/broker/AutoFlushHandler.java:128-134 | Libs_MqttBroker2/src/io/moquette/broker/InflightResender.java:155-161 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Vec2.java:266— Libs_XUI2D/src/org/jbox2d/common/Vec2.java:266-272 | Libs_XUI2D/src/org/jbox2d/common/Vec3.java:125-132 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:206— Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:206-212 | jCore/src/anywheresoftware/b4a/keywords/StringBuilderWrapper.java:108-116 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (7 corresponding lines) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:856— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:856-862 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:843-849 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (12 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1437— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1437-1448 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1477-1488 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1437` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1475` calls `insertNodeAtEnd` and `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1435` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1910— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1910-1921 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3087-3098 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1910` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2118— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2118-2129 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2484-2495 — 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 (12 lines × 2) Libs_Net/src/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.java:396— Libs_Net/src/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.java:396-407 | Libs_Net/src/org/apache/commons/net/ftp/parser/MVSFTPEntryParser.java:425-436 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (12 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:801— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:801-812 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:826-837 — 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 (12 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:254— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:254-265 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:259-270 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:254` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:272` calls `pushVec2`, `pushRot` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:266` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 2) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:374— Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:374-385 | Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:435-446 — 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 (12 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:119— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:119-130 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:110-121 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:119` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:123` calls `Text`, `getTitle`, `setFill` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:132` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:248— Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:248-259 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:314-325 — 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 (12 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:218— Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:218-229 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:247-258 — 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 `Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:218` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (12 lines × 2) Libs_jFX/src/anywheresoftware/b4j/objects/CustomViewWrapper.java:116— Libs_jFX/src/anywheresoftware/b4j/objects/CustomViewWrapper.java:116-127 | Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:1047-1058 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (12 lines × 2) Libs_Net/src/org/apache/commons/net/pop3/ExtendedPOP3Client.java:96— Libs_Net/src/org/apache/commons/net/pop3/ExtendedPOP3Client.java:96-107 | Libs_Net/src/org/apache/commons/net/smtp/AuthenticatingSMTPClient.java:186-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.
Duplicated block (12 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:617— Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:617-628 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:497-508 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java` as WHOLE FILES: this scan already matched 38 separate duplicated blocks between them, totalling at least 374 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:617` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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.
D4 · Code Duplication· Edited copy of a member (15 corresponding lines) · ×11
Edited copy of a member (15 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:279— Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:279-293 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:295-309 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:84— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:84-98 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:86-100 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) REDACTED:569— REDACTED:569-584 | REDACTED:621-635 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:140— Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:140-154 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java:131-148 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/ColorPickerWrapper.java:48— Libs_jFX/src/anywheresoftware/b4j/objects/ColorPickerWrapper.java:48-62 | Libs_jFX/src/anywheresoftware/b4j/objects/SpinnerWrapper.java:51-69 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/B4XSerializator.java:272— Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/B4XSerializator.java:272-287 | REDACTED:513-527 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Libs_JTidy/src/org/w3c/tidy/Lexer.java:469— Libs_JTidy/src/org/w3c/tidy/Lexer.java:469-484 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:492-506 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:326— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:326-342 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:329-343 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Libs_jXUI/src/anywheresoftware/b4a/objects/B4XCanvas.java:162— Libs_jXUI/src/anywheresoftware/b4a/objects/B4XCanvas.java:162-177 | Libs_jXUI/src/anywheresoftware/b4a/objects/B4XCanvas.java:187-201 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1627— Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1627-1641 | Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1643-1657 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (15 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:68— Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:68-82 | Libs_jFX/src/anywheresoftware/b4j/objects/TextInputControlWrapper.java:140-154 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (12 corresponding lines) · ×10
Edited copy of a member (12 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Section.java:362— Libs_jGauges/src/eu/hansolo/medusa/Section.java:362-373 | Libs_jGauges/src/eu/hansolo/medusa/TimeSection.java:293-304 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) PyBridge/b4x_bridge/bridge.py:79— PyBridge/b4x_bridge/bridge.py:79-91 | PyBridge/b4x_bridge/bridge.py:95-106 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) Libs_Json/src/org/json/JSONArray.java:504— Libs_Json/src/org/json/JSONArray.java:504-515 | Libs_Json/src/org/json/JSONObject.java:595-609 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:247— Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:247-258 | Libs_jXUI/src/anywheresoftware/b4a/objects/B4XViewWrapper.java:742-753 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1706— Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1706-1717 | Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1919-1931 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) Libs_Net/src/org/apache/james/mime4j/util/CharsetUtil.java:76— Libs_Net/src/org/apache/james/mime4j/util/CharsetUtil.java:76-87 | Libs_Net/src/org/apache/james/mime4j/util/CharsetUtil.java:111-122 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/CanvasWrapper.java:225— Libs_jFX/src/anywheresoftware/b4j/objects/CanvasWrapper.java:225-236 | Libs_jFX/src/anywheresoftware/b4j/objects/CanvasWrapper.java:253-264 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:59— Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:59-70 | Libs_jGauges/src/eu/hansolo/medusa/skins/WhiteSkin.java:68-80 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:946— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:946-957 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1015-1026 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (12 corresponding lines) Libs_Net/src/org/apache/commons/net/smtp/AuthenticatingSMTPClient.java:117— Libs_Net/src/org/apache/commons/net/smtp/AuthenticatingSMTPClient.java:117-128 | Libs_Net/src/org/apache/commons/net/smtp/SMTPClient.java:216-227 — These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Members sharing a duplicated core (4 members, 50+ identical tokens) · ×10
Members sharing a duplicated core (4 members, 50+ identical tokens) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:992— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:992-1053 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3169-3203 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3217-3289 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3303-3339 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:216— Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:216-288 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:532-661 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:226-348 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:263-335 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:443— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:443-518 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:361-474 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:553-650 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:423-498 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:258— Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:258-281 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:695-812 | Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:334-389 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:322-379 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:145— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:145-175 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:152-182 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:150-178 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:151-181 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:303— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:303-378 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:307-380 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:273-301 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:303-375 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:380— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:380-390 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:382-392 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:377-387 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:374-384 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:392— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:392-400 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:394-402 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:389-397 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:386-394 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:903— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:903-962 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:930-1082 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1651-1804 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:922-1080 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Members sharing a duplicated core (4 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:241— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:241-317 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:220-298 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:273-321 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:215-247 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Duplicated block (13 lines × 2) Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:309— Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:309-321 | Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:426-438 — 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 (13 lines × 2) Libs_JTidy/src/org/w3c/tidy/Node.java:260— Libs_JTidy/src/org/w3c/tidy/Node.java:260-272 | Libs_JTidy/src/org/w3c/tidy/Node.java:291-303 — 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 what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction — check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only.
Duplicated block (13 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:873— Libs_JTidy/src/org/w3c/tidy/PPrint.java:873-885 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:900-913 — 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 `Libs_JTidy/src/org/w3c/tidy/PPrint.java:873` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (13 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1611— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1611-1623 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1752-1764 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1611` 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) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:412— Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:412-424 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:213-225 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (13 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:167— Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:167-179 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileClockSkin.java:142-154 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (13 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:347— Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:347-359 | Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:295-307 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java: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 (13 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:2087— Libs_JTidy/src/org/w3c/tidy/PPrint.java:2087-2099 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:2383-2395 — 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 `Libs_JTidy/src/org/w3c/tidy/PPrint.java:2087` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:292— Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:292-304 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:335-347 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:292` 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) Libs_XUI2D/src/org/jbox2d/particle/VoronoiDiagram.java:146— Libs_XUI2D/src/org/jbox2d/particle/VoronoiDiagram.java:146-158 | Libs_XUI2D/src/org/jbox2d/particle/VoronoiDiagram.java:203-215 — 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 (5 lines × 3) Libs_XUI2D/src/org/jbox2d/collision/WorldManifold.java:93— Libs_XUI2D/src/org/jbox2d/collision/WorldManifold.java:93-97 | Libs_XUI2D/src/org/jbox2d/collision/WorldManifold.java:131-135 | Libs_XUI2D/src/org/jbox2d/collision/WorldManifold.java:184-188 — 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.
Duplicated block (5 lines × 3) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:292— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:292-296 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:139-144 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:191-195 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:198` calls `pushVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:300` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:738— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:738-742 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:704-708 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:357-361 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:743` calls `setControlX2`, `setControlY2`, `setX` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:362` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:409— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:409-413 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:442-446 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:514-518 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:164— Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:164-168 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:266-270 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:249-253 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:164` 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 (5 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:167— Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:167-171 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:159-163 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:158-162 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:167` 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 (5 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1021— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1021-1025 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:978-982 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:970-974 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1021` 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 (5 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:695— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:695-699 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:738-742 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:736-740 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:695` 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 (5 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:331— Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:331-335 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:351-355 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:360-364 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:331` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (5 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:281— Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:281-285 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:253-257 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:213-217 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:218` calls `setFont`, `latoBold`, `getLayoutBounds` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:286` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (16 lines × 2) Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:101— Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:101-116 | Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:201-216 — 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 `Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:101` 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) Libs_JTidy/src/org/w3c/tidy/Node.java:376— Libs_JTidy/src/org/w3c/tidy/Node.java:376-391 | Libs_JTidy/src/org/w3c/tidy/Node.java:417-433 — 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 `Libs_JTidy/src/org/w3c/tidy/Node.java:376` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1102— Libs_JTidy/src/org/w3c/tidy/PPrint.java:1102-1117 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:1125-1140 — 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 `Libs_JTidy/src/org/w3c/tidy/PPrint.java:1102` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_JTidy/src/org/w3c/tidy/PPrint.java:1099` calls `addC` and `Libs_JTidy/src/org/w3c/tidy/PPrint.java:1122` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (16 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParsePropertyImpl.java:423— Libs_JTidy/src/org/w3c/tidy/ParsePropertyImpl.java:423-438 | Libs_JTidy/src/org/w3c/tidy/ParsePropertyImpl.java:471-486 — 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 (16 lines × 2) REDACTED:462— REDACTED:462-477 | Libs_Net/src/anywheresoftware/b4a/net/POPWrapper.java:312-327 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `REDACTED:462` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:764— Libs_XUI2D/src/org/jbox2d/collision/Collision.java:764-779 | Libs_XUI2D/src/org/jbox2d/collision/Collision.java:799-814 — 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 `Libs_XUI2D/src/org/jbox2d/collision/Collision.java:764` 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 (16 lines × 2) Libs_jFX/src/anywheresoftware/b4j/objects/ChoiceBoxWrapper.java:51— Libs_jFX/src/anywheresoftware/b4j/objects/ChoiceBoxWrapper.java:51-66 | Libs_jFX/src/anywheresoftware/b4j/objects/ComboBoxWrapper.java:64-79 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jFX/src/anywheresoftware/b4j/objects/ChoiceBoxWrapper.java:51` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:72— Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:72-87 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:67-82 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (16 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:382— Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:382-397 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:433-448 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:382` 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 (5 lines × 4) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:321— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:321-325 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:343-347 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:415-419 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:565-569 — all 4 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.
Duplicated block (5 lines × 4) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:321— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:321-325 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:343-347 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:415-419 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:581-585 — all 4 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.
Duplicated block (5 lines × 4) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:392— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:392-396 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:456-460 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:520-524 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:577-581 — all 4 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.
Duplicated block (5 lines × 4) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:718— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:718-722 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:727-731 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:768-772 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:777-781 — all 4 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.
Duplicated block (5 lines × 4) Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:63— Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:63-68 | Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:107-111 | Libs_jFX/src/anywheresoftware/b4j/objects/CheckboxWrapper.java:46-51 | Libs_jFX/src/anywheresoftware/b4j/objects/TreeViewWrapper.java:215-221 — there are 4 copies across 3 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:63` 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 (5 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:299— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:299-303 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:326-330 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:447-451 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:537-541 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:299` 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 (5 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:836— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:836-840 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:838-842 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1401-1405 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:837-841 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:836` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:851— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:851-855 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:853-857 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1416-1420 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:852-856 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:851` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (5 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:273— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:273-277 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:249-253 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:301-305 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:234-238 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:273` 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.
D4 · Code Duplication· Edited copy of a member (9 corresponding lines) · ×8
Edited copy of a member (9 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Alarm.java:169— Libs_jGauges/src/eu/hansolo/medusa/Alarm.java:169-179 | Libs_jGauges/src/eu/hansolo/medusa/Marker.java:245-253 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Vec2.java:278— Libs_XUI2D/src/org/jbox2d/common/Vec2.java:278-286 | Libs_XUI2D/src/org/jbox2d/common/Vec3.java:135-144 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Libs_Net/src/org/apache/commons/net/pop3/ExtendedPOP3Client.java:123— Libs_Net/src/org/apache/commons/net/pop3/ExtendedPOP3Client.java:123-131 | Libs_Net/src/org/apache/commons/net/smtp/AuthenticatingSMTPClient.java:222-230 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:236— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:236-244 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:254-263 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/tools/ConicalGradient.java:198— Libs_jGauges/src/eu/hansolo/medusa/tools/ConicalGradient.java:198-206 | Libs_jGauges/src/eu/hansolo/medusa/tools/ConicalGradient.java:211-219 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:406— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:406-414 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:398-406 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Libs_Server/src/anywheresoftware/b4j/object/WebSocket.java:210— Libs_Server/src/anywheresoftware/b4j/object/WebSocket.java:210-218 | Libs_Server/src/anywheresoftware/b4j/object/WebSocket.java:222-230 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (9 corresponding lines) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsWaypoint.java:71— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsWaypoint.java:71-79 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderGeometry.java:55-64 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Swallowed exception (caught, then discarded) jCore/src/anywheresoftware/b4a/keywords/Common.java:844— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/MessageCatalog.java:31— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/MessageCatalog.java:37— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttPublish.java:93— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttSubscribe.java:56— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttUnsubscribe.java:61— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:305— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
Swallowed exception (caught, then discarded) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderUtils.java:47— `catch (Exception)` takes every exception and records none of it — the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter.
D4 · Code Duplication· Edited copy of a member (19 corresponding lines) · ×7
Edited copy of a member (19 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:987— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:987-1006 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1036-1054 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/RoundLcdClockSkin.java:202— Libs_jGauges/src/eu/hansolo/medusa/skins/RoundLcdClockSkin.java:202-220 | Libs_jGauges/src/eu/hansolo/medusa/skins/RoundLcdClockSkin.java:222-240 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/TreeTableViewWrapper.java:52— Libs_jFX/src/anywheresoftware/b4j/objects/TreeTableViewWrapper.java:52-70 | Libs_jFX/src/anywheresoftware/b4j/objects/TreeViewWrapper.java:46-68 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/config/ConfigurationParser.java:45— Libs_MqttBroker2/src/io/moquette/broker/config/ConfigurationParser.java:45-63 | Libs_MqttBroker2/src/io/moquette/broker/security/ACLFileParser.java:50-73 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/Body.java:458— Libs_XUI2D/src/org/jbox2d/dynamics/Body.java:458-476 | Libs_XUI2D/src/org/jbox2d/dynamics/Body.java:524-542 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/AutoFlushHandler.java:93— Libs_MqttBroker2/src/io/moquette/broker/AutoFlushHandler.java:93-112 | Libs_MqttBroker2/src/io/moquette/broker/InflightResender.java:126-144 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (19 corresponding lines) Libs_JTidy/src/org/w3c/tidy/DOMAttrMapImpl.java:109— Libs_JTidy/src/org/w3c/tidy/DOMAttrMapImpl.java:109-127 | Libs_JTidy/src/org/w3c/tidy/DOMNodeListImpl.java:84-107 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (16 corresponding lines) · ×7
Edited copy of a member (16 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:971— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:971-986 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1020-1035 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:867— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:867-882 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:854-872 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/Session.java:224— Libs_MqttBroker2/src/io/moquette/broker/Session.java:224-244 | Libs_MqttBroker2/src/io/moquette/broker/Session.java:246-261 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/CanvasWrapper.java:142— Libs_jFX/src/anywheresoftware/b4j/objects/CanvasWrapper.java:142-157 | Libs_jFX/src/anywheresoftware/b4j/objects/CanvasWrapper.java:168-183 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) REDACTED:585— REDACTED:585-602 | REDACTED:637-652 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:2998— Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:2998-3013 | Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:3023-3039 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (16 corresponding lines) Libs_Net/src/anywheresoftware/b4a/net/POPWrapper.java:309— Libs_Net/src/anywheresoftware/b4a/net/POPWrapper.java:309-324 | REDACTED:459-474 — These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (14 corresponding lines) · ×7
Edited copy of a member (14 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3171— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3171-3185 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3210-3223 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:79— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:79-94 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:88-101 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/SplitPaneWrapper.java:87— Libs_jFX/src/anywheresoftware/b4j/objects/SplitPaneWrapper.java:87-101 | Libs_jFX/src/anywheresoftware/b4j/objects/TabPaneWrapper.java:116-129 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:155— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:155-171 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:186-199 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2298— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2298-2311 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2341-2356 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:830— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:830-843 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:868-881 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/CompressedStreams.java:155— Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/CompressedStreams.java:155-168 | Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/CompressedStreams.java:169-182 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (6 corresponding lines) · ×7
Edited copy of a member (6 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Mat33.java:128— Libs_XUI2D/src/org/jbox2d/common/Mat33.java:128-134 | Libs_XUI2D/src/org/jbox2d/common/Mat33.java:136-141 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/MathUtils.java:224— Libs_XUI2D/src/org/jbox2d/common/MathUtils.java:224-231 | Libs_XUI2D/src/org/jbox2d/common/MathUtils.java:233-238 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:190— Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:190-195 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:137-142 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:46— Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:46-51 | Libs_jFX/src/anywheresoftware/b4j/objects/LabelWrapper.java:38-43 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:735— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:735-740 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1440-1445 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Libs_JTidy/src/org/w3c/tidy/Lexer.java:641— Libs_JTidy/src/org/w3c/tidy/Lexer.java:641-646 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:991-996 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (6 corresponding lines) Libs_Net/src/org/apache/commons/net/ftp/FTPSTrustManager.java:47— Libs_Net/src/org/apache/commons/net/ftp/FTPSTrustManager.java:47-52 | Libs_Net/src/org/apache/commons/net/util/TrustManagerUtils.java:56-63 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (5 corresponding lines) · ×7
Edited copy of a member (5 corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/EdgeAndCircleContact.java:41— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/EdgeAndCircleContact.java:41-45 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/EdgeAndPolygonContact.java:41-45 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/metrics/BytesMetricsHandler.java:55— Libs_MqttBroker2/src/io/moquette/broker/metrics/BytesMetricsHandler.java:55-59 | Libs_MqttBroker2/src/io/moquette/broker/metrics/MessageMetricsHandler.java:54-58 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/metrics/BytesMetricsHandler.java:48— Libs_MqttBroker2/src/io/moquette/broker/metrics/BytesMetricsHandler.java:48-52 | Libs_MqttBroker2/src/io/moquette/broker/metrics/MessageMetricsHandler.java:47-51 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/AccordionWrapper.java:71— Libs_jFX/src/anywheresoftware/b4j/objects/AccordionWrapper.java:71-75 | Libs_jFX/src/anywheresoftware/b4j/objects/TabPaneWrapper.java:76-80 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/ChargeSkin.java:124— Libs_jGauges/src/eu/hansolo/medusa/skins/ChargeSkin.java:124-128 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:200-205 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/ChargeSkin.java:144— Libs_jGauges/src/eu/hansolo/medusa/skins/ChargeSkin.java:144-148 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:247-252 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (5 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:213— Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:213-217 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:188-192 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (19 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/DirectionsPane.java:74— Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/DirectionsPane.java:74-92 | Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/GoogleMap.java:92-110 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/DirectionsPane.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/GoogleMap.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:867— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:867-885 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2276-2294 — 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 (19 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:277— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:277-295 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:285-303 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java` and `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:277` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:87— Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:87-105 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java:77-95 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:87` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java:96` calls `setVisible`, `isDayVisible`, `setManaged` and `Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:106` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (19 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:636— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:636-654 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:700-718 — 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 (19 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:134— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:134-152 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:128-146 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (19 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:261— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:261-279 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:237-255 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:261` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:234` calls `setLineWidth`, `setLineCap` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:259` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (18 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3360— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3360-3377 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3572-3589 — 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. 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 (18 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:564— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:564-581 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:544-561 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (18 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:214— Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:214-231 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java:193-210 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:214` 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 (18 lines × 2) Libs_JTidy/src/org/w3c/tidy/Clean.java:858— Libs_JTidy/src/org/w3c/tidy/Clean.java:858-875 | Libs_JTidy/src/org/w3c/tidy/Clean.java:877-894 — 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 `Libs_JTidy/src/org/w3c/tidy/Clean.java:877` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (18 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:2625— Libs_JTidy/src/org/w3c/tidy/PPrint.java:2625-2642 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:2701-2718 — 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 (18 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:249— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:249-266 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:256-273 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java` and `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (18 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:298— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:298-315 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:259-276 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:298` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 4) Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:127— Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:127-134 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:110-117 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:148-155 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:232-239 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/ChargeSkin.java:156— Libs_jGauges/src/eu/hansolo/medusa/skins/ChargeSkin.java:156-163 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:500-507 | Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:2278-2285 | Libs_jGauges/src/eu/hansolo/medusa/skins/TextClockSkin.java:154-161 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TextClockSkin.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/ChargeSkin.java:156` 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 × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:393— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:393-400 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:395-402 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:390-397 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:387-394 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:538— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:538-545 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:541-548 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1106-1113 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:537-544 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:538` 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 × 4) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:719— Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:719-726 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:732-739 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:798-805 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:811-818 — all 4 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.
Duplicated block (8 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:257— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:257-264 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:251-258 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:261-268 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:243-250 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:291— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:291-299 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:296-303 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:292-299 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:289-296 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:318— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:318-324 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:679-685 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:326-332 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:354-360 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:314` calls `popVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:353` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 4) Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:217— Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:217-223 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:533-539 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:227-233 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:264-270 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:181— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:181-187 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:177-183 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:177-183 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:175-181 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:173` calls `Group` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:179` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:337— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:337-343 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:339-345 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:335-341 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:331-337 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:337` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:334` calls `getSectionsVisible`, `getAreasVisible` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:337` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:408— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:408-414 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:418-424 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:419-425 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:411-417 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:729— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:729-735 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:731-737 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1294-1300 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:729-735 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:729` calls `getKnobPosition` and `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:727` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:629— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:629-635 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:643-649 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:693-699 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:707-713 — all 4 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.
D4 · Code Duplication· Edited copy of a member (8 corresponding lines) · ×6
Edited copy of a member (8 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:346— Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:346-439 | Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:441-466 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Mat22.java:294— Libs_XUI2D/src/org/jbox2d/common/Mat22.java:294-301 | Libs_XUI2D/src/org/jbox2d/common/Mat22.java:346-353 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:172— Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:172-179 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:252-262 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/ImageViewWrapper.java:120— Libs_jFX/src/anywheresoftware/b4j/objects/ImageViewWrapper.java:120-127 | Libs_jFX/src/anywheresoftware/b4j/objects/TextInputControlWrapper.java:225-232 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:298— Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:298-305 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:306-314 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (8 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:223— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:223-230 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:555-564 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (22 corresponding lines) · ×6
Edited copy of a member (22 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/JFX.java:220— Libs_jFX/src/anywheresoftware/b4j/objects/JFX.java:220-241 | Libs_jXUI/src/anywheresoftware/b4a/objects/B4XViewWrapper.java:1126-1161 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (22 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:107— Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:107-131 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:99-120 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (22 corresponding lines) Libs_XUI2D/src/org/jbox2d/collision/shapes/ChainShape.java:191— Libs_XUI2D/src/org/jbox2d/collision/shapes/ChainShape.java:191-212 | Libs_XUI2D/src/org/jbox2d/collision/shapes/ChainShape.java:220-241 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (22 corresponding lines) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/CommsReceiver.java:72— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/CommsReceiver.java:72-93 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/CommsSender.java:68-91 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (22 corresponding lines) Libs_Net/src/org/apache/commons/net/pop3/POP3.java:223— Libs_Net/src/org/apache/commons/net/pop3/POP3.java:223-245 | Libs_Net/src/org/apache/commons/net/smtp/SMTP.java:152-173 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (22 corresponding lines) Libs_JTidy/src/org/w3c/tidy/ParsePropertyImpl.java:583— Libs_JTidy/src/org/w3c/tidy/ParsePropertyImpl.java:583-615 | Libs_JTidy/src/org/w3c/tidy/Tidy.java:1756-1777 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (18 corresponding lines) · ×6
Edited copy of a member (18 corresponding lines) Libs_Json/src/anywheresoftware/b4j/objects/collections/JSONParser.java:97— Libs_Json/src/anywheresoftware/b4j/objects/collections/JSONParser.java:97-118 | Libs_Json/src/anywheresoftware/b4j/objects/collections/JSONParser.java:119-136 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/AutoFlushHandler.java:145— Libs_MqttBroker2/src/io/moquette/broker/AutoFlushHandler.java:145-170 | Libs_MqttBroker2/src/io/moquette/broker/InflightResender.java:49-66 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) Libs_JTidy/src/org/w3c/tidy/Node.java:259— Libs_JTidy/src/org/w3c/tidy/Node.java:259-276 | Libs_JTidy/src/org/w3c/tidy/Node.java:290-311 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) REDACTED:373— REDACTED:373-390 | REDACTED:439-456 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttSubscribe.java:42— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttSubscribe.java:42-61 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttUnsubscribe.java:49-66 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (18 corresponding lines) Libs_Net/src/org/apache/commons/net/ftp/FTP.java:657— Libs_Net/src/org/apache/commons/net/ftp/FTP.java:657-674 | Libs_Net/src/org/apache/commons/net/smtp/SMTP.java:448-465 — These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×5
Members sharing a duplicated core (6 members, 50+ identical tokens) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:74— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:74-82 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:84-92 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:72-80 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:82-90 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsWaypoint.java:61-69 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderGeometry.java:45-53 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:46— Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:46-68 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:71-96 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:99-121 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:124-149 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:152-177 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:180-209 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:46— Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:46-68 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:124-149 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:152-177 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:180-209 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:212-236 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:239-266 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:431— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:431-441 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:766-776 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:768-778 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:411-421 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1331-1341 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:766-776 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:94— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:94-115 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:99-122 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:96-119 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:100-124 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:103-127 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:101-122 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Edited copy of a member (29 corresponding lines) · ×5
Edited copy of a member (29 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:209— Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:209-239 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java:188-216 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (29 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:166— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:166-194 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:171-200 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (29 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:237— Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:237-265 | Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:295-326 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (29 corresponding lines) Libs_JTidy/src/org/w3c/tidy/PPrint.java:470— Libs_JTidy/src/org/w3c/tidy/PPrint.java:470-498 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:505-533 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (29 corresponding lines) Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:166— Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:166-194 | Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:274-309 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (27 corresponding lines) · ×5
Edited copy of a member (27 corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/joints/ConstantVolumeJoint.java:179— Libs_XUI2D/src/org/jbox2d/dynamics/joints/ConstantVolumeJoint.java:179-205 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/ConstantVolumeJoint.java:213-239 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (27 corresponding lines) Libs_Json/src/anywheresoftware/b4j/objects/collections/JSONParser.java:184— Libs_Json/src/anywheresoftware/b4j/objects/collections/JSONParser.java:184-212 | Libs_Json/src/anywheresoftware/b4j/objects/collections/JSONParser.java:214-240 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (27 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/ComboBoxWrapper.java:49— Libs_jFX/src/anywheresoftware/b4j/objects/ComboBoxWrapper.java:49-79 | Libs_jFX/src/anywheresoftware/b4j/objects/WebViewWrapper.java:47-73 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (27 corresponding lines) REDACTED:451— REDACTED:451-477 | Libs_Net/src/anywheresoftware/b4a/net/POPWrapper.java:301-327 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (27 corresponding lines) REDACTED:56— REDACTED:56-82 | REDACTED:85-111 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (17 lines × 2) Libs_JTidy/src/org/w3c/tidy/Clean.java:582— Libs_JTidy/src/org/w3c/tidy/Clean.java:582-598 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1137-1153 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (17 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:282— Libs_JTidy/src/org/w3c/tidy/PPrint.java:282-298 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:317-333 — 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 `Libs_JTidy/src/org/w3c/tidy/PPrint.java:282` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:266— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:266-282 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:247-263 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:266` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:283` calls `enableNode`, `getTitle`, `isEmpty` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:264` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (17 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:102— Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:102-118 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:135-151 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:102` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (17 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:213— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:213-229 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:202-218 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3235— Libs_JTidy/src/org/w3c/tidy/Lexer.java:3235-3249 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:3261-3275 — 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 (15 lines × 2) REDACTED:328— REDACTED:328-342 | REDACTED:382-396 — 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 `REDACTED:328` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (15 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1028— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1028-1042 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1026-1040 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (15 lines × 2) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1894— Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1894-1908 | Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1957-1971 — 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 `Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1894` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jFX/src/anywheresoftware/b4j/objects/JFX.java:222— Libs_jFX/src/anywheresoftware/b4j/objects/JFX.java:222-236 | Libs_jXUI/src/anywheresoftware/b4a/objects/B4XViewWrapper.java:1129-1143 — 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 (9–10 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRequest.java:141— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRequest.java:141-149 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderRequest.java:57-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. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRequest.java:141` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRequest.java:140` calls `toString` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderRequest.java:57` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9–10 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:916— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:916-925 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2095-2103 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2095` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with 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 (9–10 lines × 2) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/MqttAsyncClient.java:709— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/MqttAsyncClient.java:709-717 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/MqttAsyncClient.java:765-774 — 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 `Libs_MQTT/src/org/eclipse/paho/client/mqttv3/MqttAsyncClient.java:709` 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–10 lines × 2) Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:257— Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:257-265 | Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:317-326 — 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 `Libs_MqttBroker2/src/io/moquette/broker/NewNettyAcceptor.java:257` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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–10 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/Island.java:336— Libs_XUI2D/src/org/jbox2d/dynamics/Island.java:336-344 | Libs_XUI2D/src/org/jbox2d/dynamics/Island.java:520-529 — 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 `Libs_XUI2D/src/org/jbox2d/dynamics/Island.java:336` 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 × 3) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:95— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:95-102 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:105-112 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:43-50 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 3) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRoute.java:74— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRoute.java:74-81 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderGeometry.java:67-74 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderGeometry.java:77-84 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (8 lines × 3) Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:523— Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:523-530 | Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:548-555 | Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:571-578 — 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 `Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:523` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:532` calls `addAttribute` and `Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:556` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:140— Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:140-147 | Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:100-107 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:133-140 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:140` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (8 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:160— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:160-167 | Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:2275-2282 | Libs_jGauges/src/eu/hansolo/medusa/skins/TextClockSkin.java:151-158 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 4) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:398— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:398-403 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:455-460 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:519-524 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:576-581 — all 4 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.
Duplicated block (6 lines × 4) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:412— Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:412-417 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:667-672 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:316-321 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:213-218 — there are 4 copies across 3 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 4 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (6 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:453— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:453-458 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:372-377 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:563-568 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:433-438 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:560` calls `getMaxValue` and `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:449` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:956— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:956-961 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1069-1074 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1768-1773 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1067-1072 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:956` 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 × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:328— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:328-333 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:332-337 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:328-333 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:324-329 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:334` calls `getSectionsVisible`, `getAreasVisible` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:338` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
X12 · Unreachable branch· Branch is unreachable · ×5
Branch is unreachable — its condition cannot hold here jCore/src/anywheresoftware/b4a/objects/streams/File.java:115— `s == null` can never be true where it stands: control only reaches it when `s != null` (line 114). The conditional arm it guards never runs — whatever it was meant to handle is silently handled elsewhere or not at all. Remove it, or fix the test it repeats or the guard that decides it.
Branch is unreachable — its condition cannot hold here Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:180— `"RESIZE".equals(EVENT_TYPE)` can never be true where it stands: control only reaches it when `EVENT_TYPE != "RESIZE"` (line 171). The branch it guards never runs — whatever it was meant to handle is silently handled elsewhere or not at all. Remove it, or fix the test it repeats or the guard that decides it.
Branch is unreachable — its condition cannot hold here Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:562— `DEBUG_SOLVER` can never be true where it stands: it is decided by constants. The branch it guards never runs — whatever it was meant to handle is silently handled elsewhere or not at all. Remove it, or fix the test it repeats or the guard that decides it.
Branch is unreachable — its condition cannot hold here Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:627— `DEBUG_SOLVER` can never be true where it stands: it is decided by constants. The branch it guards never runs — whatever it was meant to handle is silently handled elsewhere or not at all. Remove it, or fix the test it repeats or the guard that decides it.
Branch is unreachable — its condition cannot hold here Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:687— `DEBUG_SOLVER` can never be true where it stands: it is decided by constants. The branch it guards never runs — whatever it was meant to handle is silently handled elsewhere or not at all. Remove it, or fix the test it repeats or the guard that decides it.
X17 · Uncapped recursion over a caller-supplied document· Recursive walk over a caller-supplied document has no depth cap · ×5
Recursive walk over a caller-supplied document has no depth cap PyBridge/b4x_bridge/b4x_serializator.py:65— `is_serializable` is public and takes `obj: Any` from its caller, and it calls itself at line 65 (`self.is_serializable`) with a piece of `obj` (and at line 70, line 72) — and nowhere in `is_serializable` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `is_serializable` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap PyBridge/b4x_bridge/bridge.py:101— `unwrap_dict` is public and takes `_dict: dict` from its caller, and it calls itself at line 101 (`self.unwrap_dict`) with a piece of `_dict` — and nowhere in `unwrap_dict` is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes. Python's parsers accept far more nesting than its stack allows: `json.loads` turns 3,000 bytes of brackets into 1,500 levels and `xml.etree.ElementTree` parses tens of thousands, while a walk like this one raises `RecursionError` once it passes the interpreter's default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any `try` the worker or the program exits with it. Raising `sys.setrecursionlimit` only moves the number the document has to beat. Thread a depth argument through `unwrap_dict` and reject the value past a fixed maximum, or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap Libs_jFX/src/anywheresoftware/b4j/objects/LayoutBuilder.java:227— `loadLayout` is not private, takes a value from its caller (line 62) and hands it on to `loadLayoutHeader`, which calls itself at line 227 with a piece of `props` — and nowhere in the walk is a depth or nesting counter compared with a bound, nor is the parser that builds the document given a nesting limit in this file. The walk therefore spends one stack frame (more through a lambda or a stream) per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes; javac turns no recursive call into a loop. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25). org.json, the W3C DOM, dom4j and StAX set no nesting limit of their own, Jackson before 2.15 none and 2.15+ 1,000 — on a cold JVM past the point the walk fails — and a `Map<String, Object>` tree is as deep as whatever built it. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (Exception e)` around the call does not stop it, and the request or the thread dies with it. Thread a depth argument through `loadLayoutHeader` and reject the value past a fixed maximum, configure the parser's nesting limit (`StreamReadConstraints.maxNestingDepth`, SnakeYAML's `setNestingDepthLimit`), or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/B4XSerializator.java:255— `WriteObject` is not private, takes a value from its caller (line 117) and hands it on to `writeMap`, which recurses at line 255 through `writeList`, `writeObject` and back with a piece of `m` (and at line 256, line 269) — and nowhere in the walk is a depth or nesting counter compared with a bound, nor is the parser that builds the document given a nesting limit in this file. The walk therefore spends one stack frame (more through a lambda or a stream) per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes; javac turns no recursive call into a loop. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25). org.json, the W3C DOM, dom4j and StAX set no nesting limit of their own, Jackson before 2.15 none and 2.15+ 1,000 — on a cold JVM past the point the walk fails — and a `Map<String, Object>` tree is as deep as whatever built it. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (Exception e)` around the call does not stop it, and the request or the thread dies with it. Thread a depth argument through `writeMap` and reject the value past a fixed maximum, configure the parser's nesting limit (`StreamReadConstraints.maxNestingDepth`, SnakeYAML's `setNestingDepthLimit`), or rewrite the descent with an explicit stack.
Recursive walk over a caller-supplied document has no depth cap Libs_MongoDB/src/anywheresoftware/mongo/MapCodec.java:196— `getDocumentId` is not private, takes a value from its caller (line 98) and hands it on to `writeIterable`, which recurses at line 196 through `writeValue` and back with a piece of `list` — and nowhere in the walk is a depth or nesting counter compared with a bound, nor is the parser that builds the document given a nesting limit in this file. The walk therefore spends one stack frame (more through a lambda or a stream) per LEVEL of the value it is handed, so the nesting of the caller's document — not this code — decides how deep the stack goes; javac turns no recursive call into a loop. On the JVM's default 1 MB thread stack a recursive walk throws `StackOverflowError` from about 500–2,000 levels on a cold first call and 6,000–17,000 once warmed up (OpenJDK 21 and 25). org.json, the W3C DOM, dom4j and StAX set no nesting limit of their own, Jackson before 2.15 none and 2.15+ 1,000 — on a cold JVM past the point the walk fails — and a `Map<String, Object>` tree is as deep as whatever built it. `StackOverflowError` is an `Error`, not an `Exception`: a `catch (Exception e)` around the call does not stop it, and the request or the thread dies with it. Thread a depth argument through `writeIterable` and reject the value past a fixed maximum, configure the parser's nesting limit (`StreamReadConstraints.maxNestingDepth`, SnakeYAML's `setNestingDepthLimit`), or rewrite the descent with an explicit stack.
D4 · Code Duplication· Members sharing a duplicated core (5 members, 50+ identical tokens) · ×4
Members sharing a duplicated core (5 members, 50+ identical tokens) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsService.java:34— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsService.java:34-59 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:50-70 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:77-95 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingService.java:46-64 | Libs_GoogleMaps/src/com/lynden/gmapsfx/zoom/MaxZoomService.java:43-63 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:59— Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:59-73 | Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:103-116 | Libs_jFX/src/anywheresoftware/b4j/objects/CheckboxWrapper.java:42-56 | Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:204-221 | Libs_jFX/src/anywheresoftware/b4j/objects/TreeViewWrapper.java:202-227 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/ChargeSkin.java:152— Libs_jGauges/src/eu/hansolo/medusa/skins/ChargeSkin.java:152-195 | Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:159-179 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:496-686 | Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:2274-2297 | Libs_jGauges/src/eu/hansolo/medusa/skins/TextClockSkin.java:150-187 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
Members sharing a duplicated core (5 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:458— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:458-535 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:458-538 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1012-1103 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:215-247 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:452-534 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication· Edited copy of a member (21 corresponding lines) · ×4
Edited copy of a member (21 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:964— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:964-984 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:905-928 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) Libs_B4XEncryption/src/anywheresoftware/b4x/object/B4XEncryption.java:47— Libs_B4XEncryption/src/anywheresoftware/b4x/object/B4XEncryption.java:47-70 | Libs_B4XEncryption/src/anywheresoftware/b4x/object/B4XEncryption.java:74-94 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:300— Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:300-320 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:421-443 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (21 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:376— Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:376-396 | Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:400-420 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (20 corresponding lines) · ×4
Edited copy of a member (20 corresponding lines) Libs_Net/src/org/apache/james/mime4j/codec/EncoderUtil.java:490— Libs_Net/src/org/apache/james/mime4j/codec/EncoderUtil.java:490-509 | Libs_Net/src/org/apache/james/mime4j/codec/EncoderUtil.java:516-535 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1559— Libs_JTidy/src/org/w3c/tidy/PPrint.java:1559-1578 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:1587-1609 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Libs_Net/src/org/apache/commons/net/io/CRLFLineReader.java:54— Libs_Net/src/org/apache/commons/net/io/CRLFLineReader.java:54-77 | Libs_Net/src/org/apache/commons/net/io/DotTerminatedMessageReader.java:231-250 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (20 corresponding lines) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:373— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:373-393 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:373-392 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 15+ corresponding lines) · ×4
Edited copies of one member (3 members, 15+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:416— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:416-434 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:413-427 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:408-424 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 15+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:147— Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:147-161 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:137-151 | Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:228-242 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 15+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:330— Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:330-344 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:277-291 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:182-196 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 15+ corresponding lines) Libs_XUI2D/src/org/jbox2d/common/BufferUtils.java:105— Libs_XUI2D/src/org/jbox2d/common/BufferUtils.java:105-119 | Libs_XUI2D/src/org/jbox2d/common/BufferUtils.java:122-136 | Libs_XUI2D/src/org/jbox2d/common/BufferUtils.java:139-153 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (13 corresponding lines) · ×4
Edited copy of a member (13 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Mat22.java:569— Libs_XUI2D/src/org/jbox2d/common/Mat22.java:569-581 | Libs_XUI2D/src/org/jbox2d/common/Mat33.java:274-289 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) Libs_Pi4J2/src/anywheresoftware/b4j/objects/Pi4JWrapper.java:46— Libs_Pi4J2/src/anywheresoftware/b4j/objects/Pi4JWrapper.java:46-58 | Libs_Pi4JWrapper/src/anywheresoftware/b4j/objects/GpioControllerWrapper.java:173-191 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) Libs_XUI2D/src/org/jbox2d/collision/Distance.java:547— Libs_XUI2D/src/org/jbox2d/collision/Distance.java:547-559 | Libs_XUI2D/src/org/jbox2d/collision/Distance.java:567-579 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (13 corresponding lines) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientComms.java:669— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientComms.java:669-681 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/CommsSender.java:145-158 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 14+ corresponding lines) · ×4
Edited copies of one member (3 members, 14+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3036— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3036-3049 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3072-3085 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3108-3121 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 14+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3441— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3441-3454 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3508-3521 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3667-3680 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 14+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Alarm.java:193— Libs_jGauges/src/eu/hansolo/medusa/Alarm.java:193-206 | Libs_jGauges/src/eu/hansolo/medusa/Section.java:392-408 | Libs_jGauges/src/eu/hansolo/medusa/TimeSection.java:318-332 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 14+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1150— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1150-1163 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1187-1200 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1224-1237 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 7+ corresponding lines) · ×4
Edited copies of one member (3 members, 7+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:199— Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:199-205 | Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:233-239 | Libs_jGauges/src/eu/hansolo/medusa/skins/WhiteSkin.java:195-201 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 7+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:185— Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:185-191 | Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:219-225 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:280-286 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 7+ corresponding lines) Libs_MqttBroker2/src/io/moquette/interception/BrokerInterceptor.java:105— Libs_MqttBroker2/src/io/moquette/interception/BrokerInterceptor.java:105-111 | Libs_MqttBroker2/src/io/moquette/interception/BrokerInterceptor.java:114-120 | Libs_MqttBroker2/src/io/moquette/interception/BrokerInterceptor.java:151-157 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 7+ corresponding lines) Libs_MqttBroker2/src/io/moquette/interception/BrokerInterceptor.java:96— Libs_MqttBroker2/src/io/moquette/interception/BrokerInterceptor.java:96-102 | Libs_MqttBroker2/src/io/moquette/interception/BrokerInterceptor.java:142-148 | Libs_MqttBroker2/src/io/moquette/interception/BrokerInterceptor.java:160-166 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (4 corresponding lines) · ×4
Edited copy of a member (4 corresponding lines) Libs_Pi4JWrapper/src/anywheresoftware/b4j/objects/GpioControllerWrapper.java:184— Libs_Pi4JWrapper/src/anywheresoftware/b4j/objects/GpioControllerWrapper.java:184-187 | Libs_Pi4JWrapper/src/anywheresoftware/b4j/objects/PiFaceWrapper.java:84-87 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Libs_Shell/src/org/apache/commons/exec/launcher/CommandLauncherImpl.java:38— Libs_Shell/src/org/apache/commons/exec/launcher/CommandLauncherImpl.java:38-41 | Libs_Shell/src/org/apache/commons/exec/launcher/Java13CommandLauncher.java:57-63 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/EdgeAndPolygonContact.java:48— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/EdgeAndPolygonContact.java:48-51 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/PolygonContact.java:46-49 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) Libs_XUI2D/src/anywheresoftware/b4a/objects/joints/B2DistanceJoint.java:41— Libs_XUI2D/src/anywheresoftware/b4a/objects/joints/B2DistanceJoint.java:41-46 | Libs_XUI2D/src/anywheresoftware/b4a/objects/joints/B2PrismaticJoint.java:45-48 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (25 lines × 2) Libs_MqttBroker2/src/io/moquette/broker/config/ConfigurationParser.java:75— Libs_MqttBroker2/src/io/moquette/broker/config/ConfigurationParser.java:75-99 | Libs_MqttBroker2/src/io/moquette/broker/security/ResourceAuthenticator.java:79-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 `Libs_MqttBroker2/src/io/moquette/broker/config/ConfigurationParser.java:75` 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 (25 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:284— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:284-308 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:264-288 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:284` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:283` calls `enableNode`, `getTitle`, `isEmpty` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:263` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (25 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:181— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:181-205 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:183-207 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:181` 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 (25 lines × 2) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:2028— Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:2028-2052 | Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:2106-2130 — 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 `Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:2028` 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 (24 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:846— Libs_JTidy/src/org/w3c/tidy/PPrint.java:846-869 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:918-941 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (24 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:167— Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:167-190 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:172-195 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:167` 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 (24 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:444— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:444-467 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:424-447 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:444` 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 (24 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:103— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:103-126 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingService.java:67-90 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingService.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingService.java:61` calls `toString` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:91` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13–14 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:57— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:57-70 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingService.java:52-64 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingService.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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 `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:57` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 first that the copies are not typed on the same thing: the declarations holding them bind `req` to `LocationElevationRequest` in one and `GeocoderRequest` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (13–14 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1791— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1791-1803 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2662-2675 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1791` 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–14 lines × 2) REDACTED:161— REDACTED:161-173 | REDACTED:230-243 — 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 `REDACTED:161` 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–14 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:273— Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:273-285 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:289-302 — 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 `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:273` 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) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:52— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:52-64 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:79-91 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingService.java:47-59 | Libs_GoogleMaps/src/com/lynden/gmapsfx/zoom/MaxZoomService.java:45-57 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingService.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `req` to `LocationElevationRequest` in one and `PathElevationRequest` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:66` calls `toString` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:93` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13 lines × 4) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:169— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:169-181 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:393-405 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:183-195 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:74-86 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
Duplicated block (13 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:100— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:100-112 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:101-113 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:104-116 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:102-114 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:116` calls `ofPattern`, `withLocale`, `getLocale` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:118` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:425— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:425-437 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:515-527 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:406-418 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileClockSkin.java:242-254 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:381— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:381-390 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:383-392 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:378-387 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:375-384 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (10 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:587— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:587-596 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:588-597 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1153-1162 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:586-595 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:587` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:784— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:784-793 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:786-795 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1349-1358 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:784-793 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:784` 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) Libs_XUI2D/src/org/jbox2d/pooling/arrays/FloatArray.java:36— Libs_XUI2D/src/org/jbox2d/pooling/arrays/FloatArray.java:36-45 | Libs_XUI2D/src/org/jbox2d/pooling/arrays/GeneratorArray.java:29-38 | Libs_XUI2D/src/org/jbox2d/pooling/arrays/IntArray.java:39-48 | Libs_XUI2D/src/org/jbox2d/pooling/arrays/Vec2Array.java:39-48 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once. 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 × 3) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1661— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1661-1669 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1797-1806 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2589-2597 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1661` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1660` calls `popInline` and `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2588` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 3) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2645— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2645-2653 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2733-2741 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2891-2899 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2645` 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) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:177— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:177-185 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:173-181 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:173-181 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:321— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:321-329 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:504-512 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:390-398 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 225 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:321` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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–9 lines × 2) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1758— Libs_JTidy/src/org/w3c/tidy/Lexer.java:1758-1765 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:1937-1945 — 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 `Libs_JTidy/src/org/w3c/tidy/Lexer.java:1758` 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–9 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:684— Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:684-692 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:349-356 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (8–9 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:816— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:816-824 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:844-851 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:816` 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–9 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:905— Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:905-913 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:934-941 — 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 `Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:905` 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 × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:670— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:670-677 | Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:351-358 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:575-582 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:637-644 | Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:299-306 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:670` 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 × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:101— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:101-108 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:109-116 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:105-112 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:110-117 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:113-120 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:102` calls `getSections`, `getAreas` and `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:99` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:161— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:161-168 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:167-174 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:167-174 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:165-172 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileClockSkin.java:140-147 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:164` calls `Circle`, `setFill` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:165` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:124— Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:124-132 | Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:111-118 | Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:184-191 | Libs_jGauges/src/eu/hansolo/medusa/skins/RoundLcdClockSkin.java:135-142 | Libs_jGauges/src/eu/hansolo/medusa/skins/TextClockSkin.java:113-120 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 6) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:287— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:287-291 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:394-398 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:466-470 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:499-503 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:510-514 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:522-526 — all 6 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.
Duplicated block (5 lines × 6) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:297— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:297-301 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:352-356 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:445-449 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:493-497 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:528-532 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:588-592 — all 6 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.
Duplicated block (5 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:199— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:199-203 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:236-240 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:243-247 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:193-197 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:239-243 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:242-246 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 6 call sites, so a change lands once.
Duplicated block (5 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:289— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:289-293 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:336-340 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:338-342 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:269-273 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:334-338 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:330-334 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:289` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:334` calls `getSectionsVisible`, `getAreasVisible` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:337` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Base64.decode (cognitive 21) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1168— Base64.decode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Base64.decode (cognitive 21) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1260— Base64.decode has cognitive complexity 21 (threshold 15). Drivers by points: error handling 5 (13 pts), if/else 3 (4 pts), loops 1 (3 pts), boolean chains 1 (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.
Base64.decode (cognitive 21) Libs_Net/src/org/apache/commons/net/util/Base64.java:537— Base64.decode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 8). 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.
D4 · Code Duplication· Members sharing a duplicated core (7 members, 50+ identical tokens) · ×3
Members sharing a duplicated core (7 members, 50+ identical tokens) Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:371— Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:371-391 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:592-605 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:656-670 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:688-702 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:999-1012 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:1030-1044 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:1062-1076 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
Members sharing a duplicated core (7 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:119— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:119-192 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:126-198 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:123-180 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:128-202 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:131-202 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:126-196 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileClockSkin.java:94-171 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
Members sharing a duplicated core (7 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:235— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:235-272 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:228-276 | Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:136-195 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:216-275 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:240-275 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:240-297 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:228-261 — These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times.
D4 · Code Duplication· Edited copy of a member (45 corresponding lines) · ×3
Edited copy of a member (45 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:225— Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:225-274 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:469-513 — These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (45 corresponding lines) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:852— Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:852-903 | Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1066-1110 — These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (45 corresponding lines) Libs_JTidy/src/org/w3c/tidy/Clean.java:1325— Libs_JTidy/src/org/w3c/tidy/Clean.java:1325-1378 | Libs_JTidy/src/org/w3c/tidy/Clean.java:1389-1433 — These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (37 corresponding lines) · ×3
Edited copy of a member (37 corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:269— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:269-305 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:160-204 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (37 corresponding lines) REDACTED:166— REDACTED:166-202 | REDACTED:236-277 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (37 corresponding lines) Libs_JTidy/src/org/w3c/tidy/Clean.java:754— Libs_JTidy/src/org/w3c/tidy/Clean.java:754-790 | Libs_JTidy/src/org/w3c/tidy/Clean.java:798-838 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (17 corresponding lines) · ×3
Edited copy of a member (17 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:589— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:589-613 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:904-920 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/AccordionWrapper.java:50— Libs_jFX/src/anywheresoftware/b4j/objects/AccordionWrapper.java:50-66 | Libs_jFX/src/anywheresoftware/b4j/objects/TabPaneWrapper.java:49-65 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (17 corresponding lines) Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:105— Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:105-121 | Libs_JTidy/src/org/w3c/tidy/DOMDocumentImpl.java:136-152 — These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (7 members, 10+ corresponding lines) · ×3
Edited copies of one member (7 members, 10+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:927— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:927-936 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:955-964 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:983-992 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1012-1021 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1032-1041 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1705-1714 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1797-1806 — These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart.
Edited copies of one member (7 members, 10+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Section.java:126— Libs_jGauges/src/eu/hansolo/medusa/Section.java:126-135 | Libs_jGauges/src/eu/hansolo/medusa/Section.java:154-163 | Libs_jGauges/src/eu/hansolo/medusa/Section.java:182-191 | Libs_jGauges/src/eu/hansolo/medusa/Section.java:212-221 | Libs_jGauges/src/eu/hansolo/medusa/Section.java:242-251 | Libs_jGauges/src/eu/hansolo/medusa/Section.java:271-280 | Libs_jGauges/src/eu/hansolo/medusa/Section.java:299-308 — These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart.
Edited copies of one member (7 members, 10+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1857— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1857-1867 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1998-2007 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:2030-2040 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2087-2097 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:4914-4924 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:5242-5251 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:5274-5284 — These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart.
Duplicated block (23 lines × 2) Libs_WebSocketClient/src/anywheresoftware/b4j/object/WebSocketClientWrapper.java:124— Libs_WebSocketClient/src/anywheresoftware/b4j/object/WebSocketClientWrapper.java:124-146 | Libs_WebSocketClient/src/anywhersoftware/b4j/objects/WebSocketClientWrapper.java:114-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:694— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:694-716 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:744-766 — 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 `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:694` 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 × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:617— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:617-639 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:615-637 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:617` 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 (17 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:365— Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:365-381 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:492-508 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:582-598 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:462-478 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:599` calls `relocate`, `getLayoutBounds`, `getWidth` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:382` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (17 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:304— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:304-320 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:308-324 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:304-320 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:301-317 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:304` 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 × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1180— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1180-1196 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1192-1208 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1914-1930 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1189-1205 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1180` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1179` calls `setFill`, `getSubTitleColor` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1188` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (15 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:130— Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:130-144 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:135-149 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:138-152 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:133-147 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 201 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:130` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:145` calls `setFill`, `getHourColor` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:150` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (15 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:233— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:233-247 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:240-254 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:236-250 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:239-253 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1139— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1139-1153 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1151-1165 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1873-1887 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1149-1163 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1139` 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) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2530— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2530-2540 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2764-2774 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2953-2963 — 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. 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 (11 lines × 3) Libs_XUI2D/src/org/jbox2d/common/BufferUtils.java:109— Libs_XUI2D/src/org/jbox2d/common/BufferUtils.java:109-119 | Libs_XUI2D/src/org/jbox2d/common/BufferUtils.java:126-136 | Libs_XUI2D/src/org/jbox2d/common/BufferUtils.java:143-153 — 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 `Libs_XUI2D/src/org/jbox2d/common/BufferUtils.java:109` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 first that the copies are not typed on the same thing: the declarations holding them bind `ray` to `T[]` in one and `int[]` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (11 lines × 3) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttSubscribe.java:111— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttSubscribe.java:111-121 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttUnsubscribe.java:89-99 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttWireMessage.java:273-284 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
Duplicated block (10–11 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:552— Libs_JTidy/src/org/w3c/tidy/PPrint.java:552-562 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:1099-1108 — 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 `Libs_JTidy/src/org/w3c/tidy/PPrint.java:552` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (10–11 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1449— Libs_JTidy/src/org/w3c/tidy/PPrint.java:1449-1459 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:1719-1728 — 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–11 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:239— Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:239-248 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:402-412 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java: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 (8–9 lines × 5) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsService.java:38— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsService.java:38-45 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:54-62 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:81-89 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingService.java:49-57 | Libs_GoogleMaps/src/com/lynden/gmapsfx/zoom/MaxZoomService.java:47-55 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingService.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `req` to `DirectionsRequest` in one and `LocationElevationRequest` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:66` calls `toString` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:93` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8–9 lines × 5) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:199— Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:199-207 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:126-133 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:90-98 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:164-172 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:251-259 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8–9 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:215— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:215-223 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:201-208 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:227-235 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:227-235 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:215-223 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:215` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:208` calls `redraw`, `equals` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:223` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:670— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:670-676 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:934-940 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:323-329 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:575-581 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:637-643 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:926-932 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:670` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:933` calls `getKnobPosition` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:330` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:379— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:379-385 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:359-365 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:486-492 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:576-582 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:456-462 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileClockSkin.java:308-314 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:379` 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 × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:661— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:661-667 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:674-680 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:681-689 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:725-731 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:738-744 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:745-753 — all 6 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. 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 (2–7 lines × 8) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:600— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:600-601 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:605-611 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:642-643 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:649-655 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:700-701 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:711-712 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:742-743 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:753-754 — all 8 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. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:611` calls `sin`, `toRadians` and `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:601` does not — after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (2–7 lines × 8) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:915— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:915-918 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:939-940 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1028-1034 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1052-1053 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1727-1730 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1751-1752 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1026-1032 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1050-1051 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (2–7 lines × 8) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1166— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1166-1167 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1171-1177 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1208-1209 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1215-1221 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1266-1267 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1277-1278 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1307-1308 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1318-1319 — all 8 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. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1177` calls `sin`, `toRadians` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1167` does not — after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 5) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:292— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:292-297 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:451-456 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:515-520 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:570-575 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:602-607 — all 5 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.
Duplicated block (6 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:207— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:207-212 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:193-198 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:215-220 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:215-220 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:205-210 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:207` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:211` calls `setVisible`, `isDateVisible`, `setManaged` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:213` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 5) Libs_jFX/src/anywheresoftware/b4j/objects/AccordionWrapper.java:151— Libs_jFX/src/anywheresoftware/b4j/objects/AccordionWrapper.java:151-156 | Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:127-132 | Libs_jFX/src/anywheresoftware/b4j/objects/TabPaneWrapper.java:153-158 | Libs_jFX/src/anywheresoftware/b4j/objects/TreeTableViewWrapper.java:346-351 | Libs_jFX/src/anywheresoftware/b4j/objects/TreeViewWrapper.java:178-183 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 5 call sites, so a change lands once. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:136` calls `getParentMenu`, `ConvertToWrapper`, `MenuWrapper` and `Libs_jFX/src/anywheresoftware/b4j/objects/TreeViewWrapper.java:184` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 5) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:295— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:295-300 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:491-496 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:526-531 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:574-579 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:609-613 — all 5 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.
Duplicated block (5 lines × 5) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:349— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:349-353 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:451-455 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:561-565 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:570-574 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:602-606 — all 5 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.
Duplicated block (5 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:257— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:257-261 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:251-255 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:261-265 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:243-247 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:262-266 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:257` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:262` calls `setLineWidth` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:267` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (4–5 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:281— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:281-285 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:376-379 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:464-468 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:356-360 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:376` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:285` calls `getElements`, `add`, `MoveTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:379` does not — after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (4–5 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:863— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:863-867 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:868-871 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1428-1432 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:864-868 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:863` 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 (4–5 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:380— Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:380-384 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:400-404 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:415-418 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:426-430 — all 4 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:380` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
AC3 · Page structure· Page without a main landmark · ×2
Page without a main landmark REDACTED:17— No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
Page without a main landmark Libs_GoogleMaps/src/html/maps-debug.html:2— No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>.
Near-duplicate member pair (25 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:301— Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:301-380 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:265-308 — These two members are variants of one another: 25 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (25 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:382— Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:382-461 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:310-353 — These two members are variants of one another: 25 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Edited copy of a member (49 corresponding lines) · ×2
Edited copy of a member (49 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:180— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:180-228 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:182-230 — These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (49 corresponding lines) REDACTED:159— REDACTED:159-207 | REDACTED:229-282 — These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (48 corresponding lines) · ×2
Edited copy of a member (48 corresponding lines) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1861— Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1861-1908 | Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1917-1973 — These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (48 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:83— Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:83-130 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java:73-123 — These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (53 corresponding lines) · ×2
Edited copy of a member (53 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:790— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:790-852 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:751-803 — These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (53 corresponding lines) Libs_JTidy/src/org/w3c/tidy/PPrint.java:347— Libs_JTidy/src/org/w3c/tidy/PPrint.java:347-403 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:411-463 — These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (35 corresponding lines) · ×2
Edited copy of a member (35 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1108— Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1108-1144 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1147-1181 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (35 corresponding lines) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1496— Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1496-1538 | Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1557-1591 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 21+ corresponding lines) · ×2
Edited copies of one member (3 members, 21+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:436— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:436-456 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:986-1010 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:426-450 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 21+ corresponding lines) Libs_GoogleMaps/src/anywheresoftware/b4j/googlemaps/GoogleMapWrapper.java:497— Libs_GoogleMaps/src/anywheresoftware/b4j/googlemaps/GoogleMapWrapper.java:497-517 | Libs_GoogleMaps/src/anywheresoftware/b4j/googlemaps/GoogleMapWrapper.java:546-569 | Libs_GoogleMaps/src/anywheresoftware/b4j/googlemaps/GoogleMapWrapper.java:623-646 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (40 corresponding lines) · ×2
Edited copy of a member (40 corresponding lines) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:107— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:107-147 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:113-152 — These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (40 corresponding lines) Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:268— Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:268-325 | Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:453-492 — These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (36 corresponding lines) · ×2
Edited copy of a member (36 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/config/ConfigurationParser.java:71— Libs_MqttBroker2/src/io/moquette/broker/config/ConfigurationParser.java:71-114 | Libs_MqttBroker2/src/io/moquette/broker/security/ResourceAuthenticator.java:77-112 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (36 corresponding lines) REDACTED:355— REDACTED:355-396 | REDACTED:403-438 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (28 corresponding lines) · ×2
Edited copy of a member (28 corresponding lines) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:162— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:162-190 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:170-197 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (28 corresponding lines) Libs_Net/src/org/apache/commons/net/io/FromNetASCIIInputStream.java:157— Libs_Net/src/org/apache/commons/net/io/FromNetASCIIInputStream.java:157-188 | Libs_Net/src/org/apache/commons/net/io/ToNetASCIIInputStream.java:132-159 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 8+ corresponding lines) · ×2
Edited copies of one member (4 members, 8+ corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Mat22.java:451— Libs_XUI2D/src/org/jbox2d/common/Mat22.java:451-459 | Libs_XUI2D/src/org/jbox2d/common/Mat22.java:472-479 | Libs_XUI2D/src/org/jbox2d/common/Mat22.java:497-504 | Libs_XUI2D/src/org/jbox2d/common/Mat22.java:518-525 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
Edited copies of one member (4 members, 8+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:327— Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:327-334 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:337-344 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:347-354 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:357-364 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 16+ corresponding lines) · ×2
Edited copies of one member (3 members, 16+ corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/DatePickerWrapper.java:47— Libs_jFX/src/anywheresoftware/b4j/objects/DatePickerWrapper.java:47-65 | Libs_jFX/src/anywheresoftware/b4j/objects/ListViewWrapper.java:50-67 | Libs_jFX/src/anywheresoftware/b4j/objects/SliderWrapper.java:45-60 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 16+ corresponding lines) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1461— Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1461-1476 | Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1602-1618 | Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1630-1646 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 9+ corresponding lines) · ×2
Edited copies of one member (3 members, 9+ corresponding lines) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRoute.java:73— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRoute.java:73-81 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderGeometry.java:66-74 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderGeometry.java:76-84 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 9+ corresponding lines) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:94— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:94-102 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:104-112 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:42-50 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (3 corresponding lines) · ×2
Edited copy of a member (3 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Transform.java:85— Libs_XUI2D/src/org/jbox2d/common/Transform.java:85-87 | Libs_XUI2D/src/org/jbox2d/common/Transform.java:95-99 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (3 corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Mat22.java:434— Libs_XUI2D/src/org/jbox2d/common/Mat22.java:434-437 | Libs_XUI2D/src/org/jbox2d/common/Mat33.java:112-114 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (44–45 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:886— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:886-929 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:933-977 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:933` 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 (44–45 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:976— Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:976-1019 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1032-1076 — 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 `Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1032` 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 (33 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:2109— Libs_JTidy/src/org/w3c/tidy/PPrint.java:2109-2141 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:2409-2441 — 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 `Libs_JTidy/src/org/w3c/tidy/PPrint.java:2109` 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 (33 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:813— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:813-845 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:766-798 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (32 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:116— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:116-147 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:121-152 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java` and `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:116` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (32 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:229— Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:229-260 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:472-503 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (28–29 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:616— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:616-644 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:676-703 — 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 `Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:616` 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 (28–29 lines × 2) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1862— Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1862-1890 | Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1927-1954 — 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 `Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1862` 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 (4–26 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:750— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:750-775 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:716-741 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:366-369 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:366` calls `setControlX2`, `setControlY2` and `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:750` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (4–26 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:300— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:300-325 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:483-508 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:372-375 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 225 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:372` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:298` calls `getElements`, `add`, `ClosePath` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:372` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (22 lines × 2) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3148— Libs_JTidy/src/org/w3c/tidy/Lexer.java:3148-3169 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:3174-3195 — 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 `Libs_JTidy/src/org/w3c/tidy/Lexer.java:3148` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_JTidy/src/org/w3c/tidy/Lexer.java:3146` calls `addCharToLexer` and `Libs_JTidy/src/org/w3c/tidy/Lexer.java:3172` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (22 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:498— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:498-519 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:542-563 — 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:540` calls `getCustomTickLabelsEnabled` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:496` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (21 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:471— Libs_JTidy/src/org/w3c/tidy/PPrint.java:471-491 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:506-526 — 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 `Libs_JTidy/src/org/w3c/tidy/PPrint.java:471` 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 (21 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:409— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:409-429 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:389-409 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (20 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/DirectionsPane.java:172— Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/DirectionsPane.java:172-191 | Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/GoogleMap.java:324-343 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/DirectionsPane.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/GoogleMap.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/DirectionsPane.java:199` calls `panBy`, `invokeJavascript` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/GoogleMap.java:352` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (20 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:547— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:547-566 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:604-625 — 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 (17–18 lines × 3) REDACTED:191— REDACTED:191-207 | REDACTED:266-282 | REDACTED:421-438 — 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 `REDACTED:191` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `REDACTED:265` calls `printStackTrace` and `REDACTED:190` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (17–18 lines × 3) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:547— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:547-564 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:613-629 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:673-689 — 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 `Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:547` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:565` calls `add`, `cross`, `subLocal` and `Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:631` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (18 lines × 3) Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:149— Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:149-166 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:132-149 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:171-188 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:130` calls `popVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:147` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (18 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:779— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:779-796 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1344-1361 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:779-796 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java` as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 717 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:779` 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–18 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/util/MarkerImageFactory.java:60— Libs_GoogleMaps/src/com/lynden/gmapsfx/util/MarkerImageFactory.java:60-77 | Libs_GoogleMaps/src/com/lynden/gmapsfx/util/MarkerImageFactory.java:86-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 `Libs_GoogleMaps/src/com/lynden/gmapsfx/util/MarkerImageFactory.java:60` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. 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 (16–18 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:745— Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:745-760 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:824-841 — 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 (17 lines × 5) Libs_JTidy/src/org/w3c/tidy/Lexer.java:2634— Libs_JTidy/src/org/w3c/tidy/Lexer.java:2634-2650 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2658-2674 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2682-2698 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2764-2780 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2797-2813 — all 5 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 `Libs_JTidy/src/org/w3c/tidy/Lexer.java:2634` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_JTidy/src/org/w3c/tidy/Lexer.java:2796` calls `ungetChar` and `Libs_JTidy/src/org/w3c/tidy/Lexer.java:2633` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (17 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1151— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1151-1167 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1163-1179 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:879-895 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1885-1901 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1161-1177 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1151` 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 (25 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:848— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:848-872 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1413-1437 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:849-873 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java` as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 717 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (25 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java:596— Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java:596-620 | Libs_jGauges/src/eu/hansolo/medusa/FGaugeBuilder.java:158-182 | Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java:1151-1175 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java` and `Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java:596` 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 × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:130— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:130-143 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:127-140 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:132-145 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:135-148 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:130-143 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:130` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (14 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:379— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:379-392 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:359-372 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:486-499 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:576-589 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:456-469 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:379` 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–13 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:831— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:831-842 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:929-941 — 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 `Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:831` 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–13 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:494— Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:494-505 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:556-568 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:494` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with 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 (12 lines × 5) Libs_JTidy/src/org/w3c/tidy/Lexer.java:2106— Libs_JTidy/src/org/w3c/tidy/Lexer.java:2106-2117 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2184-2195 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2224-2235 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2242-2253 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2260-2271 — all 5 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 `Libs_JTidy/src/org/w3c/tidy/Lexer.java:2106` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_JTidy/src/org/w3c/tidy/Lexer.java:2200` calls `readChar` and `Libs_JTidy/src/org/w3c/tidy/Lexer.java:2238` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 5) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:178— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:178-189 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:402-413 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:192-203 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:83-94 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:244-255 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 5 call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:204` calls `popVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:191` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (12 lines × 4) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1000— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1000-1011 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3177-3188 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3234-3245 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3311-3322 — all 4 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. 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 × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:213— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:213-224 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:225-236 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:225-236 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:213-224 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:213` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:211` calls `setVisible`, `isDateVisible`, `setManaged` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:212` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11–12 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:554— Libs_JTidy/src/org/w3c/tidy/PPrint.java:554-565 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:647-657 — 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 `Libs_JTidy/src/org/w3c/tidy/PPrint.java:554` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_JTidy/src/org/w3c/tidy/PPrint.java:552` calls `addC` and `Libs_JTidy/src/org/w3c/tidy/PPrint.java:646` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11–12 lines × 2) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/CommsTokenStore.java:178— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/CommsTokenStore.java:178-189 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/CommsTokenStore.java:203-213 — 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 `Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/CommsTokenStore.java:178` 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 × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:368— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:368-378 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:370-380 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:365-375 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:362-372 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:368` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:663— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:663-673 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:664-674 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1229-1239 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:662-672 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:663` 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–11 lines × 2) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:571— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:571-579 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:603-613 — 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 (9–11 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:978— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:978-986 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:970-980 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java` as WHOLE FILES: this scan already matched 74 separate duplicated blocks between them, totalling at least 818 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:978` 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 (10 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:338— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:338-347 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:385-394 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:365-374 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:492-501 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:582-591 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:462-471 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:432— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:432-441 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:767-776 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:769-778 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:412-421 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1332-1341 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:767-776 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 6 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (9 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:106— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:106-114 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:102-110 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:107-115 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:110-118 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:108-116 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:113` calls `ofPattern`, `withLocale`, `getLocale` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:118` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (9 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:344— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:344-352 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:318-326 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:439-447 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:529-537 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:420-428 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:344` 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 (5–8 lines × 8) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:286— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:286-290 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:301-305 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:308-312 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:322-326 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:348-352 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:363-370 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:272-276 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:292-296 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:286` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:297` calls `getElements`, `add`, `LineTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:291` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5–8 lines × 8) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:330— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:330-334 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:345-349 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:389-393 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:403-407 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:429-433 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:444-451 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:317-321 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:337-341 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:330` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:342` calls `getElements`, `add`, `LineTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:335` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6–7 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:289— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:289-295 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:189-194 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:198` calls `pushVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:300` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6–7 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2409— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2409-2414 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2424-2430 — 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 `Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2409` 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 (2–7 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:508— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:508-509 | Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:512-518 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:488-489 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:492-498 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:508` 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 (2–7 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:895— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:895-901 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:896-897 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1460-1466 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:895-896 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:895` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:895` calls `Stop`, `hsb` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:896` does not — after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (2–7 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:395— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:395-396 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:700-701 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:706-712 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:375-376 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:698-699 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:704-710 — 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. 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 (2–7 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:419— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:419-420 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:743-744 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:749-755 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:399-400 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:741-742 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:747-753 — 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. 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 (6 lines × 6) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:287— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:287-292 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:405-410 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:466-471 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:499-504 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:510-515 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:582-587 — all 6 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.
Duplicated block (6 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:334— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:334-339 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:591-596 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:592-597 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:314-319 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1157-1162 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:590-595 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:334` 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 × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:338— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:338-344 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:340-346 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:222-228 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:336-342 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:332-338 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:338` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:347` calls `clamp`, `getAngleRange` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:343` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7 lines × 5) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttPubAck.java:30— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttPubAck.java:30-36 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttPubComp.java:30-36 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttPubRec.java:30-36 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttPubRel.java:44-50 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttUnsubAck.java:30-36 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 5 call sites, so a change lands once.
Duplicated block (3–6 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:512— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:512-517 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:515-520 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1078-1083 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:226-228 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:511-516 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:512` 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 (3–6 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:506— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:506-509 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:507-512 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1070-1075 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:222-224 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:503-508 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:506` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:505` calls `setLineWidth`, `setLineCap` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:507` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (2–6 lines × 4) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:710— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:710-711 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:719-724 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:760-761 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:769-774 — all 4 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 `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:719` 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. 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 (2–6 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:299— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:299-304 | Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:444-445 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:326-331 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:438-439 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:299` 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 (5 lines × 7) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:297— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:297-301 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:445-449 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:455-459 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:493-497 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:519-523 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:528-532 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:576-580 — all 7 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.
Duplicated block (5 lines × 7) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:382— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:382-386 | Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:227-231 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:362-366 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:489-493 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:579-583 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:459-463 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileClockSkin.java:311-315 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (2–5 lines × 5) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:323— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:323-327 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:419-424 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:331-335 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:408-409 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:220-225 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 5 call sites, so a change lands once.
Duplicated block (2–5 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:939— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:939-942 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:945-946 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1054-1058 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1751-1754 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1052-1056 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1058` calls `getPath` and `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:946` does not — after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (4–5 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:255— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:255-259 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:262-266 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:237-240 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:258-262 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:256-260 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:259` calls `enableNode`, `getUnit`, `isEmpty` and `Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:240` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (4–5 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:552— Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:552-556 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:561-564 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:568-572 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:586-590 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:600-604 — all 5 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:552` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with 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 (4–5 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:282— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:282-285 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:302-306 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:266-270 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java: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. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:306` calls `getElements`, `add`, `MoveTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:285` does not — after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (4–5 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:326— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:326-329 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:383-387 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:311-315 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java: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. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:387` calls `getElements`, `add`, `MoveTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:329` does not — after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Low cohesion: GameViewHelper (LCOM4 4) Libs_jGameViewHelper/src/anywheresoftware/b4j/object/GameViewHelper.java:43— GameViewHelper's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: Collision (LCOM4 4) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:46— Collision's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
X24 · Document value interpolated into markup unescaped· Untrusted text written into markup unescaped · ×2
Untrusted text written into markup unescaped Libs_GoogleMaps/src/html/clustered/js/markerclusterer.js:1071— `this.sums_.text` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
Untrusted text written into markup unescaped Libs_GoogleMaps/src/html/clustered/js/markerclusterer.js:1185— `sums.text` is text this program did not author, and it is written into the text of an element through `innerHTML` with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework's escaping output, or sanitise it if it must stay markup.
GaugeBuilder.build (cyclomatic 186) Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java:825— GaugeBuilder.build has cyclomatic complexity 186 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
TidyUtils.isXMLLetter (cyclomatic 156) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:272— TidyUtils.isXMLLetter has cyclomatic complexity 156 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
Lexer.getToken (cyclomatic 146) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1912— Lexer.getToken has cyclomatic complexity 146 (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.
PPrint.printChar (cyclomatic 135) Libs_JTidy/src/org/w3c/tidy/PPrint.java:539— PPrint.printChar has cyclomatic complexity 135 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
Helper.drawRadialTickMarks (cyclomatic 117) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:461— Helper.drawRadialTickMarks has cyclomatic complexity 117 (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.
QuarterSkin.drawTickMarks (cyclomatic 115) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:429— QuarterSkin.drawTickMarks has cyclomatic complexity 115 (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.
ParseInline.parse (cyclomatic 104) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1066— ParseInline.parse has cyclomatic complexity 104 (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.
ParseBlock.parse (cyclomatic 93) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2012— ParseBlock.parse has cyclomatic complexity 93 (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.
ClockBuilder.build (cyclomatic 93) Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java:423— ClockBuilder.build has cyclomatic complexity 93 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
TidyUtils.isXMLNamechar (cyclomatic 86) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:488— TidyUtils.isXMLNamechar has cyclomatic complexity 86 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
PPrint.printTree (cyclomatic 72) Libs_JTidy/src/org/w3c/tidy/PPrint.java:2084— PPrint.printTree has cyclomatic complexity 72 (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.
ParseBody.parse (cyclomatic 58) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:695— ParseBody.parse has cyclomatic complexity 58 (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.
SSLSocketFactoryFactory.getSSLContext (cyclomatic 57) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1106— SSLSocketFactoryFactory.getSSLContext has cyclomatic complexity 57 (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.
Lexer.parseValue (cyclomatic 56) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3210— Lexer.parseValue has cyclomatic complexity 56 (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.
EPCollider.collide (cyclomatic 51) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1004— EPCollider.collide has cyclomatic complexity 51 (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.
QuarterSkin.drawAreasAndSections (cyclomatic 51) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1012— QuarterSkin.drawAreasAndSections has cyclomatic complexity 51 (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.
Report.warning (cyclomatic 49) Libs_JTidy/src/org/w3c/tidy/Report.java:1215— Report.warning has cyclomatic complexity 49 (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.
World.solveTOI (cyclomatic 47) Libs_XUI2D/src/org/jbox2d/dynamics/World.java:1234— World.solveTOI has cyclomatic complexity 47 (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.
HSkin.resize (cyclomatic 43) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:930— HSkin.resize has cyclomatic complexity 43 (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.
Tidy.mainExec (cyclomatic 42) Libs_JTidy/src/org/w3c/tidy/Tidy.java:739— Tidy.mainExec has cyclomatic complexity 42 (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.
Tidy.parse (cyclomatic 39) Libs_JTidy/src/org/w3c/tidy/Tidy.java:390— Tidy.parse has cyclomatic complexity 39 (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.
VSkin.resize (cyclomatic 39) Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:922— VSkin.resize has cyclomatic complexity 39 (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.
Clean.cleanWord2000 (cyclomatic 37) Libs_JTidy/src/org/w3c/tidy/Clean.java:2110— Clean.cleanWord2000 has cyclomatic complexity 37 (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.
Scalr.resize (cyclomatic 37) Libs_jXUI/src/org/imgscalr/Scalr.java:1574— Scalr.resize has cyclomatic complexity 37 (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.
GaugeSkin.drawAreasAndSections (cyclomatic 37) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:458— GaugeSkin.drawAreasAndSections has cyclomatic complexity 37 (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.
HSkin.drawAreasAndSections (cyclomatic 37) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:458— HSkin.drawAreasAndSections has cyclomatic complexity 37 (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.
VSkin.drawAreasAndSections (cyclomatic 37) Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:452— VSkin.drawAreasAndSections has cyclomatic complexity 37 (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.
ParseHTML.parse (cyclomatic 36) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:269— ParseHTML.parse has cyclomatic complexity 36 (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.
Lexer.fixDocType (cyclomatic 35) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1467— Lexer.fixDocType has cyclomatic complexity 35 (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.
ParseRow.parse (cyclomatic 34) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2887— ParseRow.parse has cyclomatic complexity 34 (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.
ParticleSystem.solveZombie (cyclomatic 34) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1211— ParticleSystem.solveZombie has cyclomatic complexity 34 (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.
QuarterSkin.resize (cyclomatic 33) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1651— QuarterSkin.resize has cyclomatic complexity 33 (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.
EncodingUtils.decodeUTF8BytesToChar (cyclomatic 31) Libs_JTidy/src/org/w3c/tidy/EncodingUtils.java:705— EncodingUtils.decodeUTF8BytesToChar has cyclomatic complexity 31 (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.
QuarterSkin.resizeValueText (cyclomatic 31) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1511— QuarterSkin.resizeValueText has cyclomatic complexity 31 (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.
Lexer.getCDATA (cyclomatic 30) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1748— Lexer.getCDATA has cyclomatic complexity 30 (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.
ParseRowGroup.parse (cyclomatic 30) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2730— ParseRowGroup.parse has cyclomatic complexity 30 (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.
PPrint.printAttrValue (cyclomatic 29) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1005— PPrint.printAttrValue has cyclomatic complexity 29 (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.
Report.errorSummary (cyclomatic 29) Libs_JTidy/src/org/w3c/tidy/Report.java:1514— Report.errorSummary has cyclomatic complexity 29 (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.
World.solve (cyclomatic 29) Libs_XUI2D/src/org/jbox2d/dynamics/World.java:1063— World.solve has cyclomatic complexity 29 (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.
PPrint.printXMLTree (cyclomatic 28) Libs_JTidy/src/org/w3c/tidy/PPrint.java:2381— PPrint.printXMLTree has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Lexer.parseEntity (cyclomatic 27) Libs_JTidy/src/org/w3c/tidy/Lexer.java:652— Lexer.parseEntity has cyclomatic complexity 27 (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.
ParseTableTag.parse (cyclomatic 27) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2509— ParseTableTag.parse has cyclomatic complexity 27 (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.
ModernSkin.highlightValue (cyclomatic 27) Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:361— ModernSkin.highlightValue has cyclomatic complexity 27 (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.
LayoutBuilder.loadLayoutHeader (cyclomatic 26) Libs_jFX/src/anywheresoftware/b4j/objects/LayoutBuilder.java:117— LayoutBuilder.loadLayoutHeader has cyclomatic complexity 26 (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.
StringUtils.LoadCSV2 (cyclomatic 26) Libs_StringUtils/src/anywheresoftware/b4a/objects/StringUtils.java:142— StringUtils.LoadCSV2 has cyclomatic complexity 26 (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.
Lexer.parseAttribute (cyclomatic 26) Libs_JTidy/src/org/w3c/tidy/Lexer.java:2959— Lexer.parseAttribute has cyclomatic complexity 26 (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.
1.run (cyclomatic 25) Libs_Net/src/anywheresoftware/b4a/net/SMTPWrapper.java:264— 1.run has cyclomatic complexity 25 (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.
Lexer.setXHTMLDocType (cyclomatic 25) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1228— Lexer.setXHTMLDocType has cyclomatic complexity 25 (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.
OS.isOs (cyclomatic 25) Libs_Shell/src/org/apache/commons/exec/OS.java:185— OS.isOs has cyclomatic complexity 25 (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.
PolygonShape.set (cyclomatic 25) Libs_XUI2D/src/org/jbox2d/collision/shapes/PolygonShape.java:120— PolygonShape.set has cyclomatic complexity 25 (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.
AIN.run (cyclomatic 24) Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/AsyncStreams.java:225— AIN.run has cyclomatic complexity 24 (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.
Island.solve (cyclomatic 24) Libs_XUI2D/src/org/jbox2d/dynamics/Island.java:241— Island.solve has cyclomatic complexity 24 (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.
VoronoiDiagram.generate (cyclomatic 24) Libs_XUI2D/src/org/jbox2d/particle/VoronoiDiagram.java:115— VoronoiDiagram.generate has cyclomatic complexity 24 (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.
PPrint.printScriptStyle (cyclomatic 23) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1865— PPrint.printScriptStyle has cyclomatic complexity 23 (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.
FTPClient._openDataConnection_ (cyclomatic 23) Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:639— FTPClient._openDataConnection_ has cyclomatic complexity 23 (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.
Clock.checkAlarms (cyclomatic 23) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:2048— Clock.checkAlarms has cyclomatic complexity 23 (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.
FGaugeBuilder.build (cyclomatic 23) Libs_jGauges/src/eu/hansolo/medusa/FGaugeBuilder.java:137— FGaugeBuilder.build has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ServerWrapper.Start (cyclomatic 22) Libs_Server/src/anywheresoftware/b4j/object/ServerWrapper.java:174— ServerWrapper.Start has cyclomatic complexity 22 (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.
World.drawDebugData (cyclomatic 22) Libs_XUI2D/src/org/jbox2d/dynamics/World.java:683— World.drawDebugData has cyclomatic complexity 22 (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.
DigitalSkin.drawTickMarks (cyclomatic 22) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:317— DigitalSkin.drawTickMarks has cyclomatic complexity 22 (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.
NodeWrapper.SetSize (cyclomatic 21) Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:471— NodeWrapper.SetSize has cyclomatic complexity 21 (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.
ClientComms.shutdownConnection (cyclomatic 21) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientComms.java:264— ClientComms.shutdownConnection has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
MLSxEntryParser.parseFTPEntry (cyclomatic 21) Libs_Net/src/org/apache/commons/net/ftp/parser/MLSxEntryParser.java:95— MLSxEntryParser.parseFTPEntry has cyclomatic complexity 21 (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.
GaugeSkin.handleEvents (cyclomatic 21) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:303— GaugeSkin.handleEvents has cyclomatic complexity 21 (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.
HSkin.handleEvents (cyclomatic 21) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:307— HSkin.handleEvents has cyclomatic complexity 21 (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.
QuarterSkin.handleEvents (cyclomatic 21) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:303— QuarterSkin.handleEvents has cyclomatic complexity 21 (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.
VSkin.handleEvents (cyclomatic 21) Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:300— VSkin.handleEvents has cyclomatic complexity 21 (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.
Common.NotInitialized (cyclomatic 20) jCore/src/anywheresoftware/b4a/keywords/Common.java:618— Common.NotInitialized has cyclomatic complexity 20 (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.
CheckColor.check (cyclomatic 20) Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:888— CheckColor.check has cyclomatic complexity 20 (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.
DOMNodeImpl.replaceChild (cyclomatic 20) Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:330— DOMNodeImpl.replaceChild has cyclomatic complexity 20 (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.
Lexer.findGivenVersion (cyclomatic 20) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1045— Lexer.findGivenVersion has cyclomatic complexity 20 (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.
ParseList.parse (cyclomatic 20) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1607— ParseList.parse has cyclomatic complexity 20 (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.
ParseDefList.parse (cyclomatic 20) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1749— ParseDefList.parse has cyclomatic complexity 20 (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.
ParsePre.parse (cyclomatic 20) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1886— ParsePre.parse has cyclomatic complexity 20 (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.
ParseNoFrames.parse (cyclomatic 20) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3053— ParseNoFrames.parse has cyclomatic complexity 20 (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.
GaugeSkin.drawKnob (cyclomatic 20) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:778— GaugeSkin.drawKnob has cyclomatic complexity 20 (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.
HSkin.drawKnob (cyclomatic 20) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:780— HSkin.drawKnob has cyclomatic complexity 20 (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.
QuarterSkin.drawKnob (cyclomatic 20) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1343— QuarterSkin.drawKnob has cyclomatic complexity 20 (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.
VSkin.drawKnob (cyclomatic 20) Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:778— VSkin.drawKnob has cyclomatic complexity 20 (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.
FXMLBuilder.setEventsAndVariables (cyclomatic 19) Libs_jFX/src/anywheresoftware/b4j/objects/FXMLBuilder.java:168— FXMLBuilder.setEventsAndVariables has cyclomatic complexity 19 (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.
B4XSerializator.writeObject (cyclomatic 19) Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/B4XSerializator.java:157— B4XSerializator.writeObject has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DirectionsRequest.convertToJavascriptString (cyclomatic 19) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRequest.java:109— DirectionsRequest.convertToJavascriptString has cyclomatic complexity 19 (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.
UnixFTPEntryParser.parseFTPEntry (cyclomatic 19) Libs_Net/src/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java:168— UnixFTPEntryParser.parseFTPEntry has cyclomatic complexity 19 (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.
ContactSolver.solveVelocityConstraints (cyclomatic 19) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:336— ContactSolver.solveVelocityConstraints has cyclomatic complexity 19 (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.
ParticleSystem.createParticleGroup (cyclomatic 19) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:294— ParticleSystem.createParticleGroup has cyclomatic complexity 19 (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.
ParticleSystem.solve (cyclomatic 19) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:702— ParticleSystem.solve has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
HSkin.drawMarkers (cyclomatic 19) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:574— HSkin.drawMarkers has cyclomatic complexity 19 (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.
LinearSkin.setBar (cyclomatic 19) Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:376— LinearSkin.setBar has cyclomatic complexity 19 (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.
VSkin.drawMarkers (cyclomatic 19) Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:570— VSkin.drawMarkers has cyclomatic complexity 19 (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.
NodeWrapper.buildFont (cyclomatic 18) Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:657— NodeWrapper.buildFont has cyclomatic complexity 18 (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.
Lexer.canPrune (cyclomatic 18) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3892— Lexer.canPrune has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
PPrint.printAttribute (cyclomatic 18) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1172— PPrint.printAttribute has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Base64.encode (cyclomatic 18) Libs_Net/src/org/apache/commons/net/util/Base64.java:451— Base64.encode has cyclomatic complexity 18 (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.
TimeOfImpact.timeOfImpact (cyclomatic 18) Libs_XUI2D/src/org/jbox2d/collision/TimeOfImpact.java:110— TimeOfImpact.timeOfImpact has cyclomatic complexity 18 (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.
DigitalSkin.setBar (cyclomatic 18) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:180— DigitalSkin.setBar has cyclomatic complexity 18 (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.
GaugeSkin.drawMarkers (cyclomatic 18) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:571— GaugeSkin.drawMarkers has cyclomatic complexity 18 (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.
GaugeSkin.drawNeedle (cyclomatic 18) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:903— GaugeSkin.drawNeedle has cyclomatic complexity 18 (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.
LinearSkin.resize (cyclomatic 18) Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:623— LinearSkin.resize has cyclomatic complexity 18 (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.
QuarterSkin.drawMarkers (cyclomatic 18) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1139— QuarterSkin.drawMarkers has cyclomatic complexity 18 (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.
SimpleDigitalSkin.setBar (cyclomatic 18) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:182— SimpleDigitalSkin.setBar has cyclomatic complexity 18 (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.
MenuBarWrapper.createMenuItem (cyclomatic 17) Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:295— MenuBarWrapper.createMenuItem 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.
Base64.encodeBytesToBytes (cyclomatic 17) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:906— Base64.encodeBytesToBytes 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.
InputStream.read (cyclomatic 17) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1727— InputStream.read 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.
CheckUrl.check (cyclomatic 17) Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:253— CheckUrl.check 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.
Lexer.parseServerInstruction (cyclomatic 17) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3099— Lexer.parseServerInstruction 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.
Node.repairDuplicateAttributes (cyclomatic 17) Libs_JTidy/src/org/w3c/tidy/Node.java:352— Node.repairDuplicateAttributes 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.
ParseHead.parse (cyclomatic 17) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:498— ParseHead.parse 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.
MqttWireMessage.createWireMessage (cyclomatic 17) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttWireMessage.java:166— MqttWireMessage.createWireMessage has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DefaultFTPFileEntryParserFactory.createFileEntryParser (cyclomatic 17) Libs_Net/src/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.java:98— DefaultFTPFileEntryParserFactory.createFileEntryParser has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
StringUtils.stringSubstitution (cyclomatic 17) Libs_Shell/src/org/apache/commons/exec/util/StringUtils.java:70— StringUtils.stringSubstitution 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.
CommandLine.translateCommandline (cyclomatic 17) Libs_Shell/src/org/apache/commons/exec/CommandLine.java:337— CommandLine.translateCommandline 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.
DynamicTree.balance (cyclomatic 17) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:668— DynamicTree.balance 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.
DynamicTree.raycast (cyclomatic 17) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:197— DynamicTree.raycast 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.
DynamicTreeFlatNodes.balance (cyclomatic 17) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:656— DynamicTreeFlatNodes.balance 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.
ContactManager.addPair (cyclomatic 17) Libs_XUI2D/src/org/jbox2d/dynamics/ContactManager.java:63— ContactManager.addPair 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.
ConicalGradient.getRoundImage (cyclomatic 17) Libs_jGauges/src/eu/hansolo/medusa/tools/ConicalGradient.java:147— ConicalGradient.getRoundImage 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.
EncodingUtils.encodeCharToUTF8Bytes (cyclomatic 16) Libs_JTidy/src/org/w3c/tidy/EncodingUtils.java:885— EncodingUtils.encodeCharToUTF8Bytes has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DynamicTreeFlatNodes.raycast (cyclomatic 16) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:204— DynamicTreeFlatNodes.raycast 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.
Distance.distance (cyclomatic 16) Libs_XUI2D/src/org/jbox2d/collision/Distance.java:619— Distance.distance 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.
ParticleSystem.computeDepthForGroup (cyclomatic 16) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:508— ParticleSystem.computeDepthForGroup 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.
Scalr.apply (cyclomatic 16) Libs_jXUI/src/org/imgscalr/Scalr.java:615— Scalr.apply 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.
AmpSkin.drawTickMarks (cyclomatic 16) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:443— AmpSkin.drawTickMarks 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.
PlainAmpSkin.drawTickMarks (cyclomatic 16) Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:423— PlainAmpSkin.drawTickMarks 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.
XxxComment Libs_JTidy/src/org/w3c/tidy/Clean.java:1259— // XXX: Are we leaking the child node? -creitzel 7 Jun, 01 — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
Lexer.getToken (cognitive 407) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1912— Lexer.getToken has cognitive complexity 407 (threshold 15). Drivers by points: if/else 108 (358 pts), boolean chains 22, loops 6 (22 pts), ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 269). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Helper.drawRadialTickMarks (cognitive 333) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:461— Helper.drawRadialTickMarks has cognitive complexity 333 (threshold 15). Drivers by points: if/else 63 (172 pts), ternaries 39 (130 pts), match/switch 6 (19 pts), boolean chains 8, loops 2 (4 pts) (nesting depth added 215). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
QuarterSkin.drawTickMarks (cognitive 311) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:429— QuarterSkin.drawTickMarks has cognitive complexity 311 (threshold 15). Drivers by points: if/else 59 (153 pts), ternaries 38 (128 pts), match/switch 6 (18 pts), boolean chains 8, loops 2 (4 pts) (nesting depth added 198). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ParseInline.parse (cognitive 245) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1066— ParseInline.parse has cognitive complexity 245 (threshold 15). Drivers by points: if/else 76 (208 pts), boolean chains 28, loops 3 (9 pts) (nesting depth added 138). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ParseBlock.parse (cognitive 244) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2012— ParseBlock.parse has cognitive complexity 244 (threshold 15). Drivers by points: if/else 68 (199 pts), loops 6 (23 pts), boolean chains 22 (nesting depth added 148). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
GaugeBuilder.build (cognitive 162) Libs_jGauges/src/eu/hansolo/medusa/GaugeBuilder.java:825— GaugeBuilder.build has cognitive complexity 162 (threshold 15). Drivers by points: if/else 155 (159 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 5). 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.
TidyUtils.isXMLLetter (cognitive 155) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:272— TidyUtils.isXMLLetter has cognitive complexity 155 (threshold 15). Drivers by points: boolean chains 155. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
PPrint.printChar (cognitive 154) Libs_JTidy/src/org/w3c/tidy/PPrint.java:539— PPrint.printChar has cognitive complexity 154 (threshold 15). Drivers by points: if/else 47 (86 pts), boolean chains 45, match/switch 3 (12 pts), loops 4 (11 pts) (nesting depth added 55). 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.
PPrint.printTree (cognitive 150) Libs_JTidy/src/org/w3c/tidy/PPrint.java:2084— PPrint.printTree has cognitive complexity 150 (threshold 15). Drivers by points: if/else 43 (86 pts), loops 7 (27 pts), boolean chains 24, ternaries 3 (13 pts) (nesting depth added 73). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
QuarterSkin.drawAreasAndSections (cognitive 136) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1012— QuarterSkin.drawAreasAndSections has cognitive complexity 136 (threshold 15). Drivers by points: ternaries 22 (78 pts), if/else 19 (41 pts), boolean chains 13, loops 2 (4 pts) (nesting depth added 80). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
World.solveTOI (cognitive 128) Libs_XUI2D/src/org/jbox2d/dynamics/World.java:1234— World.solveTOI has cognitive complexity 128 (threshold 15). Drivers by points: if/else 28 (98 pts), loops 8 (18 pts), boolean chains 12 (nesting depth added 80). 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.
ParseBody.parse (cognitive 124) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:695— ParseBody.parse has cognitive complexity 124 (threshold 15). Drivers by points: if/else 43 (106 pts), boolean chains 17, loops 1 (nesting depth added 63). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SSLSocketFactoryFactory.getSSLContext (cognitive 121) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/security/SSLSocketFactoryFactory.java:1106— SSLSocketFactoryFactory.getSSLContext has cognitive complexity 121 (threshold 15). Drivers by points: ternaries 20 (55 pts), if/else 25 (38 pts), error handling 12 (26 pts), boolean chains 2 (nesting depth added 62). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Lexer.parseValue (cognitive 115) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3210— Lexer.parseValue has cognitive complexity 115 (threshold 15). Drivers by points: if/else 41 (91 pts), boolean chains 13, loops 5 (9 pts), ternaries 1 (2 pts) (nesting depth added 55). 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.
GaugeSkin.drawAreasAndSections (cognitive 110) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:458— GaugeSkin.drawAreasAndSections has cognitive complexity 110 (threshold 15). Drivers by points: ternaries 14 (58 pts), if/else 19 (41 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 68). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
HSkin.drawAreasAndSections (cognitive 110) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:458— HSkin.drawAreasAndSections has cognitive complexity 110 (threshold 15). Drivers by points: ternaries 14 (58 pts), if/else 19 (41 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 68). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
VSkin.drawAreasAndSections (cognitive 110) Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:452— VSkin.drawAreasAndSections has cognitive complexity 110 (threshold 15). Drivers by points: ternaries 14 (58 pts), if/else 19 (41 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 68). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
EPCollider.collide (cognitive 97) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:1004— EPCollider.collide has cognitive complexity 97 (threshold 15). Drivers by points: if/else 50 (76 pts), boolean chains 13, loops 3 (4 pts), ternaries 2 (4 pts) (nesting depth added 29). 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.
LayoutBuilder.loadLayoutHeader (cognitive 89) Libs_jFX/src/anywheresoftware/b4j/objects/LayoutBuilder.java:117— LayoutBuilder.loadLayoutHeader has cognitive complexity 89 (threshold 15). Drivers by points: if/else 24 (76 pts), loops 3 (8 pts), error handling 1 (4 pts), boolean chains 1 (nesting depth added 60). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
HSkin.resize (cognitive 87) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:930— HSkin.resize has cognitive complexity 87 (threshold 15). Drivers by points: ternaries 25 (73 pts), if/else 6 (8 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 53). 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.
TidyUtils.isXMLNamechar (cognitive 85) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:488— TidyUtils.isXMLNamechar has cognitive complexity 85 (threshold 15). Drivers by points: boolean chains 85. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
ParseHTML.parse (cognitive 81) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:269— ParseHTML.parse has cognitive complexity 81 (threshold 15). Drivers by points: if/else 29 (71 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 44). 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.
ClockBuilder.build (cognitive 80) Libs_jGauges/src/eu/hansolo/medusa/ClockBuilder.java:423— ClockBuilder.build has cognitive complexity 80 (threshold 15). Drivers by points: if/else 76 (77 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
AIN.run (cognitive 79) Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/AsyncStreams.java:225— AIN.run has cognitive complexity 79 (threshold 15). Drivers by points: if/else 20 (61 pts), loops 3 (9 pts), ternaries 1 (5 pts), error handling 2 (4 pts) (nesting depth added 53). 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.
Clean.cleanWord2000 (cognitive 77) Libs_JTidy/src/org/w3c/tidy/Clean.java:2110— Clean.cleanWord2000 has cognitive complexity 77 (threshold 15). Drivers by points: if/else 23 (59 pts), boolean chains 13, loops 2 (5 pts) (nesting depth added 39). 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.
Lexer.getCDATA (cognitive 74) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1748— Lexer.getCDATA has cognitive complexity 74 (threshold 15). Drivers by points: if/else 23 (56 pts), loops 4 (14 pts), boolean chains 4 (nesting depth added 43). 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.
Tidy.parse (cognitive 74) Libs_JTidy/src/org/w3c/tidy/Tidy.java:390— Tidy.parse has cognitive complexity 74 (threshold 15). Drivers by points: if/else 34 (66 pts), boolean chains 8 (nesting depth added 32). 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.
Tidy.mainExec (cognitive 72) Libs_JTidy/src/org/w3c/tidy/Tidy.java:739— Tidy.mainExec has cognitive complexity 72 (threshold 15). Drivers by points: if/else 22 (42 pts), error handling 3 (8 pts), loops 3 (8 pts), boolean chains 5, match/switch 1 (5 pts), ternaries 1 (4 pts) (nesting depth added 37). 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.
VSkin.resize (cognitive 70) Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:922— VSkin.resize has cognitive complexity 70 (threshold 15). Drivers by points: ternaries 21 (56 pts), if/else 6 (8 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 40). 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.
ParticleSystem.solveZombie (cognitive 67) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1211— ParticleSystem.solveZombie has cognitive complexity 67 (threshold 15). Drivers by points: if/else 21 (51 pts), loops 14 (15 pts), boolean chains 1 (nesting depth added 31). 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.
VoronoiDiagram.generate (cognitive 67) Libs_XUI2D/src/org/jbox2d/particle/VoronoiDiagram.java:115— VoronoiDiagram.generate has cognitive complexity 67 (threshold 15). Drivers by points: if/else 14 (51 pts), loops 9 (16 pts) (nesting depth added 44). 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.
PPrint.printAttrValue (cognitive 64) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1005— PPrint.printAttrValue has cognitive complexity 64 (threshold 15). Drivers by points: if/else 23 (49 pts), loops 2 (6 pts), ternaries 2 (5 pts), boolean chains 4 (nesting depth added 33). 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.
ParseRow.parse (cognitive 64) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2887— ParseRow.parse has cognitive complexity 64 (threshold 15). Drivers by points: if/else 20 (48 pts), boolean chains 10, loops 3 (6 pts) (nesting depth added 31). 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.
World.solve (cognitive 64) Libs_XUI2D/src/org/jbox2d/dynamics/World.java:1063— World.solve has cognitive complexity 64 (threshold 15). Drivers by points: if/else 15 (45 pts), loops 10 (16 pts), boolean chains 3 (nesting depth added 36). 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.
Lexer.fixDocType (cognitive 60) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1467— Lexer.fixDocType has cognitive complexity 60 (threshold 15). Drivers by points: if/else 26 (53 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 30). 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.
StringUtils.LoadCSV2 (cognitive 59) Libs_StringUtils/src/anywheresoftware/b4a/objects/StringUtils.java:142— StringUtils.LoadCSV2 has cognitive complexity 59 (threshold 15). Drivers by points: if/else 16 (36 pts), loops 6 (11 pts), ternaries 2 (6 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 30). 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.
ParseRowGroup.parse (cognitive 59) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2730— ParseRowGroup.parse has cognitive complexity 59 (threshold 15). Drivers by points: if/else 20 (48 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 30). 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.
DigitalSkin.drawTickMarks (cognitive 58) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:317— DigitalSkin.drawTickMarks has cognitive complexity 58 (threshold 15). Drivers by points: if/else 13 (34 pts), ternaries 7 (20 pts), boolean chains 3, loops 1 (nesting depth added 34). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
EncodingUtils.decodeUTF8BytesToChar (cognitive 57) Libs_JTidy/src/org/w3c/tidy/EncodingUtils.java:705— EncodingUtils.decodeUTF8BytesToChar has cognitive complexity 57 (threshold 15). Drivers by points: if/else 23 (42 pts), loops 3 (8 pts), boolean chains 7 (nesting depth added 24). 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.
Lexer.parseEntity (cognitive 55) Libs_JTidy/src/org/w3c/tidy/Lexer.java:652— Lexer.parseEntity has cognitive complexity 55 (threshold 15). Drivers by points: if/else 20 (42 pts), boolean chains 8, ternaries 1 (4 pts), loops 1 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Node.repairDuplicateAttributes (cognitive 53) Libs_JTidy/src/org/w3c/tidy/Node.java:352— Node.repairDuplicateAttributes has cognitive complexity 53 (threshold 15). Drivers by points: if/else 17 (45 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Scalr.resize (cognitive 51) Libs_jXUI/src/org/imgscalr/Scalr.java:1574— Scalr.resize has cognitive complexity 51 (threshold 15). Drivers by points: if/else 29 (41 pts), boolean chains 8, ternaries 1 (2 pts) (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.
QuarterSkin.resize (cognitive 51) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1651— QuarterSkin.resize has cognitive complexity 51 (threshold 15). Drivers by points: ternaries 15 (40 pts), match/switch 3 (6 pts), if/else 3 (5 pts) (nesting depth added 30). 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.
StringUtils.stringSubstitution (cognitive 50) Libs_Shell/src/org/apache/commons/exec/util/StringUtils.java:70— StringUtils.stringSubstitution has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (34 pts), ternaries 1 (6 pts), loops 2 (5 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ContactSolver.solveVelocityConstraints (cognitive 49) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:336— ContactSolver.solveVelocityConstraints has cognitive complexity 49 (threshold 15). Drivers by points: if/else 9 (34 pts), boolean chains 6, loops 3 (6 pts), ternaries 1 (3 pts) (nesting depth added 30). 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.
Report.errorSummary (cognitive 48) Libs_JTidy/src/org/w3c/tidy/Report.java:1514— Report.errorSummary has cognitive complexity 48 (threshold 15). Drivers by points: if/else 25 (45 pts), boolean chains 3 (nesting depth added 20). 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.
TimeOfImpact.timeOfImpact (cognitive 48) Libs_XUI2D/src/org/jbox2d/collision/TimeOfImpact.java:110— TimeOfImpact.timeOfImpact has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (41 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 29). 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.
ParseTableTag.parse (cognitive 47) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2509— ParseTableTag.parse has cognitive complexity 47 (threshold 15). Drivers by points: if/else 14 (33 pts), boolean chains 10, loops 2 (4 pts) (nesting depth added 21). 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.
LinearSkin.resize (cognitive 47) Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:623— LinearSkin.resize has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 10 (30 pts), if/else 7 (16 pts), boolean chains 1 (nesting depth added 29). 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.
ModernSkin.highlightValue (cognitive 47) Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:361— ModernSkin.highlightValue has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (28 pts), boolean chains 10, ternaries 3 (8 pts), loops 1 (nesting depth added 17). 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.
InputStream.read (cognitive 44) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:1727— InputStream.read has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (32 pts), loops 3 (10 pts), boolean chains 2 (nesting depth added 22). 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.
MLSxEntryParser.parseFTPEntry (cognitive 44) Libs_Net/src/org/apache/commons/net/ftp/parser/MLSxEntryParser.java:95— MLSxEntryParser.parseFTPEntry has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (28 pts), loops 3 (11 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 22). 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.
Clock.checkAlarms (cognitive 44) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:2048— Clock.checkAlarms has cognitive complexity 44 (threshold 15). Drivers by points: if/else 10 (35 pts), boolean chains 5, loops 2, match/switch 1 (2 pts) (nesting depth added 26). 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.
CheckColor.check (cognitive 43) Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:888— CheckColor.check has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (31 pts), loops 3 (8 pts), boolean chains 4 (nesting depth added 22). 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.
Lexer.parseAttribute (cognitive 43) Libs_JTidy/src/org/w3c/tidy/Lexer.java:2959— Lexer.parseAttribute has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (34 pts), boolean chains 6, loops 2, ternaries 1 (nesting depth added 18). 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.
World.drawDebugData (cognitive 43) Libs_XUI2D/src/org/jbox2d/dynamics/World.java:683— World.drawDebugData has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 8 (20 pts) (nesting depth added 21). 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.
Lexer.parseServerInstruction (cognitive 42) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3099— Lexer.parseServerInstruction has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (34 pts), loops 3 (7 pts), boolean chains 1 (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.
Lexer.findGivenVersion (cognitive 41) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1045— Lexer.findGivenVersion has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 4 (13 pts), boolean chains 4 (nesting depth added 21). 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.
ParseList.parse (cognitive 41) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1607— ParseList.parse has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (33 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 22). 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.
ParseDefList.parse (cognitive 41) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1749— ParseDefList.parse has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (34 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 21). 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.
ParsePre.parse (cognitive 41) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1886— ParsePre.parse has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (37 pts), boolean chains 3, loops 1 (nesting depth added 21). 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.
ParseNoFrames.parse (cognitive 41) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3053— ParseNoFrames.parse has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (34 pts), boolean chains 6, loops 1 (nesting depth added 20). 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.
ParticleSystem.createParticleGroup (cognitive 41) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:294— ParticleSystem.createParticleGroup has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 6 (12 pts), ternaries 1 (5 pts), boolean chains 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MenuBarWrapper.createMenuItem (cognitive 40) Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:295— MenuBarWrapper.createMenuItem has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (33 pts), loops 2 (7 pts) (nesting depth added 21). 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.
Common.NotInitialized (cognitive 40) jCore/src/anywheresoftware/b4a/keywords/Common.java:618— Common.NotInitialized has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 8, error handling 2 (8 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SimpleSectionSkin.drawBackground (cognitive 40) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:197— SimpleSectionSkin.drawBackground has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 4 (20 pts), if/else 7 (15 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
NodeWrapper.SetSize (cognitive 39) Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:471— NodeWrapper.SetSize has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (25 pts), ternaries 4 (12 pts), error handling 1 (2 pts) (nesting depth added 19). 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.
DynamicTree.raycast (cognitive 39) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:197— DynamicTree.raycast has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 8 (20 pts), if/else 8 (18 pts), loops 1 (nesting depth added 22). 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.
PolygonShape.set (cognitive 39) Libs_XUI2D/src/org/jbox2d/collision/shapes/PolygonShape.java:120— PolygonShape.set has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 7 (9 pts), boolean chains 4, ternaries 3 (4 pts) (nesting depth added 15). 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.
Island.solve (cognitive 38) Libs_XUI2D/src/org/jbox2d/dynamics/Island.java:241— Island.solve has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 10 (15 pts), boolean chains 4 (nesting depth added 14). 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.
Lexer.setXHTMLDocType (cognitive 37) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1228— Lexer.setXHTMLDocType has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23 (33 pts), boolean chains 4 (nesting depth added 10). 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.
PPrint.printXMLTree (cognitive 37) Libs_JTidy/src/org/w3c/tidy/PPrint.java:2381— PPrint.printXMLTree has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 6, loops 3 (6 pts) (nesting depth added 8). 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.
FTPClient._openDataConnection_ (cognitive 37) Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:639— FTPClient._openDataConnection_ has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 6 (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.
LinearSkin.setBar (cognitive 37) Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:376— LinearSkin.setBar has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 6 (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.
1.run (cognitive 36) Libs_Net/src/anywheresoftware/b4a/net/SMTPWrapper.java:264— 1.run has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (19 pts), loops 5 (6 pts), ternaries 2 (5 pts), error handling 2 (4 pts), boolean chains 2 (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.
DynamicTreeFlatNodes.raycast (cognitive 36) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:204— DynamicTreeFlatNodes.raycast has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 8 (20 pts), if/else 7 (15 pts), loops 1 (nesting depth added 20). 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.
GaugeSkin.handleEvents (cognitive 36) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:303— GaugeSkin.handleEvents has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (27 pts), loops 3 (8 pts), boolean chains 1 (nesting depth added 15). 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.
HSkin.handleEvents (cognitive 36) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:307— HSkin.handleEvents has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (27 pts), loops 3 (8 pts), boolean chains 1 (nesting depth added 15). 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.
QuarterSkin.handleEvents (cognitive 36) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:303— QuarterSkin.handleEvents has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (27 pts), loops 3 (8 pts), boolean chains 1 (nesting depth added 15). 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.
VSkin.handleEvents (cognitive 36) Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:300— VSkin.handleEvents has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (27 pts), loops 3 (8 pts), boolean chains 1 (nesting depth added 15). 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.
FXMLBuilder.setEventsAndVariables (cognitive 35) Libs_jFX/src/anywheresoftware/b4j/objects/FXMLBuilder.java:168— FXMLBuilder.setEventsAndVariables has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (31 pts), loops 2 (4 pts) (nesting depth added 17). 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.
DigitalSkin.setBar (cognitive 35) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:180— DigitalSkin.setBar has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 4 (10 pts), boolean chains 4 (nesting depth added 17). 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.
SimpleDigitalSkin.setBar (cognitive 35) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:182— SimpleDigitalSkin.setBar has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 4 (10 pts), boolean chains 4 (nesting depth added 17). 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.
Base64.encode (cognitive 34) Libs_Net/src/org/apache/commons/net/util/Base64.java:451— Base64.encode has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 4, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 17). 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.
HSkin.drawMarkers (cognitive 34) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:574— HSkin.drawMarkers has cognitive complexity 34 (threshold 15). Drivers by points: match/switch 5 (17 pts), if/else 8 (13 pts), loops 1 (2 pts), ternaries 2 (nesting depth added 18). 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
VSkin.drawMarkers (cognitive 34) Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:570— VSkin.drawMarkers has cognitive complexity 34 (threshold 15). Drivers by points: match/switch 5 (17 pts), if/else 8 (13 pts), loops 1 (2 pts), ternaries 2 (nesting depth added 18). 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
ConicalGradient.getRoundImage (cognitive 34) Libs_jGauges/src/eu/hansolo/medusa/tools/ConicalGradient.java:147— ConicalGradient.getRoundImage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 3 (7 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 17). 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.
ParseHead.parse (cognitive 33) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:498— ParseHead.parse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 2, loops 1 (nesting depth added 17). 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.
BulletChartSkin.drawTickMarks (cognitive 33) Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:211— BulletChartSkin.drawTickMarks has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 5 (14 pts), loops 1 (nesting depth added 19). 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.
GaugeSkin.drawMarkers (cognitive 33) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:571— GaugeSkin.drawMarkers has cognitive complexity 33 (threshold 15). Drivers by points: match/switch 5 (17 pts), if/else 8 (13 pts), loops 1 (2 pts), ternaries 1 (nesting depth added 18). 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
QuarterSkin.drawMarkers (cognitive 33) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1139— QuarterSkin.drawMarkers has cognitive complexity 33 (threshold 15). Drivers by points: match/switch 5 (17 pts), if/else 8 (13 pts), loops 1 (2 pts), ternaries 1 (nesting depth added 18). 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
PPrint.printScriptStyle (cognitive 32) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1865— PPrint.printScriptStyle has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 10). 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.
ServerWrapper.Start (cognitive 31) Libs_Server/src/anywheresoftware/b4j/object/ServerWrapper.java:174— ServerWrapper.Start has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (24 pts), loops 4, ternaries 1 (2 pts), boolean chains 1 (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.
UnixFTPEntryParser.parseFTPEntry (cognitive 31) Libs_Net/src/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java:168— UnixFTPEntryParser.parseFTPEntry has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (19 pts), error handling 3 (7 pts), loops 1 (2 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 15). 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.
OS.isOs (cognitive 31) Libs_Shell/src/org/apache/commons/exec/OS.java:185— OS.isOs has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 8 (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.
ClientState.restoreState (cognitive 30) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientState.java:291— ClientState.restoreState has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 2 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DynamicTree.balance (cognitive 30) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:668— DynamicTree.balance has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 7 (nesting depth added 8). 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.
DynamicTreeFlatNodes.balance (cognitive 30) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:656— DynamicTreeFlatNodes.balance has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 7 (nesting depth added 8). 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.
UpdateBodyContactsCallback.reportFixture (cognitive 30) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:2017— UpdateBodyContactsCallback.reportFixture has cognitive complexity 30 (threshold 15). Drivers by points: if/else 4 (13 pts), ternaries 4 (13 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
GaugeSkin.drawKnob (cognitive 30) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:778— GaugeSkin.drawKnob has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 15 (29 pts), match/switch 1 (nesting depth added 14). 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.
HSkin.drawKnob (cognitive 30) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:780— HSkin.drawKnob has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 15 (29 pts), match/switch 1 (nesting depth added 14). 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.
LinearSkin.drawTickMarks (cognitive 30) Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:256— LinearSkin.drawTickMarks has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (28 pts), boolean chains 1, loops 1 (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.
QuarterSkin.drawKnob (cognitive 30) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1343— QuarterSkin.drawKnob has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 15 (29 pts), match/switch 1 (nesting depth added 14). 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.
VSkin.drawKnob (cognitive 30) Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:778— VSkin.drawKnob has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 15 (29 pts), match/switch 1 (nesting depth added 14). 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.
MethodCache.getMethod (cognitive 29) Libs_Reflector/src/anywheresoftware/b4j/object/JavaObject.java:346— MethodCache.getMethod has cognitive complexity 29 (threshold 15). Drivers by points: error handling 3 (11 pts), if/else 6 (10 pts), loops 2 (4 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 16). 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.
Base64.encodeBytesToBytes (cognitive 29) Libs_StringUtils/src/anywheresoftware/b4a/objects/Base64.java:906— Base64.encodeBytesToBytes has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), error handling 4 (8 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (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.
FTPWrapper.connectIfNeeded (cognitive 29) REDACTED:502— FTPWrapper.connectIfNeeded has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 1 (nesting depth added 15). 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.
Report.warning (cognitive 29) Libs_JTidy/src/org/w3c/tidy/Report.java:1215— Report.warning has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 3, match/switch 1 (2 pts) (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.
ParticleSystem.computeDepthForGroup (cognitive 29) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:508— ParticleSystem.computeDepthForGroup has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 6 (7 pts), boolean chains 2, ternaries 1 (2 pts) (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.
TreeTableViewWrapper.build (cognitive 28) Libs_jFX/src/anywheresoftware/b4j/objects/TreeTableViewWrapper.java:180— TreeTableViewWrapper.build has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 4 (11 pts) (nesting depth added 16). 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.
Clean.bumpObject (cognitive 28) Libs_JTidy/src/org/w3c/tidy/Clean.java:2355— Clean.bumpObject has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 15). 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.
Node.trimTrailingSpace (cognitive 28) Libs_JTidy/src/org/w3c/tidy/Node.java:775— Node.trimTrailingSpace has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (23 pts), boolean chains 5 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
CommsSender.run (cognitive 28) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/CommsSender.java:93— CommsSender.run has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (17 pts), error handling 3 (9 pts), boolean chains 1, loops 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
CommandLine.translateCommandline (cognitive 28) Libs_Shell/src/org/apache/commons/exec/CommandLine.java:337— CommandLine.translateCommandline has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 4, match/switch 1 (2 pts), loops 1 (nesting depth added 10). 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.
ParticleSystem.joinParticleGroups (cognitive 28) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:410— ParticleSystem.joinParticleGroups has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (6 pts), ternaries 1 (5 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
TextClockSkin.resize (cognitive 28) Libs_jGauges/src/eu/hansolo/medusa/skins/TextClockSkin.java:150— TextClockSkin.resize has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 2 (8 pts), boolean chains 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ParseColGroup.parse (cognitive 27) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2642— ParseColGroup.parse has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 14). 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.
BA.raiseEvent2 (cognitive 26) jCore/src/anywheresoftware/b4a/BA.java:106— BA.raiseEvent2 has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), error handling 4 (7 pts) (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.
DirectionsRequest.convertToJavascriptString (cognitive 26) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRequest.java:109— DirectionsRequest.convertToJavascriptString has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 7, boolean chains 4, loops 1 (2 pts) (nesting depth added 8). 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.
TagTable.findAllDefinedTag (cognitive 26) Libs_JTidy/src/org/w3c/tidy/TagTable.java:876— TagTable.findAllDefinedTag has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (18 pts), boolean chains 4, match/switch 1 (3 pts), loops 1 (nesting depth added 15). 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.
DotTerminatedMessageReader.read (cognitive 26) Libs_Net/src/org/apache/commons/net/io/DotTerminatedMessageReader.java:77— DotTerminatedMessageReader.read has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (26 pts) (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SectionSkin.drawSections (cognitive 26) Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:241— SectionSkin.drawSections has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 3, ternaries 1 (3 pts), loops 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.
SimpleSkin.drawSections (cognitive 26) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:220— SimpleSkin.drawSections has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 3, ternaries 1 (3 pts), loops 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.
1.invalidated (cognitive 26) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:572— 1.invalidated has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (23 pts), ternaries 1 (2 pts), boolean chains 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.
NodeWrapper.buildFont (cognitive 25) Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:657— NodeWrapper.buildFont has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 2 (4 pts), boolean chains 1, error handling 1 (nesting depth added 8). 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.
CheckUrl.check (cognitive 25) Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:253— CheckUrl.check has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 4, loops 2 (3 pts) (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.
Clean.center2Div (cognitive 25) Libs_JTidy/src/org/w3c/tidy/Clean.java:1092— Clean.center2Div has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (25 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DOMNodeImpl.replaceChild (cognitive 25) Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:330— DOMNodeImpl.replaceChild has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 2, loops 2 (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.
CheckId.check (cognitive 24) Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:761— CheckId.check has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 6, loops 1 (2 pts) (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.
CommsCallback.run (cognitive 24) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/CommsCallback.java:118— CommsCallback.run has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (18 pts), error handling 2 (4 pts), boolean chains 1, loops 1 (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.
Strings.containsAny (cognitive 24) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/util/Strings.java:69— Strings.containsAny has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 14). 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.
AABB.raycast (cognitive 24) Libs_XUI2D/src/org/jbox2d/collision/AABB.java:205— AABB.raycast has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 3 (nesting depth added 8). 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.
Distance.distance (cognitive 24) Libs_XUI2D/src/org/jbox2d/collision/Distance.java:619— Distance.distance has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 10). 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.
CTrie.remove (cognitive 24) Libs_MqttBroker2/src/io/moquette/broker/subscriptions/CTrie.java:177— CTrie.remove has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 3 (10 pts), boolean chains 3 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
AmpSkin.drawTickMarks (cognitive 24) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:443— AmpSkin.drawTickMarks has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, match/switch 1 (3 pts), ternaries 2, loops 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.
LinearSkin.drawSections (cognitive 24) Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:337— LinearSkin.drawSections has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (8 pts), loops 2 (4 pts), boolean chains 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.
PlainAmpSkin.drawTickMarks (cognitive 24) Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:423— PlainAmpSkin.drawTickMarks has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, match/switch 1 (3 pts), ternaries 2, loops 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.
ServerSocketWrapper.GetMyIP (cognitive 23) REDACTED:258— ServerSocketWrapper.GetMyIP has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2 (5 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
B4XSerializator.writeObject (cognitive 23) Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/B4XSerializator.java:157— B4XSerializator.writeObject has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19 (21 pts), ternaries 1 (2 pts) (nesting depth added 3). 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.
BA.TypeToString (cognitive 23) jCore/src/anywheresoftware/b4a/BA.java:464— BA.TypeToString has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 1 (3 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 10). 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.
Node.trimInitialSpace (cognitive 23) Libs_JTidy/src/org/w3c/tidy/Node.java:900— Node.trimInitialSpace has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 3 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
PPrint.printAttribute (cognitive 23) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1172— PPrint.printAttribute has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4, ternaries 1 (3 pts), loops 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.
ParserImpl.parseXMLElement (cognitive 23) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3483— ParserImpl.parseXMLElement has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 3, loops 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.
ParseText.parse (cognitive 23) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3216— ParseText.parse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 3, loops 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.
ClientState.get (cognitive 23) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientState.java:627— ClientState.get has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, error handling 1 (3 pts), loops 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.
Contact.update (cognitive 23) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/Contact.java:262— Contact.update has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2 (5 pts), boolean chains 4 (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.
ParticleSystem.updateContacts (cognitive 23) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:596— ParticleSystem.updateContacts has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 6 (10 pts) (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.
GaugeSkin.drawNeedle (cognitive 23) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:903— GaugeSkin.drawNeedle has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 11 (22 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
FGaugeBuilder.build (cognitive 23) Libs_jGauges/src/eu/hansolo/medusa/FGaugeBuilder.java:137— FGaugeBuilder.build has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (18 pts), ternaries 3, boolean chains 1, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Clean.blockStyle (cognitive 22) Libs_JTidy/src/org/w3c/tidy/Clean.java:1324— Clean.blockStyle has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 1 (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.
Clean.createProps (cognitive 22) Libs_JTidy/src/org/w3c/tidy/Clean.java:174— Clean.createProps has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 5 (9 pts), boolean chains 3 (nesting depth added 10). 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.
Clean.isWord2000 (cognitive 22) Libs_JTidy/src/org/w3c/tidy/Clean.java:2297— Clean.isWord2000 has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3, loops 1 (2 pts) (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.
Lexer.popInline (cognitive 22) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3737— Lexer.popInline has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 1 (3 pts) (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.
ParseFrameSet.parse (cognitive 22) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:991— ParseFrameSet.parse has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, loops 1 (nesting depth added 8). 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.
ClientComms.shutdownConnection (cognitive 22) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientComms.java:264— ClientComms.shutdownConnection has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (13 pts), error handling 4 (5 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ClientState.send (cognitive 22) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientState.java:418— ClientState.send has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), error handling 1 (2 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 8). 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.
DefaultFTPFileEntryParserFactory.createFileEntryParser (cognitive 22) Libs_Net/src/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactory.java:98— DefaultFTPFileEntryParserFactory.createFileEntryParser has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (13 pts), error handling 4 (8 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
DigitalSkin.drawBackground (cognitive 22) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:230— DigitalSkin.drawBackground has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (6 pts), ternaries 3 (6 pts) (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.
AOUT.run (cognitive 21) Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/AsyncStreams.java:372— AOUT.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (5 pts), loops 2 (4 pts) (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.
DOMNodeImpl.insertBefore (cognitive 21) Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:267— DOMNodeImpl.insertBefore has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2, loops 1 (2 pts) (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.
PPrint.printSlide (cognitive 21) Libs_JTidy/src/org/w3c/tidy/PPrint.java:2601— PPrint.printSlide has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 3 (5 pts), boolean chains 2, loops 1 (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.
PPrint.shouldIndent (cognitive 21) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1989— PPrint.shouldIndent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 1 (3 pts), boolean chains 2 (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.
VmsCommandLauncher.createCommandFile (cognitive 21) Libs_Shell/src/org/apache/commons/exec/launcher/VmsCommandLauncher.java:81— VmsCommandLauncher.createCommandFile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (9 pts) (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.
ContactManager.addPair (cognitive 21) Libs_XUI2D/src/org/jbox2d/dynamics/ContactManager.java:63— ContactManager.addPair has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4, loops 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.
ParticleSystem.solve (cognitive 21) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:702— ParticleSystem.solve has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (14 pts), loops 4, ternaries 1 (3 pts) (nesting depth added 3). 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.
Scalr.apply (cognitive 21) Libs_jXUI/src/org/imgscalr/Scalr.java:615— Scalr.apply has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 2, loops 1 (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.
Scalr.scaleImageIncrementally (cognitive 21) Libs_jXUI/src/org/imgscalr/Scalr.java:2212— Scalr.scaleImageIncrementally has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 2, loops 1, ternaries 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.
AmpSkin.drawSections (cognitive 21) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:520— AmpSkin.drawSections has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 1 (4 pts), boolean chains 2, loops 1 (nesting depth added 10). 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.
AmpSkin.handleEvents (cognitive 21) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:265— AmpSkin.handleEvents has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 1 (2 pts) (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.
PlainAmpSkin.drawSections (cognitive 21) Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:500— PlainAmpSkin.drawSections has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 1 (4 pts), boolean chains 2, loops 1 (nesting depth added 10). 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.
PlainAmpSkin.handleEvents (cognitive 21) Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:246— PlainAmpSkin.handleEvents has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 1 (2 pts) (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.
QuarterSkin.resizeValueText (cognitive 21) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1511— QuarterSkin.resizeValueText has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 7 (19 pts), if/else 2 (nesting depth added 12). 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
Helper.drawTimeAreas (cognitive 21) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1146— Helper.drawTimeAreas has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 4 (8 pts), boolean chains 2, loops 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. This shape REPEATS in the file: one other method here (Helper.drawTimeSections) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
Helper.drawTimeSections (cognitive 21) Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:1106— Helper.drawTimeSections has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 4 (8 pts), boolean chains 2, loops 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. This shape REPEATS in the file: one other method here (Helper.drawTimeAreas) has the same decision points, in the same order, at the same nesting depths — so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared.
NodeWrapper.buildDrawable (cognitive 20) Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:706— NodeWrapper.buildDrawable has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (20 pts) (nesting depth added 8). 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.
Clean.nestedList (cognitive 20) Libs_JTidy/src/org/w3c/tidy/Clean.java:1218— Clean.nestedList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 2 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Clean.purgeWord2000Attributes (cognitive 20) Libs_JTidy/src/org/w3c/tidy/Clean.java:1891— Clean.purgeWord2000Attributes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, loops 1 (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.
ParserImpl.parseDocument (cognitive 20) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3346— ParserImpl.parseDocument has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, loops 1 (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.
ConnectActionListener.onFailure (cognitive 20) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ConnectActionListener.java:99— ConnectActionListener.onFailure has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 2, error handling 1 (2 pts) (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.
VMSVersioningFTPEntryParser.preParse (cognitive 20) Libs_Net/src/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java:108— VMSVersioningFTPEntryParser.preParse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2 (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.
DynamicTree.insertLeaf (cognitive 20) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:507— DynamicTree.insertLeaf has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 2, boolean chains 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.
DynamicTreeFlatNodes.insertLeaf (cognitive 20) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:492— DynamicTreeFlatNodes.insertLeaf has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 2, boolean chains 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.
JoinParticleGroupsCallback.callback (cognitive 20) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1917— JoinParticleGroupsCallback.callback has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 4 (8 pts), boolean chains 2 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ConicalGradient.getImage (cognitive 20) Libs_jGauges/src/eu/hansolo/medusa/tools/ConicalGradient.java:111— ConicalGradient.getImage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 3 (6 pts), ternaries 3 (5 pts), boolean chains 2 (nesting depth added 8). 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.
Gauge.setForegroundBaseColor (cognitive 20) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1631— Gauge.setForegroundBaseColor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Common.WaitFor (cognitive 19) jCore/src/anywheresoftware/b4a/keywords/Common.java:1126— Common.WaitFor has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4, loops 1 (nesting depth added 3). 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.
EncodingUtils.encodeCharToUTF8Bytes (cognitive 19) Libs_JTidy/src/org/w3c/tidy/EncodingUtils.java:885— EncodingUtils.encodeCharToUTF8Bytes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 3 (nesting depth added 3). 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.
PPrint.printTag (cognitive 19) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1342— PPrint.printTag has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7, loops 1 (nesting depth added 4). 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.
ClientState.notifyReceivedMsg (cognitive 19) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ClientState.java:914— ClientState.notifyReceivedMsg has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 1 (3 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Token.waitForResponse (cognitive 19) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/Token.java:128— Token.waitForResponse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 1 (3 pts), loops 1, ternaries 1 (nesting depth added 10). 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.
FTPTimestampParserImpl.parseTimestamp (cognitive 19) Libs_Net/src/org/apache/commons/net/ftp/parser/FTPTimestampParserImpl.java:95— FTPTimestampParserImpl.parseTimestamp has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3 (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.
RevoluteJoint.initVelocityConstraints (cognitive 19) Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:109— RevoluteJoint.initVelocityConstraints has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2 (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.
ParticleSystem.raycast (cognitive 19) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:1690— ParticleSystem.raycast has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 1, loops 1 (nesting depth added 10). 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.
SessionRegistry.bindToExistingSession (cognitive 19) Libs_MqttBroker2/src/io/moquette/broker/SessionRegistry.java:103— SessionRegistry.bindToExistingSession has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 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.
BulletChartSkin.drawSections (cognitive 19) Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:287— BulletChartSkin.drawSections has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2, loops 1 (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.
DesignClockSkin.drawTicks (cognitive 19) Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:136— DesignClockSkin.drawTicks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, loops 1 (nesting depth added 8). 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.
DigitalClockSkin.drawTime (cognitive 19) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:122— DigitalClockSkin.drawTime has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 5 (6 pts), boolean chains 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.
ModernSkin.drawMainCanvas (cognitive 19) Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:476— ModernSkin.drawMainCanvas has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (2 pts) (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.
PearClockSkin.drawTicks (cognitive 19) Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:240— PearClockSkin.drawTicks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, loops 1 (nesting depth added 8). 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.
SimpleSectionSkin.setBar (cognitive 19) Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:152— SimpleSectionSkin.setBar has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, loops 1 (2 pts) (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.
Configuration.printConfigOptions (cognitive 18) Libs_JTidy/src/org/w3c/tidy/Configuration.java:881— Configuration.printConfigOptions has cognitive complexity 18 (threshold 15). Drivers by points: error handling 3 (9 pts), if/else 5 (8 pts), loops 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.
Lexer.parseAttrs (cognitive 18) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3620— Lexer.parseAttrs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, loops 1 (nesting depth added 8). 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.
Node.checkNodeIntegrity (cognitive 18) Libs_JTidy/src/org/w3c/tidy/Node.java:1288— Node.checkNodeIntegrity has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, loops 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.
ParserImpl.parseXMLDocument (cognitive 18) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3553— ParserImpl.parseXMLDocument has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1, loops 1 (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.
ParseTitle.parse (cognitive 18) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:595— ParseTitle.parse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (nesting depth added 8). 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.
FTPClient.initiateListParsing (cognitive 18) Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:2934— FTPClient.initiateListParsing has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Collision.collideEdgeAndCircle (cognitive 18) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:723— Collision.collideEdgeAndCircle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (18 pts) (nesting depth added 8). 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.
ContactSolver.initializeVelocityConstraints (cognitive 18) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:221— ContactSolver.initializeVelocityConstraints has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 2 (6 pts), loops 2 (3 pts) (nesting depth added 10). 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.
PrismaticJoint.initVelocityConstraints (cognitive 18) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:392— PrismaticJoint.initVelocityConstraints has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (18 pts) (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.
Island.init (cognitive 18) Libs_XUI2D/src/org/jbox2d/dynamics/Island.java:187— Island.init has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 5, if/else 5, loops 2 (4 pts), ternaries 2 (4 pts) (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.
World.drawShape (cognitive 18) Libs_XUI2D/src/org/jbox2d/dynamics/World.java:1571— World.drawShape has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
AuthorizationsCollector.canDoOperation (cognitive 18) Libs_MqttBroker2/src/io/moquette/broker/security/AuthorizationsCollector.java:116— AuthorizationsCollector.canDoOperation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 1 (2 pts), boolean chains 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.
DashboardSkin.setBar (cognitive 18) Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:256— DashboardSkin.setBar has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3 (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.
IndustrialClockSkin.updateTime (cognitive 18) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:424— IndustrialClockSkin.updateTime has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 1 (nesting depth added 3). 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.
ModernSkin.drawTickMarks (cognitive 18) Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:553— ModernSkin.drawTickMarks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 8). 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.
PearClockSkin.updateTime (cognitive 18) Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:514— PearClockSkin.updateTime has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 1 (nesting depth added 3). 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.
Gauge.setupBinding (cognitive 18) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:5461— Gauge.setupBinding has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (12 pts), if/else 4 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
createCss (cognitive 18) Libs_GoogleMaps/src/html/clustered/js/markerclusterer.js:1226— createCss has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, ternaries 3 (nesting depth added 2). 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.
UDPSocket.GetBroadcastAddress (cognitive 17) REDACTED:408— UDPSocket.GetBroadcastAddress has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 3 (6 pts) (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.
BA.printException (cognitive 17) jCore/src/anywheresoftware/b4a/BA.java:200— BA.printException has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 1 (2 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). 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.
CheckLength.check (cognitive 17) Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:493— CheckLength.check has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (7 pts), loops 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
Clean.bQ2Div (cognitive 17) Libs_JTidy/src/org/w3c/tidy/Clean.java:1734— Clean.bQ2Div has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), boolean chains 3 (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.
Lexer.addGenerator (cognitive 17) Libs_JTidy/src/org/w3c/tidy/Lexer.java:981— Lexer.addGenerator has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
Lexer.canPrune (cognitive 17) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3892— Lexer.canPrune has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 4. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Lexer.isCSS1Selector (cognitive 17) Libs_JTidy/src/org/w3c/tidy/Lexer.java:3571— Lexer.isCSS1Selector has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 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.
Node.toString (cognitive 17) Libs_JTidy/src/org/w3c/tidy/Node.java:1354— Node.toString has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (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.
JSONTokener.readLiteral (cognitive 17) Libs_Json/src/org/json/JSONTokener.java:281— JSONTokener.readLiteral has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 3). 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.
JSONTokener.readObject (cognitive 17) Libs_Json/src/org/json/JSONTokener.java:350— JSONTokener.readObject has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (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.
MqttWireMessage.createWireMessage (cognitive 17) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/wire/MqttWireMessage.java:166— MqttWireMessage.createWireMessage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, error handling 1. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
FTPClient.initFeatureMap (cognitive 17) Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:2059— FTPClient.initFeatureMap has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (2 pts) (nesting depth added 10). 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.
Util.copyStream (cognitive 17) Libs_Net/src/org/apache/commons/net/io/Util.java:86— Util.copyStream has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), error handling 1, loops 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.
DynamicTree.query (cognitive 17) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:162— DynamicTree.query has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (nesting depth added 10). 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.
DynamicTreeFlatNodes.query (cognitive 17) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:170— DynamicTreeFlatNodes.query has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (nesting depth added 10). 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.
RevoluteJoint.solveVelocityConstraints (cognitive 17) Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:226— RevoluteJoint.solveVelocityConstraints has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (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.
WheelJoint.initVelocityConstraints (cognitive 17) Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:231— WheelJoint.initVelocityConstraints has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (17 pts) (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.
ContactManager.collide (cognitive 17) Libs_XUI2D/src/org/jbox2d/dynamics/ContactManager.java:233— ContactManager.collide has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 4, loops 1 (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.
ParticleSystem.solveCollision (cognitive 17) Libs_XUI2D/src/org/jbox2d/particle/ParticleSystem.java:673— ParticleSystem.solveCollision has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8 (16 pts), loops 1 (nesting depth added 8). 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.
ClockSkin.updateTime (cognitive 17) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:276— ClockSkin.updateTime has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). 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.
FatClockSkin.drawTicks (cognitive 17) Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:216— FatClockSkin.drawTicks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, loops 1 (nesting depth added 8). 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.
PlainClockSkin.updateTime (cognitive 17) Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:405— PlainClockSkin.updateTime has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). 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.
RoundLcdClockSkin.drawBackground (cognitive 17) Libs_jGauges/src/eu/hansolo/medusa/skins/RoundLcdClockSkin.java:242— RoundLcdClockSkin.drawBackground has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1, loops 1 (nesting depth added 4). 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.
B4XSerializator.is_serializable (cognitive 17) PyBridge/b4x_bridge/b4x_serializator.py:60— B4XSerializator.is_serializable has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). 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.
SocketWrapper.Close (cognitive 16) REDACTED:201— SocketWrapper.Close has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 8). 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.
Common.SmartStringFormatter (cognitive 16) jCore/src/anywheresoftware/b4a/keywords/Common.java:791— Common.SmartStringFormatter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), match/switch 1 (3 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
ElevationService.processResponse (cognitive 16) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/elevation/ElevationService.java:103— ElevationService.processResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
GeocoderRequest.convertToJavascriptString (cognitive 16) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderRequest.java:45— GeocoderRequest.convertToJavascriptString has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 6 (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.
GeocodingService.processResponse (cognitive 16) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingService.java:67— GeocodingService.processResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
AttVal.checkAttribute (cognitive 16) Libs_JTidy/src/org/w3c/tidy/AttVal.java:239— AttVal.checkAttribute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5 (nesting depth added 4). 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.
Clean.cleanNode (cognitive 16) Libs_JTidy/src/org/w3c/tidy/Clean.java:1497— Clean.cleanNode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1 (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.
Clean.discardContainer (cognitive 16) Libs_JTidy/src/org/w3c/tidy/Clean.java:631— Clean.discardContainer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (2 pts) (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.
Clean.normalizeSpaces (cognitive 16) Libs_JTidy/src/org/w3c/tidy/Clean.java:1993— Clean.normalizeSpaces has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (4 pts) (nesting depth added 10). 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.
PPrint.printAttrs (cognitive 16) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1253— PPrint.printAttrs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3 (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.
PPrint.printDocType (cognitive 16) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1473— PPrint.printDocType has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (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.
CheckIMG.check (cognitive 16) Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:367— CheckIMG.check has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, loops 1 (nesting depth added 2). 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.
CommsReceiver.run (cognitive 16) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/CommsReceiver.java:98— CommsReceiver.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (4 pts), boolean chains 1, loops 1 (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.
MqttDefaultFilePersistence.open (cognitive 16) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/persist/MqttDefaultFilePersistence.java:70— MqttDefaultFilePersistence.open has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2, boolean chains 1, error handling 1 (nesting depth added 4). 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.
FTPHTTPClient.tunnelHandshake (cognitive 16) REDACTED:100— FTPHTTPClient.tunnelHandshake has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (5 pts), boolean chains 3 (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.
SocketClient.isAvailable (cognitive 16) Libs_Net/src/org/apache/commons/net/SocketClient.java:354— SocketClient.isAvailable has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 1 (2 pts) (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.
DynamicTree.rebuildBottomUp (cognitive 16) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:398— DynamicTree.rebuildBottomUp has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 4 (7 pts) (nesting depth added 8). 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.
Collision.collidePolygonAndCircle (cognitive 16) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:248— Collision.collidePolygonAndCircle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 1, ternaries 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.
World.destroyJoint (cognitive 16) Libs_XUI2D/src/org/jbox2d/dynamics/World.java:504— World.destroyJoint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
VoronoiDiagram.getNodes (cognitive 16) Libs_XUI2D/src/org/jbox2d/particle/VoronoiDiagram.java:72— VoronoiDiagram.getNodes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 2 (3 pts), boolean chains 2 (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.
GaugeSkin.resize (cognitive 16) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:986— GaugeSkin.resize has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 4 (6 pts), match/switch 1 (3 pts) (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.
IndicatorSkin.handleEvents (cognitive 16) Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:221— IndicatorSkin.handleEvents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 1 (2 pts), boolean chains 1 (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.
LinearSkin.handleEvents (cognitive 16) Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:209— LinearSkin.handleEvents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1 (nesting depth added 4). 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.
TileSparklineSkin.handleEvents (cognitive 16) Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:196— TileSparklineSkin.handleEvents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 2 (4 pts) (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.
D4 · Code Duplication· Near-duplicate member family (5 members, 73 shared lines) · ×1
Near-duplicate member family (5 members, 73 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1072— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1072-1229 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1084-1241 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:791-911 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1806-1963 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1082-1238 — These 5 members are variants of one another: a block of 73 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication· Near-duplicate member family (5 members, 14 shared lines) · ×1
Near-duplicate member family (5 members, 14 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:206— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:206-224 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:192-212 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:214-236 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:214-236 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:204-224 — These 5 members are variants of one another: a block of 14 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 59 shared lines) · ×1
Near-duplicate member family (4 members, 59 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:303— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:303-378 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:307-380 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:303-375 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:300-372 — These 4 members are variants of one another: a block of 59 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 38 shared lines) · ×1
Near-duplicate member family (4 members, 38 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:320— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:320-406 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:574-724 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:300-386 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:570-722 — These 4 members are variants of one another: a block of 38 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 35 shared lines) · ×1
Near-duplicate member family (4 members, 35 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:571— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:571-723 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:574-724 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1139-1289 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:570-722 — These 4 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 31 shared lines) · ×1
Near-duplicate member family (4 members, 31 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:537— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:537-569 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:540-572 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1105-1137 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:536-568 — These 4 members are variants of one another: a block of 31 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 29 shared lines) · ×1
Near-duplicate member family (4 members, 29 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:778— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:778-901 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:780-903 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1343-1466 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:778-902 — These 4 members are variants of one another: a block of 29 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication· Near-duplicate member family (4 members, 10 shared lines) · ×1
Near-duplicate member family (4 members, 10 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:280— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:280-329 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:373-422 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:463-512 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:355-398 — These 4 members are variants of one another: a block of 10 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
Near-duplicate member pair (82 shared lines) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:197— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:197-305 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:204-308 — These two members are variants of one another: 82 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (80 shared lines) Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:273— Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:273-481 | Libs_JTidy/src/org/w3c/tidy/TidyUtils.java:489-615 — These two members are variants of one another: 80 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (74 shared lines) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2731— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2731-2875 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2888-3040 — These two members are variants of one another: 74 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (42 shared lines) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:810— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:810-896 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:899-996 — These two members are variants of one another: 42 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (38 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:481— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:481-542 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:571-628 — These two members are variants of one another: 38 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (28 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:726— Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:726-766 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:724-764 — These two members are variants of one another: 28 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
Near-duplicate member pair (14 shared lines) Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:184— Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:184-219 | Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:221-256 — These two members are variants of one another: 14 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication· Edited copy of a member (111 corresponding lines) · ×1
Edited copy of a member (111 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:666— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:666-788 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:633-749 — These two members are one piece of code written twice and then edited apart: 111 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Members sharing a duplicated core (28 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (28 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:156— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:156-252 | Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:98-152 | Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:86-116 | Libs_jGauges/src/eu/hansolo/medusa/skins/ChargeSkin.java:97-122 | Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:130-215 | Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:115-146 | Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:91-138 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:179-289 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:186-294 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:135-211 | Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:95-152 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:152-242 | Libs_jGauges/src/eu/hansolo/medusa/skins/LevelSkin.java:102-169 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:143-260 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:150-233 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:182-290 | Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:102-156 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:106-142 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:74-119 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:104-161 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:86-128 | Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:117-219 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:128-212 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:117-186 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileTextKpiSkin.java:97-150 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:124-177 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:185-287 | Libs_jGauges/src/eu/hansolo/medusa/skins/WhiteSkin.java:84-144 — These 28 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 28 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 28 times.
D4 · Code Duplication· Members sharing a duplicated core (11 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (11 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:405— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:405-450 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:331-365 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:438-478 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:311-345 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:403-446 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:424-472 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:544-593 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:514-562 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:630-678 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:405-447 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:510-562 — These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times.
D4 · Code Duplication· Members sharing a duplicated core (9 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (9 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1206— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:1206-1219 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2018-2031 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2750-2763 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2786-2799 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2857-2870 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2893-2906 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2964-2977 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3000-3013 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:5114-5127 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
D4 · Code Duplication· Members sharing a duplicated core (8 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (8 members, 50+ identical tokens) Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:207— Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:207-262 | Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:443-470 | Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:241-271 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:288-319 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:264-291 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:223-247 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:445-468 | Libs_jGauges/src/eu/hansolo/medusa/skins/WhiteSkin.java:203-266 — These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times.
D4 · Code Duplication· Edited copy of a member (556 corresponding lines) · ×1
Edited copy of a member (556 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:429— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:429-984 | Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java:464-1083 — These two members are one piece of code written twice and then edited apart: 556 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (84 corresponding lines) · ×1
Edited copy of a member (84 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:319— Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:319-402 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:316-402 — These two members are one piece of code written twice and then edited apart: 84 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (114 corresponding lines) · ×1
Edited copy of a member (114 corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:109— Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:109-223 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:147-260 — These two members are one piece of code written twice and then edited apart: 114 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (54 corresponding lines) · ×1
Edited copy of a member (54 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:267— Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:267-320 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:296-365 — These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (39 corresponding lines) · ×1
Edited copy of a member (39 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:725— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:725-764 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1291-1329 — These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 85+ corresponding lines) · ×1
Edited copies of one member (3 members, 85+ corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:167— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:167-266 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:182-274 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:73-157 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 85 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 48+ corresponding lines) · ×1
Edited copies of one member (3 members, 48+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:374— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:374-436 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:354-401 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:451-508 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 48 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (43 corresponding lines) · ×1
Edited copy of a member (43 corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:265— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:265-308 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:246-288 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (47 corresponding lines) · ×1
Edited copy of a member (47 corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:308— Libs_XUI2D/src/org/jbox2d/dynamics/joints/DistanceJoint.java:308-355 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:207-253 — These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 23+ corresponding lines) · ×1
Edited copies of one member (4 members, 23+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/AlarmBuilder.java:91— Libs_jGauges/src/eu/hansolo/medusa/AlarmBuilder.java:91-113 | Libs_jGauges/src/eu/hansolo/medusa/MarkerBuilder.java:94-118 | Libs_jGauges/src/eu/hansolo/medusa/SectionBuilder.java:100-126 | Libs_jGauges/src/eu/hansolo/medusa/TimeSectionBuilder.java:94-118 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 20+ corresponding lines) · ×1
Edited copies of one member (3 members, 20+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:84— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:84-103 | Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:155-176 | Libs_jGauges/src/eu/hansolo/medusa/skins/TextClockSkin.java:81-105 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (33 corresponding lines) · ×1
Edited copy of a member (33 corresponding lines) Libs_Net/src/anywheresoftware/b4a/net/POPWrapper.java:147— Libs_Net/src/anywheresoftware/b4a/net/POPWrapper.java:147-184 | Libs_Net/src/anywheresoftware/b4a/net/POPWrapper.java:189-221 — These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (59 corresponding lines) · ×1
Edited copy of a member (59 corresponding lines) Libs_Net/src/org/apache/commons/net/ftp/FTP.java:304— Libs_Net/src/org/apache/commons/net/ftp/FTP.java:304-362 | Libs_Net/src/org/apache/commons/net/smtp/SMTP.java:190-251 — These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 18+ corresponding lines) · ×1
Edited copies of one member (3 members, 18+ corresponding lines) Libs_jFX/src/anywheresoftware/b4j/objects/ImageViewWrapper.java:79— Libs_jFX/src/anywheresoftware/b4j/objects/ImageViewWrapper.java:79-96 | Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:1008-1035 | Libs_jFX/src/anywheresoftware/b4j/objects/PaneWrapper.java:243-262 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (42 corresponding lines) · ×1
Edited copy of a member (42 corresponding lines) Libs_Net/src/org/apache/commons/net/io/Util.java:91— Libs_Net/src/org/apache/commons/net/io/Util.java:91-135 | Libs_Net/src/org/apache/commons/net/io/Util.java:253-294 — These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (38 corresponding lines) · ×1
Edited copy of a member (38 corresponding lines) Libs_JTidy/src/org/w3c/tidy/Lexer.java:2868— Libs_JTidy/src/org/w3c/tidy/Lexer.java:2868-2906 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2913-2950 — These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (32 corresponding lines) · ×1
Edited copy of a member (32 corresponding lines) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/MqttAsyncClient.java:694— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/MqttAsyncClient.java:694-726 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/MqttAsyncClient.java:752-783 — These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (23 corresponding lines) · ×1
Edited copy of a member (23 corresponding lines) Libs_Net/src/anywheresoftware/b4a/net/POPWrapper.java:153— Libs_Net/src/anywheresoftware/b4a/net/POPWrapper.java:153-180 | Libs_Net/src/anywheresoftware/b4a/net/POPWrapper.java:195-217 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (34 corresponding lines) · ×1
Edited copy of a member (34 corresponding lines) Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:553— Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:553-592 | Libs_Net/src/org/apache/commons/net/ftp/FTPClient.java:1603-1636 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 19+ corresponding lines) · ×1
Edited copies of one member (3 members, 19+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:87— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:87-111 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:80-102 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileTextKpiSkin.java:75-93 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (26 corresponding lines) · ×1
Edited copy of a member (26 corresponding lines) Libs_MqttBroker2/src/io/moquette/broker/PostOffice.java:180— Libs_MqttBroker2/src/io/moquette/broker/PostOffice.java:180-207 | Libs_MqttBroker2/src/io/moquette/broker/PostOffice.java:242-267 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 20+ corresponding lines) · ×1
Edited copies of one member (4 members, 20+ corresponding lines) Libs_JTidy/src/org/w3c/tidy/PPrint.java:1618— Libs_JTidy/src/org/w3c/tidy/PPrint.java:1618-1637 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:1646-1665 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:1674-1693 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:1739-1765 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (5 members, 7+ corresponding lines) · ×1
Edited copies of one member (5 members, 7+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:192— Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:192-198 | Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:226-232 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:244-251 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:205-211 | Libs_jGauges/src/eu/hansolo/medusa/skins/WhiteSkin.java:188-194 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 14+ corresponding lines) · ×1
Edited copies of one member (4 members, 14+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2120— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2120-2133 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3254-3267 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3328-3341 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3631-3644 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (7 members, 9+ corresponding lines) · ×1
Edited copies of one member (7 members, 9+ corresponding lines) jCore/src/anywheresoftware/b4a/keywords/Common.java:721— jCore/src/anywheresoftware/b4a/keywords/Common.java:721-729 | jCore/src/anywheresoftware/b4a/keywords/Common.java:731-739 | jCore/src/anywheresoftware/b4a/keywords/Common.java:741-749 | jCore/src/anywheresoftware/b4a/keywords/Common.java:751-759 | jCore/src/anywheresoftware/b4a/keywords/Common.java:761-769 | jCore/src/anywheresoftware/b4a/keywords/Common.java:771-779 | jCore/src/anywheresoftware/b4a/keywords/Common.java:781-789 — These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (5 members, 9+ corresponding lines) · ×1
Edited copies of one member (5 members, 9+ corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Mat22.java:163— Libs_XUI2D/src/org/jbox2d/common/Mat22.java:163-175 | Libs_XUI2D/src/org/jbox2d/common/Mat22.java:177-188 | Libs_XUI2D/src/org/jbox2d/common/Mat22.java:413-421 | Libs_XUI2D/src/org/jbox2d/common/Mat22.java:423-432 | Libs_XUI2D/src/org/jbox2d/common/Mat33.java:163-171 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (6 members, 11+ corresponding lines) · ×1
Edited copies of one member (6 members, 11+ corresponding lines) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:42— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:42-52 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsResult.java:40-50 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsResult.java:52-62 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsRoute.java:43-54 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:103-114 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocodingResult.java:69-79 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 13+ corresponding lines) · ×1
Edited copies of one member (3 members, 13+ corresponding lines) Libs_Json/src/org/json/JSON.java:44— Libs_Json/src/org/json/JSON.java:44-56 | Libs_Json/src/org/json/JSON.java:58-70 | Libs_Json/src/org/json/JSON.java:72-84 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 10+ corresponding lines) · ×1
Edited copies of one member (3 members, 10+ corresponding lines) Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/B4XSerializator.java:85— Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/B4XSerializator.java:85-94 | Libs_RandomAccessFile/src/anywheresoftware/b4a/randomaccessfile/B4XSerializator.java:105-114 | Libs_Server/src/anywheresoftware/b4j/object/ConnectionPool.java:69-78 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 9+ corresponding lines) · ×1
Edited copies of one member (4 members, 9+ corresponding lines) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:54— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:54-62 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:64-72 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:52-60 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:62-70 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 5+ corresponding lines) · ×1
Edited copies of one member (3 members, 5+ corresponding lines) Libs_XUI2D/src/org/jbox2d/common/Transform.java:101— Libs_XUI2D/src/org/jbox2d/common/Transform.java:101-105 | Libs_XUI2D/src/org/jbox2d/common/Transform.java:107-113 | Libs_XUI2D/src/org/jbox2d/common/Transform.java:115-121 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (6 members, 9+ corresponding lines) · ×1
Edited copies of one member (6 members, 9+ corresponding lines) Libs_Excel/src/anywheresoftware/b4a/objects/WorkbookWrapper.java:92— Libs_Excel/src/anywheresoftware/b4a/objects/WorkbookWrapper.java:92-100 | Libs_SQL/src/anywheresoftware/b4j/objects/SQL.java:111-120 | Libs_jPOI/src/anywheresoftware/b4j/objects/PoiWorkbookWrapper.java:91-100 | jCore/src/anywheresoftware/b4a/objects/streams/File.java:394-405 | jCore/src/anywheresoftware/b4a/objects/streams/File.java:411-421 | jCore/src/anywheresoftware/b4a/objects/streams/File.java:432-443 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 17+ corresponding lines) · ×1
Edited copies of one member (3 members, 17+ corresponding lines) Libs_JTidy/src/org/w3c/tidy/DOMAttrMapImpl.java:87— Libs_JTidy/src/org/w3c/tidy/DOMAttrMapImpl.java:87-103 | Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:100-121 | Libs_JTidy/src/org/w3c/tidy/DOMElementImpl.java:200-221 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 8+ corresponding lines) · ×1
Edited copies of one member (3 members, 8+ corresponding lines) Libs_MongoDB/src/anywheresoftware/mongo/MongoUtils.java:28— Libs_MongoDB/src/anywheresoftware/mongo/MongoUtils.java:28-35 | Libs_Server/src/anywheresoftware/b4j/object/ServerWrapper.java:513-520 | Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:287-294 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 4+ corresponding lines) · ×1
Edited copies of one member (3 members, 4+ corresponding lines) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/CircleContact.java:46— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/CircleContact.java:46-49 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/EdgeAndCircleContact.java:48-51 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/PolygonAndCircleContact.java:47-50 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 6+ corresponding lines) · ×1
Edited copies of one member (3 members, 6+ corresponding lines) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/MqttAsyncClient.java:818— Libs_MQTT/src/org/eclipse/paho/client/mqttv3/MqttAsyncClient.java:818-823 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/MqttClient.java:349-354 | Libs_MQTT/src/org/eclipse/paho/client/mqttv3/MqttTopic.java:86-91 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (6 members, 4+ corresponding lines) · ×1
Edited copies of one member (6 members, 4+ corresponding lines) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:320— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:320-323 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:367-370 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:347-350 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:474-477 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:564-567 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:400-403 — These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart.
Duplicated block (34–48 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/WorldManifold.java:105— Libs_XUI2D/src/org/jbox2d/collision/WorldManifold.java:105-138 | Libs_XUI2D/src/org/jbox2d/collision/WorldManifold.java:144-191 — 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 `Libs_XUI2D/src/org/jbox2d/collision/WorldManifold.java: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 (47 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:160— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:160-206 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:154-200 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:160` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (45 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:198— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:198-242 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:205-249 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java` and `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:198` 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 (41 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:616— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:616-656 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:583-623 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (49 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:183— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:183-231 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:190-238 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:186-234 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:189-237 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:183` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (36 lines × 2) Libs_JTidy/src/org/w3c/tidy/PPrint.java:368— Libs_JTidy/src/org/w3c/tidy/PPrint.java:368-403 | Libs_JTidy/src/org/w3c/tidy/PPrint.java:428-463 — 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 `Libs_JTidy/src/org/w3c/tidy/PPrint.java:368` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_JTidy/src/org/w3c/tidy/PPrint.java:367` calls `outc` and `Libs_JTidy/src/org/w3c/tidy/PPrint.java:427` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (32 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1198— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1198-1229 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1210-1241 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1932-1963 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1207-1238 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1198` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (31–32 lines × 2) Libs_JTidy/src/org/w3c/tidy/Lexer.java:2869— Libs_JTidy/src/org/w3c/tidy/Lexer.java:2869-2900 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:2914-2944 — 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 `Libs_JTidy/src/org/w3c/tidy/Lexer.java:2869` 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 (27–29 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:676— Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:676-704 | Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:728-754 — 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 `Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:676` 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 (28 lines × 3) Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:271— Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:271-298 | Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:334-361 | Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java:456-483 — 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.
Duplicated block (70–71 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:673— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:673-743 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:640-709 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:673` 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 (26 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:164— Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:164-189 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:155-180 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (23–25 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:874— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:874-896 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:972-996 — 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 `Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:874` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (39 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:523— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:523-561 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:503-541 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:523` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (29–31 lines × 4) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:521— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:521-551 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:587-617 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:649-677 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:708-736 — all 4 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 `Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:521` 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 (40 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:471— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:471-510 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:451-490 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:471` 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 (50 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1099— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1099-1148 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1111-1160 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:820-869 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1833-1882 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1109-1158 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:547— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:547-569 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:550-572 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1115-1137 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:546-568 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:547` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:140— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:140-162 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:143-165 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:138-160 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:164` calls `Circle`, `setFill` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:167` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (21–22 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2525— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2525-2545 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2759-2780 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2525` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (19–21 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3170— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3170-3190 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3304-3322 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:3170` 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 (19–20 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:169— Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:169-187 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:249-268 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:271-289 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:169` 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 (23–24 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2785— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2785-2808 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2994-3016 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2785` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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–20 lines × 2) Libs_XUI2D/src/org/jbox2d/collision/Collision.java:354— Libs_XUI2D/src/org/jbox2d/collision/Collision.java:354-373 | Libs_XUI2D/src/org/jbox2d/collision/Collision.java:376-393 — 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 `Libs_XUI2D/src/org/jbox2d/collision/Collision.java:354` 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 (19 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1517— Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1517-1535 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1539-1557 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1561-1579 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1583-1601 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1606-1624 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1629-1647 — all 6 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. 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 (15–17 lines × 3) Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:128— Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:128-142 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:111-127 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:149-165 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:145` calls `popVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:128` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (16–17 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp.java:177— Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp.java:177-193 | Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp2.java:110-125 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp2.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (27 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:169— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:169-195 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:169-195 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (2–16 lines × 11) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:437— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:437-440 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:362-363 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:455-470 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:342-343 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:417-432 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:469-470 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:562-577 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:559-560 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:647-662 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:444-445 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:527-542 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:470` calls `relocate`, `getLayoutBounds`, `getWidth` and `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:440` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (16 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:350— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:350-365 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:352-367 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:347-362 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:344-359 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:350` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:351` calls `getRange` and `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:349` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (35 lines × 2) Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp.java:437— Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp.java:437-471 | Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp2.java:204-238 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp2.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp.java:437` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp.java:436` calls `getMap`, `showDirectionsPane` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/MainApp2.java:202` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (15–16 lines × 2) Libs_Net/src/org/apache/commons/net/ftp/FTP.java:326— Libs_Net/src/org/apache/commons/net/ftp/FTP.java:326-341 | Libs_Net/src/org/apache/commons/net/smtp/SMTP.java:212-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 `Libs_Net/src/org/apache/commons/net/ftp/FTP.java:326` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (14–15 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2828— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2828-2842 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2937-2950 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2828` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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–14 lines × 7) Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:379— Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:379-391 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:593-605 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:657-670 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:690-702 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:1000-1012 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:1032-1044 | Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:1064-1076 — all 7 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 `Libs_JTidy/src/org/w3c/tidy/AttrCheckImpl.java:379` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:432— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:432-445 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:522-535 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:413-426 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:432` 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–14 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:251— Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:251-264 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/MotorJoint.java:319-330 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
Duplicated block (86 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:321— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:321-406 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:301-386 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (1–14 lines × 11) Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:151— Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:151-151 | Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:426-426 | Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:211-211 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:277-290 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:207-207 | Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:148-148 | Libs_jGauges/src/eu/hansolo/medusa/skins/LevelSkin.java:165-165 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:194-194 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:273-286 | Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:215-215 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:280-283 — there are 11 copies across 10 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 11 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:280` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:151` calls `setBorder`, `Border`, `BorderStroke` and `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:280` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:56— Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:56-68 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:84-96 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:109-121 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:137-149 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:165-177 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:197-209 — all 6 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 `Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:56` 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (12–13 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:579— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:579-591 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1146-1157 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:579-590 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java` as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 717 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:579` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:577` calls `getKnobPosition` and `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:577` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:681— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:681-693 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1247-1259 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:680-692 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java` as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 717 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:681` 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 (3–13 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:828— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:828-830 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:833-845 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1393-1395 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1398-1410 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:829-831 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:834-846 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java` as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 717 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10–12 lines × 4) Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:63— Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:63-73 | Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:107-116 | Libs_jFX/src/anywheresoftware/b4j/objects/CheckboxWrapper.java:46-56 | Libs_jFX/src/anywheresoftware/b4j/objects/MenuItemWrapper.java:210-221 — there are 4 copies across 3 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jFX/src/anywheresoftware/b4j/objects/ButtonWrapper.java:63` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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–12 lines × 2) Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:548— Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:548-557 | Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:571-582 — 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (11 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:173— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:173-183 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:202-212 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:209-219 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:167-177 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:205-215 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:208-218 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 6 call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:200` calls `enableNode`, `isLedVisible` and `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:171` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8–11 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:603— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:603-613 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:573-580 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java` as WHOLE FILES: this scan already matched 40 separate duplicated blocks between them, totalling at least 718 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:603` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 7) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:829— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:829-838 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1164-1173 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1176-1185 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:892-901 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:782-791 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1898-1907 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1174-1183 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 7 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:829` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:905` calls `setText`, `getTitle` and `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1177` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (22 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:369— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:369-390 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:666-687 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:667-688 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:349-370 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1232-1253 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:665-686 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:369` 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–10 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:521— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:521-529 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:524-532 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1088-1097 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:520-528 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:521` 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 (3–10 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:876— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:876-885 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:886-888 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1441-1450 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:877-886 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:876` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:885` calls `Stop`, `rgb`, `brighter` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:888` does not — after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7–10 lines × 2) Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:388— Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:388-394 | Libs_XUI2D/src/org/jbox2d/dynamics/contacts/ContactSolver.java:420-429 — 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 (4–10 lines × 3) Libs_jFX/src/anywheresoftware/b4j/objects/ImageViewWrapper.java:85— Libs_jFX/src/anywheresoftware/b4j/objects/ImageViewWrapper.java:85-88 | Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:1009-1018 | Libs_jFX/src/anywheresoftware/b4j/objects/PaneWrapper.java:244-253 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jFX/src/anywheresoftware/b4j/objects/ImageViewWrapper.java: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.
Duplicated block (36–37 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:548— Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:548-584 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:634-669 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java` as WHOLE FILES: this scan already matched 42 separate duplicated blocks between them, totalling at least 429 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 8) Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2021— Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2021-2029 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2753-2761 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2789-2797 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2860-2868 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2896-2904 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2967-2975 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3003-3011 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:5117-5125 — all 8 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 `Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:2021` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 × 7) Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:107— Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:107-115 | Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:118-126 | Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:129-137 | Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:140-148 | Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:151-159 | Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:162-170 | Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:173-181 — all 7 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 `Libs_jFX/src/anywheresoftware/b4j/objects/NodeWrapper.java:107` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (9 lines × 4) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:508— Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:508-516 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:558-566 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:620-628 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:644-652 — all 4 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:518` calls `setZero` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:653` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13–18 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:151— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:151-163 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:153-170 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:155-167 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:152-169 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:164` calls `getNeedleBehavior` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:171` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (24 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:470— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:470-493 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:473-496 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1030-1053 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:468-491 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:470` 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–9 lines × 2) Libs_JTidy/src/org/w3c/tidy/Lexer.java:1095— Libs_JTidy/src/org/w3c/tidy/Lexer.java:1095-1103 | Libs_JTidy/src/org/w3c/tidy/Lexer.java:1119-1125 — 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 `Libs_JTidy/src/org/w3c/tidy/Lexer.java:1095` 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–15 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:193— Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:193-204 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:344-358 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 7) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:819— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:819-826 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1154-1161 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1166-1173 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:882-889 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:772-779 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1888-1895 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1164-1171 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 7 call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1153` calls `isLcdVisible`, `isValueVisible` and `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:818` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (2–8 lines × 10) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:376— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:376-383 | Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:220-221 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:356-363 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:483-490 | Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:211-218 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:573-580 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:453-460 | Libs_jGauges/src/eu/hansolo/medusa/skins/RoundLcdClockSkin.java:364-365 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java:190-197 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileClockSkin.java:303-304 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:376` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:376` calls `getHeight`, `getInsets`, `getTop` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:220` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (8 lines × 6) Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:75— Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:75-82 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java:85-92 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:73-80 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java:83-90 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsWaypoint.java:62-69 | Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderGeometry.java:46-53 — before extracting anything, compare `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsLeg.java` and `Libs_GoogleMaps/src/com/lynden/gmapsfx/service/directions/DirectionsSteps.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7–8 lines × 4) Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:136— Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:136-142 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/GearJoint.java:248-255 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:120-127 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:158-165 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/FrictionJoint.java:145` calls `popVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:128` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (4–8 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:187— Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:187-190 | Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:197-204 | Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:212-216 | Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:224-227 | Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:234-238 | Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:249-253 — all 6 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:187` 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 (3–8 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:462— Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:462-466 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:488-492 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:514-516 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:535-539 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:550-557 — all 5 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:462` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:540` calls `getElements`, `add`, `LineTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:493` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (7–8 lines × 3) Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:208— Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:208-215 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:339-345 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:443-450 — before extracting anything, compare `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:218` calls `popVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:349` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6–8 lines × 2) Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1324— Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1324-1329 | Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:2134-2141 — 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 `Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:1324` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (1–8 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:913— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:913-913 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1019-1026 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1017-1024 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1019` 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–8 lines × 2) Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:640— Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:640-646 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:698-705 — 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 (6–7 lines × 6) Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:408— Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:408-414 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:198-204 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RevoluteJoint.java:125-130 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/RopeJoint.java:89-95 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WeldJoint.java:163-169 | Libs_XUI2D/src/org/jbox2d/dynamics/joints/WheelJoint.java:250-256 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 6 call sites, so a change lands once. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PrismaticJoint.java:415` calls `popVec2` and `Libs_XUI2D/src/org/jbox2d/dynamics/joints/PulleyJoint.java:206` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (4–7 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:47— Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:47-53 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:125-131 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:153-159 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:181-187 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:213-216 | Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:240-243 — all 6 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 `Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:47` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:218` calls `Stop`, `rgb` and `Libs_jGauges/src/eu/hansolo/medusa/GaugeDesign.java:55` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6–7 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:260— Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:260-266 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:697-702 | Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:336-341 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:324-329 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:260` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:704` calls `setRadius`, `setCenterX`, `setCenterY` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:343` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (3–7 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:262— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:262-268 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:269-275 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:240-242 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:265-271 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:263-269 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:272` calls `rotateNeedle`, `getCurrentValue` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:280` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (2–7 lines × 22) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:341— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:341-342 | Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:360-361 | Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:362-363 | Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:366-367 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:601-602 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:606-612 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:643-644 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:645-646 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:650-656 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:658-659 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:662-663 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:321-322 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:340-341 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:342-343 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:346-347 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:599-600 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:604-610 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:641-642 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:643-644 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:648-654 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:656-657 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:660-661 — there are 22 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 22 sites; resolving a subset leaves the remainder to drift apart. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:363` calls `getElements`, `add`, `LineTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:344` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (3–7 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:796— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:796-798 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:812-818 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1361-1363 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1377-1383 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:796-798 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:813-819 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java` as WHOLE FILES: this scan already matched 60 separate duplicated blocks between them, totalling at least 717 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:796` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. 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 (1–7 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:937— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:937-937 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1044-1050 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1743-1746 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1042-1048 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1043` calls `relocate`, `getLayoutBounds`, `getWidth` and `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:937` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (6 lines × 28) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:160— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:160-165 | Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:102-107 | Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java:90-95 | Libs_jGauges/src/eu/hansolo/medusa/skins/ChargeSkin.java:101-106 | Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:134-139 | Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:119-124 | Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:95-100 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:183-188 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:190-195 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java:139-144 | Libs_jGauges/src/eu/hansolo/medusa/skins/KpiSkin.java:99-104 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:156-161 | Libs_jGauges/src/eu/hansolo/medusa/skins/LevelSkin.java:106-111 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:147-152 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:154-159 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:186-191 | Libs_jGauges/src/eu/hansolo/medusa/skins/SectionSkin.java:106-111 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:110-115 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:78-83 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSkin.java:108-113 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:90-95 | Libs_jGauges/src/eu/hansolo/medusa/skins/SpaceXSkin.java:121-126 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileKpiSkin.java:132-137 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:121-126 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileTextKpiSkin.java:101-106 | Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java:128-133 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:189-194 | Libs_jGauges/src/eu/hansolo/medusa/skins/WhiteSkin.java:88-93 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 28 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
Duplicated block (7 lines × 14) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:129— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:129-135 | Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java:81-87 | Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:87-93 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:126-132 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:131-137 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:119-125 | Libs_jGauges/src/eu/hansolo/medusa/skins/MinimalClockSkin.java:86-92 | Libs_jGauges/src/eu/hansolo/medusa/skins/MorphingClockSkin.java:158-164 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:134-140 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:129-135 | Libs_jGauges/src/eu/hansolo/medusa/skins/RoundLcdClockSkin.java:99-105 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimClockSkin.java:76-82 | Libs_jGauges/src/eu/hansolo/medusa/skins/TextClockSkin.java:84-90 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileClockSkin.java:97-103 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:129` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
Duplicated block (6 lines × 11) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:820— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:820-825 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1155-1160 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1167-1172 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:272-277 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdClockSkin.java:301-306 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:313-318 | Libs_jGauges/src/eu/hansolo/medusa/skins/LcdSkin.java:344-349 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:883-888 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:773-778 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1889-1894 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1165-1170 — there are 11 copies across 9 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 11 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:820` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1153` calls `isLcdVisible`, `isValueVisible` and `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:818` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (2–6 lines × 3) Libs_JTidy/src/org/w3c/tidy/EncodingUtils.java:928— Libs_JTidy/src/org/w3c/tidy/EncodingUtils.java:928-929 | Libs_JTidy/src/org/w3c/tidy/EncodingUtils.java:942-946 | Libs_JTidy/src/org/w3c/tidy/EncodingUtils.java:953-958 — 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 `Libs_JTidy/src/org/w3c/tidy/EncodingUtils.java:942` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 (2–6 lines × 8) Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:703— Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:703-708 | Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1124-1126 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:1136-1138 | Libs_jGauges/src/eu/hansolo/medusa/skins/LevelSkin.java:340-341 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:845-847 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java:670-675 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:1858-1860 | Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java:1134-1136 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 8 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:703` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:1126` calls `Stop`, `rgb`, `LinearGradient` and `Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:708` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (3–6 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:206— Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:206-208 | Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:220-225 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:208-210 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:222-227 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java: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 (4–6 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:353— Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:353-356 | Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:389-392 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:643-648 | Libs_jGauges/src/eu/hansolo/medusa/skins/LinearSkin.java:718-723 — there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. 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 (4–6 lines × 3) Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:309— Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:309-314 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:319-324 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:793-796 — 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 `Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:309` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with 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 (5 lines × 8) Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:209— Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:209-213 | Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:445-449 | Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java:243-247 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleDigitalSkin.java:290-294 | Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java:266-270 | Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java:225-229 | Libs_jGauges/src/eu/hansolo/medusa/skins/TileSparklineSkin.java:447-451 | Libs_jGauges/src/eu/hansolo/medusa/skins/WhiteSkin.java:205-209 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 8 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java: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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java:214` calls `setPrefSize` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:450` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (4–5 lines × 9) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:287— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:287-291 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:380-384 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:394-398 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:401-405 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:408-411 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:414-418 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:470-474 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:362-366 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:382-386 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java` as WHOLE FILES: this scan already matched 23 separate duplicated blocks between them, totalling at least 196 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:287` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:399` calls `getElements`, `add`, `LineTo` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:292` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (1–5 lines × 6) Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:253— Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:253-258 | Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:247-247 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:239-244 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:259-263 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:264-268 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:247-251 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java: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. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:236` calls `Point2D`, `getX`, `getY` and `Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:249` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (3–5 lines × 4) Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:322— Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:322-326 | Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java:326-330 | Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:276-278 | Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:322-326 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java` as WHOLE FILES: this scan already matched 54 separate duplicated blocks between them, totalling at least 615 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:322` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:326` calls `enableNode`, `getTitle`, `isEmpty` and `Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java:278` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (2–5 lines × 3) Libs_B4XEncryption/src/anywheresoftware/b4x/object/B4XEncryption.java:63— Libs_B4XEncryption/src/anywheresoftware/b4x/object/B4XEncryption.java:63-64 | REDACTED:54-58 | REDACTED:74-78 — 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 `REDACTED:54` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, 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 `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `REDACTED:54` calls `doFinal` and `Libs_B4XEncryption/src/anywheresoftware/b4x/object/B4XEncryption.java:63` does not — after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (3–5 lines × 5) Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:357— Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:357-361 | Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java:337-341 | Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:467-469 | Libs_jGauges/src/eu/hansolo/medusa/skins/PearClockSkin.java:557-559 | Libs_jGauges/src/eu/hansolo/medusa/skins/PlainClockSkin.java:442-444 — before extracting anything, compare `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java` and `Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java` as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:357` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:361` calls `clearRect` and `Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java:469` does not — after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (84 lines × 2) Libs_Net/src/org/apache/commons/net/ftp/FTPReply.java:104— Libs_Net/src/org/apache/commons/net/ftp/FTPReply.java:104-198 | Libs_Net/src/org/apache/commons/net/smtp/SMTPReply.java:54-137 — 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 (30 lines × 2) Libs_Shell/src/org/apache/commons/exec/launcher/OS2CommandLauncher.java:41— Libs_Shell/src/org/apache/commons/exec/launcher/OS2CommandLauncher.java:41-70 | Libs_Shell/src/org/apache/commons/exec/launcher/WinNTCommandLauncher.java:34-65 — before extracting anything, compare `Libs_Shell/src/org/apache/commons/exec/launcher/OS2CommandLauncher.java` and `Libs_Shell/src/org/apache/commons/exec/launcher/WinNTCommandLauncher.java` as WHOLE FILES: 83% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. 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 (6 lines × 9) Libs_jGauges/src/eu/hansolo/medusa/Clock.java:605— Libs_jGauges/src/eu/hansolo/medusa/Clock.java:605-610 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:617-622 | Libs_jGauges/src/eu/hansolo/medusa/Clock.java:723-728 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1360-1365 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1373-1378 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1427-1432 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1483-1488 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1537-1542 | Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:1597-1602 — there are 9 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 9 sites; resolving a subset leaves the remainder to drift apart. 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 first that the copies are not typed on the same thing: the declarations holding them bind `SECTION` to `TimeSection` in one and `Section` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Third-party script without Subresource Integrity REDACTED:44— `http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session. 8 such include(s) across the repository's markup.
X18 · Disposal-pattern correctness· Disposable created and abandoned in the function that made it · ×1
Disposable created and abandoned in the function that made it jCore/src/anywheresoftware/b4a/BridgeLog.java:37— `ds` is a `new DatagramSocket(…)`, which holds something that has to be given back, and it is created here (line 37). Every use of it in this block calls a member through it — it is never returned, never stored, never handed to anything else, no view of it is handed on, it is not captured by a lambda or an anonymous class, and it is never released — so this block both creates the value and is the last thing that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it. Declare it in a try-with-resources (`try (DatagramSocket ds = …)`), which releases it on every path including a throw, or call `ds.close()` in a `finally`.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:331— `!sectionsVisible && !colorGradientEnabled` appears character-identically in 4 files — Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:275— `( VALUE > min || min < 0 ) && ( VALUE < max || max > 0 )` appears character-identically in 4 files — Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:491— `(360 - START_ANGLE - angle - 90) % 360 > 90 && (360 - START_ANGLE - angle - 90) % 360 < 270` appears character-identically in 2 files — Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:484— `(360 - START_ANGLE - angle) % 360 > 90 && (360 - START_ANGLE - angle) % 360 < 270` appears character-identically in 2 files — Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:98— `0 <= proxyId && proxyId < m_nodeCapacity` appears character-identically in 2 files — Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java, Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jFX/src/anywheresoftware/b4j/objects/TableViewWrapper.java:107— `Columns == null || Columns.IsInitialized() == false` appears character-identically in 2 files — Libs_jFX/src/anywheresoftware/b4j/objects/TableViewWrapper.java, Libs_jFX/src/anywheresoftware/b4j/objects/TreeTableViewWrapper.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:536— `Double.compare(SECTION.getStart(), MAX_VALUE) <= 0 && Double.compare(SECTION.getStop(), MIN_VALUE) >= 0` appears character-identically in 2 files — Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:304— `Double.compare(SECTION.getStart(), maxValue) <= 0 && Double.compare(SECTION.getStop(), minValue) >= 0` appears character-identically in 2 files — Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java:305— `Double.compare(SECTION.getStart(), minValue) < 0 && Double.compare(SECTION.getStop(), maxValue) < 0` appears character-identically in 2 files — Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/ModernSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:474— `Double.compare(area.getStart(), maxValue) <= 0 && Double.compare(area.getStop(), minValue) >= 0` appears character-identically in 4 files — Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:128— `Double.compare(clock.getPrefWidth(), 0.0) <= 0 || Double.compare(clock.getPrefHeight(), 0.0) <= 0 || Double.compare(clock.getWidth(), 0.0) <…` appears character-identically in 14 files — Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java:420— `Double.compare(counter, minValue) == 0 || Double.compare(counter, maxValue) == 0` appears character-identically in 3 files — Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/TinySkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:158— `Double.compare(gauge.getPrefWidth(), 0.0) <= 0 || Double.compare(gauge.getPrefHeight(), 0.0) <= 0 || Double.compare(gauge.getWidth(), 0.0) <…` appears character-identically in 30 files — Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/BarSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/BatterySkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/BulletChartSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:510— `Double.compare(section.getStart(), maxValue) <= 0 && Double.compare(section.getStop(), minValue) >= 0` appears character-identically in 6 files — Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:511— `Double.compare(section.getStart(), minValue) < 0 && Double.compare(section.getStop(), maxValue) < 0` appears character-identically in 6 files — Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/SimpleSectionSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java:537— `SECTION.getStart() < MIN_VALUE && SECTION.getStop() < MAX_VALUE` appears character-identically in 2 files — Libs_jGauges/src/eu/hansolo/medusa/skins/AmpSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/PlainAmpSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java:310— `TIME.getMinute() == 0 && TIME.getSecond() == 0` appears character-identically in 6 files — Libs_jGauges/src/eu/hansolo/medusa/skins/ClockSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/IndustrialClockSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java:769— `TickMarkType.BOX == tickMarkType || TickMarkType.PILL == tickMarkType` appears character-identically in 2 files — Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java, Libs_jGauges/src/eu/hansolo/medusa/tools/Helper.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_XUI2D/src/org/jbox2d/collision/AABB.java:314— `a.lowerBound.x - b.upperBound.x > 0.0f || a.lowerBound.y - b.upperBound.y > 0.0f` appears character-identically in 2 files — Libs_XUI2D/src/org/jbox2d/collision/AABB.java, Libs_XUI2D/src/org/jbox2d/collision/broadphase/DefaultBroadPhaseBuffer.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_JTidy/src/org/w3c/tidy/DOMCharacterDataImpl.java:92— `adaptee.textarray != null && adaptee.start < adaptee.end` appears character-identically in 3 files — Libs_JTidy/src/org/w3c/tidy/DOMCharacterDataImpl.java, Libs_JTidy/src/org/w3c/tidy/DOMDocumentTypeImpl.java, Libs_JTidy/src/org/w3c/tidy/DOMNodeImpl.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java:475— `area.getStart() < minValue && area.getStop() < maxValue` appears character-identically in 4 files — Libs_jGauges/src/eu/hansolo/medusa/skins/GaugeSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/HSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/QuarterSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/VSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_XUI2D/src/org/jbox2d/collision/AABB.java:310— `b.lowerBound.x - a.upperBound.x > 0.0f || b.lowerBound.y - a.upperBound.y > 0.0f` appears character-identically in 2 files — Libs_XUI2D/src/org/jbox2d/collision/AABB.java, Libs_XUI2D/src/org/jbox2d/collision/broadphase/DefaultBroadPhaseBuffer.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java:130— `clock.getPrefWidth() > 0 && clock.getPrefHeight() > 0` appears character-identically in 14 files — Libs_jGauges/src/eu/hansolo/medusa/skins/DBClockSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/DesignClockSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/FatClockSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java:147— `clock.isAlarmsEnabled() && clock.getAlarms().size() > 0` appears character-identically in 2 files — Libs_jGauges/src/eu/hansolo/medusa/skins/DigitalClockSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/RoundLcdClockSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java:333— `colorGradientEnabled && noOfGradientStops > 1` appears character-identically in 4 files — Libs_jGauges/src/eu/hansolo/medusa/skins/DashboardSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/FlatSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/IndicatorSkin.java, Libs_jGauges/src/eu/hansolo/medusa/skins/SlimSkin.java. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Interpolated log message defeats structured logging Libs_MqttBroker2/src/io/moquette/broker/Server.java:217— `error` at line 217 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
Interpolated log message defeats structured logging Libs_MqttBroker2/src/io/moquette/broker/security/ACLFileParser.java:56— `warn` at line 56 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
Interpolated log message defeats structured logging Libs_MqttBroker2/src/io/moquette/broker/security/ACLFileParser.java:66— `warn` at line 66 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
Interpolated log message defeats structured logging Libs_MqttBroker2/src/io/moquette/broker/security/DBAuthenticator.java:71— `error` at line 71 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.error("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
Interpolated log message defeats structured logging Libs_MqttBroker2/src/io/moquette/broker/security/ResourceAuthenticator.java:59— `info` at line 59 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.info("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
Interpolated log message defeats structured logging Libs_MqttBroker2/src/io/moquette/broker/security/ResourceAuthenticator.java:64— `warn` at line 64 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
Interpolated log message defeats structured logging Libs_MqttBroker2/src/io/moquette/broker/security/ResourceAuthenticator.java:69— `warn` at line 69 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
Interpolated log message defeats structured logging Libs_MqttBroker2/src/io/moquette/broker/security/ResourceAuthenticator.java:71— `warn` at line 71 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
Interpolated log message defeats structured logging Libs_MqttBroker2/src/io/moquette/broker/config/ConfigurationParser.java:51— `warn` at line 51 is handed a message assembled at the call — a string concatenated with a value, or `String.format` — through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: `log.warn("Order {} moved to {}", orderId, status)`, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2's JsonTemplateLayout, OpenTelemetry), or `log.atInfo().addKeyValue("order_id", orderId).log("order moved")` with SLF4J 2's fluent API. An exception goes last, as the throwable argument, not into the text.
Fat interface: Logger (28 abstract methods) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/logging/Logger.java:53— `Logger` declares 28 abstract methods under just 14 distinct name(s): `config`, `config`, `config`, `dumpTrace`, `fine`, `fine`, `fine`, `finer`, `finer`, `finer`, `finest`, `finest`, `finest`, `formatMessage`, `info`, `info`, `info`, `initialise`, `isLoggable`, `log`, `setResourceName`, `severe`, `severe`, `severe`, `trace`, `warning`, `warning`, `warning`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 28 separate responsibilities: a caller binds to 14 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 28 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
Fat interface: IMqttAsyncClient (29 abstract methods) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/IMqttAsyncClient.java:120— `IMqttAsyncClient` declares 29 abstract methods under just 12 distinct name(s): `close`, `connect`, `connect`, `connect`, `connect`, `disconnect`, `disconnect`, `disconnect`, `disconnect`, `disconnectForcibly`, `disconnectForcibly`, `disconnectForcibly`, `getClientId`, `getPendingDeliveryTokens`, `getServerURI`, `isConnected`, `publish`, `publish`, `publish`, `publish`, `setCallback`, `subscribe`, `subscribe`, `subscribe`, `subscribe`, `unsubscribe`, `unsubscribe`, `unsubscribe`, `unsubscribe`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 29 separate responsibilities: a caller binds to 12 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 29 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
Fat interface: IMqttClient (23 abstract methods) Libs_MQTT/src/org/eclipse/paho/client/mqttv3/IMqttClient.java:61— `IMqttClient` declares 23 abstract methods under just 14 distinct name(s): `close`, `connect`, `connect`, `connectWithResult`, `disconnect`, `disconnect`, `disconnectForcibly`, `disconnectForcibly`, `disconnectForcibly`, `getClientId`, `getPendingDeliveryTokens`, `getServerURI`, `getTopic`, `isConnected`, `publish`, `publish`, `setCallback`, `subscribe`, `subscribe`, `subscribe`, `subscribe`, `unsubscribe`, `unsubscribe`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. That is an OVERLOAD SET, not 23 separate responsibilities: a caller binds to 14 operation(s) and uses the overload it selected, so the Interface-Segregation harm does NOT apply on the caller's side and splitting this into role-interfaces would scatter one operation without relieving anything. The burden that does remain is the IMPLEMENTER's — all 23 signatures must be written and kept in step. Reduce it by collapsing overloads (optional or default parameters, or an options object) rather than by segregating the interface.
Fat interface: IWorldPool (29 abstract methods) Libs_XUI2D/src/org/jbox2d/pooling/IWorldPool.java:42— `IWorldPool` declares 29 abstract methods: `getChainCircleContactStack`, `getChainPolyContactStack`, `getCircleContactStack`, `getCollision`, `getDistance`, `getEdgeCircleContactStack`, `getEdgePolyContactStack`, `getFloatArray`, `getIntArray`, `getPolyCircleContactStack`, `getPolyContactStack`, `getTimeOfImpact`, `getVec2Array`, `popAABB`, `popAABB`, `popMat22`, `popMat22`, `popMat33`, `popRot`, `popVec2`, `popVec2`, `popVec3`, `popVec3`, `pushAABB`, `pushMat22`, `pushMat33`, `pushRot`, `pushVec2`, `pushVec3`. Counted over its ABSTRACT methods, once per signature; `default`, `static` and `private` methods and constants are not counted, because no implementer is forced to write them. Those 29 declarations carry 25 distinct name(s), so part of the width is overloading rather than separate responsibilities — but 25 operations clears the >15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Silent fallback default in catch jCore/src/anywheresoftware/b4a/keywords/Common.java:844— `SmartStringFormatter` swallows every exception into `return "NaN"` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing.
Silent fallback default in catch Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/MessageCatalog.java:31— `getMessage` swallows every exception into `return ""` — a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing.
D21 · Naming Consistency· `findTITLE` spells `TITLE` where 31 names in the project spell it `Title` · ×1
`findTITLE` spells `TITLE` where 31 names in the project spell it `Title` Libs_JTidy/src/org/w3c/tidy/Node.java:1274— 31 of 32 names in project repository spell the token `Title` (31 of 32; unit: names in project repository containing `Title`). Peers: MarkerWrapper.setTitle (Libs_GoogleMaps/src/anywheresoftware/b4j/googlemaps/GoogleMapWrapper.java:336); Marker.getTitle (Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/Marker.java:39); Marker.setTitle (Libs_GoogleMaps/src/com/lynden/gmapsfx/javascript/object/Marker.java:47); org.w3c.tidy.ParseTitle (Libs_JTidy/src/org/w3c/tidy/ParserImpl.java:589); DirectoryChooserWrapper.getTitle (Libs_jFX/src/anywheresoftware/b4j/objects/DirectoryChooserWrapper.java:41). Rename to `findTitle`. [rule N6]
D21 · Naming Consistency· `CheckAREA` spells `AREA` where 15 names in the project spell it `Area` · ×1
`CheckAREA` spells `AREA` where 15 names in the project spell it `Area` Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:436— 15 of 16 names in project repository spell the token `Area` (15 of 16; unit: names in project repository containing `Area`). Peers: GeocoderComponentRestrictions.buildJavascriptString(administrativeArea) (Libs_GoogleMaps/src/com/lynden/gmapsfx/service/geocoding/GeocoderComponentRestrictions.java:38); BroadPhaseStrategy.getAreaRatio (Libs_XUI2D/src/org/jbox2d/collision/broadphase/BroadPhaseStrategy.java:102); DynamicTree.getAreaRatio (Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTree.java:373); DynamicTreeFlatNodes.getAreaRatio (Libs_XUI2D/src/org/jbox2d/collision/broadphase/DynamicTreeFlatNodes.java:373); ConstantVolumeJoint.getBodyArea (Libs_XUI2D/src/org/jbox2d/dynamics/joints/ConstantVolumeJoint.java:110). Rename to `CheckArea`. [rule N6]
D21 · Naming Consistency· `CheckSTYLE` spells `STYLE` where 25 names in the project spell it `Style` · ×1
`CheckSTYLE` spells `STYLE` where 25 names in the project spell it `Style` Libs_JTidy/src/org/w3c/tidy/TagCheckImpl.java:515— 25 of 26 names in project repository spell the token `Style` (25 of 26; unit: names in project repository containing `Style`). Peers: Clean.findStyle (Libs_JTidy/src/org/w3c/tidy/Clean.java:316); Clean.createStyleElement (Libs_JTidy/src/org/w3c/tidy/Clean.java:518); Clean.addStyleProperty (Libs_JTidy/src/org/w3c/tidy/Clean.java:699); Clean.blockStyle (Libs_JTidy/src/org/w3c/tidy/Clean.java:1324); Clean.inlineStyle (Libs_JTidy/src/org/w3c/tidy/Clean.java:1388). Rename to `CheckStyle`. [rule N6]
D21 · Naming Consistency· `GetLED` spells `LED` where 17 names in the project spell it `Led` · ×1
`GetLED` spells `LED` where 17 names in the project spell it `Led` Libs_Pi4JWrapper/src/anywheresoftware/b4j/objects/PiFaceWrapper.java:55— 17 of 18 names in project repository spell the token `Led` (17 of 18; unit: names in project repository containing `Led`). Peers: Gauge.getLedColor (Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3652); Gauge.setLedColor (Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3659); Gauge.getLedType (Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3689); Gauge.setLedType (Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:3697); Gauge.isLedVisible (Libs_jGauges/src/eu/hansolo/medusa/Gauge.java:4794). Rename to `GetLed`. [rule N6]
D28 · Secrets (history)· Rotate the exposed credentials · ×1
Thin README README.md:1— The root README is 40 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, in the README and in the repository documents it links, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise — or with no heading at all — is not seen and this row may understate what the document covers.
No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, 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.
M2 · Architecture documentation· No architecture diagram/doc · ×1
No architecture diagram/doc — No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
Logging is not universal — Only 1/2 runnable modules use logging (modules with no entry point or server are excluded — they are libraries a runnable module hosts). Silent: `.`.
No SAST — 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 was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
X5 · Nullable reference types· Java packages are not null-marked everywhere · ×1
Java packages are not null-marked everywhere — 0/99 of this repository's Java package directories are under a non-null default: a `package-info.java` declaring `@NullMarked` (JSpecify) or `@NonNullApi`, `@ParametersAreNonnullByDefault`, `@NonNullByDefault`, `@DefaultQualifier(NonNull.class)`; a `module-info.java` declaring `@NullMarked`; every type in it `@NullMarked`; or a build that runs NullAway with the package in `AnnotatedPackages`, or the Checker Framework's `NullnessChecker`. Elsewhere every reference admits null and no checker warns on the dereference that throws a `NullPointerException`.
Silent fallback default on parse failure Libs_MQTT/src/org/eclipse/paho/client/mqttv3/internal/ResourceBundleCatalog.java:33— `getLocalizedMessage` returns `"MqttException"` when `MissingResourceException` is thrown, with no log or throw — a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the Javadoc, and the row stops firing.
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.
none (no readable dependency manifest): not applicable — 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 Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet).
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); 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.
none (no readable dependency manifest): not applicable — 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 Python pyproject.toml/requirements.txt (pip/uv/Poetry), a Swift Package.swift/Package.resolved, a Cargo manifest, a Go module (go.mod/go.sum), a Gradle version catalogue, a Maven POM, an sbt build (build.sbt), composer.json, package.json, a Dart pubspec.yaml, an Elixir mix.exs/mix.lock (Hex), a rebar.config / erlang.mk DEPS (Hex), a Ruby Gemfile/Gemfile.lock or .gemspec (Bundler/RubyGems) — not scanned yet).
0
—
Run 01a1eae9-f25a-7bd1-a07d-f10505a85a1b · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 16 · Warnings: 1689 · Recommendations: 72 — Appendix A · all findings · full markdown report.
Generated by the Canine Code Analyzer: deterministic code-health analysis. 17-11-2026 @ 19:09 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.