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
unicode-org__icu__3762
unicode-org/icu
3,762
defect
892d4498b9b70f36c42c0b6c87244b9dca89ca62
5ebe8e05149a3998822a4225d5a279d9facb01e1
ICU-23252 Fix int overflow in messagepattern.cpp
#### Checklist - [X] Required: Issue filed: ICU-23252 - [X] Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [X] Required: Each commit message must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [x] Issue accepted (done by Technical Committee a...
diff --git a/icu4c/source/common/messagepattern.cpp b/icu4c/source/common/messagepattern.cpp index 96555ce8ae33..cd2976da164d 100644 --- a/icu4c/source/common/messagepattern.cpp +++ b/icu4c/source/common/messagepattern.cpp @@ -914,8 +914,9 @@ MessagePattern::parseArgNumber(const UnicodeString &s, int32_t start, int32_t...
2
2
1
[{"id": "G0", "claim": "Both new overflow tests pass an unterminated pattern (u\"{90000000000\" with no closing brace), so the expected syntax error could come from the missing brace instead of the overflow; please add the trailing `}` in both tests.", "category": "testing", "verdict": "supported", "priority": "P1", "s...
null
unicode-org__icu__3766
unicode-org/icu
3,766
defect
9407fad66d51a399941556d0fb6161fbdf0a4707
1fc134ce3e45f4983b7eacffa25c23c176add581
ICU-23254 Remove C++ static initialization
We should not be using C++ static initialization. It can lengthen the time to load the ICU library. This can be an issue when frequently launching a program on some platforms, and only a small part of the ICU library is being used. The `-Wglobal-constructors -Wexit-time-destructors` clang options can be used to prev...
diff --git a/.github/workflows/icu4c.yml b/.github/workflows/icu4c.yml index 6a4652966c2e..c268bf11d326 100644 --- a/.github/workflows/icu4c.yml +++ b/.github/workflows/icu4c.yml @@ -373,12 +373,12 @@ jobs: # MacOS with clang macos-clang: - runs-on: macos-14 # Updated in BRS + runs-on: macos-15 # Update...
10
5
0
[{"id": "G0", "claim": "Removing C++ static initialization from the tests and tools is unnecessary and the pull request should keep some testing that application use of static ICU objects works.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The .gitignore...
null
unicode-org__icu__3789
unicode-org/icu
3,789
defect
9f1c57412afbedb180941a3739c5a460beff24f4
59e11698fc2974819f53f895d828716d15f8c84f
ICU-23280 Use uint64_t instead of int64_t to avoid overflow
#### Checklist - [X] Required: Issue filed: ICU-23280 - [X] Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [X] Required: Each commit message must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [x] Issue accepted (done by Technical Committee...
diff --git a/icu4c/source/i18n/collationbuilder.h b/icu4c/source/i18n/collationbuilder.h index a5fd8f427a42..2776fea0a047 100644 --- a/icu4c/source/i18n/collationbuilder.h +++ b/icu4c/source/i18n/collationbuilder.h @@ -180,26 +180,26 @@ class U_I18N_API CollationBuilder : public CollationRuleParser::Sink { * ...
1
1
0
[{"id": "G0", "claim": "The suggestion that re-adds the 'CE byte offsets, to ensure valid CE bytes, and case bits 11' comment above the UINT64_C constant should be applied because the change dropped that comment.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unicode-org__icu__3809
unicode-org/icu
3,809
defect
78ee8f6f9664a09ab34a0f3b954f2c7ba772955c
57feab2f0b45c1236d13630b788402c45c533a33
ICU-23299 wstring woes
… and u16string unhappiness. #### Checklist - [x] Required: Issue filed: ICU-23299 - [x] Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [x] Required: Each commit message must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [x] Issue accepted ...
diff --git a/icu4c/source/common/unicode/unistr.h b/icu4c/source/common/unicode/unistr.h index 94d70a40058b..161b84527a60 100644 --- a/icu4c/source/common/unicode/unistr.h +++ b/icu4c/source/common/unicode/unistr.h @@ -4173,8 +4173,10 @@ operator+ (const UnicodeString &s1, const UnicodeString &s2); * @return UnicodeS...
1
1
0
[{"id": "G0", "claim": "Please add explanatory comments before the new test cases, including ICU ticket references.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unicode-org__icu__3827
unicode-org/icu
3,827
defect
83ad6bf0b6246485f0678a5a83cc43f93ca834f7
b75d6df7f6774cf6ccdbba82be571d4d2cd1d856
ICU-23297 Use lookupMatcher only on variables expanding to a single character
More towards ICU-23297, and as much as can be done without changing clients (rbbi and transliterator). This removes stand-in as a lexical element, and turns lookupMatcher into an (unhinged) implementation detail for variables representing a pre-parsed set. A variable expanding to a single non-syntax character is con...
diff --git a/icu4c/source/common/uniset_props.cpp b/icu4c/source/common/uniset_props.cpp index 198e2451395d..1e58b2ccd287 100644 --- a/icu4c/source/common/uniset_props.cpp +++ b/icu4c/source/common/uniset_props.cpp @@ -227,19 +227,12 @@ UBool UnicodeSet::resemblesPattern(const UnicodeString& pattern, int32_t pos) { ...
3
2
0
[{"id": "G0", "claim": "The added comment and related wording should drop the mention of \"stand-in\", since the stand-in mechanism is being removed elsewhere in this change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Write the ASCII dollar si...
null
unicode-org__icu__3828
unicode-org/icu
3,828
defect
5b361800fd5cf2dbce31b73abeaf5c623bf92e4b
68322f0310ff841fd1582ec4ddf71e3f04b82f81
ICU-22851 A named-element is an element, not a set
Also include it in string-element: https://www.unicode.org/reports/tr61/#string-element. #### Checklist - [x] Required: Issue filed: ICU-22851 - [x] Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [x] Required: Each commit message must be prefixed with a JIRA Issue...
diff --git a/icu4c/source/common/uniset_props.cpp b/icu4c/source/common/uniset_props.cpp index 8c6aaa29049b..2e3d812c9701 100644 --- a/icu4c/source/common/uniset_props.cpp +++ b/icu4c/source/common/uniset_props.cpp @@ -252,6 +252,10 @@ class UnicodeSet::Lexer { return U_SUCCESS(errorCode_) && category_ == ...
4
1
0
[{"id": "G0", "claim": "PR #3604 inadvertently made the pattern [a-{z}] (though not [{a}-z]) well-formed; it should stay ill-formed as in ICU 78 until a proposal makes it well-formed, which this drive-by change restores.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"...
null
unicode-org__icu__3832
unicode-org/icu
3,832
defect
27b8fb1b238c07c3e041c446792fa338798e3f45
8ea0fe1b5ffa4a91dcb27b4792929822f322edec
ICU-23297 Do not use lookupMatcher in UnicodeSet parsing
The transliterator data structures are deeply structured around the idea of mapping a PUA range to pre-parsed sets and other things (bits of regular expressions and whatever else, see calls to generateStandInFor in https://github.com/unicode-org/icu/blob/main/icu4c/source/i18n/rbt_pars.cpp). This pull request does not ...
diff --git a/icu4c/source/common/rbbirb.h b/icu4c/source/common/rbbirb.h index 96d3aa643dd1..0e755fb9e80b 100644 --- a/icu4c/source/common/rbbirb.h +++ b/icu4c/source/common/rbbirb.h @@ -74,6 +74,7 @@ class RBBISymbolTable : public UMemory, public SymbolTable { public: // API inherited from class SymbolTable ...
10
8
0
[{"id": "G0", "claim": "The new SymbolTable method lookupSet should (optionally) be renamed to internalLookupSet, with its implementations and mentions in comments updated, to make its internal status more obvious.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
unicode-org__icu__3854
unicode-org/icu
3,854
defect
a5e74707a0dd57e76b41b964e7e3f049ae5f9d8b
e4d788ba93e4bf0dc405c315ba1900fdd51b653b
ICU-23310 Add a U_LIFETIME_BOUND macro for lifetimebound annotations
#### Checklist - [x] Required: Issue filed: ICU-23310 - [x] Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [x] Required: Each commit message must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [x] Issue accepted (done by Technical Committee aft...
diff --git a/icu4c/source/common/locbased.cpp b/icu4c/source/common/locbased.cpp index b661cc462785..1d0d44214597 100644 --- a/icu4c/source/common/locbased.cpp +++ b/icu4c/source/common/locbased.cpp @@ -15,8 +15,10 @@ U_NAMESPACE_BEGIN -const Locale& LocaleBased::getLocale(const Locale& valid, const Locale& actual...
10
4
4
[{"id": "G0", "claim": "The maybeOnlyCaseSensitive function's subset parameter should also carry the U_LIFETIME_BOUND annotation, and the resulting signature line should be wrapped so it is no longer than 100 characters.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
unicode-org__icu__3858
unicode-org/icu
3,858
defect
ac5f1bb9270997ad55f270b69107b1309f9796f7
b5242bcf16b19a3d27cbce3c6bbddf8dd59a3b7d
ICU-23313 UnicodeSet: binary query negation with NOT EQUAL TO
#### Checklist - [x] Required: Issue filed: ICU-23313 - [x] Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [x] Required: Each commit message must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [x] Issue accepted (done by Technical Committee aft...
diff --git a/icu4c/source/common/uniset_props.cpp b/icu4c/source/common/uniset_props.cpp index 6f9341d97fa4..175a96f7130b 100644 --- a/icu4c/source/common/uniset_props.cpp +++ b/icu4c/source/common/uniset_props.cpp @@ -693,6 +693,7 @@ class UnicodeSet::Lexer { std::optional<int32_t> queryOperatorPosition; ...
1
1
0
[{"id": "G0", "claim": "The new ≠ tests only cover binary properties, so an additional test case for an enumerated property should be added to fully cover the negation logic.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unicode-org__icu__3860
unicode-org/icu
3,860
defect
ac5f1bb9270997ad55f270b69107b1309f9796f7
4a0fba926c0e3741f5dff8bb08b1ec77366b82a8
ICU-23314 Extended \N escapes
(This will not build on MSVC until #3859 is merged.) #### Checklist - [x] Required: Issue filed: ICU-23314 - [x] Required: The PR title must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz" - [x] Required: Each commit message must be prefixed with a JIRA Issue number. Example: "ICU-NNNNN Fix xyz...
diff --git a/icu4c/source/common/uniset_props.cpp b/icu4c/source/common/uniset_props.cpp index 6f9341d97fa4..65809e5ddc56 100644 --- a/icu4c/source/common/uniset_props.cpp +++ b/icu4c/source/common/uniset_props.cpp @@ -30,6 +30,7 @@ #include "unicode/uset.h" #include "unicode/locid.h" #include "unicode/brkiter.h" +#...
4
2
0
[{"id": "G0", "claim": "The added TestToPatternOutput case `{\\N{1202D:CUNEIFORM SIGN AN}\\N{12240:𒉀:CUNEIFORM SIGN NAGA}}` appears to use a literal character that does not match the code point of the named character, so the parser should report an error and the case belongs in TestParseErrors (or the literal should b...
null
unicode-org__icu__3909
unicode-org/icu
3,909
defect
f359a6000fdcf15350986a3079220a402815c263
bb813c53aca1c80efbe89f8c701a02c6b8ecfed9
ICU-23322 Fixed DayPeriodRules::getInstance() to fall back onto "root…
…" for any locales that don't define their own day period rules. Took out now-unnecessary null check in SimpleDateFormat::subFormat(). Added unit test. The locale-fallback code in `DayPeriodRules::getInstance()` bypasses "root", which meant that if you passed it a locale that didn't define day period rules of i...
diff --git a/icu4c/source/i18n/dayperiodrules.cpp b/icu4c/source/i18n/dayperiodrules.cpp index ea5e51eb9d51..8a73962c33ea 100644 --- a/icu4c/source/i18n/dayperiodrules.cpp +++ b/icu4c/source/i18n/dayperiodrules.cpp @@ -360,12 +360,16 @@ const DayPeriodRules *DayPeriodRules::getInstance(const Locale &locale, UErrorCo ...
3
2
1
[{"id": "G0", "claim": "The new Java fallback logic may loop forever if \"root\" is missing from DATA.localesToRuleSetNumMap, because \"root\" is set to \"\" and then back to \"root\"; the loop should break after failing to find rules for \"root\" (as the C++ implementation does), surfacing a NullPointerException in Si...
null
unicode-org__icu__3910
unicode-org/icu
3,910
defect
f359a6000fdcf15350986a3079220a402815c263
78be06511d172145284b6cd28c1a2eda1d7a1ff4
ICU-23265 Fixed parseMeasureUnitOption() so that it correctly handles…
… measurement unit aliases. The idea here is to fix it so that `NumberFormat::forSkeleton()` doesn't return a syntax error when the skeleton includes a measurement unit that has been renamed, such as `concentr-permillion`. The idea is to maintain backward compatibility. #### Checklist - [x] Required: Issue file...
diff --git a/icu4c/source/i18n/number_skeletons.cpp b/icu4c/source/i18n/number_skeletons.cpp index 1d21d805a0e2..57dd2e077cb0 100644 --- a/icu4c/source/i18n/number_skeletons.cpp +++ b/icu4c/source/i18n/number_skeletons.cpp @@ -1076,8 +1076,15 @@ void blueprint_helpers::parseMeasureUnitOption(const StringSegment& segmen...
2
2
0
[{"id": "G0", "claim": "sffc asks whether the author considered changing the impl of MeasureUnit::validateAndGet, i.e. putting the alias-handling logic into validateAndGet instead of into parseMeasureUnitOption.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
unicode-org__icu__3918
unicode-org/icu
3,918
defect
1659052025f132eabc9b088ffa5dd10f733993c9
4619a9a3c4bc19d18a7f1bd780ab5056e49b9bff
ICU-23350 Support name aliases of type correction in UnicodeSet \N
Currently, ICU4C rejects the UnicodeSet `[\N{PRESENTATION FORM FOR VERTICAL RIGHT WHITE LENTICULAR BRACKET}]`, and accepts only the misspelling `[\N{PRESENTATION FORM FOR VERTICAL RIGHT WHITE LENTICULAR BRAKCET}]`. With this change, both expressions are valid and equivalent to `[︘]`. Name aliases of other types do n...
diff --git a/icu4c/source/common/uniset_props.cpp b/icu4c/source/common/uniset_props.cpp index 71092b82e0f3..bcad9015c3c4 100644 --- a/icu4c/source/common/uniset_props.cpp +++ b/icu4c/source/common/uniset_props.cpp @@ -1456,14 +1456,17 @@ UnicodeSet::applyPropertyAlias(const UnicodeString& prop, //...
2
1
0
[{"id": "G0", "claim": "Trying U_CHAR_NAME_ALIAS after U_EXTENDED_CHAR_NAME in applyPropertyAlias makes \\N name lookup even slower, and an API that considers all aliases (or a selected set of them) should be added instead, in a different ticket and PR.", "category": "performance", "verdict": "uncertain", "priority": "...
null
unicorn-engine__unicorn__1007
unicorn-engine/unicorn
1,007
defect
7a980e875c07d6f4729db9fd2f6b2aac9c5e13dc
ea3b96ba81e2f70bc336cff13093e77838631bfc
Fuzz builds ok
Following #1000 There was a problem with 4 targets : - fuzz_emu_sparc_32 : returned `UC_ERR_MODE` ie Invalid/unsupported mode So I changed tests/regress/memleak_sparc.c as well - fuzz_emu_m68k_be : it was aborting too soon So I used `FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION` macro to not call `cpu_abort` when w...
diff --git a/qemu/target-m68k/translate.c b/qemu/target-m68k/translate.c index 30f58d4b91..6c952a9b5c 100644 --- a/qemu/target-m68k/translate.c +++ b/qemu/target-m68k/translate.c @@ -891,7 +891,9 @@ DISAS_INSN(undef) M68kCPU *cpu = m68k_env_get_cpu(env); gen_exception(s, s->pc - 2, EXCP_UNSUPPORTED); +#ifnd...
1
1
0
[{"id": "G0", "claim": "Rather than guarding the cpu_abort call behind a fuzzing-build ifdef, fix the root cause so the m68k undef handler returns with an error code, since the library should not abort.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}]
null
unicorn-engine__unicorn__1584
unicorn-engine/unicorn
1,584
defect
e3d0a33ab83c9dd65134da0c0a10a6a91173a08c
3fcfdcedd83284ce71d751fcec8b8d422a00ee87
fix rust bindings build on windows
Some things I noticed while trying to get unicorn-engine to work on windows/rust: First I just tried ``` unicorn-engine = "2.0.0-rc6" ``` and I got ``` --- stderr thread 'main' panicked at 'Fail to create build directory on Windows.: Error { kind: NotFound, message: "program not found" }' ``` This (IMO) ...
diff --git a/bindings/rust/Cargo.toml b/bindings/rust/Cargo.toml index 910db78997..fd5843bf52 100644 --- a/bindings/rust/Cargo.toml +++ b/bindings/rust/Cargo.toml @@ -24,14 +24,11 @@ bitflags = "1.3" libc = "0.2" [build-dependencies] -reqwest = { optional = true, version = "0.11", features = ["blocking"] } -flate2 ...
7
4
2
[{"id": "G0", "claim": "The build should not hard-require the Ninja generator (S1 panics with \"missing ninja\" and unconditionally selects Ninja), since Ninja may not be available (not shipped with MSVC, uncertain on other platforms); it should fall back to cmake's default generator when Ninja is not found.", "categor...
null
unicorn-engine__unicorn__1963
unicorn-engine/unicorn
1,963
defect
78580ca8f91027cafc741f65c78c7650103b6683
de2ae81a44973398c75ca5a7e4934d0c4f0b5979
Optimize memory handling
By using the memory snapshots with real examples we found some bottlenecks. Therefor I have implemented some optimizations. We found that the flatview creation is quite expensive (around 1/4 of all runtime including emulation) when you have a lot of memory regions. By permanently creating new regions with CoW we hav...
diff --git a/include/qemu.h b/include/qemu.h index 8705a1a6db..b6fedfacfb 100644 --- a/include/qemu.h +++ b/include/qemu.h @@ -43,6 +43,7 @@ typedef struct { typedef struct RAMList { bool freed; RAMBlock *mru_block; + RAMBlock *last_block; QLIST_HEAD(, RAMBlock) blocks; } RAMList; diff --git a/inc...
5
3
1
[{"id": "G0", "claim": "With this change (and the early snapshot_level change) the memory context holds pointers, so it is no longer safe to keep as a file or restore into another uc_engine instance, and the reviewer asks for documentation of uc_context_save/restore and UC_CTL_CONTEXT_MEMORY in the header.", "category"...
null
unicorn-engine__unicorn__2111
unicorn-engine/unicorn
2,111
defect
8d52ece48bbb521060a5234ba1326d601be78315
de24b4d82be09fcfdeb279e10beaf43f83c5d863
Support MIPS64 - write correct PC register width on uc_emu_start
This PR allows MIPS64 to work - previously MIPS64 would crash immediately after starting the emulator - see #2109. The current `uc_emu_start` code makes the assumptions that MIPS has a 32-bit program counter. Adding a check to see if it's 64-bit and writing the correct value to PC makes MIPS64 run. https://github...
diff --git a/uc.c b/uc.c index e1dcd4d549..e8015fba6e 100644 --- a/uc.c +++ b/uc.c @@ -1021,7 +1021,11 @@ uc_err uc_emu_start(uc_engine *uc, uint64_t begin, uint64_t until, #ifdef UNICORN_HAS_MIPS case UC_ARCH_MIPS: // TODO: MIPS32/MIPS64/BIGENDIAN etc - uc_reg_write(uc, UC_MIPS_REG_PC, &begin_pc3...
3
3
2
[{"id": "G0", "claim": "The MIPS branch of uc_emu_start should test UC_MODE_MIPS64 instead of UC_MODE_64, since UC_MODE_64 is only meant for x86 and merely happens to share its value.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "MIPS64 virtual TLB...
null
unicorn-engine__unicorn__2121
unicorn-engine/unicorn
2,121
defect
bc73cb232d0122b28dd49d96e74661a76ca05d57
208eef50336dfe1f94a32458881c1d795f2453f7
add uc_mem_read_virtual
New api to read from a vaddr. When using the MMU it's useful to direct read from virtual addresses. Needs some tests. I'm not sure about a write_virtual() function. Could also be useful, but is a lot more complex to implement, because of snapshots. A virtual to physical translate function would be also nice, b...
diff --git a/bindings/rust/src/ffi.rs b/bindings/rust/src/ffi.rs index 7f7a205bf9..0067b1c7e1 100644 --- a/bindings/rust/src/ffi.rs +++ b/bindings/rust/src/ffi.rs @@ -3,7 +3,7 @@ use crate::{Unicorn, UnicornInner}; -use super::unicorn_const::{uc_error, Arch, HookType, MemRegion, MemType, Mode, Query, TlbEntry}; +u...
6
4
0
[{"id": "G0", "claim": "The reviewer asks why uc_mem_write_virtual does not work with memory snapshots and suggests it keep the same behavior as uc_mem_write (COW when snapshots are enabled).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The prot parame...
null
unicorn-engine__unicorn__2155
unicorn-engine/unicorn
2,155
defect
e376f98224536ca3c9ff0e85a01e276c9f2a7e44
bdcc0b14e02ce5a11f7223d984ea63fa28fb615c
feat(arm): add an `ESR` register
- Closes #2153 ### Problem When emulating ARM code, one cannot extract the syndrome of a given interrupt (for calls such as `SVC`, `HVC`, etc.). ARMv7 doesn't have an ESR (exception syndrome register) like AArch64 does, but it should be possible for consumers to get this information. ### Solution I've added...
diff --git a/bindings/dotnet/UnicornEngine/Const/Arm.fs b/bindings/dotnet/UnicornEngine/Const/Arm.fs index 8a275261f0..36c9c32d1b 100644 --- a/bindings/dotnet/UnicornEngine/Const/Arm.fs +++ b/bindings/dotnet/UnicornEngine/Const/Arm.fs @@ -186,8 +186,9 @@ module Arm = let UC_ARM_REG_XPSR_NZCVQ = 136 let UC_ARM...
2
2
1
[{"id": "G0", "claim": "The new enum must be appended at the end rather than inserted before UC_ARM_REG_CP_REG, otherwise the values of existing enums like UC_ARM_REG_CP_REG change.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a small comment ...
null
unicorn-engine__unicorn__60
unicorn-engine/unicorn
60
defect
ef1d70a5142e97e62398f9a6be8989a32e5a5ffb
a4b87ed84048708b74e8c907f7af678e4d3689aa
Add ability to mark memory area read only. Add new API uc_mem_map_ex t…
Add ability to mark memory area read only. Add new API uc_mem_map_ex to allow permissions to be passed. Change MemoryBlock to track created MemoryRegions. Add regress/ro_mem_test.c This also solves the memory leak issue on uc->ram because now all MemoryRegion allocations are tracked in the uc->mapped_blocks array.
diff --git a/include/uc_priv.h b/include/uc_priv.h index 3fde4862ad..686ab9e5a7 100755 --- a/include/uc_priv.h +++ b/include/uc_priv.h @@ -15,12 +15,6 @@ QTAILQ_HEAD(CPUTailQ, CPUState); -typedef struct MemoryBlock { - uint64_t begin; //inclusive - uint64_t end; //exclusive - uint32_t perms; -} MemoryBlo...
17
13
6
[{"id": "G0", "claim": "ro_mem_test.c never sets up a stack for the emulated code, yet the test still appears to work.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The main() function of ro_mem_test.c should return an int value; currently it uses bare...
null
unicorn-engine__unicorn__607
unicorn-engine/unicorn
607
defect
236b6e9085f98ecaf45f7116e5e206fd4192ac29
b1f03a02f24832ad00d06516603a24c4503cf615
support xmm registers
Support reading and writing to and from the x86 xmm registers. Only implements the python bindings.
diff --git a/bindings/python/sample_x86.py b/bindings/python/sample_x86.py index 7010327f96..4175989808 100755 --- a/bindings/python/sample_x86.py +++ b/bindings/python/sample_x86.py @@ -6,7 +6,7 @@ from unicorn.x86_const import * -X86_CODE32 = b"\x41\x4a" # INC ecx; DEC edx +X86_CODE32 = b"\x41\x4a\x66\x0f\xef\xc...
3
2
0
[{"id": "G0", "claim": "The PR should include sample code for C and Python demonstrating the new xmm register feature.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unit test build system is broken: tests/unit/Makefile links in the wrong orde...
null
unidoc__unioffice__291
unidoc/unioffice
291
defect
1783b652deffad7ead9aa886df5b907e1d92965f
0efd940a8371d94cb693b624eb5ec9fc056e6f49
Fix runtime panic when making a presentation from a template
I was trying to make a presentation from a template using v1.1.0 of unioffice, but I ran into a runtime panic. The issue was quite simple, the code was just trying to access an element that no longer existed. I've extracted the problematic code into its own function, wrote a failing test to capture the runtime panic...
diff --git a/presentation/presentation.go b/presentation/presentation.go index 55c4a1e3dd..92060ce91c 100644 --- a/presentation/presentation.go +++ b/presentation/presentation.go @@ -319,14 +319,7 @@ func (p *Presentation) AddSlideWithLayout(l SlideLayout) (Slide, error) { // clear layout name on the slide slide.CS...
1
1
1
[{"id": "G0", "claim": "The refactored removeChoicesWithPics uses `if` where the original code had a repeated-removal loop and rewrites `chc` each iteration so choices get skipped, which the reviewer says certainly causes the panic again in this case and changes the intended logic, so it should not be written this way....
null
unidoc__unioffice__353
unidoc/unioffice
353
defect
055ebf0f4c1f14b832641a03584b3e274a9f8c5e
349b7bf9962f430732174e8896ca20ce68f1b922
Excel functions part 4
Duration function was not planned in the list, but it is needed for calculating Mduration, so it is included. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidoc/unioffice/353) <!-- Revie...
diff --git a/internal/mergesort/mergesort.go b/internal/mergesort/mergesort.go new file mode 100644 index 0000000000..9c44707a9e --- /dev/null +++ b/internal/mergesort/mergesort.go @@ -0,0 +1,45 @@ +// Package mergesort provides an implementation for merge sort sorting algorithm +package mergesort + +// MergeSort recei...
1
1
0
[{"id": "G0", "claim": "The commented-out function registration lines (e.g. //RegisterFunctionComplex(\"REPLACEB\", Replaceb)) added or left in fntext.go should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unidoc__unioffice__363
unidoc/unioffice
363
defect
fbcea8d7d6b7efdebbdc77d59acdaec0083410bb
d04eda67721ef69fe0e7f2bad1b4cc12d24fb33f
Test cases for functions for https://github.com/unidoc/unioffice/issues/336
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidoc/unioffice/363) <!-- Reviewable:end -->
diff --git a/spreadsheet/formula/fnfinance.go b/spreadsheet/formula/fnfinance.go index b9c4173520..5f3d4c4c7c 100644 --- a/spreadsheet/formula/fnfinance.go +++ b/spreadsheet/formula/fnfinance.go @@ -384,6 +384,9 @@ func Accrintm(args []Result) Result { if errResult.Type == ResultTypeError { return errResult } + ...
2
1
0
[{"id": "G0", "claim": "The else branch after a return in Substitute is unnecessary and skipping it would be a bit cleaner.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test functions (starting with TestMax) should not open with an ext...
null
unidoc__unioffice__387
unidoc/unioffice
387
defect
f2ae75a9015dc1c4d362be234771e1866ec04a4c
0cf21756ec05897913afd66b2f230769fa21156d
Issue #385 fix
Issue #385 fix <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidoc/unioffice/387) <!-- Reviewable:end -->
diff --git a/document/document.go b/document/document.go index 8a735d4140..904dcad2b5 100644 --- a/document/document.go +++ b/document/document.go @@ -955,11 +955,13 @@ func (d *Document) insertParagraph(relativeTo Paragraph, before bool) Paragraph return d.AddParagraph() } + relX := relativeTo.X() + for _, bl...
1
1
1
[{"id": "G0", "claim": "A simple test case should be added that checks the new insert-paragraph-inside-table behaviour is done properly and avoids regression.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unidoc__unipdf__136
unidoc/unipdf
136
defect
d2e7eda95f9c191872e0e8e5cc51ec1f1b1bf55c
c698ec6f26497de5cb4f3522206c039f2915105b
Creator optimize drawing blocks
Addresses #18 Benchmarks on my computer: development branch: ``` BenchmarkParagraphAdding: 2000 711058 ns/op 300 4328161 ns/op 20 90405041 ns/op ``` creator-draw optimize branch: ``` BenchmarkParagraphAdding: 2000 621775 ns/op 2000 792756 ns/op 500 2860231 ns/op ``` <!-- Re...
diff --git a/creator/creator.go b/creator/creator.go index 150b0636f..c5bb1547d 100644 --- a/creator/creator.go +++ b/creator/creator.go @@ -20,6 +20,8 @@ import ( // content onto imported PDF pages, etc. type Creator struct { pages []*model.PdfPage + pageBlocks map[*model.PdfPage]*Block + activePage *model....
2
2
1
[{"id": "G0", "claim": "The reviewer asks whether the block and resource merging done in Draw (calling mergeBlocks and then mergeResources on the page block) should instead be done inside the mergeBlocks function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
unidoc__unipdf__149
unidoc/unipdf
149
defect
719c0f9c9e092e5fad3836c5d187e7414ed51a34
56e45764a0d0d1adc249e78384b6c838c03337ec
Image memory optimizations
Addresses #116 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidoc/unipdf/149) <!-- Reviewable:end -->
diff --git a/model/colorspace.go b/model/colorspace.go index 64bc3a7fa..978bc5fa4 100644 --- a/model/colorspace.go +++ b/model/colorspace.go @@ -306,24 +306,27 @@ func (cs *PdfColorspaceDeviceGray) ColorToRGB(color PdfColor) (PdfColor, error) func (cs *PdfColorspaceDeviceGray) ImageToRGB(img Image) (Image, error) { ...
4
3
1
[{"id": "G0", "claim": "There may still be a chance to optimize SetSamples further, for example when 1-bit-per-sample data has been converted to uint32s.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Add test cases to cover the different pathways...
null
unidoc__unipdf__153
unidoc/unipdf
153
defect
febf633172ddd5736fdd01873e3b705fd86cfaa8
15b2f16202a77f0797d4abaadc8d6a62e2f74453
Make PageText.sortPosition() sort order deterministic.
This is a fix for https://github.com/unidoc/unipdf/issues/152 The sort order is now deterministic and the ordering is explained in the source code. A test case shows how the sorting works. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddl...
diff --git a/extractor/text.go b/extractor/text.go index 7d66a6368..e6a6fc922 100644 --- a/extractor/text.go +++ b/extractor/text.go @@ -802,6 +802,7 @@ type textMark struct { trm transform.Matrix // The current text rendering matrix (TRM above). end transform.Point // The end of character ...
3
2
0
[{"id": "G0", "claim": "The yOrder computation jumps in arbitrary multiples of 1000, and the reviewer asks why that magic constant is there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Given that the SliceStable function is a 'less' function,...
null
unidoc__unipdf__181
unidoc/unipdf
181
defect
b7dc67705d66afc240e26e7da7d09290ec659d27
826eb2a669ace6603f3c12ee69743998354683ac
Improve text chunk component
- Add Wrap method for TextChunk - Add Fit method for TextChunk - Refactor the paragraph component to use the newly added Wrap method - Add TextChunk test file Addresses #178 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewa...
diff --git a/creator/paragraph.go b/creator/paragraph.go index 338f5701e..1d308d5a0 100644 --- a/creator/paragraph.go +++ b/creator/paragraph.go @@ -260,81 +260,20 @@ func (p *Paragraph) wrapText() error { return nil } - var line []rune - lineWidth := 0.0 - p.textLines = nil + chunk := NewTextChunk(p.text, TextS...
2
1
0
[{"id": "G0", "claim": "The Wrap/Fit height calculation may need to account for line height and cap height rather than using the font size alone.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Fit method's doc comment should note that it assumes...
null
unidoc__unipdf__229
unidoc/unipdf
229
defect
3e66280dbf1fa6dbe355f9333560c729692dc84a
dbd9e96abc5b399da84ce06836c31c6a81dc993d
Improve outline extraction
Addresses #227 **Usage** Extract outline. ```go outline, err := reader.GetOutlines() if err != nil { log.Fatal(err) } ``` JSON marshal ```go buf, err := json.Marshal(outline) if err != nil { log.Fatal(err) } ``` JSON unmarshal ```go outline = model.NewOutline() if err := json.Unmarshal(...
diff --git a/model/outline.go b/model/outline.go index 0eb7ed374..b813ec09e 100644 --- a/model/outline.go +++ b/model/outline.go @@ -6,15 +6,18 @@ package model import ( + "errors" + + "github.com/unidoc/unipdf/v3/common" "github.com/unidoc/unipdf/v3/core" ) // OutlineDest represents the destination of an out...
3
3
1
[{"id": "G0", "claim": "The outline constructor should not live as NewOutlineFromReaderOutline but instead be exposed as a simple consistent getter like pdfReader.GetOutlines(), and the existing GetOutlinesFlattened method should get a comment recommending GetOutlines.", "category": "design", "verdict": "supported", "p...
null
unidoc__unipdf__259
unidoc/unipdf
259
defect
9de5fe644e2870ed1da7edc65314e403100246bf
71397043e1a29901dad63d006a1737d90f9a59da
Fixed PdfColorspaceSpecialIndexed.ImageToRGB()
Fixes https://github.com/unidoc/unipdf/issues/258 which has a PDF file that shows the problem. I fixed the indexing. This fix will fail for indexes over colorspaces for which BitsPerComponent ≠8 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="ab...
diff --git a/internal/e2etest/extract_images_test.go b/internal/e2etest/extract_images_test.go index f66310170..f8c8de4c2 100644 --- a/internal/e2etest/extract_images_test.go +++ b/internal/e2etest/extract_images_test.go @@ -16,6 +16,8 @@ import ( "testing" "github.com/stretchr/testify/require" + "github.com/stre...
3
3
0
[{"id": "G0", "claim": "Please remove the commented-out code on the BitsPerComponent line (`// cs.Base.BitsPerComponent`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a TODO comment referencing unipdf#260 noting that support for base colo...
null
unidoc__unipdf__297
unidoc/unipdf
297
defect
ce8472cddd69be632288b6dc2151f8315eef5f6a
4071f72ede710d97faddb4ee7abdb3349bd182df
Optimizer fix for the CCITTFax Encoder. ISS #243. Fixes JBIG2 i386 architecture compile issue.
This pull request fixes issue #243. Optimizer were panicing as the CCITTFax Encoder Columns were not updated with the UpdateParams method. All DecodeParams updated only Width and Height whereas CCITTFax required 'Columns' and 'Rows' to be set. Currently `*model.XObjImage.getParamsDict()` as well as `*model.Image Ge...
diff --git a/model/image.go b/model/image.go index ddc61b741..162de7894 100644 --- a/model/image.go +++ b/model/image.go @@ -98,7 +98,9 @@ func (img *Image) ConvertToBinary() error { func (img *Image) GetParamsDict() *core.PdfObjectDictionary { params := core.MakeDict() params.Set("Width", core.MakeInteger(img.Wid...
1
1
0
[{"id": "G0", "claim": "The Width/Height-to-Columns/Rows mapping should be handled in the CCITTFaxEncoder's UpdateParams method instead of adding Columns/Rows keys in the GetParamsDict methods of Image and XObjectImage.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unidoc__unipdf__301
unidoc/unipdf
301
defect
971a00f1eda292f1401813cf774ec163a52cbd65
eb215083adc2ea0ec8b6f5dbeceba9e86c814b7a
Add timestamp signature handler
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidoc/unipdf/301) <!-- Reviewable:end -->
diff --git a/go.mod b/go.mod index fd0be030b..b1888f6fa 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,9 @@ require ( github.com/adrg/sysfont v0.1.0 github.com/boombuler/barcode v1.0.0 github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 - github.com/gunnsth/pkcs7 v0.0.0-20181213175627-3cffc6fbfe83 github...
12
11
4
[{"id": "G0", "claim": "The pull request should add documentation and a test case showing how to combine signing and timestamping with the Appender (sign first, then timestamp the resulting document).", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The d...
null
unidoc__unipdf__325
unidoc/unipdf
325
defect
bc5c0d95d347c34881c52563ebc706379f4d5618
5f824dfc64adcd38d126f59ff3103173ac770e1b
Add low level PageLabels support
Related to https://github.com/unidoc/unipdf/issues/323. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidoc/unipdf/325) <!-- Reviewable:end -->
diff --git a/creator/creator.go b/creator/creator.go index 7903c39eb..cb15bd439 100644 --- a/creator/creator.go +++ b/creator/creator.go @@ -13,6 +13,7 @@ import ( "strconv" "github.com/unidoc/unipdf/v3/common" + "github.com/unidoc/unipdf/v3/core" "github.com/unidoc/unipdf/v3/model" ) @@ -62,6 +63,10 @@ type...
4
2
2
[{"id": "G0", "claim": "The new page labels functionality should come with a test case added to the pull request.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "GetPageLabels might be sufficient implemented as a simple core.GetDict() call, since the Pag...
null
unidoc__unipdf__346
unidoc/unipdf
346
defect
aef6e5e9768f140d2df16f9dfd25da7d1e5e1fbb
c5f8c02da7da9f488e35ffbf1d7f51908330080b
Subsetting fixes
- Updates unitype to newest version, where subsetting has been improved - Better handling of composite glyphs etc, where previously glyphs were sometimes missing after subsetting. - Fixes some files provided by customers that were missing glyphs. <!-- Reviewable:start --> --- This change is [<img src="https://review...
diff --git a/creator/creator_test.go b/creator/creator_test.go index 652794a29..588c40684 100644 --- a/creator/creator_test.go +++ b/creator/creator_test.go @@ -33,6 +33,7 @@ import ( "github.com/unidoc/unipdf/v3/common" "github.com/unidoc/unipdf/v3/contentstream/draw" "github.com/unidoc/unipdf/v3/core" + "github...
1
1
0
[{"id": "G0", "claim": "The NOTE comments added to the SubsetRegistered methods contain a typo: `has been registered` should read `have been registered`, in both internal/textencoding/truetype.go and model/font.go.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
unidoc__unipdf__348
unidoc/unipdf
348
defect
ad2a1e9c9d5a5f1d4244021e9d700cdb6a1d35d0
b92f6806da4c513074936c5a1cf30bac6484e331
Fix table right-aligned content
Addresses https://github.com/unidoc/unipdf/issues/347. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidoc/unipdf/348) <!-- Reviewable:end -->
diff --git a/creator/table.go b/creator/table.go index 0ab2d15a9..c3d3ef00f 100644 --- a/creator/table.go +++ b/creator/table.go @@ -569,7 +569,7 @@ func (table *Table) GeneratePageBlocks(ctx DrawContext) ([]*Block, DrawContext, case CellHorizontalAlignmentRight: if w > cw { ctx.X = ctx.X + w - cw - cell...
1
1
0
[{"id": "G0", "claim": "The imports in creator/table_test.go should be separated into groups with a blank line between them (fix import style).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
unidoc__unipdf__351
unidoc/unipdf
351
defect
6246921ab3b1a2aaf5ef8027c146bb24fc42ce64
b90e5d069a46b1bf41ab9f9201b6d543c3896102
Add reader AcroForm repair functionality
- Add reader AcroForm repair method - Add method for retrieving widget annotation form field <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidoc/unipdf/351) <!-- Reviewable:end -->
diff --git a/model/annotations.go b/model/annotations.go index 4a0fd6bb6..49450818b 100644 --- a/model/annotations.go +++ b/model/annotations.go @@ -343,6 +343,12 @@ type PdfAnnotationWidget struct { processing bool // Used in ToPdfObject serialization to avoid infinite loops for merged-in annots. } +// Field retu...
2
1
0
[{"id": "G0", "claim": "RepairAcroForm should take a repair-options parameter so optional settings (e.g. field selection, partial page list) can be added in the future.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "The widget Field method could parse th...
null
unidoc__unipdf__377
unidoc/unipdf
377
defect
ae20c30ae4bb863513dbec46546fc08fa33641e9
ce7407739058194cec9d196150cd6e0deb05eebf
Skip referenced pages which are not present in the catalog
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/unidoc/unipdf/377) <!-- Reviewable:end -->
diff --git a/model/writer.go b/model/writer.go index 1ab1c3096..847297771 100644 --- a/model/writer.go +++ b/model/writer.go @@ -133,6 +133,7 @@ func SetPdfTitle(title string) { type PdfWriter struct { root *core.PdfIndirectObject pages *core.PdfIndirectObject + pagesMap map[core.PdfObject]struct{}...
1
1
1
[{"id": "G0", "claim": "The pull request should include a simple test case covering the new behaviour of skipping referenced pages that are not present in the catalog.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unifyai__ivy__23104
unifyai/ivy
23,104
defect
babaf983bc7ac4413a4bca586b83b1a9ff1808e0
4680bdd7d3b5c657298e057654e6f729d87d8089
feat: gradient numpy frontend
<!-- This template will help you to have a meaningful PR, please follow it and do not leave it blank. --> # added gradient function to numpy frontend <!-- If there is no related issue, please add a short description about your PR. --> ## out of 5 test cases, 4 pass successfully. paddle backend function exp...
diff --git a/ivy/functional/frontends/numpy/mathematical_functions/miscellaneous.py b/ivy/functional/frontends/numpy/mathematical_functions/miscellaneous.py index ea196a1c253e2..68bd52c1ce3b0 100644 --- a/ivy/functional/frontends/numpy/mathematical_functions/miscellaneous.py +++ b/ivy/functional/frontends/numpy/mathema...
4
2
2
[{"id": "G0", "claim": "The test should take available dtypes from a strategy that returns all valid dtypes instead of a hardcoded tuple, and the gradient function should then declare its supported dtypes with one of the dtype decorators.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "intr...
null
unifyai__ivy__24153
unifyai/ivy
24,153
defect
017d0380aa0546fc20f826460fcc50bd6f0e17fd
0ed2ea4fd9e4e7c7d4ef54d8e667c4d510793fff
feat: one_hot function of paddlepaddle
# PR Description feat: one_hot function of paddlepaddle ## Related Issue Close #24151 ##Checklist * [x] Did you add a function? * [x] Did you add the tests? * [x] Did you run your tests and are your tests passing? * [x] Did pre-commit not fail on any check? * [x] Did you follow the steps we provi...
diff --git a/ivy/functional/frontends/paddle/nn/functional/vision.py b/ivy/functional/frontends/paddle/nn/functional/vision.py index 4e98183b4ce4d..5dd1c5804d653 100644 --- a/ivy/functional/frontends/paddle/nn/functional/vision.py +++ b/ivy/functional/frontends/paddle/nn/functional/vision.py @@ -114,6 +114,19 @@ def ch...
1
1
1
[{"id": "G0", "claim": "The arguments of the new frontend one_hot function don't match the original PaddlePaddle function's and should be made the same, with the test updated accordingly.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unifyai__ivy__26937
unifyai/ivy
26,937
defect
0d9e769776a48cbed15919fef7c123d824b547ff
d3b0ef9e3c85ab95320118c4e548283ac6b8597f
fix: Remove `re-imports` present in few files.
# PR Description I wrote an automated script to find all the duplicate imports present in files. I found that in few files the same import is imported more than once, They can be removed. Also, in the following file the same import is aliased with 2 names although its not a problem its better to replace it with one n...
diff --git a/ivy/engines/XLA/__init__.py b/ivy/engines/XLA/__init__.py index 45a9584091f50..f5b736bcb5bec 100644 --- a/ivy/engines/XLA/__init__.py +++ b/ivy/engines/XLA/__init__.py @@ -7,7 +7,6 @@ # from .rust_api.python_frontend.sequential_handler import * from .rust_api.python_frontend.general import * -from .rus...
3
3
2
[{"id": "G0", "claim": "The removal of the `from .rust_api.python_frontend.manipulation import *` line from ivy/engines/XLA/__init__.py was a mistake, as that import was not a duplicate and should not have been removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
unifyai__ivy__26991
unifyai/ivy
26,991
defect
e5c9254d2323bd2b3fedacd904f5e77a434fd6e7
331f76d2d0ef1349bc902c27f2d413129f85fc55
feat: add erfc to torch frontend
<!-- This template will help you to have a meaningful PR, please follow it and do not leave it blank. --> # PR Description <!-- If there is no related issue, please add a short description about your PR. --> added erfc and erfc_ function to torch frontend ## Related Issue <!-- Please use this format to ...
diff --git a/ivy/functional/frontends/torch/tensor.py b/ivy/functional/frontends/torch/tensor.py index cde560735fd06..6932909cf4369 100644 --- a/ivy/functional/frontends/torch/tensor.py +++ b/ivy/functional/frontends/torch/tensor.py @@ -11,6 +11,7 @@ ) from ivy.func_wrapper import with_unsupported_dtypes from ivy.fu...
3
1
0
[{"id": "G0", "claim": "The erfc and erfc_ additions should be split into separate pull requests, since they are different items on the todo list, with review requested again afterwards.", "category": "process", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request ti...
null
unifyai__ivy__27134
unifyai/ivy
27,134
defect
41052c0798427877d078294145015ce6710c569f
0ab51800513133e558abac8b80440a7fdd3dda99
I added structural similarity index (SSIM) loss.
Hi Ivy, I added a loss function for working on the structural similarity index (SSIM) loss calculation. It's a most popular loss in computer vision tasks. And that is what my code looks like: ![Screenshot from 2023-10-26 21-06-18](https://github.com/unifyai/ivy/assets/93595990/dabd5d62-5603-4328-a3a9-2d5477770e94) ...
diff --git a/ivy/functional/ivy/losses.py b/ivy/functional/ivy/losses.py index 64201cf60f566..45b996b382e62 100644 --- a/ivy/functional/ivy/losses.py +++ b/ivy/functional/ivy/losses.py @@ -379,3 +379,59 @@ def sparse_cross_entropy( return ivy.cross_entropy( true, pred, axis=axis, epsilon=epsilon, reductio...
1
1
1
[{"id": "G0", "claim": "The new ssim_loss function should have an accompanying test, since any new function should have one.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unifyai__ivy__27166
unifyai/ivy
27,166
defect
ea0eaad440ff7f953c2fb4c621eccfe4a6fb2ecd
ebcaceb7dc34835f4f72f09b62c01df6a59aa3c6
feat(torch_frontend): added fill_diagonal_ method
Closes #27161 ## Checklist - [ ] Did you add a function? - [ ] Did you add the tests? - [ ] Did you run your tests and are your tests passing? - [ ] Did pre-commit not fail on any check? - [ ] Did you follow the steps we provided?
diff --git a/ivy/functional/frontends/torch/tensor.py b/ivy/functional/frontends/torch/tensor.py index c48e8af04489b..77bbcb16e71d5 100644 --- a/ivy/functional/frontends/torch/tensor.py +++ b/ivy/functional/frontends/torch/tensor.py @@ -1,6 +1,7 @@ # global from typing import Iterable import math +from ivy.functiona...
2
2
0
[{"id": "G0", "claim": "The pull request currently throws an AttributeError (module 'ivy.functional.backends.numpy' has no attribute 'bool') during test import, and the reviewer asks the author to resolve it.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "...
null
unifyai__ivy__27207
unifyai/ivy
27,207
defect
41052c0798427877d078294145015ce6710c569f
cb4ee73829c596646dd422b89965e5751d4f0c1c
Added Wasserstein Loss, the Most Popular Loss Function for GANs
Introducing the Wasserstein loss function - the crown jewel of GANs! This state-of-the-art loss function helps both the generator and discriminator reach new heights of performance. The results? Stunningly realistic generated images that even the most discerning eye would mistake for the real thing. It's like magic, bu...
diff --git a/ivy/functional/ivy/losses.py b/ivy/functional/ivy/losses.py index 64201cf60f566..27a55ec4a5804 100644 --- a/ivy/functional/ivy/losses.py +++ b/ivy/functional/ivy/losses.py @@ -379,3 +379,42 @@ def sparse_cross_entropy( return ivy.cross_entropy( true, pred, axis=axis, epsilon=epsilon, reductio...
1
1
1
[{"id": "G0", "claim": "A hypothesis test for the newly created loss functions must be added in ivy_tests/test_ivy/test_functional/test_nn/test_losses.py.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unifyai__ivy__28278
unifyai/ivy
28,278
defect
2f1d92ddad3582d2d9ea1c984986d227bf462845
f38d34c05080442252190d8d7366ffda7f174d94
fix: Frontend Failing Test: torch - reduction_ops.torch.mean
<!-- This template will help you to have a meaningful PR, please follow it and do not leave it blank. --> # PR Description torch.mean() from the torch frontend does not seem to be properly implemented. ivy.mean() has missing arguments (dtype). Comparison against the tensorflow's ground truth might be done with th...
diff --git a/ivy/functional/backends/jax/statistical.py b/ivy/functional/backends/jax/statistical.py index b9e0610698256..8f1a9b8b4a17f 100644 --- a/ivy/functional/backends/jax/statistical.py +++ b/ivy/functional/backends/jax/statistical.py @@ -48,12 +48,16 @@ def max( def mean( x: JaxArray, /, - *, ...
1
1
1
[{"id": "G0", "claim": "The reviewer asks whether the mean() changes could be the cause of the many test failures shown in the CI logs and asks the author to look into it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unifyai__ivy__28407
unifyai/ivy
28,407
defect
edbf0d77787f3d98bf7c95917df6606c8b645350
ce7067e52ab797f3c10f9cd7d0da986b408551b5
feat: Implement precision_score function and test aligned with sklearn metrics
# PR Description Title: Implement precision_score Function and Tests Description: This pull request adds the precision_score function to the Ivy framework’s metrics module, offering a standardized way to evaluate the precision of classification models. The function is compatible with scikit-learn’s precision scor...
diff --git a/ivy/functional/frontends/sklearn/metrics/_classification.py b/ivy/functional/frontends/sklearn/metrics/_classification.py index e6679505631b5..3379f522979e6 100644 --- a/ivy/functional/frontends/sklearn/metrics/_classification.py +++ b/ivy/functional/frontends/sklearn/metrics/_classification.py @@ -17,3 +1...
2
2
2
[{"id": "G0", "claim": "CI shows indent errors for test_sklearn_precision_score, likely from mixing spaces and tabs, and the author should ensure this is fixed before requesting review again.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "CI shows t...
null
unifyai__ivy__28456
unifyai/ivy
28,456
defect
16260888a7cf7388e20ef88d3990cb20529a75fe
fbc86f940639195b12aa8dda351a41760f68796e
fix: use primary `get_item` implementation for 1d tensor queries with tf, and added a test for partial_mixed_handler to check for this
This gets around an issue with kornia, where the compositional get_item is causing issues with tf.function (as well as efficiency issues) Think i've found an even more efficient implementation by using tf.gather when the query is a tensor of any dimension, which will cause it to defer to the more efficient primary i...
diff --git a/ivy/functional/backends/tensorflow/general.py b/ivy/functional/backends/tensorflow/general.py index 47ac3efa9450a..68bf1ef3b7701 100644 --- a/ivy/functional/backends/tensorflow/general.py +++ b/ivy/functional/backends/tensorflow/general.py @@ -65,15 +65,21 @@ def get_item( if ivy.is_array(query) and i...
1
1
1
[{"id": "G0", "claim": "get_item appears to be failing with the tensorflow backend in CI, and the author should check whether the failure is related to the changes made.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
unifyai__ivy__28470
unifyai/ivy
28,470
defect
aa46a0eb96d578cf83b1fe1e637bd1fb4652d315
004f12b523e4a63dfd9b7845b4399fb57be3697a
fix: fixing the tests for `ivy.Shape` method
<!-- This template will help you to have a meaningful PR, please follow it and do not leave it blank. --> # PR Description Hi, @vedpatwardhan and @Ishticode I walked through the `ivy.Shape` class and given that shape implements the `Sequence` like behaviour. I believe that some of the magic methods implemented ...
diff --git a/ivy/__init__.py b/ivy/__init__.py index d40ab10bfb12d..b659ddf6dabea 100644 --- a/ivy/__init__.py +++ b/ivy/__init__.py @@ -304,6 +304,8 @@ def __rmul__(self, other): return self def __bool__(self): + if ivy.current_backend_str() == "tensorflow": + return builtins.bool(bui...
1
1
1
[{"id": "G0", "claim": "Check whether the ivy.Shape methods in question exist in torch.Size and tf.TensorShape, and remove from ivy.Shape those that don't.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unifyai__ivy__28493
unifyai/ivy
28,493
defect
c1f98b18c9969bb378713c59b74f6fa5cafabcca
f4db7f57d85ff45c8307df570057661dccb5763d
Fix Frontend Failing Test: torch - math.paddle.stanh
<!-- This template will help you to have a meaningful PR, please follow it and do not leave it blank. --> # PR Description Failing because of exp returning NaN or inf due to large x, scale_a, scale_b values. Fixed by limit those values from being too large ## Related Issue <!-- Please use this format to li...
diff --git a/ivy_tests/test_ivy/test_frontends/test_paddle/test_math.py b/ivy_tests/test_ivy/test_frontends/test_paddle/test_math.py index a7e20943574a5..52bfc90a4f52c 100644 --- a/ivy_tests/test_ivy/test_frontends/test_paddle/test_math.py +++ b/ivy_tests/test_ivy/test_frontends/test_paddle/test_math.py @@ -2504,10 +25...
1
1
0
[{"id": "G0", "claim": "test_paddle_stanh still fails with the paddle and torch backends because ivy's paddle frontend stanh differs from native paddle, and the reviewer asks the author to fix these two backend failures, reproducing them from the falsifying examples in the logs.", "category": "correctness", "verdict": ...
null
unifyai__ivy__28550
unifyai/ivy
28,550
defect
8485ffef11193938d68e09cf32a0ca958d8482a2
34b0e1407560710f885ceb16c892dc2d9a8dfa58
feat: Add frontend jax.numpy.fft.ifftn
<!-- This template will help you to have a meaningful PR, please follow it and do not leave it blank. --> # PR Description <!-- If there is no related issue, please add a short description about your PR. --> ## Related Issue - [x] #28549 <!-- Please use this format to link other issues with their number...
diff --git a/ivy/functional/frontends/jax/numpy/fft.py b/ivy/functional/frontends/jax/numpy/fft.py index d1500f394e5e1..c6e2abc567be7 100644 --- a/ivy/functional/frontends/jax/numpy/fft.py +++ b/ivy/functional/frontends/jax/numpy/fft.py @@ -70,6 +70,14 @@ def ifft2(a, s=None, axes=(-2, -1), norm=None): return ivy....
1
1
1
[{"id": "G0", "claim": "The new test test_jax_numpy_ifftn currently fails with the torch and numpy backends, as shown in the CI logs for this PR.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
unifyai__ivy__28568
unifyai/ivy
28,568
defect
b2bc71ca86c46d595527628b52d9652d1cff062a
d72ed3823987c3b1569f10d08b03f87abdc86f48
fix: fixed frontend function `torch.mean` for all backends
<!-- This template will help you to have a meaningful PR, please follow it and do not leave it blank. --> # PR Description - Fixed data type conversion occuring due to incorrect input_dtype supplied to test_frontend_function. - Added `@with_supported_dtypes` to frontend function `torch.mean`. <!-- If t...
diff --git a/ivy_tests/test_ivy/test_frontends/test_torch/test_reduction_ops.py b/ivy_tests/test_ivy/test_frontends/test_torch/test_reduction_ops.py index 55e9ed5fd0eda..ef1b9686c7536 100644 --- a/ivy_tests/test_ivy/test_frontends/test_torch/test_reduction_ops.py +++ b/ivy_tests/test_ivy/test_frontends/test_torch/test_...
1
1
0
[{"id": "G0", "claim": "The assume(\"float\" in input_dtype[0] or \"complex\" in input_dtype[0]) line in test_torch_mean is redundant because the dtypes are already specified to be float_and_complex; ideally dtype filtering should not be done in tests but on the functions with supported/unsupported_dtype decorators.", ...
null
unifyai__ivy__28702
unifyai/ivy
28,702
defect
d1dae8365af07d3ab44777c195956a7446605c7c
6aee06d4e03d116edbd14c22bdb814d39e381fec
feat: Implement LabelEncoder methods and add fit method test
### PR: Enhancements to LabelEncoder #### Overview This PR introduces critical enhancements to the `LabelEncoder` class, enabling the conversion of string labels into numerical identifiers. Due to the limitation of `ivy.array` not accepting string elements, we've utilized the list data type for encoding operations...
diff --git a/ivy/functional/frontends/sklearn/preprocessing/_label.py b/ivy/functional/frontends/sklearn/preprocessing/_label.py index ff8bb725b02e1..dd97a39d0dea7 100644 --- a/ivy/functional/frontends/sklearn/preprocessing/_label.py +++ b/ivy/functional/frontends/sklearn/preprocessing/_label.py @@ -3,20 +3,131 @@ ...
1
1
0
[{"id": "G0", "claim": "The pull request should not add docstrings to the frontend methods, per the frontends guide, since the native frameworks already document them.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unifyai__ivy__28707
unifyai/ivy
28,707
defect
db45b1f729a1548ab19034f93447c0dceab23e5d
4f05a09ff892de70d72e4facfc69496830d5237a
feat: implemented ifftshift and corresponding test
<!-- This template will help you to have a meaningful PR, please follow it and do not leave it blank. --> # PR Description <!-- If there is no related issue, please add a short description about your PR. --> ## Related Issue <!-- Please use this format to link other issues with their numbers: Close #12...
diff --git a/ivy/functional/frontends/jax/numpy/fft.py b/ivy/functional/frontends/jax/numpy/fft.py index 125696d97faa3..c2e3a0cf9b2c7 100644 --- a/ivy/functional/frontends/jax/numpy/fft.py +++ b/ivy/functional/frontends/jax/numpy/fft.py @@ -78,6 +78,33 @@ def ifftn(a, s=None, axes=None, norm=None): return a +@...
1
1
1
[{"id": "G0", "claim": "The pull request's test test_jax_numpy_ifftshift is still failing in CI, as shown in the linked job logs.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
unifyai__ivy__28780
unifyai/ivy
28,780
defect
5173264de6ac0f0b24c2d3b8e039161b56eee4b7
3ecb490677c2bbe7f7aee5486f1b504d8d7c715b
add torch.tensor.masked_select
<!-- This template will help you to have a meaningful PR, please follow it and do not leave it blank. --> # PR Description <!-- If there is no related issue, please add a short description about your PR. --> ## Related Issue <!-- Please use this format to link other issues with their numbers: Close #12...
diff --git a/ivy/functional/frontends/torch/tensor.py b/ivy/functional/frontends/torch/tensor.py index 7a9b786c4e9bd..32328e1332b2f 100644 --- a/ivy/functional/frontends/torch/tensor.py +++ b/ivy/functional/frontends/torch/tensor.py @@ -1071,6 +1071,11 @@ def masked_fill_(self, mask, value): self.ivy_array = s...
3
3
2
[{"id": "G0", "claim": "The new tensor.masked_select method should call into the existing torch frontend masked_select function (return torch_frontend.masked_select(self, mask)) instead of reimplementing the selection with broadcast_tensors, reshape, index_select and nonzero.", "category": "design", "verdict": "support...
null
unifyai__ivy__28805
unifyai/ivy
28,805
defect
fc153f03157ff1aa028c08df685c7bd57376ac8b
cf4b877b20c12ceafe882b2d1b84c2cd5cbb4af6
fix: resolve failing test cases for torch.linalg.norm
<!-- This template will help you to have a meaningful PR, please follow it and do not leave it blank. --> # PR Description <!-- If there is no related issue, please add a short description about your PR. --> ## Related Issue Close #28690 <!-- Please use this format to link other issues with their number...
diff --git a/ivy/functional/frontends/torch/linalg.py b/ivy/functional/frontends/torch/linalg.py index 627faafe72cef..af814cfddb259 100644 --- a/ivy/functional/frontends/torch/linalg.py +++ b/ivy/functional/frontends/torch/linalg.py @@ -229,6 +229,9 @@ def norm(input, ord=None, dim=None, keepdim=False, *, dtype=None, o...
2
2
1
[{"id": "G0", "claim": "The failing tests come from the return dtype rather than the norm values, so the PR's `ord in ['fro','nuc']` abs() workaround should be replaced by casting the result to the matching real dtype (complex64 to float32, complex128 to float64).", "category": "correctness", "verdict": "supported", "p...
null
unifyai__ivy__28917
unifyai/ivy
28,917
defect
ac26dfad2f38c53e01dd2898e793bb581ff57dbc
e20a66d3a6b2d7e381ff41358eb2527ef4073833
Add tolist method to JAX Array and TensorFlow EagerTensor frontends
## What does this PR do? This PR implements the missing `tolist()` method for JAX Array and TensorFlow EagerTensor frontend classes, resolving issue #19170. ## Description I noticed that while most Ivy frontends (NumPy, PyTorch, Paddle) already have the `tolist()` method implemented, JAX and TensorFlow front...
diff --git a/TEST_STATUS_NOTES.md b/TEST_STATUS_NOTES.md new file mode 100644 index 0000000000000..4eb96512e04d7 --- /dev/null +++ b/TEST_STATUS_NOTES.md @@ -0,0 +1,42 @@ +# Test Status Notes for PR #28917 + +**Author:** Kallal Mukherjee (7908837174) +**PR:** Add tolist method to JAX Array and TensorFlow EagerTensor ...
3
3
1
[{"id": "G0", "claim": "The tolist test configurations need min_value=-1e05 and max_value=1e05 added so generated values do not overflow and fail the test when running with a high number of examples (--num-examples 100).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
unikraft__kraftkit__1313
unikraft/kraftkit
1,313
defect
d13f39e9f4b1673a7b58a177b413fadc4cdb4fe1
36dfb4e2a4518eb828b04c172ca7a443f8c0dcf4
feat(create): Automatically assign subnet
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: htt...
diff --git a/internal/cli/kraft/net/create/create.go b/internal/cli/kraft/net/create/create.go index 23aac7ca2c..5e93b916ba 100644 --- a/internal/cli/kraft/net/create/create.go +++ b/internal/cli/kraft/net/create/create.go @@ -17,6 +17,7 @@ import ( networkapi "kraftkit.sh/api/network/v1alpha1" "kraftkit.sh/cmdfact...
3
3
0
[{"id": "G0", "claim": "The default network pool hardcoded inside findFreeNetwork should probably be a globally exported variable coming out of machine/network rather than a local in the CLI command.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
unikraft__kraftkit__1506
unikraft/kraftkit
1,506
defect
ef90d673ed00b8c545516bffbb5b937dc49c9678
261a9a8d1b5e16cba40541edf8a07ac3ce9b89f9
fix(internal): Limit interface name size to os limit
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/internal/cli/kraft/net/create/create.go b/internal/cli/kraft/net/create/create.go index 2d4108714b..52a2d2040b 100644 --- a/internal/cli/kraft/net/create/create.go +++ b/internal/cli/kraft/net/create/create.go @@ -20,6 +20,13 @@ import ( "kraftkit.sh/machine/network" ) +const ( + // defaultNetworkMaxS...
4
4
4
[{"id": "G0", "claim": "The defaultNetworkNameMaxSize of 15-2 is still a somewhat tight limit because the appended interface suffix needs at least 4 characters (@if%d, possibly more), so the limit might be lowered to around 15-4 and users warned, or given a better error, when the address space runs out of interface nam...
null
unikraft__kraftkit__2646
unikraft/kraftkit
2,646
defect
b11d88df4fe284e5aaaa8f01b063005ca8dddd59
b441f7f01d41f3ad04d27c1e25f97809c37f2626
fix: Spellcheck symbols from set/unset and kraft.yaml
# fix: Escalate KConfig spellcheck warnings to errors ## Summary This PR updates `kraft build` and `kraft set` to strictly validate KConfig options provided by the user. Instead of logging warnings for unknown options (typos), the commands now **stop execution with an error**. This ensures that users do not unknowi...
diff --git a/go.mod b/go.mod index 3d416d31fb..7fc17762e6 100644 --- a/go.mod +++ b/go.mod @@ -194,6 +194,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/hbollon/go-edlib...
9
5
1
[{"id": "G0", "claim": "go.mod was not tidied: go-edlib is recorded with the '// indirect' marker although the PR imports it directly, so run 'go mod tidy'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Do not run spellcheck validation as an un...
null
unikraft__kraftkit__762
unikraft/kraftkit
762
defect
7eb131c4acfa7fd6b25e1e7650702039ec8cbc00
a0f8c35c8e61ac622ef22ef2a5af5b16fd594615
feat: Downgrade make `stderr` to Warnings & highlight errors at the end
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/cmd/kraft/build/build.go b/cmd/kraft/build/build.go index e3d79d4413..e2827698d4 100644 --- a/cmd/kraft/build/build.go +++ b/cmd/kraft/build/build.go @@ -465,18 +465,22 @@ func (opts *Build) Run(cmd *cobra.Command, args []string) error { processes = append(processes, paraprogress.NewProcess( fmt.Spr...
2
1
0
[{"id": "G0", "claim": "Add a newline (blank line) between external imports and kraftkit's in cmdfactory/builder.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Squash a0f8c35c8e61ac622ef22ef2a5af5b16fd594615 and 6c3f8e53f79e02478cf45e294a257...
null
unikraft__kraftkit__839
unikraft/kraftkit
839
defect
723a7a4386a90f382073f49b39a5516fe5819b70
4ea47da4b4982e48470c8e5349f0884130bb064c
feat(workflows): Add multi-os stable tests
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/.github/workflows/gotests-stable.yaml b/.github/workflows/gotests-stable.yaml new file mode 100644 index 0000000000..ad4bf1bd16 --- /dev/null +++ b/.github/workflows/gotests-stable.yaml @@ -0,0 +1,180 @@ +name: Stable Tests + +on: + push: + branches: [stable] + # TODO: Remove me after it runs successf...
2
2
0
[{"id": "G0", "claim": "Temporarily enable this workflow for this PR, just to at least ensure that it completes, then revert back to only running on `stable`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Cite the tracking issue (https://github.com/uni...
null
unikraft__kraftkit__878
unikraft/kraftkit
878
defect
8c1b1251ee71e8fa8af303e9194bdc376d84b921
12bf135d4995af95ac34441e6b131e046e25a699
fix(pkg): Add `--force` flag to sourcing and prevent check on unsourcing
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/cmd/kraft/pkg/source/source.go b/cmd/kraft/pkg/source/source.go index 0d0e66e8e6..a8ff2b8f4f 100644 --- a/cmd/kraft/pkg/source/source.go +++ b/cmd/kraft/pkg/source/source.go @@ -16,7 +16,9 @@ import ( "kraftkit.sh/packmanager" ) -type Source struct{} +type Source struct { + Force bool `short:"F" long:...
1
1
1
[{"id": "G0", "claim": "The pull request forgot to add e2e tests covering the new `--force` flag, and those tests should run `--force` with a good entry and a bad entry.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unikraft__unikraft__1103
unikraft/unikraft
1,103
defect
4cce8306abb8191d96ce2c14c72623db934eaa6d
fc5ef8b0472cc2bfbb46efe54e1d0506541d829e
lib/ukintctlr: Introduce uk_intctlr API - Re-arch IRQ handling
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/include/uk/plat/irq.h b/include/uk/plat/irq.h deleted file mode 100644 index 8f7104d04a5..00000000000 --- a/include/uk/plat/irq.h +++ /dev/null @@ -1,81 +0,0 @@ -/* SPDX-License-Identifier: BSD-3-Clause */ -/* - * Authors: Costin Lupu <costin.lupu@cs.pub.ro> - * - * Copyright (c) 2018, NEC Europe Ltd., NEC...
5
4
1
[{"id": "G0", "claim": "The pull request breaks 9pfs-based builds: lib/uk9p still includes <uk/plat/irq.h>, which the pull request deletes, so compiling 9pfs fails with a fatal missing-header error.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
unikraft__unikraft__1168
unikraft/unikraft
1,168
defect
97523b55ac9e1327f7294da1feec8d4869da534d
cf2a85e57ddfa423524b18d40e7cfdf8d101e425
lib/*: Introduce posix-fdtab
### Description of changes This changeset introduces `posix-fdtab`, a library implementing a file descriptor table, moving this functionality out of `vfscore`. At its core, posix-fdtab is designed to work with the new-style files introduced with the vfs rearch. Support for legacy vfscore files is provided as a stop...
diff --git a/lib/Makefile.uk b/lib/Makefile.uk index 319a572a222..c965fe3287e 100644 --- a/lib/Makefile.uk +++ b/lib/Makefile.uk @@ -11,6 +11,7 @@ $(eval $(call import_lib,$(CONFIG_UK_BASE)/lib/isrlib)) $(eval $(call import_lib,$(CONFIG_UK_BASE)/lib/nolibc)) $(eval $(call import_lib,$(CONFIG_UK_BASE)/lib/posix-enviro...
16
11
0
[{"id": "G0", "claim": "The init_fdtab static initializer is misindented and should be formatted as the reviewer showed.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since the library is POSIX-specific, the uk_fd typedef can be dropped and int used dire...
null
unikraft__unikraft__1174
unikraft/unikraft
1,174
defect
0a82b246dc72c171e4746455eb63576c588046f2
d4cdec192e226147a77aacf33176a854cd5135a2
Implement stack switching on system call entries and on ARM traps/IRQ's
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/lib/syscall_shim/uk_syscall_binary.c b/lib/syscall_shim/uk_syscall_binary.c index f257e88907..26b4147a8a 100644 --- a/lib/syscall_shim/uk_syscall_binary.c +++ b/lib/syscall_shim/uk_syscall_binary.c @@ -51,7 +51,7 @@ void ukplat_syscall_handler(struct __regs *r) { #if CONFIG_LIBSYSCALL_SHIM_HANDLER_ULTLS ...
1
1
0
[{"id": "G18", "claim": "The commit message 'arch: Make context specific macro's visible in assembly code' should read 'macros' instead of \"macro's\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "unclear"}]
null
unikraft__unikraft__1279
unikraft/unikraft
1,279
defect
255f72ff7dbb163f3871ef043626114831fb4e42
280f139cd5ba584ae193dd8e56ca3f0093d50e34
lib/posix-socket: Extend socket events
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/lib/posix-socket/events.h b/lib/posix-socket/events.h index d687fe540e2..f9fcd99799a 100644 --- a/lib/posix-socket/events.h +++ b/lib/posix-socket/events.h @@ -14,11 +14,14 @@ #include <uk/assert.h> #include <uk/essentials.h> +enum uk_socket_state; + struct uk_socket_event_data { uintptr_t id; int...
1
1
1
[{"id": "G0", "claim": "The new `state` field of `struct uk_socket_event_data` must be initialized to `UK_SOCKET_STATE_CLOSE` in both `uk_socket_evd_init()` and `uk_socket_evd_init_from()`, otherwise garbage occurs for freshly opened/created sockets emitting their first state-change event.", "category": "correctness", ...
null
unikraft__unikraft__1290
unikraft/unikraft
1,290
defect
1623b2eefc93b0a13e447427219229151798c679
a2d9aeed2c24143de188022928b7c38082a732d9
driver/virtio/blk: Ensure request header stays in-page boundaries **AND** some minor sglist cleanup
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/drivers/virtio/net/virtio_net.c b/drivers/virtio/net/virtio_net.c index 70144b1553f..8b70ec0e4ff 100644 --- a/drivers/virtio/net/virtio_net.c +++ b/drivers/virtio/net/virtio_net.c @@ -400,7 +400,7 @@ static int virtio_netdev_xmit(struct uk_netdev *dev, * the first netbuf of a queue. If this is not...
3
3
1
[{"id": "G0", "claim": "The new sglist helper in lib/uknetdev (its `#include <uk/sglist.h>`, declaration and definition) is compiled unconditionally even though lib/uknetdev has no dependency on lib/uksglist, so building uknetdev without CONFIG_LIBUKSGLIST fails to compile; it should be guarded with `#if LIBUKSGLIST` r...
null
unikraft__unikraft__1316
unikraft/unikraft
1,316
defect
fc0981f5c78544c0757d15bfa7c5d147d545320c
695e1ba322b72e269a83f52a434d9e561408e33c
{arch,plat}/x86: Refactor FS_BASE/GS_BASE operations
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/plat/common/include/x86/gsbase.h b/plat/common/include/x86/gsbase.h index 54b961a11c4..f7d0923b7af 100644 --- a/plat/common/include/x86/gsbase.h +++ b/plat/common/include/x86/gsbase.h @@ -10,7 +10,17 @@ #include <x86/cpu.h> #include <uk/essentials.h> -/* TODO: Use wrgsbase/rdgsbase instead, as they are...
1
1
0
[{"id": "G3", "claim": "Add a comment to plat/common/include/x86/tls.h giving a heads-up that these will be moved in the context of the plat re-arch.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unikraft__unikraft__1322
unikraft/unikraft
1,322
defect
9f8c4f7b733a342547eeeb2b473c62c05a358618
a126efc9b1d9131ae2b999bd868c87fec1945680
lib: Introduce generic (page guarded) stack allocator library
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/arch/Config.uk b/arch/Config.uk index 32605b57131..078af069192 100644 --- a/arch/Config.uk +++ b/arch/Config.uk @@ -44,6 +44,15 @@ config CPU_EXCEPT_STACK_SIZE_PAGE_ORDER 2 ^ order * page size (e.g. 4KB). Only change this if you know what you're doing. +config AUXSTACK_SIZE_PAGE_ORDER + int + promp...
17
13
2
[{"id": "G0", "claim": "The definition of uk_allocstack_init() leaves the trailing comma after `a` outside the #if CONFIG_LIBUKVMEM block, so a build with LIBUKVMEM disabled gets a dangling comma and fails to compile; there should be no trailing comma there.", "category": "correctness", "verdict": "supported", "priorit...
null
unikraft__unikraft__1330
unikraft/unikraft
1,330
defect
9ff29304e91534e8d05ae27533b995d74fb09ec2
26d296b126d6d3aca92f23c76ef82e2ba8667eab
lib/ukintctlr: Simplify the interface of ukintctlr_platform_probe()
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/drivers/ukintctlr/gic/gic-v2.c b/drivers/ukintctlr/gic/gic-v2.c index 5617a635a99..c72c2c14803 100644 --- a/drivers/ukintctlr/gic/gic-v2.c +++ b/drivers/ukintctlr/gic/gic-v2.c @@ -574,7 +574,6 @@ static int gicv2_do_probe(void) struct ukplat_bootinfo *bi = ukplat_bootinfo_get(); int fdt_gic, r; void ...
2
1
0
[{"id": "G0", "claim": "The GICv3 probe error message should be rephrased to match the one done for GICv2 (e.g. \"GICv3 initialization error\" is wrong/misleading after the interface change).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parent...
null
unikraft__unikraft__1337
unikraft/unikraft
1,337
defect
9ff29304e91534e8d05ae27533b995d74fb09ec2
b7df93ba3b8955f6406d55d8ce0d690acb638233
lib/posix-socket: Expose internal socket syscalls
### Description of changes This change exposes Unikraft-internal syscalls that create sockets. Both versions returning raw uk_files as well as opened file descriptors are provided. ### Prerequisite checklist - [x] Read the [contribution guidelines](https://unikraft.org/docs/contributing/) regarding submitting...
diff --git a/lib/posix-socket/include/uk/socket.h b/lib/posix-socket/include/uk/socket.h index 083f6aa491c..e322803b7e5 100644 --- a/lib/posix-socket/include/uk/socket.h +++ b/lib/posix-socket/include/uk/socket.h @@ -40,6 +40,8 @@ #ifndef __UK_SOCKET__ #define __UK_SOCKET__ +#include <sys/socket.h> + struct posix_...
1
1
1
[{"id": "G0", "claim": "The socket symbols the PR exposes should also be added to lib/posix-socket/exportsyms.uk so other libraries can link against them.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unikraft__unikraft__1339
unikraft/unikraft
1,339
defect
9ff29304e91534e8d05ae27533b995d74fb09ec2
69b8e57e2d13aad8708c1bd72665426a7bc322c9
drivers/virtio: Implement LRO and RX buffer merging
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/drivers/virtio/include/virtio/virtqueue.h b/drivers/virtio/include/virtio/virtqueue.h index f09c902af85..fdb8e71ce5c 100644 --- a/drivers/virtio/include/virtio/virtqueue.h +++ b/drivers/virtio/include/virtio/virtqueue.h @@ -66,8 +66,6 @@ struct virtqueue { virtqueue_callback_t vq_callback; /* Next entr...
4
3
0
[{"id": "G0", "claim": "In the new probe function the early initialization of the locals (e.g. rc) is probably not needed since the success path returns 0 regardless, so it should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the...
null
unikraft__unikraft__1348
unikraft/unikraft
1,348
defect
d234fb09653b3b258eed206e6ae5818e4fa7bca3
bda31ffef4f5c9d8d9aaefd52afa55d05a4631b3
{plat,arch}: Align exception handling stacks among architectures
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/plat/common/arm/lcpu.c b/plat/common/arm/lcpu.c index 9b994cc00fb..54db9e91499 100644 --- a/plat/common/arm/lcpu.c +++ b/plat/common/arm/lcpu.c @@ -46,15 +46,15 @@ #define CPU_ID_MASK 0xff00ffffffUL /* - * CPU_EXCEPT_STACK_SIZE CPU_EXCEPT_STACK_SIZE - * <---------------------><---------------------> ...
3
1
0
[{"id": "G0", "claim": "The comment should say something like \"stay on the crit stack\" rather than \"use the crit stack instead\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Perhaps recoverable exceptions (e.g. a page fault) raised from IRQ ...
null
unikraft__unikraft__1373
unikraft/unikraft
1,373
defect
6e1011ba23f8c9514659bed547f6e1233f43549e
435367eeb4e114de07b99bd561a75fd0ce20fabc
plat: Rework paged memory init
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/arch/arm/arm64/include/uk/asm/paging.h b/arch/arm/arm64/include/uk/asm/paging.h index fdd9ef25f63..5324890509d 100644 --- a/arch/arm/arm64/include/uk/asm/paging.h +++ b/arch/arm/arm64/include/uk/asm/paging.h @@ -69,6 +69,16 @@ struct ukarch_pagetable { #define PT_PTES_PER_LEVEL 512 #define PT_LEVEL_SHIF...
4
2
1
[{"id": "G0", "claim": "The proposed way of mapping regions has a potential flaw if a region is partially mapped, because ukplat_page_map() would return EEXIST and the subsequent ukplat_page_set_attr() would fail.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "...
null
unikraft__unikraft__1386
unikraft/unikraft
1,386
defect
6e1011ba23f8c9514659bed547f6e1233f43549e
8d7171fe6943d8cfa49ccfa4da5dec4e52a7abf3
lib/posix-process: Add vfork & execve
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/arch/Config.uk b/arch/Config.uk index 32605b57131..078af069192 100644 --- a/arch/Config.uk +++ b/arch/Config.uk @@ -44,6 +44,15 @@ config CPU_EXCEPT_STACK_SIZE_PAGE_ORDER 2 ^ order * page size (e.g. 4KB). Only change this if you know what you're doing. +config AUXSTACK_SIZE_PAGE_ORDER + int + promp...
7
4
1
[{"id": "G0", "claim": "The commit message introducing libukbinfmt should say \"shebang\" instead of \"sha-bang\".", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new files added by this pull request carry a 2023 copyright year that should be 202...
null
unikraft__unikraft__1407
unikraft/unikraft
1,407
defect
5d38d108162ec4299cdafaad6d229c43ffd148b5
1fbc3dac57f756dad142a0a837de8012ee7b3334
lib/ukvmem: Move file VMA implementation into vfscore
### Description of changes This changeset moves the implementation of the file VMA type from `ukvmem` to `vfscore`, bringing file VMAs under the same roof as file operations more generally. The implementation itself is left minimally changed, and no difference to behavior should be observed. Fixing and/or otherwise ...
diff --git a/lib/ukvmem/exportsyms.uk b/lib/ukvmem/exportsyms.uk index 3d67fbf889c..090ccbd9e23 100644 --- a/lib/ukvmem/exportsyms.uk +++ b/lib/ukvmem/exportsyms.uk @@ -14,3 +14,8 @@ uk_vma_dma_ops uk_vma_file_ops uk_vma_rsvd_ops uk_vma_stack_ops + +uk_vma_op_deny +uk_vma_op_unmap +uk_vma_op_set_attr +uk_vma_op_advi...
6
2
0
[{"id": "G0", "claim": "The declaration of uk_vma_op_deny should maybe use an explicit (void) parameter list instead of an empty one.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The UK_VMA_FILE_SHARED bitfield should be part of a flag and move to vfscor...
null
unikraft__unikraft__1446
unikraft/unikraft
1,446
defect
d4394a1c7e5124633668c55ca5267c9914798019
c7daa287b68bb7f08165d03783cdd5ec0218937e
lib/{ukfile, posix-socket, posix-unixsocket}: Add support for explicitly polled files & sockets
### Description of changes This changeset adds `ukfile` support for explicitly polled files. These files accomodate drivers that, in contrast to the present `ukfile` event polling model, maintain events internally and cannot or will not signal falling edges of events, and thus cannot have `ukfile` maintain event lev...
diff --git a/lib/posix-poll/epoll.c b/lib/posix-poll/epoll.c index d7df58a5d50..92ab34e53a4 100644 --- a/lib/posix-poll/epoll.c +++ b/lib/posix-poll/epoll.c @@ -249,7 +249,8 @@ static void epoll_register(const struct uk_file *epf, struct epoll_entry *ent, UK_ASSERT(!ent->legacy); #endif /* CONFIG_LIBVFSCORE */ - e...
5
2
0
[{"id": "G0", "claim": "The newly added uk_pollq_poll_level is the only undocumented function in pollqueue.h and should get a doc comment like the rest.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The naming of the managed/polled and edge/level...
null
unikraft__unikraft__1576
unikraft/unikraft
1,576
defect
896c5b33895d5aa1796ba02e8ac21396875ec39a
e4eb4a5143a50906c50dce42d2d2ac7933e62c50
lib/ukalloc: Make palloc/pfree page-granular (+ document main public `ukalloc` API)
### Description of changes Previously bbuddy's palloc/pfree implementations behaved like a page-order allocator, with the assumption of dealing only in power-of-2 numbers of pages instead of the page-granular API _implied_ by `ukalloc`. This mismatch between expected/assumed and actual behavior would lead to memory ...
diff --git a/lib/ukalloc/include/uk/alloc.h b/lib/ukalloc/include/uk/alloc.h index 24af1e81097..7ea51f1e3b7 100644 --- a/lib/ukalloc/include/uk/alloc.h +++ b/lib/ukalloc/include/uk/alloc.h @@ -4,6 +4,7 @@ * Florian Schmidt <florian.schmidt@neclab.eu> * * Copyright (c) 2017, NEC Europe Ltd., NEC Corporati...
15
14
1
[{"id": "G0", "claim": "The trim loop in bbuddy_palloc is long enough that it should be split into its own (inline) function taking buf and slack as arguments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The inner while loop of bbuddy_pfree t...
null
unikraft__unikraft__1602
unikraft/unikraft
1,602
defect
30f46524e73327d19a9f51d8fc656259ba28f82d
bf9f86d2379853156d41bda81d925afd0de8b636
lib/posix-fd: Move heap-allocated open file descriptions out of fdtab
### Description of changes This PR moves the responsibility of allocating, managing the lifetime of, and freeing open file descriptions out of `posix-fdtab` and into inlines in the main `posix-fd` API. This decouples dynamic open file descriptions from the fdtab instance that would have previously managed them, a...
diff --git a/lib/posix-fd/Config.uk b/lib/posix-fd/Config.uk index 5f513f495c0..89809e76691 100644 --- a/lib/posix-fd/Config.uk +++ b/lib/posix-fd/Config.uk @@ -1,5 +1,13 @@ -config LIBPOSIX_FD +menuconfig LIBPOSIX_FD bool "posix-fd: Open file descriptions" select LIBUKFILE select LIBUKLOCK select LIBUKLOCK_MUT...
3
2
0
[{"id": "G0", "claim": "uk_ofile_new should use an `if (unlikely(!ret))` early return so the body is one tab less indented.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "uk_ofile_release should be rewritten as an early return with the cleanup c...
null
unikraft__unikraft__1671
unikraft/unikraft
1,671
defect
e62a8027e9c7f948cd3a7062c0c2fadc4561aeaa
dcc77e8f28fb1b36cbe5d9e5db2dff5efd04753e
lib/ukfile: Rework pollq implementation to use waitq
### Description of changes This changeset reworks the ukfile pollqueue implementation to use standard waitqueues instead of bespoke waiting code. During this pass, unused parts of the pollqueue API were trimmed off and/or brought more in-line with other standard synchronization primitives. The waitqueue interface ...
diff --git a/lib/uksched/include/uk/wait.h b/lib/uksched/include/uk/wait.h index 0fb1227037f..4f11789f4f5 100644 --- a/lib/uksched/include/uk/wait.h +++ b/lib/uksched/include/uk/wait.h @@ -210,6 +210,18 @@ static inline void _uk_waitq_noplock(int lock __unused) {} ukplat_monotonic_clock(), \ lock_fn...
5
3
0
[{"id": "G0", "claim": "The waitq macro's loop-variable parameter should be named `ticket` rather than `ticket_name`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new waitq macro's parameters should be prepended with underscores to prevent...
null
unikraft__unikraft__1731
unikraft/unikraft
1,731
defect
3511fe57b85ac2cdcd32ebbcf458ddd7f3723c60
d5b7ded929f7be2ba953fe026f3d3a6a7c007941
lib/ukrandom: Fix incorrect size parameters + improvements
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this form to indicate the status of your PR. Please ensure you have read the contribution guidelines before opening a new PR as this will cover the PR process: https:/...
diff --git a/lib/ukrandom/Makefile.uk b/lib/ukrandom/Makefile.uk index 2e3aced2a1e..cc149c4d0c6 100644 --- a/lib/ukrandom/Makefile.uk +++ b/lib/ukrandom/Makefile.uk @@ -10,6 +10,7 @@ LIBUKRANDOM_SRCS-$(CONFIG_LIBPOSIX_VFS) += $(LIBUKRANDOM_BASE)/devfs.c endif LIBUKRANDOM_SRCS-$(CONFIG_LIBUKRANDOM_GETRANDOM) += $(LIBU...
4
4
0
[{"id": "G0", "claim": "Casting the char-array `sigma` to `__u32 *` relies on alignment the declaration does not guarantee; declare it with alignment or directly as a `__u32` word array.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make the intern...
null
unikraft__unikraft__1794
unikraft/unikraft
1,794
defect
f5090fa701e53c57b5540736650935e225697ddb
5656eb98b576a33fbd30af58bae13f6f8edcd29e
lib/ukprint: Add interrupt-safe printing
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this short form to indicate the status of your PR. --> ### Description of Changes In some execution contexts — interrupt handlers, exception paths, early boot before t...
diff --git a/lib/ukconsole/console.c b/lib/ukconsole/console.c index 9c06197d04f..3c6b3aa73a7 100644 --- a/lib/ukconsole/console.c +++ b/lib/ukconsole/console.c @@ -128,6 +128,64 @@ __ssz uk_console_in_direct(struct uk_console *dev, char *buf, __sz len) return dev->ops->in(dev, buf, len); } +int uk_console_out_dir...
2
1
0
[{"id": "G0", "claim": "The documentation of uk_console_[in,out]_direct() should elaborate on their behavior so that the difference from the blocking _all() variants is clear.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commit message shoul...
null
unikraft__unikraft__1795
unikraft/unikraft
1,795
defect
f5090fa701e53c57b5540736650935e225697ddb
9b83dfb01530bc40b279ddd1c06c881f727d81ef
lib/posix-tty: Auto-create console devices devfs entries
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this short form to indicate the status of your PR. --> ### Description of Changes This series makes the relationship between console devices and their userspace-visibl...
diff --git a/drivers/ukconsole/ns16550/com.c b/drivers/ukconsole/ns16550/com.c index 5b63dfa6fca..1dd9552cf7e 100644 --- a/drivers/ukconsole/ns16550/com.c +++ b/drivers/ukconsole/ns16550/com.c @@ -153,13 +153,13 @@ static inline void com_setup(int port_addr, __u8 bauddiv_lo, __u8 bauddiv_hi) uk_arch_x86_64_outb(COM_C...
2
2
0
[{"id": "G0", "claim": "The new `uk_console_class` enum would be better named to reflect that it describes the console device (e.g. `uk_console_devclass`/`uk_console_devtype`), with the rename reflected across related names.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
unikraft__unikraft__1807
unikraft/unikraft
1,807
defect
54590d69544f1db6e5d5f6d212c96da9c26e7d7f
1f5d21ae57adc6e9322a02be2b765326a3d42ffb
{plat, lib, drivers}: Fixups post-lcpu/pcpuvar rework
<!-- Thank you for opening a new PR to the Unikraft Open Source Project! We welcome new changes, features, fixes, and more! Please fill in this short form to indicate the status of your PR. --> ### Description of Changes <!-- Provide a detailed description of the changes made in this PR. This should i...
diff --git a/lib/uklcpu/include/uk/lcpu/pm.h b/lib/uklcpu/include/uk/lcpu/pm.h index c243cd7b42e..24aee973812 100644 --- a/lib/uklcpu/include/uk/lcpu/pm.h +++ b/lib/uklcpu/include/uk/lcpu/pm.h @@ -33,8 +33,8 @@ struct uk_lcpu_pm_ops { /** * Starts a secondary logical CPU. * - * @param lcpu - * The secondary...
1
1
1
[{"id": "G0", "claim": "The exception error_code getter and setter should also return/take `__u64` in the Xen variants (`plat/xen/arch/x86_64/include/uk/plat/xen/arch/except.h` and `plat/xen/pal/arch/x86_64/include/uk/plat/pal/arch/except.h`), not only in the native one.", "category": "correctness", "verdict": "support...
null
unionai-oss__pandera__1014
unionai-oss/pandera
1,014
defect
6b6c9d5eea12b1b3640b4ba69178ae392132fcac
c1abe8aa5792a24e72d7ea8accfdfbf187c0e297
Turn failure-cases to string to avoid hashing unhashable objects
Resolves: #1013 Ad-hoc benchmarking with what I assume is a pretty-bad case: ```python # setup import pandas, pandera, numpy foo = pandera.DataFrameSchema({"x": pandera.Column(int, checks=[pandera.Check.eq(0)])}) x = pandas.DataFrame(numpy.arange(0, 1_000_000, 1), columns=["x"]) # timed code foo.validate(x...
diff --git a/pandera/errors.py b/pandera/errors.py index 8fb0cc2df..f1e43bc6b 100644 --- a/pandera/errors.py +++ b/pandera/errors.py @@ -166,6 +166,8 @@ def _message(self, error_counts, schema_errors): msg += f"- {k}: {v}\n" def agg_failure_cases(df): + # FIXME(arne): hack to support ...
2
2
0
[{"id": "G0", "claim": "The regression test's docstring should expand the bare `#1013` reference into a description of the issue so a maintainer doesn't have to look up the GitHub URL.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment in ...
null
unionai-oss__pandera__1186
unionai-oss/pandera
1,186
defect
f4016174b5f166d3b7c95d948a9a8382d8f2ba24
c43f3b7df512f35bff2d25d850eea46811b5dc6a
Add add_missing_columns DataFrame schema config per enhancement #687
I took a crack at adding the 'add_missing_columns' DataFrame schema config, including tests. One thing I could use some advice on is that I got missing attribute pylint issues in file pandera/backends/pandas/container.py before I even changed anything. They look related to the 'schema' method argument variable not havi...
diff --git a/docs/source/dataframe_models.rst b/docs/source/dataframe_models.rst index f821e7baf..4f63a9252 100644 --- a/docs/source/dataframe_models.rst +++ b/docs/source/dataframe_models.rst @@ -208,7 +208,8 @@ You can easily convert a :class:`~pandera.api.pandas.model.DataFrameModel` class strict=False ...
4
4
2
[{"id": "G0", "claim": "In the case where a column's default value is None and the column is not nullable, it may be best to raise a SchemaInitError exception, since this is an invalid case that can be detected before validation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
unionai-oss__pandera__1385
unionai-oss/pandera
1,385
defect
ceeae10f0fcca5f34de99d5e1c107ddacff51b73
32f8c41c2fa9d048b7f66ad3ae68445a097b4950
Fix lack of support for new TimestampNTZType in Spark 3.4 datatypes
When loading a parquet file with timestamp fields into a dataframe using Spark 3.4, pyspark can make use of the new `pyspark.sql.types.TimestampNTZType()` but these news fields were not declared as equivalent to Pandera's Timestamp. <details> <summary>Stack Trace</summary> ```txt Data type '<class 'pyspark.sq...
diff --git a/pandera/engines/pyspark_engine.py b/pandera/engines/pyspark_engine.py index a9668402b..4e48d28da 100644 --- a/pandera/engines/pyspark_engine.py +++ b/pandera/engines/pyspark_engine.py @@ -14,6 +14,7 @@ from typing import Any, Iterable, Union, Optional import sys +import pyspark import pyspark.sql.type...
1
1
1
[{"id": "G0", "claim": "Consider parsing the pyspark version string with packaging.version (already a dependency) instead of comparing the raw string, so the Spark 3.4 check for TimestampNTZType equivalents is more robust.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unionai-oss__pandera__1570
unionai-oss/pandera
1,570
defect
a91189b971817ce725282cf1e8c7f8ca7b197e95
4c522b71ee019ece65dcbc2affb90e612f463a4b
Add StructType and DDL extraction from Pandera schemas
Using Pandera schemas for data quality checks are great but we need to get the PySpark DataFrame correctly loaded first, with the correct column types we are expecting to validate later. Relying on automatic Spark's `inferSchema = True` when loading data files (CSV and parquet, for example) is not reliable, so this PR...
diff --git a/pandera/api/pyspark/container.py b/pandera/api/pyspark/container.py index 45671cbf2..54c393dc5 100644 --- a/pandera/api/pyspark/container.py +++ b/pandera/api/pyspark/container.py @@ -8,7 +8,8 @@ from pathlib import Path from typing import Any, Dict, List, Optional, Union, cast, overload -from pyspark....
2
2
1
[{"id": "G0", "claim": "Add negative and positive tests with dummy data to explain the situation the pull request is fixing.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Access the public attribute `dtype` instead of the protected `_dtype` when buildi...
null
unionai-oss__pandera__1592
unionai-oss/pandera
1,592
defect
cf09ae23ba4efdad89a076f05d4d4c5479c87b37
2f9f68577cd32616036769755de32de28d58901c
Raise SchemaInitError when for unique field is specified in pyspark field and a test showing the issue as well as config when it works.
Following #1344 I am adding a bit of edited documentation. I wasn't able to raise `SchemaInitError` as @cosmicBboy suggested as it turns out that if you use `pa.Field(unique=True)` it is seen as None which most likely is the issue. In the follow up screenshot you can see the behavior when I did add the code [where](h...
diff --git a/docs/source/pyspark_sql.md b/docs/source/pyspark_sql.md index 895bb6add..def31a5ff 100644 --- a/docs/source/pyspark_sql.md +++ b/docs/source/pyspark_sql.md @@ -334,7 +334,7 @@ This feature is available for `pyspark.sql` and `pandas` both. :::{warning} The `unique` support for PySpark-based validations to...
2
2
0
[{"id": "G0", "claim": "A SchemaInitError needs to be added in pandera/api/pyspark/model_components.py's Field when pa.Field(unique=True) is specified at the column level, because the underlying pyspark Column definition does not support the unique argument.", "category": "correctness", "verdict": "supported", "priorit...
null
unionai-oss__pandera__1595
unionai-oss/pandera
1,595
defect
b58bd36de378ae7fe88b9d7254b882ffa66e836c
554ecaa04efd2d54de74bbc8e1f03df7d4753af9
Add a generic Series type for polars
Closes #1594 Added a Series type alongside the LazyFrame type, and added it as an accepted annotation in the polars model.
diff --git a/pandera/api/polars/model.py b/pandera/api/polars/model.py index 48eeb482b..3877232a7 100644 --- a/pandera/api/polars/model.py +++ b/pandera/api/polars/model.py @@ -19,6 +19,7 @@ from pandera.api.polars.container import DataFrameSchema from pandera.api.polars.components import Column from pandera.api.pol...
1
1
0
[{"id": "G0", "claim": "Delete the now-obsolete \"Series[TYPE] annotations are not supported for polars\" error-message block in _build_columns, since the polars backend now supports the Series generic type.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unionai-oss__pandera__1602
unionai-oss/pandera
1,602
defect
dbf18314fc9461b3f7af8ff6c4741a6dff0f99ac
46096bf31e8e39b76f95249774e06458407369d8
fix: properly coerce dtypes for columns with regex=True
Fixes [#1182](https://github.com/unionai-oss/pandera/issues/1182). I ran into this bug myself, then found it was previously reported. See the included tests for a minimal example of the bug: `test_config_coerce()` passes on `main`; `test_config_coerce_with_regex()` fails on `main`, but passes with this fix. The ...
diff --git a/pandera/backends/pandas/container.py b/pandera/backends/pandas/container.py index e004932e7..1a6372b44 100644 --- a/pandera/backends/pandas/container.py +++ b/pandera/backends/pandas/container.py @@ -633,9 +633,13 @@ def _try_coercion(coerce_fn, obj): matched_columns = pd.Index([]) ...
1
1
0
[{"id": "G0", "claim": "The new coerce tests should be written against DataFrameSchema (the true schema representation) and live in test_schemas.py, or else stay DataFrameModel-based and move to test_model.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unionai-oss__pandera__1623
unionai-oss/pandera
1,623
defect
612d25c6541d426355195e0e3eb613dbc1a6c67d
574e0c9cc6c6acc316d32e45d6521a953dfc5c53
Bugfix/1616: Polars data container validation
Adds support for polars data container validation in custom dtypes Adds test demonstrating positive and negative case
diff --git a/pandera/backends/polars/components.py b/pandera/backends/polars/components.py index 6f7c418ed..69c846e4f 100644 --- a/pandera/backends/polars/components.py +++ b/pandera/backends/polars/components.py @@ -7,6 +7,7 @@ from pandera.api.base.error_handler import ErrorHandler from pandera.api.polars.compone...
3
3
2
[{"id": "G0", "claim": "The test dtype's `data_container` parameter should be annotated as `Optional[PolarsData]` rather than `Optional[PolarsDataContainer]`, which would also fix the mypy error at line 212.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
unionai-oss__pandera__1880
unionai-oss/pandera
1,880
defect
11e15eb583765fd25ad63244163b6520fdc55243
918abf79c6cdeb6689dae93ce58f93a2c51c1b3d
Create empty dataframe from Pandas DataFrame Model
* inspired by https://github.com/unionai-oss/pandera/pull/1039 * relates https://github.com/unionai-oss/pandera/issues/992 I'm interested in https://github.com/unionai-oss/pandera/pull/1039 however it has not been merged. I would like to salvage the PR partially (temporarily), that is, only for DataFrame Model.
diff --git a/pandera/api/dataframe/model.py b/pandera/api/dataframe/model.py index eef254a8e..fa2ce5af5 100644 --- a/pandera/api/dataframe/model.py +++ b/pandera/api/dataframe/model.py @@ -20,6 +20,8 @@ cast, ) +import pandas as pd + from pandera.api.base.model import BaseModel from pandera.api.base.schema im...
1
1
1
[{"id": "G0", "claim": "The generic dataframe.model module should not depend on any dataframe library; the `import pandas as pd` should be moved to pandera/api/pandas/model.py.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
unionai-oss__pandera__189
unionai-oss/pandera
189
defect
b6108d070b3b8a8c2258f7ddaddbc17a2822c671
a55ecc2054a46fb626eb475cb3ebfe1edb7f09a3
Fix #188
#188 The series was accessed by "check_obj.loc[series.index]" Each access retrieves every element with corresponding index value, but multiple accesses are attempted for one index value, as series.index is duplicated. I solved this problem by making series.index distinct. I confirmed that this fix worked well ...
diff --git a/pandera/schemas.py b/pandera/schemas.py index 64b2f8961..412cf538c 100644 --- a/pandera/schemas.py +++ b/pandera/schemas.py @@ -603,19 +603,19 @@ def validate( (series.name, _dtype, series.dtype)) check_results = [] - - if isinstance(check_obj, pd.Series): - ch...
3
3
0
[{"id": "G0", "claim": "CI is throwing mypy errors in tests/test_checks_builtin.py.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Use the more concise `if self.checks:` instead of `if len(self.checks) != 0:` since `self.checks` is always a list."...
null
unionai-oss__pandera__1902
unionai-oss/pandera
1,902
defect
33fe68b7d0c7c3a760469b9898acf286334fe34f
ca6046a9cf4b07d02cb7d1384bc08e8d3c5be038
Enhancement: Add support for timezone-flexible DateTime (#1352)
## Enhancement: Add support for timezone-flexible DateTime (#1352) This pull request introduces a new feature to the DateTime class, allowing for more flexible handling of timezones during datetime coercion and validation. Prevously, if a field was type DateTime and it was going to receive tz-aware data: - The tim...
diff --git a/pandera/engines/pandas_engine.py b/pandera/engines/pandas_engine.py index 64b0f93f1..bfb1b069c 100644 --- a/pandera/engines/pandas_engine.py +++ b/pandera/engines/pandas_engine.py @@ -860,6 +860,19 @@ class DateTime(_BaseDateTime, dtypes.Timestamp): tz: Optional[datetime.tzinfo] = None """The tim...
1
1
0
[{"id": "G0", "claim": "The new `timezone_flexible` flag should be renamed to `time_zone_agnostic` to match the polars dtype engine implementation (#1589).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unionai-oss__pandera__1904
unionai-oss/pandera
1,904
defect
33fe68b7d0c7c3a760469b9898acf286334fe34f
25919e1120940bec436f8495053e25eeb2ad48cb
Bugfix/1677 Fix Pandera DataFrame - Pydantic compatibility
Update to [pydantic-core](https://github.com/pydantic/pydantic-core/commit/98bc1e2a380344a5157824f9e5659e7a040b1ea4) requires additional parameter `json_schema_input_schema` in `core_schema.no_info_plain_validator_function` function. I did some checking and it seems that it doesn't matter what is put under the varia...
diff --git a/pandera/typing/pandas.py b/pandera/typing/pandas.py index 8e26962e7..25ba2ddfb 100644 --- a/pandera/typing/pandas.py +++ b/pandera/typing/pandas.py @@ -29,11 +29,7 @@ SeriesBase, ) from pandera.typing.formats import Formats - -try: - from typing import get_args -except ImportError: - from typi...
2
1
1
[{"id": "G0", "claim": "The newly added config_context(validation_enabled=False) block appears unnecessary because the nested code does no validation.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded type_map is limited to a few numpy ...
null
unionai-oss__pandera__1909
unionai-oss/pandera
1,909
defect
754e66df9576d6bcb5e977fe451da322c88dfc36
873b32ff2d04d5eb29d03adb763ecb886b987549
Bugfix/1908: handle multidimensional polars Array type
resolves #1908
diff --git a/pandera/engines/polars_engine.py b/pandera/engines/polars_engine.py index 9ba452c0e..6d4b8c55c 100644 --- a/pandera/engines/polars_engine.py +++ b/pandera/engines/polars_engine.py @@ -583,9 +583,19 @@ def __init__( # pylint:disable=super-init-not-called @classmethod def from_parametrized_dtype...
1
1
0
[{"id": "G0", "claim": "Add a test that runs the `from_parametrized_dtype` method directly (an explicit test for it, per the inline comment), complementing the S1 test that only reaches it via `Engine.dtype`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unionai-oss__pandera__2069
unionai-oss/pandera
2,069
defect
41be1411cc653a3a8dde3f1e1d8a00845f0aea0c
81cea48772b482802259e8e7aa4bac9d971586d6
Bugfix: #2058 Check_types for callable
Addresses issue #2058 where `@pa.check_types` fails for type `Callable`. Commits: 1. enhance parameterization of an unrelated test (impulsive and fun) 2. unit tests which describe expectations 3. code which fixes the issue **Related:** We're using `typing_inspect` to get detailed info on the types. Why not u...
diff --git a/pandera/typing/common.py b/pandera/typing/common.py index f55ba7d6b..7895e8f2b 100644 --- a/pandera/typing/common.py +++ b/pandera/typing/common.py @@ -2,6 +2,7 @@ import copy import inspect +import typing from typing import ( # type: ignore[attr-defined] TYPE_CHECKING, Any, @@ -238,7 +239,...
1
1
0
[{"id": "G0", "claim": "Remove the print() call in test_check_types_callables, replacing it with pass so the function body stays non-empty without printing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
unionai-oss__pandera__2136
unionai-oss/pandera
2,136
defect
ce6422e3bb77837b46062cf37a01a100674ede39
1e0ee4802adfd239d8f3180c9c87ece91a5d74e2
Add descriptors to DataFrameModel
Fixes: #2135 This proposed change changes several of the `__attributes__` of the `DataFrameModel` class to Descriptors. The objective is to make those attributes Idempotent, and lazy loaded, so that we only compute them when needed. This addresses the inconsistent behavior where `MyModel.__fields__ == {}`, unt...
diff --git a/pandera/api/dataframe/model.py b/pandera/api/dataframe/model.py index acb491d67..c12113ff1 100644 --- a/pandera/api/dataframe/model.py +++ b/pandera/api/dataframe/model.py @@ -104,6 +104,111 @@ def _convert_extras_to_checks(extras: dict[str, Any]) -> list[Check]: _CONFIG_OPTIONS = [attr for attr in vars(B...
5
3
0
[{"id": "G0", "claim": "The docstring of _FieldsDescriptor is incomplete, ending mid-sentence with 'Returns the cached fields dict, unless'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of try/except KeyError, the descriptor cache lookup...
null