PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: ant-design/ant-design-mobile (ts)

Issue:
slider拖动轴无法滑动到最大值
### Version of antd-mobile

5.24.1

### Operating system and its version

_No response_

### Browser and its version

_No response_

### Sandbox to reproduce

_No response_

### What happened?

在官方网站https://mobile.ant.design/zh/components/slider/ 也可以复现，无法滑动到最大值

### Relevant log output

_No response_

Pull request:
fix(Slider): points should contain max
close #5750 

Patch:
diff --git a/src/components/slider/slider.tsx b/src/components/slider/slider.tsx
index 81349eff4..2f89891e4 100644
--- a/src/components/slider/slider.tsx
+++ b/src/components/slider/slider.tsx
@@ -109,7 +109,7 @@ export const Slider: FC<SliderProps> = p => {
         .sort((a, b) => a - b)
     } else {
       const points: number[] = []
-      for (let i = Big(min); i.lt(max); i = i.plus(step)) {
+      for (let i = Big(min); i.lte(max); i = i.plus(step)) {
         points.push(i.toNumber())
       }
       return points


Test patch:
diff --git a/src/components/slider/tests/slider.test.tsx b/src/components/slider/tests/slider.test.tsx
index 80b5dfc89..5cc70cb70 100644
--- a/src/components/slider/tests/slider.test.tsx
+++ b/src/components/slider/tests/slider.test.tsx
@@ -178,6 +178,13 @@ describe('Slider', () => {
     expect($$(`.${classPrefix}-fill`)[0]).toHaveStyle('width: 60%')
   })
 
+  test('slide to max should be work', () => {
+    const onAfterChange = jest.fn()
+    render(<Slider onAfterChange={onAfterChange} />)
+    drag(screen.getByRole('slider'), 100)
+    expect(onAfterChange).toBeCalledWith(100)
+  })
+
   describe('step is a decimal', () => {
     beforeAll(() => {
       Object.defineProperty(HTMLElement.prototype, 'offsetWidth', {
Repository: microsoft/inshellisense (ts)

Issue:
PowerShell: Command history is not available using up and down arrows
When inside inshellisence, using up or down arrows will not bring up commands from the command history.

Applicable to PowerShell, not tested with bash or other shells.

Pull request:
fix: empty suggestions block history scrolling
Closes #9 

Patch:
diff --git a/src/runtime/runtime.ts b/src/runtime/runtime.ts
index 1017d65..81e93f8 100644
--- a/src/runtime/runtime.ts
+++ b/src/runtime/runtime.ts
@@ -112,6 +112,7 @@ export const getSuggestions = async (cmd: string, cwd: string, shell: Shell): Pr
   }
   const result = await runSubcommand(activeCmd.slice(1), subcommand, resolvedCwd, shell);
   if (result == null) return;
+  if (result.suggestions.length == 0 && !result.argumentDescription) return;
 
   const charactersToDrop = lastCommand?.complete ? 0 : lastCommand?.tokenLength;
   return { ...result, charactersToDrop };


Test patch:
diff --git a/src/tests/runtime/__snapshots__/runtime.test.ts.snap b/src/tests/runtime/__snapshots__/runtime.test.ts.snap
index 458e76b..52bd479 100644
--- a/src/tests/runtime/__snapshots__/runtime.test.ts.snap
+++ b/src/tests/runtime/__snapshots__/runtime.test.ts.snap
@@ -293,12 +293,7 @@ exports[`parseCommand completedOptionWithArg 1`] = `
 }
 `;
 
-exports[`parseCommand emptySuggestions 1`] = `
-{
-  "charactersToDrop": 2,
-  "suggestions": [],
-}
-`;
+exports[`parseCommand emptySuggestions 1`] = `undefined`;
 
 exports[`parseCommand exclusiveOnOption 1`] = `
 {
@@ -528,12 +523,7 @@ exports[`parseCommand noArgsArgumentGiven 1`] = `
 }
 `;
 
-exports[`parseCommand noOptionsSuggestedDuringVariadicArg 1`] = `
-{
-  "charactersToDrop": 3,
-  "suggestions": [],
-}
-`;
+exports[`parseCommand noOptionsSuggestedDuringVariadicArg 1`] = `undefined`;
 
 exports[`parseCommand optionsSuggestedAfterVariadicArg 1`] = `
 {
Repository: python-attrs/attrs (python)

Issue:
unhelpful message "ValueError: Type annotation and type argument cannot both be present"
Getting this message because I both have the type annotation and type defined on a custom attribute class which is reasonable considering the ambiguity.

However I think the message itself could be more helpful by displaying the name of the attribute to eliminate the variable hunt.

My suggested change is:

https://github.com/python-attrs/attrs/blob/2afd663bf40e4a8209986accdfb1e2d53afc15e2/src/attr/_make.py#L2354
```python
    @classmethod
    def from_counting_attr(cls, name, ca, type=None):
        # type holds the annotated value. deal with conflicts:
        if type is None:
            type = ca.type
        elif ca.type is not None:
            raise ValueError(
                f"Type annotation and type argument for {name} cannot both be present"
            )
        inst_dict = {
            k: getattr(ca, k)
            for k
            in Attribute.__slots__
            if k not in (
                "name", "validator", "default", "type", "convert",
            )  # exclude methods and deprecated alias
        }
        return cls(
            name=name, validator=ca._validator, default=ca._default, type=type,
            **inst_dict
        )
 ```

Pull request:
Mention what argument has both annotation and type argument
Fixes #1354


Patch:
diff --git a/changelog.d/1410.change.md b/changelog.d/1410.change.md
new file mode 100644
index 0000000..0536da8
--- /dev/null
+++ b/changelog.d/1410.change.md
@@ -0,0 +1,1 @@
+The error message if an attribute has both an annotation and a type argument will now disclose _what_ attribute seems to be the problem.
diff --git a/src/attr/_make.py b/src/attr/_make.py
index 0c5aa0b..7439dc2 100644
--- a/src/attr/_make.py
+++ b/src/attr/_make.py
@@ -2491,7 +2491,7 @@ class Attribute:
         if type is None:
             type = ca.type
         elif ca.type is not None:
-            msg = "Type annotation and type argument cannot both be present"
+            msg = f"Type annotation and type argument cannot both be present for '{name}'."
             raise ValueError(msg)
         return cls(
             name,


Test patch:
diff --git a/tests/test_annotations.py b/tests/test_annotations.py
index f37a1c0..5c62966 100644
--- a/tests/test_annotations.py
+++ b/tests/test_annotations.py
@@ -62,7 +62,7 @@ class TestAnnotations:
                 x: int = attr.ib(type=int)
 
         assert (
-            "Type annotation and type argument cannot both be present",
+            "Type annotation and type argument cannot both be present for 'x'.",
         ) == e.value.args
 
     def test_typing_annotations(self):
Repository: JuliaPlots/Makie.jl (julia)

Issue:
broken edge case: plotting an empty list of polygons
When trying to develop a  Makie plot recipe I found that currently (Makie v0.15.3) `poly!(ax, Vector{Point2f}[])` throws `ERROR: MethodError: no method matching to_vertices(::Vector{Any})`.

Pull request:

Patch:
diff --git a/src/basic_recipes/poly.jl b/src/basic_recipes/poly.jl
index d8c76a2460d..69981d813c9 100644
--- a/src/basic_recipes/poly.jl
+++ b/src/basic_recipes/poly.jl
@@ -63,7 +63,10 @@ function plot!(plot::Poly{<: Tuple{Union{GeometryBasics.Mesh, GeometryPrimitive}
 end
 
 # Poly conversion
-poly_convert(geometries) = triangle_mesh.(geometries)
+function poly_convert(geometries)
+    isempty(geometries) && return typeof(GeometryBasics.Mesh(Point2f[], GLTriangleFace[]))[]
+    return triangle_mesh.(geometries)
+end
 poly_convert(meshes::AbstractVector{<:AbstractMesh}) = meshes
 poly_convert(polys::AbstractVector{<:Polygon}) = triangle_mesh.(polys)
 function poly_convert(multipolygons::AbstractVector{<:MultiPolygon})
@@ -184,7 +187,11 @@ function plot!(plot::Mesh{<: Tuple{<: AbstractVector{P}}}) where P <: Union{Abst
     else
         attributes[:color] = color_node
         lift(meshes) do meshes
-            return merge(GeometryBasics.mesh.(meshes))
+            if isempty(meshes)
+                return GeometryBasics.Mesh(Point2f[], GLTriangleFace[])
+            else
+                return merge(GeometryBasics.mesh.(meshes))
+            end
         end
     end
     mesh!(plot, attributes, bigmesh)


Test patch:
diff --git a/test/conversions.jl b/test/conversions.jl
index c6081821fa3..9c2fe868028 100644
--- a/test/conversions.jl
+++ b/test/conversions.jl
@@ -248,3 +248,15 @@ end
     @inferred to_colormap(cgrad(:cividis, 8; alpha=0.5))
     @inferred to_colormap(cgrad(:cividis, 8; alpha=0.5, categorical=true))
 end
+
+
+@testset "empty poly" begin
+    f, ax, pl = poly(Rect2f[]);
+    pl[1] = [Rect2f(0, 0, 1, 1)];
+    @test pl.plots[1][1][] == [GeometryBasics.triangle_mesh(Rect2f(0, 0, 1, 1))]
+
+    f, ax, pl = poly(Vector{Point2f}[])
+    points = decompose(Point2f, Circle(Point2f(0),1))
+    pl[1] = [points]
+    @test pl.plots[1][1][] == Makie.poly_convert(points)
+end
Repository: vaskoz/dailycodingproblem-go (go)

Issue:
Day 161
Good morning! Here's your coding interview problem for today.

This problem was asked by Facebook.

Given a 32-bit integer, return the number with its bits reversed.

For example, given the binary number `1111 0000 1111 0000 1111 0000 1111 0000`, return `0000 1111 0000 1111 0000 1111 0000 1111`.

Pull request:
Day161
Resolves #334.

Patch:
diff --git a/README.md b/README.md
index cb4b438..816f4f6 100644
--- a/README.md
+++ b/README.md
@@ -170,5 +170,6 @@ problems from
 * [Day 157](https://github.com/vaskoz/dailycodingproblem-go/issues/327)
 * [Day 158](https://github.com/vaskoz/dailycodingproblem-go/issues/329)
 * [Day 159](https://github.com/vaskoz/dailycodingproblem-go/issues/331)
+* [Day 161](https://github.com/vaskoz/dailycodingproblem-go/issues/334)
 * [Day 162](https://github.com/vaskoz/dailycodingproblem-go/issues/335)
 * [Day 163](https://github.com/vaskoz/dailycodingproblem-go/issues/336)
diff --git a/day161/problem.go b/day161/problem.go
new file mode 100644
index 0000000..ff1dfe0
--- /dev/null
+++ b/day161/problem.go
@@ -0,0 +1,17 @@
+package day161
+
+// Reverse32Bits reverses the bits and returned the result.
+// Runs in O(32) time.
+func Reverse32Bits(num uint32) uint32 {
+	var rev uint32
+	offset := uint(32)
+	for num != 0 {
+		offset--
+		rev <<= 1
+		if num&1 == 1 {
+			rev ^= 1
+		}
+		num >>= 1
+	}
+	return rev << offset
+}


Test patch:
diff --git a/day161/problem_test.go b/day161/problem_test.go
new file mode 100644
index 0000000..6a6614a
--- /dev/null
+++ b/day161/problem_test.go
@@ -0,0 +1,27 @@
+package day161
+
+import "testing"
+
+var testcases = []struct {
+	given, expected uint32
+}{
+	{4042322160, 252645135},
+	{3, 3221225472},
+}
+
+func TestReverse32Bits(t *testing.T) {
+	t.Parallel()
+	for _, tc := range testcases {
+		if result := Reverse32Bits(tc.given); result != tc.expected {
+			t.Errorf("Expected %v got %v", tc.expected, result)
+		}
+	}
+}
+
+func BenchmarkReverse32Bits(b *testing.B) {
+	for i := 0; i < b.N; i++ {
+		for _, tc := range testcases {
+			Reverse32Bits(tc.given)
+		}
+	}
+}
Repository: JoshuaKGoldberg/create-typescript-app (ts)

Issue:
🐛 Bug: `blockTypeScript` should print `compilerOptions` in alphabetical order
### Bug Report Checklist

- [x] I have tried restarting my IDE and the issue persists.
- [x] I have pulled the latest `main` branch of the repository.
- [x] I have [searched for related issues](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aissue) and found none that matched my issue.

### Expected

If a user provides explicit `compilerOption` Addons to `blockTypeScript`, then they should be merged in with existing compiler options in alphabetical order.

### Actual

https://github.com/JoshuaKGoldberg/package-json-validator/pull/178/files#diff-b55cdbef4907b7045f32cc5360d48d262cca5f94062e353089f189f4460039e0 shows that a provided `rewriteRelativeImportExtensions` is being placed at the end - after `t*` options.

### Additional Info

🎁 

Pull request:
fix: sort compilerOptions in tsconfig.json
## PR Checklist

- [x] Addresses an existing open issue: fixes #2092
- [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [ ] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken

## Overview

🎁 

Patch:
diff --git a/src/blocks/blockTypeScript.ts b/src/blocks/blockTypeScript.ts
index 73b08f9..b4ceb38 100644
--- a/src/blocks/blockTypeScript.ts
+++ b/src/blocks/blockTypeScript.ts
@@ -1,3 +1,4 @@
+import sortKeys from "sort-keys";
 import { CompilerOptionsSchema } from "zod-tsconfig";
 
 import { base } from "../base.js";
@@ -121,7 +122,7 @@ export * from "./types.js";
 			],
 			files: {
 				"tsconfig.json": JSON.stringify({
-					compilerOptions: {
+					compilerOptions: sortKeys({
 						declaration: true,
 						declarationMap: true,
 						esModuleInterop: true,
@@ -133,7 +134,7 @@ export * from "./types.js";
 						strict: true,
 						target: "ES2022",
 						...compilerOptions,
-					},
+					}),
 					include: ["src"],
 				}),
 			},


Test patch:
diff --git a/src/blocks/blockTypeScript.test.ts b/src/blocks/blockTypeScript.test.ts
index d2949f7..f5ded81 100644
--- a/src/blocks/blockTypeScript.test.ts
+++ b/src/blocks/blockTypeScript.test.ts
@@ -298,7 +298,7 @@ describe("blockTypeScript", () => {
 			    },
 			  ],
 			  "files": {
-			    "tsconfig.json": "{"compilerOptions":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":"NodeNext","moduleResolution":"NodeNext","noEmit":true,"resolveJsonModule":true,"skipLibCheck":true,"strict":true,"target":"ES2022","strictBindCallApply":false},"include":["src"]}",
+			    "tsconfig.json": "{"compilerOptions":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":"NodeNext","moduleResolution":"NodeNext","noEmit":true,"resolveJsonModule":true,"skipLibCheck":true,"strict":true,"strictBindCallApply":false,"target":"ES2022"},"include":["src"]}",
 			  },
 			}
 		`);