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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TheAlgorithms__JavaScript__707 | TheAlgorithms/JavaScript | 707 | defect | ad9ff37385f5c6b4842c886f9018a2ee4ff90772 | 167bc103ce4393755410c560b73d559842bd0c1c | Added DecimalToRoman | # Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
I find that repo has `romanToDecimal` but not `decimalToRoman` so I create one
### **Describe your change:**
* [x] ... | diff --git a/Conversions/DecimalToRoman.js b/Conversions/DecimalToRoman.js
new file mode 100644
index 0000000000..67efefdb84
--- /dev/null
+++ b/Conversions/DecimalToRoman.js
@@ -0,0 +1,54 @@
+/*
+ Decimal To Roman
+
+ This algorithm take decimal number and convert to roman numeral according to standard form (htt... | 1 | 1 | 1 | [{"id": "G0", "claim": "The console.log-based test calls at the bottom of DecimalToRoman.js should be moved to a separate jest file in the test sub-directory, as the repository's convention requires.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheAlgorithms__JavaScript__736 | TheAlgorithms/JavaScript | 736 | defect | 199d2637ccac08065d8b660e45cd1b7331ce2e08 | 11315ea449e8f66c323aaaa62ea1d6c468bda569 | Bucket sort tests | # Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### **Describe your change:**
* [x] Fix a bug or typo in an existing algorithm?
* [x] Documentation change?
* [... | diff --git a/Sorts/BucketSort.js b/Sorts/BucketSort.js
index 9423c4c104..84cc3feac2 100644
--- a/Sorts/BucketSort.js
+++ b/Sorts/BucketSort.js
@@ -1,5 +1,5 @@
/*
-Wikipedia says: Bucket sort, or bin sort, is a sorting algorithm that works by distributing the
+[Wikipedia says](https://en.wikipedia.org/wiki/Bucket_sort#... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test code at the bottom of Sorts/BucketSort.js (the hardcoded arrOrignal array with its console.log calls) should be removed from the function file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
TheAlgorithms__JavaScript__737 | TheAlgorithms/JavaScript | 737 | defect | 199d2637ccac08065d8b660e45cd1b7331ce2e08 | 7076c2afbfdda1ecb87fc917a5ce3de536155f7d | Comb sort tests | # Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### **Describe your change:**
* [x] Documentation change?
* [x] Adds tests
### **Checklist:**
* [x] I have re... | diff --git a/Sorts/CombSort.js b/Sorts/CombSort.js
index 4091f49089..b56b1aa5cf 100644
--- a/Sorts/CombSort.js
+++ b/Sorts/CombSort.js
@@ -16,6 +16,12 @@
* Wikipedia: https://en.wikipedia.org/wiki/Comb_sort
*/
+/**
+ * combSort returns an array of numbers sorted in increasing order.
+ *
+ * @param {number[]} list... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the leftover console.log test code from Sorts/CombSort.js.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
TheAlgorithms__JavaScript__769 | TheAlgorithms/JavaScript | 769 | defect | 5f601fac8df00a1c0b9545436da2518a901ee859 | 1d1729822a18d4cd3ce1a1d3d8c23806a760b397 | Adding an algorithm AlphaNumericPalindrome from freecodecamp | # Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### **Describe your change:**
* [x] Add an algorithm?
* [ ] Fix a bug or typo in an existing algorithm?
* [ ] Do... | diff --git a/String/AlphaNumericPalindrome.js b/String/AlphaNumericPalindrome.js
new file mode 100644
index 0000000000..f7e43a65fb
--- /dev/null
+++ b/String/AlphaNumericPalindrome.js
@@ -0,0 +1,62 @@
+/**
+ * alphaNumericPlaindrome should return true if the string has alphanumeric characters that are palindrome irresp... | 3 | 2 | 0 | [{"id": "G0", "claim": "The implementation should be simplified (cclauss would have written it as `return isPalandrome(s) and isAlphaNumeric(s)`, with each helper a one-liner) instead of the verbose loop version.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
TheAlgorithms__JavaScript__789 | TheAlgorithms/JavaScript | 789 | defect | 5f601fac8df00a1c0b9545436da2518a901ee859 | b3377bb79cb7275951f42aab0d950dbff9e14f1f | Added Maximum product of 3 numbers in an array | # Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### **Describe your change:**
* [x] Add an algorithm?
* [ ] Fix a bug or typo in an existing algorithm?
* [ ] Do... | diff --git a/Dynamic-Programming/MaxProductOfThree.js b/Dynamic-Programming/MaxProductOfThree.js
new file mode 100644
index 0000000000..811913c694
--- /dev/null
+++ b/Dynamic-Programming/MaxProductOfThree.js
@@ -0,0 +1,38 @@
+/**
+ * Given an array of numbers, return the maximum product
+ * of 3 numbers from the arra... | 1 | 1 | 1 | [{"id": "G0", "claim": "maxProductOfThree should throw an error instead of returning -1 when the array has fewer than 3 items.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheAlgorithms__JavaScript__793 | TheAlgorithms/JavaScript | 793 | defect | 5f601fac8df00a1c0b9545436da2518a901ee859 | 44625e4987f6724bb9785514595490c4aae079fb | added Problem 25 to Euler | # Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### **Describe your change:**
* [x] Add an algorithm?
* [ ] Fix a bug or typo in an existing algorithm?
* [ ] Do... | diff --git a/Project-Euler/Problem025.js b/Project-Euler/Problem025.js
new file mode 100644
index 0000000000..048d43ddd4
--- /dev/null
+++ b/Project-Euler/Problem025.js
@@ -0,0 +1,59 @@
+/**
+* Problem 20 - 1000-digit Fibonacci number
+*
+* @see {@link https://projecteuler.net/problem=25}
+*
+* The Fibonacci seque... | 2 | 2 | 2 | [{"id": "G0", "claim": "Fix the missing variable declaration LGTM alert — `series` is assigned without `let`, creating an implicit global in Project-Euler/Problem025.js.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Compute the Fibonacci numbers an... | null |
TheAlgorithms__JavaScript__794 | TheAlgorithms/JavaScript | 794 | defect | a9d20515bfe4d6542a288f64c5f388c15da05585 | 915ca4c7efef2f3a22c0b1d07a026b89330633e0 | Added new Mathematical algorithm : Figurate Numbers | Algorithm for checking whether input number does belong to any type of figurate numbers
# Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### **Describe your change... | diff --git a/Maths/FigurateNumber.js b/Maths/FigurateNumber.js
new file mode 100644
index 0000000000..d6031fc2e4
--- /dev/null
+++ b/Maths/FigurateNumber.js
@@ -0,0 +1,76 @@
+/**
+ Problem Statment and Explanation :
+ Triangular => https://en.wikipedia.org/wiki/Triangular_number
+ Tetrahedral => https://en.wikipedia.... | 1 | 1 | 0 | [{"id": "G0", "claim": "Style the code using standard.js (e.g. use strict equality instead of loose equality).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
TheAlgorithms__JavaScript__799 | TheAlgorithms/JavaScript | 799 | defect | 8b27316b0953488a8c7b0d5a300ce7e2d5d7982b | 79c7ce45c84907c8c2b4a0ef88c413443c562850 | Extended Eucliedian Algorithm added to Maths folder | # Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### **Describe your change:**
* [x] Add an algorithm?
* [x] Fix a bug or typo in an existing algorithm?
* [ ] Do... | diff --git a/Conversions/MeterToFeetConversion.js b/Conversions/MeterToFeetConversion.js
index 13348cd6b6..c6094b06bd 100644
--- a/Conversions/MeterToFeetConversion.js
+++ b/Conversions/MeterToFeetConversion.js
@@ -1,10 +1,10 @@
// Foot: https://en.wikipedia.org/wiki/Foot_(unit)
const feetToMeter = (feet) => {
- ret... | 1 | 1 | 0 | [{"id": "G0", "claim": "The header comment should add at least a short description of the problem instead of only linking to a reference.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TheAlgorithms__JavaScript__810 | TheAlgorithms/JavaScript | 810 | defect | 32781c2aa1f791fca3f15301e9284fb3974209f9 | 697b361617cc425c1c546c2b58cb65e96b8792fb | Added Aliquot Sum Implementation | ### **Describe your change:**
* [x] Add an algorithm?
* [ ] Fix a bug or typo in an existing algorithm?
* [ ] Documentation change?
### **Checklist:**
* [x] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Javascript/blob/master/CONTRIBUTING.md).
* [x] This pull request is all my own work -- I... | diff --git a/Maths/AliquotSum.js b/Maths/AliquotSum.js
new file mode 100644
index 0000000000..9d5429c02f
--- /dev/null
+++ b/Maths/AliquotSum.js
@@ -0,0 +1,27 @@
+/*
+ A program to calculate the Aliquot Sum of a number.
+ Article on Aliquot Sum: https://en.wikipedia.org/wiki/Aliquot_sum
+ */
+
+/**
+ * @param {Number... | 2 | 2 | 1 | [{"id": "G0", "claim": "Please fix the tests, which are failing.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Add a short description of what an Aliquot Sum is, even though proper references were added.", "category": "documentation", "verdict": "s... | null |
TheAlgorithms__JavaScript__817 | TheAlgorithms/JavaScript | 817 | defect | 4e18bbdeb6c2501fd77168539d75e623a2560015 | e0f20f12dba29c3e579731f7ea5d2e4942f2bd9b | Add MinHeap and test | # Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### **Describe your change:**
* [x] Add an algorithm?
* [ ] Fix a bug or typo in an existing algorithm?
* [ ] Do... | diff --git a/Data-Structures/Heap/MinHeap.js b/Data-Structures/Heap/MinHeap.js
new file mode 100644
index 0000000000..a19999eed5
--- /dev/null
+++ b/Data-Structures/Heap/MinHeap.js
@@ -0,0 +1,109 @@
+class MinHeap {
+ constructor(array) {
+ this.heap = this.initializeHeap(array);
+ }
+
+ /**
+ * a... | 2 | 2 | 0 | [{"id": "G0", "claim": "MinHeap.js should include a description of the data structure plus links to references explaining it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code should be formatted according to standard.js.", "category": "main... | null |
TheAlgorithms__JavaScript__855 | TheAlgorithms/JavaScript | 855 | defect | 51415f8a12ffe60edcb7fc31a18305d6128496e7 | 019e205ceb9b34362969f436d51490bda87cfd40 | Add test Case for Palindrome Recursive | # Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### Describe your change:
* [ ] Add an algorithm?
* [x] Fix a bug or typo in an existing algorithm?
* [x] Docume... | diff --git a/Recursive/Palindrome.js b/Recursive/Palindrome.js
index 9357135174..f023bc1629 100644
--- a/Recursive/Palindrome.js
+++ b/Recursive/Palindrome.js
@@ -1,12 +1,14 @@
+/**
+ * @function Palindrome
+ * @description Check whether the given string is Palindrome or not.
+ * @param {String} str - The input string
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The comparisons to `null` and `undefined` after the `typeof str !== 'string'` check are redundant (LGTM: 2 'Comparison between inconvertible types' alerts), since a null/undefined value can never have typeof 'string'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sc... | null |
TheAlgorithms__JavaScript__894 | TheAlgorithms/JavaScript | 894 | defect | 29a3ab73bc27db132dbf6227ee6a590c1bb6ad61 | a46116d4e8b1c338f9b0c7f2f993ae4de60793f5 | merge: Upgrade Lower function | # Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### Describe your change:
* [x] Optimize the `Lower.js` algo via using regex and String.prototype.replace method.
... | diff --git a/String/Lower.js b/String/Lower.js
index 3805889948..8b2fb83234 100644
--- a/String/Lower.js
+++ b/String/Lower.js
@@ -1,8 +1,8 @@
/**
* @function lower
* @description Will convert the entire string to lowercase letters.
- * @param {String} url - The input URL string
- * @return {String} Lowercase stri... | 1 | 1 | 0 | [{"id": "G0", "claim": "The function need not declare a new lowerString variable and should just return the replace expression directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TheAlgorithms__JavaScript__895 | TheAlgorithms/JavaScript | 895 | defect | 29a3ab73bc27db132dbf6227ee6a590c1bb6ad61 | 7347ff6fb0483cbc6d677bf797ec392dfa62f104 | Bubble Sort enhancements for nearly sorted or sorted array, added test cases and documentation | # Welcome to JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### Describe your change: Bubble Sort enhancements for nearly sorted or sorted array, added test cases and documentat... | diff --git a/Sorts/BubbleSort.js b/Sorts/BubbleSort.js
index 1ed5c70d6e..5ee9ffed40 100644
--- a/Sorts/BubbleSort.js
+++ b/Sorts/BubbleSort.js
@@ -2,6 +2,7 @@
* compares adjacent element and swaps their position
* The big O on bubble sort in worst and best case is O(N^2).
* Not efficient.
+* Somehow if the array... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment added on line 24 should read '// flag for optimization' — a space after '//' and the American spelling.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
TheAlgorithms__JavaScript__897 | TheAlgorithms/JavaScript | 897 | defect | dbc98d096bffac40b53768ee954f03063ee72f0b | dd9481e22b2a512e5ba6b5c4e280d266c688318f | Algorithm to calculate the Arithmetic Geometric Mean | Added an algorithm to compute/find the Arithmetic-Geometric Mean between 2 numbers `a` and `g`. I thought it would be a good idea since it shows how to compute at full precision without an `epsilon` comparison, and there's already an Arithmetic Mean so I added this for completeness.
# Welcome to JavaScript community... | diff --git a/Maths/ArithmeticGeometricMean.js b/Maths/ArithmeticGeometricMean.js
new file mode 100644
index 0000000000..d509ab857b
--- /dev/null
+++ b/Maths/ArithmeticGeometricMean.js
@@ -0,0 +1,24 @@
+/**
+ * @function agm
+ * @description This finds the Arithmetic-Geometric Mean between any 2 numbers.
+ * @param {Num... | 1 | 1 | 1 | [{"id": "G0", "claim": "Please add tests for the algorithm.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheAlgorithms__JavaScript__902 | TheAlgorithms/JavaScript | 902 | defect | 8bf29fe17c0f41ddcad2997e3a0379e1d6abafc8 | aaeed302833f874d349be0de281294fc54ea629e | Upgrade `checkAnagram` function & Fixes | # Welcome to the JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### Describe your change:
* [x] Optimize the algorithm via `Array.prototype.reduce` & `String.prototype.replac... | diff --git a/String/CheckAnagram.js b/String/CheckAnagram.js
index 21ca1458d8..2eafb7237c 100644
--- a/String/CheckAnagram.js
+++ b/String/CheckAnagram.js
@@ -1,10 +1,16 @@
-// An [Anagram](https://en.wikipedia.org/wiki/Anagram) is a string that is a word or phrase formed by rearranging the letters of a different word ... | 3 | 3 | 1 | [{"id": "G0", "claim": "The JSDoc should say the anagram check is not case sensitive, matching the rewritten case-insensitive implementation.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The cryptic one-line comment on the reduce call should be ... | null |
TheAlgorithms__JavaScript__928 | TheAlgorithms/JavaScript | 928 | defect | a545f766698934a55079edf8c04791c7624d4375 | ecf1d9a9a9ab8dac7248234a83c6a79650fedc58 | Add FindMinIterator algorithm | This is the renamed `FindMin` to `FindMinIterator` by @RuSaG0
Closes #870
Do the `standard` thing.
Rename `FindMin` to `FindMinIterator`
Rename to `FindMinIterator`
Pull `FindMin` from `master`
| diff --git a/Maths/FindMinIterator.js b/Maths/FindMinIterator.js
new file mode 100644
index 0000000000..fc1c7d0073
--- /dev/null
+++ b/Maths/FindMinIterator.js
@@ -0,0 +1,36 @@
+/**
+ * @function FindMinIterator
+ * @description Function to find the minimum number given in an array.
+ */
+
+const FindMinIterator = (_it... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the separator comments between the tests in Maths/test/FindMinIterator.test.js.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TheAlgorithms__JavaScript__964 | TheAlgorithms/JavaScript | 964 | defect | cdfa264b33418abb0016530996c1fed358796652 | 48329bf838adbd45d815dc48842d1dcabae800db | Improved `ROT13` function | # Welcome to the JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### Describe your change:
## Merged my master branch
- [ ] Add an algorithm?
- [ ] Fix a bug or typo in an exist... | diff --git a/Ciphers/ROT13.js b/Ciphers/ROT13.js
index e644b20283..60208a3e14 100644
--- a/Ciphers/ROT13.js
+++ b/Ciphers/ROT13.js
@@ -1,17 +1,24 @@
/**
- * Transcipher a ROT13 cipher
- * @param {String} text - string to be encrypted
- * @return {String} - decrypted string
+ * @function ROT13
+ * @description - ROT13... | 1 | 1 | 0 | [{"id": "G0", "claim": "Restore the newline at the end of package.json that the pull request's change removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
TheAlgorithms__JavaScript__991 | TheAlgorithms/JavaScript | 991 | defect | 8fc53906e63afc981633bfafc47752004441bac7 | b89bd2c2585a02f3c475d5de7f71699fac9f6f2c | Fix wiggle sort | # Welcome to the JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### Describe your change:
Fixes: #988
Renamed the algorithm "simplified wiggle-sort", because traditional wiggle-... | diff --git a/Sorts/SimplifiedWiggleSort.js b/Sorts/SimplifiedWiggleSort.js
new file mode 100644
index 0000000000..b3f85d6e83
--- /dev/null
+++ b/Sorts/SimplifiedWiggleSort.js
@@ -0,0 +1,49 @@
+/*
+ * Wiggle sort sorts the array into a wave like array.
+ * An array ‘arr[0..n-1]’ is sorted in wave form if arr[0] <= arr[1... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should add proper Jest tests rather than demonstrating the function's behaviour only in comments inside SimplifiedWiggleSort.js.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheAlgorithms__JavaScript__998 | TheAlgorithms/JavaScript | 998 | defect | 5641b6faea66edee9762e4ec88b026fc4bdf8272 | 43ec87f36f710fe993b2bf24792d8680a7b9ee18 | Add the Stooge Sort Algorithm | # Welcome to the JavaScript community
[](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/)
### Describe your change:
- [x] Add an algorithm?
- [ ] Fix a bug or typo in an existing algorithm?
- [ ] Docume... | diff --git a/Sorts/StoogeSort.js b/Sorts/StoogeSort.js
new file mode 100644
index 0000000000..0ff81e2943
--- /dev/null
+++ b/Sorts/StoogeSort.js
@@ -0,0 +1,21 @@
+/*
+ * Stooge Sort sorts an array based on divide and conquer principle
+ * more information: https://en.wikipedia.org/wiki/Stooge_sort
+ *
+ */
+export func... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add a warning about the algorithm's exceptionally bad runtime characteristics to the StoogeSort.js header comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the console.log(items) statement that stoogeSort execu... | null |
TheAlgorithms__Java__5214 | TheAlgorithms/Java | 5,214 | defect | be38886d4361a4d8414a16031da27c0e0e62fe41 | ddb058692fc552abd49bd703d47cb32ac5c0b461 | style: enable `TypeName` | Related to [#5119](https://github.com/TheAlgorithms/Java/issues/5119).
- [x] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md).
- [x] This pull request is all my own work -- I have not plagiarized it.
- [x] All filenames are in PascalCase.
- [x] All functions and var... | diff --git a/DIRECTORY.md b/DIRECTORY.md
index c8b38bb20343..7c46336f0911 100644
--- a/DIRECTORY.md
+++ b/DIRECTORY.md
@@ -18,6 +18,7 @@
* [ParenthesesGenerator](https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/backtracking/ParenthesesGenerator.java)
* [Permuta... | 1 | 1 | 0 | [{"id": "G0", "claim": "The class declaration line `final class RotateMatrixBy90Degrees {` has a stray double space before the brace and should read `final class RotateMatrixBy90Degrees {` to satisfy clang-format.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
TheAlgorithms__Java__5248 | TheAlgorithms/Java | 5,248 | defect | 308bdcfc192768c57071130181db30a1d387d0df | 1cf6847373dd311df0fc99051a317f28169c26fb | fix: avoid infinite loop in `SwapSort` | There was an issue where this sorting implementation could enter an infinite loop, such as in the test shouldAcceptWhenArrayWithDuplicateValueIsPassed.
The index variable was not being updated correctly.
The index may never reach len - 1 due to the flawed logic, leading to a potential infinite loop.
This fix a... | diff --git a/src/main/java/com/thealgorithms/sorts/SwapSort.java b/src/main/java/com/thealgorithms/sorts/SwapSort.java
index e0fa7087a49e..7ce953396209 100644
--- a/src/main/java/com/thealgorithms/sorts/SwapSort.java
+++ b/src/main/java/com/thealgorithms/sorts/SwapSort.java
@@ -9,64 +9,25 @@
*/
public class SwapSort... | 1 | 1 | 1 | [{"id": "G0", "claim": "The rewritten SwapSort is effectively a bubble sort, and vil02 requests replacing it with a count-of-smaller-elements swap variant (with a getSmallerElementCount helper).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheAlgorithms__Java__5315 | TheAlgorithms/Java | 5,315 | defect | 197718842f382ff83deb5d8f24fe541e0afd1025 | c297ed8c741e08aaae9b8ae304ba3edb52e152e1 | feat: add temperature unit conversions | <!--
Thank you for your contribution!
In order to reduce the number of notifications sent to the maintainers, please:
- create your PR as draft, cf. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests,
- ... | diff --git a/src/main/java/com/thealgorithms/conversions/AffineConverter.java b/src/main/java/com/thealgorithms/conversions/AffineConverter.java
new file mode 100644
index 000000000000..9032dc571ceb
--- /dev/null
+++ b/src/main/java/com/thealgorithms/conversions/AffineConverter.java
@@ -0,0 +1,23 @@
+package com.thealg... | 6 | 2 | 0 | [{"id": "G0", "claim": "It would be clearer and more structured to give these special converter classes their own package (e.g. `units`) inside `conversions`, so future additions are easier to find.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Units sh... | null |
TheAlgorithms__Java__5355 | TheAlgorithms/Java | 5,355 | defect | f5c0314111f5973748862e21d6e7ccbb9e53a3ee | 9794ccd91605c86cab954807ed75bd9528ce47fb | refactor: `GenericArrayListQueue` | Cleanup GenericArrayListQueue.
Readability improvements.
Added tests.
<!--
Thank you for your contribution!
In order to reduce the number of notifications sent to the maintainers, please:
- create your PR as draft, cf. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-t... | diff --git a/src/main/java/com/thealgorithms/datastructures/queues/GenericArrayListQueue.java b/src/main/java/com/thealgorithms/datastructures/queues/GenericArrayListQueue.java
index ec1e15e415b8..ca41671177cb 100644
--- a/src/main/java/com/thealgorithms/datastructures/queues/GenericArrayListQueue.java
+++ b/src/main/j... | 1 | 1 | 0 | [{"id": "G0", "claim": "Please remove the `main` demo method from GenericArrayListQueue.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
TheAlgorithms__Java__5462 | TheAlgorithms/Java | 5,462 | defect | 18f6f8c30ae993406cfac4774817b0313956161f | f7f498cdebd152c2d9a2bfd892c912b94aa20dea | Add Manacher’s Algorithm for Longest Palindromic Substring | <!--
Thank you for your contribution!
In order to reduce the number of notifications sent to the maintainers, please:
- create your PR as draft, cf. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests,
- ... | diff --git a/src/main/java/com/thealgorithms/strings/Manacher.java b/src/main/java/com/thealgorithms/strings/Manacher.java
new file mode 100644
index 000000000000..07a07da80c0f
--- /dev/null
+++ b/src/main/java/com/thealgorithms/strings/Manacher.java
@@ -0,0 +1,91 @@
+package com.thealgorithms.strings;
+
+/**
+ * Wikip... | 10 | 10 | 0 | [{"id": "G0", "claim": "The comment above the private constructor is redundant and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The main method is unnecessary in an algorithm library whose functionality is already covered by... | null |
TheAlgorithms__Java__5490 | TheAlgorithms/Java | 5,490 | defect | 7a5a9e3bda44bdab23c8ace87b4cb67c231a2ea3 | 36e1ab01f53590bf2b81417deed95a600f8725d1 | Added a Simple XOR Cipher | <!--
Thank you for your contribution!
In order to reduce the number of notifications sent to the maintainers, please:
- create your PR as draft, cf. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests,
- ... | diff --git a/DIRECTORY.md b/DIRECTORY.md
index bbcee88e52be..fb1074340334 100644
--- a/DIRECTORY.md
+++ b/DIRECTORY.md
@@ -52,6 +52,7 @@
* [RSA](https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/ciphers/RSA.java)
* [SimpleSubCipher](https://github.com/TheAlgorit... | 1 | 1 | 1 | [{"id": "G0", "claim": "Tests should be added showing that the encrypted text is different from the source text.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheAlgorithms__Java__5631 | TheAlgorithms/Java | 5,631 | defect | 676d451aa605a9442cdda85badbd0877816d6cf7 | 677cc08ee59dc98df0f5e3d494ff8ad98723c8b8 | Added ADFGVXCipher.java | <!--
Thank you for your contribution!
In order to reduce the number of notifications sent to the maintainers, please:
- create your PR as draft, cf. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests,
- ... | diff --git a/src/main/java/com/thealgorithms/ciphers/ADFGVXCipher.java b/src/main/java/com/thealgorithms/ciphers/ADFGVXCipher.java
new file mode 100644
index 000000000000..249e8d66b2e3
--- /dev/null
+++ b/src/main/java/com/thealgorithms/ciphers/ADFGVXCipher.java
@@ -0,0 +1,123 @@
+package com.thealgorithms.ciphers;
+
+... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add JUnit tests for the ADFGVX cipher (the pull request adds no tests).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheAlgorithms__Java__5769 | TheAlgorithms/Java | 5,769 | defect | 596c6147af0af91d1ca8990ed91820df1fe3b8ea | 93a26faed2898355b72778c05fee7b2a489421ac | Add tests for `EulerMethod` | <!--
Thank you for your contribution!
In order to reduce the number of notifications sent to the maintainers, please:
- create your PR as draft, cf. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests,
- ... | diff --git a/DIRECTORY.md b/DIRECTORY.md
index 06307d4aca78..c55982edb857 100644
--- a/DIRECTORY.md
+++ b/DIRECTORY.md
@@ -912,6 +912,7 @@
* [DigitalRootTest](https://github.com/TheAlgorithms/Java/blob/master/src/test/java/com/thealgorithms/maths/DigitalRootTest.java)
* [DistanceFormulaTest](h... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new tests in EulerMethodTest should be refactored to use JUnit parameterized tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TheAlgorithms__Java__5848 | TheAlgorithms/Java | 5,848 | defect | 3e10f8f1d8cbcc7f675ae1b6395b1e2e8b2800a4 | beaec8aaca3af3178a71519853a763c235e5aefd | Added Maximum Sliding Window algorithm using deque for efficient O(n) solution. | <!-- For completed items, change [ ] to [x] -->
- [x] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md).
- [x] This pull request is all my own work -- I have not plagiarized it.
- [x] All filenames are in PascalCase.
- [x] All functions and variable names follow Java... | diff --git a/src/main/java/com/thealgorithms/others/MaximumSlidingWindow.java b/src/main/java/com/thealgorithms/others/MaximumSlidingWindow.java
new file mode 100644
index 000000000000..1d17f2970b34
--- /dev/null
+++ b/src/main/java/com/thealgorithms/others/MaximumSlidingWindow.java
@@ -0,0 +1,69 @@
+package com.thealg... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the `main` function and add tests for MaximumSlidingWindow.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TheAlgorithms__Java__5859 | TheAlgorithms/Java | 5,859 | defect | 2a518e3c9a44c4333c5ec9283895132264773afb | 7d5dcd69896e86eab6ec27807ad02ad84bee2e0a | refactor: Enhance docs, add more tests in `ReverseBits` | <!--
Thank you for your contribution!
In order to reduce the number of notifications sent to the maintainers, please:
- create your PR as draft, cf. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests,
- ... | diff --git a/src/main/java/com/thealgorithms/bitmanipulation/ReverseBits.java b/src/main/java/com/thealgorithms/bitmanipulation/ReverseBits.java
index e8f2930d3afe..db082ce711cf 100644
--- a/src/main/java/com/thealgorithms/bitmanipulation/ReverseBits.java
+++ b/src/main/java/com/thealgorithms/bitmanipulation/ReverseBit... | 1 | 1 | 0 | [{"id": "G0", "claim": "Restore the inline comments that the PR removed from the reverseBits loop, since they are useful here to explain how the binary operators work.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TheAlgorithms__Java__6079 | TheAlgorithms/Java | 6,079 | defect | df0c997e4bce827246ee9d93ec3b1fe3c55a4332 | df38bb1b3d19782814f569381b6db46d367a9d47 | adding the fibonacci series to the Recursion package | <!--
Thank you for your contribution!
In order to reduce the number of notifications sent to the maintainers, please:
- create your PR as draft, cf. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests,
- ... | diff --git a/src/main/java/com/thealgorithms/Recursion/FibonacciSeries.java b/src/main/java/com/thealgorithms/Recursion/FibonacciSeries.java
new file mode 100644
index 000000000000..fbdd89ed4e7d
--- /dev/null
+++ b/src/main/java/com/thealgorithms/Recursion/FibonacciSeries.java
@@ -0,0 +1,24 @@
+package com.thealgorithm... | 3 | 3 | 2 | [{"id": "G0", "claim": "Please add JUnit tests for the FibonacciSeries class.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Please remove the main method from FibonacciSeries.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "... | null |
TheAlgorithms__Java__6127 | TheAlgorithms/Java | 6,127 | defect | bd785dea4dadc2b2967d174cf3afebe88a699fb8 | ef9d447df94ece133db232561ef69e79c4bba422 | Added Goldbach's Conjecture algorithm. | <!--
Thank you for your contribution!
In order to reduce the number of notifications sent to the maintainers, please:
- create your PR as draft, cf. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests,
- ... | diff --git a/src/main/java/com/thealgorithms/maths/GoldbachConjecture.java b/src/main/java/com/thealgorithms/maths/GoldbachConjecture.java
new file mode 100644
index 000000000000..0dc128e3af1e
--- /dev/null
+++ b/src/main/java/com/thealgorithms/maths/GoldbachConjecture.java
@@ -0,0 +1,55 @@
+package com.thealgorithms.m... | 3 | 3 | 1 | [{"id": "G0", "claim": "The pull request should reuse the existing PrimeCheck algorithm for primeness checking instead of its own private isPrime helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add some JUnit tests... | null |
TheAlgorithms__Java__6204 | TheAlgorithms/Java | 6,204 | defect | 45148874e841c3b0db0a5a0d46e2871f30b0d3e0 | 3ea012b897cce844df30545b3423302c2ffa3bea | Add ReservoirSampling algorithm to randomized module | ### Algorithm Overview:
- Efficient for selecting k random elements from a stream of unknown size
- Commonly used in streaming systems, big data pipelines, and memory-limited environments
- Time Complexity: O(n)
- Space Complexity: O(k)
---
### Implementation Details:
- Class: `ReservoirSampling`
- Packag... | diff --git a/src/main/java/com/thealgorithms/randomized/ReservoirSampling.java b/src/main/java/com/thealgorithms/randomized/ReservoirSampling.java
new file mode 100644
index 000000000000..5256c4869262
--- /dev/null
+++ b/src/main/java/com/thealgorithms/randomized/ReservoirSampling.java
@@ -0,0 +1,63 @@
+package com.the... | 4 | 4 | 3 | [{"id": "G0", "claim": "The sample method has no error handling for the case sampleSize > stream.length; the reviewer suggests there should be error handling for invalid input.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request ships no... | null |
TheAlgorithms__Java__6333 | TheAlgorithms/Java | 6,333 | defect | a8ad1625170273ee36e82f38d84590b5e3bc8248 | 6ca85924e7f8affb1a0664f9733a93caaf7a4793 | Fix(searches): Correct column pointer initialization in RowColumnWiseSorted2dArrayBinarySearch | <!--
Thank you for your contribution!
In order to reduce the number of notifications sent to the maintainers, please:
- create your PR as draft, cf. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests,
- ... | diff --git a/src/main/java/com/thealgorithms/searches/RowColumnWiseSorted2dArrayBinarySearch.java b/src/main/java/com/thealgorithms/searches/RowColumnWiseSorted2dArrayBinarySearch.java
index 3b4b0b08377f..b40c7554d84b 100644
--- a/src/main/java/com/thealgorithms/searches/RowColumnWiseSorted2dArrayBinarySearch.java
+++ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The author should add a test that verifies the column-pointer fix actually works.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheAlgorithms__Java__6494 | TheAlgorithms/Java | 6,494 | defect | 0ff2c06a475bb224e95d581d63cf03509f31c0f6 | 1546b1521f4a8e785078ce4022eab26f9e6711bc | fix: revert ReverseStack deletion and verify linting (#6474) | Context
The ReverseStackUsingRecursion.java implementation and ReverseStackUsingRecursionTest.java were accidentally deleted.
This PR restores both files and ensures they meet the project's style and linting requirements.
Changed
Verified formatting and linting:
Ran mvn checkstyle:check → BUILD SUCCESS
... | diff --git a/src/main/java/com/thealgorithms/datastructures/stacks/ReverseStack.java b/src/main/java/com/thealgorithms/datastructures/stacks/ReverseStack.java
index e9de14b53302..2d291404d8e1 100644
--- a/src/main/java/com/thealgorithms/datastructures/stacks/ReverseStack.java
+++ b/src/main/java/com/thealgorithms/datas... | 1 | 1 | 1 | [{"id": "G0", "claim": "Resolve the format issues in the updated files so that the failing workflows pass.", "category": "style", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
TheAlgorithms__Java__6990 | TheAlgorithms/Java | 6,990 | defect | bb6385e756a0159a29655c745682e95ca7b41ada | 3b569d63d009fc092ac359e3fc030d888dc5a6f1 | Add Trapping Rainwater problem implementation (Two Pointer Approach) | <!--
Thank you for your contribution!
In order to reduce the number of notifications sent to the maintainers, please:
- create your PR as draft, cf. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests,
- ... | diff --git a/src/main/java/com/thealgorithms/searches/TrappingRainwater.java b/src/main/java/com/thealgorithms/searches/TrappingRainwater.java
new file mode 100644
index 000000000000..5cec9b8d98e1
--- /dev/null
+++ b/src/main/java/com/thealgorithms/searches/TrappingRainwater.java
@@ -0,0 +1,48 @@
+package com.thealgori... | 2 | 2 | 2 | [{"id": "G0", "claim": "The pull request adds a new algorithm class without adding a corresponding test class, and a test class should always be added for a new algorithm/class.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "TrappingRainwater and its te... | null |
TheAlgorithms__Java__7065 | TheAlgorithms/Java | 7,065 | defect | 98eecb9f16003e612ad8d84ed6f3c78ae10c7005 | 3dd3e9205eadd69da67d898bd63089e137d017b8 | Add Power of Four Check using bit manipulation | Fixes #6940
## Description
Added a utility class to check if a number is a power of four using efficient bit manipulation.
## Implementation Details
- Uses bit manipulation to check if a number is a power of four in O(1) time
- Verifies the number is a power of two: `(n & (n-1)) == 0`
- Checks if the set bit ... | diff --git a/curriculum/challenges/english/blocks/lecture-importance-of-accessibility-and-good-html-structure/672a537f05f3798bd4f57d2d.md b/curriculum/challenges/english/blocks/lecture-importance-of-accessibility-and-good-html-structure/672a537f05f3798bd4f57d2d.md
new file mode 100644
index 000000000000..e69de29bb2d1
d... | 2 | 2 | 0 | [{"id": "G0", "claim": "The implemented PowerOfFour classes should be placed in the same package as the existing PowerOfTwoOrNot class (com.thealgorithms.maths).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unrelated curriculum markdown file added ... | null |
TheAlgorithms__Java__7073 | TheAlgorithms/Java | 7,073 | defect | c6880c195d778b1d19fc13d4be1ae09dc355de2f | 8931014079d0080ee946bb61736971b20b92f2e5 | feat: add Sudoku Solver using Backtracking | Implemented Sudoku Solver using backtracking algorithm to solve 9x9 Sudoku puzzles.
## Changes
- Added `SudokuSolver.java` with backtracking implementation
- Added `SudokuSolverTest.java` with comprehensive test cases
- Validates row, column, and 3x3 subgrid constraints
- Handles edge cases (null board, invalid ... | diff --git a/src/main/java/com/thealgorithms/backtracking/SudokuSolver.java b/src/main/java/com/thealgorithms/backtracking/SudokuSolver.java
new file mode 100644
index 000000000000..543fe2d02b50
--- /dev/null
+++ b/src/main/java/com/thealgorithms/backtracking/SudokuSolver.java
@@ -0,0 +1,157 @@
+package com.thealgorith... | 1 | 1 | 0 | [{"id": "G0", "claim": "The old Sudoku class in the puzzlesandgames package should be removed from the repository (M007 adds that both that file and its corresponding test class are still present and must go).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
TheAlgorithms__Java__7376 | TheAlgorithms/Java | 7,376 | defect | 1edf319cb3da42c75ac7c5cfeaf1928d409d9153 | 7efe55edfdf753e4c41ce1fe56e53bffe64e7747 | feat(geometry): add line segment intersection utility | ## Description
Add a dedicated geometry utility for line segment intersection.
Fixes #6856
## Changes
- Added `LineIntersection` utility with:
- `intersects(...)` for segment intersection checks (including endpoint touching / collinear checks)
- `intersectionPoint(...)` to compute a unique geometric intersection ... | diff --git a/src/main/java/com/thealgorithms/geometry/LineIntersection.java b/src/main/java/com/thealgorithms/geometry/LineIntersection.java
new file mode 100644
index 000000000000..f061f93eeb59
--- /dev/null
+++ b/src/main/java/com/thealgorithms/geometry/LineIntersection.java
@@ -0,0 +1,94 @@
+package com.thealgorithm... | 4 | 4 | 3 | [{"id": "G0", "claim": "intersectionPoint(...) returns Optional.empty() whenever the segments are parallel/collinear (denominator == 0.0), incorrectly dropping the case where collinear segments touch at a single point (e.g., a shared endpoint) where a unique intersection point exists and should be returned; a test for ... | null |
TheAlgorithms__Java__7377 | TheAlgorithms/Java | 7,377 | defect | 1edf319cb3da42c75ac7c5cfeaf1928d409d9153 | 7f0c002ebc5d48645afeeaf57065067c9919e1a9 | feat(graph): add DSU-based account merge algorithm | ## Description
Add an account merge implementation using Disjoint Set Union (Union-Find).
Fixes #6831
## Changes
- Added `AccountMerge.mergeAccounts(List<List<String>>)` in `com.thealgorithms.graph`.
- Uses path compression + union by rank to merge accounts sharing at least one email.
- Added tests for:
- merging s... | diff --git a/src/main/java/com/thealgorithms/geometry/LineIntersection.java b/src/main/java/com/thealgorithms/geometry/LineIntersection.java
new file mode 100644
index 000000000000..f061f93eeb59
--- /dev/null
+++ b/src/main/java/com/thealgorithms/geometry/LineIntersection.java
@@ -0,0 +1,94 @@
+package com.thealgorithm... | 4 | 2 | 1 | [{"id": "G0", "claim": "Accounts that contain only a name (no emails) are omitted from the merged output because rootToEmails is populated only from emailToAccount; handle accounts with no emails (e.g. account.size() <= 1) so they are returned as standalone merged accounts, and add a test for this case.", "category": "... | null |
TheAlgorithms__Python__11532 | TheAlgorithms/Python | 11,532 | defect | c8e131b86c35c8fa4ca14aa85edbd4a106575882 | 3222bd3d311befaeb6d7ff93658f0663b0fa2117 | Implemented KD Tree Data Structure | ### Describe your change:
This pull request adds an implementation of the KD-Tree data structure along with related functionalities, such as nearest neighbor searches.
**Definition**: The KD-Tree is a space-partitioning data structure used for organizing points in a k-dimensional space. (URL: [KD-Tree](https://en... | diff --git a/DIRECTORY.md b/DIRECTORY.md
index 11de569a2c25..1ca537b991c8 100644
--- a/DIRECTORY.md
+++ b/DIRECTORY.md
@@ -285,6 +285,12 @@
* Trie
* [Radix Tree](data_structures/trie/radix_tree.py)
* [Trie](data_structures/trie/trie.py)
+ * KD Tree
+ * [KD Tree Node](data_structures/kd_tree/kd_node.py)... | 10 | 10 | 1 | [{"id": "G0", "claim": "As there is no test file in this pull request and no test functions in the kd_tree files, please provide doctests for the functions build_kdtree, hypercube_points, KDNode.__init__, nearest_neighbour_search, search and main.", "category": "testing", "verdict": "supported", "priority": "P1", "scop... | null |
TheAlgorithms__Python__14251 | TheAlgorithms/Python | 14,251 | defect | 678dedbbf94be54b3c9c258368e28bb8e7736d62 | 210c14e6fa2641c6585feb49c103b7c6cdd1f6e5 | feat: add Graham Scan convex hull algorithm | ## Description
This PR adds an implementation of the **Graham Scan algorithm** for computing the convex hull of a set of 2D points to the `geometry` module.
### What is the Graham Scan?
The Graham scan is a classic computational geometry algorithm that finds the convex hull of a finite set of points in the pla... | diff --git a/data_structures/hashing/hash_table_with_linked_list.py b/data_structures/hashing/hash_table_with_linked_list.py
index f404c5251246..c8dffa30b8e8 100644
--- a/data_structures/hashing/hash_table_with_linked_list.py
+++ b/data_structures/hashing/hash_table_with_linked_list.py
@@ -8,7 +8,7 @@ def __init__(self... | 1 | 1 | 0 | [{"id": "G0", "claim": "Provide descriptive names for the `x` and `y` parameters of `Point.__init__` in geometry/graham_scan.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TheAlgorithms__Python__9295 | TheAlgorithms/Python | 9,295 | defect | cfabd91a8ba83bbe23d2790494e2450118044fcc | 4714f9b6a2d3bda331113c00aeb5110bb0ecf2ea | Enhancement of the knapsack algorithm with memorization and generalisation | ### Describe your change:
* [x] Add an algorithm?
* [ ] Fix a bug or typo in an existing algorithm?
* [x] Documentation change?
### Checklist:
* [x] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md).
* [x] This pull request is all my own work -- I have not ... | diff --git a/knapsack/README.md b/knapsack/README.md
index f31e5f591412..686ea929255a 100644
--- a/knapsack/README.md
+++ b/knapsack/README.md
@@ -1,4 +1,4 @@
-# A naive recursive implementation of 0-1 Knapsack Problem
+# A recursive implementation of 0-N Knapsack Problem
This overview is taken from:
diff --git a/... | 5 | 5 | 0 | [{"id": "G0", "claim": "Consider adding `allow_repetition` as a parameter of the memoized recursive helper, since `lru_cache` uses the helper's parameters as part of its memoization key.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The recursive helper... | null |
TheAlgorithms__TypeScript__220 | TheAlgorithms/TypeScript | 220 | defect | 4acf117fa277538feaed8d4c3ac4ca706a006ea3 | aaf8b599c333de05f220eeabe5db7bea7c29e11c | feat: add tarjan algorithm for strongly connected components | see https://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm | diff --git a/graph/tarjan.ts b/graph/tarjan.ts
new file mode 100644
index 00000000..da16d7c6
--- /dev/null
+++ b/graph/tarjan.ts
@@ -0,0 +1,71 @@
+/**
+ * @function tarjan
+ * @description Given a graph, find the strongly connected components(SCC). A set of nodes form a SCC if there is a path between all pairs of point... | 5 | 4 | 0 | [{"id": "G0", "claim": "The doc comment does not state the order of the returned SCCs; the reviewer asks whether the SCCs are topologically sorted.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Tarjan tests duplicate the Kosaraju tests, and t... | null |
TheAlgorithms__TypeScript__30 | TheAlgorithms/TypeScript | 30 | defect | 781a0e79044cf88ec3cf692edbeefb8f7b27872f | c5b6c96b412b627b443a5ef8c4a6bc0f237941a5 | algorithm: average/mean | Includes changes related to Issue: #10
Included a new maths function to calculate the mean of an array of numeric values, as well as associated tests | diff --git a/Maths/AverageMean.ts b/Maths/AverageMean.ts
new file mode 100644
index 00000000..0a5b0289
--- /dev/null
+++ b/Maths/AverageMean.ts
@@ -0,0 +1,21 @@
+/**
+ * @function AverageMean
+ * @description This script will find the mean value of a array of numbers.
+ * @param {number[]} numbers - Array of numeric va... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `Array.isArray` check in `AverageMean` is redundant given the `number[]` parameter type and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exported function `AverageMean` should be renamed — jus... | null |
TheAlgorithms__TypeScript__32 | TheAlgorithms/TypeScript | 32 | defect | 781a0e79044cf88ec3cf692edbeefb8f7b27872f | 978d822310ac1924c22925c99cf6a077914342e2 | Algorithm: Binary Search | Added recursive and iterative implementations of binary search algorithm. Added jest unit tests for binary search. | diff --git a/Search/BinarySearch.ts b/Search/BinarySearch.ts
new file mode 100644
index 00000000..7c9e1799
--- /dev/null
+++ b/Search/BinarySearch.ts
@@ -0,0 +1,58 @@
+/**
+ * @function binarySearch
+ * @description binary search algorithm (iterative & recursive implementations) for a sorted array.
+ *
+ * The algori... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use an if-else rather than a ternary for readability when narrowing the search window.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A shift could be used for floor division by two instead of Math.floor((start + end) / 2... | null |
TheAlgorithms__TypeScript__83 | TheAlgorithms/TypeScript | 83 | defect | ca4cf6d9fce1f05b8278d8d6cae03bff597c43da | bad2f12587062a3a1ad98e729ebaddfc5fcf11ac | algorithm: Added Hamming Distance | This PR aims to add the implementation for measuring the hamming distance between two strings. The algorithms entry for [Hamming distance](https://the-algorithms.com/algorithm/hamming-distance). | diff --git a/DIRECTORY.md b/DIRECTORY.md
index 731d3433..71d04f08 100644
--- a/DIRECTORY.md
+++ b/DIRECTORY.md
@@ -20,6 +20,7 @@
* [Fibonacci](https://github.com/TheAlgorithms/TypeScript/blob/HEAD/maths/fibonacci.ts)
* [Find Min](https://github.com/TheAlgorithms/TypeScript/blob/HEAD/maths/find_min.ts)
* [Great... | 4 | 2 | 0 | [{"id": "G0", "claim": "The loop over the string characters could omit its braces (style point, reviewer also suggests `i++`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The loop counter should use `i++` instead of `i += 1`.", "category": "m... | null |
TheAssemblyArmada__Vanilla-Conquer__627 | TheAssemblyArmada/Vanilla-Conquer | 627 | defect | 924a8aea31a248be27afee1a863afdb9946897a2 | 7b0d8f4c0e647c9dbbe31512a814b44f36c11e0a | Gamepad support | Gamepad support from PS Vita port. Tested on Linux with Xbox Series X (or whatever that name is) controller.
I used bindings from Vita port:
Left analog stick - Cursor movement
Right analog stick - Map scrolling
Right trigger - Cursor speedup
A - Left mouse button
B - Right mouse button
X - G (Guard Area)
Y - F... | diff --git a/common/settings.cpp b/common/settings.cpp
index 89a03a9e8..dd1122636 100644
--- a/common/settings.cpp
+++ b/common/settings.cpp
@@ -11,6 +11,8 @@ SettingsClass::SettingsClass()
*/
Mouse.RawInput = true;
Mouse.Sensitivity = 100;
+ Mouse.ControllerEnabled = false;
+ Mouse.ControllerPoint... | 7 | 7 | 4 | [{"id": "G0", "claim": "When the controller is enabled, the mouse cursor does not move in menus / fails to function at all in menus.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In windowed mode with RawInput disabled, after moving the cursor with... | null |
TheBevyFlock__bevy_cli__125 | TheBevyFlock/bevy_cli | 125 | defect | 5be367e9f4a9dc7c70b3db815740f69311cec6dd | d6058f0ab6731ea64e4fa89547d5aedeeb702a92 | Implement UI testing framework | Closes #31. Previously attempted in #32. Rebased off of #124, so blocked until that is merged.
This PR implements UI tests: special programs that check lint diagnostics. UI tests can be used to ensure that a lint functions correctly, and handles all edge cases.
This has been a _long_ time in the making, but I'm s... | diff --git a/Cargo.lock b/Cargo.lock
index 81ac6050..4ef0abf2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -216,13 +216,19 @@ dependencies = [
[[package]]
name = "addr2line"
-version = "0.24.1"
+version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f5fb1d8e4442bd405fdfd1da... | 2 | 2 | 2 | [{"id": "G0", "claim": "Hardcoding the `registry+https://github.com/rust-lang/crates.io-index#bevy@` package ID prefix is fragile because Cargo does not guarantee package IDs start with that string, and it prevents switching the dependency to a file path or Git repository.", "category": "correctness", "verdict": "suppo... | null |
TheBevyFlock__bevy_cli__139 | TheBevyFlock/bevy_cli | 139 | defect | 603a7c60cd0f849b5a63930ff6bdeb45da3a0912 | 17ff3afa634150120b5006fbc1f0a835d8995a8b | Add `missing_reflect` lint (attempt 2) | Closes #54. See #137 for past attempt.
This adds a lint that lets users require all components, resources, and events derive `Reflect`. `Reflect` is often used by tools such as `bevy-inspector-egui` to view the state of the world while the game is running, but these tools are far less useful if they do not have acce... | diff --git a/bevy_lint/src/lints/missing_reflect.rs b/bevy_lint/src/lints/missing_reflect.rs
new file mode 100644
index 00000000..f91f1b2d
--- /dev/null
+++ b/bevy_lint/src/lints/missing_reflect.rs
@@ -0,0 +1,209 @@
+//! Checks for components, resources, and events that do not implement `Reflect`.
+//!
+//! # Motivatio... | 2 | 2 | 1 | [{"id": "G0", "claim": "The lint should check whether all fields already implement `Reflect` (i.e. whether the type can actually be reflected) before suggesting `#[derive(Reflect)]`, since some types cannot be `Reflect`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
TheBevyFlock__bevy_cli__247 | TheBevyFlock/bevy_cli | 247 | defect | 0f59e564603bf3bbb47976db3d9ed66f2bea2386 | 94950282ebf25fac875e17220e0415d3a8c50769 | feat: use assert_cmd | - Switch to`assert_cmd`
- rename the `dev` tests to `debug`
- rename `clean_target_binaries` to `clean_target_artifacts` and require the path to be already set to the target instead of joining inside.
- Simplify `executable` | diff --git a/Cargo.lock b/Cargo.lock
index 57f0eaa6..38490a82 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -374,6 +374,22 @@ dependencies = [
"stable_deref_trait",
]
+[[package]]
+name = "assert_cmd"
+version = "2.0.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc1835b7f27878de8... | 3 | 2 | 0 | [{"id": "G0", "claim": "Running the tests via `Command::cargo_bin(\"bevy\")` may test a potentially outdated installed version of the Bevy CLI instead of the current one; use the path to ensure the current version is always tested.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introdu... | null |
TheBevyFlock__bevy_cli__314 | TheBevyFlock/bevy_cli | 314 | defect | bd4e364c472b20feb81646eef43992998c08fa1b | 0a1b64cc0ce6ee064872cc1a8c5f071168fa3ce0 | Create `iter_current_update_events` lint | Closes #39, and is an alternative to #262.
This PR adds the `iter_current_update_events` lint, which checks for calls to `Events::<T>::iter_current_update_events()`. While working on this, I learned about and started using type adjustment, so this PR also includes an addition to the contributor's guide on that.
| diff --git a/bevy_lint/CHANGELOG.md b/bevy_lint/CHANGELOG.md
index 5896e639..7d12979b 100644
--- a/bevy_lint/CHANGELOG.md
+++ b/bevy_lint/CHANGELOG.md
@@ -11,6 +11,10 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
**All Changes**: [`lint-v0.2.0...main`](https://github.com/TheBevy... | 1 | 1 | 1 | [{"id": "G0", "claim": "The lint should skip expressions that originate from external macros, via an `in_external_macro` early return at the top of `check_expr`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheBevyFlock__bevy_cli__323 | TheBevyFlock/bevy_cli | 323 | defect | 0adaa5f9ed26bc9c0aa56d855f3091840a9efd3f | a449fd828622f79da54b5e691c25e87ac16fb7bb | Linter: Support Bevy 0.16 | This updates the linter to support Bevy 0.16. As https://github.com/TheBevyFlock/bevy_cli/issues/138 has not yet been
implemented, Bevy 0.15 support is being dropped.
Relatively easy bump, all the `Query` and `QueryState` methods no longer panic, so I removed them from the `PanickingMethods` Lint. We will clean th... | diff --git a/Cargo.lock b/Cargo.lock
index ae66d243..a977b09e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,6 +2,65 @@
# It is not intended for manual editing.
version = 4
+[[package]]
+name = "accesskit"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "becf0eb5215... | 6 | 5 | 1 | [{"id": "G0", "claim": "The dev-dependency `bevy = { version = \"0.16.0-rc.2\" }` enables all default features because the feature flags needed by `Transform` were not identified; the author asks which default features are needed for 0.16 so the rest could be disabled again.", "category": "maintainability", "verdict": ... | null |
TheBevyFlock__bevy_cli__346 | TheBevyFlock/bevy_cli | 346 | defect | ea02f414fd51bb5232a48fd4d93a88c42f0d8aa2 | e478a7d99db65260ab1273d4f7fadcf5cb3bc07f | Skip `bevy::main_return_without_appexit` if `AppExit` is stored in a variable | Closes #87 with the solution proposed in: https://github.com/TheBevyFlock/bevy_cli/issues/87#issuecomment-2429979458 | diff --git a/bevy_lint/src/lints/pedantic/main_return_without_appexit.rs b/bevy_lint/src/lints/pedantic/main_return_without_appexit.rs
index fbcd128b..d85f1c76 100644
--- a/bevy_lint/src/lints/pedantic/main_return_without_appexit.rs
+++ b/bevy_lint/src/lints/pedantic/main_return_without_appexit.rs
@@ -35,8 +35,8 @@
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The comment above the lint condition should be updated, as suggested, to say that the lint fires when `src` is a Bevy `App` and the `AppExit` is unused.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It may be useful to mak... | null |
TheBevyFlock__bevy_cli__389 | TheBevyFlock/bevy_cli | 389 | defect | e85154b9bd5851a0dcac3815853ec8194d362fb3 | e9c7adc66a153dd069784c9758510c4d6532094c | Lint: `missing_reflect` check if all fields implement `Reflect` otherwise `Applicability ::MaybeIncorrect` | fixes #141 | diff --git a/bevy_lint/src/lints/restriction/missing_reflect.rs b/bevy_lint/src/lints/restriction/missing_reflect.rs
index 90b6f5eb..9712ab77 100644
--- a/bevy_lint/src/lints/restriction/missing_reflect.rs
+++ b/bevy_lint/src/lints/restriction/missing_reflect.rs
@@ -55,7 +55,13 @@
//! Code](../../index.html#toggling-l... | 4 | 4 | 3 | [{"id": "G0", "claim": "The comment above the `get_trait_def_id` call should be replaced with wording that explains the function is expensive and only returns `None` when `Reflect` does not exist.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
TheBevyFlock__bevy_cli__463 | TheBevyFlock/bevy_cli | 463 | defect | 0a4df19a729dbbb83774c4ddacf21770bafceb21 | fe8a86b4ffd835e698cdc5d93fd6ad0d1d6c8871 | Add Lints `disallow_fixed_update` and `disallow_update` | closes #99 | diff --git a/bevy_lint/src/lints/restriction/disallow_schedule.rs b/bevy_lint/src/lints/restriction/disallow_schedule.rs
new file mode 100644
index 00000000..d41fcf86
--- /dev/null
+++ b/bevy_lint/src/lints/restriction/disallow_schedule.rs
@@ -0,0 +1,162 @@
+//! Checks for systems in disallowed schedules
+//!
+//! - `d... | 5 | 4 | 0 | [{"id": "G0", "claim": "The machine-applicable suggestion to switch to the alternative schedule should be removed for now until usage is better understood.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The lint documentation should be rewritten to use t... | null |
TheBevyFlock__bevy_cli__574 | TheBevyFlock/bevy_cli | 574 | defect | b2b65c72506a0287499fcb2490c7637bdc5d745d | 2c691764ffc5eef6efee30f9b3cd1dfa79297cc9 | Add Linit: missing_trait_for_unit_struct | # Objective
This new lint checks if a unit structures implements the following traits:
- Clone
- Copy
- Default
# Note
With how this is set up, if a unit struct does not implement any of those there will be a lint output for each trait on its own, this also applies to the fix.
## Example
```rs
use ... | diff --git a/bevy_lint/src/lints/restriction/missing_reflect.rs b/bevy_lint/src/lints/restriction/missing_reflect.rs
index 73a621d2..20088eb5 100644
--- a/bevy_lint/src/lints/restriction/missing_reflect.rs
+++ b/bevy_lint/src/lints/restriction/missing_reflect.rs
@@ -56,16 +56,16 @@
use clippy_utils::{
diagnosti... | 8 | 8 | 3 | [{"id": "G0", "claim": "Loop directly over the iterator returned by `TraitType::from_local_crate()` rather than collecting the components into a `Vec` first, since `components` is only used in the `for` loop.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
TheDan64__inkwell__132 | TheDan64/inkwell | 132 | defect | 832955a85c349af08909c8ba5db677e62f099904 | ba2541f66a347cadf4d9a6eb1aef78f22b05bd6f | Metadata | metadata can only be attached to instructions
See: https://llvm.org/docs/LangRef.html#metadata
Attempting to set metadata on other LLVMValueRef will cause undefined
behaviour in llvm, see here for example:
https://github.com/llvm/llvm-project/blob/release/8.x/llvm/lib/IR/Core.c... | diff --git a/src/context.rs b/src/context.rs
index 6180208eb92..fa7890f878d 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -648,10 +648,21 @@ impl Context {
/// let f32_zero = f32_type.const_float(0.);
/// let md_node = context.metadata_node(&[i8_two.into(), f32_zero.into()]);
/// let f32_one = f32_... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comments on the new has_metadata and get_metadata methods in InstructionValue do not correctly describe what those methods do.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TheDan64__inkwell__247 | TheDan64/inkwell | 247 | defect | f768691fccb04fe262a6ccf22c215657dc08de98 | 81fabe09fcf1ebc0487a5827f719af69196d1536 | Add metadata support | <!--- This version of the form is by no means final -->
<!--- Provide a brief summary of your changes in the title above -->
## Description
Add metadata support
<!--- Describe your changes in detail -->
## Related Issue
<!--- This project only accepts pull requests related to open issues -->
<!--- If s... | diff --git a/src/context.rs b/src/context.rs
index ab638a80d76..5e1e28716fb 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -1,6 +1,8 @@
//! A `Context` is an opaque owner and manager of core global data.
use llvm_sys::core::{LLVMAppendBasicBlockInContext, LLVMContextCreate, LLVMContextDispose, LLVMCreateBuilde... | 5 | 5 | 5 | [{"id": "G0", "claim": "Gate the MetadataType import and the MetadataType variants of AnyTypeEnum and BasicTypeEnum in src/types/enums.rs behind #[llvm_versions(6.0..=latest)], since metadata types are only available in LLVM 6.0 and later.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": ... | null |
TheDan64__inkwell__253 | TheDan64/inkwell | 253 | defect | 7df64d4e17a87b5c8433390e8c6e40fd8f9a7a9c | 3843d8cac9aded8c1839d8d69624f4de612093a4 | Llvm 12 | <!--- This version of the form is by no means final -->
<!--- Provide a brief summary of your changes in the title above -->
## Description
Add support for llvm 12
## Related Issue
<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please ... | diff --git a/Cargo.toml b/Cargo.toml
index cf25a2c6366..ae2bcaef3be 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,6 +26,7 @@ llvm8-0 = ["llvm-sys-80"]
llvm9-0 = ["llvm-sys-90"]
llvm10-0 = ["llvm-sys-100"]
llvm11-0 = ["llvm-sys-110"]
+llvm12-0 = ["llvm-sys-120"]
# Don't link aganist LLVM libraries. This is useful ... | 4 | 4 | 2 | [{"id": "G0", "claim": "The #[doc(alias)] attributes on the version-gated pass functions should be removed: they are experimental and fail the build on the 1.42 MSRV (the CI failures), and they will not be useful in practice because the aliased methods are compiled out of llvm 12 builds.", "category": "correctness", "v... | null |
TheDan64__inkwell__313 | TheDan64/inkwell | 313 | defect | c71d7edb782e0335411cef2830032b27fd0db9f7 | 5ce273aba6ed7a5b25adf2c920fc728661f4b3f4 | Get all function/callsite attributes as a vector | <!--- This version of the form is by no means final -->
<!--- Provide a brief summary of your changes in the title above -->
Add functions to `FunctionValue` and `CallSiteValue` that give back a vector with all attributes at a particular location on that value.
## Description
<!--- Describe your changes in de... | diff --git a/src/values/call_site_value.rs b/src/values/call_site_value.rs
index 946f01d5211..2bebde2743b 100644
--- a/src/values/call_site_value.rs
+++ b/src/values/call_site_value.rs
@@ -210,6 +210,56 @@ impl<'ctx> CallSiteValue<'ctx> {
}
}
+ /// Get all `Attribute`s on this `CallSiteValue` at an i... | 2 | 2 | 2 | [{"id": "G0", "claim": "The CallSiteValue::attributes implementation should avoid `std::mem::transmute` and instead use the no-copy Vec transmutation approach from the transmute docs' example.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The FunctionVa... | null |
TheDan64__inkwell__314 | TheDan64/inkwell | 314 | defect | 064fe096823e82d538a04536064ada7ad7936df5 | 9098fff181ad598bcdb3311e9c68f784ec5e2231 | make get_enum_kind_id work on type attributes | <!--- This version of the form is by no means final -->
<!--- Provide a brief summary of your changes in the title above -->
## Description
remove an assert that makes `get_enum_kind_id` panic when given a type attribute.
I'm not entirely sure what the difference is between enum and type attributes. It looks... | diff --git a/src/attributes.rs b/src/attributes.rs
index 1992d8a70c4..057029ac7e4 100644
--- a/src/attributes.rs
+++ b/src/attributes.rs
@@ -124,12 +124,60 @@ impl Attribute {
///
/// assert_eq!(enum_attribute.get_enum_kind_id(), 0);
/// ```
+ #[llvm_versions(3.6..12.0)]
pub fn get_enum_kind_id(s... | 2 | 1 | 0 | [{"id": "G0", "claim": "A doc example with a type kind id cannot be provided under the current implementation because the relevant functions are only available in LLVM 12 and higher, so it may be an argument for making it a separate function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "i... | null |
TheDan64__inkwell__391 | TheDan64/inkwell | 391 | defect | c77d05639c9b73d9bede713789b9707d45863530 | de9f1a67b1c007da5ee9d7fcbfefea0fa960d7d5 | Treat `const_string` as returning `ArrayValue` | ## Description
This changes the type signature of `Context::const_string` to return ArrayValue instead of VectorValue.
This alone breaks the `test_values::test_string_values` test,
so I also added the `is_const_string` and `get_string_constant` methods from VectorValue to ArrayValue.
I didn't remove those me... | diff --git a/src/context.rs b/src/context.rs
index b0bae551f79..2f8049a168d 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -45,7 +45,7 @@ use crate::types::MetadataType;
use crate::types::{AsTypeRef, BasicTypeEnum, FloatType, FunctionType, IntType, StructType, VoidType};
use crate::values::{
AsValueRef, Bas... | 2 | 2 | 1 | [{"id": "G0", "claim": "get_string_constant should return an Option instead of panicking when the pointer is null.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The VectorValue string methods that no longer make sense on vectors should be removed.", "ca... | null |
TheDan64__inkwell__416 | TheDan64/inkwell | 416 | defect | 13c6c3bb6deb7bdb72c67586abd5c7f7a5a8aa0b | 4d02a89e880011bcff1f7f7ee9c6487a370b0d44 | Find a InstructionValue based on its name | ## Description
Added function to find an Instruction Value based on its name. I thought it was useful for finding instruction values within blocks based on their name. If for example you create a variable, you could use this function to then find it.
## Related Issue
https://github.com/TheDan64/inkwell/issues/... | diff --git a/src/basic_block.rs b/src/basic_block.rs
index 7bed19a3168..e0adc785c45 100644
--- a/src/basic_block.rs
+++ b/src/basic_block.rs
@@ -275,6 +275,41 @@ impl<'ctx> BasicBlock<'ctx> {
unsafe { Some(InstructionValue::new(value)) }
}
+ /// Obtains a instruction based on the name
+ ///
+ /... | 4 | 4 | 2 | [{"id": "G0", "claim": "The new BasicBlock::get_instruction_with_name should note in its documentation that it performs a linear lookup.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added code has spacing that cargo fmt would fix, so cargo f... | null |
TheDan64__inkwell__451 | TheDan64/inkwell | 451 | defect | 7a09ad8a5f3b1fc416f95b5e1c97d33df0ab3f06 | 00ccb05b34c906931586e174d57330425b559715 | Added get_field_at_index and count_fields to struct values | Added get_field_at_index and count_fields to StructValue.
## Description
This mirrors the functions from StructType and allows accessing members of const structures directly.
## Related Issue
https://github.com/TheDan64/inkwell/issues/450
## How This Has Been Tested
Added a few simple assertions to t... | diff --git a/src/values/struct_value.rs b/src/values/struct_value.rs
index 68a550f2f9b..30de2180da2 100644
--- a/src/values/struct_value.rs
+++ b/src/values/struct_value.rs
@@ -1,3 +1,5 @@
+use llvm_sys::core::{LLVMGetNumOperands, LLVMGetOperand, LLVMIsConstant};
+
use llvm_sys::prelude::LLVMValueRef;
use std::ffi:... | 2 | 2 | 1 | [{"id": "G0", "claim": "get_field_at_index needlessly restricts itself to constant struct values by returning None when LLVMIsConstant is 0; the reviewer questions why the constant requirement is needed at all.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
TheDan64__inkwell__455 | TheDan64/inkwell | 455 | defect | 776d78712b6d8180d6bbad55467e6307cd58aeb8 | ce2ebdbcd7f34ca84cc4582b9a7fc6ee6bee4784 | Adding get_allocated_type, is_terminator and is_conditional to InstructionValue | Adding the 3 Functions and the corresponding tests.
## Description
-
## Related Issue
https://github.com/TheDan64/inkwell/issues/454
## How This Has Been Tested
Only tested on LLVM-16
## Checklist
- [x] I have read the [Contributing Guide](https://github.com/TheDan64/inkwell/blob/master/.github/C... | diff --git a/src/values/instruction_value.rs b/src/values/instruction_value.rs
index bfc5dccef0e..e08e3bb869a 100644
--- a/src/values/instruction_value.rs
+++ b/src/values/instruction_value.rs
@@ -3,11 +3,12 @@ use either::{
Either::{Left, Right},
};
use llvm_sys::core::{
- LLVMGetAlignment, LLVMGetFCmpPredic... | 1 | 1 | 1 | [{"id": "G0", "claim": "get_allocated_type should return a BasicTypeEnum rather than AnyTypeEnum, since only basic types can be allocated.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheDan64__inkwell__468 | TheDan64/inkwell | 468 | defect | e0aa2e51a6cb501e4e2a889bbea12a1efab9c4ff | 610607d42c00179e7428bea40ba7803be9374794 | Add opaque pointers | ## Description
All changes apply to LLVM >= 15.0.
- Add a `ptr_type` method to `Context` to get an opaque pointer type.
- Deprecate the use of `ptr_type` on `*Type`.
- Add a `is_opaque` method to `PointerType` to check whether the pointer is opaque (which is always true unless opaque-by-default is disabled).
-... | diff --git a/src/basic_block.rs b/src/basic_block.rs
index 7dbacb5f3b7..c22e71cc368 100644
--- a/src/basic_block.rs
+++ b/src/basic_block.rs
@@ -288,7 +288,10 @@ impl<'ctx> BasicBlock<'ctx> {
///
/// let void_type = context.void_type();
/// let i32_type = context.i32_type();
+ /// #[cfg(not(any(featur... | 5 | 4 | 4 | [{"id": "G0", "claim": "Pointers are always opaque from LLVM 16 on and cannot be disabled through LLVM's C API, so the newly added PointerType::is_opaque may be unnecessary and could be removed.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "With opaque ... | null |
TheDan64__inkwell__566 | TheDan64/inkwell | 566 | defect | 03c0c6b1842afc438a9ec299efc5386bf52e92e1 | 731165ad99827d6035653ff71e27539cb4be908b | Add create_mcjit_execution_engine_with_memory_manager for custom MCJIT memory management | ---
## Description
This PR adds a new function, `create_mcjit_execution_engine_with_memory_manager`, which allows users to supply their own JIT memory manager (`McjitMemoryManager` trait). This enables custom allocation, finalization, and teardown logic for code and data sections under MCJIT.
## Related Issue
... | diff --git a/src/lib.rs b/src/lib.rs
index 9917f35920e..cf1691708be 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,6 +33,7 @@ pub mod debug_info;
pub mod execution_engine;
pub mod intrinsics;
pub mod memory_buffer;
+pub mod memory_manager;
#[deny(missing_docs)]
pub mod module;
pub mod object_file;
diff --git a/s... | 4 | 4 | 2 | [{"id": "G0", "claim": "The `c_str_to_str` helper should be marked `unsafe` because its arbitrary `'a` lifetime makes it too easy to misuse.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The destroy adapter leaves a moment where the raw `&mut` and ... | null |
TheDan64__inkwell__572 | TheDan64/inkwell | 572 | defect | 97128a9036c24448a5bd2904238e0df064c6ea9d | 9d466fbb673971556983f719488159e7d149dc04 | CallSiteValue::get_called_fn_value: return None on indirect calls | <!--- This version of the form is by no means final -->
<!--- Provide a brief summary of your changes in the title above -->
## Description
<!--- Describe your changes in detail -->
Fixes #571.
- `CallSiteValue::get_called_fn_value` now matches the behavior of [`CallBase::getCalledFunction`](https://llvm.o... | diff --git a/src/values/call_site_value.rs b/src/values/call_site_value.rs
index 7d307ef34ed..c814f738796 100644
--- a/src/values/call_site_value.rs
+++ b/src/values/call_site_value.rs
@@ -3,14 +3,17 @@ use std::fmt::{self, Display};
use either::Either;
use llvm_sys::core::{
LLVMGetInstructionCallConv, LLVMGetTy... | 1 | 1 | 0 | [{"id": "G0", "claim": "The lines added by this PR to src/values/call_site_value.rs mix in tabs, and the author should run cargo fmt on the changes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
TheDan64__inkwell__623 | TheDan64/inkwell | 623 | defect | 91c65bfab1d884d923097e5253efdf01580259ef | 94a512664b6cc31202124f9e36d5ab55268a853f | add support for enumeration type and enumerators | <!--- This version of the form is by no means final -->
<!--- Provide a brief summary of your changes in the title above -->
## Description
The debug info can now create enumeration types and enumerators.
## Related Issue
<!--- This project only accepts pull requests related to open issues -->
<!--- If su... | diff --git a/src/debug_info.rs b/src/debug_info.rs
index abe62f31379..f0b6c18cfcf 100644
--- a/src/debug_info.rs
+++ b/src/debug_info.rs
@@ -118,13 +118,13 @@ use llvm_sys::debuginfo::LLVMTemporaryMDNode;
use llvm_sys::debuginfo::{LLVMCreateDIBuilder, LLVMCreateDIBuilderDisallowUnresolved};
use llvm_sys::debuginfo::{... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request is failing on some LLVM versions and needs to be fixed before merging.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
TheDan64__inkwell__652 | TheDan64/inkwell | 652 | defect | 0c44f9061acec64af9dda8700ed3748da5bb36a1 | f19cdc82a75a80bd29332fdd7ff55f6b3ed38d9c | Change instr method signatures | <!--- This version of the form is by no means final -->
<!--- Provide a brief summary of your changes in the title above -->
## Description
More breaking changes to normalise instr method signatures:
- `is_...` methods return `bool` when it tests for instruction value type, or a general property, e.g. `is_termi... | diff --git a/src/values/instruction_value.rs b/src/values/instruction_value.rs
index 9c36ebfa256..79cccd19f5b 100644
--- a/src/values/instruction_value.rs
+++ b/src/values/instruction_value.rs
@@ -61,6 +61,12 @@ pub enum InstructionValueError {
NotGEPInst,
#[error("Not a fast-math supporting instruction.")]
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `is_...` methods (e.g. `is_conditional`) should return `Result` rather than `Option`, since calling them on the wrong instruction type is an error.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheDan64__inkwell__662 | TheDan64/inkwell | 662 | defect | ef83964e4f2fc94007b0f2b336ea3ea0b35a8f7a | d08b6a6c3f0aa4319ab872c44096ad3c9df4bfb6 | Hopefully fixed a null pointer dereference error. | <!--- This version of the form is by no means final -->
<!--- Provide a brief summary of your changes in the title above -->
## Description
Someone had an issue with a null pointer dereference in module.verify, and I noticed that there was a branch of the logic where a null pointer dereference could occur, so I ... | diff --git a/_typos.toml b/_typos.toml
index 39787dae0b4..2082c42d241 100644
--- a/_typos.toml
+++ b/_typos.toml
@@ -6,4 +6,5 @@ extend-ignore-identifiers-re = [
"BVE",
"olt",
"TRE",
+ "Cpy",
]
\ No newline at end of file
diff --git a/src/module.rs b/src/module.rs
index 490acdecddb..8b618cc5314 10064... | 1 | 1 | 0 | [{"id": "G0", "claim": "The MaybeUninit in Module::verify is unnecessary; a plain *mut c_char like the code below should suffice.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
TheDan64__inkwell__665 | TheDan64/inkwell | 665 | defect | 71611088b1cba714b16acc14f43ff6ad762e74b7 | 05f45e9f6854d441ba7142d7ac8260be29009db1 | Add custom bit-width sanity check to prevent downstream errors | ## Description
This PR adds Rust-side bounds checking to `ContextImpl::custom_width_int_type` to ensure the requested bit width falls within LLVM's officially supported range (1 to 8,388,608 bits, inclusive).
**The Problem:**
Currently, calling `context.custom_width_int_type(0)` passes the value `0` directly thr... | diff --git a/src/context.rs b/src/context.rs
index 6121511dbc5..83b3868f013 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -76,6 +76,9 @@ thread_local! {
});
}
+const LLVM_MIN_INT_BITS: u32 = 1;
+const LLVM_MAX_INT_BITS: u32 = 1 << 23;
+
/// This struct allows us to share method impls across Context and C... | 4 | 3 | 1 | [{"id": "G0", "claim": "Rejecting 0-width types may not be right, since Rust has zero-sized types — are 0-width types really an error?", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment with a link to the reference (source code or documentation) ... | null |
TheDan64__inkwell__670 | TheDan64/inkwell | 670 | defect | 7f5895f414f6972c835d5b7ce6cd709a65a6d192 | 870bcc53f5d15713d53d88d2735e095d500afe93 | Deprecate legacy PassManager in favor of PassBuilderOptions and run_passes | ## Description
This PR deprecates the `PassManager` struct.
The legacy `PassManager<T>` is replaced by the new pass manager workflow:
- `PassBuilderOptions`
- `Module::run_passes`
This aligns Inkwell with LLVM's new pass manager infrastructure.
The `PassManager` struct will be removed once LLVM 16 supp... | diff --git a/src/passes.rs b/src/passes.rs
index 5bcb03417d7..f95b21cf3d3 100644
--- a/src/passes.rs
+++ b/src/passes.rs
@@ -265,6 +265,10 @@ impl<'ctx> PassManagerSubType for FunctionValue<'ctx> {
/// documentation for specific passes is directly from the [LLVM
/// documentation](https://llvm.org/docs/Passes.html).
... | 2 | 2 | 2 | [{"id": "G0", "claim": "The `since` version in the new `#[deprecated]` attribute on `PassManager` should be 0.9.0, the next version, not 0.8.0.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The clippy warnings caused by the crate using the now-de... | null |
TheDan64__inkwell__87 | TheDan64/inkwell | 87 | defect | 5650064152bb0b3add1e8458c185ede6e7152e51 | a7eb4ae0cc481de9f3d94e86df1f4cf7bc8f43d4 | add bindings for LLVMGet{I,F}CmpPredicate | ## Description
First shot at adding bindings for `LLVMGetICmpPredicate` and `LLVMGetFCmpPredicate`, functions in `llvm-sys` which currently aren't exposed.
Slightly unsure about the correct API here. I have both of the bindings checking that the `InstructionValue` is indeed the correct operation (`ICmp` or `FCmp... | diff --git a/src/values/instruction_value.rs b/src/values/instruction_value.rs
index acce9192991..5283feb76e1 100644
--- a/src/values/instruction_value.rs
+++ b/src/values/instruction_value.rs
@@ -1,5 +1,5 @@
use either::{Either, Either::{Left, Right}};
-use llvm_sys::core::{LLVMGetInstructionOpcode, LLVMIsTailCall, L... | 1 | 1 | 1 | [{"id": "G0", "claim": "The tests should also check that calling the predicate getters on an instruction of the wrong kind returns None, e.g. get_icmp_predicate on a float cmp or on some other random instruction.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheElectronWill__night-config__106 | TheElectronWill/night-config | 106 | defect | 54a20a6b69f6b5cc540d90a8af9275fbdde9267f | 830b965888c493d7d4910da823325049d2c22992 | Parse and write configs inside collections correctly for yaml | This will wrap the contents of `List` elements returned by SnakeYAML correctly, mostly to help with wrapping `Config`s inside those lists. I've also added an example to the unit tests.
I also simplified some the `TransformingCollection` classes to use their `AbstractCollection` counterparts more. | diff --git a/core/src/main/java/com/electronwill/nightconfig/core/utils/TransformingCollection.java b/core/src/main/java/com/electronwill/nightconfig/core/utils/TransformingCollection.java
index f5eabed4..b600d764 100644
--- a/core/src/main/java/com/electronwill/nightconfig/core/utils/TransformingCollection.java
+++ b/... | 3 | 3 | 1 | [{"id": "G0", "claim": "TransformingList should extend TransformingCollection like TransformingSet does (still implementing e.g. List#set itself), which would be simpler and avoid errors.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Making Transforming... | null |
TheElectronWill__night-config__86 | TheElectronWill/night-config | 86 | defect | fa4f7661ea8c980d652634258dfbb553499fdb06 | 01e67fa45243a237ed301e3c00025b1430203b5d | Fix config map creators not inheriting for TOML and JSON | This causes child configs to not preserve iteration order, even though it has been set for their parent.
This fixes #85, at least for TOML and JSON. For Hocon it is not easily possible, because the underlying library Typesafe Config always uses a plain HashMap and this behavior is not configurable.
I've also added ... | diff --git a/json/src/main/java/com/electronwill/nightconfig/json/JsonParser.java b/json/src/main/java/com/electronwill/nightconfig/json/JsonParser.java
index 27de8cae..c4a06693 100644
--- a/json/src/main/java/com/electronwill/nightconfig/json/JsonParser.java
+++ b/json/src/main/java/com/electronwill/nightconfig/json/J... | 1 | 1 | 1 | [{"id": "G0", "claim": "parseInline should take a CommentedConfig parent (so createSubConfig() returns a CommentedConfig) instead of wrapping the sub-config in CommentedConfig.fake, which does not store comments; more generally parentConfig should be a CommentedConfig everywhere and CommentedConfig.fake used only at th... | null |
TheHPXProject__hpx__6853 | TheHPXProject/hpx | 6,853 | defect | 1cce0aeb6c95a670c600bf6c8d35472ede5ce0a0 | 53bda2a7352680e211bc166bd62927bcfb7d3b55 | Remove type alias sender completions support (#6624) | Fixes #6624
## Proposed Changes
- Removed the has_completion_signatures trait and the fallback logic supporting nested type aliases in get_completion_signatures.
- Updated any_sender and unique_any_sender to expose completion signatures via tag_invoke exclusively.
- Refactored unit tests (basic_sender, b... | diff --git a/examples/1d_stencil/1d_stencil_8.cpp b/examples/1d_stencil/1d_stencil_8.cpp
index e2c885f88b5c..72787fda88f0 100644
--- a/examples/1d_stencil/1d_stencil_8.cpp
+++ b/examples/1d_stencil/1d_stencil_8.cpp
@@ -47,7 +47,7 @@ template <typename T>
struct partition_allocator
{
private:
- typedef hpx::spinlo... | 10 | 6 | 2 | [{"id": "G0", "claim": "The files modified by this pull request (e.g. any_sender.hpp and related tests) produce formatting diffs under clang-format, which is why the clang_format CI check fails; formatting them should make the check pass.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope... | null |
TheHPXProject__hpx__6907 | TheHPXProject/hpx | 6,907 | defect | d69f1aa3d75256ddd9682e1896d7133fbbffc995 | 86387c82e33fef8a0177f519ce1fae5f18248c19 | reduce lock contention in local_priority_queue_scheduler via randomized victim selection | Fixes #6904
Summary
===============================================================================
This PR implements a randomized victim selection strategy for the
local_priority_queue_scheduler to reduce lock contention and mitigate
the "thundering herd" problem, where multiple thief threads repeatedly
tar... | diff --git a/libs/core/schedulers/include/hpx/schedulers/local_priority_queue_scheduler.hpp b/libs/core/schedulers/include/hpx/schedulers/local_priority_queue_scheduler.hpp
index 69f2ff5638e6..de6e13586431 100644
--- a/libs/core/schedulers/include/hpx/schedulers/local_priority_queue_scheduler.hpp
+++ b/libs/core/schedu... | 5 | 5 | 1 | [{"id": "G0", "claim": "victim_offset_ does not need to be atomic and could live in the same cache line as victim_threads_, combined into one cache-line-aligned struct as suggested.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The custom benchmark (ben... | null |
TheHPXProject__hpx__6940 | TheHPXProject/hpx | 6,940 | defect | d586d881474e463a1f1d77be779e8c385331ba07 | 2d7e864475b1015a1da701889f8266b6e257cdbc | fix clang tidy errors in hpx | ### Error 1:
Warning generated is - `bugprone-crtp-constructor-accessibility`.
```bash
[ 50/1669][11.9s] /opt/homebrew/opt/llvm@20/bin/clang-tidy -p=/Users/surya/hpx --config-file=.clang-tidy /Users/surya/hpx/libs/core/resource_partitioner/tests/unit/suspend_thread.cpp
/Users/surya/hpx/libs/core/coroutines/inclu... | diff --git a/libs/core/algorithms/tests/unit/algorithms/util/test_merge_four.cpp b/libs/core/algorithms/tests/unit/algorithms/util/test_merge_four.cpp
index 85e0798d1ab6..2ea49f601076 100644
--- a/libs/core/algorithms/tests/unit/algorithms/util/test_merge_four.cpp
+++ b/libs/core/algorithms/tests/unit/algorithms/util/t... | 14 | 12 | 3 | [{"id": "G0", "claim": "direct_streambuf's init_input (and likewise init_output) should throw an exception when storage_ is invalid instead of silently doing nothing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The widening fix should cast data_r... | null |
TheHPXProject__hpx__6955 | TheHPXProject/hpx | 6,955 | defect | b67a10fed3257287622a01562566f88548e20335 | 811bc221fa0e8c5326d0d368a7d1dffe60864148 | fix: correct argument order for `next_or_subrange` and `add_ready_future_idx` functions | Fixes #6931
#Proposed Changes
Fix swapped arguments in next_or_subrange call (
get_bulk_iteration_shape_variable
): After count -= chunk, count holds the remaining elements — not the advance distance. The call was passing
(it_or_r, count, chunk)
but should be
(it_or_r, chunk, count)
, matching the i... | diff --git a/libs/core/algorithms/include/hpx/parallel/util/detail/chunk_size.hpp b/libs/core/algorithms/include/hpx/parallel/util/detail/chunk_size.hpp
index 2c886ee685b2..6e9d821863be 100644
--- a/libs/core/algorithms/include/hpx/parallel/util/detail/chunk_size.hpp
+++ b/libs/core/algorithms/include/hpx/parallel/util... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test that reproduces the argument-order issue and demonstrates that this PR fixes it should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheHPXProject__hpx__6971 | TheHPXProject/hpx | 6,971 | defect | 9dfd4097948f2680973bd36416eea745fe784b19 | be47d51d4f2f9d0f80b1113c8eadac5face876f1 | Fix get_num_items logic in default_distribution_policy | Fixes #
## Proposed Changes
- Fix inverted comparison in default_distribution_policy::get_num_items that caused zero partitions to be created when the requested number of partitions is less than the number of localities
## Any background context you want to provide?
While going through segmented algorithms ... | diff --git a/libs/full/distribution_policies/include/hpx/distribution_policies/default_distribution_policy.hpp b/libs/full/distribution_policies/include/hpx/distribution_policies/default_distribution_policy.hpp
index 2a38b2a4a153..0878ec1debf8 100644
--- a/libs/full/distribution_policies/include/hpx/distribution_polici... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a test that verifies the patched get_num_items logic fixes the issue the author was seeing.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Segmented unit tests get built but are not run in CI (this PR's CI reports 'No tests w... | null |
TheHPXProject__hpx__6979 | TheHPXProject/hpx | 6,979 | defect | 358fef1abcff49827429c9fdfae73afac036893f | 9c7bb0402140037f77bea5da0f81b598f437ac91 | Fix set_error called on moved-from receiver in thread_pool_scheduler | Fix use-after-move bug in thread_pool_scheduler::start
I fixed a bug where `set_error` was being called on a moved-from receiver. The original code captured `os.receiver` by move into the lambda at construction time, but if `execute()` threw, the error handler would try to move from `os.receiver` again - undefined b... | diff --git a/libs/core/executors/include/hpx/executors/thread_pool_scheduler.hpp b/libs/core/executors/include/hpx/executors/thread_pool_scheduler.hpp
index ce74fe434d55..bed67324028a 100644
--- a/libs/core/executors/include/hpx/executors/thread_pool_scheduler.hpp
+++ b/libs/core/executors/include/hpx/executors/thread_... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should add a test that verifies the set_error-on-moved-from-receiver issue in thread_pool_scheduler has been fixed.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
TheHPXProject__hpx__6980 | TheHPXProject/hpx | 6,980 | defect | 358fef1abcff49827429c9fdfae73afac036893f | 685aaaf79e7be4fd303ec14abaa567935c1c6448 | cmake: remove HPX_WITH_CXX20_CONSTEXPR_DESTRUCTOR feature test | remove HPX_WITH_CXX20_CONSTEXPR_DESTRUCTOR feature test
Fixes:
1) Removed cmake feature test function,
2) Deleted the unused test file
3) Removed the feature test call,
4) Simplified constexpr.hpp to define HPX_CONSTEXPR_DESTRUCTOR as constexpr unconditionally.
contributes to fixing #6941 | diff --git a/cmake/HPX_AddConfigTest.cmake b/cmake/HPX_AddConfigTest.cmake
index 5c6086703a17..c8dd5f4985cd 100644
--- a/cmake/HPX_AddConfigTest.cmake
+++ b/cmake/HPX_AddConfigTest.cmake
@@ -615,15 +615,6 @@ function(hpx_check_for_cxx20_std_bit_cast)
)
endfunction()
-# ############################################... | 1 | 1 | 0 | [{"id": "G0", "claim": "hkaiser suggests going even further and completely removing the HPX_CONSTEXPR_DESTRUCTOR macro by editing the codebase in all places where it is currently used.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
TheHPXProject__hpx__6995 | TheHPXProject/hpx | 6,995 | defect | 8de8b47a3feb5b74ea3582b2c7b66aaabca98f5c | 8cb3c4d9a3b071013c13728f6a8df8527911f63a | datapar support for hpx::search and search_n | Partially fixes #2333
## Proposed Changes
- Enabled policy based SIMD overrides to search and search_n by refactoring code
- Refactored code dispatches per-chunk work through sequential_search_t and sequential_search_n_t
- Add unit tests for hpx::search and search_n
## Any background context you want ... | diff --git a/libs/core/algorithms/CMakeLists.txt b/libs/core/algorithms/CMakeLists.txt
index 942478e25157..23c6b115dec1 100644
--- a/libs/core/algorithms/CMakeLists.txt
+++ b/libs/core/algorithms/CMakeLists.txt
@@ -237,6 +237,7 @@ if(HPX_WITH_DATAPAR)
hpx/parallel/datapar/mismatch.hpp
hpx/parallel/datapar... | 8 | 6 | 2 | [{"id": "G0", "claim": "The predicate/projection call in the sequential_search_n chunk lambda should use HPX_INVOKE instead of calling pred(proj(*curr), value_proj) directly.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The sequential_search_n chunk la... | null |
TheHPXProject__hpx__6999 | TheHPXProject/hpx | 6,999 | defect | d5b0a106e040ea25957c2555e1dc8336977f84bc | 2d47b02e4fa24409811969b80724cdffb4a79482 | Add distributed versions of replace, replace_if, replace_copy and replace_copy_if algorithms | ## Proposed Changes
- Added segmented `hpx::replace` and `hpx::replace_if` overloads
- Added segmented `hpx::replace_copy` and `hpx::replace_copy_if` overloads
- Added tests (partitioned_vector_replace.cpp and partitioned_vector_replace_copy.cpp)
## Any background context you want to provide?
The impleme... | diff --git a/libs/full/include/include/hpx/include/parallel_replace.hpp b/libs/full/include/include/hpx/include/parallel_replace.hpp
index dc4adb13136f..f4d964c51342 100644
--- a/libs/full/include/include/hpx/include/parallel_replace.hpp
+++ b/libs/full/include/include/hpx/include/parallel_replace.hpp
@@ -8,3 +8,4 @@
... | 7 | 6 | 2 | [{"id": "G0", "claim": "Default argument values on the replace_function constructor don't make sense (nobody would want to replace a value with the same one) and should be dropped.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The explicit serialize mem... | null |
TheHPXProject__hpx__7021 | TheHPXProject/hpx | 7,021 | defect | 6cf6e6a879569b112f13c8e91a24174c1a626f1f | 37a780e6233a08b3bd7747f0580583bca0488fdb | fix scheduler_executor bulk | Fix scheduler_executor benchmarks
Fixes #7022 | diff --git a/libs/core/execution_base/include/hpx/execution_base/stdexec_forward.hpp b/libs/core/execution_base/include/hpx/execution_base/stdexec_forward.hpp
index c82ff8e01448..108c79684015 100644
--- a/libs/core/execution_base/include/hpx/execution_base/stdexec_forward.hpp
+++ b/libs/core/execution_base/include/hpx/... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new size_type conversion and manual index-to-iterator advance wrapping the stdexec bulk call looks unnecessary and hkaiser asks why it is needed.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The lambda should capture the forwa... | null |
TheHPXProject__hpx__7067 | TheHPXProject/hpx | 7,067 | defect | eb66c40722eb0168f869dfad0b7ad106c47b4feb | cf8576bd09d3a76fe89abdbbd4bd969442bae696 | cmake: remove HPX_WITH_CXX20_LAMBDA_CAPTURE feature test | Fixes #
6941
## Proposed Changes
- Remove cmake function hpx_check_for_cxx20_lambda_capture
from HPX_AddConfigTest.cmake
- Remove function call from HPX_PerformCxxFeatureTests.cmake
- Delete obsolete test file cmake/tests/cxx20_lambda_capture.cpp
- Simplify lambda_capture_this.hpp to unconditionally defin... | diff --git a/cmake/HPX_AddConfigTest.cmake b/cmake/HPX_AddConfigTest.cmake
index 71cd0653aa21..256dc372dc1d 100644
--- a/cmake/HPX_AddConfigTest.cmake
+++ b/cmake/HPX_AddConfigTest.cmake
@@ -489,15 +489,6 @@ function(hpx_check_for_cxx20_coroutines)
)
endfunction()
-# ##############################################... | 4 | 3 | 1 | [{"id": "G0", "claim": "It would be better to get rid of the HPX_CXX20_CAPTURE_THIS macro and replace its use sites with an explicitly added `, this` in the capture list.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G2", "claim": "hpx/config/manual_profili... | null |
TheHPXProject__hpx__7068 | TheHPXProject/hpx | 7,068 | defect | 86aa334f44093f79cacfa19bd211bcc828f43a66 | 24c7e6b1a04a6e9474e763595867d1b987dd8eb8 | cmake: remove HPX_WITH_CXX20_STD_EXECUTION_POLICES feature test | Fixes #
6941
## Proposed Changes
- Remove cmake function hpx_check_for_cxx20_std_execution_policies
from HPX_AddConfigTest.cmake
- Remove function call from HPX_PerformCxxFeatureTests.cmake
- Delete obsolete test file cmake/tests/cxx20_std_execution_policies.cpp
- Remove HPX_HAVE_CXX20_STD_EXECUTION_POLICES... | diff --git a/cmake/HPX_AddConfigTest.cmake b/cmake/HPX_AddConfigTest.cmake
index 71cd0653aa21..ed6a2ab115d8 100644
--- a/cmake/HPX_AddConfigTest.cmake
+++ b/cmake/HPX_AddConfigTest.cmake
@@ -534,15 +534,6 @@ function(hpx_check_for_cxx20_std_endian)
)
endfunction()
-# ##############################################... | 2 | 2 | 2 | [{"id": "G0", "claim": "The HPX_HAVE_CXX20_STD_EXECUTION_POLICES preprocessor guards in the executors/algorithms sources must be kept in place, because the macro guards an optional buy-in to allow using std execution policies with HPX algorithms that should stay disablable in some contexts.", "category": "design", "ver... | null |
TheHPXProject__hpx__7079 | TheHPXProject/hpx | 7,079 | defect | 2bfc2694a1fdbfac246128dcc842f8a4c1a6f4f2 | cbe6ff1952fbc2fa16815b9515f05cb127b7d024 | Feat/sandbox laboratory | Fixes #
## Proposed Changes
- Add a new header-only utility `hpx/experimental/sandbox.hpp` in `libs/core/include_local` that provides environment introspection and parallel benchmarking for resource-constrained environments like Compiler Explorer (Godbolt).
- Implement `hpx::experimental::sandbox::detect_env... | diff --git a/libs/core/config/CMakeLists.txt b/libs/core/config/CMakeLists.txt
index d18d198a09dd..756a6d81030f 100644
--- a/libs/core/config/CMakeLists.txt
+++ b/libs/core/config/CMakeLists.txt
@@ -28,6 +28,7 @@ set(config_macro_headers
hpx/config/lambda_capture_this.hpp
hpx/config/manual_profiling.hpp
... | 11 | 10 | 6 | [{"id": "G0", "claim": "The hardware_concurrency() heuristic (flagging machines with <=4 cores as sandboxes) is too aggressive and would misclassify low-power devices like an Apple watch as sandboxes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
TheHPXProject__hpx__7082 | TheHPXProject/hpx | 7,082 | defect | aa902d42fe00c1f4ea8c42ce57261d19460a8873 | 7c60b912333515efa0562edc3886e226d2c555cb | Add Conan package support | Fixes #5411
## Proposed Changes
- Add complete Conan package manager support with 24 configurable build options
- Implement dynamic version detection that parses HPX version from CMakeLists.txt
- Include test package to validate HPX installation and basic functionality
- Add proper dependency management for B... | diff --git a/.conanignore b/.conanignore
new file mode 100644
index 000000000000..8a546d00ab85
--- /dev/null
+++ b/.conanignore
@@ -0,0 +1,52 @@
+# Build directories
+build/
+build_*/
+.build/
+cmake-build-*/
+
+# IDE and editor files
+.vscode/
+.idea/
+*.swp
+*.swo
+*~
+.DS_Store
+
+# Git files
+.git/
+.gitignore
+.gi... | 6 | 6 | 3 | [{"id": "G0", "claim": "All files added by the pull request should carry the project's copyright, license and SPDX-License (BSL-1.0) header.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "test_package.cpp contains HTML-escaped angle brackets (<... | null |
TheHPXProject__hpx__7106 | TheHPXProject/hpx | 7,106 | defect | 0a72578b7736f78c807fc182b188be99290aacd4 | e3505ebba3d1ade35bb238aaab7c85c279970017 | feat(futures): implement C++23 monadic operations | ## feat: implement C++23 monadic operations for future and shared_future
Implements [and_then](cci:1://file:///home/shivanshsingh/Desktop/compiler-explorer/hpx-godbolt-build/hpx-src/libs/core/futures/include/hpx/futures/future.hpp:1578:4-1595:5), [transform](cci:1://file:///home/shivanshsingh/Desktop/compiler-explor... | diff --git a/libs/core/futures/CMakeLists.txt b/libs/core/futures/CMakeLists.txt
index 55f337720b49..86cf24785a9c 100644
--- a/libs/core/futures/CMakeLists.txt
+++ b/libs/core/futures/CMakeLists.txt
@@ -15,6 +15,7 @@ set(futures_headers
hpx/futures/futures_factory.hpp
hpx/futures/future_or_value.hpp
hpx/... | 16 | 16 | 8 | [{"id": "G0", "claim": "Redesign the member-function-based API as a set of free functions kept in a separate header file.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Create an example demonstrating how the new facilities would change (improve?) the us... | null |
TheHPXProject__hpx__7110 | TheHPXProject/hpx | 7,110 | defect | 093ff80a6c07dc274cc3969c2fcc549d4ccc40a4 | 3fd8fb50c8e5601d947cd946f6c1e37114f407e5 | Implement segmented version of equal algorithm | Fixes #1338
## Proposed Changes
- Added the segmented version of `hpx::equal`
- Implemented `detail::segmented_equal` to handle distributed execution across partition boundaries, optimizing for the single-segment fast path.
- Added unit tests for match and mismatch paths across all execution policies and contai... | diff --git a/.circleci/tests.unit1.segmented_algorithms b/.circleci/tests.unit1.segmented_algorithms
index 7ec61f7981ab..e38fefdc0b56 100644
--- a/.circleci/tests.unit1.segmented_algorithms
+++ b/.circleci/tests.unit1.segmented_algorithms
@@ -13,6 +13,7 @@ tests.unit.modules.segmented_algorithms.partitioned_vector_all_... | 2 | 2 | 1 | [{"id": "G0", "claim": "The projection (pred) should be accepted as a forwarding reference and every use of it perfectly forwarded (HPX_FORWARD(Proj, pred)).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "You can only perfectly forward the last use of th... | null |
TheHPXProject__hpx__7130 | TheHPXProject/hpx | 7,130 | defect | d0a908d72b08992fe181782baa067fc5e62d913e | 9216d3db7ab071bf8c9686303f37ad50ca519b78 | Add local-runtime fallback for hpx/iostream.hpp | Fixes #4565
## Proposed Changes
This PR adds a local-runtime fallback implementation for `hpx/iostream.hpp` when `HPX_WITH_DISTRIBUTED_RUNTIME=OFF`. The fallback is intentionally narrower than the distributed implementation.
- Added local-only implementations for:
- `hpx::cout`, `hpx::cerr`, `hpx::consolestre... | diff --git a/libs/core/include_local/CMakeLists.txt b/libs/core/include_local/CMakeLists.txt
index 8d020a871f5e..0e25a46f5d6c 100644
--- a/libs/core/include_local/CMakeLists.txt
+++ b/libs/core/include_local/CMakeLists.txt
@@ -29,6 +29,7 @@ set(include_local_headers
hpx/tuple.hpp
hpx/type_traits.hpp
hpx/... | 6 | 6 | 2 | [{"id": "G0", "claim": "For purely local operations the fallback should simply alias the std streams (e.g. using cout = std::cout, with hpx::consolestream definable as equivalent to std::cerr) rather than provide a full custom local implementation.", "category": "design", "verdict": "supported", "priority": "P1", "scop... | null |
TheHPXProject__hpx__7133 | TheHPXProject/hpx | 7,133 | defect | afc788fd166395887c762489771478c497cf4e45 | a8a33e2335f858567c471f651855a5eacc3f19b1 | FIx wrap_main for local-runtime builds | ## Proposed Changes
This PR fixes local-runtime builds for HPX wrap targets after PR #7103. When `HPX_WITH_DISTRIBUTED_RUNTIME=OFF`, wrap sources still included distributed-only headers. | diff --git a/.github/workflows/configure-test-combination.yml b/.github/workflows/configure-test-combination.yml
index bae7b1250c5e..81060aaed598 100644
--- a/.github/workflows/configure-test-combination.yml
+++ b/.github/workflows/configure-test-combination.yml
@@ -64,6 +64,20 @@ jobs:
-DHPX_WITH_EXAMPL... | 2 | 2 | 2 | [{"id": "G0", "claim": "The quickstart example init_globally and the for_each_on_main_thread regression test should not be disabled for the local runtime — the author should explain why the tests were disabled for the local runtime.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
TheHPXProject__hpx__7140 | TheHPXProject/hpx | 7,140 | defect | 98ce809bf7a7c4ec8606ce295fb7948237f6d0d1 | 838580731b53a0ab4d1c7c18f894a04529c47091 | serialization: add reflection tests for function name extraction | Adds `reflection_function_names.cpp` to test `scope_builder<^^F>` with
plain free functions — a use case not covered by the existing
`reflection_qualified_name_of.cpp` tests which focus on types.
## Tests Added
- Simple namespace functions (int return, multiple parameters)
- Void return noexcept functions
... | diff --git a/libs/core/serialization/tests/unit/refl/CMakeLists.txt b/libs/core/serialization/tests/unit/refl/CMakeLists.txt
index 202c514d3ad8..7714e8097bee 100644
--- a/libs/core/serialization/tests/unit/refl/CMakeLists.txt
+++ b/libs/core/serialization/tests/unit/refl/CMakeLists.txt
@@ -13,6 +13,7 @@ set(tests
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The nested namespace in the test should be written in the C++17 form `namespace outer::inner {` instead of the traditional `namespace outer { namespace inner {`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
TheHPXProject__hpx__7156 | TheHPXProject/hpx | 7,156 | defect | b415443b9c970cd2dd31808ec2dd99cd81f8a034 | 17c151ba41ddb0a4ef4949e294141a421a385f74 | Add segmented is_partitioned | Extends #1338
## Proposed Changes
- Add segmented version of parallel `is_partitioned`.
## Any background context you want to provide?
This completes segmented implementations of `is_sorted`, `is_sorted_until`, `is_partitioned` algorithms family.
## Checklist
Not all points below apply to all pull ... | diff --git a/libs/full/include/include/hpx/include/parallel_is_partitioned.hpp b/libs/full/include/include/hpx/include/parallel_is_partitioned.hpp
index f1a6b5c9577d..28b827b96e66 100644
--- a/libs/full/include/include/hpx/include/parallel_is_partitioned.hpp
+++ b/libs/full/include/include/hpx/include/parallel_is_parti... | 2 | 2 | 0 | [{"id": "G0", "claim": "The cross-segment boundary check dereferences the previous partition's last iterator, which may incur a networking turnaround; the reviewer suggests returning the last value together with the true/false result of each partition's remote operation to avoid that overhead.", "category": "performanc... | null |
TheHPXProject__hpx__7163 | TheHPXProject/hpx | 7,163 | defect | 06ba7391a9267856f46bb6a4bf40e9580f8e4b49 | 8a94543a9e224342a77b2ebd5d8684d9a467b9b3 | Fix missing early termination in parallel `find_first_of` inner loop | ## Title
Fix missing early termination in parallel `find_first_of` inner loop
## Summary
Fixes a correctness/consistency bug in the parallel-partition kernel of
`hpx::find_first_of` where the inner search loop over `[s_first, s_last)`
did not short-circuit after finding the first matching needle.
---
## ... | diff --git a/libs/core/algorithms/include/hpx/parallel/algorithms/detail/adjacent_find.hpp b/libs/core/algorithms/include/hpx/parallel/algorithms/detail/adjacent_find.hpp
index 83b849f836e5..d38202207100 100644
--- a/libs/core/algorithms/include/hpx/parallel/algorithms/detail/adjacent_find.hpp
+++ b/libs/core/algorithm... | 3 | 3 | 2 | [{"id": "G0", "claim": "Check whether the token was cancelled once per partition (before running the loop on a partition) instead of once per iteration, because the per-iteration check introduces too much overhead.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1... | null |
TheHPXProject__hpx__7171 | TheHPXProject/hpx | 7,171 | defect | 26cd52a803f732145dd4f84ef88dc09c19095f82 | a39f4c2a140750ea1fa50bf810e41558b8f02061 | Add optional Orbit MPMC comparison benchmark | ## Summary
This PR adds an optional performance benchmark for comparing HPX's `channel_mpmc` against the `orbit` MPMC
queue implementation referenced in #7167.
The benchmark is intentionally optional and uses a local `HPX_WITH_ORBIT_ROOT` path instead of vendoring
`orbit` into HPX. It compares:
-... | diff --git a/libs/core/synchronization/tests/performance/CMakeLists.txt b/libs/core/synchronization/tests/performance/CMakeLists.txt
index 347a57b73cb0..1902c58bcd81 100644
--- a/libs/core/synchronization/tests/performance/CMakeLists.txt
+++ b/libs/core/synchronization/tests/performance/CMakeLists.txt
@@ -8,6 +8,13 @@ ... | 6 | 4 | 0 | [{"id": "G0", "claim": "The CMake option HPX_WITH_ORBIT_ROOT should be declared with the project's hpx_option helper instead of a raw set(...CACHE ...).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new file's copyright header should carry the autho... | null |
TheHPXProject__hpx__7180 | TheHPXProject/hpx | 7,180 | defect | afc788fd166395887c762489771478c497cf4e45 | 6921c9f675d9898b9aadb030913c390a8ec1f101 | Add static plugin loading support for HPX plugins | ## Proposed Changes
Plugins (binary filters, message handlers) could not be loaded in statically linked HPX builds. `load_plugins` threw "static loading of plugin not supported". Components already had full static loading infrastructure, but plugins were missing the parallel machinery.
- Added a dedicated static ... | diff --git a/libs/core/runtime_configuration/include/hpx/runtime_configuration/init_ini_data.hpp b/libs/core/runtime_configuration/include/hpx/runtime_configuration/init_ini_data.hpp
index 37527c19c031..13949bdd67f5 100644
--- a/libs/core/runtime_configuration/include/hpx/runtime_configuration/init_ini_data.hpp
+++ b/l... | 4 | 4 | 3 | [{"id": "G0", "claim": "The test file is missing #include <cstddef> for the symbol std::size_t, as reported by the inspect tool on static_plugin_registry.cpp line 272.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "HPX_REGISTER_PLUGIN_REGISTRY_MODUL... | null |
TheHPXProject__hpx__7183 | TheHPXProject/hpx | 7,183 | defect | bcdd97b6afa9bf4c2edd83fa0b42de8a2030ebbd | b63ec4e2ae47f4cd4e1806d1f1aef2b30e6f6995 | tests(algorithms): fix return-iterator C++20 compliance for hpx::shift_left and hpx::shift_right | Fixes #
## Proposed Changes
- Separated the coalesced early-exit guards in both `hpx::shift_left` and `hpx::shift_right` to handle the `n <= 0` and `n >= dist` edge conditions independently, correctly matching the exact return-iterator requirements outlined in the C++20 `[alg.shift]` specification.
- Resolve... | diff --git a/libs/core/algorithms/include/hpx/parallel/algorithms/shift_left.hpp b/libs/core/algorithms/include/hpx/parallel/algorithms/shift_left.hpp
index 7802fa25ddb5..6944a528f359 100644
--- a/libs/core/algorithms/include/hpx/parallel/algorithms/shift_left.hpp
+++ b/libs/core/algorithms/include/hpx/parallel/algorit... | 1 | 1 | 0 | [{"id": "G0", "claim": "In shift_left.hpp the check `if (n <= 0)` is dead code because n is an unsigned integer, which can never be less than zero; only the n == 0 case is meaningful.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.