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
xerial__sqlite-jdbc__1133
xerial/sqlite-jdbc
1,133
defect
99aa8d9e41113d6bec2f77e0084a328cacbc98c7
5145252d4aab7a4d2d90256b48c165f534c4b1ea
fix(jdbc): generated columns with stored in SQLite are not marked as generated
Fixes #1132 - Generated columns with stored in SQLite are not marked as generated
diff --git a/src/main/java/org/sqlite/jdbc3/JDBC3DatabaseMetaData.java b/src/main/java/org/sqlite/jdbc3/JDBC3DatabaseMetaData.java index 6277ba8aa..88b4d7d99 100644 --- a/src/main/java/org/sqlite/jdbc3/JDBC3DatabaseMetaData.java +++ b/src/main/java/org/sqlite/jdbc3/JDBC3DatabaseMetaData.java @@ -1078,7 +1078,10 @@ publ...
1
1
0
[{"id": "G0", "claim": "The binarySearch-based expression should be replaced with a simpler OR condition instead of the convoluted construct.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xerial__sqlite-jdbc__1178
xerial/sqlite-jdbc
1,178
defect
02bac1a4a5d28a08334d197d3a3bb246fab9cb05
580932e857b7de8e58089e40c748095ebdf0f0bb
feat: make slf4j optional with fallback on JUL
In order to avoid the hard dependency on slf4j, this patch abstracts the Logger interface and LoggerFactory factory to fall back on a java.util.logging-based implementation if slf4j is not present. Fixes #1094
diff --git a/Makefile b/Makefile index a698f26453..90ebf4ede5 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,6 @@ DOCKER_RUN_OPTS=--rm MVN:=mvn CODESIGN:=docker run $(DOCKER_RUN_OPTS) -v $$PWD:/workdir gotson/rcodesign sign SRC:=src/main/java -JAVA_CLASSPATH:=$(TARGET)/classpath/slf4j-api.jar SQLITE_OUT:=$(TARGE...
6
3
3
[{"id": "G0", "claim": "The new Logger class referenced by the change was forgotten when committing, so the PR does not build and CI fails.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "JDBC.getParentLogger needs to return a java.util.logging.Logge...
null
xerial__sqlite-jdbc__119
xerial/sqlite-jdbc
119
defect
118288600bef15c4557cae901e73af3f14c80f7e
8aad3be29a8cc4c2214b47ac5856c18f0f949ee6
Use extended error codes
Enable extended error code reporting in sqlite, and new error enum values in SQLiteErrorCode.java. The extended error code is held in a new member of SQLiteErrorCode, so that the code member retains its old behaviour, so that existing clients which depend on that are not affected. The message returned by toString does...
diff --git a/src/main/java/org/sqlite/SQLiteErrorCode.java b/src/main/java/org/sqlite/SQLiteErrorCode.java index b017534a04..52a14cc2e2 100644 --- a/src/main/java/org/sqlite/SQLiteErrorCode.java +++ b/src/main/java/org/sqlite/SQLiteErrorCode.java @@ -63,9 +63,56 @@ public enum SQLiteErrorCode { SQLITE_RANGE(25, " ...
4
3
1
[{"id": "G0", "claim": "The reviewer questions the design and asks the author to explain why SQLiteErrorCode needs to maintain both a `code` and an `extended` field.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The S1 handling of `code` and `extended` is...
null
xerial__sqlite-jdbc__1263
xerial/sqlite-jdbc
1,263
defect
c8ce29c226ffbab1c37758261bf653a9daa9b865
4ba46f3b44b42c87605b8bc6f51a4d1161c8da41
remove an undocumented side-effect from SQLiteConnection::open
The side-effect consisted in temporarily creating a non-existing db-file to test for write-permission, see #1260 Also add some test to better document the expected behavior.
diff --git a/src/main/java/org/sqlite/SQLiteConnection.java b/src/main/java/org/sqlite/SQLiteConnection.java index b02cf9cb68..9837bedf1a 100644 --- a/src/main/java/org/sqlite/SQLiteConnection.java +++ b/src/main/java/org/sqlite/SQLiteConnection.java @@ -251,26 +251,7 @@ private static DB open(String url, String origFi...
4
4
1
[{"id": "G0", "claim": "The pull request's checks report code-formatting issues and failing tests, which the author is asked to check and fix.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The assertions in the new test should be changed to assertJ, as...
null
xerial__sqlite-jdbc__1275
xerial/sqlite-jdbc
1,275
defect
79cc5feaf162679782e04e8691e55c7b6c90664f
bb55cb24d5056569083f3640336fb7ab8465ac9f
enhancement: android stuff
This addresses #1210 and changes the values the tests use to be more accurate to real world. I mocked up a crappy little android app to get the values. It's set to target API 14 (Android 4.0.1/2 Ice Cream Sandwich, getting it down to an even lower version is a headache. The app was tested on API 36 as well to m...
diff --git a/src/main/java/org/sqlite/util/OSInfo.java b/src/main/java/org/sqlite/util/OSInfo.java index caa255a303..8c2b1a7206 100644 --- a/src/main/java/org/sqlite/util/OSInfo.java +++ b/src/main/java/org/sqlite/util/OSInfo.java @@ -24,6 +24,7 @@ // -------------------------------------- package org.sqlite.util; ...
2
1
0
[{"id": "G0", "claim": "The libGLESv1_CM existence check inside isAndroid() should be extracted into a separate method, the same way isAndroidRuntime and isAndroidTermux already are.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer as...
null
xerial__sqlite-jdbc__14
xerial/sqlite-jdbc
14
defect
1c5ab26a0f014edfa0ebc3e839014f204de86cd7
9a0443fab5adc47457212b46f61efdf384e6595d
Add support for specifying PRAGMA values as JDBC url query parameters
This adds support for specifying PRAGMA values as JDBC url query parameters which is quite useful for runtime-based settings within an application. The idea is to extract recognized PRAGMA values from the filename and inject them into the properties object which is used to build SQLiteConfig. The filename is sanitize...
diff --git a/src/main/java/org/sqlite/core/CoreConnection.java b/src/main/java/org/sqlite/core/CoreConnection.java index b27b8eb1f..25c5bc43d 100644 --- a/src/main/java/org/sqlite/core/CoreConnection.java +++ b/src/main/java/org/sqlite/core/CoreConnection.java @@ -15,10 +15,13 @@ import java.util.HashMap; import java...
4
3
2
[{"id": "G0", "claim": "Remove the final keyword from the local variables in extractPragmasFromFilename.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add error reporting when a URL parameter has no '=' value part, since the current code just f...
null
xerial__sqlite-jdbc__233
xerial/sqlite-jdbc
233
defect
9833b1174b629b5a8956e93e04a88468c95081de
69a5741c7cb6e2e3cd5e21f6bd748b7323ffce32
Fix issue #197: create lock before lib file, remove lib files by absolute path
We faced this problem running a few instances of app that use sqlite. Creating lock-file before lib allows to avoid concurrent creating/deleting on initializing. Test taken from @bertmaher 's repo, reproduces on MacOS 10.12.5. Extra tested on Win10
diff --git a/src/main/java/org/sqlite/SQLiteJDBCLoader.java b/src/main/java/org/sqlite/SQLiteJDBCLoader.java index c99b3a92af..51fe01886d 100644 --- a/src/main/java/org/sqlite/SQLiteJDBCLoader.java +++ b/src/main/java/org/sqlite/SQLiteJDBCLoader.java @@ -85,7 +85,7 @@ public boolean accept(File dir, String name) { ...
1
1
0
[{"id": "G0", "claim": "The new test should use a `target/sample-` path for the database files instead of writing them into the source code root.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xerial__sqlite-jdbc__465
xerial/sqlite-jdbc
465
defect
de1cace2078f7845e340bc49997ecabf848558b0
b416b0b9e0959c19d78961c8afb84e0938dc8e39
Add compile option 'JDBC_EXTENSIONS'
If SQLite has been augmented with JDBC extensions add a compile option which can be queried from the 'compile_options' pragma. This makes it possible to determine at runtime whether the client supports customs functions or not.
diff --git a/Makefile b/Makefile index 82efc49e25..1b6a87ccfb 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ $(SQLITE_OUT)/sqlite3.o : $(SQLITE_UNPACKED) perl -p -e "s/sqlite3_api;/sqlite3_api = 0;/g" \ $(SQLITE_SOURCE)/sqlite3ext.h > $(SQLITE_OUT)/sqlite3ext.h # insert a code for loading extension fun...
1
1
0
[{"id": "G0", "claim": "Split the combined perl substitution into two separate perl scripts for readability, even at the cost of inefficiency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xerial__sqlite-jdbc__620
xerial/sqlite-jdbc
620
defect
21055a2b75b70039bd9f688deea2408d7d1c2114
e2c890ec917fb02436724ed5c70135ce1303e196
Normalize source string when parsing 2
This is a duplicate of https://github.com/xerial/sqlite-jdbc/pull/609 created at the request of @xerial This pull request fixes the bug described by issue https://github.com/xerial/sqlite-jdbc/issues/88 This bug can be reproduced by using `ResultSet.getDate()` to parse a `DATETIME` created using `CURRENT_TIMESTA...
diff --git a/src/main/java/org/sqlite/date/FastDateParser.java b/src/main/java/org/sqlite/date/FastDateParser.java index 1ee3c4378..663b40b73 100644 --- a/src/main/java/org/sqlite/date/FastDateParser.java +++ b/src/main/java/org/sqlite/date/FastDateParser.java @@ -288,15 +288,16 @@ public Object parseObject(final Strin...
1
1
1
[{"id": "G0", "claim": "The new defaultDateTimeTest queries the table `day` instead of `daywithdefaultdatetime`, so the test fails with \"no such table: day\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xerial__sqlite-jdbc__835
xerial/sqlite-jdbc
835
defect
e437b3fc4dccc3152dac3bcf8c3154926ddc54ec
e549d376aa4d124ee2574953653b4b4c18c9d2c9
native-image - use Feature implementation instead of config files
This PR replaces the `resource-config.json` and `jni-config.json` files by a `org.graalvm.nativeimage.hosted.Feature` implementation. * The registered JNI configuration is unchanged, but is now configured using the native-image java API. This is easier to maintain than the json files. * The resource config is differe...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d91aa12f..2d54f2a38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,7 +80,7 @@ jobs: components: 'native-image' github-token: ${{ secrets.GITHUB_TOKEN }} - name: Test - run: mvn --batc...
6
3
0
[{"id": "G0", "claim": "The Feature should share the existing library-location code from SQLiteJDBCLoader instead of hardcoding resource paths, so it stays robust if the native lib placement changes, and should at least account for Android.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
xerial__sqlite-jdbc__856
xerial/sqlite-jdbc
856
defect
db56d15dbd68669906674b6c289025e5c9dd741d
8d4c14451d8c19ee823c3863bf84e924d6b033a3
feat: remove length/ dimension of column data types in the `TYPE_NAME` field of `getColumns()`
If columns are defined with `intvalue integer(5)`, `realvalue real(8,3)`, or `charvalue varchar(21)` for example, return `INTEGER`, `REAL` or `VARCHAR` respectively. This is consistent with how other JDBC drivers return the `TYPE_NAME` field in [`DatabaseMetaData.getColumns()`](https://docs.oracle.com/javase/8/docs/api...
diff --git a/src/main/java/org/sqlite/jdbc3/JDBC3DatabaseMetaData.java b/src/main/java/org/sqlite/jdbc3/JDBC3DatabaseMetaData.java index 844dcd021..6b2d6b6f3 100644 --- a/src/main/java/org/sqlite/jdbc3/JDBC3DatabaseMetaData.java +++ b/src/main/java/org/sqlite/jdbc3/JDBC3DatabaseMetaData.java @@ -842,6 +842,8 @@ public ...
6
4
0
[{"id": "G0", "claim": "The getColumns() Javadoc should be supplemented with documentation (explanation and an example) because it does not explain that TYPE_NAME should hold the type name without the length/dimension.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"...
null
xerial__sqlite-jdbc__894
xerial/sqlite-jdbc
894
defect
6e94e6b60c2f649a3971c2046af5d9b776b752ca
1dcd8552bf77ddf106046ce3e58c534319cea664
feat: Add support of LocalDate, LocalTime, LocalDateTime in JDBC4ResultSet.
## What is the purpose of the change Support LocalDate, LocalTime, LocalDateTime in ResultSet. They are new time-representing classes that appears in JDK 8. ## Why this PR proposed I'm using SQLite as a embedded database for testing in my project. There's a POJO that uses LocalDate. When I'm trying to use MyBatis ...
diff --git a/src/main/java/org/sqlite/jdbc4/JDBC4ResultSet.java b/src/main/java/org/sqlite/jdbc4/JDBC4ResultSet.java index c28a94b8a..a2f0eaaa1 100644 --- a/src/main/java/org/sqlite/jdbc4/JDBC4ResultSet.java +++ b/src/main/java/org/sqlite/jdbc4/JDBC4ResultSet.java @@ -23,6 +23,9 @@ import java.sql.SQLXML; import java...
7
5
0
[{"id": "G0", "claim": "Use the existing Date.toLocalDate() method instead of manually extracting year, month and day fields.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the existing Time.toLocalTime() method instead of manually extractin...
null
xflr6__graphviz__116
xflr6/graphviz
116
defect
3651713c98c997ce90ba5fcc27c24837e444dcff
82501f039e12042299fc353436dfb338b5c7086c
Inherit render properties
Hi, this is for #114 . There are two things probably still have to be done: I don't know what good non default values would be for 'encoding' and 'engine' for the test function. There is a check in https://github.com/xflr6/graphviz/blob/master/graphviz/dot.py#L100 that subgraphs can't be strict, so it doe...
diff --git a/graphviz/dot.py b/graphviz/dot.py index 8b2acd362f..50fd74506b 100644 --- a/graphviz/dot.py +++ b/graphviz/dot.py @@ -67,6 +67,7 @@ def __init__(self, name=None, comment=None, self.body = list(body) if body is not None else [] self.strict = strict + self.enconding = encoding ...
4
2
2
[{"id": "G0", "claim": "The added 'self.enconding = encoding' assignment in Dot.__init__ is redundant because the super() call already handles encoding, and it introduces a misspelled duplicate attribute that the PR's subgraph() then reads instead of the inherited self.encoding.", "category": "correctness", "verdict": ...
null
xflr6__graphviz__126
xflr6/graphviz
126
defect
4ebb566effe34719fd0e3284ea54a300e5e7b536
d480ad1ee8447f8ea85f600fa803b5802d560f66
Replace tmpdir with tmp_path in tests
As discussed in #125, this replaces `tmpdir` with `tmp_path` in all tests (and `tmpdir_factory` with `tmp_path_factory`), because the `py.path` used as `tmpdir` is in maintenance mode and `pytest` is also migrating to `tmp_path`. This adds some code though because `py.path` had special functions for almost everythin...
diff --git a/tests/conftest.py b/tests/conftest.py index 7e5e1a60f4..288f38eedb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -17,9 +17,9 @@ def pytest_configure(config): @pytest.fixture(scope='session') -def filesdir(tmpdir_factory): - LocalPath = tmpdir_factory.getbasetemp().__class__ # noqa: N80...
4
4
0
[{"id": "G0", "claim": "The filesdir fixture's LocalPath class indirection may no longer be needed and could return a pathlib.Path instance directly instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The newly added imports should use onl...
null
xflr6__graphviz__150
xflr6/graphviz
150
defect
aa810509900e473f88964e795de22d5ccd2581e5
75179c7798d5f331be9614142fc44fd628d9ff7f
Add _repr_mimebundle_ for IPython.display
Address #138 @xflr6 Thank you for the modifications of the graphviz code base. I followed your suggestion and implemented the `_repr_mimebundle_ `. For SVG, PNG and JPEG it works, but PDF and JSON didn't work. In the IPython documentation is not much info, so I was not able to figure out, why they don't work. (F...
diff --git a/graphviz/jupyter_integration.py b/graphviz/jupyter_integration.py index ab654337af..6397b23b20 100644 --- a/graphviz/jupyter_integration.py +++ b/graphviz/jupyter_integration.py @@ -1,12 +1,70 @@ """Display rendered graph as SVG in Jupyter Notebooks and QtConsole.""" - from . import piping __all__ = [...
13
13
2
[{"id": "G0", "claim": "Move set_default_jupyter_representation out of jupyter_integration.py and place it after set_default_format in graphviz/__init__.py, made analogous to that function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the suggesti...
null
xiph__flac__219
xiph/flac
219
defect
ce6dd6b5732e319ef60716d9cc9af6a836a4011a
f72fe6623e2c494e2e1f50bcd9e800ad3816fd39
Add support in the encoder for up to 20 bit sample rates
Add support in the encoder for up to full 20 bit sample rates now that many DACs support up to 768kHz. Files produced with these sample rates are already decodable by the reference decoder. Update documentation and tests accordingly.
diff --git a/doc/html/faq.html b/doc/html/faq.html index 5612002b16..8504f32b7c 100644 --- a/doc/html/faq.html +++ b/doc/html/faq.html @@ -278,7 +278,7 @@ <h2> <br /> FLAC supports linear PCM samples with a resolution between 4 and 32 bits per sample. FLAC does not support floating point samples. In some cases ...
2
2
2
[{"id": "G0", "claim": "The subset column in the test table should be false for the newly added high sample rates (655360, 700000, 700010, 705600, 768000, 1000000) since they are not subset-compliant, and if the test then fails other code needs fixing.", "category": "correctness", "verdict": "supported", "priority": "P...
null
xiph__flac__361
xiph/flac
361
defect
69cf76c58e797d093cea73b1f8ad1ff55ec2786d
dd45062021ca44d882a319d85368791f257cae1d
Add 32 bit encoding and decoding capabilities
This is still a work in progress. Decoding and encoding capabilities will probably be merged separately.
diff --git a/include/FLAC/format.h b/include/FLAC/format.h index cf5c25aa94..28eda59953 100644 --- a/include/FLAC/format.h +++ b/include/FLAC/format.h @@ -282,14 +282,24 @@ extern FLAC_API const char * const FLAC__SubframeTypeString[]; /** CONSTANT subframe. (c.f. <A HREF="../format.html#subframe_constant">format spe...
2
1
0
[{"id": "G0", "claim": "Naming the union members `int32`/`int64` is a bad choice because many C sources out there define `int32` and/or `int64` types for themselves; something like `data32`/`data64` was suggested instead.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "...
null
xiphonics__picoTracker__1262
xiphonics/picoTracker
1,262
defect
5a0e5cca71da9dc7b3fcc9d2904c273de6f6c434
d29da481ab96e996fcbba0035763caef369a567e
More lenient wav header error handling, update tests
Some wav files have RIFF size field that doesnt match actual audio data size in the file, but that shouldn't be an import error since the firmware doesn't rely on the riff header field for playback. Fixes: #1158
diff --git a/sources/Application/Instruments/WavHeader.cpp b/sources/Application/Instruments/WavHeader.cpp index aeb9473f8..93b6312cd 100644 --- a/sources/Application/Instruments/WavHeader.cpp +++ b/sources/Application/Instruments/WavHeader.cpp @@ -109,6 +109,15 @@ WavHeaderWriter::ReadHeader(I_File *file) { retur...
1
1
0
[{"id": "G0", "claim": "The new variable name should not encode the file type, i.e. `fileEndLong` should be renamed to drop the type suffix.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xiphonics__picoTracker__1348
xiphonics/picoTracker
1,348
defect
5b7c6b5a55bb09529093a9d620e80a3920edbfab
c1a0816bc9f26dc23b9d6a05d1c9750beb8ba04a
Replace octals
This is just an engineering task to replace octal with hex literals for extended chars.
diff --git a/sources/Foundation/Constants/SpecialCharacters.h b/sources/Foundation/Constants/SpecialCharacters.h index bf6524952..c4f547e82 100644 --- a/sources/Foundation/Constants/SpecialCharacters.h +++ b/sources/Foundation/Constants/SpecialCharacters.h @@ -2,207 +2,207 @@ // string literal macros for compile-tim...
1
1
0
[{"id": "G0", "claim": "Replacing octal with hex escaped literals does not help relate the characters to their decimal addressing in font.h, and the reviewer asks to use decimals here or otherwise make the mapping human-readable (e.g. annotate font.h with the hex or octal value of each character).", "category": "mainta...
null
xjasonlyu__tun2socks__315
xjasonlyu/tun2socks
315
defect
010765138ca39da3b0556958701ba7a3b5b435be
cf57e91f02f05e67c61c93bed41a473cb0b75706
Optimize the memory footprint under SOCKS5 when USERNAME/PASSWORD authentication is used
Currently the Go `bytes.Buffer` struct is not used optimally, ref: https://github.com/cty123/tun2socks/blob/main/transport/socks5/socks5.go#L190 ```go authMsg := &bytes.Buffer{} authMsg.WriteByte(0x01 /* VER */) authMsg.WriteByte(byte(len(user.Username)) /* ULEN */) authMsg.WriteString(user.Username /* UNAME */)...
diff --git a/transport/socks5/socks5.go b/transport/socks5/socks5.go index 04ad4e07..9da572b5 100644 --- a/transport/socks5/socks5.go +++ b/transport/socks5/socks5.go @@ -11,6 +11,15 @@ import ( "strconv" ) +// AuthMethod is the authentication method as defined in RFC 1928 section 3. +type AuthMethod = uint8 + +//...
3
2
0
[{"id": "G0", "claim": "The authentication method constants AuthNo/AuthUsernamePassword should be renamed to MethodNoAuth/MethodGSSAPI/MethodUserPass/MethodNoAcceptable as in RFC 1928.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The auth mess...
null
xlab-si__iac-scan-runner__21
xlab-si/iac-scan-runner
21
defect
a2b5b72260ed4f3f4657b952b8611f64b16d43df
7ed387f8bb53a05d46169d593dad1fbce94427e2
Scan project persistence
- Assigning projects to persisted scan run results - API to add generate new project or assign configuration (expanded in future)
diff --git a/docker-compose.yaml b/docker-compose.yaml index 4fd7e73..4e53e50 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -15,3 +15,4 @@ services: environment: - MONGODB_CONNECTION_STRING=mongodb://mongoservice:27017/ - SCAN_PERSISTENCE=enabled + - USER_MANAGEMENT=enabled ...
6
6
0
[{"id": "G0", "claim": "examples/projects_example.py has too many consecutive blank lines that should be removed.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The newly added par assignment in examples/test_scanner_simple.py should be reformatted into t...
null
xlab-si__iac-scan-runner__23
xlab-si/iac-scan-runner
23
defect
2f46873f38a8372982d6ac88f98041a6d96186a6
d91cdf43866e752795968838158054562c4cc3ba
Check list enable/disable persistence support
Applying this commit: - support for check enable/disable as part of persistent project configuration
diff --git a/examples/projects_example.py b/examples/projects_example.py index 8fdff97..9a4bc31 100644 --- a/examples/projects_example.py +++ b/examples/projects_example.py @@ -11,20 +11,56 @@ projectid = str(response.json()) print(projectid) +checkname="tfsec" + +url = f"http://127.0.0.1:8000/checks/{checkname}/en...
7
6
0
[{"id": "G0", "claim": "Remove all the print statements added to examples/projects_example.py.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a TODO and extract the strings compared in evaluate_verdict's long condition into a separate object...
null
xlate__staedi__200
xlate/staedi
200
defect
ac291616d907082106e90126835645ed149e9776
d62a5ee6e4fd5f2f5b557e77e27365c5ce03d053
Fix for handling of alphabetic repetition separator
## Problem Valid X12 ISA headers can sometimes include an alpha-numeric character at element 11. In that case, the value should be ignored in favor of the default repetition separator "^" We've encountered real world messages that have a `V` at ISA 11 fail to parse with the following error message on later events. ...
diff --git a/src/main/java/io/xlate/edi/internal/stream/tokenization/X12Dialect.java b/src/main/java/io/xlate/edi/internal/stream/tokenization/X12Dialect.java index 66025aa7..3a9db3ab 100644 --- a/src/main/java/io/xlate/edi/internal/stream/tokenization/X12Dialect.java +++ b/src/main/java/io/xlate/edi/internal/stream/to...
2
2
2
[{"id": "G0", "claim": "Defaulting an alphabetic element repetition separator to '^' is wrong because it can clash with other delimiters or actual data; the elementRepeater should be disabled entirely when alphabetic (and the test should then not expect '^' as the repetition delimiter).", "category": "correctness", "ve...
null
xline-kv__Xline__153
xline-kv/Xline
153
defect
1a15496afc8e3579f48d42ccfdeef0ac2d38c73e
d469009b33055566e346be8e731a153fbb21e871
Features/lock
Please briefly answer these questions: * what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?) Support lock service * what changes does this pull request make? Support lock service * are there any non-obvious implications of these changes? (does it break compati...
diff --git a/xline/src/client/mod.rs b/xline/src/client/mod.rs index 3aa56e8138..796649fef3 100644 --- a/xline/src/client/mod.rs +++ b/xline/src/client/mod.rs @@ -1,8 +1,9 @@ -use std::collections::HashMap; +use std::{collections::HashMap, fmt::Debug}; use curp::{client::Client as CurpClient, cmd::ProposeId}; use e...
7
5
1
[{"id": "G0", "claim": "The local variable `watche_stream` in lock_server.rs misspells \"watch\" and should be renamed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since the txn path now always uses the slow path, `sync_res` should always be ...
null
xline-kv__Xline__482
xline-kv/Xline
482
defect
2cbb0fdd9cfdddc54f4a97b38553208c285a983f
bb38683133b63167d8c1663bc707d8e4377730a7
fix: add linearizable parameter in FetchClusterRequest
Please briefly answer these questions: proto changes: https://github.com/xline-kv/curp-proto/pull/14 * what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?) Fix linearizable read in FetchClusterRequest * what changes does this pull request make? * are t...
diff --git a/curp/proto/common b/curp/proto/common index 04ad97b3b3..0adbf930bc 160000 --- a/curp/proto/common +++ b/curp/proto/common @@ -1 +1 @@ -Subproject commit 04ad97b3b34295ea26057d08a924b0dd0dd2b73a +Subproject commit 0adbf930bc125c8b4a2fb9c7b7d7ede521c35416 diff --git a/curp/src/client.rs b/curp/src/client.rs ...
1
1
1
[{"id": "G0", "claim": "The new `continue` on an empty members response skips the `ok_cnt` increment (and `ok_cnt` is not checked at the end of the method), so responses are skipped instead of counted toward the majority.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xline-kv__Xline__483
xline-kv/Xline
483
defect
452c24557c56d6e23b5c6a4646b2befee734f02f
6bdcc4bb3e6c526a5714f49d5f581965239294f6
refactor: refactor propose id
Please briefly answer these questions: proto changes: https://github.com/xline-kv/curp-proto/pull/15 https://github.com/xline-kv/xline-proto/pull/5 * what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?) Refactor propose id into `ProposeId(u64, u64)` * ...
diff --git a/curp-external-api/src/cmd.rs b/curp-external-api/src/cmd.rs index 8812e2a29..6492721dc 100644 --- a/curp-external-api/src/cmd.rs +++ b/curp-external-api/src/cmd.rs @@ -1,9 +1,10 @@ +use std::fmt::Display; use std::hash::Hash; use async_trait::async_trait; use engine::Snapshot; use prost::DecodeError;...
1
1
0
[{"id": "G0", "claim": "Pass the ProposeId by value instead of by reference at these call sites — e.g. call `insert_er(entry.id(), er)` directly rather than `&entry.id()`, and likewise for `wait_for_er` and the barrier `wait`/`trigger` methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
xline-kv__Xline__673
xline-kv/Xline
673
defect
e54d83f0156015c3557a90e8aa9beadf2458eaa8
1dd0fab558c671239a03a52b68786728e928c246
refactor: engine refactor
Depends-On: #703 Implements `StorageOps` for Engine Please briefly answer these questions: * what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?) * what changes does this pull request make? * are there any non-obvious implications of these changes? (do...
diff --git a/crates/curp-test-utils/src/test_cmd.rs b/crates/curp-test-utils/src/test_cmd.rs index 1fdde4f1a3..beac1d463a 100644 --- a/crates/curp-test-utils/src/test_cmd.rs +++ b/crates/curp-test-utils/src/test_cmd.rs @@ -12,7 +12,9 @@ use curp_external_api::{ cmd::{Command, CommandExecutor, ConflictCheck, PbCode...
5
2
0
[{"id": "G0", "claim": "The reviewer questions why `WriteOperation` now derives `Clone` (it previously derived only `Debug`), asking for the rationale behind making the write operation cloneable.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The nested ...
null
xline-kv__Xline__882
xline-kv/Xline
882
defect
53217613dcd22ae361272dc4085eac941f1c7820
85d515423763afb54b29480daf7765e8fa38ebc7
refactor(client)!: Remove request wrappers - KvClient::put
Please briefly answer these questions: * what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?) - one of the series of #819 refactor, to remove request wrappers in xline-client and make user interface easier to use. * what changes does this pull request mak...
diff --git a/crates/benchmark/src/bench_client.rs b/crates/benchmark/src/bench_client.rs index e836ab2440..6f59cce77e 100644 --- a/crates/benchmark/src/bench_client.rs +++ b/crates/benchmark/src/bench_client.rs @@ -7,7 +7,7 @@ use thiserror::Error; use xline_client::types::kv::{RangeRequest, RangeResponse}; use xline...
1
1
1
[{"id": "G0", "claim": "Implement a builder/future pattern so that put can be called as client.put(\"key1\", \"value1\") with optional .with_prev_key() modifiers instead of requiring an explicit PutOptions argument (opting for the original approach is acceptable if implementing it proves too complex).", "category": "de...
null
xline-kv__Xline__884
xline-kv/Xline
884
defect
53217613dcd22ae361272dc4085eac941f1c7820
9ec2279c32e0321ee018a456f6e57614df52bca2
refactor(client)!: Remove request wrappers - AuthClient::user_add
Please briefly answer these questions: * what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?) - one of the series of #819 refactor, to remove request wrappers in xline-client and make user interface easier to use. * what changes does this pull request mak...
diff --git a/crates/xline-client/examples/auth_user.rs b/crates/xline-client/examples/auth_user.rs index 416135834a..48e8a0b429 100644 --- a/crates/xline-client/examples/auth_user.rs +++ b/crates/xline-client/examples/auth_user.rs @@ -1,8 +1,8 @@ use anyhow::Result; use xline_client::{ types::auth::{ - Au...
1
1
0
[{"id": "G0", "claim": "The password/options design of `user_add` is awkward and at minimum a comment should describe that an empty string means no password.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xline-kv__Xline__898
xline-kv/Xline
898
defect
044260a1b1fe0157d301c09ee11b7e1095b560ea
78d4f9f48b4054f1ba3ac61e2db88311d3b8197b
refactor(client)!: Remove request wrappers - AuthClient::role_grant_permission
Depends-On: #882 Please briefly answer these questions: * what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?) * what changes does this pull request make? * are there any non-obvious implications of these changes? (does it break compatibility with previous...
diff --git a/crates/xline-client/examples/auth_role.rs b/crates/xline-client/examples/auth_role.rs index 2319dd8ffe..3a2bacca47 100644 --- a/crates/xline-client/examples/auth_role.rs +++ b/crates/xline-client/examples/auth_role.rs @@ -2,8 +2,7 @@ use anyhow::Result; use xline_client::{ types::auth::{ Aut...
1
1
0
[{"id": "G0", "claim": "The Permission type should also be refactored to add convenience constructor methods such as Permission::read, Permission::write and Permission::readwrite.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
xline-kv__Xline__905
xline-kv/Xline
905
defect
8938ce1654bf132c82f8d9dc7dfe3f2b93d8e8ae
bf6128153b45e2a005fdd76a2ba0bb5f80cd89dd
refactor(client)!: Remove request wrappers - LeaseClient::*
Please briefly answer these questions: * what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?) * what changes does this pull request make? * are there any non-obvious implications of these changes? (does it break compatibility with previous versions, etc)
diff --git a/crates/xline-client/examples/lease.rs b/crates/xline-client/examples/lease.rs index 24f1babe51..56e5dd012f 100644 --- a/crates/xline-client/examples/lease.rs +++ b/crates/xline-client/examples/lease.rs @@ -1,10 +1,5 @@ use anyhow::Result; -use xline_client::{ - types::lease::{ - LeaseGrantReques...
3
2
0
[{"id": "G0", "claim": "The `grant` doc comment should say the lessor chooses an ID when `id` is `None`, not when it is set to 0.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use `unwrap_or_else` instead of `unwrap_or_default` followed by the `i...
null
xline-kv__Xline__906
xline-kv/Xline
906
defect
8938ce1654bf132c82f8d9dc7dfe3f2b93d8e8ae
90940b36eef33373ac2095f73ab560d4b2dc9a01
refactor(client)!: Remove request wrappers - WatchClient::watch
Depends-On: #905 Please briefly answer these questions: * what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?) * what changes does this pull request make? - use `enum WatchKeyOptions` to record `with_prefix` and `with_from_key` because when constructi...
diff --git a/crates/simulation/src/xline_group.rs b/crates/simulation/src/xline_group.rs index eb97322d2f..bfa908e24c 100644 --- a/crates/simulation/src/xline_group.rs +++ b/crates/simulation/src/xline_group.rs @@ -17,7 +17,7 @@ use xline_client::{ CompactionRequest, CompactionResponse, PutOptions, PutResp...
3
3
0
[{"id": "G0", "claim": "The new enum `RangeEndOptions` should be renamed to `RangeOption` because it may not include a range end.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `Empty` variant should be renamed to `SingleKey`, since it means...
null
xline-kv__Xline__908
xline-kv/Xline
908
defect
8938ce1654bf132c82f8d9dc7dfe3f2b93d8e8ae
82f6953619f7e33a79b3e06922cbebb685cbff7d
refactor(client)!: Remove request wrappers - KvClient::range
Depends-On: #906 Please briefly answer these questions: * what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?) * what changes does this pull request make? * are there any non-obvious implications of these changes? (does it break compatibility with previous...
diff --git a/crates/benchmark/src/bench_client.rs b/crates/benchmark/src/bench_client.rs index 6f59cce77e..15cdd07a80 100644 --- a/crates/benchmark/src/bench_client.rs +++ b/crates/benchmark/src/bench_client.rs @@ -4,7 +4,7 @@ use anyhow::Result; use etcd_client::{Client as EtcdClient, ConnectOptions}; use thiserror:...
2
2
1
[{"id": "G0", "claim": "The doc comment on the range options struct should be modified like the one on PutOptions, since the pull request renames RangeRequest to RangeOptions and the old 'Request type for `Range`' wording no longer fits.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": ...
null
xline-kv__Xline__912
xline-kv/Xline
912
defect
8938ce1654bf132c82f8d9dc7dfe3f2b93d8e8ae
988dab94239e0d764b7a248e53ae4ddb5675557c
refactor(client)!: Remove request wrappers - KvClient::delete
Depends-On: #908 Please briefly answer these questions: * what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?) * what changes does this pull request make? * are there any non-obvious implications of these changes? (does it break compatibility with previou...
diff --git a/crates/benchmark/src/bench_client.rs b/crates/benchmark/src/bench_client.rs index 6f59cce77e..15cdd07a80 100644 --- a/crates/benchmark/src/bench_client.rs +++ b/crates/benchmark/src/bench_client.rs @@ -4,7 +4,7 @@ use anyhow::Result; use etcd_client::{Client as EtcdClient, ConnectOptions}; use thiserror:...
2
2
2
[{"id": "G0", "claim": "As with RangeOptions, if the user calls `with_prefix` on DeleteRangeOptions and then immediately calls the following `range_end` method, that method will not be able to read the value correctly; it should be modified like `RangeOptions`.", "category": "correctness", "verdict": "supported", "prio...
null
xline-kv__Xline__938
xline-kv/Xline
938
defect
27e1789d3dd8b6a5731c7d00bbae2aa1a31bbdca
cc873097e1387693c5fcd62114192fd86e59b925
refactor: after sync implementation
This PR introduces the following major changes: - Switch after sync to sync version (previously async) - Rewrite error returning mechanism during after sync stage During the after sync execution (in `crates/xline/src/server/command.rs`), we use batch persistent, and this will introduce two types of errors - a exe...
diff --git a/crates/curp-external-api/src/cmd.rs b/crates/curp-external-api/src/cmd.rs index 3e87aa607..4869b0706 100644 --- a/crates/curp-external-api/src/cmd.rs +++ b/crates/curp-external-api/src/cmd.rs @@ -105,11 +105,11 @@ where fn execute(&self, cmd: &C) -> Result<C::ER, C::Error>; /// Batch execute th...
2
2
0
[{"id": "G0", "claim": "The logger initialization code added in test_kv_put duplicates the existing init_logger() helper in crates/curp-test-utils/src/lib.rs and should not be duplicated there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Sinc...
null
xline-kv__Xline__94
xline-kv/Xline
94
defect
1a96e0ac7267739e433e670d5d2d7311625f2088
ce2ef40dc27b813062db5306bfd181c0dad937ad
[Curp] Fix blocking caused by event listener wait() and improve kv_test
l.wait() should only be called in non-async code. If it is called in async code, it will not hand the control flow back to tokio runtime like l.await and, therefore, block the tokio worker thread.
diff --git a/.gitignore b/.gitignore index 2a445c8002..40d5a31b72 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,6 @@ scripts/* !scripts/Dockerfile !scripts/benchmark.sh !scripts/quick_start.sh + +.vscode +.idea \ No newline at end of file diff --git a/curp/src/channel/key_mpsc.rs b/curp/src/channel/key_mpsc....
1
1
0
[{"id": "G0", "claim": "The PR turns MpscKeyBasedReceiver::recv into an async fn even though an async_recv function already exists, and the reviewer asks what the difference between the two is.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xlite-dev__lite.ai.toolkit__468
xlite-dev/lite.ai.toolkit
468
defect
a54d337a3a9ad1fe4c08bbfd426a4f7300769eea
d65a4f3a09073fc45ab43c626f09d2db7daef3ee
[TRT] Support YOLO 11
This pull request adds support for the YOLOv11 object detection model to the lite TensorRT-based computer vision toolkit. The main changes include implementing the `TRTYOLOV11` class for inference, updating the build system, and adding a corresponding test example. These updates allow users to run YOLOv11 inference wit...
diff --git a/examples/lite/CMakeLists.txt b/examples/lite/CMakeLists.txt index 5be79444..b8b90c53 100644 --- a/examples/lite/CMakeLists.txt +++ b/examples/lite/CMakeLists.txt @@ -110,4 +110,5 @@ add_lite_executable(lite_face_swap cv) add_lite_executable(lite_face_restoration cv) add_lite_executable(lite_facefusion_pi...
2
1
0
[{"id": "G0", "claim": "The Chinese comments in trt_yolov11.cpp (and similar ones elsewhere) should be rewritten in English.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should also update the README support matrix to include ...
null
xming521__WeClone__209
xming521/WeClone
209
defect
9eab753787258c5e3b5a98b7f66d1c5ff1fb9bd0
a02b23bb2f8f1676a9fa106abb346234c82936c9
v0.3.03
The key highlights of this update include an upgrade to Python 3.12 and optimization of the dataset pipeline. **Dependency and Environment Updates:** * Upgraded the required Python version to 3.12 in `pyproject.toml` and development settings, and updated the target version for linting and type checking to Python ...
diff --git a/.cursor/rules/weclone-rules.mdc b/.cursor/rules/weclone-rules.mdc index b9a217a5..5de7867d 100644 --- a/.cursor/rules/weclone-rules.mdc +++ b/.cursor/rules/weclone-rules.mdc @@ -14,4 +14,3 @@ alwaysApply: true - The project uses uv as the package manager and pyproject.toml as the project configuration fil...
12
1
1
[{"id": "G0", "claim": "When `prompt_with_system=True`, `messages` is assigned directly from `prompt_text`, which is typed `str` while the OpenAI client expects a messages list, risking runtime type errors; the parameter type should be widened (e.g. Union) or a separate method provided.", "category": "correctness", "ve...
null
xnimorz__use-debounce__199
xnimorz/use-debounce
199
defect
f1c751196dd82904a11ea4fc93081ba956465136
f4bcd87182b11252db209f1a32afac61d7e6d0bd
Fix/cancel ispending UI update
## Summary This PR fixes an issue where the `isPending()` state doesn't trigger a UI update when `cancel()` is called on an active debounce timer. ## Problem When calling `cancel()` on an active debounce, the internal timer is cleared and `isPending()` returns `false`, but React doesn't re-render becau...
diff --git a/src/useDebouncedCallback.ts b/src/useDebouncedCallback.ts index c573db5..d42ca2b 100644 --- a/src/useDebouncedCallback.ts +++ b/src/useDebouncedCallback.ts @@ -286,6 +286,7 @@ export default function useDebouncedCallback< }; func.cancel = () => { + const hadTimer = !!timerId.current; ...
1
1
0
[{"id": "G0", "claim": "In cancel(), combine the duplicate timer checks into `const hadTimer = timerId.current; if (hadTimer) { ... }` instead of coercing with `!!`, since the boolean coercion adds bytes for no benefit.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xnimorz__use-debounce__40
xnimorz/use-debounce
40
defect
fe6f6136367679b375b14c70a885dab6c29290ba
b85bca2fd1ca3488481772caea16f36acae46558
Allow custom equality function in useDebounce
This PR adds an optional parameter to `useDebounce` that can be used to provide a custom equality function (e.g. an equality function for deep object comparison) to the hook. It defaults to a simple strict equality comparison. Let me know what you think 😄
diff --git a/src/useDebounce.ts b/src/useDebounce.ts index 7974bad..4259a92 100644 --- a/src/useDebounce.ts +++ b/src/useDebounce.ts @@ -1,10 +1,15 @@ import { useState, useCallback, useRef, useEffect } from 'react'; import useDebouncedCallback from './useDebouncedCallback'; +function refEquality<T>(left: T, right:...
2
2
1
[{"id": "G0", "claim": "The `refEquality` helper would be better called `valueEquality`, since it compares the previous and next values.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `equalityFn` parameter should be part of the `options` ob...
null
xnimorz__use-debounce__91
xnimorz/use-debounce
91
defect
d7997c0ddb1f561f5a1ee72c078f63007bd4c683
211e2eff1a9b9b23468086f848110ce06e15250c
add throttled-callback
1) new `useThrottledCallback` 2) new jsdoc for useDebouncedCallback and useThrottledCallback cc @tryggvigy
diff --git a/README.md b/README.md index 3b2e93b..110dcb4 100644 --- a/README.md +++ b/README.md @@ -302,3 +302,41 @@ You can provide additional options as a third argument to both `useDebounce` and | leading | - | This param will execute the function once immediately when called. Subseq...
2
1
1
[{"id": "G0", "claim": "useThrottledCallback removes the maxWait option, which the reviewer says might still be useful (e.g. throttling a tight loop while still ensuring the function is called at least every 100ms), and asks why it was dropped.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "i...
null
xo__usql__242
xo/usql
242
defect
6228ccb8c84c99d34bfbd02da339edbb8a9c3c2e
c911aea50690114ab8552668fc4e00eca4af793e
Unescape special chars in params
Partially addresses #166 by unescaping special characters, including quotes. This allows to use of variables as aliases for long/complex queries that contain quoted literals, like so: ``` \set activity 'select pid,now()-query_start,substring(query for 60) || \'...\' || substring(query from length(query)-40) from pg_s...
diff --git a/env/env.go b/env/env.go index 2773811444d..465b184cdf5 100644 --- a/env/env.go +++ b/env/env.go @@ -16,7 +16,9 @@ import ( "path/filepath" "regexp" "runtime" + "strconv" "strings" + "unicode/utf8" "github.com/xo/dburl" "github.com/xo/usql/text" @@ -366,18 +368,39 @@ func Exec(s string) (strin...
4
3
0
[{"id": "G0", "claim": "The error handling in Dequote should be written as a switch statement instead of nested if's.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The empty lines the pull request adds to Dequote should be removed, per the revi...
null
xo__usql__284
xo/usql
284
defect
3b780aa94f646e032a8386720f90ff2cf2971feb
f8dc8463f2e9c44d09258de8fff8530594563d49
Added triggers in \d (describeTableDetails)
Closes #231.
diff --git a/drivers/metadata/metadata.go b/drivers/metadata/metadata.go index 2a0a20e981a..b8e5144d79a 100644 --- a/drivers/metadata/metadata.go +++ b/drivers/metadata/metadata.go @@ -17,6 +17,7 @@ type ExtendedReader interface { ColumnReader IndexReader IndexColumnReader + TriggerReader ConstraintReader Con...
1
1
1
[{"id": "G0", "claim": "Since the trigger query filters by schema and parent, their names should be added to the SELECT list and filled into the returned Trigger records.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xo__usql__343
xo/usql
343
defect
832d6f7841b4e2c1da4616a01c124783cea5721c
29e029ec223b13034be14ca0b7dc5913eb5f478a
Add dataTypeFormatter to information schema reader
Implements #177 Adds a `dataTypeFormatter` function to the `InformationSchema` reader. The function builds the datatype string from a `metadata.Column` object. Only working for the postgres driver so far. For the interval type the fields (second, year ...) are not printed. But this is unrelated to this PR. ``...
diff --git a/drivers/metadata/informationschema/metadata.go b/drivers/metadata/informationschema/metadata.go index 0df15474814..6883a8491e8 100644 --- a/drivers/metadata/informationschema/metadata.go +++ b/drivers/metadata/informationschema/metadata.go @@ -26,6 +26,7 @@ type InformationSchema struct { limit ...
4
4
1
[{"id": "G0", "claim": "The postgres data-type formatter lambda should be defined as a standalone function and referenced in NewReader because it is too big for a lambda.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In WithDataTypeFormatter th...
null
xo__usql__355
xo/usql
355
defect
9555feb7551a5a3ebe5ab29ed3fcdba29562b822
db74272da1a90ba29a8fa2b944564104dc81707a
Fix TestWriter
Fix API calls to include URL Add functionality to ignore randomly named indices in test function output Update expected test function result files Fix small bug in the ordering of postgres indices pgsql.descTable still fails but this is due to an actual bug in the postgres metadata reader. I had to execute the...
diff --git a/drivers/drivers_test.go b/drivers/drivers_test.go index 443c54a81c9..2ffe249ac97 100644 --- a/drivers/drivers_test.go +++ b/drivers/drivers_test.go @@ -9,10 +9,10 @@ import ( "database/sql" "flag" "fmt" - "io/ioutil" "log" "net/url" "os" + "regexp" "testing" "time" @@ -127,7 +127,7 @@ fun...
1
1
0
[{"id": "G0", "claim": "The doc comment added for filesEqual should say \"paths\" rather than \"path\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
xo__usql__373
xo/usql
373
defect
f4de584f789be678c6f3da8326b8dc4efec466ad
b39410269af44e135e91f252b8d6aa17d0805c5a
Adding TABLE command to completer.
Fix for #372. Adding missing TABLE command to completer. These changes fix the lack of `TAB` auto-completion.
diff --git a/drivers/completer/completer.go b/drivers/completer/completer.go index c717e6ac64b..477276598dd 100644 --- a/drivers/completer/completer.go +++ b/drivers/completer/completer.go @@ -435,6 +435,10 @@ func (c completer) complete(previousWords []string, text []rune) [][]rune { if TailMatches(IGNORE_CASE, prev...
1
1
1
[{"id": "G0", "claim": "The TABLE completion trigger should use `matches(IGNORE_CASE, previousWords, \"TABLE\")` instead of `TailMatches(...)`, with a comment noting it, so completion is not offered when TABLE is embedded in other commands.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
xo__usql__415
xo/usql
415
defect
16038db828e2a7c7d744d0408b2f4766777c8057
6c3ac5f7c41a35c5ca33d3874b6c3697341ae4e7
Fix wrong index access method in PostgreSQL \d \di slash commands
Changes related to Issue #235. These changes fix the wrong index type returned by PostgreSQL slash commands.
diff --git a/drivers/metadata/metadata.go b/drivers/metadata/metadata.go index eb53ab31b68..c955df1c37c 100644 --- a/drivers/metadata/metadata.go +++ b/drivers/metadata/metadata.go @@ -456,6 +456,7 @@ func NewIndexSet(v []Index) *IndexSet { "Is primary", "Is unique", "Type", + "Access method", }, ...
2
2
1
[{"id": "G0", "claim": "Unless there is a case where both index type and access method apply, the pull request should not add a new AccessMethod field with a getter: the PostgreSQL driver should return the access method as the index Type, using COALESCE in the query to fall back to what is currently kept in Type.", "ca...
null
xo__usql__457
xo/usql
457
defect
99e974d1158f97c42bb46507b0e16a0934e84c32
9ad5cce2678983bc9b938a5c8bceedfb72daa591
Fixes in \copy implementation for Clickhouse
A couple of fixes in the Copy function for Clickhouse: - Don't prepare the SELECT statement that determines columns for the destination table as the Clickhouse driver omly supports preparing INSERT statements - De-reference the pointers populated by Scan before supplying them to arguments of Exec because Clickhouse...
diff --git a/drivers/clickhouse/clickhouse.go b/drivers/clickhouse/clickhouse.go index b397736f571..24c244b0d81 100644 --- a/drivers/clickhouse/clickhouse.go +++ b/drivers/clickhouse/clickhouse.go @@ -5,7 +5,10 @@ package clickhouse import ( + "context" "database/sql" + "fmt" + "reflect" "strconv" "strings" ...
2
2
0
[{"id": "G0", "claim": "The Clickhouse-specific copy fixes may benefit other drivers too, so they should be applied to the general drivers.CopyWithInsert implementation.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the TODO comments from the cod...
null
xoai__sage-wiki__42
xoai/sage-wiki
42
defect
95caa626720def6d4838dac8cdb1dfd4efbb2a02
9321b90122434e3525116bda7f9567d02558ef7c
feat: content-aware type detection with configurable signals
## Summary - Add `TypeSignal` config for content-based source type detection - `ReadHead` extracts file headers (text + PDF) for keyword matching - Short-circuit: zero cost when no TypeSignals configured ## Review feedback addressed (from #18) - ✅ C1: `--` before path in pdftotext (security) - ✅ M1: Short-circuit Read...
diff --git a/internal/compiler/diff.go b/internal/compiler/diff.go index 0d04220e..807eeb1e 100644 --- a/internal/compiler/diff.go +++ b/internal/compiler/diff.go @@ -48,6 +48,11 @@ func Diff(projectDir string, cfg *config.Config, mf *manifest.Manifest) (*DiffRe return nil } + // Skip hidden files (.DS_Sto...
2
2
2
[{"id": "G0", "claim": "Both `readHeadPDFToText` (readhead.go:53) and `extractPDFPoppler` (pdf.go:26) call pdftotext via `exec.Command(...).Output()` with no timeout, so a malformed PDF can hang pdftotext indefinitely and block the compile pipeline; they should use `exec.CommandContext` with a 5-10 second deadline at b...
null
xoai__sage-wiki__44
xoai/sage-wiki
44
defect
95caa626720def6d4838dac8cdb1dfd4efbb2a02
7e728d3d175a35a2a364137c131a3cb0ccab1467
fix: pipeline resilience with 5xx retry and circuit breaker
## Summary - Retry with exponential backoff for 5xx LLM API errors (500, 502, 503) in addition to existing 429 rate-limit handling - Circuit breaker in Summarize: after 5 consecutive failures, skip remaining sources to prevent cascading API waste - Summary quality validation: reject summaries shorter than 100 chars (re...
diff --git a/internal/compiler/pipeline.go b/internal/compiler/pipeline.go index 40c3928b..d0bdb6ef 100644 --- a/internal/compiler/pipeline.go +++ b/internal/compiler/pipeline.go @@ -41,6 +41,7 @@ type CompileResult struct { ConceptsExtracted int ArticlesWritten int Errors int + EmbedErrors ...
1
1
1
[{"id": "G0", "claim": "`stopped` is a plain bool written by worker goroutines (`stopped = true`) and read by the main goroutine (`if stopped {`), which with maxParallel > 1 is a data race detectable by `go test -race`; fix it with `atomic.Bool` (or by checking `consecutiveErrors.Load() >= 5` directly in the loop).", "...
null
xojs__xo__426
xojs/xo
426
defect
e0f81a724dfc487babced845067e9d49d630c56f
5d96b448398c685b79e192ebd3571328688ac0dd
Add TypeScript support
Fix #373 Fix xojs/eslint-config-xo-typescript#15 Xo will now automatically lint `.ts` and `.tsx` with the config from `eslint-config-xo-typescript`. No configuration needed! <!-- Issuehunt content --> --- <details> <summary> <b>IssueHunt Summary</b> </summary> ### Referenced issues This pull req...
diff --git a/lib/constants.js b/lib/constants.js index c1f36df4..397895d4 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -10,7 +10,8 @@ const DEFAULT_IGNORES = [ 'tap-snapshots/*.js' ]; -const DEFAULT_EXTENSION = ['js', 'jsx']; +const TYPESCRIPT_EXTENSION = ['ts', 'tsx']; +const DEFAULT_EXTENSION = ['js',...
8
6
2
[{"id": "G0", "claim": "XO should also lint `.d.ts` TypeScript definition files (e.g. in non-TS projects), as requested in the linked issue.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`isTypescript` should use `path.extname(file).slice(1)` instead...
null
xojs__xo__825
xojs/xo
825
defect
e68133f32bebec169c7156938ce400904c2f6a95
1ee115fd9ac024e9240e334121eab88152066ec9
Fix `indent-binary-ops` configuration for spaces
### How to reproduce Set `space: true` or `space: 2` in the `xo.config.js`, and use the code below for linting: ```js console.log('hello' + 'world'); ``` ### Actual behavior XO will report an `Expected indentation of 1 tab (@stylistic/indent-binary-ops)` error. ### Expected behavior The linting p...
diff --git a/lib/xo-to-eslint.ts b/lib/xo-to-eslint.ts index 91d0b569..b83bf2d6 100644 --- a/lib/xo-to-eslint.ts +++ b/lib/xo-to-eslint.ts @@ -62,10 +62,12 @@ export function xoToEslintConfig(flatXoConfig: XoConfigItem[] | undefined, {pret // eslint-disable-next-line @typescript-eslint/naming-convention {Swit...
2
2
1
[{"id": "G0", "claim": "The `test.only` on the 'flat config > js > space' test is probably a mistake that should not be committed (debug-only focus that skips other tests).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment added in lib/xo-t...
null
xoloki__wsts__100
xoloki/wsts
100
defect
810394f6064aefcfbf7c62edc7be678ea4ac13d8
007475dce25f782eb7846efef378a961ee565eb5
Allow clients to use a generic random number generator instead of the hard coded OsRng
Try to solve: https://github.com/Trust-Machines/wsts/issues/63 # Tests run locally ## cargo test ``` cargo test Compiling wsts v10.0.0 (/Users/tony/Workspace/TrustMachines/wsts) Finished `test` profile [unoptimized + debuginfo] target(s) in 1.09s Running unittests src/lib.rs (target/debug/deps/ws...
diff --git a/USAGE.md b/USAGE.md index 99f81aa1..0553eacd 100644 --- a/USAGE.md +++ b/USAGE.md @@ -1,5 +1,44 @@ # Usage -Applications which use `WSTS` will typically run both `Signer` and `Coordinator` state machines, in order to be able to handle all parts of the protocol. Because of this, these state machines do ...
3
3
1
[{"id": "G0", "claim": "The sentence in USAGE.md referring to the audit needs to be placed immediately after the discussion of the application's responsibilities instead of at the bottom of the file.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
xoloki__wsts__50
xoloki/wsts
50
defect
c557c13e0ecb2776c2e29e230fbee48888987635
ce117ad2d3b9f357049374bedb48676f68d7c3e8
Handle malicious DKG private shares
In order to be able to automatically iterate on DKG rounds, we must be able to identify malicious signers who send bad DKG private shares. This is non-trivial because the private shares are encrypted. This PR makes a number of changes to how signers return DKG error back to the coordinator, including sending the ...
diff --git a/Cargo.toml b/Cargo.toml index 34ef0adb..fdda479e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ num-traits = "0.2" polynomial = { version = "0.2.5", features = ["serde"] } primitive-types = "0.12" rand_core = "0.6" -p256k1 = { version = "6.0", default-features = false } +p256k1 = { version =...
3
2
0
[{"id": "G0", "claim": "In the DkgEndGather error handling, the single-arm match on Error should be changed to an if let with an else branch returning the original error.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It seems all of the failure...
null
xonsh__xonsh__4331
xonsh/xonsh
4,331
defect
8e547d0008fa6ae9c4c21de462ccd936d0266598
3393d766db8ce9c6c18a3d533b62b3b90badfe3f
Fix parser for subprocess command with leading whitespace
Fixes #4082 <!--- Thanks for opening a PR on xonsh! Please include a news entry with your PR to help keep our changelog up to date! There are instructions available here: https://xon.sh/devguide.html#changelog --> <!--- If there is specific issue / feature request that this PR is addressing, please link to the...
diff --git a/news/fix-subproc-leading-space.rst b/news/fix-subproc-leading-space.rst new file mode 100644 index 0000000000..191fc7c588 --- /dev/null +++ b/news/fix-subproc-leading-space.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* <news item> + +**Deprecated:** + +* <news item> + +**Removed:**...
1
1
0
[{"id": "G0", "claim": "The newly added subprocess space tests should be refactored into parameterized check_xonsh_ast calls, ideally as a single parametrized function per bracket form with pytest.param used to name the cases.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
xonsh__xonsh__4673
xonsh/xonsh
4,673
defect
adfa60ead541c671db289f14cd0ae06a7764c446
562200cb4a1b92d3b24f70e23857dc6989c1d250
make env_name aware of prompt in pyvenv.cfg
prompt.env.env_name is now aware of the "prompt" key in ``pyvenv.cfg`` - search order from first to last is: ``$VIRTUAL_ENV_PROMPT``, ``$VIRTUAL_ENV`` (prompt from ``pyvenv.cfg`` or basename of venv path if not set), ``$CONDA_DEFAULT_ENV``. fixes #4670 <!--- Thanks for opening a PR on xonsh! Please include a news...
diff --git a/news/vox-respect-prompt.rst b/news/vox-respect-prompt.rst new file mode 100644 index 0000000000..0bdad541cf --- /dev/null +++ b/news/vox-respect-prompt.rst @@ -0,0 +1,23 @@ +**Added:** + +* ``prompt.env.env_name`` is now aware of the "prompt" key in ``pyvenv.cfg`` - search order from first to last is: ``$V...
6
2
1
[{"id": "G0", "claim": "The developer guide is outdated and should be updated to reflect that tests/ is also formatted with black now (the guide should point to `xonsh run-tests.xsh qa` for all checks).", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "clai...
null
xonsh__xonsh__4920
xonsh/xonsh
4,920
defect
6fa83f830579d2bad39b1842911951f55a9da22c
440c1d405ee8611d812a214ad3f5dd7bc47ebfff
Make gitstatus prompt field values `None` when there is no git repo
Fixes #4900 This PR makes the values of all `gitstatus` prompt fields `None` when there is no git repository. This allows format strings like `{gitstatus: hello {}}` to work as expected. <!--- Thanks for opening a PR on xonsh! Please include a news entry with your PR to help keep our changelog up to date! There ar...
diff --git a/news/fix-gitstatus-no-git.rst b/news/fix-gitstatus-no-git.rst new file mode 100644 index 0000000000..d8487e0e47 --- /dev/null +++ b/news/fix-gitstatus-no-git.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* When there is no git repository, the values of all ``gitstatus`` prompt fields...
1
1
1
[{"id": "G0", "claim": "In the no-git-repo case the whole gitstatus field formats to an empty string rather than None because MultiPromptField joins all fragments, so the reviewer asks to add the whole-field case to the test and says MultiPromptField might need some update.", "category": "correctness", "verdict": "supp...
null
xonsh__xonsh__4970
xonsh/xonsh
4,970
defect
81f321d670ac70a4101095b545fe31cd12dbbb0a
57ae4d073c2d30ec119fbfe9635db5c46edf76c6
Fix auto-suggestion completion stacking if no normal completion exists
<!--- Thanks for opening a PR on xonsh! Please include a news entry with your PR to help keep our changelog up to date! There are instructions available here: https://xon.sh/devguide.html#changelog --> <!--- If there is specific issue / feature request that this PR is addressing, please link to the corresponding ...
diff --git a/news/4668-fix-autocomplete-suggest.rst b/news/4668-fix-autocomplete-suggest.rst new file mode 100644 index 0000000000..8d81c6a703 --- /dev/null +++ b/news/4668-fix-autocomplete-suggest.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* <news item> + +**Deprecated:** + +* <news item> + +...
2
2
2
[{"id": "G0", "claim": "The added `if not plen:` guard conflates plen==0 with an unset plen, and 0 is a valid prefix length (e.g. `cd <TAB>` returns every directory with prefix length 0), so a valid plen of 0 can be wrongly overwritten with len(prefix) even when normal completions were generated.", "category": "correct...
null
xonsh__xonsh__4973
xonsh/xonsh
4,973
defect
b0c81048af13da9bb301e7c807b247c15d975576
c2eee9321de5a4da33d84c8cc1aa5740acce3fbc
Fix: Allows user to assign #XONSH_STYLE_OVERRIDES a {Token:str} dictionary #4375
Changes the is_str_str_dict method in tools.py to check that all key values of a dictionary has valid tokens as keys instead of just strings. The method also now checks that each pygments style entered is both a string and a valid style definition. Before, random strings would be accepted and the xonsh shell would thro...
diff --git a/news/Fix assigning dictionary to XONSH_STYLE_OVERRIDES variable.rst b/news/Fix assigning dictionary to XONSH_STYLE_OVERRIDES variable.rst new file mode 100644 index 0000000000..f112b7dee0 --- /dev/null +++ b/news/Fix assigning dictionary to XONSH_STYLE_OVERRIDES variable.rst @@ -0,0 +1,23 @@ +**Added:** +...
3
3
0
[{"id": "G0", "claim": "The news file needs to be a valid .rst file following the format of the project's other news items.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Not all of the exception types in the except clause around _style_from_pygme...
null
xonsh__xonsh__5349
xonsh/xonsh
5,349
defect
e30dd960e2ec91b2df71ec95417a8b97645fb898
0e6731e94ce0ba06ad00d927baf7fa5e053a9a71
EnvPath methods (append, remove, add, insert) prepare the path
Closes #2468 Before: ```xsh $PATH.append(p"~/node_modules/.bin") $PATH.remove(p"~/node_modules/.bin") # ValueError $PATH.append("~/node_modules/.bin") $PATH.remove(p"~/node_modules/.bin") # ValueError $PATH.append($HOME+"/node_modules/.bin") $PATH.remove(p"~/node_modules/.bin") # ValueError $PATH.pr...
diff --git a/news/path_imp.rst b/news/path_imp.rst new file mode 100644 index 0000000000..6abbb59149 --- /dev/null +++ b/news/path_imp.rst @@ -0,0 +1,23 @@ +**Added:** + +* EnvPath shows warning if path that added does not exists. + +**Changed:** + +* EnvPath methods (append, remove, add, insert) prepare the path befor...
2
2
1
[{"id": "G0", "claim": "The new EnvPath methods should not run the existence check by default, because PATH directories are often deleted or not yet created, so the warning would fire spuriously.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A prepend m...
null
xonsh__xonsh__5366
xonsh/xonsh
5,366
defect
273f12d329797fc3108d5042f7efc982c1c4843b
12322eb0f47c3b2e8ad9948d487f83f86e6367e4
Added FuncAlias
### Goals * Make callable aliases transparent. * Catch errors in callable aliases and show the name of the source. * Show additional attributes: thredable, capturable. * Closes #5266 ## Exception ### Before ```xsh aliases['cd'] # <function xonsh.dirstack.cd> aliases['trace'] # <function xonsh.alias...
diff --git a/news/aliases_imp.rst b/news/aliases_imp.rst new file mode 100644 index 0000000000..c694bbefcd --- /dev/null +++ b/news/aliases_imp.rst @@ -0,0 +1,23 @@ +**Added:** + +* Added FuncAlias to process callable aliases. + +**Changed:** + +* <news item> + +**Deprecated:** + +* <news item> + +**Removed:** + +* <ne...
6
6
3
[{"id": "G0", "claim": "Instead of adding the new FuncAliasN callable-alias classes, the same need should be handled in the existing PartialEvalAlias classes or higher up in the stack.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The same exception han...
null
xonsh__xonsh__5377
xonsh/xonsh
5,377
defect
c3a12b2a9c2958ce2a8e97a59b41f030f24cb45c
fbfd2543be0fd686f0f50fc904792048dae3871a
feat: add subproc output format, autostrip singleline output
### Motivation * To have an ability to manage the output format added ``$XONSH_SUBPROC_OUTPUT_FORMAT`` to switch the way to return the output lines. Default ``stream_lines`` to return text. Alternative ``list_lines`` to return the list of lines. Also supported custom lambda function. * Additionally the [proposal to...
diff --git a/docs/bash_to_xsh.rst b/docs/bash_to_xsh.rst index 919ef266e8..f6aae62d69 100644 --- a/docs/bash_to_xsh.rst +++ b/docs/bash_to_xsh.rst @@ -31,6 +31,9 @@ line is ``#!/usr/bin/env xonsh``. There is no notion of an escaping character in xonsh like the backslash (``\``) in bash. Single or doub...
1
1
0
[{"id": "G0", "claim": "gforsyth suggests applying the single-line newline stripping (returning lines[0].rstrip(\"\\n\") when len(lines) == 1) to the stream_lines mode as well, not only to list_lines, because the single-line case is common and users probably want the output stripped.", "category": "design", "verdict": ...
null
xonsh__xonsh__5388
xonsh/xonsh
5,388
defect
21da30e753dc0f57842e94f315f86c00ca6c3c72
e85349fc356d6d2aba68a93bf2dda516f2e1687c
Use substring for env completion and better way to sort list
### Motivation It's very annoying to search env variable exactly by lprefix. The better is to search by substring and sort results by the position of substring and then alphabetically. Closes #5386 ### Before ```xsh $TRA<Tab> # nothing ``` ### After ```xsh $TRA<Tab> # 'XONSH_TRACE_COMPLETIONS', #...
diff --git a/news/env_completion.rst b/news/env_completion.rst new file mode 100644 index 0000000000..f9af218239 --- /dev/null +++ b/news/env_completion.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* Env variable completion now uses substring. + +**Deprecated:** + +* <news item> + +**Removed:** ...
1
1
0
[{"id": "G0", "claim": "The news item should link to this PR (PR 5388), since news items contain more detail.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xonsh__xonsh__5399
xonsh/xonsh
5,399
defect
4a2cfc6415ab6fce8f0b3c9adc3a2a16cb5bc684
c23934286c73d1e8c129409c1e14346ef5ecf62a
Fixed processing exit signals and exit exception
### Before Case 1: Handler catches the exit signal and do not pass it forward. As result xonsh could be suspended by OS or crash. Also exit code is wrong. See repeatable examples with SIGHUP in https://github.com/xonsh/xonsh/issues/5381#issuecomment-2097961804. Case 2: From bash/zsh as login shell run xonsh. Then...
diff --git a/news/sig_exit_fix.rst b/news/sig_exit_fix.rst new file mode 100644 index 0000000000..4cb8666afc --- /dev/null +++ b/news/sig_exit_fix.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* <news item> + +**Deprecated:** + +* <news item> + +**Removed:** + +* <news item> + +**Fixed:** + +* Fi...
2
2
1
[{"id": "G0", "claim": "The news entry should link to the issue or this pull request.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "After xonsh receives SIGHUP from another terminal it exits without restoring the terminal state, leaving the paren...
null
xonsh__xonsh__5473
xonsh/xonsh
5,473
defect
645c335fc6cf3088feb6e657b298d01929e23e55
bc8da384998acf4a236baa4c8063df5d7e807c05
Alias that returns modified command
### Motivation After deep dive into [How make sudo expand aliases?](https://github.com/xonsh/xonsh/issues/2618) I understood that we want to modify command before execution but we can't achieve this because all we can is to use callable alias to wrap the command into it. But: * Callable alias is a complex "process ...
diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 30cf8a1eaa..67b7ff92b5 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -1275,7 +1275,7 @@ functions. If you don't know what these do, you probably don't need them. Aliases -============================== +======= Another important xonsh built-in i...
8
6
0
[{"id": "G0", "claim": "The mechanism seems like a roundabout way to achieve its goal and adds one more magic word for users to remember.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sudo/alias-expansion case could be handled with an existing list ...
null
xonsh__xonsh__5491
xonsh/xonsh
5,491
defect
9e86938c4dc3aacfca989b9e474d78c69394b763
0390a62b62be60b36cc985f22d7d3b720b7661d1
Do not load `~/.xonshrc` in not interactive mode
### Motivation In #5099 was introduced the logic where all RC files are loaded in interactive and non-interactive modes. This logic is not working good for home based `~/.xonshrc` file. First of all `~/.xonshrc` is the buffer of settings focused on interactive mode. Most tools with integration with xonsh (e.g. `c...
diff --git a/docs/xonshrc.rst b/docs/xonshrc.rst index 0dda09bf6a..ae5cc25485 100644 --- a/docs/xonshrc.rst +++ b/docs/xonshrc.rst @@ -2,26 +2,30 @@ Run Control File ========================= Xonsh allows you to customize your shell behavior with run control files, called "xonshrc" files. These files are written eit...
2
2
1
[{"id": "G0", "claim": "The new lookup of the home rc file, `os.path.expanduser(\"~/.xonshrc\")`, may not work on Windows, and the reviewer asks to build the path cross-platform instead, e.g. `str((Path(\"~\") / \".xonshrc\").expanduser())`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
xonsh__xonsh__5594
xonsh/xonsh
5,594
defect
38e9397f38ad3b20d682099a434014407249a15d
86f8939ee46feee3a15573f1bbaab6467737b8e1
builtin: ``exit`` can return exit code e.g. ``exit 71``
### Motivation Closes #5593 ### After ```xsh zsh xonsh --no-rc exit 71 echo $? # 71 ``` ## For community ⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment**
diff --git a/news/exit_n.rst b/news/exit_n.rst new file mode 100644 index 0000000000..4a3955793f --- /dev/null +++ b/news/exit_n.rst @@ -0,0 +1,23 @@ +**Added:** + +* Builtin: ``exit`` can return exit code e.g. ``exit 71``. + +**Changed:** + +* <news item> + +**Deprecated:** + +* <news item> + +**Removed:** + +* <news ...
2
2
0
[{"id": "G0", "claim": "Add a test case for `exit 'foo'` or `exit('foo')` (a non-numeric exit argument) to capture that expectation and make sure it doesn't break assumptions about the type handling.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add co...
null
xonsh__xonsh__5744
xonsh/xonsh
5,744
defect
0791372f30ac89bbf5cb2078e47f842598d5206d
d70ddfc8b4ed0cc96cf3d388321b32e25c2cc689
try just using CaseSenssitiveDict from requests to see if it works
closes #5627 replaces #5633 option 1: just import `CaseInsensitiveDict` from `requests.strucures` pros: - not much typing cons: - replaces one dependency with another - requests is not typed natively so either has to be excluded from mypy, or also import `types-requests` as an additional dependency O...
diff --git a/news/remove-caseinsdict.rst b/news/remove-caseinsdict.rst new file mode 100644 index 0000000000..8d1df06b0a --- /dev/null +++ b/news/remove-caseinsdict.rst @@ -0,0 +1,23 @@ +**Added:** + +* <news item> + +**Changed:** + +* <news item> + +**Deprecated:** + +* <news item> + +**Removed:** + +* `case_insensiti...
1
1
0
[{"id": "G0", "claim": "Use requests.structures.CaseInsensitiveDict's logic directly (a single simple class) rather than pulling in the requests dependency for it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xonsh__xonsh__5786
xonsh/xonsh
5,786
defect
e7426ce70986bae22f60e48db086e9c45978897f
6041a5efbbe3d79977b7596fcb93141ac2abd406
Forward SIGHUP to child processes and process SystemExit more carefully
### Motivation Fixes #5784. ### Behavior in bash * From [bash signals](https://www.gnu.org/software/bash/manual/bash.html#Signals): "Before exiting, an interactive shell resends the SIGHUP to all jobs, running or stopped." * When a subprocess does not respond to `SIGHUP` by exiting: Bash just exits anyway an...
diff --git a/news/hup-propagation.rst b/news/hup-propagation.rst new file mode 100644 index 0000000000..6d68d93e44 --- /dev/null +++ b/news/hup-propagation.rst @@ -0,0 +1,9 @@ +**Added:** + +* SIGHUP will now be forwarded to child processes when received by the main xonsh process. +This matches the behavior of other sh...
3
1
0
[{"id": "G1", "claim": "The `import xonsh.procs.jobs` added inside the SIGHUP branch of resetting_signal_handle should be moved to the top of the file.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The new SIGHUP tests depend on bash being instal...
null
xonsh__xonsh__5941
xonsh/xonsh
5,941
defect
33390cce08838003ee2da2d1ea5d02040b865933
1715be409adb06bb9767dd032ceaf187db477ba4
feat: Keep hash (`#`) if it's part of the string in subprocess command
## Motivation Resolves #5937 with examples where hash is the part of argument: ```xsh showcmd nix shell nixpkgs#mc showcmd curl https://xon.sh/#faq-area showcmd pip install git+https://github.com/user/repo.git#egg=package showcmd npm install git+https://github.com/user/repo.git#commit ``` ## Before | cmd ...
diff --git a/xonsh/parsers/tokenize.py b/xonsh/parsers/tokenize.py index 41fa1ad60d..f782bad7df 100644 --- a/xonsh/parsers/tokenize.py +++ b/xonsh/parsers/tokenize.py @@ -266,7 +266,7 @@ def maybe(*choices): # Note: we use unicode matching for names ("\w") but ascii matching for # number literals. Whitespace = r"[ \...
2
1
1
[{"id": "G0", "claim": "Making the Comment regex require a leading space (Comment = r\" #[^\\r\\n]*\") and recognizing '#' only when preceded by a space would break comments at the start of the line.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
xonsh__xonsh__5962
xonsh/xonsh
5,962
defect
1e5bda4402f4f3257b1aa68b01cb22a8c6c4b485
2b4863bd5e9ba7f4b7f59b7f20416f7e89df5f2e
feat: allow on_command_not_found handlers to return replacement commands (#5952)
## Description Handlers for the `on_command_not_found` event can now return a replacement command to execute instead of raising an error. Fixes #5952 ## Changes - Capture return values from `on_command_not_found.fire()` - Accept `list[str]` or `tuple[str, ...]` as replacement commands - Return `None` to...
diff --git a/tests/procs/test_specs.py b/tests/procs/test_specs.py index e15d072d5d..938fe0e9da 100644 --- a/tests/procs/test_specs.py +++ b/tests/procs/test_specs.py @@ -461,6 +461,82 @@ def my_handler(cmd, **kwargs): assert not fired +def test_on_command_not_found_replacement(xession): + """Test that retu...
1
1
0
[{"id": "G0", "claim": "Add an example (e.g. a vim-to-vi fallback handler) to the on_command_not_found event description as a step toward #5964.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
xonsh__xonsh__6076
xonsh/xonsh
6,076
defect
336658ff0919f8d7bb96d581136d37d470a8fe99
3b37fa9034ea2467b0620a393e0a620841419283
feat(environ): Ability to run xonsh from existing xonsh session but with origin environment
Closes #6067 ```xsh bash xonsh --save-origin-env # Origin env saved to: $XONSH_ORIGIN_ENV_FILE # '/root/.local/share/xonsh/origin-env-2fe494b9-b474-4cbc-ab9f-6d89a8a43984.json' cat $XONSH_ORIGIN_ENV_FILE # { # "HOSTNAME": "wajdiJomaa_xonsh_save-load-origin-env", # "PYTHON_VERSION": "3.11.14", # "PW...
diff --git a/docs/aliases.rst b/docs/aliases.rst index 004dfbc508..6b4c1ff6a8 100644 --- a/docs/aliases.rst +++ b/docs/aliases.rst @@ -181,7 +181,7 @@ isolated environment (e.g. conda, mamba, homebrew). .. code-block:: console - @ which pip + @ which pip /usr/bin/pip # system pip @ which xpip ...
9
9
3
[{"id": "G0", "claim": "sessionid should be added on the session (XSH.sessionid) and history should use it from there, instead of the session deriving it from the history object.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new save/load option kwa...
null
xoolive__traffic__120
xoolive/traffic
120
defect
11e5bfe235eccf164fc59f009193d6a9113c6b5e
0a1a1fe3551c8b32f9b808ce1dbcd6e10379a556
Takeoff function
Should work in the same way as aligned on ils. Created one shape per runway of the ariport passed in argument Selected the parts of flight under airport alt + 2000ft Cliped them to each runway shape previously defined and selecting only those who have a positive mean vertical rate Selecting finally the clipped tra...
diff --git a/traffic/algorithms/navigation.py b/traffic/algorithms/navigation.py index a22b3610..e963c7c1 100644 --- a/traffic/algorithms/navigation.py +++ b/traffic/algorithms/navigation.py @@ -209,6 +209,59 @@ def on_runway(self, airport: Union[str, "Airport"]) -> Optional["Flight"]: default=None, ...
8
7
1
[{"id": "G0", "claim": "Rename the newly added `takeoff` method to `takeoff_from_runway`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the shapely and geodesy imports from inside `takeoff` to the top of the file, importing geodesy relatively as `....
null
xoolive__traffic__133
xoolive/traffic
133
defect
bc4237820b6cb976c0558cff22e502ff5937d745
89a88ea31914a1aa51f06b3263a771d319c3f6e9
Noise detection, slow taxi, and other tests for ground methods
Where should I put tests ? How should I create a dataset for flights that are used to debug and assess results ?
diff --git a/traffic/algorithms/navigation.py b/traffic/algorithms/navigation.py index d7aebb29..6f9b243b 100644 --- a/traffic/algorithms/navigation.py +++ b/traffic/algorithms/navigation.py @@ -8,10 +8,11 @@ import numpy as np import pandas as pd -from shapely.geometry import LineString, MultiLineString, Polygon +...
5
5
1
[{"id": "G0", "claim": "Document the loop over the resampled trajectory points in holding_segments (the segment-queue logic) with some explanatory comments.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The normalized value_counts in is_from_iner...
null
xoolive__traffic__144
xoolive/traffic
144
defect
05681c97440e089371e20ac2615b11c9aa73f84a
8522f4695343f2bf51f52e73350bce43050efa75
Identify taxiways for ground trajectories
the internal function get_long_twy should be moved to airports.py ?
diff --git a/traffic/algorithms/navigation.py b/traffic/algorithms/navigation.py index 5f3c98ff..74ce53c1 100644 --- a/traffic/algorithms/navigation.py +++ b/traffic/algorithms/navigation.py @@ -8,9 +8,11 @@ import numpy as np import pandas as pd +from pyproj.exceptions import CRSError from shapely.geometry import...
6
5
2
[{"id": "G0", "claim": "ground_movement_type should be a nested function inside assign_twy() rather than a standalone method.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ground_trajectory is at the moment just a placeholder doing a very basic job and ...
null
xoolive__traffic__441
xoolive/traffic
441
defect
8e19aa96ca540028ba5025e59665c626a1a30e3e
8bfc87508a2ed988eddd1866be6c784ba0743819
Interpolation Options for Trajectory Resampling
This PR adresses issue https://github.com/xoolive/traffic/issues/440. Changes made: - [x] added `interpolation_options` argument to `resample` method in `Flight`. - [x] extended documentation to include the new argument. - [x] extended the test case `test_resample_how_argument` to include a quadratic interpolat...
diff --git a/src/traffic/core/flight.py b/src/traffic/core/flight.py index 7513b08f..121fac1c 100644 --- a/src/traffic/core/flight.py +++ b/src/traffic/core/flight.py @@ -1658,6 +1658,7 @@ def resample( self, rule: str | int = "1s", how: None | str | dict[str, Iterable[str]] = "interpolate", ...
1
1
0
[{"id": "G0", "claim": "Rename the new `interpolation_options` parameter of `resample` to `interpolate_kw`, following the codebase's `_kw` naming convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xoolive__traffic__463
xoolive/traffic
463
defect
19772a6a150a56b832fc91ed27ccc633b3162874
7a3d12003e845d3f576d275ed2436498de2b69f9
New method to detect TOFF runway
Some people in Winterthur wanted a function to detect the toff runway so here is an attempt that seems to be working reasonably. It serves a different purpose than the `takeoff_from_runway` function.
diff --git a/src/traffic/core/distance.py b/src/traffic/core/distance.py index aaef42bb..660fe584 100644 --- a/src/traffic/core/distance.py +++ b/src/traffic/core/distance.py @@ -84,3 +84,18 @@ def guess_airport( f" (distance={airport.distance})" ) return airport + + +def minimal_angular_diff...
6
4
3
[{"id": "G0", "claim": "The parenthesized rewrap of the `from ..algorithms.navigation import NavigationFeatures` import is unnecessary and should be reverted to the single-line form.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The docstring o...
null
xorbitsai__inference__1168
xorbitsai/inference
1,168
defect
2f1ee95bd9781d95ab97dc0e81d37fef0c1df3ae
f3ada96298b9d5f98f25547857e3b35452b5480a
FEAT: OAuth system supports api-key
The built-in permission system now supports API key authentication. Fixes #918
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index 80aa266dfb..25ee11cc71 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -8,7 +8,7 @@ Creating a development environmen...
13
13
3
[{"id": "G0", "claim": "The token check in register_model should be `if api_key is None` instead of `if client._get_token() is None`, as in all other places.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Authorization header should only be set ...
null
xorbitsai__inference__171
xorbitsai/inference
171
defect
15aaeee7b3bc29d16ab2caea07c245e78c255933
72966ace5748d461ff8e3cc31e0e7889f24f2ddc
ENH: Implement RESTful API stream generate
Resolves #166.
diff --git a/setup.cfg b/setup.cfg index 8c1a49e68d..627bbb8d12 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,6 +34,7 @@ install_requires = pydantic fastapi uvicorn + sse_starlette [options.packages.find] exclude = diff --git a/xinference/client.py b/xinference/client.py index 2d99035cff..c3461f95...
8
8
2
[{"id": "G0", "claim": "The streaming_response_iterator helper should carry type hints.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The '[DONE]' ending message the server sends after streaming is not compatible with the OpenAI API.", "categor...
null
xorbitsai__inference__194
xorbitsai/inference
194
defect
02078355dd518ea7b9c78401be678a3f76a7d3f5
e380eb57e3fb7f278b273ab25fc54ecfd9c732ce
FEAT: Embedding
Resolves #173.
diff --git a/xinference/client.py b/xinference/client.py index b7d9c7cdfa..0010167db0 100644 --- a/xinference/client.py +++ b/xinference/client.py @@ -35,6 +35,7 @@ ChatCompletionMessage, Completion, CompletionChunk, + Embedding, ) @@ -60,6 +61,10 @@ def generate( cor...
1
1
0
[{"id": "G0", "claim": "The commented-out embedding test block that the pull request added to test_restful_api.py should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xorbitsai__inference__203
xorbitsai/inference
203
defect
5ce10e786bab561cfea2f0816aa045be017d9a9d
cc4b595e9a4875ecbc7d344b98cca14121ce6325
FEAT: LLaMA-2
Resolves #199
diff --git a/README.md b/README.md index 6e00e93414a..367c4d4e4f4 100644 --- a/README.md +++ b/README.md @@ -161,15 +161,17 @@ To view the builtin models, run the following command: $ xinference list --all ``` -| Name | Type | Language | Format | Size (in billions) | Quantization ...
2
2
2
[{"id": "G0", "claim": "The README notes below the model tables (both English and Chinese) should state that RLHF models, like the newly added llama-2-chat, provide both `generate` and `chat`, not only SFT models.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
xorbitsai__inference__2221
xorbitsai/inference
2,221
defect
865c17496e97c2c2676b583d418b347dfcde9d9d
27db3f2f4a55780f9658885c8c6d8c05adb43183
BUG: fix embedding token calculation & optimize memory
This PR did a few things. 1. Previous tokens count is wrong, this PR fixed it. 2. Clear cache after create embedding, and do it not only every some calls but also when input tokens is large (when input tokens is long, the memory will grow very quickly) 3. Support torch_dtype not only for gte-Qwen2 Fixes #2000
diff --git a/xinference/model/embedding/core.py b/xinference/model/embedding/core.py index 7ad985ff09..1ad953a236 100644 --- a/xinference/model/embedding/core.py +++ b/xinference/model/embedding/core.py @@ -19,6 +19,7 @@ from typing import Dict, List, Literal, Optional, Tuple, Union, no_type_check import numpy as n...
2
2
2
[{"id": "G0", "claim": "The pull request's CI tests fail and must be fixed before the pull request can merge.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new EMBEDDING_EMPTY_CACHE_TOKENS constant reads the wrong env var (XINFERENCE_EMBEDDING_...
null
xorbitsai__inference__2540
xorbitsai/inference
2,540
defect
e5594a5d09c172e9a6e6870a65a1e6425ad50aaf
da0395888b200d7c55d016efd6fdb9f436629c83
FEAT: support sparse vector for bge-m3
### 支持bge-m3模型的稀疏向量生成功能, 调用方式为:```model.create_embedding(text, return_sparse=True)``` ### 新增convert_ids_to_tokens方法 该方法可将token_id转换为人类可读文字,调用方式为 ``` from xinference.client import Client client = Client("http://ip:port") model = client.get_model(model_name) seq = model.convert_ids_to_tokens(key_list) ``` 该...
diff --git a/xinference/api/restful_api.py b/xinference/api/restful_api.py index ed3a2eab90..b7c732af3b 100644 --- a/xinference/api/restful_api.py +++ b/xinference/api/restful_api.py @@ -484,6 +484,16 @@ async def internal_exception_handler(request: Request, exc: Exception): else None ), ...
3
3
2
[{"id": "G0", "claim": "The Chinese code comment should be written in English.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added to verify convert_ids_to_tokens in test_embedding_models.py, testing bge-m3 manually since it is...
null
xorbitsai__inference__2637
xorbitsai/inference
2,637
defect
472c7f1e57bdf9d4e7ad8bab83af432580858d65
c50a9bafb3a8d2e4b1afba69bee9f37950d443ea
FEAT: Add support for CLIP model
Fixes #2628 . Add support for jina-clip-v2, a general-purpose multilingual multimodal embedding model for text & images.
diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index fbd7be2eff..0acaff20ff 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -162,7 +162,7 @@ jobs: ${{ env.SELF_HOST_PYTHON }} -m pip install -U "transformers" ${{ env.SELF_HOST_CONDA ...
6
6
5
[{"id": "G0", "claim": "Add the jina-clip model to xinference/model/embedding/model_spec.json and xinference/model/embedding/model_spec_modelscope.json.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a test for the CLIP model to the integrated e...
null
xorbitsai__inference__289
xorbitsai/inference
289
defect
4d5c06b0db74f127e3122f1683360e7117a0d447
3d14708cbd0359cd212bc3975ef644b79a6d5a12
FEAT: Support Ctransformers
Resolves #220
diff --git a/setup.cfg b/setup.cfg index 61f93043a20..804682f01b0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -52,6 +52,8 @@ dev = pytest-timeout>=1.2.0 pytest-forked>=1.0 pytest-asyncio>=0.14.0 + pytest-mock>=3.11.1 + ctransformers ipython>=6.5.0 sphinx>=3.0.0,<5.0.0 pydata-sphinx-the...
35
34
6
[{"id": "G0", "claim": "The ctransformers LLM runtime should not be added to the `dev` extra in setup.cfg.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Classes (and module) should be named with the library's spelling, CtransformersXXX, since t...
null
xorbitsai__inference__2944
xorbitsai/inference
2,944
defect
378a47adad8506a13105b063322ccd7a04f7ea5d
f5883b483858c568119b59f069e8a8f9ea751935
BUG: fix qwen2.5-vl-7b cannot chat bug
<img width="1920" alt="image" src="https://github.com/user-attachments/assets/1a063c89-f24c-41d8-95cb-c30e2338dd77" /> fix #2916 fix #2942 fix #2937 fix #2927
diff --git a/xinference/model/llm/tests/test_llm_model.py b/xinference/model/llm/tests/test_llm_model.py new file mode 100644 index 0000000000..b6f0eb4ba1 --- /dev/null +++ b/xinference/model/llm/tests/test_llm_model.py @@ -0,0 +1,137 @@ +# Copyright 2022-2023 XProbe Inc. +# +# Licensed under the Apache License, Versio...
1
1
1
[{"id": "G0", "claim": "The PR's change to vllm/core.py may not fix the KeyError 'reasoning_content' errors the reporter is still seeing (they report the error persisted after trying this fix).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xorbitsai__inference__2997
xorbitsai/inference
2,997
defect
1598c238f4e4e3e71a5833b24f22087a4c9962cf
0e026fbd6dfe8362209dc8bb1060a33728e8e94b
ENH: Support xllamacpp
Disabled by default, can be enabled by setting env `USE_XLLAMACPP=1`
diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index 28b50e2935d..05e7d4dba44 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -124,6 +124,7 @@ jobs: sudo rm -rf "$AGENT_TOOLSDIRECTORY" fi pip install -e ".[dev]" + ...
4
3
1
[{"id": "G0", "claim": "The new test_RESTful_client_xllamacpp skips on Windows without a stated reason - why is that skip needed?", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The code should check whether xllamacpp is installed so the llama.cpp engine...
null
xorbitsai__inference__3013
xorbitsai/inference
3,013
defect
1598c238f4e4e3e71a5833b24f22087a4c9962cf
4dcf9f541282f8cc56fb7cefe56e8513fa9aa6c3
FEAT: all engine support reasoning_content
> Model ID: deepseek-r1-distill-qwen > Model Size: 15 Billion Parameters > Model Format: pytorch > Model Quantization: none vLLM without reasoning: <img width="1512" alt="image" src="https://github.com/user-attachments/assets/b9bce835-66fb-44a1-ae59-0e9b7558653b" /> vLLM with reasoning: <img width="1512" alt...
diff --git a/xinference/core/scheduler.py b/xinference/core/scheduler.py index 703bf0a693..9740407d89 100644 --- a/xinference/core/scheduler.py +++ b/xinference/core/scheduler.py @@ -97,6 +97,9 @@ def __init__( # check the integrity of args passed upstream self._check_args() + # for reasoning...
3
3
0
[{"id": "G0", "claim": "The method `should_stream_with_reasoning_parsing` could be renamed to `prepare_parse_reasoning_content`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The function `_tool_calls_completion_chunk` is not only for tool call...
null
xorbitsai__inference__3115
xorbitsai/inference
3,115
defect
ac88d425e3d5fc12166e22c4032286327871f5f2
849448e3c2c79f1701a822958e851459b3b6f4de
BUG: fix llm stream response
1. Modify xinference/client/tests/test_client.py: For chunk where finish_reason is not None, assert that delta = {"content": ""}. 2. Modify xinference/model/llm/llama_cpp/core.py: Filter out keys in the returned results that do not belong to ChatCompletionChunk. 3. Modify xinference/model/llm/reasoning_parser.py:...
diff --git a/xinference/client/tests/test_client.py b/xinference/client/tests/test_client.py index 80636a58e5..7c187aa676 100644 --- a/xinference/client/tests/test_client.py +++ b/xinference/client/tests/test_client.py @@ -83,6 +83,7 @@ def _check_stream(): generate_config={"stream": True, "max_tokens": 5}...
3
3
0
[{"id": "G0", "claim": "Remove the print(chunk) debug statement from the streaming test loop.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an explanatory comment for the chunk-key filtering, e.g. that the chunk may contain keys like system...
null
xorbitsai__inference__320
xorbitsai/inference
320
defect
f812f178dffaae03a869f0fa598c0d5b1240cb67
87771868939bc619228597f2a99cf993a5d04a97
ENH: Include model revision
Resolves #317 For GGML Model, all Model Revision are set to null for placeholder (later changes may appear and thus may change the revision) For Pytorch Model, all revision are currently set to the latest commit on HuggingFace.
diff --git a/xinference/model/llm/llm_family.json b/xinference/model/llm/llm_family.json index ae481f2245e..7aaa0a0bd31 100644 --- a/xinference/model/llm/llm_family.json +++ b/xinference/model/llm/llm_family.json @@ -31,7 +31,8 @@ "q8_0" ], "model_id": "TheBloke/baichuan-llama-7B-GGML", - ...
1
1
0
[{"id": "G0", "claim": "Explicitly specifying \"model_revision\": null (as added on the vicuna-33B GGML entry and other specs in llm_family.json) is unnecessary and should not be added.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
xorbitsai__inference__3241
xorbitsai/inference
3,241
defect
c70ea74fa820a613f8d577047ef1818da20a96b3
a3c011503612fea6ec2cf8875e2ea9dc61336121
FEAT: Support virtualenv for models
This PR has some prerequisites. * https://github.com/xorbitsai/xoscar/pull/130 * #3233 This PR tried to introduce libraries in virtualenv. e.g. Some models like GOT_OCR2 rely on older version of transformers etc, when we or users upgrade these libraries, the models will break, thus we need to setup an isolat...
diff --git a/setup.cfg b/setup.cfg index 0909d405ce..3bcc4d45a0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,7 +24,7 @@ zip_safe = False include_package_data = True packages = find: install_requires = - xoscar>=0.4.4 + xoscar>=0.6.0 torch gradio pillow @@ -79,6 +79,7 @@ dev = sphinx-tabs ...
3
2
1
[{"id": "G0", "claim": "Running the PR's uv-based virtualenv feature fails with the error 'No interpreter found for executable name `miniconda3-3.12-24.9.2-0` in managed installations or search path', which the reporter suspects is a uv bug (astral-sh/uv#9088) rather than a PR bug.", "category": "correctness", "verdict...
null
xorbitsai__inference__350
xorbitsai/inference
350
defect
ddc444ec4f59bc033a6ab1921096b73e2d76c44d
a318c7c17229ab51985954b283542ea2f5c45b89
ENH: cache from URI
Resolves #337
diff --git a/doc/source/models/custom.rst b/doc/source/models/custom.rst index 63ee264420..a636a24573 100644 --- a/doc/source/models/custom.rst +++ b/doc/source/models/custom.rst @@ -7,8 +7,8 @@ Custom Models (Experimental) Custom models are currently an experimental feature and are expected to be officially released ...
2
1
0
[{"id": "G0", "claim": "The custom-model example presents model_id as a 'hugging face model ID', which could mislead readers into thinking it must be a Hugging Face name even though for custom models it could be anything.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {...
null
xorbitsai__inference__360
xorbitsai/inference
360
defect
a7c237a1f123b31d935063d578d0dc8bf7d40482
4a7e1672b5941aa0269b3ad18e400cd11c991056
ENH: RESTful client supports custom model APIs
Resolves #355.
diff --git a/xinference/client.py b/xinference/client.py index 02b779c4d5a..19afd130430 100644 --- a/xinference/client.py +++ b/xinference/client.py @@ -763,3 +763,38 @@ def get_model(self, model_uid: str) -> RESTfulModelHandle: return RESTfulChatModelHandle(model_uid, self.base_url) else: ...
2
2
1
[{"id": "G0", "claim": "Docstrings should be added to the new custom model client APIs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The custom model endpoints should be moved from /v2 to the suggested /v1/model_registrations RESTful scheme (POS...
null
xorbitsai__inference__374
xorbitsai/inference
374
defect
302eca96dc63611f24b0625e80f4e6387fb6981d
868887a691f20f78a6266e17aa05400f10a7b2a0
ENH: including default context length into model family
Resolves #323 Expected Effect: <img width="599" alt="Screenshot 2023-08-21 at 15 18 27" src="https://github.com/xorbitsai/inference/assets/102875484/52f4ff7d-abff-45d7-bff9-55165b615d84">
diff --git a/doc/source/models/custom.rst b/doc/source/models/custom.rst index 2a9850d827..5da532884c 100644 --- a/doc/source/models/custom.rst +++ b/doc/source/models/custom.rst @@ -14,6 +14,7 @@ Define a custom model based on the following template: { "version": 1, + "context_length": 2048, "mod...
1
1
0
[{"id": "G0", "claim": "Please update the docstring of describe_model in client.py to document the newly added context_length field.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
xorbitsai__inference__3768
xorbitsai/inference
3,768
defect
b3bc56ee6747e30875854191ad1c8eba906f5dba
dd39a7b3c099868416a322ef64acbd2dfdba00c8
BUG: resolve issue where AI output was lost when no tool was selected for function call #3767
fix #3767 修复后响应结果如下: ![image](https://github.com/user-attachments/assets/b2f1fc07-82a4-4a11-983f-3bde28eed0e4)
diff --git a/xinference/model/llm/utils.py b/xinference/model/llm/utils.py index 2953e9870b..f55e836818 100644 --- a/xinference/model/llm/utils.py +++ b/xinference/model/llm/utils.py @@ -560,23 +560,33 @@ def _handle_qwen_tool_result(cls, text: str) -> List[Tuple]: def split_into_blocks(text: str) -> list[str]...
2
2
1
[{"id": "G0", "claim": "Change the Chinese comments in _handle_qwen_tool_result (and the other comments) to English.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add tests to make sure everything about parsing tools is on track.", "category": "t...
null
xorbitsai__inference__3965
xorbitsai/inference
3,965
defect
7a1eb0bb22c65829874fe9fd788d51e089b48b43
ea13fbb455c4b2630c1886687b3088321cba6fee
FEAT: [embedding] support `dimensions` for embedding
sup sentence_transformer truncate_dim for jina-embedding-v3 Fixes #3493
diff --git a/xinference/model/embedding/flag/core.py b/xinference/model/embedding/flag/core.py index 1ae1765b0c..87976d5186 100644 --- a/xinference/model/embedding/flag/core.py +++ b/xinference/model/embedding/flag/core.py @@ -58,6 +58,9 @@ def __init__( self._return_sparse = return_sparse def load(self...
2
2
0
[{"id": "G0", "claim": "The embedding parameter should be named `dimensions` to match the standard API (as in #3761) rather than `truncate_dim`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `dimensions` guard in the Flag and LlamaCpp embedders' `lo...
null
xorbitsai__inference__4000
xorbitsai/inference
4,000
defect
064737652256a66c097a4495e238ff377633b3af
090a45a854b74d8b73fa2d7473e4fb05815b4bda
FEAT: Support Custom vllm embedding dim
Fix #3761
diff --git a/xinference/model/embedding/vllm/core.py b/xinference/model/embedding/vllm/core.py index 5b63c75874..53d3b9816f 100644 --- a/xinference/model/embedding/vllm/core.py +++ b/xinference/model/embedding/vllm/core.py @@ -25,7 +25,6 @@ class VLLMEmbeddingModel(EmbeddingModel): - def __init__(self, *args,...
1
1
1
[{"id": "G0", "claim": "The new `normalize=normalize_embedding` argument of PoolingParams is only supported since vLLM 0.10.1, so the author should consider compatibility for users still on older vLLM versions.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
xorbitsai__inference__4227
xorbitsai/inference
4,227
defect
a18fbe90d6b657275bdb7fe7ba5904e3119fe893
074e431bdf910dd6fdaf66e7ab3e80a96f8828a9
FEAT: Add support of rerank model for llamacpp
This pull request adds support of rerank model for llamacpp backend. The support of rerank model of xllamacpp was introducted in [this pull](https://github.com/xorbitsai/xllamacpp/pull/82) since v0.2.2.
diff --git a/xinference/model/rerank/__init__.py b/xinference/model/rerank/__init__.py index f5b02f82ba..5cf1098932 100644 --- a/xinference/model/rerank/__init__.py +++ b/xinference/model/rerank/__init__.py @@ -19,7 +19,7 @@ from typing import Any, Dict, List from ...constants import XINFERENCE_MODEL_DIR -from ..ut...
2
1
0
[{"id": "G0", "claim": "The models touched by this PR should be registered into the online model hub.", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out RerankSpecV1 class left in xinference/model/rerank/core.py is useless code and can be r...
null
xorbitsai__inference__678
xorbitsai/inference
678
defect
5b8d7146de1c43772bc99c0163d3ac50a0bf85a0
9d8f156f69d57fabd811e277a96af477dd06a4be
FEAT: Xverse
Fix #612 Add support for verse models. Successfully tested on a local V100 setup for the chat and complentation.
diff --git a/doc/source/models/builtin/index.rst b/doc/source/models/builtin/index.rst index a4bfb256c8..564399cf70 100644 --- a/doc/source/models/builtin/index.rst +++ b/doc/source/models/builtin/index.rst @@ -19,6 +19,7 @@ Text Generation Models - :ref:`OPT <models_builtin_opt>` - :ref:`Yi <models_builtin_Yi>` - :...
5
5
4
[{"id": "G0", "claim": "The over- and underlines of the titles and section separators in xverse-chat.rst and xverse.rst should be kept the same length as the text they adorn.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The launch command that t...
null
xoriors__rencfs__296
xoriors/rencfs
296
defect
ca8f6f575b498c58acac568de2bfb1fdefa17ec4
590a820e25dd0fab95af4bd261afb22d9e66c306
[#112] Use walkdir for read_dir
## Title [#112] Use walkdir for read_dir ## Description Move the read part from `read_dir` and `read_dir_plus` to `create_directory_entry_iterator` and `create_directory_entry_plus_iterator` and use `walkir` instead of `read_dir`. Files modified: encryptedfs.rs, Cargo.toml Fixes # (issu...
diff --git a/Cargo.toml b/Cargo.toml index f1ff759a..7b074c27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,6 +58,7 @@ subtle = "2.6.1" bon = "3.3.0" shush-rs = "0.1.10" criterion = { version = "0.5.1", features = ["html_reports"] } +walkdir = "2" [target.'cfg(target_os = "linux")'.dependencies] fuse3 = { vers...
2
2
1
[{"id": "G0", "claim": "WalkDir entries whose read fails should not be silently skipped by filter_map(|e| e.ok()) — errors should be propagated instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on read_dir_plus should use /// i...
null