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
xournalpp__xournalpp__1113
xournalpp/xournalpp
1,113
defect
229809eb947a4fda9d56d00f6ff9d4281c373d02
21b0814730e127c760fba366d99f71a4bdb93847
Improve/fix Latex tool usability
* [x] Improve error handling (Fixes #1095 somewhat. Possibly prevents #1100). * [x] ~Set the rendered font color to the currently selected color in the toolbar~ (should be brought up in a separate issue) * [x] Render asynchronously to avoid the noticeable pauses on keypresses (~100ms on my computer) * [x] ~Since pd...
diff --git a/src/control/LatexController.cpp b/src/control/LatexController.cpp index f77b35e17ab5..64f4ad8a47f2 100644 --- a/src/control/LatexController.cpp +++ b/src/control/LatexController.cpp @@ -14,15 +14,29 @@ #include "pixbuf-utils.h" +/** + * First half of the LaTeX template used to generate preview PDFs. U...
10
4
1
[{"id": "G0", "claim": "Rendering on a 200ms timer is bad for battery consumption; the preview should instead be rendered asynchronously after every keypress.", "category": "performance", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The first line of LATEX_TEMPLATE_2 (\"\\n\\...
null
xournalpp__xournalpp__2870
xournalpp/xournalpp
2,870
defect
57e156ce4d162c9e4f351d1d20b5c5569e58d85d
fd03e9a840f0408482b689aed3131ba4a6e22067
Refactor and test ObjectInputString
Refactoring ObjectInputString to use std::stringstream and adding unit test to it. cf #2278
diff --git a/src/util/serializing/ObjectInputStream.cpp b/src/util/serializing/ObjectInputStream.cpp index 55a83bef8673..990b1245f178 100644 --- a/src/util/serializing/ObjectInputStream.cpp +++ b/src/util/serializing/ObjectInputStream.cpp @@ -3,27 +3,30 @@ #include "Serializeable.h" #include "i18n.h" -ObjectInputSt...
5
4
0
[{"id": "G0", "claim": "The typeName parameter passed to readTypeFromSStream and embedded in the thrown exception is unnecessary, since the file and line already make obvious what should have been read.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Smar...
null
xournalpp__xournalpp__3390
xournalpp/xournalpp
3,390
defect
ff4936e90f1d82784d68862033efd418ca6313dc
578a447d1c45708d62ebbc95651c8198f5ce3bb0
Reworked PageRange to use C++17 STL.
Summary of changes: * The function `PageRange::parse` was modified to use STL; - Fixes a potential bug were ranges larger than `pageCount` could be stored. (It is unclear if this bug could occur) - Eliminates a potential memory leak by avoiding `new`. * Added documentation for `PageRange::parse`. * ...
diff --git a/src/control/XournalMain.cpp b/src/control/XournalMain.cpp index 00fcae1a1cd4..df9ae0ed14f0 100644 --- a/src/control/XournalMain.cpp +++ b/src/control/XournalMain.cpp @@ -1,6 +1,7 @@ #include "XournalMain.h" #include <algorithm> +#include <cstddef> #include <memory> #include <glib/gstdio.h> @@ -260,...
17
8
4
[{"id": "G0", "claim": "The int/size_t conversions were not thoroughly checked and the build fails on macOS.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The trailing-return-type declaration of createPdf should be replaced with the plain 'bool Xoj...
null
xournalpp__xournalpp__3491
xournalpp/xournalpp
3,491
defect
1e9c21658950db0dec6ad223849749a438257ae5
5b1162a5ac2ea226e08b7fc169b26555ba2b0d24
Fix #3472: fix getNextObjectName
#3472 was due to a change in the function `getNextObjectName` in `ObjectInputStream`. The function `getNextObjectName` was previously not modifying the internal state of the object `ObjectInputStream`. This is fixed. This bug could have been detected by unit tests testing the serialization of `Stroke` objects. S...
diff --git a/src/util/serializing/ObjectInputStream.cpp b/src/util/serializing/ObjectInputStream.cpp index 7e0c20a99f88..b63bcee4840b 100644 --- a/src/util/serializing/ObjectInputStream.cpp +++ b/src/util/serializing/ObjectInputStream.cpp @@ -55,8 +55,13 @@ auto ObjectInputStream::readObject() -> std::string { } au...
4
4
4
[{"id": "G0", "claim": "The local variable holding `len - pBuffer->in_avail()` might not fit in an `int`; use the native return type (`std::streamsize`) instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new testReadStroke should set the au...
null
xournalpp__xournalpp__4082
xournalpp/xournalpp
4,082
defect
be443d79c37d6591d4d427c30695d4f2bd69c08a
37ae685f444a57a395dbe1e42b024193364d0a9f
Add RAII wrappers for cairo classes in gui/PageView and jobs/RenderJob
This PR creates RAII wrappers for cairo_t and cairo_surface_t (as well as a template for further applications -- e.g. GObject...). Those wrappers are then used in gui/PageView and to refactor jobs/RenderJob. One major change with this PR concerns HiDPI settings: jobs/RenderJob is now able to rerender only a porti...
diff --git a/src/core/control/jobs/RenderJob.cpp b/src/core/control/jobs/RenderJob.cpp index 2ad62d160813..f1cc590cb800 100644 --- a/src/core/control/jobs/RenderJob.cpp +++ b/src/core/control/jobs/RenderJob.cpp @@ -10,6 +10,7 @@ #include "util/Rectangle.h" #include "util/Util.h" #include "view/DocumentView.h" +#incl...
19
16
0
[{"id": "G0", "claim": "The move-assignment operator should use swap semantics or, better, std::exchange (via safeReset) instead of manually unref-ing and assigning the pointer.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The constructor and reset cou...
null
xournalpp__xournalpp__4139
xournalpp/xournalpp
4,139
defect
9ae2429bffd9906ee3e132242b3a35df3ff7b7c4
a75048b462e006e28456c0cc156e894e7d4bcbc1
Add legacy snippet to read files containing PageTypeFormat::Copy
Fixes #4127.
diff --git a/src/core/control/xojfile/LoadHandler.cpp b/src/core/control/xojfile/LoadHandler.cpp index eb38df8f3f55..eaf7700363e7 100644 --- a/src/core/control/xojfile/LoadHandler.cpp +++ b/src/core/control/xojfile/LoadHandler.cpp @@ -337,6 +337,24 @@ void LoadHandler::parseBgSolid() { bg.format = PageTypeHand...
4
3
2
[{"id": "G0", "claim": "The comment added in LoadHandler::parseBgSolid is not entirely accurate: it says a bug created Copy-typed pages only before commit 257b935, but the bug is still present after that commit.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
xournalpp__xournalpp__4159
xournalpp/xournalpp
4,159
defect
dcd1f0b3cf5aee7f537f46f3b3332068000286c7
da25544a8a53398b92dba948282a4e36daf4ae1a
Split tools/SplineHandler into View-Controller
This follows both #4158 and #4137. This PR splits tools/SplineHandler into a view and a controller. It also optimizes (a lot) the rendering costs by only repainting the necessary areas (as opposed to rerendering to big portions of pages). (although some further optimizations should come with splines and #2729). ~...
diff --git a/src/core/control/Control.cpp b/src/core/control/Control.cpp index 9fe12d40eb03..2b1b6c1da5d5 100644 --- a/src/core/control/Control.cpp +++ b/src/core/control/Control.cpp @@ -1299,6 +1299,14 @@ auto Control::isInDragAndDropToolbar() -> bool { } void Control::setShapeTool(ActionType type, bool enabled) {...
4
4
2
[{"id": "G0", "claim": "Selecting elements (e.g., with Ctrl+A) while drawing a spline does not finalize it, and the reviewer asks whether this PR also fixes that.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The comment saying onSequenceCancelEv...
null
xournalpp__xournalpp__4302
xournalpp/xournalpp
4,302
defect
2809cb4fd1ce20723be688421f54223602ed22bf
799310909c4c01ff9fca0a35d35811a28967f7fe
Fix #4301
Fix #4301
diff --git a/src/core/control/tools/StrokeStabilizer.cpp b/src/core/control/tools/StrokeStabilizer.cpp index 67313c19a88f..634378d5bab4 100644 --- a/src/core/control/tools/StrokeStabilizer.cpp +++ b/src/core/control/tools/StrokeStabilizer.cpp @@ -128,10 +128,9 @@ void StrokeStabilizer::Active::quadraticSplineTo(const E...
1
1
0
[{"id": "G0", "claim": "The pressure-sensitivity check should not hardcode pen by adding and using a method like canToolTypeHavePressure(toolType) instead of assuming only pen is pressure-sensitive, in case another pressure-sensitive tool is added in the future.", "category": "design", "verdict": "supported", "priority...
null
xournalpp__xournalpp__4382
xournalpp/xournalpp
4,382
defect
b7ae76276c15fa4b3ea3751641d3d47673e6c300
95ce987670b52d6abf90b0f87fd2b038050f92f2
Fix raii/CLibrariesSPtr::reset(T*, Adopt) not calling adoption routine
All is in the title. I also added a test unit to make sure. This commit is extracted from #4271. I feel it should not wait for this larger PR to get merged, as those RAII wrappers are used more and more in the code.
diff --git a/src/util/include/util/raii/CLibrariesSPtr.h b/src/util/include/util/raii/CLibrariesSPtr.h index 9b85e2c9042c..ff2eb2debd85 100644 --- a/src/util/include/util/raii/CLibrariesSPtr.h +++ b/src/util/include/util/raii/CLibrariesSPtr.h @@ -32,13 +32,14 @@ class CLibrariesSPtr { using handler_type = H; pr...
2
1
1
[{"id": "G0", "claim": "Adopt should be made explicit in the CLibrariesSPtr constructor/reset because it is too easy to forget that the default is adopt instead of ref.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test should assert a count of two ...
null
xournalpp__xournalpp__4583
xournalpp/xournalpp
4,583
defect
be94f16236288eed82dba7702e28d31c58d5bd36
7497450e66c8a376753f12ac9ff3be039a9fbaed
Use image meta data for image orientation
Fix 'Different Image orientation than expected #4577'. Jpeg and tiff images can have meta data there specify the image orientation. This PR ensure these meta data is applied to the image both in file browser preview and when the image is loaded. Example images with tags can be loaded from: https://raw.githubuserc...
diff --git a/src/core/control/stockdlg/ImageOpenDlg.cpp b/src/core/control/stockdlg/ImageOpenDlg.cpp index 356607a8e139..552de0c59f9e 100644 --- a/src/core/control/stockdlg/ImageOpenDlg.cpp +++ b/src/core/control/stockdlg/ImageOpenDlg.cpp @@ -85,9 +85,12 @@ void ImageOpenDlg::updatePreviewCallback(GtkFileChooser* fileC...
3
2
1
[{"id": "G0", "claim": "Add a unit test covering the new image-orientation handling: load a small sample image with a rotated EXIF orientation and check the resulting image dimensions.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The unit test should ...
null
xournalpp__xournalpp__4599
xournalpp/xournalpp
4,599
defect
ba5ca039ba84559cdb5ba69daf3f1543107c1ec6
846a6cc0657d7aca8df1f5a7102053f180bea720
Default pdf-export name with wildcards
## Issue This PR implements the requested enhancement in #2897 ## Feature Description This PR introduces the possibility to set a default name for exporting pdfs. Among others, this solves the issue of overwriting the background-pdf. Wildcards are used for allowing some file-related naming and use the `%{...}` sy...
diff --git a/src/core/control/jobs/BaseExportJob.cpp b/src/core/control/jobs/BaseExportJob.cpp index 133b0908fc0e..fc10c107e237 100644 --- a/src/core/control/jobs/BaseExportJob.cpp +++ b/src/core/control/jobs/BaseExportJob.cpp @@ -69,7 +69,7 @@ auto BaseExportJob::showFilechooser() -> bool { Document* doc = contro...
7
6
2
[{"id": "G0", "claim": "There should be a unit test covering the wildcard filename parsing.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The behavior when the wildcard string has incorrect syntax, e.g. a missing '}', should be clarified.", "category":...
null
xournalpp__xournalpp__4702
xournalpp/xournalpp
4,702
defect
664690bd4b7761c7b027172008c6e45c4e2b88fb
5e213ecb5167d93fa5863754e58ff9b51fe2eff4
Unit test for model/StrokeStyle and refactor
Tried to first put existing code under unit test and then refactor to use e.g. map, vector, sstring e.g. instead of mix of glib function and new/delete to allocate dynamic arrays.
diff --git a/src/core/control/Control.cpp b/src/core/control/Control.cpp index ea4004c1ee6e..109b1a0358cd 100644 --- a/src/core/control/Control.cpp +++ b/src/core/control/Control.cpp @@ -3163,7 +3163,7 @@ void Control::setFill(bool fill) { } void Control::setLineStyle(const string& style) { - LineStyle stl = Str...
5
5
0
[{"id": "G0", "claim": "The refactoring should go further and change LineStyle to store its dashes as an std::vector<double> instead of the pair (dashes, count), passing the vector around by reference so extra copies are avoided.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
xournalpp__xournalpp__5164
xournalpp/xournalpp
5,164
defect
11e29b618c7abae0659e9a2e4d0d27d3a8a23a4f
bba1d38102b077fd5987dd7c9a4ed8086bf41476
Fix some memory leaks
Fixes some memory leaks. Some of the fixes are taken from #4613 (and flagged as coauthored with @jhilmer). I also tried enabling `fsanitize=leak,address,undefined` to the tests' build env to implicitely add the test "no leaks in whatever the tests call". It detected some dataleaks in SaveHandler but I have not fo...
diff --git a/src/core/control/xml/XmlNode.cpp b/src/core/control/xml/XmlNode.cpp index d1b265425d87..a32145f700bb 100644 --- a/src/core/control/xml/XmlNode.cpp +++ b/src/core/control/xml/XmlNode.cpp @@ -37,9 +37,8 @@ void XmlNode::setAttrib(const char* attrib, size_t value) { putAttrib(new SizeTA /** * The double ar...
3
2
0
[{"id": "G0", "claim": "XmlPointNode::setPoints should take the std::vector<Point> by value and std::move it into this->points, instead of taking a const reference and copying it.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In LoadHandler::parseB...
null
xournalpp__xournalpp__5638
xournalpp/xournalpp
5,638
defect
8dbb0cf81a0aecf2e5c1c47537f2654f62b72e94
5ea7f5b94256c6ed11e8809e8132a040cec892bb
Fix conversion problems with `fs::path` on Windows
(I'm testing on MS Windows and my system language is set to Chinese) I have observed these problems: 1. Locales will not load when installed to a path with non-ASCII characters. 2. Saved annotated PDF files (*.xopp) could not be reopened when the PDF file-path contains non-ASCII characters. 3. If there are non-...
diff --git a/src/core/control/XournalMain.cpp b/src/core/control/XournalMain.cpp index 63f4caf261dc..cd030d24b31f 100644 --- a/src/core/control/XournalMain.cpp +++ b/src/core/control/XournalMain.cpp @@ -85,7 +85,7 @@ void initCAndCoutLocales() { void initLocalisation() { #ifdef ENABLE_NLS fs::path localeDir = Ut...
8
4
4
[{"id": "G0", "claim": "The S1 change to pass localeDir.string() to bindtextdomain is unestablished - it is not known that bindtextdomain requires system-narrow rather than UTF-8 strings, and vcpkg's patched gettext makes this spot delicate.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
xournalpp__xournalpp__6084
xournalpp/xournalpp
6,084
defect
098e9b01fc210e3b2de2454c3736e074150c0a9c
0849528e9a9dedf877023204f18160388e42d48f
Improve testing of locale issues
This PR allows to run the test-units with the locale set as in `control/XournalMain.cpp`. By doing so 1. I found two occurrences of missing calls to `stringstream::imbue()` on the release branch (they are now fixed) 2. It allows to test that `std::put_time()` used in `Document::createSaveFilename()` works even with...
diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index b81d8bd2892f..7b5e4d7fc835 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -26,15 +26,26 @@ jobs: uses: ./.github/actions/build ...
6
5
0
[{"id": "G0", "claim": "Add a GB_18030 locale test to the CI matrix, since it is required by law in China and UTF-8 is not allowed to be the default there.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "At some point in the future the locale initialisat...
null
xournalpp__xournalpp__6171
xournalpp/xournalpp
6,171
defect
789a4cab33f4577b0aa687e0ae159ed0958f5338
a3567ca283b7eae79dec817161ca4fdeb08ea543
Add wildcard `file` when configuring the save filename
`file` will use the filename of the file itself, instead of the name of the PDF background.
diff --git a/src/core/model/Document.cpp b/src/core/model/Document.cpp index d7ac88b1a014..e78f9f4ad075 100644 --- a/src/core/model/Document.cpp +++ b/src/core/model/Document.cpp @@ -152,9 +152,11 @@ auto Document::createSaveFilename(DocumentType type, const std::string& defaultS return p; } ...
3
3
2
[{"id": "G0", "claim": "The new `%{file}` wildcard should also be added to the wildcard list shown in the settings dialog (ui/settings.glade).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The changed lines should be reformatted with git-clang-form...
null
xournalpp__xournalpp__6588
xournalpp/xournalpp
6,588
defect
01734d85fce88eee8d45bad6f9d4e95d65b45b36
5ff95e97b2a45529a3de99456e59e194ce049dbb
Expose new action system in Lua API and deprecate old one
The basic functionality works already. E.g. one can write ```lua app.activateAction("setsquare") ``` to toggle the setsquare or ```lua app.changeActionState("set-layout-vertical", false) ``` to change to horizontal layout. The action states are not always self-explanatory and this still needs to be addressed...
diff --git a/plugins/BeamerPresentation/main.lua b/plugins/BeamerPresentation/main.lua index 9ee413afe73c..583ba98edb2d 100644 --- a/plugins/BeamerPresentation/main.lua +++ b/plugins/BeamerPresentation/main.lua @@ -33,7 +33,7 @@ function BeamerClean() local prev = struct.pages[p-1].pdfBackgroundPageNo ...
5
5
2
[{"id": "G0", "claim": "The Lua API should expose the enum values through an app.C table of constants on the app library instead of raw integer enum values, so that plugins do not break when an enum element is added or its value changes.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introd...
null
xournalpp__xournalpp__7148
xournalpp/xournalpp
7,148
defect
7798cea2872b9d45c04e4e3e64352f1c7f46ec1e
08964f6ac5d7503d1547f9f541a5aae924f76a06
Remove PACKAGE_DATA_DIR and PACKAGE_LOCALE_DIR
Relying on PACKAGE_DATA_DIR = ${CMAKE_INSTALL_PREFIX}/share is unfortunate when the app is built on a different machine like the snap package or the AppImage. This resulted in wrong palette paths. The PACKAGE_LOCALE_DIR was unused.
diff --git a/CMakeLists.txt b/CMakeLists.txt index a7968de3ecc2..7d933646d3de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,7 +86,7 @@ configure_file( find_package(PkgConfig REQUIRED) -set(PACKAGE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share") +set(PROJECT_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}") # Git repo ...
1
1
0
[{"id": "G0", "claim": "The PROJECT_SOURCE_DIR definition added in src/config-paths.h.in looks never used, so its definition in src/config-paths.h seems unnecessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xournalpp__xournalpp__7156
xournalpp/xournalpp
7,156
defect
007c258f40d1e9f2818db36c17f5fd570cb029ae
ea9a960bad88a06463b4942e6d13fd128acbce6c
Add mouse button 4 and 5 support (#7145)
my mouse has back/forward thumb buttons but Xournal++ had no way to bind them, I thought it would be great to be able to customize just like LMB, MMB, and RMB This adds support for buttons 4th and 5th alongside the existing changes: - New `BUTTON_MOUSE_4` and `BUTTON_MOUSE_5` entries in the Button enum - Tool...
diff --git a/src/core/control/Control.cpp b/src/core/control/Control.cpp index 62f4c0c1122d..860ff60d2edc 100644 --- a/src/core/control/Control.cpp +++ b/src/core/control/Control.cpp @@ -2156,7 +2156,7 @@ void Control::closeDocument() { void Control::initButtonTool() { std::vector<Button> buttons{Button::BUTTON_E...
2
2
1
[{"id": "G0", "claim": "A code comment should be added explaining why Gdk event buttons 8 and 9 correspond to mouse buttons 4 and 5, since that mapping is not documented in the Gdk 3 EventButton docs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
xremap__xremap__760
xremap/xremap
760
defect
cc4b04a224b90fcc5f605fa41cba3189beb429b1
11e34c4c8c37c5036384bd2b41ca1ea41adf822b
Add e2e tests
I introduced an error in wait_for_all_keys_up, that was later fixed. In order to avoid regressions like that I have created some end-to-end tests that can test on 'real' devices. A new step in github actions is also added. These tests can emit events to the 'host' if they are misconfigured/fails so I have placed the...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0cdd12d..a2eb89c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,7 +84,10 @@ jobs: - uses: Swatinem/rust-cache@v1 with: key: ubuntu-latest - - run: cargo test + - name: R...
1
1
1
[{"id": "G0", "claim": "The new device test in tests/device.rs may be flaky on CI, as suggested by a failing CI run.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xtekky__gpt4free__2441
xtekky/gpt4free
2,441
defect
8d5d522c4e5770386e7e222b371ab17cbb1030b1
5adbff7c5bb8b7b7408a90d59129fe3da50cb0e2
IterListProvider support for generating images
Add missing get_har_files import in Copilot Fix typo in dall-e-3 model name
diff --git a/etc/unittest/__main__.py b/etc/unittest/__main__.py index e49dec30538..3719c374dbb 100644 --- a/etc/unittest/__main__.py +++ b/etc/unittest/__main__.py @@ -5,6 +5,7 @@ from .main import * from .model import * from .client import * +from .image_client import * from .include import * from .retry_provide...
18
6
0
[{"id": "G0", "claim": "The tests pass \"orginal\" to response_format, which should be spelled \"original\".", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "YieldImageResponseProviderMock passes a positional empty string as ImageResponse's second arg...
null
xtekky__gpt4free__3136
xtekky/gpt4free
3,136
defect
f8e51b8edce02cde1fbf85814157141bae702d72
71f540add8c883dbfb717b15fcaebfe2ae7774e1
Standardize reasoning field to OpenAI format while maintaining input compatibility
This PR resolves the inconsistency between DeepSeek's `"reasoning_content"` and OpenAI's `"reasoning"` field names in the g4f Interference API by standardizing on OpenAI's format for output while maintaining full backward compatibility for input parsing. ## Problem The issue arose because different AI providers use d...
diff --git a/docs/reasoning-standardization.md b/docs/reasoning-standardization.md new file mode 100644 index 00000000000..b99b0170c5e --- /dev/null +++ b/docs/reasoning-standardization.md @@ -0,0 +1,65 @@ +# Reasoning Field Standardization + +## Issue +DeepSeek uses `"reasoning_content"` field while OpenAI uses `"reas...
4
2
0
[{"id": "G0", "claim": "Do not remove the Reasoning object from content in the Python client response; it should only be hidden in the API response.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Do not write tests for the Reasoning object; write tests t...
null
xtekky__gpt4free__924
xtekky/gpt4free
924
defect
a54291cb7c9dbaf3d092e62f49e0186ee1be0aee
55577031d556c613daae9ed174fd6c02f3d0dcaa
Fix async example in readme
Improve error handling in ChatgptLogin Cache "snlm0e" in Bard Fix issue: https://github.com/xtekky/gpt4free/issues/913
diff --git a/README.md b/README.md index bf15f3a6f79..dc148e7d795 100644 --- a/README.md +++ b/README.md @@ -238,43 +238,42 @@ response = g4f.ChatCompletion.create( ##### Async Support: -To enhance speed and overall performance, execute providers asynchronously. The total execution time will be determined by the d...
2
1
0
[{"id": "G0", "claim": "The check should use the public asyncio.get_running_loop() and catch its exception instead of the undocumented asyncio.events._get_running_loop().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G5", "claim": "The ChatgptLogin provider raises \"R...
null
xtensor-stack__xsimd__1089
xtensor-stack/xsimd
1,089
defect
b3c882c51d50291be1339de0c7943d3dacdeff99
24cf4adb187ec58e83d62a49a211249849473cce
Added broadcast overload for bool
Fixes missing APIs due to https://github.com/xtensor-stack/xsimd/pull/973 @serge-sans-paille This is the last missing piece to upgrade xtensor to xsimd 13. If you don't have any objection, I will tag a release after this one gets in.
diff --git a/include/xsimd/arch/generic/xsimd_generic_memory.hpp b/include/xsimd/arch/generic/xsimd_generic_memory.hpp index 01aa48c65..badd0e384 100644 --- a/include/xsimd/arch/generic/xsimd_generic_memory.hpp +++ b/include/xsimd/arch/generic/xsimd_generic_memory.hpp @@ -32,6 +32,32 @@ namespace xsimd using...
2
1
0
[{"id": "G0", "claim": "The bool specialization of broadcaster hardcodes batch_bool<xsimd::as_unsigned_integer_t<bool>, A> as the return type of xsimd::broadcast, and the user has no way to specify the actual underlying type of that batch_bool.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "i...
null
xtensor-stack__xsimd__1134
xtensor-stack/xsimd
1,134
defect
d92c6d438ba50c37eeed9ca005cdeb8bdb91cabb
e66da98afd235b888542d0617b16831f18fca336
Added first() function for SSE/AVX/AVX512F
This pr implements new first() function for batch types. It is an improvement from the currently used self.get(0) as first() uses intrinsics to extract the first element. Addresses inefficiencies mentioned in [issue #1133](https://github.com/xtensor-stack/xsimd/issues/1133). I have only implemented for SSE/AVX/AVX512F...
diff --git a/include/xsimd/arch/common/xsimd_common_memory.hpp b/include/xsimd/arch/common/xsimd_common_memory.hpp index 773177233..3914a6f63 100644 --- a/include/xsimd/arch/common/xsimd_common_memory.hpp +++ b/include/xsimd/arch/common/xsimd_common_memory.hpp @@ -260,6 +260,25 @@ namespace xsimd return bu...
4
4
1
[{"id": "G0", "claim": "The per-architecture complex and batch_bool first() overloads duplicate logic that should be one common implementation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added code has formatting/style issues that should...
null
xtensor-stack__xsimd__1164
xtensor-stack/xsimd
1,164
defect
429da706dd0b278bfadb9f4fdf8c097109e57363
acafe62d0f032060eb4a9a50001df4901275256d
NEW API: Fixed shift, Rotation
1. adds the API bitwise_[l|r]shift<N>(...) and rot[l|r]<N>(...) 2. updates the test to use the API 3. fixes documentation I implemente xoshiro (vecotrized) the current API looks like this: ```cpp const auto result = xsimd::rotl(m_state[0] + m_state[3], 23) + m_state[0]; const auto t = m_state[1] << 17; ...
diff --git a/include/xsimd/arch/common/xsimd_common_arithmetic.hpp b/include/xsimd/arch/common/xsimd_common_arithmetic.hpp index 2e83d33de8..a78fdb7764 100644 --- a/include/xsimd/arch/common/xsimd_common_arithmetic.hpp +++ b/include/xsimd/arch/common/xsimd_common_arithmetic.hpp @@ -34,6 +34,11 @@ namespace xsimd ...
6
6
2
[{"id": "G0", "claim": "If the compile-time shift/rotation count can never be negative, the new template parameters should use an unsigned type such as size_t instead of int.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instruction selection should dep...
null
xtensor-stack__xsimd__1184
xtensor-stack/xsimd
1,184
defect
cbf693c52aebc5af621d9bd28baf8b7a795edeb1
b76733dd890febeb58c46811fa1885c329aae1cf
Extend support of batch_cast<...> to upcasting to a type twice as big
Fix #1179
diff --git a/docs/source/api/cast_index.rst b/docs/source/api/cast_index.rst index dee46b1f28..dae96bb724 100755 --- a/docs/source/api/cast_index.rst +++ b/docs/source/api/cast_index.rst @@ -47,6 +47,8 @@ Conversion: +---------------------------------------+----------------------------------------------------+ | :cpp...
5
2
0
[{"id": "G0", "claim": "The new API should be named `extension`, `extend` or `widen` because it does not just cast, it zero-extends and 1-extends (called widening/convert with widening in intrinsics terminology).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
xtensor-stack__xsimd__1205
xtensor-stack/xsimd
1,205
defect
37e5d9faa83618e24661485a883bc70fffc54c03
f1838ef8fb993113ab3fde8f423913db0802d73a
Unify scalar, `batch`, and `batch_bool` in some places
- Add `batch_traits` that unifies traits for scalar, `batch`, and `batch_bool`. - Treat `batch_bool` as its own mask type. - Add casts for scalar types. - Add `select()` for `batch_bool`. - Simplify `abs` implementation.
diff --git a/docs/source/api/type_traits.rst b/docs/source/api/type_traits.rst index f0b082bc3d..31a5f25859 100644 --- a/docs/source/api/type_traits.rst +++ b/docs/source/api/type_traits.rst @@ -32,9 +32,15 @@ Type Traits =========== `xsimd` provides a few type traits to interact with scalar and batch types in an -...
2
2
1
[{"id": "G0", "claim": "Making batch_cast usable on batch_bool is confusing alongside the existing batch_bool-to-batch conversion operator, so it should not be added.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The batch_bool_constant select overload see...
null
xtensor-stack__xsimd__1220
xtensor-stack/xsimd
1,220
defect
cadcd8fab2888d9344439cdda2204c182685e04d
e5d1e00941cd9cd92af9043482e11f9703537a70
Add shift by multiple constant
@serge-sans-paille @JohanMabille this ideas works, but I cannot figure out how to refactor `bitwise_lshift_as_twice_larger` into a separate header. The issue: - `xsimd_sse2.hpp` needs `utils/shits.hpp` for `bitwise_lshift_as_twice_larger` - but `bitwise_lshift_as_twice_larger` needs definitions from `xsimd_sse2.hp...
diff --git a/include/xsimd/arch/common/xsimd_common_arithmetic.hpp b/include/xsimd/arch/common/xsimd_common_arithmetic.hpp index c160670d48..457c78286c 100644 --- a/include/xsimd/arch/common/xsimd_common_arithmetic.hpp +++ b/include/xsimd/arch/common/xsimd_common_arithmetic.hpp @@ -16,6 +16,7 @@ #include <limits> #in...
6
3
0
[{"id": "G0", "claim": "The unused `R req` parameter should be removed from `bitwise_lshift_as_twice_larger`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "All the proper forward-to-dynamic overloads should be added for the other architectures ...
null
xtensor-stack__xsimd__1256
xtensor-stack/xsimd
1,256
defect
f2b9203f7ca15704ef11a1316ec790b8824f636b
c4a08e627887ae696090c8f5fd4607e36ce8c272
Add make_batch_constant from std::array in C++20
Porposal to add `std::array` to `make_batch_constant` when building with C++ 20.
diff --git a/include/xsimd/types/xsimd_batch_constant.hpp b/include/xsimd/types/xsimd_batch_constant.hpp index 4da2e3da64..0f5d4a9787 100644 --- a/include/xsimd/types/xsimd_batch_constant.hpp +++ b/include/xsimd/types/xsimd_batch_constant.hpp @@ -408,6 +408,15 @@ namespace xsimd return {}; } +#i...
2
2
2
[{"id": "G0", "claim": "Please add a test case for the new make_batch_constant from std::array.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Please also provide a test for make_batch_bool_constant from std::array.", "category": "testing", "verdict": "...
null
xtensor-stack__xsimd__1277
xtensor-stack/xsimd
1,277
defect
4050d947536137280ee9c01f2ec73fb3071e63f4
344a25443c88566284cc644c86d8a0f76b2455cc
Safe reading of CPUID
Not implemented previously in xsimd, CPUID requires to first check which leaves are available before calling it, otherwise the value returned may be invalid. - Before reading `leaf < 0x80000000`, check leaf 0 EAX - Before reading `leaf > 0x80000000`, check leaf 0x80000000 EAX - Before reading leaf 7 subleaf 1, che...
diff --git a/include/xsimd/config/xsimd_cpu_features_x86.hpp b/include/xsimd/config/xsimd_cpu_features_x86.hpp index 4ed361f46..f3fc48293 100644 --- a/include/xsimd/config/xsimd_cpu_features_x86.hpp +++ b/include/xsimd/config/xsimd_cpu_features_x86.hpp @@ -16,6 +16,9 @@ #include <cassert> #include <cstdint> #include...
3
3
0
[{"id": "G0", "claim": "The bit-manipulation helpers in xsimd/utils/bits.hpp should static_assert that the integer type I is unsigned, since bitwise operations on signed integers are error-prone.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new com...
null
xtensor-stack__xsimd__1287
xtensor-stack/xsimd
1,287
defect
99587dd10206b197d552f04378f9ba2ab06928c5
9d46c280babbbc7d7239447e94901e844a2e66f4
Add tests for CPU features
- **Add cpu_feature test** - **Add run CPU tests in CI**
diff --git a/.github/workflows/cross-sve.yml b/.github/workflows/cross-sve.yml index e9d45b81ee..3362cd7b29 100644 --- a/.github/workflows/cross-sve.yml +++ b/.github/workflows/cross-sve.yml @@ -40,6 +40,12 @@ jobs: -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/.github/toolchains/gcc-aarch64-linux-gnu.c...
5
3
0
[{"id": "G0", "claim": "The linux workflow could check for AVX via `grep -E '\\<avx\\>' /proc/cpuinfo` instead of just assuming the runner always has AVX.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cross-sve workflow could just not set XSIMD_TEST...
null
xtensor-stack__xsimd__1294
xtensor-stack/xsimd
1,294
defect
47b10f38791f5df39882919552e2f4d6a6bbf9b2
049e9ee558308c4c3a59c6dc06e144fb3646c35c
Add xsimd::get<>() for optimized compile-time element extraction
Add a free function xsimd::get<I>(batch) API mirroring std::get<I>(tuple) for fast compile-time element extraction from SIMD batches. Per-architecture optimized kernel::get overloads using the fastest available intrinsics: - SSE2: shuffle/shift + scalar convert - SSE4.1: pextrd/pextrq/pextrb/pextrw, bitcast + pext...
diff --git a/include/xsimd/arch/common/xsimd_common_memory.hpp b/include/xsimd/arch/common/xsimd_common_memory.hpp index 6ead88f99f..24220a0554 100644 --- a/include/xsimd/arch/common/xsimd_common_memory.hpp +++ b/include/xsimd/arch/common/xsimd_common_memory.hpp @@ -224,7 +224,8 @@ namespace xsimd template <cl...
1
1
1
[{"id": "G0", "claim": "The get<> tests should also verify that loading back the array of extracted values yields a batch equal to res, so the getter is trusted for indexes other than 0.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xtensor-stack__xsimd__1325
xtensor-stack/xsimd
1,325
defect
9cf14f9ce1b381a364e60bd6915421883ac9f21f
d11c1cbd5aad479c0302399e854a16162b135bc2
IBM Z (s390x) fixes
- Fix an issue which so far prevented the full set of tests being compiled in when running in the github workflow. - While doing this, align cross-s390x.yml with the latest cross-ppc.yml changes. - Add a cpu_feature testcase for s390x VXE and add a few pieces which were still missing. Tested with GCC and Clang on ...
diff --git a/.github/workflows/cross-s390x.yml b/.github/workflows/cross-s390x.yml index 2f98aae772..4f6fcea7be 100644 --- a/.github/workflows/cross-s390x.yml +++ b/.github/workflows/cross-s390x.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: target: - - { platform: 's390x', dir: 's390x-...
1
1
0
[{"id": "G0", "claim": "The now-empty `flags` entry should be dropped from the cross-s390x.yml matrix, since the s390x flags are redundant (already set in test/CMakeLists.txt) and appear twice on the command line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xtensor-stack__xsimd__905
xtensor-stack/xsimd
905
defect
e8f209c3397c8a866be2312682689a04e4abfd66
0b64de4b48431339e5429ed27f942236a0c92dec
Provide generic signed /unsigned type conversion
A reinterpret_cast is usually the way to go. For the range of value when it's valid in C, we achieve the same behavior for batches. Fix #735
diff --git a/include/xsimd/arch/generic/xsimd_generic_details.hpp b/include/xsimd/arch/generic/xsimd_generic_details.hpp index fd66e5d03c..84baf7e636 100644 --- a/include/xsimd/arch/generic/xsimd_generic_details.hpp +++ b/include/xsimd/arch/generic/xsimd_generic_details.hpp @@ -135,6 +135,51 @@ namespace xsimd ...
2
2
2
[{"id": "G0", "claim": "In the uint64-to-int64 direction the generic fast_cast overload has its signed and unsigned batch argument types inverted (batch<uint64_t,...> fast_cast(batch<uint64_t,...>, batch<int64_t,...>)) and should read batch<uint64_t,...> fast_cast(batch<int64_t,...>, batch<uint64_t,...>) like the other...
null
xtensor-stack__xsimd__943
xtensor-stack/xsimd
943
defect
61d389c87f61ca5575c77369ec5068ea450f716e
93a1a569e4b4c0110eff85235f52460714ae21e9
test emscripten-32wasm in the browser
* compile tests for emscripten-wasm32 * tests in the browser ( via playwright) * wasm code is compiled with `-msse2`
diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml new file mode 100644 index 000000000..159c1edbe --- /dev/null +++ b/.github/workflows/emscripten.yml @@ -0,0 +1,29 @@ +name: Emscripten build +on: [push, pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.job }}-${{ gi...
2
1
1
[{"id": "G0", "claim": "test_wasm.sh mixes an install step into the test script, so it should be split into install_wasm_deps.sh and test_wasm.sh.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The actual xsimd test suite should also be run in was...
null
xtensor-stack__xsimd__953
xtensor-stack/xsimd
953
defect
6363da90e2d1ff712e3fc728936e3ca5d409b2e4
b453df55b991861e30255af1dd39e1d7f2fa7563
Added missing boolean operators in xsimd_api.hpp
Support for `eq` and `neq` operations was added for `bool_batch` in `xsimd_api.hpp`
diff --git a/include/xsimd/types/xsimd_api.hpp b/include/xsimd/types/xsimd_api.hpp index dcaddd451..6a1526d95 100644 --- a/include/xsimd/types/xsimd_api.hpp +++ b/include/xsimd/types/xsimd_api.hpp @@ -648,6 +648,21 @@ namespace xsimd return x == y; } + /** + * @ingroup batch_logical + * + ...
1
1
1
[{"id": "G0", "claim": "Add tests for the newly added eq and neq batch_bool operators in test/test_batch_bool.cpp, with test_comparison as the test name.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xtensor-stack__xtensor__1011
xtensor-stack/xtensor
1,011
defect
293e3e1783a2e2d6e61e458805567976449ffb26
41f9b02dab5e516018072ca1eee59a18fba33995
[xrandom] Improve `random::choice`
This PR corresponds to the following fixes: 1. The garbage values produced by [this issue](https://github.com/QuantStack/xtensor/issues/1009) is due to an optional assert. We throw `std::runtime_error` instead. 2. Previously, we performed a Fisher Yates shuffle on the array and then copied the shuffle. As @wolfv ...
diff --git a/include/xtensor/xrandom.hpp b/include/xtensor/xrandom.hpp index 4105147fe..8ad4af0d2 100644 --- a/include/xtensor/xrandom.hpp +++ b/include/xtensor/xrandom.hpp @@ -79,7 +79,7 @@ namespace xt void shuffle(xexpression<T>& e, E& engine = random::get_default_random_engine()); template <clas...
1
1
0
[{"id": "G0", "claim": "Use curly brackets even around one-line bodies (the new `if (idx < n)` line in the reservoir-sampling loop needs braces).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
xtensor-stack__xtensor__1071
xtensor-stack/xtensor
1,071
defect
ed0a2f1dc1278a2462c1c50e629cf928f34842b5
718d4e36f18dcd208715f522656b5ad3eb9d259c
Added "interp" function to xmath, updated the doc
* The function is equivalent to NumPy's `interp`, whereby the `left` and `right` options are allowed using the overload. * The `period` option in NumPy's `interp` is not currently implemented. > Note: I'm not fully confident that I followed all (implicit) conventions.
diff --git a/docs/source/numpy.rst b/docs/source/numpy.rst index c369cc740..5a1ba57fb 100644 --- a/docs/source/numpy.rst +++ b/docs/source/numpy.rst @@ -398,6 +398,8 @@ xtensor universal functions are provided for a large set number of mathematical +-----------------------------------------------+---------------------...
8
8
3
[{"id": "G0", "claim": "Reformat the sortedness assertion loop: opening brace on its own line, whitespace around '-', and a std::-qualified size type instead of bare size_t.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Reformat the three-argument interp...
null
xtensor-stack__xtensor__1118
xtensor-stack/xtensor
1,118
defect
92c1832dd4afe773d66e2a671b56b6445e20194f
f09188a4b59e4ede962a4c14f9d7b3e1d9780d7e
Fixes average bug + adds NumPy based test
Added check to avoid future bugs (see issue #1117).
diff --git a/include/xtensor/xmath.hpp b/include/xtensor/xmath.hpp index 65bcaefa54..f69e94fc2f 100644 --- a/include/xtensor/xmath.hpp +++ b/include/xtensor/xmath.hpp @@ -1891,7 +1891,7 @@ XTENSOR_INT_SPECIALIZATION_IMPL(FUNC_NAME, RETURN_VAL, unsigned long long); } using result_type = promote_type_...
2
2
2
[{"id": "G0", "claim": "The weights-sum line should not cast to result_type and should not call the returned expression with an empty `()` (which returns the scalar at position 0); it should be `auto scl = sum(weights, ax, xt::evaluation_strategy::immediate{});`.", "category": "correctness", "verdict": "supported", "pr...
null
xtensor-stack__xtensor__1173
xtensor-stack/xtensor
1,173
defect
e5f920296a9c847cdaa03bbec6321e64aafec74a
ef222ee1f0bb5686b479510e7666da28a7ab22b8
xsimd and functor refactoring
This changes our functors considerably. They don't need to be templated by the result type anymore (same goes for xfunction, no more template for the return type). Additionally, the way xsimd detection for xfunction works has changed quite a bit. This now allows for: - functions in functions, so that function...
diff --git a/CMakeLists.txt b/CMakeLists.txt index c3b2731d6..c91f75efd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,7 +131,7 @@ endif() if(XTENSOR_USE_XSIMD) add_definitions(-DXTENSOR_USE_XSIMD) - find_package(xsimd 6.2.0 REQUIRED) + find_package(xsimd 7.0 REQUIRED) message(STATUS "Found...
8
7
0
[{"id": "G0", "claim": "The 'using value_type = typename std::decay_t<E>::value_type;' declarations in the conj, arg and norm helpers of xcomplex.hpp are no longer needed and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loa...
null
xtensor-stack__xtensor__1218
xtensor-stack/xtensor
1,218
defect
02182d79538768762ad518c5d8cf98694f453340
723b6ca1ba692eae1fb7329a5ddc57fa0e10b194
shared pointer adaptor
This PR allows for adaptors on shared pointers. Lifetimes of custom wrappers can be extended by copying into lambdas, as detailed in the docs.
diff --git a/docs/source/missing.rst b/docs/source/missing.rst index ffb15ab0a8..cd1ba77aa0 100644 --- a/docs/source/missing.rst +++ b/docs/source/missing.rst @@ -84,7 +84,7 @@ of the two expressions while the last one holds a reference on at least one of t { true, false }}; xoptional_assembly<xarray<d...
3
3
0
[{"id": "G0", "claim": "The commented-out `/*std::true_type,*/` debug leftover in get_buffer_storage should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The adapt_smart_ptr documentation example should use the member `m_buf` instea...
null
xtensor-stack__xtensor__1276
xtensor-stack/xtensor
1,276
defect
7c31841b1f9ff1033787f08e9ee705502cb313e3
02218f3b2c99842f2196321bdd07528d7bda5f66
refactor functor view
This forms the basis for optional support in Python/NumPy and R
diff --git a/include/xtensor/xfunctor_view.hpp b/include/xtensor/xfunctor_view.hpp index 387918ba89..5127909287 100644 --- a/include/xtensor/xfunctor_view.hpp +++ b/include/xtensor/xfunctor_view.hpp @@ -38,6 +38,9 @@ namespace xt template <class F, class ST> class xfunctor_stepper; + template <class F, c...
3
3
0
[{"id": "G0", "claim": "The commented-out proxy_simd_load/proxy_simd_store blocks left in xoffset_view.hpp are dead code and need removing or an explanation (\"What is this meant for?\").", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new te...
null
xtensor-stack__xtensor__1441
xtensor-stack/xtensor
1,441
defect
0f52dcfb69fd07ad816303d8a848bfce315ca3ed
22d24a1c0bc630a9e5baeda96a1c14b3b3b4075f
Added `xt::pad`
I have started to work on `xt::pad`. Before I add more cases maybe you can share your feedback? Example: ```cpp #include "xtensor.hpp" #include "xarray.hpp" #include "xio.hpp" #include "xpad.hpp" int main() { xt::xarray<size_t> a = xt::arange<size_t>(2*3).reshape({-1,3}); auto b = xt::pad(a, {2,3...
diff --git a/include/xtensor/xpad.hpp b/include/xtensor/xpad.hpp new file mode 100644 index 0000000000..6d64e47742 --- /dev/null +++ b/include/xtensor/xpad.hpp @@ -0,0 +1,68 @@ +/*************************************************************************** +* Copyright (c) 2016, Johan Mabille, Sylvain Corlay, Wolf Vollp...
5
3
1
[{"id": "G0", "claim": "The per-axis slice-vector construction loop can be simplified to construct both xstrided_slice_vector objects pre-filled with xt::all() in a single expression.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`auto out = e;...
null
xtensor-stack__xtensor__1493
xtensor-stack/xtensor
1,493
defect
79262d27a817f44096ce8cfc1a57d15211af9050
9ee78071951043f8e42dab56cbf8503e290eb2dd
Fix xbroadcast linear assign
Fixes #1492. Fixes https://github.com/QuantStack/xtensor-r/issues/103
diff --git a/include/xtensor/xbroadcast.hpp b/include/xtensor/xbroadcast.hpp index ffa4afa3e..811d86e8e 100644 --- a/include/xtensor/xbroadcast.hpp +++ b/include/xtensor/xbroadcast.hpp @@ -94,6 +94,37 @@ namespace xt using size_type = typename xexpression_type::size_type; }; + /**********************...
3
3
1
[{"id": "G0", "claim": "The pull request as pushed does not fix the reported issue: assigning a broadcast expression to a column-major array still produces wrong results, and the new linear_begin/linear_end overloads are never invoked (none of their print statements fire).", "category": "correctness", "verdict": "suppo...
null
xtensor-stack__xtensor__1559
xtensor-stack/xtensor
1,559
defect
abb8f8086eac8c3bc4389b47049074c732ea4a53
91dd5fe1b805df08f2ab54678e77abde37eab367
Add clang-cl support
- Set up Azure pipeline to test clang-cl - Add `get` function for tuples subclassed from `std::tuple`. See here: https://stackoverflow.com/a/37188019/2528668 Fixes #1534 - Fix compilation with clang-cl and JSON. See [here](https://github.com/QuantStack/xtensor/commit/8cef0ef90e6c50d7e6e2be4a000620dfcff32a43#diff-7e9...
diff --git a/README.md b/README.md index 7d336e4181..e357eb538e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Travis](https://travis-ci.org/QuantStack/xtensor.svg?branch=master)](https://travis-ci.org/QuantStack/xtensor) [![Appveyor](https://ci.appveyor.com/api/projects/status/quf1hllkedr0rxbk?svg=true)...
4
2
0
[{"id": "G0", "claim": "The new test/set_compiler_flag.cmake helper is overly complicated for handling only the -std=c++14/-std=c++17 flags, and the project should keep the CMake as simple as possible by relying on the CMake API such as setting CMAKE_CXX_STANDARD.", "category": "maintainability", "verdict": "opposed", ...
null
xtensor-stack__xtensor__1738
xtensor-stack/xtensor
1,738
defect
a168bea4ba0c08eb5ec2111b7de75cd2863dd7b1
aa6359bac8c459c0167b12bcdbac82691a107f2c
Simd
Fixes #1500
diff --git a/.appveyor.yml b/.appveyor.yml index e7623899b..87495a6e6 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -32,7 +32,7 @@ install: - conda update -q conda - conda info -a - conda install gtest=1.8.0 cmake -c conda-forge - - conda install xtl==0.6.4 xsimd nlohmann_json -c conda-forge + - conda in...
1
1
1
[{"id": "G0", "claim": "Gating simd_strided_loop() on has_simd_interface<E2>::value is a limitation because even without activating xsimd the strided loop should speed up certain cases.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xtensor-stack__xtensor__1793
xtensor-stack/xtensor
1,793
defect
0d3872e71e52ad5937d6491d290f4b511be3c2cf
0e4e8d4e4b26644e505db8c78a92859cf1b9479f
Implement concatenation of fixed-shape tensors.
This PR addresses #1750 by implementing a `concatenate_fixed` method for tensors with fixed shapes. The output shape is calculated at compile time, with `axis` passed as a template parameter. Not sure if this is a good way to handle the original issue -- feedback is very much welcome.
diff --git a/include/xtensor/xbuilder.hpp b/include/xtensor/xbuilder.hpp index dfbb2f3cd6..cedbea3442 100644 --- a/include/xtensor/xbuilder.hpp +++ b/include/xtensor/xbuilder.hpp @@ -667,6 +667,47 @@ namespace xt return detail::make_xgenerator(detail::concatenate_impl<CT...>(std::forward<std::tuple<CT...>>(t),...
10
8
2
[{"id": "G0", "claim": "The hand-rolled `all_true` bool_pack trait should be replaced with `xtl::conjunction<std::integral_constant<bool, values>...>`, which is more expressive.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The last template pa...
null
xtensor-stack__xtensor__1805
xtensor-stack/xtensor
1,805
defect
53e5e1bf28e6f697ae8fb26d9b8953f8d8093bf3
44f01a55e5c32d3f3097ab9b1c2ebfeaf2662b0e
Unify xt::concatenate and xt::concatenate_fixed.
Following up with https://github.com/xtensor-stack/xtensor/pull/1793#issuecomment-550202252, this PR implements a single(-ish) interface for both fixed-shape and "general" concatenation. If _all_ operands have fixed shapes, `axis` is a compile time parameter and the resulting shape is computed at compile time. If at l...
diff --git a/include/xtensor/xbuilder.hpp b/include/xtensor/xbuilder.hpp index 7f819e2cc7..e3fdb6f028 100644 --- a/include/xtensor/xbuilder.hpp +++ b/include/xtensor/xbuilder.hpp @@ -623,61 +623,15 @@ namespace xt return std::tuple<xtl::const_closure_type_t<Types>...>(std::forward<Types>(args)...); } - ...
2
2
1
[{"id": "G0", "claim": "VS2015 apparently cannot disambiguate the two concatenate overloads (per AppVeyor), and the author asks whether to disable the fixed-shape version for that compiler.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The concat_s...
null
xtensor-stack__xtensor__1896
xtensor-stack/xtensor
1,896
defect
d15cf9acca82aa85167123d574d6b92a10648988
95e08c13818d369d18878ed18d8d8ef0721b0b1c
Add implementation of repeat (similar to numpy)
I implemented repeat similar to numpy.repeat (Feature request #1383) At the moment, all tests are fulfilled, but I'm not quite sure if the expression `xrepeat` fulfill all requirements for a `xexpression`. Therefore, this pull request more like a draft pull request (is this feature not activated on this repo or d...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 087094c0e..31256f7f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -159,6 +159,7 @@ set(XTENSOR_HEADERS ${XTENSOR_INCLUDE_DIR}/xtensor/xpad.hpp ${XTENSOR_INCLUDE_DIR}/xtensor/xrandom.hpp ${XTENSOR_INCLUDE_DIR}/xtensor/xreducer.hpp + ${XTENSOR_IN...
13
10
2
[{"id": "G0", "claim": "The added argument-size check should be enabled only when XTENSOR_ENABLE_ASSERT is defined, so users can disable it.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new repeat tests should also cover primitive types other than ...
null
xtensor-stack__xtensor__1916
xtensor-stack/xtensor
1,916
defect
1cc6682a6fbb07c9a80b1726e4edbbef862b9b88
27f93589bced2d3b13112eb838fdfbbda3f67829
xaxis_slice_iterator – Iterates over 1D slices oriented along the spe…
xaxis_slice_iterator – Iterates over 1D slices oriented along the specified axis, related to feature request – 1429 I am creating this pull request on behalf of Shashank Shekhar. **Please check if your PR fulfills these requirements** - The title and the commit message(s) are descriptive - Small commits made ...
diff --git a/include/xtensor/xaxis_slice_iterator.hpp b/include/xtensor/xaxis_slice_iterator.hpp new file mode 100644 index 000000000..2629864c6 --- /dev/null +++ b/include/xtensor/xaxis_slice_iterator.hpp @@ -0,0 +1,226 @@ +/*************************************************************************** +* Copyright (c) J...
3
2
0
[{"id": "G0", "claim": "e.strides()[axis] in the xaxis_slice_iterator constructor would fail for expressions without strides such as a xfunction; the reviewer notes the same issue already exists in the axis_iterator implementation and defers fixing it to later.", "category": "correctness", "verdict": "uncertain", "prio...
null
xtensor-stack__xtensor__1923
xtensor-stack/xtensor
1,923
defect
cdff5c187b639cf18a29e4b0d0bab8b71fe9b35e
63006d76a84c3a990492c821127c3f386c828946
Fix initialization of out shape in xt::tile
Previous initialization was problematic, as: 1. it is useless (value are overwritten in the shape init loop) 2. it may have the wrong type (signed vs unsigned shape element)
diff --git a/include/xtensor/xpad.hpp b/include/xtensor/xpad.hpp index 827f1d14f0..c052864746 100644 --- a/include/xtensor/xpad.hpp +++ b/include/xtensor/xpad.hpp @@ -251,7 +251,7 @@ namespace xt XTENSOR_ASSERT(e.shape().size() == reps.size()); - auto new_shape = e.shape(); + typename return_...
1
1
1
[{"id": "G0", "claim": "In xt::tile the new shape is only default-constructed and never sized, so indexing/writing new_shape (fatal for std::vector-based shape types) crashes at runtime.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
xtensor-stack__xtensor__1990
xtensor-stack/xtensor
1,990
defect
555bfb591a322e47ed2ebf2bbe9dc0da1751f229
846f300345211b3443ba091cb4682091cab43a7d
Fix segfault when using xt::drop() on an empty list of indices.
My company are trying to build an `xt::view` in a situation where we don't know at compile time which indices we need to `xt::drop`. Our solution has been to pack the indices we need to remove into an `std::vector<size_t>` and pass that as an argument to `xt::drop`, but we've discovered that this crashes when the input...
diff --git a/include/xtensor/xslice.hpp b/include/xtensor/xslice.hpp index cfdd9ffd6a..2c34c100f2 100644 --- a/include/xtensor/xslice.hpp +++ b/include/xtensor/xslice.hpp @@ -1516,7 +1516,7 @@ namespace xt template <class T> inline auto xdrop_slice<T>::operator()(size_type i) const noexcept -> size_type ...
1
1
1
[{"id": "G0", "claim": "The change is not backward incompatible, so the version macros should read 0.21.5-dev instead of 0.22.0-dev.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xtensor-stack__xtensor__2002
xtensor-stack/xtensor
2,002
defect
72bf16490667175abbec4b55ec0630d809981c51
4470cf476b373844b837beea8c0166037fb27483
Fix variance overload
Fix #1935 I add an overload since the total number of overloads should be 6 (doubled from 3 after adding an extra argument `ddof`) The warning message changes from: ``` /home/jun/Projects/xtensor/include/xtensor/xmath.hpp: In instantiation of ‘auto xt::detail::mean(E&&, X&&, const D&, EVS) [with T = void; E =...
diff --git a/include/xtensor/xmath.hpp b/include/xtensor/xmath.hpp index 9ee5d010e2..233cd38643 100644 --- a/include/xtensor/xmath.hpp +++ b/include/xtensor/xmath.hpp @@ -2143,7 +2143,7 @@ namespace detail { } template <class E, class X, class EVS = DEFAULT_STRATEGY_REDUCERS, - XTL_REQUIRES(xtl...
1
1
1
[{"id": "G0", "claim": "The variance(E&&, X&& axes, EVS) overload should require EVS to be reducer_options (as the PR's removal of the is_integral<EVS> guard leaves calls like xt::variance(py_a, x, 1) with a std::vector axes ambiguous), otherwise the same overload-selection problem this PR fixes for axes passed as an a...
null
xtensor-stack__xtensor__2021
xtensor-stack/xtensor
2,021
defect
fed50731c972215adf3fb7f52db7ac3429d0a3af
28e6f6050d38fa71224a6f1522c4fdc01a01d369
Adding implementation "isin" and "in1d"
Fixes #2022
diff --git a/docs/source/numpy.rst b/docs/source/numpy.rst index f1ad924e5f..fdd2176223 100644 --- a/docs/source/numpy.rst +++ b/docs/source/numpy.rst @@ -299,6 +299,8 @@ where ``condition`` is falsy, and it does not evaluate ``b`` where ``condition`` +-----------------------------------------------+------------------...
5
5
3
[{"id": "G0", "claim": "The S1 isin implementation builds an xfunction `b` and applies `+=` to it, but xfunction is not assignable so the code cannot compile, and broadcasting each test value against `e` recomputes the whole expression even when only one result element is accessed; isin should be implemented with a val...
null
xtensor-stack__xtensor__2037
xtensor-stack/xtensor
2,037
defect
b0cf0ad3bdb5445a0c340e72e65ee9c6973946e3
439a6f6bd1bd70c1a5947b1645fc4b3caf2c63cf
Adding "digitize", "searchsorted", and "bin_items"
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description <!--- Give any relevant d...
diff --git a/docs/source/api/function_index.rst b/docs/source/api/function_index.rst index fb1a31319..b4e3a22cf 100644 --- a/docs/source/api/function_index.rst +++ b/docs/source/api/function_index.rst @@ -16,6 +16,7 @@ Functions and generators xbuilder xmanipulation xsort + xset_operation xrandom ...
10
10
1
[{"id": "G0", "claim": "The digitize parameter assume_sorted should be renamed to is_data_sorted.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In digitize the condition guarding the sorted branch is the opposite of what the following code does, so the ...
null
xtensor-stack__xtensor__2076
xtensor-stack/xtensor
2,076
defect
720ac0a99baa70f2b51943145a1a5e984117cf86
28c58792ab8750b3265c58055aeb85688181c2de
Add xchunked_array
# Checklist - [x] The title and commit message(s) are descriptive. - [ ] Small commits made to fix your PR have been squashed to avoid history pollution. - [ ] Tests have been added for new features or bug fixes. - [ ] API of new functions and classes are documented. # Description <!--- Give any relevant d...
diff --git a/include/xtensor/xchunked_array.hpp b/include/xtensor/xchunked_array.hpp new file mode 100644 index 000000000..c62f4863b --- /dev/null +++ b/include/xtensor/xchunked_array.hpp @@ -0,0 +1,91 @@ +#include <vector> +#include <array> +#include "xarray.hpp" + +template <class Chunk_type> +class xchunked_array +{...
8
7
2
[{"id": "G0", "claim": "The code should use camel_case naming everywhere instead of CamelCase like Chunk_type.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The access specifiers public, protected and private should not be indented.", "category...
null
xtensor-stack__xtensor__2096
xtensor-stack/xtensor
2,096
defect
ba9613a39c7631ca73e88ec3354f76fa13177f05
e03ad2c087b49bac826a7913acb36c330bf2f1e0
Implement on-disk chunked array
# Checklist - [x] The title and commit message(s) are descriptive. - [ ] Small commits made to fix your PR have been squashed to avoid history pollution. - [ ] Tests have been added for new features or bug fixes. - [ ] API of new functions and classes are documented. # Description <!--- Give any relevant d...
diff --git a/include/xtensor/xdisk_array.hpp b/include/xtensor/xdisk_array.hpp new file mode 100644 index 000000000..e8244c96b --- /dev/null +++ b/include/xtensor/xdisk_array.hpp @@ -0,0 +1,162 @@ +#ifndef XTENSOR_DISK_ARRAY_HPP +#define XTENSOR_DISK_ARRAY_HPP + +#include "xarray.hpp" +#include "xcsv.hpp" + +namespace ...
9
7
5
[{"id": "G0", "claim": "The remap() helper should take references instead of pointers / pointers to pointers.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Because remap() is called from the access methods, its delete plus re-allocation of the file arra...
null
xtensor-stack__xtensor__2099
xtensor-stack/xtensor
2,099
defect
d44d8ae9a0b2b742fdc0991760c2d7a6288f6780
a2e29b96b6741eee06c925654700468110583964
Implement chunk pool in xchunk_store_manager
# Checklist - [x] The title and commit message(s) are descriptive. - [ ] Small commits made to fix your PR have been squashed to avoid history pollution. - [ ] Tests have been added for new features or bug fixes. - [ ] API of new functions and classes are documented. # Description <!--- Give any relevant d...
diff --git a/include/xtensor/xchunk_store_manager.hpp b/include/xtensor/xchunk_store_manager.hpp index 5b4699c1c..735d5cbfa 100644 --- a/include/xtensor/xchunk_store_manager.hpp +++ b/include/xtensor/xchunk_store_manager.hpp @@ -36,7 +36,7 @@ namespace xt template <class EC> class xchunk_store_manager: publ...
7
5
0
[{"id": "G0", "claim": "The brace-less if in xdisk_io_handler::write() should enclose the dump_csv call in braces.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The std::find lookup in map_file_array should use auto and const iterators (cbegi...
null
xtensor-stack__xtensor__2129
xtensor-stack/xtensor
2,129
defect
c579bcf8acc77fdc82a719d9cb550c5518de9837
fbd1a0ea20fab05f0bb427a4407d531bf4e8d34d
Skeleton of the dynamic expression system
# Checklist - [ ] The title and commit message(s) are descriptive. - [ ] Small commits made to fix your PR have been squashed to avoid history pollution. - [ ] Tests have been added for new features or bug fixes. - [ ] API of new functions and classes are documented. # Description <!--- Give any relevant d...
diff --git a/CMakeLists.txt b/CMakeLists.txt index ea389080e0..82581339c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,6 +180,10 @@ set(XTENSOR_HEADERS ${XTENSOR_INCLUDE_DIR}/xtensor/xview.hpp ${XTENSOR_INCLUDE_DIR}/xtensor/xview_utils.hpp ${XTENSOR_INCLUDE_DIR}/xtensor/zarray.hpp + ${XTEN...
2
2
1
[{"id": "G0", "claim": "The call in zadd spells the helper's name wrong (zassig_data instead of zassign_data), which breaks compilation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "zmath.hpp should include zarray_impl.hpp instead of ztyped_array....
null
xtensor-stack__xtensor__2138
xtensor-stack/xtensor
2,138
defect
f0d1f4a53aa3c8b1877f777a75d1a17e2ba489f7
3c3ef770f236d74bdaf829a5c71e882170f90165
Adding static const rank to allow sfinae based on rank
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description Fixes #2135
diff --git a/include/xtensor/xarray.hpp b/include/xtensor/xarray.hpp index 69bdb474e8..0b4a9e3dad 100644 --- a/include/xtensor/xarray.hpp +++ b/include/xtensor/xarray.hpp @@ -104,6 +104,7 @@ namespace xt using inner_backstrides_type = typename base_type::inner_backstrides_type; using temporary_type = ...
6
5
2
[{"id": "G0", "claim": "The reviewer is asked for help because the new test file test_sfinae.cpp does not compile: instantiating sfinae_rank_func with xarray/xtensor/xfixed types produces template substitution errors (has_rank_t on types lacking usable rank members in the S1 form).", "category": "correctness", "verdict...
null
xtensor-stack__xtensor__2241
xtensor-stack/xtensor
2,241
defect
ee507e2f854ba9cac6761c4b9cd4ee762c624a7f
11a8c70708e1c9eff0cce0857f9fa534d48fd40b
Implement xt::random::choice with weights vector
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [ ] API of new functions and classes are documented. # Description Close #2213. This add an o...
diff --git a/include/xtensor/xrandom.hpp b/include/xtensor/xrandom.hpp index 4f38185864..e413c62d5f 100644 --- a/include/xtensor/xrandom.hpp +++ b/include/xtensor/xrandom.hpp @@ -14,15 +14,21 @@ #ifndef XTENSOR_RANDOM_HPP #define XTENSOR_RANDOM_HPP +#include <algorithm> #include <functional> #include <random> #i...
19
14
1
[{"id": "G0", "claim": "The documentation of the weights parameter should explain what the weights mean (the probability of sampling each entry, NumPy-style) instead of being worded as if the weights themselves were sampled.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
xtensor-stack__xtensor__2258
xtensor-stack/xtensor
2,258
defect
1c9b74adb96d72d5b1896e78a0a3fd14151bd917
96d3096bf1119246c8d8223b9398d7dfcb7896d5
Support initialized list for chunked_array shapes
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description This allows to write: ```...
diff --git a/include/xtensor/xchunked_array.hpp b/include/xtensor/xchunked_array.hpp index f62595cf6..d86e788d8 100644 --- a/include/xtensor/xchunked_array.hpp +++ b/include/xtensor/xchunked_array.hpp @@ -234,6 +234,9 @@ namespace xt template <class T, layout_type L = XTENSOR_DEFAULT_LAYOUT, class EXT = empty_exte...
2
1
0
[{"id": "G0", "claim": "Implement the new initializer_list overload of chunked_array using xtl::forward_sequence and by forwarding the call to the generic chunked_array implementation, similarly to what was done in xtensor-io, instead of manually copying the lists.", "category": "maintainability", "verdict": "supported...
null
xtensor-stack__xtensor__2261
xtensor-stack/xtensor
2,261
defect
1c9b74adb96d72d5b1896e78a0a3fd14151bd917
91d1143f1bdaa28bc81821c703206fd80aec55db
Add as_strided free function
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description Add `as_strided` free func...
diff --git a/include/xtensor/xeval.hpp b/include/xtensor/xeval.hpp index 3f0e9c881e..e07caabd73 100644 --- a/include/xtensor/xeval.hpp +++ b/include/xtensor/xeval.hpp @@ -47,6 +47,65 @@ namespace xt { return std::forward<T>(t); } + + /************** + * as_strided * + **************/ + + ...
2
2
1
[{"id": "G0", "claim": "The complicated SFINAE conditions in as_strided deserve more expressive metafunctions or constexpr functions, especially since they are used in many places.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The as_strided do...
null
xtensor-stack__xtensor__2306
xtensor-stack/xtensor
2,306
defect
54dbb8223d5a874261e8e988b487054d2e50710e
c551ea793c1992d77d1f9fcaf029439e656ba765
Fix linspace endpoint bug
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [ ] API of new functions and classes are documented. # Description <!--- Give any relevant d...
diff --git a/include/xtensor/xbuilder.hpp b/include/xtensor/xbuilder.hpp index 9cc865f135..7dc32a0965 100644 --- a/include/xtensor/xbuilder.hpp +++ b/include/xtensor/xbuilder.hpp @@ -267,6 +267,84 @@ namespace xt } }; + // These methods should be private methods of linspace_generator, how...
3
2
1
[{"id": "G0", "claim": "The element()/access_impl path of the linspace generator computes values without the endpoint correction: element() should forward to access_impl and access_impl itself needs to be fixed so the endpoint handling applies on that path too, not only on the assign path.", "category": "correctness", ...
null
xtensor-stack__xtensor__2313
xtensor-stack/xtensor
2,313
defect
f7baa309afab70485f378b42c6b22622b05ae7c6
4d7b231ce0ad3cb27297041b5516571eae3a4ee8
Fix automatically generated tests.
- Fix the XTENSOR_PREPROCESS_FILES. - Add a warning in the CMakeLists.text file. - Fix manually modified tests. # Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [ ] Tests have been added for new features...
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9268214642..8dcbed0720 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -271,10 +271,10 @@ foreach(filename IN LISTS XNPY_FILES) endforeach() endforeach() -set(XTENSOR_PREPROCESS_FILES - files/cppy_source/test_xstrided_view_extended.cp...
7
4
0
[{"id": "G0", "claim": "The comment added to the .cppy source misspells 'Temporary' as 'Tmporary' and 'condition' as 'conditoin'; fix the typos as suggested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new 'double py_median = 300.0' plus 's...
null
xtensor-stack__xtensor__2314
xtensor-stack/xtensor
2,314
defect
0985652980d47de9e0b44c195cc4d3626b0570f1
d4f742c20a52a2a5b8eea90888a5b39be43819a0
Implement nanmin and nanmax
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description <!--- Give any relevant d...
diff --git a/docs/source/api/nan_functions.rst b/docs/source/api/nan_functions.rst index 2a5a05c9a7..fb5d7db19f 100644 --- a/docs/source/api/nan_functions.rst +++ b/docs/source/api/nan_functions.rst @@ -15,6 +15,14 @@ Defined in ``xtensor/xmath.hpp`` .. doxygenfunction:: nan_to_num(E&&) :project: xtensor +.. _na...
3
1
1
[{"id": "G0", "claim": "The constexpr nan_min/nan_max operator() bodies do not compile on gcc 4.9 (\"not a return-statement\"), failing CI, and a workaround is needed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The return type template parameter...
null
xtensor-stack__xtensor__2385
xtensor-stack/xtensor
2,385
defect
b5c9286bdce00fa8fc2a93d94303388741624607
535d83e2ec9080771379fe6c74aa809915554d00
Adding `front()` and `back()` convenience methods
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description Adding `front()` and `back...
diff --git a/include/xtensor/xaccessible.hpp b/include/xtensor/xaccessible.hpp index 2f6af2c72f..40449789ec 100644 --- a/include/xtensor/xaccessible.hpp +++ b/include/xtensor/xaccessible.hpp @@ -55,6 +55,9 @@ namespace xt template <class... Args> bool in_bounds(Args... args) const; + const_re...
4
4
4
[{"id": "G0", "claim": "Because the base-class `front`/`back` implementations delegate to `derived_cast().front()`/`back()`, every inheriting class must implement `front` and `back` itself, so the methods do not need to be put in the base class at all.", "category": "design", "verdict": "supported", "priority": "P1", "...
null
xtensor-stack__xtensor__2393
xtensor-stack/xtensor
2,393
defect
f3c11b2d810159e7063daddeaa0764f4006e5a73
597a1395744d341d6af5988656fb9e0b7092e3e0
changed impl computed_assign st shapes of different types are supported
With this pr the following is compiling: ```C++ pyarray<int> a1 { 0, 1, 2}; xt::xarray<int> a2 { 0, 2, 4}; xt::noalias(a1) += a2; ``` ```C++ xt::xtensor_fixed<int, xt::xshape<2>> a1 = {2,3}; xt::xarray<int> a2{ 0, 2, 4}; xt::noalias(a1) += a2; ```
diff --git a/include/xtensor/xassign.hpp b/include/xtensor/xassign.hpp index 73ab01a32..982586a20 100644 --- a/include/xtensor/xassign.hpp +++ b/include/xtensor/xassign.hpp @@ -413,23 +413,60 @@ namespace xt base_type::assign_data(e1, e2, trivial_broadcast); } + namespace detail + { + + tem...
2
2
1
[{"id": "G0", "claim": "In the new detail:: code, opening curly braces should go on a new line and full-uppercase template parameter names should be avoided (a short name like `S` instead of `SHAPE`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim"...
null
xtensor-stack__xtensor__2438
xtensor-stack/xtensor
2,438
defect
cc23f11446c0ec67fbba4582228c182d5ee1e40a
d06f78e4d31488295e9ad1c9199470078dd37b4a
upgraded to xsimd 8
# Checklist - [ ] The title and commit message(s) are descriptive. - [ ] Small commits made to fix your PR have been squashed to avoid history pollution. - [ ] Tests have been added for new features or bug fixes. - [ ] API of new functions and classes are documented. # Description <!--- Give any relevant d...
diff --git a/CMakeLists.txt b/CMakeLists.txt index bf2f75bf16..2fc8082bd0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,7 @@ if(XTENSOR_USE_TBB AND XTENSOR_USE_OPENMP) endif() if(XTENSOR_USE_XSIMD) - set(xsimd_REQUIRED_VERSION 7.4.4) + set(xsimd_REQUIRED_VERSION 8.0.0) if(TARGET xsimd) ...
1
1
1
[{"id": "G0", "claim": "The load_simd added in xt_simd loads via xsimd::batch<requested_type, arch_type>::load_aligned when it should be xsimd::batch<xsimd::simd_return_type<T, requested_type>>::load_aligned, which would fix the broken code — preferably hidden behind a nicer xsimd API as before.", "category": "correctn...
null
xtensor-stack__xtensor__2488
xtensor-stack/xtensor
2,488
defect
751f3ae17a17e56139703a4291c36aaf7adf00fe
00689e366611f3c5a98fc93f00422dd141a43c5b
Adding `xt::missing` to `operator()`
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description <!--- Give any relevant d...
diff --git a/docs/source/indices.rst b/docs/source/indices.rst index ff47001571..3273954c24 100644 --- a/docs/source/indices.rst +++ b/docs/source/indices.rst @@ -52,12 +52,16 @@ To this end the following operators are at your disposal: Returns a (constant) reference to the element, specified by an *array index* give...
3
3
0
[{"id": "G0", "claim": "The hand-rolled `last_type_helper`/`last_type` metafunction machinery duplicates what xtl already provides, and xtl's `back` metafunction could be used directly instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In t...
null
xtensor-stack__xtensor__2489
xtensor-stack/xtensor
2,489
defect
751f3ae17a17e56139703a4291c36aaf7adf00fe
63979dbb058e9fef0f47d410b4c934059a6d4ace
Adding free function `xt::strides`
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description I don't know if I add to t...
diff --git a/docs/source/api/xstrides.rst b/docs/source/api/xstrides.rst new file mode 100644 index 0000000000..901ff63be1 --- /dev/null +++ b/docs/source/api/xstrides.rst @@ -0,0 +1,16 @@ +.. Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht + + Distributed under the terms of the BSD 3-Clause Lic...
2
2
0
[{"id": "G0", "claim": "The two strides overloads duplicate the layout-based stride computation, so a shared implementation function should be added to avoid the code duplication.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Opening braces in the added...
null
xtensor-stack__xtensor__2507
xtensor-stack/xtensor
2,507
defect
f49d573c2569c0c260e6e8ac8ad85cef36580cfd
14e0c2ce618bb6d5db9054da01014b77bc8e5230
Added xt::convolve
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description Added a 1D convolution funct...
diff --git a/include/xtensor/xmath.hpp b/include/xtensor/xmath.hpp index badd624d09..e810773266 100644 --- a/include/xtensor/xmath.hpp +++ b/include/xtensor/xmath.hpp @@ -3013,6 +3013,86 @@ namespace detail { return cov(eval(stack(xtuple(x, y)))); } } + + /* + * convolution mode placeho...
19
19
1
[{"id": "G0", "claim": "The mode template parameter E3, being a placeholder type, can be passed by value instead of via a forwarding reference.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A copy overhead (the swap of a and v by value) should be avoide...
null
xtensor-stack__xtensor__2521
xtensor-stack/xtensor
2,521
defect
0548fa8ebba541c69c8897109aaabef1b16c471d
839c462f701b29441088d1e50daa5b60b84c1375
Adding `reset_data` to `xbuffer_adaptor` and `reset_buffer` to `*adaptor` to replace the pointer without any reallocation.
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description Fixes https://github.com/x...
diff --git a/docs/source/external-structures.rst b/docs/source/external-structures.rst index 3f14a1bb75..f7c18418c0 100644 --- a/docs/source/external-structures.rst +++ b/docs/source/external-structures.rst @@ -43,6 +43,32 @@ A requirement for the user-specified containers is to provide a minimal ``std::v provides the...
6
6
4
[{"id": "G0", "claim": "The new pointer-replacement functionality is not discoverable because it is only reachable as `.storage().replace(...)` and the storage should not be the public path for end users; a `reset_buffer`/`reset_data` method should be provided directly on the adaptor classes.", "category": "design", "v...
null
xtensor-stack__xtensor__2628
xtensor-stack/xtensor
2,628
defect
7a36f90346770405a0613775db6d803495cb7efe
14a54c5d759134695cb6cab0e9aa89491429455f
fixes #2568. MSVC optimizations causing segmentation faults in optimized builds.
Works around an msvc optimizer bug which occurs when shape.size() == 0. Surrounding the problematic region to prevent illegal access that occurs on windows MSVC optimized builds (/O1, /O2). - allows construction of 0-sized xarray and xtensors (e.g. xt::xtensor<size_t, 0>) - also fixes xt::argmax() crashing ...
diff --git a/docs/source/compilers.rst b/docs/source/compilers.rst index 1bd009809..bb525bfb0 100644 --- a/docs/source/compilers.rst +++ b/docs/source/compilers.rst @@ -50,6 +50,15 @@ In ``xfixed.hpp`` we add a level of indirection to expand one parameter pack bef Not doing this results in VS2017 complaining about a p...
4
4
1
[{"id": "G0", "claim": "The workaround should be applied only on MSVC (potentially only the affected version), using a preprocessor statement.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The implementation should be simplified to only the early-return...
null
xtensor-stack__xtensor__2638
xtensor-stack/xtensor
2,638
defect
a5cd738b29531d9637f813899bfb2a9046474124
cffd9fb120d1bdf258de6464ac2d8d35a88c28fb
Add swapaxes and moveaxis
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description Close #2613
diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index cf8fb8f8c..691b8a744 100644 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -37,7 +37,7 @@ jobs: ninja ^ doctest==2.4.7 ^ ...
1
1
0
[{"id": "G0", "claim": "In the new code in include/xtensor/xmanipulation.hpp, `const` should be written before the type (e.g. `const std::size_t ax1`, `const auto dim`) instead of after it, to be consistent with the rest of the library.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope":...
null
xtensor-stack__xtensor__2652
xtensor-stack/xtensor
2,652
defect
f9944b6f7446586596ed06f2f417635437019792
6bfafacada70d28260e0871730cdc65d11745613
Fix and refactor partition
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description Fix https://github.com/xtensor-stac...
diff --git a/include/xtensor/xsort.hpp b/include/xtensor/xsort.hpp index a8253dd55..85d256739 100644 --- a/include/xtensor/xsort.hpp +++ b/include/xtensor/xsort.hpp @@ -12,6 +12,7 @@ #include <algorithm> #include <cmath> +#include <iterator> #include <utility> #include <xtl/xcompare.hpp> @@ -45,41 +46,68 @@ nam...
3
3
1
[{"id": "G0", "claim": "In call_over_leading_axis (both the one-expression and two-expression overloads) the loop conditions should use operator!= instead of operator< to avoid potential overhead from xiterator comparisons.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {...
null
xtensor-stack__xtensor__2665
xtensor-stack/xtensor
2,665
defect
a57a6fa88511b1f21537cc07379d67c286c61de6
d448ef876fe74946061dbc0e7db3fda32ed2c4a4
Adding aliases `xt::xtensor_pointer` and `xt::xarray_pointer`
Fixes https://github.com/xtensor-stack/xtensor/issues/2663 The name is up for discussion!
diff --git a/docs/source/api/container_index.rst b/docs/source/api/container_index.rst index a2e948060..9f5c8b738 100644 --- a/docs/source/api/container_index.rst +++ b/docs/source/api/container_index.rst @@ -13,22 +13,23 @@ xexpression API is actually implemented in ``xstrided_container`` and ``xcontain .. toctree:...
4
3
1
[{"id": "G0", "claim": "The toctree entries in docs/source/api/container_index.rst should not be reordered; the intended order is base classes implementing the concepts first, then implementation classes, then views.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
xtensor-stack__xtensor__2710
xtensor-stack/xtensor
2,710
defect
4c71ce37883c525c1148bd86ed64f2c981080457
715a361c533fadf4783b31310971c553019e7754
Added unwrap
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description <!--- Give any relevant d...
diff --git a/include/xtensor/xmath.hpp b/include/xtensor/xmath.hpp index 1fe6c9f54..48d994fe3 100644 --- a/include/xtensor/xmath.hpp +++ b/include/xtensor/xmath.hpp @@ -3088,6 +3088,77 @@ namespace xt return f; } + namespace detail + { + template <class E1, class E2> + auto Calculate...
14
13
0
[{"id": "G0", "claim": "The helper functions should use lower-case naming (calculate_discontinuity instead of CalculateDiscontinuity) per project convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @param discontinuity doc line should...
null
xtensor-stack__xtensor__2740
xtensor-stack/xtensor
2,740
defect
34cd549c6922b5b504834b72f788e559f5df9006
70675d82cbf4f5d652279ac8735df13f8878db44
Removed failing test `xinfo` on clang 16
# Checklist - [ x] The title and commit message(s) are descriptive. - [ x] Small commits made to fix your PR have been squashed to avoid history pollution. - [ x] Tests have been added for new features or bug fixes. - [ x] API of new functions and classes are documented. # Description Following up on some pre...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 123e03987..f6c22bb3c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,7 +74,7 @@ jobs: - name: Run tests working-directory: build - run: ctest -R ^xtest$ --output-on-failure + run: ctest -R ^xtest$ ...
9
7
2
[{"id": "G0", "claim": "Fixing the underlying xinfo issue (#2694) would be better than narrowing the CI configurations around the failing test.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the issue cannot be fixed, the failing xinfo test on clang16 s...
null
xtensor-stack__xtensor__2746
xtensor-stack/xtensor
2,746
defect
4beafb64353ba903ad6bd847a6e82163db8e614a
d5c98298661f3167c950228d67fa4d3373a073ca
Make reshape_view accept -1 as a wildcard dimension
# Checklist - [ x] The title and commit message(s) are descriptive. - [ x] Small commits made to fix your PR have been squashed to avoid history pollution. - [ x] Tests have been added for new features or bug fixes. - [ x] API of new functions and classes are documented. # Description Fix #2417 @JohanMabil...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c87df8d70..ae11f8c5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -170,7 +170,7 @@ jobs: ninja - name: Configure using CMake - run: cmake -Bbuild -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DBUILD_TESTS=ON...
6
4
3
[{"id": "G0", "claim": "The machinery for comparing the view's and the expression's shape types (with its cast to std::size_t) is too complicated for what it does and the author would prefer to drop it.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
xtensor-stack__xtensor__2759
xtensor-stack/xtensor
2,759
defect
69eaac532f4da1c010b179b7ac2f471693dd9f0f
6ff26745b33245f66461b906472f0008785dc574
[Optimization] Updated `concatenate_access` and `stack_access` to remove allocations
# Checklist - [X] The title and commit message(s) are descriptive. - [TBD ] Small commits made to fix your PR have been squashed to avoid history pollution. - [N/A] Tests have been added for new features or bug fixes. - [N/A ] API of new functions and classes are documented. # Description I have revised the `...
diff --git a/include/xtensor/xbuilder.hpp b/include/xtensor/xbuilder.hpp index 2302bbb96..e124d764c 100644 --- a/include/xtensor/xbuilder.hpp +++ b/include/xtensor/xbuilder.hpp @@ -494,22 +494,47 @@ namespace xt using size_type = std::size_t; using value_type = xtl::promote_type_t<typename std...
1
1
0
[{"id": "G0", "claim": "The `after_axis` flag in the `stack_access` lambda should be a `size_t` instead of a `bool` to avoid implicit conversion when it is added to `first` later.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
xtensor-stack__xtensor__2835
xtensor-stack/xtensor
2,835
defect
f31d415a507b84d0097436a38293df3f56906ad1
569b615ce8e0f3aa34548c8d8cff4aba3eae9489
Implement apply with std 17
# Checklist - [ x] The title and commit message(s) are descriptive. - [x ] Small commits made to fix your PR have been squashed to avoid history pollution. - [ x] Tests have been added for new features or bug fixes. - [ x] API of new functions and classes are documented.
diff --git a/include/xtensor/utils/xutils.hpp b/include/xtensor/utils/xutils.hpp index 7c4989506..0868ef8cb 100644 --- a/include/xtensor/utils/xutils.hpp +++ b/include/xtensor/utils/xutils.hpp @@ -55,7 +55,7 @@ namespace xt constexpr decltype(auto) argument(Args&&... args) noexcept; template <class R, class...
3
3
0
[{"id": "G0", "claim": "The pre-existing detail::apply implementation indexes the function-pointer array with the runtime index without a bounds check, so an index greater than the last tuple position causes a potential access violation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "p...
null
xtensor-stack__xtensor__2880
xtensor-stack/xtensor
2,880
defect
cbb9a362b8fdff39d23fe03c166db193dda2a864
f81852002f94514cfc96806316c94bcf0d35efe3
added a mapper that maps the indexes of a view to the indices of a container
# Checklist - [x] The title and commit message(s) are descriptive. - [x] Small commits made to fix your PR have been squashed to avoid history pollution. - [x] Tests have been added for new features or bug fixes. - [x] API of new functions and classes are documented. # Description The `index_mapper` class p...
diff --git a/include/xtensor/views/index_mapper.hpp b/include/xtensor/views/index_mapper.hpp new file mode 100644 index 000000000..a84dcf224 --- /dev/null +++ b/include/xtensor/views/index_mapper.hpp @@ -0,0 +1,236 @@ +/*************************************************************************** + * Copyright (c) Johan ...
14
11
1
[{"id": "G0", "claim": "Lines in index_mapper.hpp use tabs while the surrounding code uses spaces, so indentation should be made consistent.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A line in index_mapper.hpp ends with trailing whitespace that shoul...
null
xtensor-stack__xtensor__2882
xtensor-stack/xtensor
2,882
defect
cbb9a362b8fdff39d23fe03c166db193dda2a864
420bc8908e8ebfa4ab92a7523b2c0514023f0500
docs: Add warning about dangling references with lazy reducers (fixes #2871)
This PR addresses GitHub issue #2871 where using auto with xtensor reducer functions (like amax, sum with keep_dims) causes crashes or incorrect results in optimized builds, particularly on Android ARM64. **Root Cause:** Lazy expressions hold references to local variables. When intermediate results are stored with aut...
diff --git a/docs/source/pitfall.rst b/docs/source/pitfall.rst index 0c404007f..e044be07b 100644 --- a/docs/source/pitfall.rst +++ b/docs/source/pitfall.rst @@ -70,6 +70,54 @@ in the returned expression. Replacing ``auto tmp`` with ``xt::xarray<double> tmp`` does not change anything, ``tmp`` is still an lvalue and th...
4
4
4
[{"id": "G0", "claim": "The doc's 'fix' does not fix the issue, since `shifted` and `sumExp` remain local variables captured by reference in the returned expression; instead, only the returned expression should be force-evaluated with no need to evaluate each intermediate.", "category": "correctness", "verdict": "suppo...
null
xtensor-stack__xtensor__572
xtensor-stack/xtensor
572
defect
9e81d2a66012fd6929c1f18d22fe756b8ef2ec3f
c77d1e9797285eca5c71eb32e547413ef965f208
xshape
A new shape type which is modelled after tiny_array, small_vector etc.
diff --git a/benchmark/benchmark_xshape.hpp b/benchmark/benchmark_xshape.hpp new file mode 100644 index 000000000..a6a233271 --- /dev/null +++ b/benchmark/benchmark_xshape.hpp @@ -0,0 +1,70 @@ +/*************************************************************************** +* Copyright (c) 2016, Johan Mabille, Sylvain Cor...
11
7
1
[{"id": "G0", "claim": "The first uvector lexicographical comparison implementation was not exactly symmetric, so container comparisons could disagree with std::vector's results.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "Comparison cases such...
null
xtensor-stack__xtensor__760
xtensor-stack/xtensor
760
defect
7225b62129b560cb7e84ebf0bc1646da1af01693
9f9ec96786ee9308b1c7b911a0ce5cb30e5af482
switch to ptrdiff_t for slices
i think we'll not officially support negative steps for the first iteration, because we need to figure out how to handle negative strides for the stridedview (i.e. do we have to switch to a signed integer type for the strides?). maybe we can start with supporting a negative end.
diff --git a/include/xtensor/xslice.hpp b/include/xtensor/xslice.hpp index deb76b509..e59438a35 100644 --- a/include/xtensor/xslice.hpp +++ b/include/xtensor/xslice.hpp @@ -248,75 +248,75 @@ namespace xt template <class MI = A, class MA = B, class STEP = C> inline std::enable_if_t<std::is_integral<MI>...
1
1
0
[{"id": "G0", "claim": "The operator() overloads of detail::cast_if_integer should take their parameter by value instead of by T& (the type is really small so the compiler will optimize it; taking a universal reference and forwarding would be overkill).", "category": "design", "verdict": "supported", "priority": "P2", ...
null
xtensor-stack__xtensor__802
xtensor-stack/xtensor
802
defect
9aba617c2c250f3a8821b4216ce279a338c7708c
d674ea7bb04145874b8002c8b27bd3ffbe5da09c
scalar stepper fixed
Fixes #801
diff --git a/include/xtensor/xexception.hpp b/include/xtensor/xexception.hpp index da790c9d41..ade8c5ab08 100644 --- a/include/xtensor/xexception.hpp +++ b/include/xtensor/xexception.hpp @@ -131,11 +131,8 @@ namespace xt std::size_t axis = 0; while (efirst != last) { - #pragma GCC diag...
3
1
1
[{"id": "G0", "claim": "The pull request accidentally reverted the rename of xdummy_iterator's storage_type to container_type, leaving p_c declared as container_type* while the constructor still takes storage_type*, which cannot compile as intended.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
xtensor-stack__xtensor__901
xtensor-stack/xtensor
901
defect
b85268b54297a45436673962bae43a50779cc1a1
aed3f8c8b37955db75a532319205699b1cd8651f
add strided assignment
This is supposed to speed up broadcasting and assignment of views by a good margin.
diff --git a/include/xtensor/xassign.hpp b/include/xtensor/xassign.hpp index 634e70306..16ffa3b3c 100644 --- a/include/xtensor/xassign.hpp +++ b/include/xtensor/xassign.hpp @@ -44,6 +44,12 @@ namespace xt template <class E1, class E2> void assert_compatible_shape(const xexpression<E1>& e1, const xexpression<E...
14
14
1
[{"id": "G0", "claim": "Add tests for strided view reverse iteration, which was broken before the latest commit.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the useless strides()[i] != 0 check in xview::data_xend_impl.", "category": "maintaina...
null
xtensor-stack__xtensor__948
xtensor-stack/xtensor
948
defect
11b02f7effc3067c4b8c4284a40552a6802aa5c7
81d9b5a4be073bc36b1739694fc3016792dc3591
Parallelization with TBB
First steps for parallelization: - Enabling parallel assignment of trivial expressions (no broadcasting involved)
diff --git a/.travis.yml b/.travis.yml index d79d26c5b6..80d36cb46f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ matrix: - ubuntu-toolchain-r-test packages: - g++-6 - env: COMPILER=gcc GCC=6 + env: COMPILER=gcc GCC=6 ENABLE_TBB=1 - os: linux add...
2
1
1
[{"id": "G0", "claim": "find_package(TBB) in the XTENSOR_USE_TBB block should be REQUIRED, so configuration fails instead of silently proceeding when TBB is not found.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The lambda parameter in the TBB pa...
null
xtermjs__xterm.js__1208
xtermjs/xterm.js
1,208
defect
903ec3c910f097ef58100973a8282e869d94ff69
39c9240d2010d9017ef5a1a795a6bdc896c0bf4c
Support setting padding on the .xterm element
Fixes #946 This PR adds the ability to add a custom css padding to the `.xterm` element while still having the scrollbar filling the whole space. <img src="https://user-images.githubusercontent.com/2785983/30070823-f6beeef8-9264-11e7-8710-848a100386b4.png" width="300"/> **In action:** ![](https://user-ima...
diff --git a/demo/index.html b/demo/index.html index 93399f9cdd..4abe33464b 100644 --- a/demo/index.html +++ b/demo/index.html @@ -61,6 +61,10 @@ <h3>Size</h3> <label for="rows">Rows</label> <input type="number" id="rows" /> </div> + <div style="display: inl...
4
2
1
[{"id": "G0", "claim": "Non-zero padding breaks IME composition because the helper container holding the textarea is positioned under the assumption of no padding inside the terminal container; fix it so the helper stays positioned with the screen element.", "category": "correctness", "verdict": "supported", "priority"...
null
xtermjs__xterm.js__2952
xtermjs/xterm.js
2,952
defect
8a3366b1eb5d10e86b3e7a49b9003ae49ff93a44
0ccdc8d1ca145ea9cee15ecde6cf8447d9b2bea4
non-transparent selection covers text
#2737 issue fix. @Tyriar Please look into this. Would love to hear feedback.
diff --git a/src/browser/Color.ts b/src/browser/Color.ts index 9649227e23..f2ef590fc0 100644 --- a/src/browser/Color.ts +++ b/src/browser/Color.ts @@ -3,7 +3,7 @@ * @license MIT */ -import { IColor } from 'browser/Types'; +import { IColor, IColorSet } from 'browser/Types'; /** * Helper functions where the so...
4
4
1
[{"id": "G0", "claim": "The blending logic should be moved out of the util-only Color.ts into ColorManager.setTheme where IColorSet is defined, keeping IColorSet out of Color.ts, and selectionOpaque should be renamed selectionTransparent with the code around it taken care of.", "category": "design", "verdict": "support...
null
xtermjs__xterm.js__2996
xtermjs/xterm.js
2,996
defect
dc541c2664c3009ad61a088fb14663713cd675da
d85c80df9510287919dfbe022586c51106dcc6a0
Sync textarea with cursor
Fixes #2598
diff --git a/css/xterm.css b/css/xterm.css index b3d8d4f210..7ddcc2d0e1 100644 --- a/css/xterm.css +++ b/css/xterm.css @@ -59,10 +59,10 @@ } .xterm .xterm-helper-textarea { - /* - * HACK: to fix IE's blinking cursor - * Move textarea out of the screen to the far left, so that the cursor is not visible. -...
4
2
1
[{"id": "G0", "claim": "The `style.position = 'absolute'` assignment in `_syncTextArea` should no longer be needed since the textarea is always absolutely positioned, so it can be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `!` n...
null
xtermjs__xterm.js__3088
xtermjs/xterm.js
3,088
defect
c112990d8fe399772e7217cdc4d44641942c6410
7fa8e2b773327bcaa5bd2ee117a83be1ce353f87
fix: fit addon proposing infinite dimensions
fixes https://github.com/xtermjs/xterm.js/issues/3085#issuecomment-690318136
diff --git a/addons/xterm-addon-fit/src/FitAddon.ts b/addons/xterm-addon-fit/src/FitAddon.ts index 8e963253d9..f4e5c772c6 100644 --- a/addons/xterm-addon-fit/src/FitAddon.ts +++ b/addons/xterm-addon-fit/src/FitAddon.ts @@ -59,6 +59,10 @@ export class FitAddon implements ITerminalAddon { // TODO: Remove reliance on...
2
1
1
[{"id": "G0", "claim": "A test for `loadFit(0, 0, true)` (a zero-sized but visible container) should also be added.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new 'hidden' test added by this pull request appears to be failing in CI.", "category"...
null
xtermjs__xterm.js__3089
xtermjs/xterm.js
3,089
defect
782797ca111157fd08c5df5537a3d0da7546e74d
17ec85e39e3fd8813dffcedabff303232a0c1644
Render initially hidden terminal when visible
Render the terminal after it is visible when the parent was hidden when `open()` was called. This PR uses the Intersection Observer created inside the RenderService to recalculate the dimensions. Alternatively, we could create an Intersection Observer in the Terminal class to do this.
diff --git a/src/browser/services/RenderService.ts b/src/browser/services/RenderService.ts index 5c91ebaf03..a362aa22e3 100644 --- a/src/browser/services/RenderService.ts +++ b/src/browser/services/RenderService.ts @@ -51,7 +51,7 @@ export class RenderService extends Disposable implements IRenderService { private ...
1
1
1
[{"id": "G0", "claim": "The new measure-on-unpause block should run before the _needsFullRefresh/refreshRows branch, because if both conditions ever hold the refresh would render with invalid char measures (so the code order should be reversed).", "category": "correctness", "verdict": "supported", "priority": "P1", "sc...
null
xtermjs__xterm.js__3200
xtermjs/xterm.js
3,200
defect
5cb048094e23da22ccfe46666b87d1ad427dce6d
08fcebc02e416fa61c1cefcfbddb010bc3526636
Filter U+FEFF (BOM) when decoding input data
Fixes #3032 This PR adds a check to skip a leading zero width character such as BOM. Edit: Changed the way to fix to filter U+FEFF (BOM) in `TextDecoder.ts`.
diff --git a/src/common/InputHandler.ts b/src/common/InputHandler.ts index dbf695e607..e3e5138853 100644 --- a/src/common/InputHandler.ts +++ b/src/common/InputHandler.ts @@ -534,17 +534,19 @@ export class InputHandler extends Disposable implements IInputHandler { } // insert combining char at last curs...
1
1
1
[{"id": "G0", "claim": "Instead of skipping any zero-width codepoint at the line start in InputHandler, the reviewer suggests filtering only the BOM (U+FEFF) so it never ends up in the buffer at all - ideally during UTF32 decoding in common/input/TextDecoder.ts.", "category": "design", "verdict": "supported", "priority...
null
xtermjs__xterm.js__3230
xtermjs/xterm.js
3,230
defect
36c436d4e0ec5e38a55cd311a3d5f47f49ed1a83
daf1128df7277a5a8125020fa002f6a288889c7d
Use linkifier2 to double click select links
Also works with right click select. Fixes #682. This relies on the fact that before a user (double/right)-clicks a link, the cursor will hover the link, triggering the asynchronous link provider(s). By the time the click event fires, the link provider "should" have done its thing, and the link is used. If not, thi...
diff --git a/src/browser/Linkifier2.ts b/src/browser/Linkifier2.ts index 73ea02689f..8954293660 100644 --- a/src/browser/Linkifier2.ts +++ b/src/browser/Linkifier2.ts @@ -3,7 +3,7 @@ * @license MIT */ -import { ILinkifier2, ILinkProvider, IBufferCellPosition, ILink, ILinkifierEvent, ILinkDecorations } from 'brows...
2
2
0
[{"id": "G0", "claim": "The ILinkifier2.currentLink property should be declared readonly.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment should explain that a link under the cursor is checked first and selected if present, before the currentLin...
null
xtermjs__xterm.js__3236
xtermjs/xterm.js
3,236
defect
28bcd88fb0f7d32c686461dc4594996d1877920e
a57ee6b27c459f6bd9a0d7dd1bab51707a2fd96f
Search Addon: Fix length calculation of wide unicode chars
Fix #1686
diff --git a/addons/xterm-addon-search/src/SearchAddon.ts b/addons/xterm-addon-search/src/SearchAddon.ts index efc12662a3..68e05d5f36 100644 --- a/addons/xterm-addon-search/src/SearchAddon.ts +++ b/addons/xterm-addon-search/src/SearchAddon.ts @@ -3,7 +3,7 @@ * @license MIT */ -import { Terminal, IDisposable, ITer...
3
3
1
[{"id": "G0", "claim": "The variable resultIndex should be renamed (e.g. to col) since that is what it is called on the return, e.g. `const col = this._stringLengthToBufferSize(line, resultIndex);`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
xtermjs__xterm.js__3628
xtermjs/xterm.js
3,628
defect
a63890e6270749ae353db0d0b294d57448c82a72
f3bd1e24b73d2db78385b46b574e4b64b1147c88
dispose of markers on buffer clear
While working on #1852, I noticed that when `clear` is called, the decorations aren't disposed of because their markers aren't disposed.
diff --git a/src/browser/Terminal.ts b/src/browser/Terminal.ts index fe5c7f79f9..509bb2acf5 100644 --- a/src/browser/Terminal.ts +++ b/src/browser/Terminal.ts @@ -1293,6 +1293,7 @@ export class Terminal extends CoreTerminal implements ITerminal { // Don't clear if it's already clear return; } + th...
3
3
1
[{"id": "G0", "claim": "The clearing-state field would be nicer named `_isClearing: boolean` instead of the string state `_state`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test-related change is needed because MockBuffer in TestUtils.tes...
null
xtermjs__xterm.js__3671
xtermjs/xterm.js
3,671
defect
ff6fa739c43165ad187683f6bdca0481ca4b7c93
798b805fe013af9d7d27d2b9848ef04beb94288d
during buffer clear, don't dispose of markers on first line
discovered via https://github.com/microsoft/vscode/issues/144142
diff --git a/src/common/buffer/Buffer.ts b/src/common/buffer/Buffer.ts index 7596fef3f5..f7dc97d303 100644 --- a/src/common/buffer/Buffer.ts +++ b/src/common/buffer/Buffer.ts @@ -595,10 +595,14 @@ export class Buffer implements IBuffer { } } } else { - for (const marker of this.markers) { - ...
1
1
0
[{"id": "G0", "claim": "The marker-clearing method should be broken into two methods such as clearMarker(y) and clearAllMarkers(excludeY), with jsdoc added like other Buffer methods.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null