base_commit stringlengths 40 40 | patch stringlengths 274 342k | instance_id stringlengths 13 40 | pull_number int64 14 15.2k | hints_text stringlengths 0 37.4k | issue_numbers sequencelengths 1 3 | version stringlengths 3 5 | repo stringlengths 8 35 | created_at stringdate 2016-10-28 09:07:07 2025-01-01 11:25:06 | test_patch stringlengths 308 274k | problem_statement stringlengths 25 44.3k | environment_setup_commit stringlengths 40 40 | FAIL_TO_PASS sequencelengths 1 1.1k | PASS_TO_PASS sequencelengths 0 7.38k | FAIL_TO_FAIL sequencelengths 0 1.72k | PASS_TO_FAIL sequencelengths 0 49 | updated_at stringdate 2016-10-29 01:18:22 2025-04-25 03:48:57 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1beea8c3df2e44f6fa17b8f21ad57bf5a6e8b620 | diff --git a/Cargo.toml b/Cargo.toml
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["algorithms", "database-implementations"]
[dependencies]
log = "0.4.1"
-protobuf = "1.2"
+protobuf = "~1.5"
quick-error = "1.2.1"
rand = "0.4"
fxhash = "0.2.1"
diff --git a/src/raft.rs b/src/raft.rs
--- a/src/r... | tikv__raft-rs-58 | 58 | PTAL @xiang90 @Hoverbear | [
"57"
] | 0.1 | tikv/raft-rs | 2018-05-09T08:12:10Z | diff --git a/tests/cases/test_raft.rs b/tests/cases/test_raft.rs
--- a/tests/cases/test_raft.rs
+++ b/tests/cases/test_raft.rs
@@ -3784,21 +3784,6 @@ fn test_learner_promotion() {
assert_eq!(network.peers[&2].state, StateRole::Leader);
}
-// TestLearnerCannotVote checks that a learner can't vote even it receive... | Learner should respond to request vote but don't accept votes
Consider following case, a cluster has three nodes A, B, C, and A is Leader. And then add learner D, E to the cluster. D, E is promoted to voter then, but D is isolated from A, so D doesn't know himself is promoted. When A, B both crash, the cluster still ha... | 1beea8c3df2e44f6fa17b8f21ad57bf5a6e8b620 | [
"cases::test_raft::test_learner_respond_vote"
] | [
"errors::tests::test_error_equal",
"log_unstable::test::test_maybe_first_index",
"log_unstable::test::test_maybe_last_index",
"log_unstable::test::test_maybe_term",
"errors::tests::test_storage_error_equal",
"log_unstable::test::test_restore",
"log_unstable::test::test_stable_to",
"log_unstable::test:... | [] | [] | 2018-07-05T16:30:24Z |
94f4ad731ffae32474ae4362c5f74507a86b564e | diff --git a/path/src/path.rs b/path/src/path.rs
--- a/path/src/path.rs
+++ b/path/src/path.rs
@@ -140,10 +140,7 @@ impl Path {
/// Reversed version of this path with edge loops are specified in the opposite
/// order.
pub fn reversed(&self) -> Self {
- let mut builder = Path::builder();
- ... | nical__lyon-503 | 503 | [
"501"
] | 0.14 | nical/lyon | 2019-12-25T11:52:19Z | diff --git a/path/src/path.rs b/path/src/path.rs
--- a/path/src/path.rs
+++ b/path/src/path.rs
@@ -1041,49 +1059,60 @@ fn n_stored_points(verb: Verb, attrib_stride: usize) -> usize {
#[test]
fn test_reverse_path() {
- let mut builder = Path::builder();
- builder.move_to(point(0.0, 0.0));
- builder.line_to(... | Path::reversed should preserve custom attributes
Currently the custom attributes aren't in the output path.
| 94f4ad731ffae32474ae4362c5f74507a86b564e | [
"path::test_reverse_path"
] | [
"commands::simple_path",
"commands::next_event",
"iterator::test_from_polyline_open",
"path::test_merge_paths",
"iterator::test_from_polyline_closed",
"path::test_path_builder_empty",
"path::test_path_builder_1",
"path::test_reverse_empty_path",
"path::test_reverse_path_no_close",
"path::test_path... | [] | [] | 2019-12-25T11:58:15Z | |
525037751f50afd145131feded64156e79dfaaa9 | diff --git a/tessellation/src/event_queue.rs b/tessellation/src/event_queue.rs
--- a/tessellation/src/event_queue.rs
+++ b/tessellation/src/event_queue.rs
@@ -184,7 +184,7 @@ impl EventQueue {
after: TessEventId,
) -> TessEventId {
debug_assert!(self.sorted);
- debug_assert!(is_after(data.... | nical__lyon-570 | 570 | Thanks for filing this, I'll have a look shortly.
@yanchith I made a testcase from the one you provided, unfortunately it doesn't reproduce, which probably means the defaut formatting parameters arent printing enough decimals to represent the problematic case.
could you copy-pase this code somehwere where you know t... | [
"562"
] | 0.15 | nical/lyon | 2020-04-23T21:45:52Z | diff --git a/tessellation/src/fill_tests.rs b/tessellation/src/fill_tests.rs
--- a/tessellation/src/fill_tests.rs
+++ b/tessellation/src/fill_tests.rs
@@ -135,7 +135,7 @@ fn test_path_with_rotations(path: Path, step: f32, expected_triangle_count: Opti
let mut angle = Angle::radians(0.0);
while angle.radians... | FillTessellator with non-zero fill rule panics with 'assertion failed: self.fill.spans.is_empty()'
Hello,
First of all, really sorry that the bug reproduction is not as minimal as it could be (see attached `Path`). I can spend some more time on this later, if it helps.
Version: `0.15.6`
The panic is a `debug_a... | 08cd4c3d8c1ef53fbbb1b702f655e26c6bd5cc03 | [
"earcut_tests::self_touching",
"fill_tests::issue_562_1",
"fill_tests::issue_562_5",
"earcut_tests::eberly_6",
"fill_tests::issue_562_6",
"fill_tests::issue_481_reduced",
"fill_tests::issue_481_original",
"fill_tests::issue_562_7",
"fuzz_tests::fuzzing_test_case_16",
"fuzz_tests::fuzzing_test_case... | [
"earcut_tests::bad_diagonal",
"earcut_tests::building",
"earcut_tests::degenerate",
"earcut_tests::bad_hole",
"earcut_tests::empty_square",
"earcut_tests::eberly_3",
"earcut_tests::dude",
"earcut_tests::issue_16",
"earcut_tests::hole_touching_outer",
"earcut_tests::issue_17",
"earcut_tests::issu... | [] | [] | 2020-04-23T21:46:13Z |
122ee5f0077fcf363745cb6ab1c4641545029efc | diff --git a/Cargo.lock b/Cargo.lock
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -432,7 +432,7 @@ name = "geom_bench"
version = "0.0.1"
dependencies = [
"bencher 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
- "lyon 0.15.3",
+ "lyon 0.15.5",
]
[[package]]
diff --git a/Cargo.lock b/Cargo.lock
--- a/Ca... | nical__lyon-530 | 530 | Thanks for the report, unless the input data contains broken floats like NaNs or inifinity, and has fewer than u32::MAX vertices, it should definitely be considered as a bug in the tessellator which is the case here. I was able to reproduce this and reduce it to a small testcase. I'll look into it soon. | [
"529"
] | 0.15 | nical/lyon | 2020-01-12T20:48:35Z | diff --git a/Cargo.lock b/Cargo.lock
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -882,7 +882,7 @@ dependencies = [
name = "lyon_wasm_test"
version = "0.11.0"
dependencies = [
- "lyon 0.15.3",
+ "lyon 0.15.5",
]
[[package]]
diff --git a/tessellation/src/fill_tests.rs b/tessellation/src/fill_tests.rs
--- a/tessellation/s... | Fill tessellation failure in 0.15.3
I'm tesselating a svg file that I simply pass from usvg to lyon fill tesselator.
The svg file can be found at [0], I used `CNTR_RG_03M_2016_4326.svg` which used to work with 0.14, (but `CNTR_RG_01M_2016_4326.svg` did not).
The error is simply `Internal(IncorrectActiveEdgeOrder(3)... | 08cd4c3d8c1ef53fbbb1b702f655e26c6bd5cc03 | [
"fill_tests::issue_529"
] | [
"basic_shapes::issue_366",
"earcut_tests::bad_diagonal",
"earcut_tests::bad_hole",
"earcut_tests::building",
"earcut_tests::degenerate",
"earcut_tests::dude",
"earcut_tests::eberly_3",
"earcut_tests::empty_square",
"earcut_tests::hole_touching_outer",
"earcut_tests::issue_16",
"earcut_tests::iss... | [] | [] | 2020-01-12T20:54:59Z |
4429c2aad3f900fd33a8a64e62e8e9da97ffaf1e | diff --git a/tessellation/src/stroke.rs b/tessellation/src/stroke.rs
--- a/tessellation/src/stroke.rs
+++ b/tessellation/src/stroke.rs
@@ -7,7 +7,7 @@ use crate::path::builder::{Build, PathBuilder};
use crate::path::private::DebugValidator;
use crate::path::{AttributeStore, EndpointId, IdEvent, PathEvent, PathSlice, ... | nical__lyon-579 | 579 | I certainly am! Was it the stroke or fill tessellator?
Pretty sure it was the stroke tesselator.
It may be useful to know that there were only bezier curves imitating lines (i.e. the control points were identical to the corners) in the builder. There may however have been duplicate points in it.
Some more info. I think... | [
"545"
] | 0.15 | nical/lyon | 2020-04-27T22:00:28Z | diff --git a/tessellation/src/stroke.rs b/tessellation/src/stroke.rs
--- a/tessellation/src/stroke.rs
+++ b/tessellation/src/stroke.rs
@@ -1665,12 +1711,14 @@ fn test_too_many_vertices() {
}
impl GeometryBuilder for Builder {
fn begin_geometry(&mut self) {}
- fn add_triangle(&mut self, _a: Ver... | The stroke tessellator does not propagate errors
I cannot replicate this, but you might be interested in a panic that i found
```
thread 'main' panicked at 'assertion failed: b != c', tessellation/src/geometry_builder.rs:510:9
```
| 08cd4c3d8c1ef53fbbb1b702f655e26c6bd5cc03 | [
"stroke::test_too_many_vertices"
] | [
"earcut_tests::bad_diagonal",
"earcut_tests::building",
"earcut_tests::degenerate",
"earcut_tests::bad_hole",
"earcut_tests::empty_square",
"earcut_tests::eberly_3",
"earcut_tests::dude",
"earcut_tests::issue_17",
"earcut_tests::issue_16",
"earcut_tests::hole_touching_outer",
"earcut_tests::issu... | [] | [] | 2020-04-28T19:52:35Z |
4651f1b20b508aeb3cd79e0d9252803e7325afa8 | diff --git a/Cargo.lock b/Cargo.lock
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -432,7 +432,7 @@ name = "geom_bench"
version = "0.0.1"
dependencies = [
"bencher 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
- "lyon 0.15.1",
+ "lyon 0.15.3",
]
[[package]]
diff --git a/Cargo.lock b/Cargo.lock
--- a/Ca... | nical__lyon-520 | 520 | [
"517"
] | 0.15 | nical/lyon | 2019-12-28T12:17:48Z | diff --git a/Cargo.lock b/Cargo.lock
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -882,7 +882,7 @@ dependencies = [
name = "lyon_wasm_test"
version = "0.11.0"
dependencies = [
- "lyon 0.15.1",
+ "lyon 0.15.3",
]
[[package]]
diff --git a/tessellation/src/fill.rs b/tessellation/src/fill.rs
--- a/tessellation/src/fill.rs
+... | The vertex source iterator can visit the same endpoint twice in some cases.
For start events for example, it can happen for the endpoint to be visited once for each of its edges.
| 08cd4c3d8c1ef53fbbb1b702f655e26c6bd5cc03 | [
"fill::fill_vertex_source_03"
] | [
"basic_shapes::issue_366",
"earcut_tests::bad_diagonal",
"earcut_tests::building",
"earcut_tests::degenerate",
"earcut_tests::bad_hole",
"earcut_tests::eberly_3",
"earcut_tests::dude",
"earcut_tests::empty_square",
"earcut_tests::hole_touching_outer",
"earcut_tests::issue_16",
"earcut_tests::iss... | [] | [] | 2021-09-29T20:59:52Z | |
17b0ce8c74a2bb917de85f99428886ca8445ac3b | "diff --git a/Cargo.lock b/Cargo.lock\n--- a/Cargo.lock\n+++ b/Cargo.lock\n@@ -787,7 +787,7 @@ depen(...TRUNCATED) | nical__lyon-519 | 519 | "The above example will work successfully if I omit the last `line_to` and let it close via `close`,(...TRUNCATED) | [
"518"
] | 0.15 | nical/lyon | 2019-12-27T22:28:12Z | "diff --git a/tessellation/src/fill_tests.rs b/tessellation/src/fill_tests.rs\n--- a/tessellation/sr(...TRUNCATED) | "Path hits `is_after(to, self.current_position)` assert\nThe following path hit an assert in the fil(...TRUNCATED) | 08cd4c3d8c1ef53fbbb1b702f655e26c6bd5cc03 | [
"fill_tests::issue_518_2",
"fill_tests::issue_518_1"
] | ["basic_shapes::issue_366","earcut_tests::bad_diagonal","earcut_tests::bad_hole","earcut_tests::eber(...TRUNCATED) | [] | [] | 2019-12-28T00:17:29Z |
fcb9841a744543b993eb1645db35dbda541e9a30 | "diff --git a/strum_macros/src/helpers/type_props.rs b/strum_macros/src/helpers/type_props.rs\n--- a(...TRUNCATED) | Peternator7__strum-288 | 288 | "It's a breaking change, but I agree it's certainly more inline with what would be expected. Happy t(...TRUNCATED) | [
"283"
] | 0.25 | Peternator7/strum | 2023-08-01T22:43:37Z | "diff --git a/strum_tests/tests/enum_discriminants.rs b/strum_tests/tests/enum_discriminants.rs\n---(...TRUNCATED) | "EnumDiscriminants should inherit the repr of the enum they are derived from\nThe below example code(...TRUNCATED) | 597f8e941fb9dec5603f6892df4109b50f615160 | [
"with_explicit_discriminant_value",
"with_repr_uint",
"with_repr_align"
] | ["arbitrary_attributes_pass_through","complicated_test","crate_module_path_test","from_ref_test","fi(...TRUNCATED) | [] | [] | 2024-01-28T01:13:46Z |
025b1b5687d061bc4116f77578fa9fc2b3fc1f26 | "diff --git a/strum_macros/src/macros/enum_count.rs b/strum_macros/src/macros/enum_count.rs\n--- a/s(...TRUNCATED) | Peternator7__strum-268 | 268 | [
"267"
] | 0.24 | Peternator7/strum | 2023-04-26T18:46:25Z | "diff --git a/strum_tests/tests/enum_count.rs b/strum_tests/tests/enum_count.rs\n--- a/strum_tests/t(...TRUNCATED) | "Disabled variant still included in Count\nThe [additional attributes docs](https://docs.rs/strum/la(...TRUNCATED) | 025b1b5687d061bc4116f77578fa9fc2b3fc1f26 | [
"disabled_test"
] | [
"crate_module_path_test",
"simple_test"
] | [] | [] | 2023-06-18T22:54:11Z | |
c6c78a16c59af13a6bf6d35ed859618033a61768 | "diff --git a/Cargo.lock b/Cargo.lock\n--- a/Cargo.lock\n+++ b/Cargo.lock\n@@ -277,6 +277,15 @@ depe(...TRUNCATED) | sigoden__dufs-179 | 179 | [
"172"
] | 0.31 | sigoden/dufs | 2023-02-20T14:35:53Z | "diff --git a/tests/fixtures.rs b/tests/fixtures.rs\n--- a/tests/fixtures.rs\n+++ b/tests/fixtures.r(...TRUNCATED) | "[Feature Request] Edit files\nThe ability to edit and save files on the server. txt, yaml, php etc.(...TRUNCATED) | a61fda6e80d70e5cd7ded9a9b33a9ca373c2b239 | [
"get_file_edit_bin",
"get_file_edit"
] | ["utils::test_glob_key","default_not_exist_dir","allow_delete_no_override","allow_upload_no_override(...TRUNCATED) | [
"bind_ipv4_ipv6::case_2",
"validate_printed_urls::case_2",
"validate_printed_urls::case_1"
] | [] | 2023-03-05T03:12:08Z |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4