instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aicis__fresco__389 | aicis/fresco | 389 | defect | 16cda542f360196b63bb59d2943ba62a3466df64 | 5620611263317780dac16662b7fba49fe49aac2f | Ot base implementation from Chou Orlandi with fixes | Closes #388 | diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml
index ce788217e..38cc79dfd 100644
--- a/.github/workflows/qa.yml
+++ b/.github/workflows/qa.yml
@@ -2,7 +2,7 @@ name: Build
on:
push:
- branches: [ master ]
+ branches: [ PROtHl17 ]
pull_request:
branches: [ master ]
diff --git a/dem... | 13 | 11 | 4 | [{"id": "G0", "claim": "HMAC with a static key would be better to use as the random oracle than plain SHA-256.", "category": "security", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "toByteArray must always return an array of the same amount of bytes regardless of the size of ... | null |
aicis__fresco__395 | aicis/fresco | 395 | defect | b8ea5e84a0a17f361820272e427df7ffb0618786 | 09354c5be1d7931e088fe9a65f2ef515dde7fdee | Handle security issue with OT extension | This closes issues #394
The PR also includes minor changes suggested by the SonarLint plugin in order to improve the general code quality in the files touched. | diff --git a/suite/tinytables/src/main/java/dk/alexandra/fresco/suite/tinytables/prepro/TinyTablesPreproResourcePool.java b/suite/tinytables/src/main/java/dk/alexandra/fresco/suite/tinytables/prepro/TinyTablesPreproResourcePool.java
index 502ebf211..8561bc63e 100644
--- a/suite/tinytables/src/main/java/dk/alexandra/fre... | 6 | 5 | 0 | [{"id": "G0", "claim": "The createRot method in MascotResourcePoolImpl.java should use the project's correct code style (standard 2-space indentation) instead of the 6/8-space indented block this PR added.", "category": "style", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Ro... | null |
aidenybai__million__411 | aidenybai/million | 411 | defect | 38cfb34b1fb815f2f963e536c0dcc70828caf985 | 2076bb8809b3c5a6c5427bc37234119f6d164693 | Implement Compiler tests | **Please describe the changes this PR makes and why it should be merged:**
This PR introduces tests for the compiler. The tests specifically validate the Babel transformation behavior of `block()` in both valid and invalid use cases.
**Status**
- [x] Code changes have been tested against prettier, or there are... | diff --git a/packages/compiler/package.json b/packages/compiler/package.json
index 5064af00e1..98b90efd0c 100644
--- a/packages/compiler/package.json
+++ b/packages/compiler/package.json
@@ -17,6 +17,8 @@
"@types/babel__core": "^7.20.0",
"@types/babel__generator": "^7.6.4",
"@types/babel__helper-module-i... | 2 | 2 | 0 | [{"id": "G0", "claim": "The compiler test should not actually log to the console; the console.warn spy should be given a no-op mockImplementation.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Vitest should perhaps be upgraded to the latest version (ra... | null |
aidenybai__react-grab__123 | aidenybai/react-grab | 123 | defect | 9921927d916de9841113b978c16a6def4d99187b | d2e321ea7903e4f74d1cdcb886dcecdb91035191 | feat: improve drag selection bounds and preview highlights | ## Summary
- Adds `frozenDragRect` state to preserve the original drag selection rectangle when elements are frozen
- Introduces `dragPreviewBounds` memo to show real-time element preview highlights during drag selection
- Uses the drag rectangle (rather than element bounds) for the selection box overlay when multiple... | diff --git a/packages/react-grab/e2e/element-context.spec.ts b/packages/react-grab/e2e/element-context.spec.ts
index 244e7298a..0f23b8225 100644
--- a/packages/react-grab/e2e/element-context.spec.ts
+++ b/packages/react-grab/e2e/element-context.spec.ts
@@ -7,9 +7,9 @@ test.describe("Element Context Fallback", () => {
... | 3 | 2 | 2 | [{"id": "G0", "claim": "After a multi-element drag selection, frozenElementsBounds() returns a single-element array holding the drag rect, so the allBounds.length > 1 checks in handleContextMenuCopyScreenshot and handleContextMenuCopyHtml always fail and the context menu screenshot/HTML copy captures only the first ele... | null |
aidenybai__react-grab__137 | aidenybai/react-grab | 137 | defect | fd913d6cd445e4aa1fe6b33533e497edf68f5742 | e3948b775951287b31d917f00eea4526bb823090 | Selection viewport changes | Re-detect the element under the cursor on scroll and resize events to fix incorrect selection after viewport changes.
Previously, `store.detectedElement` was not updated during scroll or resize events if the mouse position remained static, causing the selection to stay on the old element even when a new element was un... | diff --git a/packages/react-grab/e2e/viewport.spec.ts b/packages/react-grab/e2e/viewport.spec.ts
index e7e19dc90..d79306d71 100644
--- a/packages/react-grab/e2e/viewport.spec.ts
+++ b/packages/react-grab/e2e/viewport.spec.ts
@@ -14,6 +14,148 @@ test.describe("Viewport and Scroll Handling", () => {
expect(isVisible... | 8 | 2 | 0 | [{"id": "G0", "claim": "In handleViewportChange, redetectElementUnderPointer() runs before incrementViewportVersion(), so isValidGrabbableElement() may repopulate the visibility cache from stale pre-update viewport data that reactive effects then read; move the re-detection after the version increment.", "category": "c... | null |
aidenybai__react-grab__140 | aidenybai/react-grab | 140 | defect | fd913d6cd445e4aa1fe6b33533e497edf68f5742 | 915c9190ef819d18c6021fe4e45d361e469eb995 | refactor: convert copy to plugin and fix context menu architecture | ## Summary
- Create `copy.ts` plugin for consistent action handling with other plugins
- Remove hardcoded "Copy" menu item from context-menu.tsx - now all menu items come from plugins
- Fix redundant `onHide()` call in TagBadge onClick (open action already handles cleanup)
- Move `builtInPlugins` array after imports f... | diff --git a/packages/react-grab/src/components/context-menu.tsx b/packages/react-grab/src/components/context-menu.tsx
index 944dcf7b2..8a0344978 100644
--- a/packages/react-grab/src/components/context-menu.tsx
+++ b/packages/react-grab/src/components/context-menu.tsx
@@ -11,6 +11,7 @@ import type {
OverlayBounds,
... | 11 | 1 | 1 | [{"id": "G0", "claim": "In ContextMenuAction the `enabled` callback receives `ActionContext` while `onAction` receives `ContextMenuActionContext`, which is type-unsafe and mismatches runtime behavior; `enabled` should be typed `(context: ContextMenuActionContext) => boolean`.", "category": "correctness", "verdict": "un... | null |
aidenybai__react-grab__141 | aidenybai/react-grab | 141 | defect | e9395c0c813b66978b484bbc43940ae9733c2109 | 9148c9d132c24e3434ed01655d5422cd0ef38457 | Grab selection default copy | Change drag selection to directly copy content by default, aligning its behavior with single-click selections.
Previously, drag selections would open a context menu, requiring an additional click to copy. This update streamlines the user experience by making drag selection immediately copy the selected elements, match... | diff --git a/packages/react-grab/e2e/context-menu.spec.ts b/packages/react-grab/e2e/context-menu.spec.ts
index e14acc941..7888040fb 100644
--- a/packages/react-grab/e2e/context-menu.spec.ts
+++ b/packages/react-grab/e2e/context-menu.spec.ts
@@ -540,19 +540,6 @@ test.describe("Context Menu", () => {
});
});
- ... | 2 | 1 | 1 | [{"id": "G0", "claim": "In handleDragSelection the shouldDeactivateAfter check omits the hasModifierKeyHeld condition used in handleSingleClick, so a user who holds Cmd/Ctrl while drag-selecting will always have the tool deactivate after copying instead of staying active for multiple selections.", "category": "correctn... | null |
aidenybai__react-grab__142 | aidenybai/react-grab | 142 | defect | 276fbf9698d66c082166ce928ff0cf1c44a19187 | 6657d9b2a2cf673e4f9e31a81555e17c76daa0e5 | feat: add comment mode to toolbar | ## Summary
- Add comment button to toolbar that enters prompt mode on next element click
- Add `pendingCommentMode` state to track when comment mode is pending
- Extract common toolbar button handlers to reduce code duplication
## Changes
### New Feature
- Comment button in toolbar triggers prompt mode on next eleme... | diff --git a/packages/react-grab/e2e/viewport.spec.ts b/packages/react-grab/e2e/viewport.spec.ts
index d79306d71..72e291c1a 100644
--- a/packages/react-grab/e2e/viewport.spec.ts
+++ b/packages/react-grab/e2e/viewport.spec.ts
@@ -19,7 +19,9 @@ test.describe("Viewport and Scroll Handling", () => {
}) => {
await r... | 5 | 3 | 1 | [{"id": "G0", "claim": "createFreezeHandlers always calls props.onSelectHoverChange regardless of which button uses it, so the comment button incorrectly triggers select hover callbacks; it should accept an optional parameter controlling whether to call the hover callback.", "category": "correctness", "verdict": "uncer... | null |
aidenybai__react-grab__150 | aidenybai/react-grab | 150 | defect | 3b3b6caf943310070f42a8a5f9cadee0baf19dea | 7498ac205c1c45462b9a0062828ffccd194e1708 | Table rows demo continuity | Make the mobile demo animation continuous and include table row selections.
Previously, the animation had a 12-second pause between loops and did not animate the "Recent Activity" table rows. This change removes the pause and extends the animation to sequentially select and "copy" each table row.
---
<a href="https:/... | diff --git a/packages/website/components/mobile-demo-animation.tsx b/packages/website/components/mobile-demo-animation.tsx
index fa07ed9b7..acb6c1b67 100644
--- a/packages/website/components/mobile-demo-animation.tsx
+++ b/packages/website/components/mobile-demo-animation.tsx
@@ -3,7 +3,7 @@
import { useState, useEffe... | 2 | 1 | 1 | [{"id": "G0", "claim": "Toggling isCancelled back to false in handleVisibilityChange before the previous async animation loop has exited at an await point can leave multiple concurrent animation loops running.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c... | null |
aidenybai__react-grab__163 | aidenybai/react-grab | 163 | defect | 939e06dbf9efdd2e40e3a176f7e602ac77c705af | 46a9add439405bc26542d2f0ce7d6c11d3e6b001 | fix: skip react-grab shadow DOM animations during global unfreeze | ## Summary
- `unfreezeGlobalAnimations` was calling `animation.finish()` on **all** document animations, including those inside react-grab's own shadow DOM. The freeze CSS correctly only affects main-document elements (shadow DOM style encapsulation), but the unfreeze path was unscoped — causing react-grab UI elements... | diff --git a/packages/e2e-playground/src/App.tsx b/packages/e2e-playground/src/App.tsx
index cd2264024..b53b628bd 100644
--- a/packages/e2e-playground/src/App.tsx
+++ b/packages/e2e-playground/src/App.tsx
@@ -357,6 +357,28 @@ const VariousElements = () => {
);
};
+const AnimatedElements = () => {
+ return (
+ ... | 3 | 2 | 2 | [{"id": "G0", "claim": "animation.effect.target can be null (e.g. for animations on pseudo-elements or with no target), so calling target.getRootNode() on it would throw a TypeError and crash unfreeze on such pages; add a null check before calling getRootNode().", "category": "correctness", "verdict": "uncertain", "pri... | null |
aidenybai__react-grab__169 | aidenybai/react-grab | 169 | defect | 6399bdd4020ce3e0e3e1e54ee57cf8829f6676b6 | 5a488b1bf4c67e2a23173a566ba6b64e3f6effea | feat: preview all recent items on hover of recents toolbar button | ## Summary
- Hovering the recents toolbar button now highlights all recent items on the page simultaneously using overlay boxes, with comment labels shown for comment items
- Clicking the button clears the preview and opens the dropdown, where per-item hover takes over
- Refactored recent hover state to share a single... | diff --git a/packages/react-grab/e2e/fixtures.ts b/packages/react-grab/e2e/fixtures.ts
index 1bfe27e40..d166ee96d 100644
--- a/packages/react-grab/e2e/fixtures.ts
+++ b/packages/react-grab/e2e/fixtures.ts
@@ -139,6 +139,7 @@ export interface ReactGrabPageObject {
clickRecentCopyAll: () => Promise<void>;
clickRece... | 1 | 1 | 1 | [{"id": "G0", "claim": "handleRecentButtonHover should not show all recent-item previews when the recent dropdown is already open, because hovering back over the button then clears per-item hover previews and highlights all items, conflicting with the dropdown's single-item hover behavior; a guard such as recentDropdow... | null |
aidenybai__react-grab__174 | aidenybai/react-grab | 174 | defect | bdb25896e86c3b7173a191d79cf3fda1ceebccad | 6e9b6f4f53ea572485e82f92d5add5c4d127cd00 | feat: vertical toolbar layout when snapped to left or right edge | ## Summary
- Toolbar renders vertically (buttons stacked top-to-bottom) when snapped to the left or right viewport edge, and horizontally on top/bottom as before
- Snap positioning re-measures dimensions after orientation change so the toolbar sits flush against the edge
- Tooltips appear on the opposite side (left/ri... | diff --git a/packages/react-grab/src/components/toolbar/index.tsx b/packages/react-grab/src/components/toolbar/index.tsx
index 9f23d0957..0d7f04af4 100644
--- a/packages/react-grab/src/components/toolbar/index.tsx
+++ b/packages/react-grab/src/components/toolbar/index.tsx
@@ -100,7 +100,51 @@ export const Toolbar: Comp... | 8 | 3 | 2 | [{"id": "G0", "claim": "When snapping to a different edge, the ratio computed with the old edge's coordinate system is used with dimensions measured after the layout switch, so the toolbar may be positioned wrongly when dragging between vertical and horizontal edges; measure dimensions before setSnapEdge or recalculate... | null |
aidenybai__react-grab__250 | aidenybai/react-grab | 250 | defect | 76d68785dfb21c53d26a480296d05f4d8241165e | 48545c367ca81e47eaece10f9668b64585d3c022 | Refactor: Extract modules from core/index.tsx, eliminate silent error swallowing | ## Summary
- **Extract label lifecycle management** into `core/label-manager.ts` — moves label create/fade/hover/timer cleanup out of the 4000-line `init()` closure into a focused module with explicit `dispose()` for timer cleanup
- **Extract dropdown position tracking** into `core/dropdown-controller.ts` — moves RAF-... | diff --git a/README.md b/README.md
index 4a178841a..1de0d3160 100644
--- a/README.md
+++ b/README.md
@@ -193,122 +193,6 @@ actions: [
See [`packages/react-grab/src/types.ts`](https://github.com/aidenybai/react-grab/blob/main/packages/react-grab/src/types.ts) for the full `Plugin`, `PluginHooks`, and `PluginConfig` i... | 10 | 1 | 0 | [{"id": "G0", "claim": "The LabelManager interface exposes `remove` and `cancelFade` as public methods although no external consumer ever calls them, so they could be kept as private internal functions rather than part of the public API surface.", "category": "design", "verdict": "supported", "priority": "P2", "scope":... | null |
aidenybai__react-grab__253 | aidenybai/react-grab | 253 | defect | 92509dea06380add85f94a21d119c489473f45f7 | 5cbd02229d20a8d0c50798f9763bde78d8ecbe6a | feat: add shadcn registry with ReactGrab component | <!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Summary
Sets up a [shadcn registry](https://ui.shadcn.com/docs/registry) for react-grab with a framework-agnostic `ReactGrab` component that loads react-grab via a CDN script tag. Also fixes react-grab's SSR compatibility and adds regression tests.
## What's included
### `packa... | diff --git a/package.json b/package.json
index efa00b987..1f1770337 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
],
"type": "module",
"scripts": {
- "build": "cp README.md packages/react-grab/README.md && turbo run build --filter=react-grab --filter=@react-grab/cursor --filter=@react-grab/cl... | 12 | 11 | 9 | [{"id": "G0", "claim": "getState's shallow spread of the module-level NOOP_STATE shares the grabbedBoxes and labelInstances array references, so a consumer mutating a returned array permanently corrupts NOOP_STATE for all subsequent getState calls; return fresh arrays instead.", "category": "correctness", "verdict": "s... | null |
aidenybai__react-grab__277 | aidenybai/react-grab | 277 | defect | a03554fa4918496b9bfabc0d572c71b5c7a71eb9 | 6f3c917872f151254c57b89acc2a7ecfd3ae42f2 | fix: restore full component tree and column numbers in stack context | ## Summary
Fixes #270 — the 0.1.29 migration to `element-source` broke stack resolution in two ways:
1. `resolveStack` only returned the **first** matching frame, truncating the full parent component chain to a single entry
2. `columnNumber` was hardcoded to `null`, dropping column numbers from source locations
3. `g... | diff --git a/packages/react-grab/e2e/element-context.spec.ts b/packages/react-grab/e2e/element-context.spec.ts
index 93b594b9d..3ba4869aa 100644
--- a/packages/react-grab/e2e/element-context.spec.ts
+++ b/packages/react-grab/e2e/element-context.spec.ts
@@ -41,6 +41,34 @@ test.describe("Element Context Fallback", () => ... | 6 | 3 | 3 | [{"id": "G0", "claim": "devirtualizeServerUrl fails to extract the actual file path from server component URLs that don't contain a query string, returning the virtual URL unchanged instead.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "hasSourceFi... | null |
aidenybai__react-grab__280 | aidenybai/react-grab | 280 | defect | 291a6d628e1d4c9f7327e6fef20fdccd6d60827a | 5a216597e42a5266ca9183980793da756589f2d4 | fix: prevent toolbar drag from starting on right-click | ## Summary
- Right-clicking the toolbar no longer initiates a drag session — `handlePointerDown` now guards on `event.button !== 0`
- Replaced four manual `removeEventListener` call sites with a per-drag-session `AbortController`, matching the existing `createEventListenerManager` pattern
- Added a `pointercancel` lis... | diff --git a/packages/react-grab/src/utils/create-toolbar-drag.ts b/packages/react-grab/src/utils/create-toolbar-drag.ts
index 779ac273c..8ca21852f 100644
--- a/packages/react-grab/src/utils/create-toolbar-drag.ts
+++ b/packages/react-grab/src/utils/create-toolbar-drag.ts
@@ -44,10 +44,19 @@ export const createToolbarD... | 2 | 2 | 2 | [{"id": "G0", "claim": "handlePointerDown overwrites dragAbortController without first tearing down the previous one, so the re-registered listeners are deduplicated and stay bound to the old unreferenced signal — aborting the new controller removes nothing and leaked pointermove/pointerup listeners keep actively movin... | null |
aidenybai__react-grab__283 | aidenybai/react-grab | 283 | defect | 8055d715c850493ca93224a8cea1c299de12a75c | d2dca20211039781a9f96ecbd88d286a9cb0b937 | fix: guard capture-phase event handlers against malformed event properties | ## Summary
Fixes #268 — capture-phase keyboard handler crashes with `TypeError: Cannot read properties of undefined (reading 'startsWith')` when `event.code` is undefined, blocking React's event processing and breaking form submissions.
- Guard `keyMatchesCode` against undefined `targetKey`/`code` before calling `.st... | diff --git a/packages/react-grab/e2e/malformed-events.spec.ts b/packages/react-grab/e2e/malformed-events.spec.ts
new file mode 100644
index 000000000..acd513b65
--- /dev/null
+++ b/packages/react-grab/e2e/malformed-events.spec.ts
@@ -0,0 +1,478 @@
+import { test, expect } from "./fixtures.js";
+
+const collectPageError... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new early return for overlay-originated keyup events runs before modifier-release handling, which can skip hold/deactivation cleanup and leave the activation state stuck.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Dis... | null |
aidenybai__react-grab__284 | aidenybai/react-grab | 284 | defect | baea6e17fc875c37024b3fd715844c01e01e0ca7 | 9df5a667fc23e44a8d6c664d33cf55cdf9b48535 | Add temporary Space-pan behavior for active drag selection | <!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Summary
- fix Space-drag reposition behavior during edge auto-scroll by keeping `dragStart` synchronized on auto-scroll steps, not only on pointermove
- ensure Space keyup while repositioning no longer short-circuits the rest of keyup handling logic
- fix auto-scroll baseline drif... | diff --git a/packages/react-grab/e2e/drag-selection.spec.ts b/packages/react-grab/e2e/drag-selection.spec.ts
index a5668d784..f09a52126 100644
--- a/packages/react-grab/e2e/drag-selection.spec.ts
+++ b/packages/react-grab/e2e/drag-selection.spec.ts
@@ -1,6 +1,55 @@
import { test, expect } from "./fixtures.js";
test... | 3 | 3 | 3 | [{"id": "G0", "claim": "During Space-drag repositioning, auto-scroll changes window.scrollY/scrollX between pointer-move events while dragStart is only shifted inside handlePointerMove, momentarily breaking the drag rectangle's fixed-size invariant and causing a visible resize flicker.", "category": "correctness", "ver... | null |
aidenybai__react-grab__308 | aidenybai/react-grab | 308 | defect | 691497b031165413b66036c270a337054a3ed5a8 | 0dfe81ac5299144c0795889aaf13723f9edb6d18 | polish: toolbar collapse + app-wide UI animations | ## Summary
Animation polish pass driven by runtime debugging and Emil Kowalski / Budge-style taste principles. Three focused commits:
1. **`chore(storybook)`** — Add `--no-open` so `pnpm dev` doesn't hijack the browser.
2. **`fix(toolbar)`** — Smooth the collapse animation and eliminate a side-switch glitch that was ... | diff --git a/apps/storybook/package.json b/apps/storybook/package.json
index d0c54fe7a..d0d3f3900 100644
--- a/apps/storybook/package.json
+++ b/apps/storybook/package.json
@@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
- "dev": "STORYBOOK_DISABLE_TELEMETRY=1 storybook dev -p 6006 --disable... | 7 | 7 | 5 | [{"id": "G0", "claim": "The dropdown exit CSS animation was lengthened to 120ms across all three dropdown components while DROPDOWN_ANIMATION_DURATION_MS stayed at 100ms, so createAnchoredDropdown unmounts the dropdown DOM 20ms before the exit animation finishes, visibly cutting off every dropdown close.", "category": ... | null |
aidenybai__react-grab__84 | aidenybai/react-grab | 84 | defect | e00566e18f42cf03ed7bc5f756edbe4fb18e6011 | eb9a733170d5b6ebc782beea2bb6ef685ef93e55 | Package manager injection improvements | Implement package manager-aware agent injection and provide clearer manual injection warnings.
---
<a href="https://cursor.com/background-agent?bcId=bc-9762b83a-9897-4579-a684-1e2298912ec9"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers... | diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.ts
index b2214a495..4e68b8fed 100644
--- a/packages/cli/src/commands/init.ts
+++ b/packages/cli/src/commands/init.ts
@@ -349,6 +349,7 @@ export const init = new Command()
projectInfo.projectRoot,
agentI... | 2 | 2 | 2 | [{"id": "G0", "claim": "The add command still calls previewPackageJsonTransform without the packageManager argument, so it always injects npx as the executor and ignores the project's actual package manager (e.g. bunx for bun projects).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
aidenybai__react-grab__99 | aidenybai/react-grab | 99 | defect | 2a27141432dcfa9fcadce10916d456835bd8d089 | e1e72da2d5ef28f677cf7f4e89d7b4a14dadc453 | chore: update constants and context menu handling | - Adjusted the SUCCESS_LABEL_DURATION_MS constant from 1700 to 1500 for improved user feedback timing.
- Enhanced context menu item handling to ensure consistent behavior and integration with updated state management.
- Updated type definitions to reflect changes in context menu actions and properties.
<!-- CURSOR_S... | diff --git a/.gitignore b/.gitignore
index 319fb8a14..3d53e62d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,4 +10,5 @@ react-grab-extension.zip
tsup.config.bundled_*.mjs
packages/website/public/react-grab.global.js
test-results
-playwright-report
\ No newline at end of file
+playwright-report
+.cursor/debug.log
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The newly added Escape key handler should call event.preventDefault() and event.stopPropagation() like the other keyboard handlers in the same function, so the Escape event does not keep propagating after the context menu is dismissed.", "category": "correctness", "verdict": "supported", "priori... | null |
aidenybai__react-scan__437 | aidenybai/react-scan | 437 | defect | f34a13b64f9281eff415f8451ae9aa39ed28fac5 | 6535684fe6e6c4eccab54af5a561fa73f0bec9ee | fix(scan): triage sweep across open issues | ## Summary
Triage pass over the open issues queue. Each commit is atomic and references the issues it closes; this PR description aggregates them.
| Issue | Title | Commit |
|---|---|---|
| [#287](https://github.com/aidenybai/react-scan/issues/287), [#336](https://github.com/aidenybai/react-scan/issues/336) | `Module... | diff --git a/packages/scan/src/core/get-is-production.test.ts b/packages/scan/src/core/get-is-production.test.ts
new file mode 100644
index 00000000..d56971e0
--- /dev/null
+++ b/packages/scan/src/core/get-is-production.test.ts
@@ -0,0 +1,74 @@
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+interfac... | 2 | 2 | 1 | [{"id": "G0", "claim": "isFinitePositive and isPlainObject are defined with identical implementations in both safe-area.ts and parse-safe-area-option.ts, so validation logic could silently diverge; extract them into a shared module in the same utils/ directory.", "category": "maintainability", "verdict": "supported", "... | null |
aiji42__zod-i18n__146 | aiji42/zod-i18n | 146 | defect | 522257a15871714ae993630bb160a2b6cd85db8a | 5897512c7b5b473b67f99389a44a0c61c3e0def7 | fix: french translation | - add missing articles
- the french word "invalide" means "handicapé ou infirme" (faux ami)
- add unbreakable spaces where relevant
- use french quotes
- fix "égale" -> "égal"
- missing word
- date before and after
- genre of options
What do you think about this PR @fcrozatier (previous author)?
| diff --git a/packages/core/locales/fr/zod.json b/packages/core/locales/fr/zod.json
index c5812d9..ff31911 100644
--- a/packages/core/locales/fr/zod.json
+++ b/packages/core/locales/fr/zod.json
@@ -1,81 +1,81 @@
{
"errors": {
- "invalid_type": "Type invalide: {{expected}} doit être fourni(e), mais {{received}} a ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The added French message should read \"attendue\" (feminine agreement) rather than \"attendu\" after \"« chaîne de caractères »\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For consistency, the French messages could use ... | null |
aimclub__FEDOT__1121 | aimclub/FEDOT | 1,121 | defect | 1775411e800fe320f26f68315452260e644e2dee | e47c7b33e7fb9d3e87d38a5382ae564e531bc71c | Fix params setting | Setting of 'nested_space' parameters for node while tuning was not working correctly. While tuning new parameters were at first set for `OptGraph` and then `OptGraph` was restored to `Pipeline`. While restoring, pipeline nodes were created from scratch and new parameters were passed through the constructor of the `Node... | diff --git a/examples/simple/multitask_classification_regression_api.py b/examples/simple/multitask_classification_regression_api.py
deleted file mode 100644
index 9ed2587cbf..0000000000
--- a/examples/simple/multitask_classification_regression_api.py
+++ /dev/null
@@ -1,52 +0,0 @@
-import os
-from typing import Tuple
... | 3 | 2 | 0 | [{"id": "G0", "claim": "The PR should have a test exercising real tuning on nested parameters; the reviewer asks whether such a test exists.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Removing the DEFAULT_PARAMS_STUB backward-compatibility check fro... | null |
aimclub__FEDOT__1131 | aimclub/FEDOT | 1,131 | defect | b937088f583990e7059ce6692187182adc4b219c | fe5cdaaf06ac506333f69351c7b22eaa1a0e46aa | fix pos_label | 1) Error with pos_label when passing binary string target was fixed
2) Error with resample was fixed (add extra rule)
3) Fitness calculating errors now raise exceptions if it's test
4) Unexpected behaviour with inplace operations with data in node.fit and node.predict was fixed | diff --git a/fedot/api/api_utils/api_params_repository.py b/fedot/api/api_utils/api_params_repository.py
index dfc79930f9..964c8c1b86 100644
--- a/fedot/api/api_utils/api_params_repository.py
+++ b/fedot/api/api_utils/api_params_repository.py
@@ -5,7 +5,8 @@
from golem.core.optimisers.genetic.operators.inheritance imp... | 7 | 7 | 1 | [{"id": "G0", "claim": "Pipeline.primary_nodes should use the existing node.is_primary method instead of re-implementing the check as `not node.nodes_from`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The magic probability 0.3 in graph_growth... | null |
aimclub__FEDOT__1189 | aimclub/FEDOT | 1,189 | defect | 0bc7c5990c36346ebbdb50a0cdfe031a3ef44007 | 5078435dcaefdf80f636b37ecc9aae699a3455a1 | Support for changes in GOLEM | Add GOLEM 0.4.0 to requirements.
Fix imports from GOLEM (https://github.com/aimclub/GOLEM/pull/230).
| diff --git a/fedot/api/api_utils/params.py b/fedot/api/api_utils/params.py
index 8cd24dfd10..721ada0140 100644
--- a/fedot/api/api_utils/params.py
+++ b/fedot/api/api_utils/params.py
@@ -4,9 +4,9 @@
from typing import Any, Dict, Optional, Union
from golem.core.log import LoggerAdapter, default_log
-from golem.core.... | 2 | 2 | 2 | [{"id": "G0", "claim": "Run generate_data.py so the pickle is regenerated and the prediction-interval tests disabled in this PR work again.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Some integration tests may still need fixing after the golem upgra... | null |
aimclub__FEDOT__1213 | aimclub/FEDOT | 1,213 | defect | 9d9469f17aef0bba5c42ec118c62a56d44f6e501 | 4cae937b393ff7cf87c2c292f982e04a6a2943a7 | 1211-fix | Fix #1211 | diff --git a/fedot/core/operations/atomized_model.py b/fedot/core/operations/atomized_model.py
index 5b48045420..f39f5062c4 100644
--- a/fedot/core/operations/atomized_model.py
+++ b/fedot/core/operations/atomized_model.py
@@ -1,5 +1,6 @@
-from copy import deepcopy
+from collections import Counter
from datetime import... | 7 | 4 | 0 | [{"id": "G0", "claim": "Clarify the typing of the new `extract_metadata_from_pipeline` helper: give `node_filter` a concrete signature (`Callable[[NodeType], bool]` instead of bare `Callable`) and add a signature for the return value.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "... | null |
aimclub__FEDOT__1244 | aimclub/FEDOT | 1,244 | defect | dcc7ff5d57bf65b9d92c2cfd9f116d02a5c20034 | 59265cd1321fdd5d1a11339fe8613b3cb2c7fcf6 | Fix old pep8 errors | This is a 🔨 code refactoring.
## Summary
Fix old pep8 errors in python files.
## Context
PR #1225
| diff --git a/cases/dataset_preparation.py b/cases/dataset_preparation.py
index 4a0a7b4c8e..b0b7a70ffe 100644
--- a/cases/dataset_preparation.py
+++ b/cases/dataset_preparation.py
@@ -8,24 +8,23 @@ def unpack_archived_data(archive_name: str):
os.path.basename(archive_name) not in os.listdir(os.path.dirname(... | 7 | 6 | 1 | [{"id": "G0", "claim": "The reviewer believes spaces should always be present around an equals sign, so the PR's removal of the space in `damped_trend= self.params.get(...)` looks wrong.", "category": "style", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The parametrize block i... | null |
aimclub__FEDOT__1252 | aimclub/FEDOT | 1,252 | defect | 5e726e98c36f5bbeef19b90dc81e54dcc73cc868 | 619849efada01e6d2acbc8f667bb7b32c8f3a826 | Fast topological features | This is a 🙋 feature or enhancement.
## Summary
Ускоренная версия топологических фич (в 30 раз). От обычных топологических фич отличаются достаточно сильно:
1. Скинул весь код в один класс.
2. Отказался от использования [giotto-tda](https://github.com/giotto-ai/giotto-tda) в пользу [giotto-ph](https://github.co... | diff --git a/fedot/api/api_utils/assumptions/task_assumptions.py b/fedot/api/api_utils/assumptions/task_assumptions.py
index 8afa713cd1..11f8050772 100644
--- a/fedot/api/api_utils/assumptions/task_assumptions.py
+++ b/fedot/api/api_utils/assumptions/task_assumptions.py
@@ -64,6 +64,8 @@ def builders(self):
... | 7 | 5 | 0 | [{"id": "G0", "claim": "The entries of the pipeline-builder dictionary in TSForecastingAssumptions use inconsistent line wrapping and should put PipelineBuilder() on its own line with the builder steps on the next, as in the suggestion.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope":... | null |
aimclub__FEDOT__1353 | aimclub/FEDOT | 1,353 | defect | 926990ef4155149c89427b3ecc454436bb1d3831 | 5b42067ad923ee89e5d02b7aa34a205417221930 | Fix tests and add multi-target output for boostings | <!--
Thanks for creating a Pull Request! Before you submit, please make sure
you've done the following:
- I read the contributing document at https://fedot.readthedocs.io/en/latest/contribution.html
-->
<!--
Make our lives easier! Choose one of the following by uncommenting it:
-->
This is a 🐛 bu... | diff --git a/test/unit/api/test_assumption_builder.py b/test/unit/api/test_assumption_builder.py
index 23195168fd..bb97b514d1 100644
--- a/test/unit/api/test_assumption_builder.py
+++ b/test/unit/api/test_assumption_builder.py
@@ -95,7 +95,8 @@ def test_assumptions_builder_for_multimodal_data():
assert pipeline_co... | 3 | 2 | 2 | [{"id": "G0", "claim": "The multimodal pipeline-length assertion that this PR commented out should be modified rather than left disabled - the reviewer proposes coarsening it to mm_pipeline.length > len(mm_data).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
aimclub__FEDOT__208 | aimclub/FEDOT | 208 | defect | fc10fa7e059fa5a947e39b7831a9d3ddbda9e87b | 45353169bab46ed2550aa49821825018adf180ef | Export/import of AutoML session as zip | Closed #196
This PR improves the reproducibility of the experiments
New features:
- export_project_to_zip -> save pipeline, log. train and test data and opt history to zip
- import_project_from_zip -> loads pipeline, train and test data and opt history from zip
- API state can be imported and exported as foll... | diff --git a/docs/source/fedot/utilities/chain_to_json.rst b/docs/source/fedot/utilities/chain_import_export_json.rst
similarity index 100%
rename from docs/source/fedot/utilities/chain_to_json.rst
rename to docs/source/fedot/utilities/chain_import_export_json.rst
diff --git a/docs/source/fedot/utilities/project_import... | 40 | 37 | 6 | [{"id": "G0", "claim": "The import example in the docs imports export_project_to_zip where it should import import_project_from_zip.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The import docs should also show what import_project_from_zip retur... | null |
aimclub__FEDOT__434 | aimclub/FEDOT | 434 | defect | 512cac7cec3df8136b295d4e56944ee93cd59fe2 | 83b6b715acb4f0ee8c5269327af869c487ec4a1b | Fix decompose operation processing | The way to determine the ancestor of data ("Data parent") and the ancestor of predictions ("Model parent") in the decompose operation has been fixed
Now, if the number of visited nodes in the data is equal, preference (for being "Data parent") is given to the lagged operation for example | diff --git a/fedot/core/data/supplementary_data.py b/fedot/core/data/supplementary_data.py
index 905add040e..793050f9e0 100644
--- a/fedot/core/data/supplementary_data.py
+++ b/fedot/core/data/supplementary_data.py
@@ -16,6 +16,8 @@ class SupplementaryData:
data_flow_length: int = 0
# Masked features for data... | 2 | 2 | 1 | [{"id": "G0", "claim": "define_parents should identify the data parent by operation tag instead of the hardcoded 'lagged' operation name.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new last_visited_operations field would be better named previous_... | null |
aimclub__FEDOT__443 | aimclub/FEDOT | 443 | defect | 2747708b15c14a14a4bdf17e2455154e4081fd44 | 835798f7dc9d50d580227d93f7ec4503d15a3de4 | Individuals evaluation modified | Now only individuals with correct fitness are preserved in population.
The only case for failure is the case when all individuals in population has None in fitnesss. | diff --git a/examples/gapfill.py b/examples/gapfill.py
new file mode 100644
index 0000000000..f063144e34
--- /dev/null
+++ b/examples/gapfill.py
@@ -0,0 +1,46 @@
+import numpy as np
+
+from fedot.api.main import Fedot
+from fedot.core.data.data import InputData
+from fedot.core.repository import tasks
+from fedot.core.... | 1 | 1 | 0 | [{"id": "G0", "claim": "Maybe delete the gap-filling example file examples/gapfill.py added by this pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
aimclub__FEDOT__487 | aimclub/FEDOT | 487 | defect | ba2895fb88c21530b32b6d69d428f000362ae810 | 6b425b87909305826ba0690a96d7166f9719af47 | Fix K-nn model | Now the integer values of the hyperparameter n_neighbors for the K-nn model are rounded to integers | diff --git a/fedot/core/operations/evaluation/operation_implementations/models/knn.py b/fedot/core/operations/evaluation/operation_implementations/models/knn.py
index 98dba08d98..3064cb9d77 100644
--- a/fedot/core/operations/evaluation/operation_implementations/models/knn.py
+++ b/fedot/core/operations/evaluation/opera... | 3 | 1 | 0 | [{"id": "G0", "claim": "The round_n_neighbors helper should be taken out of the class and made a plain function instead of a static method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Ideally the tuner should not emit non-integer values for i... | null |
aimclub__FEDOT__518 | aimclub/FEDOT | 518 | defect | 3532f574bef0d687b43027037614f2c586bd514b | b4fda4bdad142009fc08139d16c2c31d901b03d9 | Target from InputData in predict mode should be ignored in (almost) all cases | - Added test `is_predict_ignores_target` on API, pipeline, model scales.
- CNN model now ignores `input_data.target`;
- Minor tests refactoring. | diff --git a/fedot/core/data/data.py b/fedot/core/data/data.py
index d2068f441d..505683e8f6 100644
--- a/fedot/core/data/data.py
+++ b/fedot/core/data/data.py
@@ -227,7 +227,7 @@ class InputData(Data):
@property
def num_classes(self) -> Optional[int]:
- if self.task.task_type == TaskTypesEnum.classif... | 7 | 5 | 2 | [{"id": "G0", "claim": "In subset_range, the new inline `self.target is not None else None` expression should be moved up to sit next to the analogous check already done for features.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The target gua... | null |
aimclub__FEDOT__547 | aimclub/FEDOT | 547 | defect | 25b325b354e02f0cb74410a3b08d2ac8df014fd6 | 6e6e7e63a9cfa9783f8b810240cb64b2a8906ef2 | 545 finding nodes for an intermediate task in pipeline | Implementation of a method that returns the last (root) regression node in pipeline | diff --git a/examples/simple/classification/classification_pipelines.py b/examples/simple/classification/classification_pipelines.py
index 17ea2f2dd6..ec163097da 100644
--- a/examples/simple/classification/classification_pipelines.py
+++ b/examples/simple/classification/classification_pipelines.py
@@ -201,3 +201,34 @@ ... | 6 | 6 | 3 | [{"id": "G0", "claim": "The new last_reg_node property should take the wanted task type as a parameter instead of hard-coding regression, should return a new Pipeline containing the found node and all its ancestors (carrying the preprocessor over) so high-level fit/predict can be used, and should be renamed to say that... | null |
aimclub__FEDOT__550 | aimclub/FEDOT | 550 | defect | 09021162c75d63cdbf8efaaa499c783c3bc41df5 | 29eaa0907a00b4fda5e7b273f6e2468fa7515e55 | Updated _is_greater_better logic | Changed logic to the comparison between optimal prediction and constant prediction. | diff --git a/fedot/core/pipelines/tuning/tuner_interface.py b/fedot/core/pipelines/tuning/tuner_interface.py
index 6a5acc9cb0..f8a65c104e 100644
--- a/fedot/core/pipelines/tuning/tuner_interface.py
+++ b/fedot/core/pipelines/tuning/tuner_interface.py
@@ -218,19 +218,18 @@ def _greater_is_better(target, loss_function, l... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request's new _is_greater_better logic should be covered by some test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A description should be added to the pull request.", "category": "documentation", "verdict": "uncertai... | null |
aimclub__FEDOT__551 | aimclub/FEDOT | 551 | defect | bfb5a9777897f23bbf59c327da3c3d7aecd75c16 | 8b669986f9c3cf52e57652c95d460055352d85d5 | add disconnect_neighboring_nodes method | Add disconnect_neighboring_nodes method to GraphOperator class | diff --git a/fedot/core/dag/graph_operator.py b/fedot/core/dag/graph_operator.py
index 464fd35124..e3969b55d8 100644
--- a/fedot/core/dag/graph_operator.py
+++ b/fedot/core/dag/graph_operator.py
@@ -3,22 +3,23 @@
from fedot.core.dag.graph_node import GraphNode
from fedot.core.pipelines.convert import graph_structur... | 8 | 8 | 2 | [{"id": "G0", "claim": "If make_secondary_node_as_primary is not meant to be used outside the class, it should be marked private with an underscore prefix.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The _clean_up_leftovers docstring should explain wh... | null |
aimclub__FEDOT__553 | aimclub/FEDOT | 553 | defect | 7a4f268a00fdf5818afd41bdaf45e8bb41d2b40a | 5b10b7044c05bd9aa566ef050350c01984ea129d | Implemented parallelization | Parallelization using multiprocessing.Pool for individuals was implemented | diff --git a/examples/advanced/parallelization_comparison.py b/examples/advanced/parallelization_comparison.py
new file mode 100644
index 0000000000..48a0653dc8
--- /dev/null
+++ b/examples/advanced/parallelization_comparison.py
@@ -0,0 +1,56 @@
+import json
+
+import pandas as pd
+from matplotlib import pyplot as plt
... | 15 | 15 | 2 | [{"id": "G0", "claim": "The new parallelization parameter should be named n_jobs instead of workers, by analogy with other frameworks.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Creating the multiprocessing pool adds overhead that needlessly slows te... | null |
aimclub__FEDOT__637 | aimclub/FEDOT | 637 | defect | 86ecca1682fcbaeaa7ae1c418d5dd5eba98ebd63 | b8c5ccd876cdff676af837da1c55d6bd1c4f18cd | Refactoring: drop unnecessary branch in evaluating metrics for cv folds | Removing some code duplication in composer. I'm simplifying it for later changes for #608
P.S. Pushing my refactorings of the Composer & Optimiser by smaller bits to make process easier for reviewers... | diff --git a/fedot/core/composer/cache.py b/fedot/core/composer/cache.py
index e992ca6dfa..5898530939 100644
--- a/fedot/core/composer/cache.py
+++ b/fedot/core/composer/cache.py
@@ -32,12 +32,13 @@ def save_node(self, node, partial_id=''):
_save_cache_for_node(self.db_path, f'{node.descriptive_id}_{partia... | 3 | 2 | 0 | [{"id": "G0", "claim": "The newly added `data: InputData` type annotation on `_cv_validation_metric_build` is inaccurate because data here may be not only InputData (the very next line handles MultiModalData).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
aimclub__FEDOT__672 | aimclub/FEDOT | 672 | defect | 24666276e5c46dcd987d04e247cc4ea56842f31a | e275b3ed593fedd9f1f27c576624e39384ccf0fc | Added hyperparameters preprocessing | 1. Added HyperparametersPreprocessing class with integer converting and share from n_samples converting
2. Replaced choice search spaces | diff --git a/fedot/core/operations/evaluation/evaluation_interfaces.py b/fedot/core/operations/evaluation/evaluation_interfaces.py
index 1dcede365c..714701668b 100644
--- a/fedot/core/operations/evaluation/evaluation_interfaces.py
+++ b/fedot/core/operations/evaluation/evaluation_interfaces.py
@@ -162,6 +162,9 @@ def f... | 7 | 7 | 2 | [{"id": "G0", "claim": "The `share_params` set is unclearly named (the reviewer has to ask what 'share' means) and should be renamed to something like `data_relative_to_absolute_params` with comments explaining the groups.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
aimclub__FEDOT__695 | aimclub/FEDOT | 695 | defect | acf6f0129776d2ea55d84a875a22ac60e901062e | cf4a7d37ee0e467959bc80b296d1210fd31a3db3 | Leaderboard added to OptHistory | In this PR, the H2O-like leaderboard is added. How to use:
`history.print_leaderboard()`
It consists of:
1) TOP 10 graphs obtained by optimiser
2) Initial assumptions
The main aim is to demonstrate for user how the optimised solution differs from initial one.
Example:

| diff --git a/fedot/api/api_utils/presets.py b/fedot/api/api_utils/presets.py
index a4cb891011..75c59df64b 100644
--- a/fedot/api/api_utils/presets.py
+++ b/fedot/api/api_utils/presets.py
@@ -1,10 +1,8 @@
-import datetime
from copy import copy
-from typing import Union
from fedot.api.time import ApiTime
from fedot.... | 3 | 3 | 1 | [{"id": "G0", "claim": "Rework suitable_operation so it no longer returns the second value nobody uses (all callers use only the operation names), and make its name and docstring reflect what it returns.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "M... | null |
aimclub__FEDOT__801 | aimclub/FEDOT | 801 | defect | 0a0f1f48c92c883088e44febd2a27e9fc266b558 | 900e96fe5ed00a11c0de8ec8dd74dc833bf67d6e | Time series gapfilling improvement | The gap-filling module has been modified: it is now more stable. To confirm this, the tests have been redesigned. The following gaps configurations was tested:

As can be seen from the graph, the tests cov... | diff --git a/examples/simple/time_series_forecasting/gapfilling.py b/examples/simple/time_series_forecasting/gapfilling.py
index 052c65f42e..7af4842b58 100644
--- a/examples/simple/time_series_forecasting/gapfilling.py
+++ b/examples/simple/time_series_forecasting/gapfilling.py
@@ -51,11 +51,11 @@ def get_array_with_ga... | 1 | 1 | 0 | [{"id": "G0", "claim": "For compatibility with Python < 3.9, the forward_filling annotation should use typing.List instead of builtin list.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
aimclub__FEDOT__830 | aimclub/FEDOT | 830 | defect | 0fe7146d712f346d681d6952c38ffeae1d8d1f4d | 93eb86601101bbef98e2bc1742cbc49a99b6167c | Fix & improve visualizations | There was a critical bug that did not allow showing graphs with a single node.
Besides, a few features were added:
- Improved graphs visual scalability and choice of edge curvature direction;
- Parametrized node size and font size;
- `OptGraph` now uses labels-based color map without use of repository tags;
- All ... | diff --git a/fedot/core/dag/graph.py b/fedot/core/dag/graph.py
index c99e5eed29..57d43eacfe 100644
--- a/fedot/core/dag/graph.py
+++ b/fedot/core/dag/graph.py
@@ -90,17 +90,20 @@ def get_edges(self) -> List[Tuple[GraphNode, GraphNode]]:
return self._operator.get_edges()
def show(self, save_path: Optiona... | 7 | 5 | 1 | [{"id": "G0", "claim": "The curvature code does not follow PEP 8 naming conventions, specifically the matrix variable should not be named with a capital letter (M_inv), and should be renamed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Some v... | null |
aimclub__FEDOT__836 | aimclub/FEDOT | 836 | defect | eb9e0d43d6da45ea25d87e7fce6eef1a3dd98517 | 8aece7ca5d1ae831887373ca3cb24882e4f9b0aa | Minor fixes to avoid annoying messages/warnings/etc | - bosting mutation is disabled for classification and regression due to the errors
- Graph verification and images errors supressed
- Models fit messages supressed.
- LGBM parameters modified (not very succesfully) | diff --git a/examples/advanced/fedot_based_solutions/external_optimizer.py b/examples/advanced/fedot_based_solutions/external_optimizer.py
index 548fdfbadd..1b0f1b7d7a 100644
--- a/examples/advanced/fedot_based_solutions/external_optimizer.py
+++ b/examples/advanced/fedot_based_solutions/external_optimizer.py
@@ -35,7 ... | 9 | 8 | 2 | [{"id": "G0", "claim": "When the tensorflow import fails in the image classification example, the user should be notified via fedot.utilities.requirements_notificator.warn_requirement instead of silently passing.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
aimclub__FEDOT__907 | aimclub/FEDOT | 907 | defect | d9e1a2385fc2d535ce38d37a91fead3fb1faa1ab | 4f7418d9533f818fbb7b37980529619e42a1ee61 | Hotfix `_extend_population` | Change list:
- Fix: Before this fix, mutation parents could be taken from the same generation while extending the initial assumptions.
- Test: Improve history tests for sequential inheritance. | diff --git a/fedot/core/optimisers/gp_comp/gp_optimizer.py b/fedot/core/optimisers/gp_comp/gp_optimizer.py
index 55bcbaa61b..2381d90949 100644
--- a/fedot/core/optimisers/gp_comp/gp_optimizer.py
+++ b/fedot/core/optimisers/gp_comp/gp_optimizer.py
@@ -1,4 +1,4 @@
-from copy import deepcopy
+from copy import deepcopy, co... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `_extend_population` argument `initial_individuals` should get a type hint.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Some test should be extended to check that the population-copy behaviour is correct.", "cate... | null |
aimclub__FEDOT__941 | aimclub/FEDOT | 941 | defect | c66d718d9f0d700d4d5b98d4b4c1ecf8ddb52d80 | b4f6adef89542277ea3897c4d99d02a29d54dc65 | Refactor PipelineAdapter (don't overwrite `__class__`) | Previously PipelineAdapter used a quite *hacky* way: it just was rewriting `__class__` field.
It's not the best approach, because it *assumes* that Pipeline & OptGraph have the same structure. This can lead to subtle bugs in the future if Pipeline and/or OptGraph implementations change.
This PR resolves this:
- It... | diff --git a/fedot/core/adapter/__init__.py b/fedot/core/adapter/__init__.py
index 9846079114..f85dc382d3 100644
--- a/fedot/core/adapter/__init__.py
+++ b/fedot/core/adapter/__init__.py
@@ -1,2 +1,2 @@
-from .adapter import BaseOptimizationAdapter, DirectAdapter
+from .adapter import BaseOptimizationAdapter, DirectAda... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new PipelineAdapter docstring misdescribes adapt: it says adapt clears OptGraph of metadata and heavy data, when adapt actually creates a light-weight OptGraph.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
aimclub__FEDOT__963 | aimclub/FEDOT | 963 | defect | 704d476d85faae730131177615a24cb0d8f26638 | 09ee3d695f9f630ed63cf08c7a41033318a92ba4 | Optimizer separation fixes: isolate remote evaluator access | Singleton implementation of RemoteEvaluator gets in the way of Optimizer separation for GOLEM. This PR provides half-way solution for this, removing direct access from Optimizer level to ComposerBuilder level. | diff --git a/examples/advanced/fedot_based_solutions/external_optimizer.py b/examples/advanced/fedot_based_solutions/external_optimizer.py
index 9d29fd1b45..21ea03b1fc 100644
--- a/examples/advanced/fedot_based_solutions/external_optimizer.py
+++ b/examples/advanced/fedot_based_solutions/external_optimizer.py
@@ -35,8 ... | 3 | 2 | 0 | [{"id": "G0", "claim": "The docstring of the new dispatch(objective, timer) signature should also document the timer argument.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The field initialization duplicated in the dispatcher subclasses (self._a... | null |
aimclub__FEDOT__973 | aimclub/FEDOT | 973 | defect | f984122bbfa69dbf2cfb9263228f56a8b9902b98 | 4b35521321c64be594d67417163cd0a6c78caf3e | Early stopping criteria | Introducing new API param `early_stopping_timeout` which represents max stagnation duration (in time terms, not iters) | diff --git a/fedot/api/api_utils/api_composer.py b/fedot/api/api_utils/api_composer.py
index b642b7fb32..5e03e79fda 100644
--- a/fedot/api/api_utils/api_composer.py
+++ b/fedot/api/api_utils/api_composer.py
@@ -115,8 +115,8 @@ def _init_composer_requirements(api_params: dict,
num_of_generations=composer_... | 4 | 4 | 0 | [{"id": "G0", "claim": "The magic derivation of early_stopping_iterations from timeout (timeout/3, floor 5) in _parse_input_params should be explained with a comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The interface property renamed st... | null |
aimdb-dev__aimdb__108 | aimdb-dev/aimdb | 108 | defect | ebac4f0630eb6e9a6187b6a753bdd83e524ef6b5 | 9e440173078a64d2584d3727a7489b0f5dacc5b0 | Feat/stage profiling phase1 3 | Implements automatic per-stage wall-clock timing for `.source()` / `.tap()` / `.link()` callbacks. The feature is off by default and zero-cost when disabled; `alloc` + a runtime clock is enough, so it works on `no_std + alloc` (including `thumbv7em-none-eabihf` via `portable-atomic`'s `critical-section` fallback).
#... | diff --git a/.vscode/mcp.json b/.vscode/mcp.json
index 2c8d1a99..a1c88433 100644
--- a/.vscode/mcp.json
+++ b/.vscode/mcp.json
@@ -3,6 +3,18 @@
"aimdb-weather": {
"type": "http",
"url": "http://aimdb.dev/mcp"
+ },
+ "aimdb-local": {
+ "type": "stdio",
+ ... | 3 | 3 | 0 | [{"id": "G0", "claim": "reset_stage_profiling should match the structured ClientError::ServerError code instead of substring-matching the error's to_string(), because string matching is brittle to formatting changes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
aiming-lab__AutoResearchClaw__115 | aiming-lab/AutoResearchClaw | 115 | defect | 85f60b77cd75cd6eb6532041dc22f6afa26bf9c6 | 07de41996d77a512380e45cdcb933fc515330d29 | fix(opencode): use shutil.which to resolve opencode CLI path on Windows | ## Summary
Fixes an issue where `AutoResearchClaw` fails to detect the `opencode` CLI on Windows, resulting in the error:
`Beast mode: FAILED (OpenCode CLI not installed or not callable) — falling back to CodeAgent`
On Windows, global npm packages (like `opencode`) are installed as `.cmd` or `.exe` files. `subpr... | diff --git a/researchclaw/cli.py b/researchclaw/cli.py
index 9947d9b1b..d9c8243f3 100644
--- a/researchclaw/cli.py
+++ b/researchclaw/cli.py
@@ -28,11 +28,12 @@
def _is_opencode_installed() -> bool:
"""Check if the ``opencode`` CLI is available on PATH."""
- if shutil.which("opencode") is None:
+ opencode... | 3 | 3 | 1 | [{"id": "G0", "claim": "Remove the function-local `import shutil` statements the PR adds in check_available and _invoke_opencode, since opencode_bridge.py already imports shutil at module level (line 18).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
aiming-lab__AutoResearchClaw__99 | aiming-lab/AutoResearchClaw | 99 | defect | 1b0caca1c1b968e540b408847df489d00c74d506 | f574842d4d6faa903a34668ff493750f0dfd6e17 | feat: add computational neuroscience domain support | ## Summary
Add comprehensive computational neuroscience domain support to the domain detection, prompt adaptation, and profile systems.
The project's domain system covers 22 research areas but currently has no support for computational neuroscience — a major research area that spans spiking neural networks, brain ima... | diff --git a/researchclaw/domains/adapters/__init__.py b/researchclaw/domains/adapters/__init__.py
index f53c3b875..7370502b6 100644
--- a/researchclaw/domains/adapters/__init__.py
+++ b/researchclaw/domains/adapters/__init__.py
@@ -10,6 +10,7 @@
from researchclaw.domains.adapters.economics import EconomicsPromptAdapt... | 1 | 1 | 1 | [{"id": "G0", "claim": "The neuroscience keyword rules should be inserted before the ML catch-all block in _KEYWORD_RULES, because _keyword_detect() is first-match-wins and a topic like \"spiking neural network\" would otherwise match \"neural network\" and be classified as ml_generic.", "category": "correctness", "ver... | null |
aio-libs__aiohttp__10093 | aio-libs/aiohttp | 10,093 | defect | 29c3ca93a4d1793c60d33038151228962f8b6f78 | 5613ea0d7551e596de55d77f826cb8f0a9c6aa5f | Use `quote_cookie` setting from ClientSession's cookiejar in `tmp_cookie_jar` | ## What do these changes do?
Reuse `quote_cookie` setting from ClientSession's cookiejar when creating temporary CookieJar in request method.
## Are there changes in behavior for the user?
<!-- Outline any notable behaviour for the end users. -->
## Is it a substantial burden for the maintainers to support ... | diff --git a/aiohttp/abc.py b/aiohttp/abc.py
index feeb3ad65c9..698ad3cad1b 100644
--- a/aiohttp/abc.py
+++ b/aiohttp/abc.py
@@ -171,6 +171,11 @@ async def close(self) -> None:
class AbstractCookieJar(Sized, IterableBase):
"""Abstract Cookie Jar."""
+ @property
+ @abstractmethod
+ def quote_cookie(self... | 3 | 1 | 1 | [{"id": "G0", "claim": "The per-request temporary CookieJar only copies quote_cookie; the reviewer asks whether it would make sense to also copy the other CookieJar settings (unsafe, treat_as_secure_origin) or to add an alternative API such as CookieJar.new() that returns an empty jar with the same settings.", "categor... | null |
aio-libs__aiohttp__10156 | aio-libs/aiohttp | 10,156 | defect | 7f8e2d35ad4d0d5fed82721060bafd1bafa264b8 | 8821eb77ad53bf5587dd0cf33648e49f261c04c6 | Add ALPN extension to client SSL Context | ## What do these changes do?
Add "http/1.1" ALPN extension to aiohttp client's SSL Context.
## Are there changes in behavior for the user?
## Is it a substantial burden for the maintainers to support this?
## Related issue number
Fixes #10152
## Checklist
- [x] I think the code is well written
- ... | diff --git a/CHANGES/10156.feature.rst b/CHANGES/10156.feature.rst
new file mode 100644
index 00000000000..4cd7cb1dab8
--- /dev/null
+++ b/CHANGES/10156.feature.rst
@@ -0,0 +1 @@
+Add TLS ALPN extension to client SSL context -- by :user:`Cycloctane`.
diff --git a/aiohttp/connector.py b/aiohttp/connector.py
index 1b7610... | 5 | 4 | 0 | [{"id": "G0", "claim": "Use a tuple instead of a list for set_alpn_protocols, preferring immutable structures.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The handler could return the selected ALPN protocol in the response so the test can ass... | null |
aio-libs__aiohttp__10300 | aio-libs/aiohttp | 10,300 | defect | 8844385b85e438518bc241817f0d9a868cd1340f | 54440fe002f5a7ed88e8f5c98e766a37cdcdbb3d | Use kwargs in aiohttp.client.request | ## What do these changes do?
Make `aiohttp.client.request` use kwargs to let it accept parameters defined in `_RequestOptions` like `ssl`.
## Are there changes in behavior for the user?
## Is it a substantial burden for the maintainers to support this?
## Related issue number
Fixes #10077
## Checklis... | diff --git a/CHANGES/10300.feature.rst b/CHANGES/10300.feature.rst
new file mode 100644
index 00000000000..31d5e6ff154
--- /dev/null
+++ b/CHANGES/10300.feature.rst
@@ -0,0 +1,2 @@
+Update :py:func:`~aiohttp.client.request` to make it use ``_RequestOptions`` kwargs.
+-- by :user:`Cycloctane`.
diff --git a/aiohttp/clien... | 1 | 1 | 1 | [{"id": "G0", "claim": "The version and connector parameters of aiohttp.client.request need to be keyword-only rather than positional-or-keyword, in both the TYPE_CHECKING and runtime definitions of the function.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
aio-libs__aiohttp__11148 | aio-libs/aiohttp | 11,148 | defect | 0544f11f8f258676d2b71d88346ae1c6895ca373 | 4b73ce582adf2208a53f666fce75e659c6397450 | Abort ssl connections on close when ssl_shutdown_timeout is 0 |
## What do these changes do?
This PR improves SSL connection handling by changing the default `ssl_shutdown_timeout` from 0.1 to 0, providing the best of both worlds:
- **During normal operation**: SSL connections use Python's default SSL shutdown behavior (graceful shutdown with proper handshake)
- **When clo... | diff --git a/CHANGES/11148.feature.rst b/CHANGES/11148.feature.rst
new file mode 100644
index 00000000000..20c42a66102
--- /dev/null
+++ b/CHANGES/11148.feature.rst
@@ -0,0 +1 @@
+Added support for ``ssl_shutdown_timeout=0`` on all Python versions, which immediately aborts SSL connections without performing the shutdow... | 3 | 3 | 0 | [{"id": "G0", "claim": "Typing ssl_shutdown_timeout as Union[None, float, object] would allow anything, so the sentinel type should be used instead of object.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since misbehaving TLS servers may never acknowle... | null |
aio-libs__aiohttp__11161 | aio-libs/aiohttp | 11,161 | defect | 8795da3db71b866bd034b552f5410596d49309b9 | b0d1539791da66498576bfbd834ed98170baa441 | Add support for ZSTD compression | <!-- Thank you for your contribution! -->
## What do these changes do?
This patch adds support for ZSTD compression, as supported by the Firefox browser and the Caddy web server
## Are there changes in behavior for the user?
If the user doesn't install the zstandard library, nothing will change.
## Is it... | diff --git a/CHANGES/11161.feature.rst b/CHANGES/11161.feature.rst
new file mode 100644
index 00000000000..617c4147a38
--- /dev/null
+++ b/CHANGES/11161.feature.rst
@@ -0,0 +1,2 @@
+Add support for Zstandard (aka Zstd) compression
+-- by :user:`KGuillaume-chaps`.
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index a... | 4 | 3 | 1 | [{"id": "G0", "claim": "The zstd decompressor wraps self._obj.decompress() in an unnecessary cast() although the callee is already typed as returning bytes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "zstd support relies on the CPython-only z... | null |
aio-libs__aiohttp__11268 | aio-libs/aiohttp | 11,268 | defect | c106c5b8bf65e14becf8b0d01cac0cc378f1b269 | ca20a5a04ea2a5fcff2ae557c4440b35a2c15309 | Add Second Generic Value to _TracingSignal for Custom Context Variables | <!-- Thank you for your contribution! -->
## What do these changes do?
First of all, thank you for helping me accomplish my wishes of reviving aiosignal and improving type hinting it's going to help a lot of people figure out how to use TraceConfig better. Let me extend my thanks by ensuring that the generic vari... | diff --git a/CHANGES/11268.feature.rst b/CHANGES/11268.feature.rst
new file mode 100644
index 00000000000..a7316d5506c
--- /dev/null
+++ b/CHANGES/11268.feature.rst
@@ -0,0 +1,2 @@
+Updated `_TracingSignal` to utilize a secondary generic variable for type hinting custom context variables.
+-- by :user:`Vizonex`.
diff -... | 3 | 3 | 1 | [{"id": "G0", "claim": "The pull request should include a test validating the new typing behaviour — something that fails type checking on the previous code, whether as part of the functionality or via assert_type().", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2",... | null |
aio-libs__aiohttp__11269 | aio-libs/aiohttp | 11,269 | defect | c106c5b8bf65e14becf8b0d01cac0cc378f1b269 | aa6027c203ab5481d8ba2f71d44f9f91514aa36d | Add trailer parsing logic | This adds trailer parsing to the parsing logic. First step towards #1652.
It does not yet expose the trailers, so there are no visible user changes, but paves the way for a future PR to add the public API to these. | diff --git a/aiohttp/http_parser.py b/aiohttp/http_parser.py
index fa0328830a2..8d1ab4bcf81 100644
--- a/aiohttp/http_parser.py
+++ b/aiohttp/http_parser.py
@@ -394,6 +394,7 @@ def get_content_length() -> Optional[int]:
response_with_body=self.response_with_body,
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The variables trailers and raw_trailers assigned from self._headers_parser.parse_headers() are never used.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Relying on HeadersParser skipping the first line (with a sentinel e... | null |
aio-libs__aiohttp__11289 | aio-libs/aiohttp | 11,289 | defect | 9b0153c14a21ff8403813d6b6567f2d9b4fe507a | b9990b62a2d6aedaac1deebc6fd3800674ccbff2 | Fix ClientSession.close() hanging with HTTPS proxy connections | ## What do these changes do?
This PR fixes a regression where `ClientSession.close()` would hang indefinitely when HTTPS requests were made through an HTTP proxy. The issue was caused by CONNECT tunnel connections being pooled with `proxy=None` in the connection key, and their `closed` futures never completing. The ... | diff --git a/CHANGES/11273.bugfix.rst b/CHANGES/11273.bugfix.rst
new file mode 100644
index 00000000000..b4d9948fbcd
--- /dev/null
+++ b/CHANGES/11273.bugfix.rst
@@ -0,0 +1 @@
+Fixed :py:meth:`ClientSession.close() <aiohttp.ClientSession.close>` hanging indefinitely when using HTTPS requests through HTTP proxies -- by ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test should use spec'd mocks — connector, key and protocol created via mock.create_autospec(..., spec_set=True, instance=True) instead of plain mock.Mock() objects.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
aio-libs__aiohttp__11290 | aio-libs/aiohttp | 11,290 | defect | 9b0153c14a21ff8403813d6b6567f2d9b4fe507a | 6cb40ada2dfc0881a3ceea03bb271ed7c3e91772 | Fix file uploads failing with HTTP 422 on 307/308 redirects | ## What do these changes do?
These changes fix a bug where file uploads fail with HTTP 422 errors when encountering 307/308 redirects. The issue occurs because:
1. HTTP 307/308 redirects preserve the request body (unlike 301/302/303)
2. When aiohttp reuses the same file payload for the redirect, the file positio... | diff --git a/CHANGES/11270.bugfix.rst b/CHANGES/11270.bugfix.rst
new file mode 100644
index 00000000000..d714b8c7deb
--- /dev/null
+++ b/CHANGES/11270.bugfix.rst
@@ -0,0 +1 @@
+Fixed file uploads failing with HTTP 422 errors when encountering 307/308 redirects by ensuring correct Content-Length calculation after payloa... | 4 | 4 | 1 | [{"id": "G0", "claim": "The new elif should just be an `else`, so the payload is also reused on redirects like 302 with a non-POST method instead of only on 307/308.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests are needed for the 301/302/303... | null |
aio-libs__aiohttp__11296 | aio-libs/aiohttp | 11,296 | defect | edf2abd2609a24cf1e7ac76da986af363aebf210 | 5bb0a19da417ece09b641c8f405f7c3f2d53c662 | [PR #11290/16703bb9 backport][3.12] Fix file uploads failing with HTTP 422 on 307/308 redirects | **This is a backport of PR #11290 as merged into master (16703bb955ae4a11a131cedbbbf3ec7aa55f4bb4).**
## What do these changes do?
These changes fix a bug where file uploads fail with HTTP 422 errors when encountering 307/308 redirects. The issue occurs because:
1. HTTP 307/308 redirects preserve the request bod... | diff --git a/CHANGES/11270.bugfix.rst b/CHANGES/11270.bugfix.rst
new file mode 100644
index 00000000000..d1e0992b949
--- /dev/null
+++ b/CHANGES/11270.bugfix.rst
@@ -0,0 +1 @@
+Fixed file uploads failing with HTTP 422 errors when encountering 307/308 redirects, and 301/302 redirects for non-POST methods, by preserving ... | 2 | 2 | 0 | [{"id": "G0", "claim": "In test_file_upload_307_302_redirect_chain, the annotation should use builtin generics (`list[dict[str, Any]]`) instead of `List[Dict[str, Any]]`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In test_file_upload_307_308... | null |
aio-libs__aiohttp__11297 | aio-libs/aiohttp | 11,297 | defect | 8790eb0308713475400cffd8af01ee96f929b0fe | 02d69bb5dd9d5d3fea793569bea58ee4a5c16e8d | [PR #11290/16703bb9 backport][3.13] Fix file uploads failing with HTTP 422 on 307/308 redirects | **This is a backport of PR #11290 as merged into master (16703bb955ae4a11a131cedbbbf3ec7aa55f4bb4).**
## What do these changes do?
These changes fix a bug where file uploads fail with HTTP 422 errors when encountering 307/308 redirects. The issue occurs because:
1. HTTP 307/308 redirects preserve the request bod... | diff --git a/CHANGES/11270.bugfix.rst b/CHANGES/11270.bugfix.rst
new file mode 100644
index 00000000000..d1e0992b949
--- /dev/null
+++ b/CHANGES/11270.bugfix.rst
@@ -0,0 +1 @@
+Fixed file uploads failing with HTTP 422 errors when encountering 307/308 redirects, and 301/302 redirects for non-POST methods, by preserving ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new test should use modern builtin generics (list[dict[str, Any]]) instead of typing.List/Dict for received_requests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test should use modern builtin generics (lis... | null |
aio-libs__aiohttp__11367 | aio-libs/aiohttp | 11,367 | defect | 42967308dc89d6a2192a591120b5786dbb1b01fd | 322f8069a830dce7f1b7e9a2fb7851c503df43dc | Disable the blockbuster fixture when the module is not importable | <!-- Thank you for your contribution! -->
## What do these changes do?
This makes blockbuster an *actually optional* test dependency; see https://github.com/cbornet/blockbuster/issues/46#issuecomment-3070096881.
Try to import the `blockbuster` module in `tests/conftest.py`; if it succeeds, disable `autouse` fo... | diff --git a/CHANGES/11363.packaging b/CHANGES/11363.packaging
new file mode 100644
index 00000000000..65d54bf48c0
--- /dev/null
+++ b/CHANGES/11363.packaging
@@ -0,0 +1,2 @@
+The `blockbuster` test dependency is now optional; the corresponding test fixture is disabled when it is unavailable
+-- by :user:`musicinybrain... | 3 | 3 | 0 | [{"id": "G0", "claim": "The added `not have_blockbuster` check in the blockbuster fixture is redundant alongside `autouse=have_blockbuster`, and either the check or the autouse condition should be dropped.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
aio-libs__aiohttp__11483 | aio-libs/aiohttp | 11,483 | defect | 8767e9e042f2588b738c7364bc8705aa9510b0d0 | b8fa5349d7b5b888cc571e9a1cdcb0d1ac940046 | Add StreamReader.total_raw_bytes to report the download progress | ## What do these changes do?
Currently it is not possible to get the real progress of downloading data. The closest thing is `StreamReader.total_bytes, but it could be the number of bytes of decompressed data. This pull request addresses this.
## Are there changes in behavior for the user?
A new property `Stre... | diff --git a/CHANGES/11483.feature.rst b/CHANGES/11483.feature.rst
new file mode 100644
index 00000000000..a8ef8b62c44
--- /dev/null
+++ b/CHANGES/11483.feature.rst
@@ -0,0 +1,2 @@
+Added ``StreamReader.total_raw_bytes`` to check the number of bytes downloaded
+-- by :user:`robpats`.
diff --git a/CONTRIBUTORS.txt b/CON... | 5 | 5 | 0 | [{"id": "G0", "claim": "The total_raw_bytes docstring should say the bytes are counted before decompression.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should also assert that Content-Length is less than len(source_data) to confirm th... | null |
aio-libs__aiohttp__11633 | aio-libs/aiohttp | 11,633 | defect | e260b15ca8d5e3a199cc9db7d0d154b3cb7350d8 | 9be21c4464026cbf10d4e5e1ce38f9f4e31b7ee4 | Make AppRunner's configuration options available in run_app() | ## What do these changes do?
Some configuration flags are only available in `AppRunner`. This pr makes them also configurable in `run_app()`.
## Are there changes in behavior for the user?
Users can now set more configuration options in `run_app()` to serve aiohttp web application without creating custom `AppR... | diff --git a/CHANGES/11633.feature.rst b/CHANGES/11633.feature.rst
new file mode 100644
index 00000000000..374d15a2acd
--- /dev/null
+++ b/CHANGES/11633.feature.rst
@@ -0,0 +1,2 @@
+Make configuration options in ``AppRunner`` also available in ``run_app()``
+-- by :user:`Cycloctane`.
diff --git a/aiohttp/web.py b/aioht... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `**kwargs: Any` parameter added to `_run_app` should carry a `# TODO(PY311): Use Unpack` comment marking it for replacement with a typed Unpack signature once Python 3.11 is the minimum.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
aio-libs__aiohttp__11634 | aio-libs/aiohttp | 11,634 | defect | e260b15ca8d5e3a199cc9db7d0d154b3cb7350d8 | 0b9b76325da470d7070b0d2877ff91aa0d5e3190 | Fix blocking I/O to load netrc when creating requests | <!-- Thank you for your contribution! -->
## What do these changes do?
Fixes blocking I/O in the event loop when netrc authentication is used. Previously, `netrc_from_env()` was called synchronously in `ClientRequest.__init__()`, which would block the entire event loop while reading `~/.netrc` from disk.
Now n... | diff --git a/aiohttp/client.py b/aiohttp/client.py
index a7da3ff0c57..b5d7b71771f 100644
--- a/aiohttp/client.py
+++ b/aiohttp/client.py
@@ -86,8 +86,10 @@
EMPTY_BODY_METHODS,
BasicAuth,
TimeoutHandle,
+ basicauth_from_netrc,
frozen_dataclass_decorator,
get_env_proxy_for_url,
+ netrc_from... | 13 | 11 | 0 | [{"id": "G0", "claim": "The code scanner reports the `return None` statement in `_get_netrc_auth` as unreachable.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "The netrc test fixtures should use pytest's native monkeypatch fixture instead of mock.pat... | null |
aio-libs__aiohttp__11704 | aio-libs/aiohttp | 11,704 | defect | 1569ad9de34050ae6d39b1b6ee4aea2f18658432 | 795bd0a24837fe32a06f5c3db7faf60a1e553279 | Accept async context managers for cleanup contexts (#11681) |
## What do these changes do?
Adapt async context managers to behave like single-yield async iterators.
1- Allow `app.cleanup_ctx` callbacks to return either:
a single-yield async generator (existing behavior), or
an async context manager (e.g. `@contextlib.asynccontextmanager`).
2- Internally adapt async c... | diff --git a/CHANGES/11681.feature.rst b/CHANGES/11681.feature.rst
new file mode 100644
index 00000000000..5497c11a793
--- /dev/null
+++ b/CHANGES/11681.feature.rst
@@ -0,0 +1,10 @@
+Add support for using async context managers as cleanup contexts
+---------------------------------------------------------------
+
+Prev... | 6 | 6 | 1 | [{"id": "G0", "claim": "The pull request imports AsyncContextManager from typing, which is deprecated since Python 3.9; contextlib.AbstractAsyncContextManager should be used instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Detect an async... | null |
aio-libs__aiohttp__11714 | aio-libs/aiohttp | 11,714 | defect | 6a2809d8b701064778c442a781a1f0135d0e9f8f | 3703f694c36630bbbc5a60b159ed688beeb5f6f7 | Fix loading netrc when NETRC env var is not set |
<!-- Thank you for your contribution! -->
## What do these changes do?
I optimized this one a bit too much assuming NETRC would always be set in #11634
fixes #11713
## Are there changes in behavior for the user?
fix regression
## Is it a substantial burden for the maintainers to support this?
no | diff --git a/CHANGES/11713.bugfix.rst b/CHANGES/11713.bugfix.rst
new file mode 100644
index 00000000000..46deab33083
--- /dev/null
+++ b/CHANGES/11713.bugfix.rst
@@ -0,0 +1 @@
+Fixed loading netrc credentials from the default ``~/.netrc`` location when the ``NETRC`` environment variable is not set -- by :user:`bdraco`.... | 4 | 3 | 1 | [{"id": "G0", "claim": "The netrc_home_directory fixture should mock the HOME environment variable with monkeypatch.setenv('HOME', str(home_dir)) instead of monkeypatching pathlib.Path.home.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog e... | null |
aio-libs__aiohttp__11716 | aio-libs/aiohttp | 11,716 | defect | 6fabae5031194367dcc2e811ff733d884d7356cb | 25e272a7b1900bad08b4ac72599343cfc7440039 | Cleanup TYPE_CHECKING variables | I don't think these should have any actual impact, and the duplicate maintenance is prone to mistakes (note the extra unused type in the else block, top of web_app.py). A few similar cleanups here too. | diff --git a/aiohttp/abc.py b/aiohttp/abc.py
index a21e6b5d0bd..8775bfd2168 100644
--- a/aiohttp/abc.py
+++ b/aiohttp/abc.py
@@ -147,16 +147,10 @@ async def close(self) -> None:
"""Release resolver"""
-if TYPE_CHECKING:
- IterableBase = Iterable[Morsel[str]]
-else:
- IterableBase = Iterable
-
-
Clea... | 5 | 4 | 0 | [{"id": "G0", "claim": "The ClearCookiePredicate annotation should drop the quoted forward reference and read Callable[[Morsel[str]], bool] now that Morsel is imported at runtime.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new import lin... | null |
aio-libs__aiohttp__11724 | aio-libs/aiohttp | 11,724 | defect | f48869bfe3c3bb95f2c3749d1bea9825939036e5 | c721d06bb54ff559542a7dd9e8d56b38970bb7e2 | Ensure cookies are still parsed after a malformed cookie | <!-- Thank you for your contribution! -->
## What do these changes do?
Ensure cookies are still parsed after a malformed cookie
Browsers and nodejs cookie parser are a lot more permissive so
we should handle similar cases.
## Are there changes in behavior for the user?
we can handle more real world cookie... | diff --git a/CHANGES/11632.bugfix.rst b/CHANGES/11632.bugfix.rst
new file mode 100644
index 00000000000..c07bfb2b1f7
--- /dev/null
+++ b/CHANGES/11632.bugfix.rst
@@ -0,0 +1 @@
+Fixed cookie parser to continue parsing subsequent cookies when encountering a malformed cookie that fails regex validation, such as Google's `... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `morsel` variable is declared at function scope but only used conditionally inside the loop; move the declaration to where it is actually assigned to improve clarity and reduce scope.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
aio-libs__aiohttp__11726 | aio-libs/aiohttp | 11,726 | defect | f48869bfe3c3bb95f2c3749d1bea9825939036e5 | 6976c6bc22dd788b7696cda8f4352607cf3b0afb | Fix WebSocket compressed sends to be cancellation safe | ## What do these changes do?
Fixes data corruption in WebSocket compressed messages when send operations are cancelled. WebSocket uses a stateful compressor that persists across the connection lifetime. If a `send_frame()` call is cancelled during compression, the compressor state becomes corrupted, causing subseque... | diff --git a/CHANGES/11725.bugfix.rst b/CHANGES/11725.bugfix.rst
new file mode 100644
index 00000000000..820eed34f48
--- /dev/null
+++ b/CHANGES/11725.bugfix.rst
@@ -0,0 +1 @@
+Fixed WebSocket compressed sends to be cancellation safe by adding shield protection to prevent compressor state corruption when tasks are canc... | 8 | 5 | 2 | [{"id": "G0", "claim": "In the regression test the 'except asyncio.CancelledError' clause does nothing but pass and has no explanatory comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The compressor lock is only needed for the WebSocket p... | null |
aio-libs__aiohttp__11764 | aio-libs/aiohttp | 11,764 | defect | 056d9297b2cb96c83466a3eaac3055acd9432229 | 348529d69d0861783932809b0c01c6612ea6f630 | Add decode_text parameter to WebSocket for receiving TEXT as bytes | ## What do these changes do?
Adds a `decode_text` parameter to `ws_connect()` and `WebSocketResponse()` that allows receiving WebSocket TEXT messages as raw bytes instead of decoded strings.
When `decode_text=False`:
- TEXT messages return `bytes` instead of `str`
- Skips UTF-8 decoding overhead
- Enables dire... | diff --git a/aiohttp/_websocket/models.py b/aiohttp/_websocket/models.py
index 085fb460cb5..b42f88fd5f3 100644
--- a/aiohttp/_websocket/models.py
+++ b/aiohttp/_websocket/models.py
@@ -59,6 +59,21 @@ def json(
return loads(self.data)
+class WSMessageTextBytes(NamedTuple):
+ """WebSocket TEXT message wit... | 3 | 3 | 1 | [{"id": "G0", "claim": "With decode_text=False the JSON loading path cannot decode the bytes that TEXT messages now deliver — json.loads-style loaders do not handle bytes in receive_json.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The per-method... | null |
aio-libs__aiohttp__11766 | aio-libs/aiohttp | 11,766 | defect | 056d9297b2cb96c83466a3eaac3055acd9432229 | 66aae8928dee35db2eb22970bbecd8b1aa6e8187 | Request response storage typing | ## What do these changes do?
- added `RequestKey` & `ResponseKey` classes, which enable static typing checks in corresponding classes with dict-like storages, similarly to `AppKey`;
- moved common logic of key classes into a super-class;
- added tests for new classes & updated docs;
- fixed a few flake8 errors.
... | diff --git a/CHANGES/11766.feature.rst b/CHANGES/11766.feature.rst
new file mode 100644
index 00000000000..c4980bf7310
--- /dev/null
+++ b/CHANGES/11766.feature.rst
@@ -0,0 +1,4 @@
+Added ``RequestKey`` and ``ResponseKey`` classes,
+which enable static type checking for request & response
+context storages similarly to... | 5 | 4 | 0 | [{"id": "G0", "claim": "The added key classes need only their docstrings, so the redundant `pass` statements should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Request's storage `__setitem__` should emit the same `NotAppKeyWarning... | null |
aio-libs__aiohttp__11777 | aio-libs/aiohttp | 11,777 | defect | 1c06a651a10dd37e4dd00e0efd6ca81fa66cd4fb | dba65abb44c497674dbaee627ae52628c29e7a79 | fix(connector): propagate proxy headers on connection reuse | <!-- Thank you for your contribution! -->
## What do these changes do?
Pass proxy headers when re-using a connection from the pool. This prevents 407 error codes when a connection is reused with a proxy using HTTP (there is no issue with HTTPS).
## Are there changes in behavior for the user?
Reusing connect... | diff --git a/CHANGES/2596.bugfix b/CHANGES/2596.bugfix
new file mode 100644
index 00000000000..8631074cb8c
--- /dev/null
+++ b/CHANGES/2596.bugfix
@@ -0,0 +1 @@
+Pass proxy authorization headers when reusing a connection. Prevents 407 (Proxy authentication required) when reusing a connection.
diff --git a/CONTRIBUTORS.... | 3 | 3 | 1 | [{"id": "G0", "claim": "The expect_proxy_auth_header parametrization is misleading for the (True, True, False, False) case because proxy headers do nothing when use_auth is False; use a three-state variable or at least make the case (True, False, False, False).", "category": "testing", "verdict": "supported", "priority... | null |
aio-libs__aiohttp__11862 | aio-libs/aiohttp | 11,862 | defect | 63716df6bece59103ef29636bce40dc15a2be121 | 16639bfc3bbe70abc7e9335bbd1fb3a398c9ee26 | Fixing test for Continuation frame without intial frame | <!-- Thank you for your contribution! -->
## What do these changes do?
A test for websocket parser was marked with xfail, which was actually failing because the parser wasn't raising an exception for a continuation frame when there was no initial frame in context.
- Check for conitnuation frame was not honoured be... | diff --git a/CHANGES/11862.bugfix.rst b/CHANGES/11862.bugfix.rst
new file mode 100644
index 00000000000..c2ce176c2c3
--- /dev/null
+++ b/CHANGES/11862.bugfix.rst
@@ -0,0 +1 @@
+A test for websocket parser was marked to fail, which was actually failing because the parser wasn't raising an exception for a continuation fr... | 3 | 2 | 0 | [{"id": "G0", "claim": "The binary literal in the test has 9 zeros instead of 8 and should be 0b00000000 to be consistent with the rest of the codebase.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Consider either renaming the test, since it... | null |
aio-libs__aiohttp__11955 | aio-libs/aiohttp | 11,955 | defect | a47740c093dcc5291fb7e43788a9432b20093834 | f33b1760249be587d0829420af221a62694a0e79 | Add max_headers parameter | Also tweaks to max_line_size/max_field_size.
Prior art for the max number of fields: cpython has a limit of 100 and appears to have only a couple of user complaints (https://github.com/python/cpython/issues/131724, https://github.com/Azure/azure-cli/issues/28309) about a Microsoft site sometimes using slightly over ... | diff --git a/aiohttp/_http_parser.pyx b/aiohttp/_http_parser.pyx
index 0a306a02e2b..36817e9f4e8 100644
--- a/aiohttp/_http_parser.pyx
+++ b/aiohttp/_http_parser.pyx
@@ -329,7 +329,7 @@ cdef class HttpParser:
self, cparser.llhttp_type mode,
object protocol, object loop, int limit,
object timer... | 7 | 4 | 4 | [{"id": "G0", "claim": "The new chunked-feeding loop in test_parse_headers_longline contains a Python syntax error (text[i:i+8000 is missing its closing bracket).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new length check on the status/requ... | null |
aio-libs__aiohttp__12296 | aio-libs/aiohttp | 12,296 | defect | b198eeb06aa38b71fbfc9a665fcb3fbd87f99a8b | 29821a3e576f7ab9d57a013d7e576dc1b0f582d3 | Merge #12253 list-header parsing updates into list-headers | ## What do these changes do?
This PR carries the parser improvements from #12253 into `list-headers` (PR #7679), as requested in review.
- Normalizes list-style parsing for `Connection` and `Transfer-Encoding` in the pure-Python parser so repeated field lines and comma-joined values are interpreted equivalently.
- Ad... | diff --git a/CHANGES/12296.bugfix.rst b/CHANGES/12296.bugfix.rst
new file mode 100644
index 00000000000..ea790514286
--- /dev/null
+++ b/CHANGES/12296.bugfix.rst
@@ -0,0 +1,5 @@
+Normalized parsing of list-style ``Connection`` and ``Transfer-Encoding``
+headers so repeated field lines and comma-joined values are handle... | 5 | 5 | 2 | [{"id": "G0", "claim": "The new parse_http_list_values helper duplicates the existing getall() functionality, and given getall()'s result is what gets passed into it, its output would always equal its input.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
aio-libs__aiohttp__12312 | aio-libs/aiohttp | 12,312 | defect | d9bd1be0688be850271677ed6c1ddae5338a5858 | 0341434116822723735c13acf6657b5f14bb063b | Harden cookie file permissions in CookieJar.save() | This change hardens cookie persistence file permissions in CookieJar.save().
Problem
Cookie files may be created with overly permissive permissions depending on the system umask. Since these files can contain authentication and session tokens, this creates a risk of unintended exposure.
Risk
On shared systems, ... | diff --git a/aiohttp/cookiejar.py b/aiohttp/cookiejar.py
index 5f5a5ada199..c2207004390 100644
--- a/aiohttp/cookiejar.py
+++ b/aiohttp/cookiejar.py
@@ -4,6 +4,7 @@
import heapq
import itertools
import json
+import os
import pathlib
import re
import time
@@ -137,7 +138,27 @@ def save(self, file_path: PathLike) ->... | 2 | 2 | 1 | [{"id": "G0", "claim": "Changing the cookie file's permissions on every write is unconventional and would clobber permissions a user explicitly set on an existing file.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The O_EXCL/O_TRUNC os.open dance now d... | null |
aio-libs__aiohttp__12363 | aio-libs/aiohttp | 12,363 | defect | fd31137c54ee405f18fdfb8f184536bb499d0017 | 0756687ed54cf1a61ce7bfb50d78d2a2b4376580 | docs: clarify allowed compress request values | ## What do these changes do?
Clarify the allowed `compress` request values in the client docs and typing, and reject unsupported string values at runtime so the behavior matches the documented API.
## Are there changes in behavior for the user?
Yes. Passing an unsupported string such as `"br"` to `compress` now rais... | diff --git a/CHANGES/10549.misc.rst b/CHANGES/10549.misc.rst
new file mode 100644
index 00000000000..24d30ec5e85
--- /dev/null
+++ b/CHANGES/10549.misc.rst
@@ -0,0 +1 @@
+Document and narrow the allowed ``compress`` request values to ``True``/``False``, ``"deflate"``, or ``"gzip"``, and reject unsupported string values... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Literal import added in the conditional `sys.version_info >= (3, 11) and TYPE_CHECKING` block in aiohttp/client.py should instead be imported at the top of the file.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
aio-libs__aiohttp__4481 | aio-libs/aiohttp | 4,481 | defect | a249b419c076ec3fafffeb8781b38715823e9273 | 6a73d58d89522070712a04001cbeccfab618acb1 | Raising RuntimeError when trying to get empty body encoding | <!-- Thank you for your contribution! -->
## What do these changes do?
Function get_encoding raise RuntimeError when user is trying to read not present body and header doesn't provide info about encoding
## Are there changes in behavior for the user?
Make error more verbose
## Related issue number
Fix... | diff --git a/CHANGES/4214.bugfix b/CHANGES/4214.bugfix
new file mode 100644
index 00000000000..57b35c9c4a5
--- /dev/null
+++ b/CHANGES/4214.bugfix
@@ -0,0 +1 @@
+Raising RuntimeError when trying to get encoding from not read body
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 39c79e5f583..3a5cb1271d4 100644
---... | 4 | 4 | 0 | [{"id": "G0", "claim": "The newly added 'Vladyslav Bohaichuk' entry in CONTRIBUTORS.txt should be placed one line up (before 'Vladyslav Bondar') to keep the list ordered.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The docs' :raise note for g... | null |
aio-libs__aiohttp__9530 | aio-libs/aiohttp | 9,530 | defect | 120cdc22c1c2cf237474b0f0205f286ab26cf232 | 14b5c5a098e292cd627c04e1a79e33b312c2160e | Allow URLs with paths that end with `/` as base_url in ClientSession | ## What do these changes do?
- Allow URLs with paths as base_url in ClientSession.
- Add tests for `_build_url` to test url joining when base_url includes path.
## Are there changes in behavior for the user?
`base_url` in `ClientSession` now accepts URLs without paths or with paths that end with `/`
## Is ... | diff --git a/aiohttp/client.py b/aiohttp/client.py
index 343d20436e7..c91f5d3ff85 100644
--- a/aiohttp/client.py
+++ b/aiohttp/client.py
@@ -300,9 +300,9 @@ def __init__(
else:
self._base_url = URL(base_url)
self._base_url_origin = self._base_url.origin()
- assert (
- ... | 3 | 3 | 3 | [{"id": "G0", "claim": "Reconstructing the URL with string processing (URL(url.path_qs.lstrip(\"/\"))) in _build_url adds overhead to every request and drops the fragment, so joining should be left fully to the semantics of URL.join instead of altering the URL path.", "category": "performance", "verdict": "supported", ... | null |
aio-libs__aiojobs__135 | aio-libs/aiojobs | 135 | defect | 8abc7af3f61e003db3c10f379c04cdc7a97d7199 | 104b4f614b0ea639dc7ebfd590df2faa98ba261d | Fix scheduler hang when pending limit is reached | ## What do these changes do?
Do not add job to `_jobs` list while waiting for a free slot in the pending queue.
## Related issue number
#97, #98
## Checklist
- [x] I think the code is well written
- [x] Unit tests for the changes exist
- [x] Documentation reflects the changes
- [x] Add a new news fra... | diff --git a/CHANGES/97.bugfix b/CHANGES/97.bugfix
new file mode 100644
index 00000000..33fedd16
--- /dev/null
+++ b/CHANGES/97.bugfix
@@ -0,0 +1 @@
+Fix scheduler hang when pending limit is reached.
diff --git a/aiojobs/_scheduler.py b/aiojobs/_scheduler.py
index 32cc45ef..732b98c4 100644
--- a/aiojobs/_scheduler.py
+... | 4 | 3 | 0 | [{"id": "G0", "claim": "Only active jobs should be tracked in _jobs, with pending jobs added when they start (close() can pull pending jobs from the queue instead).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's fire-and-forget asyncio.create_ta... | null |
aio-libs__aiojobs__385 | aio-libs/aiojobs | 385 | defect | 94b57837cf776eb8d959404eb0a55b733c4e3651 | 4b5ed009ce93dee7cb944485c25115cae4f00206 | Add name parameter to spawn | <!-- Thank you for your contribution! -->
## What do these changes do?
These changes add the ability to optionally set the underlying Task name parameter on Jobs.
## Are there changes in behavior for the user?
Setting the Task name during spawn
```
await scheduler.spawn(my_task(), name="my-task")
await ... | diff --git a/aiojobs/_job.py b/aiojobs/_job.py
index 5c3928da..233b1c8b 100644
--- a/aiojobs/_job.py
+++ b/aiojobs/_job.py
@@ -14,9 +14,15 @@
class Job(Generic[_T]):
- def __init__(self, coro: Coroutine[object, object, _T], scheduler: Scheduler):
+ def __init__(
+ self,
+ coro: Coroutine[object... | 9 | 9 | 3 | [{"id": "G0", "claim": "The inner coroutine in the new test does not need a sleep since the function is never run; its body should just be a docstring.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should also sanity check the underlying task ... | null |
aio-libs__aiomysql__27 | aio-libs/aiomysql | 27 | defect | ed4c28f7eff5c91c94e981c5ae0a7c0422d6c159 | 204ecc25066e7770c44255b0600cb0a819918e85 | fix connection timeouts in pool | Should fix #25 and #16
@asvetlov please review.
| diff --git a/aiomysql/pool.py b/aiomysql/pool.py
index a442acc7..43bc7be5 100644
--- a/aiomysql/pool.py
+++ b/aiomysql/pool.py
@@ -125,6 +125,10 @@ def acquire(self):
conn = self._free.popleft()
assert not conn.closed, conn
assert conn not in self._used, (c... | 1 | 1 | 0 | [{"id": "G0", "claim": "Move the timed-out-connection check out of acquire() into the _fill_free_pool() method, iterating over the _free list and dropping all timed-out connections there, to make the code clearer.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
aio-libs__aiomysql__294 | aio-libs/aiomysql | 294 | defect | a6f3ee987fe4e9086638efb37499d4493042b4a2 | 6ab6ff488b8e405a4b03133bd8253c7c9a2b0070 | ability to execute precompiled sqlalchemy queries | Ability to execute pre-compiled queries removes ~30% sqlalchemy compilation overhead when the query is run repeatedly. | diff --git a/CHANGES.txt b/CHANGES.txt
index c7ef84ac..a0ff186b 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,6 +1,12 @@
Changes
-------
+0.0.16 (2018-05-21)
+^^^^^^^^^^^^^^^^^^^
+
+* Added ability to execute precompiled sqlalchemy queries
+
+
0.0.15 (2018-05-20)
^^^^^^^^^^^^^^^^^^^
diff --git a/aiomysql/__i... | 3 | 2 | 0 | [{"id": "G0", "claim": "The formatting of the compiled-cache condition block in aiomysql/sa/connection.py looks weird and should be reworked.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The dialect should not be part of the compiled-cache key... | null |
aio-libs__aiomysql__309 | aio-libs/aiomysql | 309 | defect | da37273d93ceab8a1e1d6aa51fbf8d2b1f6e1b88 | 2497aecf7a3702c861462af97378b5246f5b15a5 | PyMySQL 0.9 Update | Fixes #303 #302
So this was a weird one. I'm assuming PyMySQL changed some flag somewhere but it was refusing to connect unless we provided some client connection arguments. I just mimic'd how PyMySQL does it, so when connecting it will send across pid, program name, library name etc...
Also fixed the obvious m... | diff --git a/aiomysql/connection.py b/aiomysql/connection.py
index 642a3c1b..3f4b9e04 100644
--- a/aiomysql/connection.py
+++ b/aiomysql/connection.py
@@ -26,9 +26,8 @@
ProgrammingError)
from pymysql.connections import TEXT_TYPES, MAX_PACKET_LEN, DEFAULT_CHARSET
-# from pymysql.connections ... | 2 | 1 | 0 | [{"id": "G0", "claim": "aiomysql should not depend on pymysql's private internals (e.g. pymysql.connections._auth) since its implementation is likely to change; it would be better to vendor pymysql, or at least its _auth module, at least for some period of time.", "category": "design", "verdict": "uncertain", "priority... | null |
aio-libs__aiomysql__374 | aio-libs/aiomysql | 374 | defect | d097275fde6b5f80cfa4d84774f7cd172659e12b | b9684b0dad4066fdbf01bcc91b1b5d3ce1f6a9e7 | Allow to set expand Cursor | Fixes #373 | diff --git a/aiomysql/sa/engine.py b/aiomysql/sa/engine.py
index fc61121dd..945b1a0d8 100644
--- a/aiomysql/sa/engine.py
+++ b/aiomysql/sa/engine.py
@@ -6,7 +6,8 @@
from .connection import SAConnection
from .exc import InvalidRequestError, ArgumentError
from ..utils import _PoolContextManager, _PoolAcquireContextMan... | 2 | 2 | 0 | [{"id": "G0", "claim": "The variable `deplecated_cursor_classes` is misspelled and should be named `deprecated_cursor_classes`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new docstring should capitalize \"MySQL\" instead of writing \"mys... | null |
aio-libs__async-lru__1 | aio-libs/async-lru | 1 | defect | 24ac34e5afa96c7fda80ca5eabc6bcdec02e07bc | e69272905e43d1d3a3320e2fea0b7fef123e1ddf | cache_info feature and unittests for alru_cache | Implement `cache_info` feature that store cache statistics `(hits, misses, maxsize, currsize)`.
Unittests for alru_cache. | diff --git a/async_lru.py b/async_lru.py
index 1c231e70..6967d8f2 100644
--- a/async_lru.py
+++ b/async_lru.py
@@ -1,7 +1,9 @@
import asyncio
-from collections import OrderedDict
+from collections import OrderedDict, namedtuple
from functools import _make_key, partial, wraps
+_CacheInfo = namedtuple('CacheInfo', ['... | 1 | 1 | 1 | [{"id": "G0", "claim": "The tests grab and misuse the default event loop in the module-scoped `loop` fixture, which makes them buggy and fail; the reviewer asks to restructure the tests to avoid the default loop (use async tests with a pytest run-in-loop decorator).", "category": "correctness", "verdict": "supported", ... | null |
aio-libs__async-lru__481 | aio-libs/async-lru | 481 | defect | da1bd95791755f00e834b5a0c7d636585124e47f | da2935e26156f4ea6c6cb61ad6852028dfb2fd18 | fix #480, concurrent cache access with ttl | ## What do these changes do?
Fix key error when concurrent access to cache with ttl and max_size enabled
## Related issue number
Fixes #480
## Checklist
- [x] I think the code is well written
- [x] Unit tests for the changes exist
| diff --git a/async_lru/__init__.py b/async_lru/__init__.py
index 9048b505..6c77c972 100644
--- a/async_lru/__init__.py
+++ b/async_lru/__init__.py
@@ -159,9 +159,8 @@ def _task_done_callback(
) -> None:
self.__tasks.remove(task)
- if self.__ttl is not None:
+ if self.__ttl is not None and ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Apply the suggested style in test_ttl_concurrent: pass a generator expression to asyncio.gather instead of a list comprehension, and compare the results against tuple(range(2)).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
aio-libs__async-lru__595 | aio-libs/async-lru | 595 | defect | 4f7e63af8d8300d8d5cd1824bed73c1cb58a72ba | 93204380cf03ab04f781d70dccbb9ff46aa887e2 | Remove keys from cache on exception | <!-- Thank you for your contribution! -->
## What do these changes do?
<!-- Please give a short brief about these changes. -->
Remove key from cache as soon as the task fails.
Currently, it removes the key from the cache on subsequent retrival.
Benefits:
- less unnecessary data in cache leading to smaller f... | diff --git a/async_lru/__init__.py b/async_lru/__init__.py
index e04ca33f..228ebad0 100644
--- a/async_lru/__init__.py
+++ b/async_lru/__init__.py
@@ -168,22 +168,24 @@ def _task_done_callback(
) -> None:
self.__tasks.discard(task)
- cache_item = self.__cache.get(key)
- if self.__ttl is no... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added test test_alru_exception_reference_cleanup should be marked with @pytest.mark.xfail instead of @pytest.mark.skipif, as was done in a previous PR.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
aio-libs__async-lru__697 | aio-libs/async-lru | 697 | defect | 1bf0c1d3dbe1140cfc01beef6ff9af43393c712e | eaa5630acb8fe0cb83c32eb5fbc767e382bf4b2e | feat: handle CancelledError - cancel if no other waiters | ## What do these changes do?
Currently if a decorated function is awaited, and then that task is cancelled, async_lru will never cancel the task, potentially leading to memory leaks and other fun things.
In cases where the only waiter is cancelled, this PR will gracefully cancel the task and pop the key
## Are... | diff --git a/async_lru/__init__.py b/async_lru/__init__.py
index 447e9cdb..2f3e4566 100644
--- a/async_lru/__init__.py
+++ b/async_lru/__init__.py
@@ -56,6 +56,7 @@ class _CacheParameters(TypedDict):
class _CacheItem(Generic[_R]):
fut: "asyncio.Future[_R]"
later_call: Optional[asyncio.Handle]
+ waiters: i... | 3 | 2 | 1 | [{"id": "G0", "claim": "The last-waiter handling in _handle_cancelled_error is unnecessary because any existing cache_item already implies another waiter, so waiters can never drop to 1 there.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test reproduci... | null |
aio-libs__async-lru__725 | aio-libs/async-lru | 725 | defect | dfa691513d454f72e37b7f04f3e40aa42009926c | 6dfb6f59031120287d4342854c7d2d0006d132bd | fix: callback inappropriately suppresses asyncio logs | This fixes something I broke in my previous PR.
## What do these changes do?
We must use the private `_exception` attribute instead of `exception()` so asyncio does not set `task.__log_traceback = False` on the false assumption that the caller read the task Exception
## Are there changes in behavior for the us... | diff --git a/async_lru/__init__.py b/async_lru/__init__.py
index 2776236a..4194cfd8 100644
--- a/async_lru/__init__.py
+++ b/async_lru/__init__.py
@@ -178,7 +178,10 @@ def _cache_miss(self, key: Hashable) -> None:
self.__misses += 1
def _task_done_callback(self, key: Hashable, task: "asyncio.Task[_R]") ... | 2 | 1 | 1 | [{"id": "G0", "claim": "Add a regression test that the done-callback no longer suppresses asyncio's 'Task exception was never retrieved' logging, e.g. using pytest's caplog fixture.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 5-iteration gc.colle... | null |
aio-libs__async-lru__730 | aio-libs/async-lru | 730 | defect | b4e713b6e71cd4bc36fe0aa980951a1d9a1d2584 | 2547afe743545c6ecc30c2f9f6807dde49d2056e | Add jitter parameter for TTL to distribute cache invalidations | Fixes #656
## Summary
This PR adds a new `jitter` parameter to `alru_cache()` that randomizes each cache entry's TTL within a range. This helps prevent thundering herd issues when many cache entries expire simultaneously.
## Example
```python
@alru_cache(ttl=3600, jitter=1800)
async def fetch_data(key):
... | diff --git a/README.rst b/README.rst
index b7e7fd1d..b8f4fb0e 100644
--- a/README.rst
+++ b/README.rst
@@ -77,6 +77,18 @@ parameter (off by default):
async def func(arg):
return arg * 2
+To prevent thundering herd issues when many cache entries expire simultaneously,
+you can add ``jitter`` to randomize... | 2 | 2 | 1 | [{"id": "G0", "claim": "The jitter test would pass even if jitter did nothing; it should test after the normal TTL and use mock.patch() to force random.uniform() to a hardcoded value so the effective TTL is exactly known.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
aio-libs__async-lru__732 | aio-libs/async-lru | 732 | defect | 6b06d623aa4f3c1d58326af5462c558a5b064c9c | f71a9d7db69da768cd0069a081dab989fbcb35de | Enforce event loop affinity for cache instances | ## What do these changes do?
This PR adds event loop affinity enforcement to `alru_cache`. When a cached function is accessed from a different event loop than where it was first used, a `RuntimeError` is raised:
```
RuntimeError: alru_cache is not safe to use across event loops: this cache
instance was first u... | diff --git a/README.rst b/README.rst
index b8f4fb0e..589eca1d 100644
--- a/README.rst
+++ b/README.rst
@@ -104,6 +104,53 @@ The library supports explicit invalidation for specific function call by
The method returns `True` if corresponding arguments set was cached already, `False`
otherwise.
+Limitations
+---------... | 4 | 3 | 2 | [{"id": "G0", "claim": "The cross-access check should be based on the identity of the asyncio event loop rather than the identity of the thread, since with asyncio.Runner event loops can migrate across threads and checking the event loop is probably cheaper anyway.", "category": "correctness", "verdict": "supported", "... | null |
aio-libs__async-lru__745 | aio-libs/async-lru | 745 | defect | 33e1a7cec396bcf612f46226253775fd905b40eb | b071971cd0b174f0b1485326125a835211e29acb | Forward cache_close(wait=...) for bound methods | ## What changed
- Forward `wait` to `cache_close()` for bound methods so it behaves the same as the unbound wrapper.
- Keep legacy `cancel`/`return_exceptions` parameters but warn when they’re used (to avoid silent no-ops).
- Add a bound-method test to verify `wait=True` completes in-flight tasks without cancellation.
... | diff --git a/async_lru/__init__.py b/async_lru/__init__.py
index 9230e356..e1211999 100644
--- a/async_lru/__init__.py
+++ b/async_lru/__init__.py
@@ -333,9 +333,20 @@ def cache_clear(self) -> None:
self.__wrapper.cache_clear()
async def cache_close(
- self, *, cancel: bool = False, return_except... | 2 | 2 | 0 | [{"id": "G0", "claim": "In test_cache_close_wait_bound_method, replace the timed `await asyncio.sleep(0.01)` with a comment plus `await asyncio.sleep(0)` so the loop is yielded to and the tasks start deterministically.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
aio-libs__async-lru__746 | aio-libs/async-lru | 746 | defect | e2ddf7af72e2eb7382182dbdde7578142f0124be | 08f54ede5eb49d6245073a8e61b2cba276944a1b | feat: add cache_contains() for read-only key lookup | # Add `cache_contains()` method for checking if arguments are cached
## What do these changes do?
This adds a `cache_contains(*args, **kwargs) -> bool` method to `alru_cache`. It lets you check whether a specific set of arguments is currently in the cache. It returns `True` if the key exists and `False` otherwise... | diff --git a/async_lru/__init__.py b/async_lru/__init__.py
index e1211999..f6b62c21 100644
--- a/async_lru/__init__.py
+++ b/async_lru/__init__.py
@@ -150,6 +150,14 @@ def _check_loop(self, loop: asyncio.AbstractEventLoop) -> None:
self.cache_clear()
self.__first_loop = loop
+ def cache_c... | 4 | 4 | 0 | [{"id": "G0", "claim": "The new test file's stdlib and third-party imports lack a group separator, violating Flake8 I201.", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test functions lack type hints; add them (e.g. `check_lru: Callable[..., None]... | null |
aio-libs__janus__295 | aio-libs/janus | 295 | defect | 221c14dbf99f6050851231add1505ba8fa6877c9 | b33719ef6b1b82a2bf862645a5285410b35e4ced | Fix join calls not raise RuntimeError after queue closing. | <!-- Thank you for your contribution! -->
## What do these changes do?
Fix `join()` method calls not raise `RuntimeError` after queue closing.
<!-- Please give a short brief about these changes. -->
## Are there changes in behavior for the user?
The `join()` method calls will raise `RuntimeError` after q... | diff --git a/janus/__init__.py b/janus/__init__.py
index 4c064a56..fcc3d05f 100644
--- a/janus/__init__.py
+++ b/janus/__init__.py
@@ -69,6 +69,8 @@ def close(self) -> None:
self._closing = True
for fut in self._pending:
fut.cancel()
+ self._finished.set() # unbloc... | 1 | 1 | 0 | [{"id": "G0", "claim": "The RuntimeError message added by this PR should read \"Operation on the closed queue is forbidden\" instead of \"Operation of closed queue is forbidden\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.