blot-git 0.7.2__tar.gz → 0.7.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. {blot_git-0.7.2 → blot_git-0.7.3}/.pre-commit-hooks.yaml +1 -1
  2. {blot_git-0.7.2 → blot_git-0.7.3}/CLAUDE.md +20 -9
  3. {blot_git-0.7.2 → blot_git-0.7.3}/PKG-INFO +1 -1
  4. {blot_git-0.7.2 → blot_git-0.7.3}/README.md +2 -2
  5. {blot_git-0.7.2 → blot_git-0.7.3}/action.yml +1 -1
  6. {blot_git-0.7.2 → blot_git-0.7.3}/bench/RESULTS.md +40 -0
  7. {blot_git-0.7.2 → blot_git-0.7.3}/bench/labels/pallets-flask.json +10 -0
  8. {blot_git-0.7.2 → blot_git-0.7.3}/bench/regressions/expressjs-express.json +22 -33
  9. {blot_git-0.7.2 → blot_git-0.7.3}/bench/regressions/facebook-react.json +44 -46
  10. {blot_git-0.7.2 → blot_git-0.7.3}/bench/regressions/psf-requests.json +22 -22
  11. {blot_git-0.7.2 → blot_git-0.7.3}/bench/regressions.py +14 -6
  12. {blot_git-0.7.2 → blot_git-0.7.3}/pyproject.toml +1 -1
  13. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/__init__.py +1 -1
  14. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/bench.py +3 -3
  15. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/diff.py +37 -15
  16. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/git.py +11 -0
  17. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/index.py +3 -3
  18. blot_git-0.7.3/src/blot/trace.py +385 -0
  19. {blot_git-0.7.2 → blot_git-0.7.3}/tests/conftest.py +5 -2
  20. blot_git-0.7.3/tests/fixtures/exact_hops/django-005c9fc4.diff +52 -0
  21. blot_git-0.7.3/tests/fixtures/exact_hops/django-ac0808f7.diff +25 -0
  22. blot_git-0.7.3/tests/fixtures/exact_hops/express-80e9ffbf.diff +12 -0
  23. blot_git-0.7.3/tests/fixtures/exact_hops/react-b8f82587.diff +61 -0
  24. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_cli.py +78 -0
  25. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_diff.py +68 -1
  26. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_index.py +31 -1
  27. blot_git-0.7.3/tests/test_trace.py +645 -0
  28. blot_git-0.7.3/tests/test_trace_comma.py +197 -0
  29. blot_git-0.7.2/src/blot/trace.py +0 -152
  30. blot_git-0.7.2/tests/test_trace.py +0 -61
  31. {blot_git-0.7.2 → blot_git-0.7.3}/.gitattributes +0 -0
  32. {blot_git-0.7.2 → blot_git-0.7.3}/.github/ISSUE_TEMPLATE/bench_case.md +0 -0
  33. {blot_git-0.7.2 → blot_git-0.7.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  34. {blot_git-0.7.2 → blot_git-0.7.3}/.github/ISSUE_TEMPLATE/check_idea.md +0 -0
  35. {blot_git-0.7.2 → blot_git-0.7.3}/.github/pull_request_template.md +0 -0
  36. {blot_git-0.7.2 → blot_git-0.7.3}/.github/workflows/blot.yml +0 -0
  37. {blot_git-0.7.2 → blot_git-0.7.3}/.github/workflows/ci.yml +0 -0
  38. {blot_git-0.7.2 → blot_git-0.7.3}/.github/workflows/release.yml +0 -0
  39. {blot_git-0.7.2 → blot_git-0.7.3}/.gitignore +0 -0
  40. {blot_git-0.7.2 → blot_git-0.7.3}/CONTRIBUTING.md +0 -0
  41. {blot_git-0.7.2 → blot_git-0.7.3}/LICENSE +0 -0
  42. {blot_git-0.7.2 → blot_git-0.7.3}/assets/demo/demo.gif +0 -0
  43. {blot_git-0.7.2 → blot_git-0.7.3}/assets/demo/make_demo.py +0 -0
  44. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/blue/alert.svg +0 -0
  45. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/blue/faces.svg +0 -0
  46. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/blue/happy.svg +0 -0
  47. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/blue/idle.svg +0 -0
  48. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/blue/sad.svg +0 -0
  49. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/blue/sleepy.svg +0 -0
  50. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/blue/walk.svg +0 -0
  51. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/blue/worried.svg +0 -0
  52. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/build_sprites.py +0 -0
  53. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/mustard/alert.svg +0 -0
  54. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/mustard/faces.svg +0 -0
  55. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/mustard/happy.svg +0 -0
  56. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/mustard/idle.svg +0 -0
  57. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/mustard/sad.svg +0 -0
  58. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/mustard/sleepy.svg +0 -0
  59. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/mustard/walk.svg +0 -0
  60. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/mustard/worried.svg +0 -0
  61. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/orange/alert.svg +0 -0
  62. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/orange/faces.svg +0 -0
  63. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/orange/happy.svg +0 -0
  64. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/orange/idle.svg +0 -0
  65. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/orange/sad.svg +0 -0
  66. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/orange/sleepy.svg +0 -0
  67. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/orange/walk.svg +0 -0
  68. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/orange/worried.svg +0 -0
  69. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/sage/alert.svg +0 -0
  70. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/sage/faces.svg +0 -0
  71. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/sage/happy.svg +0 -0
  72. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/sage/idle.svg +0 -0
  73. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/sage/sad.svg +0 -0
  74. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/sage/sleepy.svg +0 -0
  75. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/sage/walk.svg +0 -0
  76. {blot_git-0.7.2 → blot_git-0.7.3}/assets/sora/sage/worried.svg +0 -0
  77. {blot_git-0.7.2 → blot_git-0.7.3}/bench/README.md +0 -0
  78. {blot_git-0.7.2 → blot_git-0.7.3}/bench/cases.json +0 -0
  79. {blot_git-0.7.2 → blot_git-0.7.3}/bench/labels/django-django.json +0 -0
  80. {blot_git-0.7.2 → blot_git-0.7.3}/bench/labels/expressjs-express.json +0 -0
  81. {blot_git-0.7.2 → blot_git-0.7.3}/bench/labels/facebook-react.json +0 -0
  82. {blot_git-0.7.2 → blot_git-0.7.3}/bench/labels/psf-requests.json +0 -0
  83. {blot_git-0.7.2 → blot_git-0.7.3}/bench/regressions/django-django.json +0 -0
  84. {blot_git-0.7.2 → blot_git-0.7.3}/bench/regressions/pallets-flask.json +0 -0
  85. {blot_git-0.7.2 → blot_git-0.7.3}/docs/EXPLAINER.md +0 -0
  86. {blot_git-0.7.2 → blot_git-0.7.3}/docs/PRD.md +0 -0
  87. {blot_git-0.7.2 → blot_git-0.7.3}/docs/PYPI.md +0 -0
  88. {blot_git-0.7.2 → blot_git-0.7.3}/docs/competitors.md +0 -0
  89. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/__main__.py +0 -0
  90. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/checks/__init__.py +0 -0
  91. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/checks/base.py +0 -0
  92. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/checks/cochange.py +0 -0
  93. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/checks/readded_bug.py +0 -0
  94. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/checks/removed_fix.py +0 -0
  95. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/classify.py +0 -0
  96. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/cli.py +0 -0
  97. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/config.py +0 -0
  98. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/fixmap.py +0 -0
  99. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/github.py +0 -0
  100. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/guard.py +0 -0
  101. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/hooks.py +0 -0
  102. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/mcp.py +0 -0
  103. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/report.py +0 -0
  104. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/store.py +0 -0
  105. {blot_git-0.7.2 → blot_git-0.7.3}/src/blot/why.py +0 -0
  106. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_action.py +0 -0
  107. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_bench.py +0 -0
  108. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_checks.py +0 -0
  109. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_classify.py +0 -0
  110. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_config.py +0 -0
  111. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_git.py +0 -0
  112. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_guard.py +0 -0
  113. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_hooks.py +0 -0
  114. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_map.py +0 -0
  115. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_mcp.py +0 -0
  116. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_regressions.py +0 -0
  117. {blot_git-0.7.2 → blot_git-0.7.3}/tests/test_why_github.py +0 -0
@@ -1,6 +1,6 @@
1
1
  # Lets users of the pre-commit framework add blot with:
2
2
  # - repo: https://github.com/Sym-jay/Blot
3
- # rev: v0.7.2
3
+ # rev: v0.7.3
4
4
  # hooks: [{id: blot}]
5
5
  # The first commit indexes the repo's history; later commits refresh the index incrementally.
6
6
  - id: blot
@@ -45,7 +45,8 @@ python -m venv .venv && .venv/Scripts/python -m pip install -e ".[dev]"
45
45
 
46
46
  ## Conventions
47
47
  - Work on a branch, open a PR, merge only when the owner says so. Squash-merge.
48
- - No `Co-Authored-By` trailer in commits or PRs (the owner's choice); PR bodies end with the Claude Code line.
48
+ - No Claude attribution anywhere (the owner's choice): no `Co-Authored-By` trailer in commits, and no
49
+ "Generated with Claude Code" line in PRs, issues or comments.
49
50
  - Contributors (e.g. O1sumitkumar) should comment on the issue before starting a PR.
50
51
  - Never claim results that weren't run; label replay findings honestly (e.g. the Express
51
52
  CVE-2024-51999 advisory was later withdrawn, so its revert was deliberate).
@@ -56,12 +57,13 @@ python -m venv .venv && .venv/Scripts/python -m pip install -e ".[dev]"
56
57
  - Writing code through bash heredocs mangles `\b`, `\n`, `\s`: use the Edit tool for regexes/strings.
57
58
  - `gh api` paths: no leading slash (Git Bash rewrites it).
58
59
 
59
- ## State (2026-11-27)
60
- - Released 0.7.2: checks, `why`, `map`, `--github`, agent guard (`blot guard` / `install-agent-hook`),
60
+ ## State (2026-12-06)
61
+ - Released 0.7.3: checks, `why`, `map`, `--github`, agent guard (`blot guard` / `install-agent-hook`),
61
62
  MCP server (`blot mcp` / `install-mcp`, tools `explain_lines` and `load_bearing_lines`), bench/replay
62
- with labels, parallel indexing, pre-commit framework (`rev: v0.7.2`), GitHub Action (`@v0.7.2`).
63
- 0.7.1 added the docstring rule (#40) and the structural `KeptLines` matcher (#45); 0.7.2 adds the
64
- explicit bug-fix marker rule (#56).
63
+ with labels, parallel indexing, pre-commit framework (`rev: v0.7.3`), GitHub Action (`@v0.7.3`).
64
+ 0.7.1 added the docstring rule (#40) and the structural `KeptLines` matcher (#45); 0.7.2 the
65
+ explicit bug-fix marker rule (#56); 0.7.3 the trailing-comma hop (#58), the hunk-count diff parser
66
+ (#61) and corroborated refactor hops (#62).
65
67
  - Live-tested in Claude Code: the guard (2026-11-06: the agent cited fix 8efea0c it was undoing) and MCP
66
68
  (2026-11-14: an agent called `load_bearing_lines` on its own and answered correctly).
67
69
  Throwaway test folder: `Documents\flask-guard-test` (guard hook + `.mcp.json`).
@@ -74,8 +76,16 @@ python -m venv .venv && .venv/Scripts/python -m pip install -e ".[dev]"
74
76
  at severity 1); none came from tracing or the matcher. 46 misses are outside the model (new code,
75
77
  feature lines, build/deps). Re-run with `bench/regressions.py run` after any classify/check change.
76
78
  Judging rule: a revert is a bug only if a message/PR/changelog/ticket says what broke.
77
- - Precision (2026-11-21, after #45): 69/124 useful (55.6%); Django 1.43 / 10 commits (over the ≤ 1
78
- target), others ≤ 0.62.
79
+ - Precision (2026-11-29, after #58): 70/126 useful (55.6%); Django 1.43 / 10 commits (over the ≤ 1
80
+ target), others ≤ 0.64. Recall 12/71 on target (12/27 within model).
81
+ - #58 (Sandro850): the refactor hop follows Black's trailing commas via a verified AST fallback
82
+ (`RefactorOrigins.find_comma`); simpler index-only versions misattributed identical calls.
83
+ - #61 (2026-12-04): `parse_unified_diff` follows `@@` hunk counts, so `-- `/`++ ` source rows aren't
84
+ file headers; diffs are read as bytes via `git.read_git_diff` and split on LF only. Snapshot readers
85
+ (`why`, `map`, `readded-bug`) still use `splitlines()`.
86
+ - #62 (2026-12-05, closes #59): an exact refactor hop must be corroborated by the refactor's diff
87
+ (same hunk, or neighbouring rows moved with it); ties stop. All results unchanged (70/126, 12/71).
88
+ Cost: slower large traces and replays, more memory; #63 tracks it.
79
89
  `forgot-related-file` has 0 useful warnings in 45 labelled; candidate to become opt-in.
80
90
  - `--github` re-measured (2026-11-27, after #45): precision 55.6% → 54.5% (+9 useful, +10 noise), recall
81
91
  11 → 12 of 71 on target. Opt-in, not default. `regressions.py run --github` exists.
@@ -95,5 +105,6 @@ python -m venv .venv && .venv/Scripts/python -m pip install -e ".[dev]"
95
105
  trailing commas), renamed attributes.
96
106
  - Labels match on commit/check/path/cited commit, not line: when a rule moves a warning to another line,
97
107
  re-check its label (#40 found two that way).
98
- - Contributors: Sandro850 (#30, #38, #40, #45). Open issues: #2–#4, #6 (bench cases), #33 (guard reports).
108
+ - Contributors: Sandro850 (#30, #38, #40, #45, #58, #61, #62). Open issues: #2–#4, #6 (bench cases),
109
+ #33 (guard reports), #48–#51, #63 (speed after #62).
99
110
  - Launch: dev.to post published 2026-10-24; the CVE sentence there should mention the withdrawn advisory.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: blot-git
3
- Version: 0.7.2
3
+ Version: 0.7.3
4
4
  Summary: A pre-commit check that has read your project's history: warns when a change removes a fix, re-adds a fixed bug, or forgets a file that always changes too.
5
5
  Project-URL: Homepage, https://github.com/Sym-jay/Blot
6
6
  Project-URL: Issues, https://github.com/Sym-jay/Blot/issues
@@ -22,7 +22,7 @@ It runs locally, needs no account or AI, and stays quiet unless the history give
22
22
 
23
23
  *A real run on Flask. Plain `git blame` points to a 2023 commit that only moved this line; Blot traces past it to the 2020 fix that explains it. (Regenerate with `python assets/demo/make_demo.py`.)*
24
24
 
25
- > **Status:** alpha. The checks, `why`, `map`, the agent guard and the MCP server all work and are tested live; a check takes about 500 ms on Flask. Measured on the last 500 commits of Flask, requests, Express, Django and React, it warns on 0.6–11% of commits, and 69 of its 124 warnings (56%, each labelled by hand) were worth a reviewer's time. Numbers and method: [bench/RESULTS.md](bench/RESULTS.md).
25
+ > **Status:** alpha. The checks, `why`, `map`, the agent guard and the MCP server all work and are tested live; a check takes about 500 ms on Flask. Measured on the last 500 commits of Flask, requests, Express, Django and React, it warns on 0.6–11% of commits, and 70 of its 126 warnings (56%, each labelled by hand) were worth a reviewer's time. Numbers and method: [bench/RESULTS.md](bench/RESULTS.md).
26
26
 
27
27
  ## What Blot catches, and what it doesn't
28
28
 
@@ -194,7 +194,7 @@ jobs:
194
194
  blot:
195
195
  runs-on: ubuntu-latest
196
196
  steps:
197
- - uses: Sym-jay/Blot@v0.7.2
197
+ - uses: Sym-jay/Blot@v0.7.3
198
198
  ```
199
199
 
200
200
  The action checks out the pull request with its full history, installs Blot, runs `blot index` and
@@ -1,6 +1,6 @@
1
1
  # Run Blot on a pull request and show its findings as warning annotations.
2
2
  # Usage (in a workflow triggered by pull_request):
3
- # - uses: Sym-jay/Blot@v0.7.2
3
+ # - uses: Sym-jay/Blot@v0.7.3
4
4
  # See "Use in CI" in README.md.
5
5
  name: Blot
6
6
  description: History-aware checks on the commits of a pull request, shown as warning annotations
@@ -187,6 +187,46 @@ Two narrower leads came out of this, both unmeasured: let the refactor hop match
187
187
  (Black's trailing commas, as in `025589ee`), and follow renamed attributes (`self.session` →
188
188
  `self._session`).
189
189
 
190
+ ### Kept: following Black's trailing commas (#58, by @Sandro850, 2026-11-29)
191
+
192
+ The first lead, done narrowly. When the refactor hop finds no exact match, it now checks whether the
193
+ line differs only by a trailing comma on the last keyword argument of a Python call, and verifies
194
+ that the two versions of the file have equal ASTs and that the call is the same call. In Flask, the
195
+ `session=self.session` line from fix #2935 can now be followed through Black's `025589ee`.
196
+
197
+ | | Before | After |
198
+ |---|---|---|
199
+ | Precision, all five | 69/125 (55.2%) | **70/126 (55.6%)**: one new useful Flask warning, every other warning identical |
200
+ | Recall | 12/71 | 12/71: all 137 regression pairs unchanged |
201
+
202
+ Simpler versions were measured too and gave the same benchmark results, but they could blame the
203
+ wrong fix when two identical calls change or swap places in one commit (Sandro found this; the first
204
+ version of the PR had the same flaw). The kept version rejects calls whose origin is ambiguous. A
205
+ related weakness in the exact-text hop (identical lines that move) predates #58; #62 fixes it (below).
206
+
207
+ ### Kept: a stricter diff parser and corroborated refactor hops (#61, #62, by @Sandro850, 2026-12-05)
208
+
209
+ Two correctness fixes that change no measured result.
210
+
211
+ - **#61, diff parser.** Removed lines starting with `-- ` and added lines starting with `++ ` (SQL
212
+ comments, for example) were read as file headers, which shifted every later line number in the file
213
+ and could hide a `removed-fix` warning. The parser now follows the `@@` hunk counts, reads Git's output
214
+ as bytes, and splits rows only on LF.
215
+ - **#62, exact refactor hop.** The hop used to take the first removed line with the same normalized
216
+ text, so it could cite a different statement's fix when identical lines moved. It now needs the
217
+ refactor's own diff to back the match: the line was rewritten in the same hunk, or its nearest
218
+ substantive neighbours moved with it. A tie stops the trail at the refactor instead of guessing.
219
+ Among 162 historical hops judged by hand, all 32 wrong ones are gone; 3 correct hops now stop.
220
+
221
+ | | Before | After #61 and #62 |
222
+ |---|---|---|
223
+ | Precision, all five | 70/126 (55.6%) | 70/126: every warning identical, re-run independently |
224
+ | Recall | 12/71 | 12/71: every verdict identical |
225
+ | Flask `blot check` | ~123 ms | ~124 ms |
226
+
227
+ The cost is in large traces: #62 measured a Django forced check 21% slower and retained memory about
228
+ 2.5x, and our replays ran noticeably slower (not yet a controlled A/B). Tracked in #63.
229
+
190
230
  ### Tried and dropped: a per-commit warning budget (2026-11-25)
191
231
 
192
232
  Idea: show at most N warnings per commit, ranked by strength (strong defect or CVE wording first, then
@@ -61,6 +61,16 @@
61
61
  "cited": "e08bcf9",
62
62
  "verdict": "noise",
63
63
  "reason": "trace-past-unchanged experiment (2026-11-18): type-hint modernization of the `self.session` annotation; behaviour unchanged"
64
+ },
65
+ {
66
+ "sha": "c17f37939",
67
+ "subject": "request context tracks session access",
68
+ "check": "removed-fix",
69
+ "path": "src/flask/ctx.py",
70
+ "line": 354,
71
+ "cited": "e08bcf9",
72
+ "verdict": "useful",
73
+ "reason": "copy() switches from the session property to its backing field to avoid access tracking while preserving the current-session propagation from fix #2935"
64
74
  }
65
75
  ]
66
76
  }
@@ -19,7 +19,7 @@
19
19
  "fix_files": [
20
20
  "package.json"
21
21
  ],
22
- "ms": 47,
22
+ "ms": 140,
23
23
  "findings": [],
24
24
  "removed_origins": [
25
25
  {
@@ -49,7 +49,7 @@
49
49
  "fix_files": [
50
50
  "lib/utils.js"
51
51
  ],
52
- "ms": 78,
52
+ "ms": 292,
53
53
  "findings": [],
54
54
  "removed_origins": [
55
55
  {
@@ -79,7 +79,7 @@
79
79
  "fix_files": [
80
80
  "lib/application.js"
81
81
  ],
82
- "ms": 137,
82
+ "ms": 615,
83
83
  "findings": [],
84
84
  "removed_origins": [
85
85
  {
@@ -121,7 +121,7 @@
121
121
  "fix_files": [
122
122
  "lib/response.js"
123
123
  ],
124
- "ms": 62,
124
+ "ms": 249,
125
125
  "findings": [],
126
126
  "removed_origins": [
127
127
  {
@@ -151,7 +151,7 @@
151
151
  "fix_files": [
152
152
  "lib/router/index.js"
153
153
  ],
154
- "ms": 193,
154
+ "ms": 393,
155
155
  "findings": [
156
156
  {
157
157
  "check": "removed-fix",
@@ -181,10 +181,10 @@
181
181
  184,
182
182
  186,
183
183
  198,
184
- 200,
185
- 203
184
+ 199,
185
+ 200
186
186
  ],
187
- "count": 6,
187
+ "count": 7,
188
188
  "origin": "80e9ffbf5d",
189
189
  "subject": "Refactored router. Closes #639",
190
190
  "severity": 0,
@@ -212,17 +212,6 @@
212
212
  "severity": 0,
213
213
  "refactor": false
214
214
  },
215
- {
216
- "path": "lib/router/index.js",
217
- "lines": [
218
- 199
219
- ],
220
- "count": 1,
221
- "origin": "3d597a554d",
222
- "subject": "moved files from lib/express/* to lib/",
223
- "severity": 0,
224
- "refactor": true
225
- },
226
215
  {
227
216
  "path": "lib/router/index.js",
228
217
  "lines": [
@@ -273,7 +262,7 @@
273
262
  "fix_files": [
274
263
  "lib/response.js"
275
264
  ],
276
- "ms": 37,
265
+ "ms": 147,
277
266
  "findings": [],
278
267
  "removed_origins": [],
279
268
  "bug": false,
@@ -292,7 +281,7 @@
292
281
  "lib/application.js",
293
282
  "lib/response.js"
294
283
  ],
295
- "ms": 40,
284
+ "ms": 186,
296
285
  "findings": [],
297
286
  "removed_origins": [
298
287
  {
@@ -322,7 +311,7 @@
322
311
  "fix_files": [
323
312
  "lib/utils.js"
324
313
  ],
325
- "ms": 0,
314
+ "ms": 3,
326
315
  "findings": [],
327
316
  "removed_origins": [],
328
317
  "bug": false,
@@ -340,7 +329,7 @@
340
329
  "fix_files": [
341
330
  "lib/response.js"
342
331
  ],
343
- "ms": 42,
332
+ "ms": 208,
344
333
  "findings": [],
345
334
  "removed_origins": [
346
335
  {
@@ -370,7 +359,7 @@
370
359
  "fix_files": [
371
360
  "lib/express/view.js"
372
361
  ],
373
- "ms": 1,
362
+ "ms": 4,
374
363
  "findings": [],
375
364
  "removed_origins": [],
376
365
  "bug": true,
@@ -388,7 +377,7 @@
388
377
  "fix_files": [
389
378
  "lib/express/server.js"
390
379
  ],
391
- "ms": 0,
380
+ "ms": 1,
392
381
  "findings": [],
393
382
  "removed_origins": [],
394
383
  "bug": false,
@@ -406,7 +395,7 @@
406
395
  "fix_files": [
407
396
  "Makefile"
408
397
  ],
409
- "ms": 42,
398
+ "ms": 188,
410
399
  "findings": [],
411
400
  "removed_origins": [
412
401
  {
@@ -440,7 +429,7 @@
440
429
  "fix_files": [
441
430
  "lib/express/request.js"
442
431
  ],
443
- "ms": 43,
432
+ "ms": 171,
444
433
  "findings": [],
445
434
  "removed_origins": [
446
435
  {
@@ -470,7 +459,7 @@
470
459
  "fix_files": [
471
460
  "lib/express/plugins/cache.js"
472
461
  ],
473
- "ms": 44,
462
+ "ms": 144,
474
463
  "findings": [],
475
464
  "removed_origins": [
476
465
  {
@@ -523,7 +512,7 @@
523
512
  "fix_files": [
524
513
  "lib/express/plugins/session.js"
525
514
  ],
526
- "ms": 48,
515
+ "ms": 206,
527
516
  "findings": [],
528
517
  "removed_origins": [
529
518
  {
@@ -553,7 +542,7 @@
553
542
  "fix_files": [
554
543
  "lib/express.js"
555
544
  ],
556
- "ms": 0,
545
+ "ms": 1,
557
546
  "findings": [],
558
547
  "removed_origins": [],
559
548
  "bug": false,
@@ -571,7 +560,7 @@
571
560
  "fix_files": [
572
561
  "lib/express.js"
573
562
  ],
574
- "ms": 41,
563
+ "ms": 177,
575
564
  "findings": [],
576
565
  "removed_origins": [
577
566
  {
@@ -601,7 +590,7 @@
601
590
  "fix_files": [
602
591
  "spec/spec.plugins.flash.js"
603
592
  ],
604
- "ms": 42,
593
+ "ms": 212,
605
594
  "findings": [],
606
595
  "removed_origins": [
607
596
  {
@@ -631,7 +620,7 @@
631
620
  "fix_files": [
632
621
  "seed.yml"
633
622
  ],
634
- "ms": 40,
623
+ "ms": 192,
635
624
  "findings": [],
636
625
  "removed_origins": [
637
626
  {