Dataset Viewer
Auto-converted to Parquet Duplicate
created_at
stringclasses
8 values
test_patch
stringclasses
8 values
issue_numbers
sequencelengths
1
1
instance_id
stringclasses
8 values
repo
stringclasses
1 value
patch
stringclasses
8 values
base_commit
stringclasses
8 values
problem_statement
stringclasses
8 values
version
stringclasses
6 values
pull_number
int64
245
1.16k
hints_text
stringclasses
8 values
environment_setup_commit
stringclasses
6 values
FAIL_TO_PASS
sequencelengths
1
1
PASS_TO_PASS
sequencelengths
8
234
FAIL_TO_FAIL
sequencelengths
0
0
PASS_TO_FAIL
sequencelengths
0
0
2020-10-02T14:52:22Z
diff --git a/tests/process.rs b/tests/process.rs --- a/tests/process.rs +++ b/tests/process.rs @@ -104,3 +104,25 @@ fn test_process_disk_usage() { p.disk_usage().written_bytes ); } + +#[test] +fn cpu_usage_is_not_nan() { + let mut system = sysinfo::System::new(); + system.refresh_processes(); + + ...
[ "366" ]
GuillaumeGomez__sysinfo-367
GuillaumeGomez/sysinfo
diff --git a/Cargo.toml b/Cargo.toml --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sysinfo" -version = "0.15.2" +version = "0.15.3" authors = ["Guillaume Gomez <guillaume1.gomez@gmail.com>"] description = "Library to get system information such as processes, processors, disks, components and...
f57031a38b0d527958a58605682c52e262f3f017
Process cpu_usage() returns NaN in some cases Hello, I'm using `sysinfo` on version `0.15.2` on Linux mint 19. `cargo -V` outputs `cargo 1.46.0 (149022b1d 2020-07-17)`. `rustc -V` outputs `rustc 1.46.0 (04488afe3 2020-08-24)`. When `system.refresh_process(pid)` is called too often, the cpu_usage() of this process...
0.15
367
This is indeed where the bug is coming from. However, I'm not too aware on how to compare floats and check if they're equal. If you have any directions, it'd be awesome! (You can also send a PR if you want to go faster :wink: ). I appreciate the quick reply :) there are some crates that handle this, like [float_cmp](...
8c2b5a0583404120f1a910d9af32f40fd1dd9d08
[ "cpu_usage_is_not_nan" ]
[ "system::tests::test_refresh_system", "system::tests::check_if_send_and_sync", "test::check_memory_usage", "system::tests::test_get_process", "system::tests::test_refresh_process", "test::check_users", "test_disks", "test_processor", "test_process_refresh", "test_get_cmd_line", "test_process", ...
[]
[]
2020-01-26T22:19:43Z
"diff --git a/README.md b/README.md\n--- a/README.md\n+++ b/README.md\n@@ -15,7 +15,7 @@ Support the(...TRUNCATED)
[ "215" ]
GuillaumeGomez__sysinfo-245
GuillaumeGomez/sysinfo
"diff --git a/Cargo.toml b/Cargo.toml\n--- a/Cargo.toml\n+++ b/Cargo.toml\n@@ -16,17 +16,15 @@ build(...TRUNCATED)
4ae1791d21f84f911ca8a77e3ebc19996b7de808
"Feature Request: support retrieve CPU number and load info\nThanks for providing the awesome librar(...TRUNCATED)
0.10
245
"Ah indeed. I'll check if it's available as well on windows and OSX, otherwise I'll have a bit more (...TRUNCATED)
4ae1791d21f84f911ca8a77e3ebc19996b7de808
[ "system::tests::test_refresh_process" ]
["system::tests::test_refresh_system","system::tests::test_get_process","system::tests::check_if_sen(...TRUNCATED)
[]
[]
2022-01-17T17:26:04Z
"diff --git a/tests/process.rs b/tests/process.rs\n--- a/tests/process.rs\n+++ b/tests/process.rs\n@(...TRUNCATED)
[ "680" ]
GuillaumeGomez__sysinfo-681
GuillaumeGomez/sysinfo
"diff --git a/src/linux/process.rs b/src/linux/process.rs\n--- a/src/linux/process.rs\n+++ b/src/lin(...TRUNCATED)
c1a6c6f2c438d7cf4c947f555df3d6d408ef0fe4
"On Linux `ProcessExt::start_time()` does not return the time since the epoch as documented\nIt seem(...TRUNCATED)
0.22
681
"It's pretty bad in any case. Interested into sending a PR? Otherwise I'll try to fix it as soon as (...TRUNCATED)
c1a6c6f2c438d7cf4c947f555df3d6d408ef0fe4
[ "test_process_times" ]
["common::tests::check_display_impl_process_status","system::tests::check_hostname_has_no_nuls","lin(...TRUNCATED)
[]
[]
2022-01-14T22:08:03Z
"diff --git /dev/null b/tests/code_checkers/docs.rs\nnew file mode 100644\n--- /dev/null\n+++ b/test(...TRUNCATED)
[ "592" ]
GuillaumeGomez__sysinfo-679
GuillaumeGomez/sysinfo
"diff --git a/src/apple/macos/component.rs b/src/apple/macos/component.rs\n--- a/src/apple/macos/com(...TRUNCATED)
b1d66813b7a5f35832302e5ed3d4d85ab94e9464
"Add check to ensure that types are using common md files and not manual doc comments\nFor example `(...TRUNCATED)
0.22
679
c1a6c6f2c438d7cf4c947f555df3d6d408ef0fe4
[ "code_checkers::code_checks" ]
["common::tests::check_display_impl_process_status","system::tests::check_hostname_has_no_nuls","lin(...TRUNCATED)
[]
[]
2021-06-11T08:30:22Z
"diff --git a/src/system.rs b/src/system.rs\n--- a/src/system.rs\n+++ b/src/system.rs\n@@ -89,4 +89,(...TRUNCATED)
[ "508" ]
GuillaumeGomez__sysinfo-509
GuillaumeGomez/sysinfo
"diff --git a/src/linux/system.rs b/src/linux/system.rs\n--- a/src/linux/system.rs\n+++ b/src/linux/(...TRUNCATED)
5c69175f028a5608093d31597b93031d165774c5
"Uptime: To cache, or not to cache?\nI've been looking into FreeBSD support this week (#433), and wh(...TRUNCATED)
0.18
509
"Linux should be updated to look like the others. Gonna send a PR which will also enforce this behav(...TRUNCATED)
3aa83dc410ebe2f6d5063a095104ea6c6394507f
[ "system::tests::check_uptime" ]
["linux::network::test::refresh_networks_list_add_interface","linux::system::test::lsb_release_fallb(...TRUNCATED)
[]
[]
2023-11-29T15:55:10Z
"diff --git a/tests/process.rs b/tests/process.rs\n--- a/tests/process.rs\n+++ b/tests/process.rs\n@(...TRUNCATED)
[ "1141" ]
GuillaumeGomez__sysinfo-1161
GuillaumeGomez/sysinfo
"diff --git a/src/common.rs b/src/common.rs\n--- a/src/common.rs\n+++ b/src/common.rs\n@@ -221,13 +2(...TRUNCATED)
9fb48e65376a6b479e8f134d38c6b38068436804
"Should `exe` be included in default process retrieval (and removed from `ProcessRefreshKind`)?\nIt (...TRUNCATED)
0.29
1,161
Another solution would be to just remove `refresh_process[es]`.
3cc9cc814d21b7977a0e7bb8260a7b64529e6a1b
[ "test_process_refresh" ]
["common::tests::check_display_impl_mac_address","common::tests::check_mac_address_is_unspecified_tr(...TRUNCATED)
[]
[]
2022-12-07T10:58:49Z
"diff --git a/tests/code_checkers/docs.rs b/tests/code_checkers/docs.rs\n--- a/tests/code_checkers/d(...TRUNCATED)
[ "886" ]
GuillaumeGomez__sysinfo-887
GuillaumeGomez/sysinfo
"diff --git a/examples/simple.rs b/examples/simple.rs\n--- a/examples/simple.rs\n+++ b/examples/simp(...TRUNCATED)
abe8e369d0cee1cf85ddc2d864da875c6312d524
"linux: environ is truncated for long environ\n```\r\n$ wc -c /proc/882252/environ\r\n30417 /proc/88(...TRUNCATED)
0.26
887
"suspicious size matching truncation: https://github.com/GuillaumeGomez/sysinfo/blob/master/src/linu(...TRUNCATED)
abe8e369d0cee1cf85ddc2d864da875c6312d524
[ "test_big_environ" ]
["common::tests::check_display_impl_process_status","common::tests::check_uid_gid_from_impls","linux(...TRUNCATED)
[]
[]
2022-09-03T12:49:44Z
"diff --git a/src/lib.rs b/src/lib.rs\n--- a/src/lib.rs\n+++ b/src/lib.rs\n@@ -469,4 +469,19 @@ mod (...TRUNCATED)
[ "833" ]
GuillaumeGomez__sysinfo-835
GuillaumeGomez/sysinfo
"diff --git a/src/linux/process.rs b/src/linux/process.rs\n--- a/src/linux/process.rs\n+++ b/src/lin(...TRUNCATED)
c7046eb4e189afcfb140057caa581d835e1cc51d
"Obtaining linux command line requires ProcessRefreshKind::with_user() to be set\nIt seems retrievin(...TRUNCATED)
0.26
835
"This is intriguing. Thanks for opening this issue! I'll try to take a look in the next days but don(...TRUNCATED)
abe8e369d0cee1cf85ddc2d864da875c6312d524
[ "test::check_cmd_line" ]
["common::tests::check_display_impl_process_status","system::tests::check_hostname_has_no_nuls","lin(...TRUNCATED)
[]
[]
README.md exists but content is empty.
Downloads last month
3