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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
alibaba__xquic__515 | alibaba/xquic | 515 | defect | 07222df91475612884f6ed129986249f2a0f8bda | c544e53ad62556dc44c7ce5102dc169e8eafd893 | Feat:add ext for audio and video frame | TEST: with moq_demo_audio_server and moq_demo_client
# moq/demo/moq_demo_client -n 5
option frame num :5
/src/xquic-ali/moq/demo/xqc_moq_demo_client.c:522 (xqc_client_conn_create_notify)
/src/xquic-ali/moq/demo/xqc_moq_demo_client.c:582 (xqc_client_conn_handshake_finished)
/src/xquic-ali/moq/demo/xqc_moq_demo_cl... | diff --git a/include/moq/xqc_moq.h b/include/moq/xqc_moq.h
index 71b68fa41..3a4c5cda4 100644
--- a/include/moq/xqc_moq.h
+++ b/include/moq/xqc_moq.h
@@ -21,6 +21,8 @@ typedef struct {
uint64_t timestamp_us;
uint8_t *video_data;
uint64_t ... | 7 | 7 | 3 | [{"id": "G0", "claim": "Change `if(object->extension_header_len > 0)` to `if (object->extension_header_len > 0)` in `xqc_moq_msg_encode_object_stream_ext_len` to keep the codebase's `if (` style.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Change `if(o... | null |
alibaba__zvec__116 | alibaba/zvec | 116 | defect | 66673b559e160ecc8502fbcf605d0e9f33a55f5a | 9a8e3f895cec1e24b1c95cb02967f65dbee6fc84 | feat(ci): integrate clang-tidy for changed C/C++ files | ## Summary
- add repository-level .clang-tidy with a minimal enforceable check set
- add .github/workflows/clang_tidy.yml to run on C/C++ and CMake-related changes
- configure CMake to export compile_commands.json and run clang-tidy on changed C/C++ files only
- fail CI for clang-tidy findings via --warnings-as-err... | diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000000..fd89a7f9a5
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,11 @@
+Checks: >
+ -*,
+ clang-analyzer-*,
+ bugprone-*,
+ performance-*,
+ modernize-use-nullptr,
+ modernize-use-override
+WarningsAsErrors: "*"
+HeaderFilterRegex: "^(src|tests|to... | 6 | 4 | 3 | [{"id": "G0", "claim": "The GitHub Actions expression ${{ steps.changed_files.outputs.all_changed_files }} interpolated into a Python triple-quoted string can be closed early by a changed-file path containing triple quotes, allowing arbitrary Python code injection from PR authors; the value should be passed via an envi... | null |
alibaba__zvec__164 | alibaba/zvec | 164 | defect | 0d84e30dd31cfff660cd4ed5d13094130546152e | 89bae605f92f6bf3f2947f938e5c6b5255b8793a | feat: add Python 3.13 and 3.14 support | ## Summary
Add Python 3.13 and 3.14 support to zvec.
## Changes
### `pyproject.toml`
- Add `Programming Language :: Python :: 3.13` and `3.14` classifiers
- Add `cp313-*` and `cp314-*` to cibuildwheel build targets
### `.github/workflows/main.yml`
- Add Python 3.13 and 3.14 to CI test matrix (`python-version: ['3.1... | diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index a045c6d67a..a3285136b9 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -70,13 +70,14 @@ jobs:
# Build and test matrix (parallel execution)
build-and-test:
- name: Build & Test (${{ matrix.platform }})
+ ... | 4 | 3 | 0 | [{"id": "G0", "claim": "Restrict the pull request to only the pyproject.toml and workflow file changes (dropping the other modifications such as benchmark scripts, docs and test files).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The PR title cl... | null |
alibaba__zvec__188 | alibaba/zvec | 188 | defect | 44fd16511fca9a0996b973823947a079e12e0a6d | 9c07ff9036acb03e714b945354d9680756b54762 | feat: add euclidean one2many | add euclidean one2many
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
This PR introduces Euclidean one-to-many batch distance kernels (`EuclideanDistanceBatch` and `SquaredEuclideanDistanceBatch`) for FP32 and FP16 across AVX2, AVX512F, and AVX512FP16 ISA tiers, wires them into `EuclideanMetric::batch_distance(... | diff --git a/src/ailego/math/matrix_utility.i b/src/ailego/math/matrix_utility.i
index 34951478c..8ae3e2455 100644
--- a/src/ailego/math/matrix_utility.i
+++ b/src/ailego/math/matrix_utility.i
@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
... | 11 | 9 | 5 | [{"id": "G0", "claim": "The AVX512F masked tail of the fp32 one-to-many kernel computes query*data + acc (an inner product) instead of (query - data)^2 + acc via _mm512_mask3_fmadd_ps, so any dimensionality that is not a multiple of 16 would silently produce wrong squared distances.", "category": "correctness", "verdic... | null |
alibaba__zvec__208 | alibaba/zvec | 208 | defect | 3bd1999604dc95d21781a1d841d3b0ec45b3fb04 | ec10246a1bf4039ad6eceb5257e69d9523a1f467 | fix: clean up crash residue | <!-- greptile_comment -->
<h3>Greptile Summary</h3>
This PR introduces crash-residue cleanup logic: before constructing a `VectorColumnIndexer` or `MemForwardStore`, it now detects and removes pre-existing files that are likely left over from a previous crash. It also ships a new `crash_recovery` test suite (a data-g... | diff --git a/src/db/index/segment/segment.cc b/src/db/index/segment/segment.cc
index 517215a3e..2d03cd78a 100644
--- a/src/db/index/segment/segment.cc
+++ b/src/db/index/segment/segment.cc
@@ -3939,6 +3939,14 @@ VectorColumnIndexer::Ptr SegmentImpl::create_vector_indexer(
memory_vector_block_ids_[field_name] = blo... | 3 | 1 | 1 | [{"id": "G0", "claim": "The return values of FileHelper::RemoveFile at segment.cc:3947 and :3974 are ignored, so if removal fails execution silently continues and the indexer/store is constructed on top of the crash-residue file, which could produce a corrupted index.", "category": "correctness", "verdict": "uncertain"... | null |
alibaba__zvec__213 | alibaba/zvec | 213 | defect | 23ca093fc78509a17f89da26738a83cf2487da1d | 7dfac9c26fbcf969921283466addd139f4c9dad9 | feat: enable icelake and l2 batch distance for int8 quantization. | <!-- greptile_comment -->
<h3>Greptile Summary</h3>
This PR extends INT8 quantization support to Intel IcelAke CPUs by wiring up VNNI-based `InnerProductDistanceBatch` for the `SquaredEuclidean` metric, expanding the per-vector extra storage from 16 → 20 bytes (or 20 → 24 for cosine) to accommodate a new `int8_sum` f... | diff --git a/cmake/option.cmake b/cmake/option.cmake
index 01388564ea..f9c531702a 100644
--- a/cmake/option.cmake
+++ b/cmake/option.cmake
@@ -9,6 +9,7 @@ option(ENABLE_HASWELL "Enable Intel Haswell CPU microarchitecture" OFF)
option(ENABLE_BROADWELL "Enable Intel Broadwell CPU microarchitecture" OFF)
option(ENABLE_S... | 4 | 2 | 1 | [{"id": "G0", "claim": "The BatchSize for SquaredEuclidean INT8 was reduced from 12 to 2, a claimed 6x per-iteration throughput regression for L2 batch distance, and the constraint behind it (if any) should be documented or BatchSize restored to 12 to match the other INT8 metrics.", "category": "performance", "verdict"... | null |
alibaba__zvec__223 | alibaba/zvec | 223 | defect | d1e0c7b88e48f5b9eb4bbb39b80eeaa20d0a7e90 | 8e7afa158e0066bb638296dbedb01eb9271fce88 | fix: use per-block filter instead of per-segment filter during query | <!-- greptile_comment -->
<h3>Greptile Summary</h3>
This PR fixes a correctness bug in multi-block vector search: when a segment's vector index is split across multiple blocks, each block's internal doc IDs are block-local (starting from 0), but the incoming `IndexFilter` operates on segment-level IDs. Previously, th... | diff --git a/src/db/index/column/vector_column/combined_vector_column_indexer.cc b/src/db/index/column/vector_column/combined_vector_column_indexer.cc
index 70c71d07be..14fd2193bb 100644
--- a/src/db/index/column/vector_column/combined_vector_column_indexer.cc
+++ b/src/db/index/column/vector_column/combined_vector_col... | 7 | 5 | 1 | [{"id": "G0", "claim": "BlockOffsetFilter is constructed unconditionally even when query_params.filter is null, leaving inner_filter_ as null and risking a null pointer dereference if is_filtered were ever called on it, so the construction should be moved inside the null-check guard.", "category": "correctness", "verdi... | null |
alibaba__zvec__229 | alibaba/zvec | 229 | defect | 79387c237fa5b65a747ea8a79b241b9bc7fc3056 | bdba2bfc8261eb63b41ab74b2a0cb67b840a5c5a | feat: enlarge indice size limit for sparse vectors | <!-- greptile_comment -->
<h3>Greptile Summary</h3>
This PR enlarges the maximum non-zero element count for sparse vectors from 4096 to 16384 across both the flat and HNSW sparse index implementations, and fixes a pre-existing off-by-one inconsistency where some code paths used `>=` (rejecting the boundary value) whi... | diff --git a/src/core/algorithm/flat_sparse/flat_sparse_streamer.cc b/src/core/algorithm/flat_sparse/flat_sparse_streamer.cc
index 4df83d8f75..bc5a3da176 100644
--- a/src/core/algorithm/flat_sparse/flat_sparse_streamer.cc
+++ b/src/core/algorithm/flat_sparse/flat_sparse_streamer.cc
@@ -195,8 +195,10 @@ int FlatSparseSt... | 3 | 2 | 2 | [{"id": "G0", "claim": "HnswSparseStreamer::add_impl still uses `>=`, rejecting vectors with exactly kSparseMaxDimSize non-zero elements while add_with_id_impl now accepts them, leaving the two insertion paths with different effective limits.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope... | null |
alibaba__zvec__246 | alibaba/zvec | 246 | defect | f9a5ef9432711db31a9820f7fe5368b6765bfc83 | 6e3f28f2010400ec21faa713e775ccb87cc7535d | fix: recovery from crash during optimization | <!-- greptile_comment -->
<h3>Greptile Summary</h3>
This PR introduces crash-recovery support for the `Optimize()` path: when a previous run was interrupted mid-optimization, stale index files left on disk are now detected and removed before re-creation in `SegmentImpl::create_vector_index`. It also ships a new `coll... | diff --git a/src/core/utility/buffer_storage.cc b/src/core/utility/buffer_storage.cc
index bccf07e230..52fc779ab8 100644
--- a/src/core/utility/buffer_storage.cc
+++ b/src/core/utility/buffer_storage.cc
@@ -172,7 +172,7 @@ class BufferStorage : public IndexStorage {
}
//! Open storage
- int open(const std::str... | 8 | 3 | 1 | [{"id": "G0", "claim": "The final 'verify data integrity' loop in CrashDuringOptimize calls collection->Insert() instead of fetching and comparing the documents, so the test modifies the collection and any data-integrity bug would go undetected.", "category": "testing", "verdict": "supported", "priority": "P1", "scope"... | null |
alibaba__zvec__329 | alibaba/zvec | 329 | defect | eec0526650935d3e3f8695db5d3ca0a27373e24b | 0ec8bbb30f4085d155610510e8c07633b5d8fafe | fix(quantizer): use rounded int8 values for SQ8 metadata to fix recall drop | fixes #328
Problem:
SQ8 metadata (squared_sum, sum) was computed from pre-rounded float values, causing mismatch with actual stored int8 values. On asymmetric datasets (e.g. OpenAI 1536D where |x_min| >> x_max), this leads to severe recall drop.
Solution:
Move std::round before accumulating squared_sum and sum. | diff --git a/src/core/quantizer/record_quantizer.h b/src/core/quantizer/record_quantizer.h
index b1095a2ae2..e107eebddd 100644
--- a/src/core/quantizer/record_quantizer.h
+++ b/src/core/quantizer/record_quantizer.h
@@ -44,11 +44,10 @@ class RecordQuantizer {
scale = 254 / std::max(max - min, epsilon);
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The maintainer asks the PR author to provide test data supporting the claimed SQ8 recall improvement so its impact can be assessed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alicebob__miniredis__286 | alicebob/miniredis | 286 | defect | 5bda2969aac93d31326ceb462cae1fae9222d8a2 | 9937d4a40e9aba0d478094bc9a5078b794f63e86 | Implement LPOS | Fixes #253 | diff --git a/.gitignore b/.gitignore
index 7ba06b06..8016b4be 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@
/integration/dump.rdb
*.swp
/integration/nodes.conf
+.idea/
+miniredis.iml
diff --git a/cmd_list.go b/cmd_list.go
index f3080140..46e83aa0 100644
--- a/cmd_list.go
+++ b/cmd_list.go
@@ -23,6 +23,7 @... | 1 | 1 | 1 | [{"id": "G0", "claim": "All the c.WriteError() returns in cmdLpos need to call setDirty(c) for transactions before returning, and the argument reading should be moved to before withTx (which then also needs to call setDirty(c)) so that invalid arguments inside a MULTI error immediately as Redis does.", "category": "cor... | null |
alicebob__miniredis__321 | alicebob/miniredis | 321 | defect | e5c9dd403dab1e8dc560a87f49e94b00e5fdcf03 | 1c3c2a492624f39052403e272606001ae24a4572 | Implement BLMOVE | This pull request brings support for `BLMOVE`, using existing code targeting `LMOVE` and `BRPOPLPUSH` as a reference. Half-way there I learned that there was a previous attempt: https://github.com/alicebob/miniredis/pull/269 - mine is pretty similar. | diff --git a/README.md b/README.md
index 24df8603..3ec7ea28 100644
--- a/README.md
+++ b/README.md
@@ -127,6 +127,7 @@ Implemented commands:
- RPUSH
- RPUSHX
- LMOVE
+ - BLMOVE
- Pub/Sub (complete)
- PSUBSCRIBE
- PUBLISH
diff --git a/cmd_list.go b/cmd_list.go
index 0e74373b..eb144e5f 100644
--- ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new TestBlmove subtests (and the integration tests added by this pull request) invoke LMOVE instead of BLMOVE, so they do not exercise the new command.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
alicebob__miniredis__420 | alicebob/miniredis | 420 | defect | ed06249b665d56d6d502642a392f23aa2b39fcd0 | f99d3b07e86d557a5826b7fbee0dd07088ec7105 | feat: implement WAIT command as no-op | Implements the [`WAIT` command](https://valkey.io/commands/wait/) as a no-op that always returns `0` if the syntax is respected.
## Motivation
I have started using the WAIT command in parts of my application which now prevents me from using `miniredis` to test the logic. I would just need the command not to fail to... | diff --git a/README.md b/README.md
index 710d1642..107dcb8c 100644
--- a/README.md
+++ b/README.md
@@ -57,6 +57,7 @@ Implemented commands:
- TTL
- TYPE
- UNLINK
+ - WAIT -- no-op
- Transactions (complete)
- DISCARD
- EXEC
@@ -305,8 +306,7 @@ Commands which will probably not be implemented:
- K... | 1 | 1 | 0 | [{"id": "G0", "claim": "The indentation of the README lines in this hunk looks weird and should be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
alicevision__AliceVision__1004 | alicevision/AliceVision | 1,004 | defect | e44a91fb27f7644e42efcdd1008735a842be28d4 | b39dbafa98a7dbc7bf64cb66b7ab170148a4b0c9 | [sfm] loRansac debug for PnP | Make some modifications such that loRansac work for pose from points. | diff --git a/src/aliceVision/multiview/resection/EPnPSolver.hpp b/src/aliceVision/multiview/resection/EPnPSolver.hpp
index 7ea30e62c6..6fa07ad26c 100644
--- a/src/aliceVision/multiview/resection/EPnPSolver.hpp
+++ b/src/aliceVision/multiview/resection/EPnPSolver.hpp
@@ -54,7 +54,7 @@ class EPnPSolver : public robustEst... | 3 | 2 | 1 | [{"id": "G0", "claim": "The least-squares resection solver in SfMLocalizer should be the linear DLT method; EPnP is not linear (and is more expensive than solving the least squares), so it should not replace the DLT-based solver.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ... | null |
alicevision__AliceVision__1060 | alicevision/AliceVision | 1,060 | defect | 73fef3491bdf15242e9b5faf7c75aeeede11e320 | f329501b012b0ee9f95f117b532ce5c6f6565037 | Update symbolic Bundle Adjustment | Update the symbolic bundle adjustment to be on par with updates of the classical bundle adjustment options.
| diff --git a/src/aliceVision/camera/Equidistant.hpp b/src/aliceVision/camera/Equidistant.hpp
index 3ee0a0e646..f6b1fb6208 100644
--- a/src/aliceVision/camera/Equidistant.hpp
+++ b/src/aliceVision/camera/Equidistant.hpp
@@ -70,14 +70,14 @@ class EquiDistant : public IntrinsicsScaleOffsetDisto
return EQUIDISTANT_CAM... | 8 | 7 | 0 | [{"id": "G0", "claim": "In the new Rotation3PSolver34::solve, use Mat::Index (the same type as n) for the loop variables, initialize Vec3 pn with its three components in one constructor call, prefer pre-increment, and declare U, V, G and the Mat34Model ret as const so the locals cannot be mutated.", "category": "mainta... | null |
alicevision__AliceVision__1065 | alicevision/AliceVision | 1,065 | defect | 98df3a0dde96a77f2c47e98780f6e70938015892 | f284aff727cf1c516dca5e50fdac21f72213566a | [sw] middlebury import | ## Description
It introduces a new application to import the [Middlebury dataset ](https://vision.middlebury.edu/mview/data/)(dino, temple) as a alicevision sfmdata format (abc, sfm..).
It parses the .txt file of the dataset and outputs the relevant data file format of choice.
The images are supposed to be in the sa... | diff --git a/src/aliceVision/image/io.cpp b/src/aliceVision/image/io.cpp
index ada9acffaf..8517fd3d2b 100644
--- a/src/aliceVision/image/io.cpp
+++ b/src/aliceVision/image/io.cpp
@@ -201,6 +201,12 @@ void readImageMetadata(const std::string& path, int& width, int& height, std::ma
metadata.emplace(param.name().stri... | 1 | 1 | 0 | [{"id": "G0", "claim": "The allParams help description in main_importMiddlebury.cpp should mention the Middlebury dataset URL (https://vision.middlebury.edu/mview/data).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alicevision__AliceVision__1069 | alicevision/AliceVision | 1,069 | defect | 98df3a0dde96a77f2c47e98780f6e70938015892 | 510615cd4f852aab16517e956fb83a74ea241b64 | GPS alignment from exif metadata | ## Description
It introduces another option to sfmTransform to align an existing sfmdata to the gps position available as exif metadata.
It computes the closest transformation that align the existing sfmdata to the GPS reference system (cartesian x,y,z ref system)
## Features list
* added functions to parse ex... | diff --git a/src/aliceVision/numeric/CMakeLists.txt b/src/aliceVision/numeric/CMakeLists.txt
index 97bc1278b2..e687699f0b 100644
--- a/src/aliceVision/numeric/CMakeLists.txt
+++ b/src/aliceVision/numeric/CMakeLists.txt
@@ -2,12 +2,14 @@
set(numeric_files_headers
numeric.hpp
projection.hpp
+ gps.hpp
)
# Sour... | 5 | 2 | 0 | [{"id": "G0", "claim": "The isPoseIndependant typo should be fixed before the PR is merged to avoid introducing too much review noise, as there are quite a few instances to change.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The GPS tag con... | null |
alicevision__AliceVision__1072 | alicevision/AliceVision | 1,072 | defect | fc5efafd715e28002a3dc32fbbcdc65a7debd824 | 2bccc92b3e0e57f7baf79c8f8973dc33fdae36c5 | Optical center relative to the image center | replace principal point with offset from image center in camera internal description | diff --git a/src/aliceVision/calibration/distortioncalibration_test.cpp b/src/aliceVision/calibration/distortioncalibration_test.cpp
index 983acd3aeb..13d7d39737 100644
--- a/src/aliceVision/calibration/distortioncalibration_test.cpp
+++ b/src/aliceVision/calibration/distortioncalibration_test.cpp
@@ -25,7 +25,7 @@ usi... | 4 | 3 | 1 | [{"id": "G0", "claim": "The IO files need compatibility code so that intrinsics saved by older versions (principal point relative to the top-left corner) are still read correctly after the format change.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim":... | null |
alicevision__AliceVision__1195 | alicevision/AliceVision | 1,195 | defect | 4dbf0c24bc6d6b4b8fe39abf10c0fe7bac69d01d | ebd67080640e16623ad34502fed0c88402ff261a | Improve test reproducibility | Many tests call Vec*::Random() and similar functions from Eigen, which make the tests not reproducible. This is problematic, because the tests become unstable and even if some of them sometimes fail indicating a problem, it's hard to debug and fix the failure as the exact conditions of the failing test are not known. I... | diff --git a/src/aliceVision/camera/distortion_test.cpp b/src/aliceVision/camera/distortion_test.cpp
index a8a885c96e..a9b8b6127d 100644
--- a/src/aliceVision/camera/distortion_test.cpp
+++ b/src/aliceVision/camera/distortion_test.cpp
@@ -21,6 +21,8 @@ using namespace aliceVision::camera;
//-----------------
BOOST_AU... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new function's documentation comment should use the doxygen convention used in the project (/** ... */ with @brief) instead of ///.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The generic function name should drop th... | null |
alicevision__AliceVision__1254 | alicevision/AliceVision | 1,254 | defect | 3d8ec2af086c047355f1c9f4e874e268548456df | 8bb27850ad134e80285fa69518d564dedd48ac2d | Fix wrong integer division where rounding up was intended | The intention in cases like `std::ceil(a / b)` (where `a` and `b` are integers) likely was to get floating-point division result and round it upwards. However, the division was performed with integer arguments, fractional part was lost and thus `std::ceil` did nothing. This PR introduces a separate function to perform ... | diff --git a/src/aliceVision/fuseCut/DelaunayGraphCut.cpp b/src/aliceVision/fuseCut/DelaunayGraphCut.cpp
index 4dd7e9643c..b5d91cdd5b 100644
--- a/src/aliceVision/fuseCut/DelaunayGraphCut.cpp
+++ b/src/aliceVision/fuseCut/DelaunayGraphCut.cpp
@@ -958,8 +958,8 @@ void DelaunayGraphCut::addMaskHelperPoints(const Point3d ... | 2 | 2 | 1 | [{"id": "G0", "claim": "divideRoundUp() does not round up correctly for negative operands (e.g. divideRoundUp(-24, 10) gives -1 where ceil gives -2), and the reviewer suggests wrapping std::ceil() instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
alicevision__AliceVision__1276 | alicevision/AliceVision | 1,276 | defect | d4e7cfc57a70bcf1bb9c3ecd5505011cb2da464e | dcdaab6b9008223e50073c1e53d17b09ef34a603 | Resurrect hdr test | The `hdr` has been disabled in 5994701a00816836613b7a63b189aa8b4311d37d and bitrot a bit since. This PR resurrects the test. A bit of digging into history was needed (e.g. taking `extractSamplesGroups` from 7b1ace3584c3fe43ca1a283c8d9045a082e1fc2a), but in the end the test completes successfully.
The test takes a wh... | diff --git a/src/aliceVision/hdr/CMakeLists.txt b/src/aliceVision/hdr/CMakeLists.txt
index 15d21834a7..296688c8d1 100644
--- a/src/aliceVision/hdr/CMakeLists.txt
+++ b/src/aliceVision/hdr/CMakeLists.txt
@@ -37,4 +37,16 @@ alicevision_add_library(aliceVision_hdr
)
# Unit tests
-#alicevision_add_test(hdr_test.cpp ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Avoid 'using namespace' in the new test header and make explicit that its functions are for tests, e.g. via a namespace or the function names.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test filenames should u... | null |
alicevision__AliceVision__1281 | alicevision/AliceVision | 1,281 | defect | 439f10d8e38f764caac629ef8e27553904cc8bd7 | ab47199a5da1f150df40a9dad2abc00ad6caa5cb | Reuse image pair io functionality | This PR intends to prevent https://github.com/alicevision/AliceVision/issues/1279 from happening again until functional tests for full pipeline are written.
The root cause of https://github.com/alicevision/AliceVision/issues/1279 was that `operator<<` was used in a place where exact file format is expected. It's har... | diff --git a/src/aliceVision/imageMatching/ImageMatching.cpp b/src/aliceVision/imageMatching/ImageMatching.cpp
index 8ac767da86..a51ace317b 100644
--- a/src/aliceVision/imageMatching/ImageMatching.cpp
+++ b/src/aliceVision/imageMatching/ImageMatching.cpp
@@ -24,20 +24,6 @@ std::ostream& operator<<(std::ostream& os, con... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new ImagePairListIO code should be wrapped in a namespace named after the module (matchingImageCollection), per the rule applied everywhere.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alicevision__AliceVision__1302 | alicevision/AliceVision | 1,302 | defect | 31fbb5ff156b7ad8cf87c3ccd2e7195998645840 | 8930fcd60f05a2f50595e42082cf0726f8044eb1 | Replace command line parsing code with a class to factorize | ```c
CmdLine cmdline("AliceVision prepareDenseScene");
cmdline.add(requiredParams);
cmdline.add(optionalParams);
if (!cmdline.execute(argc, argv))
{
return EXIT_FAILURE;
}
| diff --git a/src/aliceVision/system/cmdline.hpp b/src/aliceVision/system/cmdline.hpp
index dd063a0ae9..6a97786ed3 100644
--- a/src/aliceVision/system/cmdline.hpp
+++ b/src/aliceVision/system/cmdline.hpp
@@ -13,6 +13,8 @@
#include <boost/program_options/variables_map.hpp>
#include <boost/program_options/option.hpp>
#... | 1 | 1 | 0 | [{"id": "G0", "claim": "The private member `allParams` should be renamed to `_allParams` to follow the underscore naming convention for private members.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
alicevision__AliceVision__1340 | alicevision/AliceVision | 1,340 | defect | 8b0426492014ae0c986297764244731f85a2bcbd | 0fcc89533eb07d0917552c225e8e530668205a70 | Add option to apply DCP metadata in imageProcessing |
<!-- Checklist before submission:
- I have read the [contribution guidelines](../CONTRIBUTING.md).
- I have updated the documentation, if applicable.
- I have ensured that the change is tested somewhere.
- I have followed the prevailing code style (for history readability and limit conflicts for maintainanc... | diff --git a/src/aliceVision/image/dcp.cpp b/src/aliceVision/image/dcp.cpp
index 8950196cca..6f9d7a312e 100644
--- a/src/aliceVision/image/dcp.cpp
+++ b/src/aliceVision/image/dcp.cpp
@@ -2201,6 +2201,73 @@ void DCPProfile::getMatricesAsStrings(const std::string& type, std::vector<std::
}
}
+void DCPProfile::set... | 2 | 2 | 1 | [{"id": "G0", "claim": "Use std::stoi instead of atoi when parsing the DCP matrix numbers, because atoi does not throw on failure and has undefined behavior on invalid input.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new applyLinear overloa... | null |
alicevision__AliceVision__1410 | alicevision/AliceVision | 1,410 | defect | f53faf201e275b08feabde16b43e50552449a200 | b361c4ee933ecde20050524da26dd614149d485e | Move cmdline from system to dedicated module | Move command line management code from alicevision_system to the new module alicevision_cmdline.
Avoid polluting alicevision_system with cmdline libraries | diff --git a/src/aliceVision/CMakeLists.txt b/src/aliceVision/CMakeLists.txt
index aa0c15d2dd..a5e6e51d70 100644
--- a/src/aliceVision/CMakeLists.txt
+++ b/src/aliceVision/CMakeLists.txt
@@ -3,6 +3,7 @@
add_subdirectory(image)
add_subdirectory(numeric)
add_subdirectory(system)
+add_subdirectory(cmdline)
add_subdire... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment line ends with a garbled, unrenderable character after '45' and should read 'centered and rotated by 45 degree.' as the suggestion proposes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
alicevision__AliceVision__1472 | alicevision/AliceVision | 1,472 | defect | 988420bdee3a9686153a50490440f569f86da350 | 2746219d2da2fa1440adb06f7edfabfade5ed124 | Pose3 internal representation | Current pose3 is internally represented by a rotation matrix and a center (the inverse of the translation).
I propose to change its internal representation with an homogeneous transformation.
The objective is to be able to directly use a sfmData as the internal storage of the bundle adjustment. The next version (... | diff --git a/src/aliceVision/geometry/CMakeLists.txt b/src/aliceVision/geometry/CMakeLists.txt
index 762a3de543..73f1c849ce 100644
--- a/src/aliceVision/geometry/CMakeLists.txt
+++ b/src/aliceVision/geometry/CMakeLists.txt
@@ -5,6 +5,7 @@ set(geometry_files_headers
Pose3.hpp
rigidTransformation3D.hpp
Sim... | 10 | 10 | 0 | [{"id": "G0", "claim": "Prefer in-class member initialization for _homogeneous and a defaulted default constructor instead of an empty constructor body.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The copyright year of Pose3.hpp should not be updated ... | null |
alicevision__AliceVision__1896 | alicevision/AliceVision | 1,896 | defect | 652eca2d8220ee2da6b6cd4afc943a6d1c540746 | cf31ad55c4c14716e19a8999d29de597f5a243de | landmarks can now be defined with respect to a camera geometric frame instead of the world geometric frame | A new parameter to landmarks is added "referenceViewId".
For a landmark, if this parameter is not UndefinedIndexT, this is considered as the reference view index for this landmark.
In this case, the landmark coordinates will be considered to be **relative to the reference view geometric frame**.
| diff --git a/src/aliceVision/geometry/CMakeLists.txt b/src/aliceVision/geometry/CMakeLists.txt
index 237be837f8..9a65eb7565 100644
--- a/src/aliceVision/geometry/CMakeLists.txt
+++ b/src/aliceVision/geometry/CMakeLists.txt
@@ -5,7 +5,6 @@ set(geometry_files_headers
lie.hpp
Pose3.hpp
rigidTransformation3D... | 6 | 5 | 3 | [{"id": "G0", "claim": "The pull request needs a unit test validating the new behavior on simple generated data.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The name updateFromExternal is too generic for a function that contains a check related to th... | null |
alicevision__AliceVision__1928 | alicevision/AliceVision | 1,928 | defect | 2f7b34fdf324e918faeaa80e1d5f1797e42eee53 | d3b8005680a6570951f7f98b15e21d605d32648d | Enhancement of feature matching processing distribution amongs available chunks | - Cleanup loading and saving of pairs of indices (Output of ImageMatching)
- Removed the "stream" version as they were never used
- Cleanup exhaustive generation of pairs of indices (used if no imageMatching output)
- Removed the obligation that pair.first < pair.second in the loaded file. This enable to have ... | diff --git a/meshroom/aliceVision/FeatureMatching.py b/meshroom/aliceVision/FeatureMatching.py
index 60b926c57d..21cb0b47c4 100644
--- a/meshroom/aliceVision/FeatureMatching.py
+++ b/meshroom/aliceVision/FeatureMatching.py
@@ -8,7 +8,7 @@ class FeatureMatching(desc.AVCommandLineNode):
commandLine = "aliceVision_fe... | 13 | 8 | 3 | [{"id": "G0", "claim": "When rangeComputation() returns false the code still logs and uses chunkStart/chunkEnd (possibly uninitialized, risking incorrect filtering or crashes) and keeps running the pipeline (loading regions for nothing), so it should return early (e.g. EXIT_SUCCESS) in that branch.", "category": "corre... | null |
alicevision__AliceVision__1956 | alicevision/AliceVision | 1,956 | defect | 8a55d650c8b12180efa0c6ff22d22685aa83f2a5 | 74f52fcaf7442ca8373ad5678d823e15cc4f70b8 | Temporal filtering of the camera poses | ## Features list
This pull request introduces a new feature to the AliceVision pipeline: a temporal filtering tool for Structure-from-Motion (SfM) camera poses. It also extends the utility to generate sample scenes. The most important changes are grouped below.
**New temporal filtering functionality for SfM:**
*... | diff --git a/meshroom/aliceVision/SampleScene.py b/meshroom/aliceVision/SampleScene.py
new file mode 100644
index 0000000000..a8f00780b1
--- /dev/null
+++ b/meshroom/aliceVision/SampleScene.py
@@ -0,0 +1,44 @@
+__version__ = "1.0"
+
+from meshroom.core import desc
+from meshroom.core.utils import VERBOSE_LEVEL
+
+
+cla... | 9 | 7 | 3 | [{"id": "G0", "claim": "The `indexing` namespace is used without being included, which will cause a compilation error unless it is defined elsewhere in the included headers.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The assert() validation chec... | null |
alicevision__AliceVision__1963 | alicevision/AliceVision | 1,963 | defect | 84f4d048631ec621e49134c36f8f0f3736e8eaa8 | 3f1fb25d86a699938b4b537e6a35f5515a6fdeec | Moving poses to shared pointers | This pull request refactors how camera poses are accessed and iterated throughout the codebase, standardizing the use of the new `valueRange()` iterator and the `assign` method for pose insertion.
It also replaces many direct accesses to the poses map with the safer and more consistent `getAbsolutePose` method.
*... | diff --git a/src/aliceVision/keyframe/KeyframeSelector.cpp b/src/aliceVision/keyframe/KeyframeSelector.cpp
index 6dc6bfc763..e24e849119 100644
--- a/src/aliceVision/keyframe/KeyframeSelector.cpp
+++ b/src/aliceVision/keyframe/KeyframeSelector.cpp
@@ -1303,7 +1303,7 @@ bool KeyframeSelector::writeSfMDataFromSfMData(cons... | 4 | 1 | 0 | [{"id": "G0", "claim": "The clone() method returns a raw pointer created with new, risking memory leaks; copilot suggests returning a CameraPose::sptr via std::make_shared instead.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The structured-bindin... | null |
alicevision__AliceVision__202 | alicevision/AliceVision | 202 | defect | 312c067013bf373fff52697eba102e27a9a2f556 | 0f11aee46c2cd481dbdf46981308b98ff90acffd | Fix align reconstructions and re-compute UID option | - [X] fix bug connected to poparteu/openMVG#201
- [X] add an option to `ConvertSfM_DataFormat` to re-compute the UID, useful in case of legacy reconstructions that were not using UIDs.
Other spur of the moment fix/features
- [X] also fix cmake bug, using `BOOST_LIBRARIES` instead of `Boost_LIBRARIES` connected to popa... | diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 67bc905f13..032fa03d7f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -426,7 +426,7 @@ IF(OpenMVG_USE_BOOST)
add_definitions(-DBOOST_NO_CXX11_SCOPED_ENUMS)
endif(BOOST_NO_CXX11)
include_directories(${Boost_INCLUDE_DIRS})
- l... | 7 | 7 | 1 | [{"id": "G0", "claim": "getMatchData() should return a const sfm::Image_Localizer_Match_Data& instead of a copy of the struct.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment holding the imaged points should use /// so it appears in the doxyge... | null |
alicevision__AliceVision__2050 | alicevision/AliceVision | 2,050 | defect | 5f6cc5e1e8c24d67ae40bc161ccbcd116472b200 | 07d335973f4dfa2a5cd8bdc96f0454b9c4776b8e | Using mesh and associated survey points in the tracking process | This pull request introduces several improvements and new features to the bundle adjustment and mesh intersection components, with a focus on supporting mesh-based constraints, handling survey points more robustly, and enabling pose locking for injected poses. The most notable changes include new cost functions for mes... | diff --git a/meshroom/aliceVision/SfMPoseInjecting.py b/meshroom/aliceVision/SfMPoseInjecting.py
index 037e4ad029..0c594f3d01 100644
--- a/meshroom/aliceVision/SfMPoseInjecting.py
+++ b/meshroom/aliceVision/SfMPoseInjecting.py
@@ -44,6 +44,12 @@ class SfMPoseInjecting(desc.AVCommandLineNode):
value="EulerZ... | 33 | 19 | 8 | [{"id": "G0", "claim": "#pragma once should be placed at the top of meshIntersect.hpp before the #include directives instead of after them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The eraseLandmarksWithMissingReferenceView lambda captures... | null |
alicevision__AliceVision__2069 | alicevision/AliceVision | 2,069 | defect | e45482077a5a45f9e807980367525d7b61f9fbf5 | fb306617bc4f4b5d623153e6afc1bbe8903277b0 | New heuristic for sfm Expansion | - New heuristic : ExpansionProcess first iterate in a normal mode. When the last iteration produces no change, and the sfmData is not fully reconstructed, then we continue to iterate but in a tryHard mode.
- In normal mode, the sfm filter will remove the views with a number of observed landmarks twice larger than in t... | diff --git a/src/aliceVision/sfm/pipeline/expanding/ExpansionChunk.cpp b/src/aliceVision/sfm/pipeline/expanding/ExpansionChunk.cpp
index 1fc51dfe35..0ce32b7fee 100644
--- a/src/aliceVision/sfm/pipeline/expanding/ExpansionChunk.cpp
+++ b/src/aliceVision/sfm/pipeline/expanding/ExpansionChunk.cpp
@@ -13,7 +13,7 @@ namespa... | 9 | 7 | 2 | [{"id": "G0", "claim": "The new public behavior SfMData::isFullyReconstructed is not covered by unit tests, and a test should be added that builds an SfMData with a mix of reconstructed and unreconstructed views and asserts the expected true/false results.", "category": "testing", "verdict": "supported", "priority": "P... | null |
alicevision__AliceVision__358 | alicevision/AliceVision | 358 | defect | fdf93c6e21adbaa44bc8e494c556142cfb1cdb40 | df7abf46ea0b5fffa39e330facbc7afc655d4b6b | Remove Cereal | ## Features list
- [x] Remove `Cereal`
- [x] Use relative path for `featuresFolders` and `matchesFolders`
- [x] Add `defaultFieldOfView` option in `cameraInit` software
#### AliceVision now require Boost (>= 1.60.0)
#### Travis use Boost 1.61.0 & OpenImageIO (master 22/02/2018) | diff --git a/.gitmodules b/.gitmodules
index 85c7260960..73795b6675 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,3 @@
[submodule "src/dependencies/osi_clp"]
path = src/dependencies/osi_clp
url = https://github.com/alicevision/osi_clp.git
-[submodule "src/dependencies/cereal"]
- path = src/dependencies/cer... | 3 | 3 | 0 | [{"id": "G0", "claim": "The empty-bodied Landmark default constructor should be written as `Landmark() = default`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "WordFrequency's default constructor should be `= default` with its members defaul... | null |
alicevision__AliceVision__410 | alicevision/AliceVision | 410 | defect | dd7c8201880467785a7f2bd46fe670bb236e489b | 7772b3fdeb22cbc64802c18e425e360e8a0d7861 | Add more options to the SfM pipeline | ## Description
Add small features in order to give more flexibility / possibilities to the structure from motion pipeline.
## Features list
- [x] Add support for multiple features and matches folders
- [x] Add a new class enum `EGeometricModel` for geometric model
- [x] Allow the combination of multiple geom... | diff --git a/src/aliceVision/feature/ImageDescriber.cpp b/src/aliceVision/feature/ImageDescriber.cpp
index 897094a32a..9ea8e8365b 100644
--- a/src/aliceVision/feature/ImageDescriber.cpp
+++ b/src/aliceVision/feature/ImageDescriber.cpp
@@ -25,6 +25,7 @@
#include <boost/filesystem.hpp>
+#include <algorithm>
#includ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Save should not create directories recursively (create_directories); create_directory or nothing was expected.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alicevision__AliceVision__446 | alicevision/AliceVision | 446 | defect | 114e3fa6cf2639840c3d0ac7687995d104c2bfb2 | 65c9bec7f2f994921b835410f058343a282e54ac | Improve software CameraInit | ## Features list
- [x] Fix a bug in sensor database parsing
- [x] Use `FocalLengthIn35mmFilm` metadata in order to estimate sensor size in cameraInit | diff --git a/src/aliceVision/camera/cameraCommon.hpp b/src/aliceVision/camera/cameraCommon.hpp
index 2409afb425..d198f48d5a 100644
--- a/src/aliceVision/camera/cameraCommon.hpp
+++ b/src/aliceVision/camera/cameraCommon.hpp
@@ -9,6 +9,7 @@
#include <string>
#include <stdexcept>
+#include <algorithm>
namespace ali... | 8 | 8 | 1 | [{"id": "G0", "claim": "In the new 'FocalLengthIn35mmFilm' computations in main_cameraInit.cpp the numeric literals should be written as floating-point constants (1.0/(1.0 + ...) and 36.0 rather than 1/(1 + ...) and 36).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, ... | null |
alicevision__AliceVision__466 | alicevision/AliceVision | 466 | defect | f57dfb28d6480733c09d5ad61f62e6a3e1213204 | 5d55bbc44c42fe69a834edea2017646d7b67c49e | [Docker] New docker support | ## Description
Support for docker, based on previous PR #424 but without modifying the all-in-one build (which has been cleaned and fixed in #465).
## Documentation
A docker image can be built using the CentOS 7 or Ubuntu 18 Dockerfiles.
The Dockerfiles are based on `nvidia/cuda` images (https://hub.docker.co... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index ca271cea9e..cef3dd5d90 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -291,10 +291,11 @@ ExternalProject_Add(${PNG_TARGET}
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/png
BINARY_DIR ${BUILD_DIR}/png_build
INSTALL_DIR ${BUILD_DIR}/png_build
- ... | 3 | 3 | 2 | [{"id": "G0", "claim": "Use WORKDIR instead of `cd` in the Dockerfile so the working directory is switched (and created) without cd in each RUN, restructuring the build/run/cleanup commands accordingly.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai... | null |
alicevision__AliceVision__560 | alicevision/AliceVision | 560 | defect | 8006650de09800ec0275d94b8e91ed2289d4c1af | 4a8cedd2bb7df3ede5eff4ba330d21f1f67f5ad7 | Dev lighting estimation | Lighting estimation module:
- define augmented normals and augmented lighting vector for spherical harmonic model;
- lighting evaluation from albedo, picture and normals (linear least-square problem).
| diff --git a/src/aliceVision/CMakeLists.txt b/src/aliceVision/CMakeLists.txt
index 0272fd9d49..59a4b2d9e8 100644
--- a/src/aliceVision/CMakeLists.txt
+++ b/src/aliceVision/CMakeLists.txt
@@ -39,6 +39,7 @@ endif()
if(ALICEVISION_BUILD_MVS)
add_subdirectory(imageIO)
+ add_subdirectory(lightingEstimation)
add_su... | 8 | 8 | 0 | [{"id": "G0", "claim": "Declare nbPoints in estimateLigthingOneChannel as `const auto` instead of `int`.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Declare nbPixels in estimateLigthing as const.", "category": "style", "verdict": "supported", "priority... | null |
alicevision__AliceVision__594 | alicevision/AliceVision | 594 | defect | 48fb766417f0a2609b6a6dd099f86c822ceb4ba1 | a02a0385c2a15f7a39d8eaeb500e63b4a742f692 | Minor SfM improvements | ## Description
Minor fixes for loransac and hgrowing feature matching.
Improve logs.
| diff --git a/src/aliceVision/camera/IntrinsicBase.hpp b/src/aliceVision/camera/IntrinsicBase.hpp
index 4aa0000e4e..5dff0b76a4 100644
--- a/src/aliceVision/camera/IntrinsicBase.hpp
+++ b/src/aliceVision/camera/IntrinsicBase.hpp
@@ -330,6 +330,11 @@ struct IntrinsicBase
return _w != 0 && _h != 0;
}
+ virtual b... | 10 | 8 | 0 | [{"id": "G0", "claim": "The function fillMatricesWithUndistortFeaturesMatches could be renamed to simply undistortFeaturesMatches, which the reviewer finds much simpler.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The documentation of computeObservation... | null |
alicevision__AliceVision__607 | alicevision/AliceVision | 607 | defect | f3339444ab827953ebb21201610b5790b8db82ad | e664d98beb0b957d4be10a1bed2fb5e6196eddd9 | [imageIO] ColorSpace Fix | ## Features list
- [x] Read / Write EXR and TIFF with Linear colorspace
- [x] Convert JPEG and PNG to Linear colorspace in memory
- [x] Write JPEG and PNG with sRGB colorspace
| diff --git a/src/aliceVision/depthMap/DepthSimMap.cpp b/src/aliceVision/depthMap/DepthSimMap.cpp
index b1442ff970..6133b28109 100644
--- a/src/aliceVision/depthMap/DepthSimMap.cpp
+++ b/src/aliceVision/depthMap/DepthSimMap.cpp
@@ -415,8 +415,8 @@ void DepthSimMap::save(int rc, const StaticVector<int>& tcams)
met... | 3 | 3 | 2 | [{"id": "G0", "claim": "Add an `EImageColorSpace::AUTO` mode that decides the colorspace from the file extension/context, and throw an exception when the colorspace parameter is incoherent.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The writeImage co... | null |
alicevision__AliceVision__624 | alicevision/AliceVision | 624 | defect | fab176e6b28dd0afb6155655e38b1f88e0fad3bc | fa0e8d400e09956868ccb3a3c887a5ba5aceba60 | Fix LocalBA intrinsics edges management | ## Description
This PR fixes management of intrinsics related connections in the local bundle adjustment graph which could lead to removal of wrong edges and potential corruption of the graph. This could end up with the SfM going in an infinite loop and/or undefined behavior.
## Features list
- [X] Update internal... | diff --git a/src/aliceVision/matchingImageCollection/geometricFilterUtils_test.cpp b/src/aliceVision/matchingImageCollection/geometricFilterUtils_test.cpp
index b862349bbf..810262cf22 100644
--- a/src/aliceVision/matchingImageCollection/geometricFilterUtils_test.cpp
+++ b/src/aliceVision/matchingImageCollection/geometr... | 11 | 11 | 0 | [{"id": "G0", "claim": "In removeViews, the `it` iterator returned by _nodePerViewId.find should be declared const.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "In removeViews, the locals `intrinsicId` and `intrinsicIt` should be declared co... | null |
alicevision__AliceVision__628 | alicevision/AliceVision | 628 | defect | a948e7add312510b2672624b36459b4cb851c702 | 8e012c60d738ec162f8d0e55c0fe7790dac3ac17 | FeatureMatching: Prefix output matches files when using "ranges" to avoid overwrites | ## Description
Introduce an automatic prefix system for matches files when using "range" command-line parameters. The goal of this PR is to ensure a file created for one iteration does not get overwritten in another one.
When generating matches files per image, we rely on minimal viewId of each image pair to create... | diff --git a/src/aliceVision/matching/indMatch_test.cpp b/src/aliceVision/matching/indMatch_test.cpp
index 6401853f3e..7b7ef7adad 100644
--- a/src/aliceVision/matching/indMatch_test.cpp
+++ b/src/aliceVision/matching/indMatch_test.cpp
@@ -76,12 +76,32 @@ BOOST_AUTO_TEST_CASE(IndMatch_IO)
matches[std::make_pair(1,2... | 5 | 5 | 1 | [{"id": "G0", "claim": "LoadMatchesFromFolder should be named in camelCase (loadMatchesFromFolder) with proper indentation.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use push_back instead of emplace_back since the string object is already b... | null |
alicevision__AliceVision__730 | alicevision/AliceVision | 730 | defect | bb78c6e0a9dcab507d223ebeda6f10bf68c88d34 | 0ac65c8ea44652515f73e3f7e63b7ea03a743550 | Add methods in imageMatching | ## Description
Add new methods in ImagesMatching to select best candidates for FeatureMatching.
Expose new parameters in FeatureMatching and SfM.
## Features list
- [X] ImageMatching: Implement new `Sequential` method.
- [X] ImageMatching: Implement new `Frustum` intersection method.
- [x] A new `method` pa... | diff --git a/src/aliceVision/geometry/Frustum.hpp b/src/aliceVision/geometry/Frustum.hpp
index 3a5d3e374b..360bf32f9e 100644
--- a/src/aliceVision/geometry/Frustum.hpp
+++ b/src/aliceVision/geometry/Frustum.hpp
@@ -23,15 +23,17 @@ struct Frustum
{
Vec3 cones[5]; // camera centre and the 4 points that define the ima... | 5 | 5 | 2 | [{"id": "G0", "claim": "filterTopMatches should early-return only when both limitNum and minNum are non-positive and should throw a runtime_error when minNum > limitNum, instead of silently returning when either bound is unset or contradictory.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco... | null |
alicevision__AliceVision__75 | alicevision/AliceVision | 75 | defect | 0a6fc0c8a32bc3869b2d2b3512326c64c7e25ba6 | f41af830c728e3a44eb4a31ee2a5f86392deb7fa | [WIP] Add metadata and visibility | Add metadata in sfm_data.json
Propage visibility parameters
| diff --git a/src/openMVG/dataio/AlembicExporter.cpp b/src/openMVG/dataio/AlembicExporter.cpp
index 67040e98ae..5f4746e213 100644
--- a/src/openMVG/dataio/AlembicExporter.cpp
+++ b/src/openMVG/dataio/AlembicExporter.cpp
@@ -8,6 +8,7 @@
#if HAVE_ALEMBIC
#include "AlembicExporter.hpp"
+#include "openMVG/sfm/sfm_view_m... | 1 | 1 | 0 | [{"id": "G0", "claim": "The metadata constructor parameter should be passed as a const reference instead of by value, to avoid an unnecessary copy and prevent modification of an external map.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alicevision__AliceVision__806 | alicevision/AliceVision | 806 | defect | 89db0914b1d40215ddd00df48c224d96e063eae2 | df32d947af1a3145e7654fa995a77ce317442668 | Dev/image processing | ## Description
Improvements related to the imageProcessing node
## Features list
- [X] Allow filtering any images in addition to sfm output data
- [X] Add support of fillholes from OpenImageIO
- [X] Add support of the bilateral filter from OpenCV
- [X] Add support of CLAHE filtering from OpenCV
- [x] Add ... | diff --git a/src/software/utils/main_imageProcessing.cpp b/src/software/utils/main_imageProcessing.cpp
index f8d6649468..dc22f1415d 100644
--- a/src/software/utils/main_imageProcessing.cpp
+++ b/src/software/utils/main_imageProcessing.cpp
@@ -14,7 +14,7 @@
#include <boost/program_options.hpp>
#include <boost/filesy... | 3 | 3 | 2 | [{"id": "G0", "claim": "The sfm-data input check should also accept the .sfm extension, since it only recognizes .abc.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment 'if exposureCompensation is needed for sfmData fIles' misspells 'files'... | null |
alicevision__AliceVision__839 | alicevision/AliceVision | 839 | defect | abe257f97b79e3048eab6687f2a8752032ef0017 | 35b375b1d52530fedc88064f425289a8c389df2f | Avoid circular dependency | ## Features list
- [X] Avoid circular dependency between "feature" and "sfmData"
Move one function from "feature" to "sfm".
- [X] Check Eigen defines
- [X] Build fix for MSVC 2015/2017
| diff --git a/src/aliceVision/feature/selection.cpp b/src/aliceVision/feature/selection.cpp
index b6e7d4ed4c..c4c33e3a9b 100644
--- a/src/aliceVision/feature/selection.cpp
+++ b/src/aliceVision/feature/selection.cpp
@@ -12,8 +12,6 @@
namespace aliceVision {
namespace feature {
-const size_t gridSize = 3;
-
/**
*... | 1 | 1 | 1 | [{"id": "G0", "claim": "matchesGridFiltering should ideally live in the matching module with a different API that takes the two image sizes instead of the SfMData, with the sfm-side wrapper retrieving the data and calling it (easier to unit test without SfMData just for the image size).", "category": "design", "verdict... | null |
alicevision__AliceVision__934 | alicevision/AliceVision | 934 | defect | 2c58d3c38c135244849e2a7f24c64129cdfa4498 | b4067a64a52df67193c0e2ea1d730db8fc03eb72 | Move PRNG initialization out of library | Make sure we can control from the application the repeatability of the apps by seeding the random number generation outside of the library | diff --git a/src/aliceVision/geometry/rigidTransformation3D.cpp b/src/aliceVision/geometry/rigidTransformation3D.cpp
index 2eb1bf528c..feb3b2a9a0 100644
--- a/src/aliceVision/geometry/rigidTransformation3D.cpp
+++ b/src/aliceVision/geometry/rigidTransformation3D.cpp
@@ -128,6 +128,7 @@ void Refine_RTS(const Mat &x1,
... | 4 | 3 | 2 | [{"id": "G0", "claim": "The ReconstructionEngine's mt19937 member should be initialized with std::random_device and a method exposed to set a custom seed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "main_featureMatching's default-constructed generator... | null |
alimanfoo__pysamstats__86 | alimanfoo/pysamstats | 86 | defect | 78f3ef4b260211658ab9556b5a49e57b4e9951f3 | 1c16ea0507df3b729f641b7238410d94fddfe2e6 | Implement stepper passing | - bump version
- allowed types in config
- rebuild c
- changes to pyx to allow "stepper" pass
- script with new help and option passing
Resolves #78 | diff --git a/pysamstats/__init__.py b/pysamstats/__init__.py
index 84c167a..b9cacc4 100644
--- a/pysamstats/__init__.py
+++ b/pysamstats/__init__.py
@@ -2,7 +2,7 @@
from __future__ import absolute_import, print_function, division
-__version__ = '1.0.1'
+__version__ = '1.1.0.dev0'
from .pileup import *
diff --... | 3 | 3 | 3 | [{"id": "G0", "claim": "The CLI script passes stepper to the stat function for every stat type, but stepper should only apply to pileup-based stats, and binned stats fail with \"TypeError: stat_binned() got an unexpected keyword argument 'stepper'\", so the argument should be moved under the check for non-binned types.... | null |
aliyun__aliyun-cli__124 | aliyun/aliyun-cli | 124 | defect | c86a9a26de91ae00d106f35584ac51b2fa4b3333 | bf2470c03be188ae61c36a493023d3d94d95bc99 | perfected testcases of package cli | Perfected testcases:
```
=== RUN TestCommand
--- PASS: TestCommand (0.00s)
=== RUN TestBashInstaller
--- PASS: TestBashInstaller (0.01s)
=== RUN TestZshInstaller
--- PASS: TestZshInstaller (0.01s)
=== RUN TestCompletionInstallers
--- PASS: TestCompletionInstallers (0.26s)
=== RUN TestCompletion
---... | diff --git a/cli/command_test.go b/cli/command_test.go
index 46772cf43..e1edb5660 100644
--- a/cli/command_test.go
+++ b/cli/command_test.go
@@ -2,3 +2,96 @@
* Copyright (C) 1999-2019 Alibaba Group Holding Limited
*/
package cli
+
+import (
+ "bytes"
+ "testing"
+
+ "github.com/stretchr/testify/assert"
+)
+
+func ... | 2 | 2 | 1 | [{"id": "G0", "claim": "TestCopyFile only asserts that the calls return no error and does not check correctness, e.g. by comparing the copied file's content.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tests should not contain fault-tolerant code... | null |
aliyun__aliyun-oss-android-sdk__134 | aliyun/aliyun-oss-android-sdk | 134 | defect | a738754b87bc5461c8ac69a4bd3e3f783732aec6 | 52bbd46ff3ff9f99972e6711c4d9684a65d89ec8 | symlink & restore object | 一、add api 1.putSymlink;2.getSymlink;3.restoreObject;
二、add testcase;
三、remove logic about checking part size; | diff --git a/oss-android-sdk/src/androidTest/java/com/alibaba/sdk/android/OSSTestConfig.java b/oss-android-sdk/src/androidTest/java/com/alibaba/sdk/android/OSSTestConfig.java
index cb294232..d0219321 100644
--- a/oss-android-sdk/src/androidTest/java/com/alibaba/sdk/android/OSSTestConfig.java
+++ b/oss-android-sdk/src/a... | 4 | 2 | 0 | [{"id": "G0", "claim": "The targetObjectName guard in putSymlink should use an existing empty-string utility (TextUtils.isEmpty() or the OSSUtils non-empty check) instead of a hand-rolled != null, so empty strings are covered too.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr... | null |
aliyun__aliyun-oss-python-sdk__154 | aliyun/aliyun-oss-python-sdk | 154 | defect | 473bd51fd9156d42d010cdfcb2ad929751a2b9a9 | ba853e7614cdf60e2db9978fca12c448d610b913 | Preview 2.6.1 | 1. Add docs on how to setup logging level
2. fix chinese comma in the log
3. do not set default log level
4. add sample for getobjectmeta api
5. do not add playlist to params while playlist is not set
6. fix the CI errors | diff --git a/.travis.yml b/.travis.yml
index 35c15b2f..24804ccb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,6 +6,8 @@ python:
- 3.4
- 3.5
install:
+- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then travis_retry pip install pycryptodome==3.6.6;
+ fi
- pip install crcmod requests nose nose-cov python-coveralls p... | 2 | 1 | 0 | [{"id": "G0", "claim": "The file names used in these code examples (e.g. '你的对象名', '本地文件名.txt') would preferably be changed to English.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The continuation-line indentation of the wrapped logger/select_pa... | null |
aliyun__aliyun-oss-python-sdk__41 | aliyun/aliyun-oss-python-sdk | 41 | defect | a8fff60b08d695d1121fb3e81a714821cfe8367c | 276a9f667a1654b50c47cc9dbba875cf76522cb2 | crc | 支持CRC校验。
CRC校验默认开启,用户可以关闭。
CRC开启后,put_object/upload_part自动使用CRC校验;get_object返回服务端的CRC值,客户端数据读取完成后,会返回CRC,比较两个CRC的值,判断数据是否有效;append_object自动使用CRC校验,需要传入上次append的crc值。
| diff --git a/.travis.yml b/.travis.yml
index 71a10429..8ad79be8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,7 +6,7 @@ python:
- 3.4
- 3.5
install:
-- pip install requests nose nose-cov python-coveralls aliyun-python-sdk-sts
+- pip install crcmod requests nose nose-cov python-coveralls aliyun-python-sdk-sts
- p... | 9 | 7 | 1 | [{"id": "G0", "claim": "GetObjectResult's crc_callback parameter should be renamed to crc_enabled with a boolean default (True or False), since it acts as an on/off flag.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In GetObjectResult the getter-style ... | null |
aliyun__aliyun-oss-python-sdk__62 | aliyun/aliyun-oss-python-sdk | 62 | defect | 66c5d184792e8e02706a66c8df71fa7cb01ecaec | 39fa01f01c952fb46fcaeb6e533576849812923e | symlink | ### 变更内容
- 增加:[符号链接](https://help.aliyun.com/document_detail/45126.html) 接口`put_object_symlink`,`get_object_symlink` | diff --git a/oss2/api.py b/oss2/api.py
index 7a12d71b..7777abeb 100644
--- a/oss2/api.py
+++ b/oss2/api.py
@@ -240,6 +240,7 @@ class Bucket(_Base):
COMP = 'comp'
STATUS = 'status'
VOD = 'vod'
+ SYMLINK = 'symlink'
def __init__(self, auth, endpoint, bucket_name,
is_cname=False,... | 4 | 4 | 2 | [{"id": "G0", "claim": "The symlink target read from the x-oss-symlink-target header should be url-decoded in GetObjectSymlinkResult.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A test case for symlinks with Chinese (non-ASCII) keys should be add... | null |
aliyun__aliyun-oss-python-sdk__94 | aliyun/aliyun-oss-python-sdk | 94 | defect | 5feb109aea53a31d7852659c31e63d3207445bd6 | 7deda66a12f979dd38e7e9cfa5da0dcf38f33eab | create_bucket supports IA/Archive && add restore_object | ### 变更内容
- [CreateBucket](https://help.aliyun.com/document_detail/31959.html)支持IA/Archive,支持[Restore](https://help.aliyun.com/document_detail/52930.html)
- [LifeCycle](https://help.aliyun.com/document_detail/31863.html)后面的修改需要实现,增加CreatedBeforeDate、AbortMultipartUpload、IA/Archive的支持
- [GetBucketInfo](https://help.al... | diff --git a/.travis.yml b/.travis.yml
index dbe4a39c..78695d7d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,7 +10,7 @@ install:
- pip install --upgrade mock
script:
- nosetests unittests/ --with-cov
-- if [ -n "$OSS_TEST_ACCESS_KEY_ID" ]; then travis_wait 30 nosetests tests/ --with-cov; fi
+- if [ -n "$OSS_TES... | 12 | 10 | 1 | [{"id": "G0", "claim": "The lifecycle example should use a more meaningful rule ID than 'a' (e.g. 'id_lc_chinese_prefix') and generally use ENABLED rather than DISABLED.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "create_bucket and the lifecycl... | null |
aliyun__aliyun-oss-python-sdk__99 | aliyun/aliyun-oss-python-sdk | 99 | defect | 182595234372f7437526988860f546e2b5121992 | 3d366290644061fe943c87fc294b28345b048315 | Supporting with query string parameter when getting objects |
Fix the issue: https://github.com/aliyun/aliyun-oss-python-sdk/issues/98 | diff --git a/.gitignore b/.gitignore
index ce887a63..d7b5516c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
*.pyc
+.idea
.project
.pydevproject
.settings
diff --git a/oss2/api.py b/oss2/api.py
index 4589ef7a..3dc3d8d3 100644
--- a/oss2/api.py
+++ b/oss2/api.py
@@ -123,6 +123,7 @@ def progress_callback(by... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new test_query_parameter should assert an observable result — e.g. upload with content-type plain/text, call get_object/get_object_to_file with params={'response-content-type': 'image/jpeg'}, and assert the returned headers' content-type is image/jpeg — instead of only round-tripping the con... | null |
aliyun__django-oss-storage__4 | aliyun/django-oss-storage | 4 | defect | 9e38f3061402adadc81513cf49c587d4bb53ce6a | 4aaf1fe00eac81720a71adc2858ca9fa42aab96f | OssStorage provides __init__ arguments | Hello, @baiyubin @abo321
I hope OssStorage can populate arguments when initializing instance. It's more flexible for developer using. Please review this. Thanks! | diff --git a/django_oss_storage/backends.py b/django_oss_storage/backends.py
index a2e7b37..c830f07 100644
--- a/django_oss_storage/backends.py
+++ b/django_oss_storage/backends.py
@@ -26,6 +26,17 @@
from .defaults import logger
+def _get_config(name):
+ config = os.environ.get(name, getattr(settings, name, Non... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should provide test code for the new function code it adds — the new `_get_config` helper and the new `__init__` default parameters.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
alkaline-ml__pmdarima__171 | alkaline-ml/pmdarima | 171 | defect | 287a5c0c2a7cb26c8196c3c0e39c225e81f4b8f0 | b5e8536e720a55416dbd8a8b3618e8bcd1bfc26d | [MRG+1] Issue 146 |
# Description
Adds `**sarimax_kwargs` to the `ARIMA` constructor and `auto_arima` function. This addresses #146. While I was at it, I changed the `plot_diagnostics` unit tests to use `unittest.mock.patch` to make them less brittle.
## Type of change
- [x] New feature (non-breaking change which adds function... | diff --git a/.coveragerc b/.coveragerc
index 051769867..d122c8f03 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -13,4 +13,4 @@ omit =
*/pmdarima/__init__.py
*/pmdarima/compat/matplotlib.py
*/pmdarima/utils/tests/test_vis.py
- */pmdarima/utils/visualization.py
\ No newline at end of file
+ */pmdarim... | 1 | 1 | 0 | [{"id": "G0", "claim": "Prefer `{}` over `dict()` for the empty-dict defaults the PR adds (in `_auto_solvers.py` and in `auto.py`), since `{}` is faster and avoids ambiguity with set literals.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
alkaline-ml__pmdarima__225 | alkaline-ml/pmdarima | 225 | defect | 2d65626b405d4c1927f2365a9a00e0e500f2a11d | b53c94bb32b57835b337219c31277b084e475880 | [MRG+2] For #205 Add LogEndogTransformer | # Description
I have added a preprocessing `LogEndogTransformer` class that extends the existing `BoxCox` class. I wrote two simple tests and added the log class to the docs.
This is WIP because the functionality is a bit strange. I tried to describe the problem in #205, but I think a pull request will be cleares... | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index b1ee830fd..88e220f97 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -211,6 +211,7 @@ Endogenous transformers
:template: class.rst
preprocessing.BoxCoxEndogTransformer
+ preprocessing.LogEndogTransformer
Exogeno... | 2 | 2 | 0 | [{"id": "G0", "claim": "The PR author should add himself to AUTHORS.md before the PR is merged.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be good to also update doc/whats_new.rst under v1.5.0 for this change.", "category": "documenta... | null |
alkaline-ml__pmdarima__226 | alkaline-ml/pmdarima | 226 | defect | 2d65626b405d4c1927f2365a9a00e0e500f2a11d | 42484467cc3ab575ebf5cd849e80bf76a9d5af08 | [MRG+1] Add support for meaningful exog names | # Description
Fixes #222. Adds an optional parameter, `prefix`, to exogenous featurizers and pass-through support for pandas DataFrames as exog arrays (rather than converting to np.ndarray). This accomplishes two things:
* If a pandas frame is provided as an exog array to the statsmodels SARIMAX class, it will ke... | diff --git a/doc/modules/classes.rst b/doc/modules/classes.rst
index b1ee830fd..3c5f9608e 100644
--- a/doc/modules/classes.rst
+++ b/doc/modules/classes.rst
@@ -247,6 +247,8 @@ Array helper functions & metaestimators
utils.acf
utils.as_series
utils.c
+ utils.check_endog
+ utils.check_exog
util... | 2 | 1 | 0 | [{"id": "G0", "claim": "The docstring example output shows a trailing backslash, and the reviewer asks whether the output really has that slash or it was a copy/paste artifact.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why t... | null |
alkaline-ml__pmdarima__230 | alkaline-ml/pmdarima | 230 | defect | 1f847c37404366dabe7228265f023800534a4657 | 2b66e192f0765e65d59bac3ba3f231d80789c629 | [MRG+1] Polyroot test | <!-- Please prefix your title with one of the following:
[WIP] - If the pull request is not finalized
[MRG] - If you are ready to have this PR looked at by a project maintainer
-->
# Description
What's changing?
* This fixes #208 by adding a poly root test of near non-invertibility when `stepwise=True`
*... | diff --git a/doc/whats_new.rst b/doc/whats_new.rst
index 708ab0255..c505e3b9a 100644
--- a/doc/whats_new.rst
+++ b/doc/whats_new.rst
@@ -15,11 +15,12 @@ v0.8.1) will document the latest features.
the ``SARIMAX`` model, which cuts back on a lot of errors/warnings we saw in the past.
(`#211 <https://github.com/tgsm... | 2 | 2 | 0 | [{"id": "G0", "claim": "The boolean-to-int conversions in solve_stepwise would be more readable (and faster) written as conditional expressions, e.g. `_p = 1 if max_p > 0 else 0` instead of `_p = int(max_p > 0)`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
alkaline-ml__pmdarima__236 | alkaline-ml/pmdarima | 236 | defect | 4f0d7a6191326916d25f0387f1d6b72a97df2f5e | ea36b28c92b4f5f8314707051ee936fd2393bfd5 | [MRG+2] R diffinv parity | <!-- Please prefix your title with one of the following:
[WIP] - If the pull request is not finalized
[MRG] - If you are ready to have this PR looked at by a project maintainer
-->
# Description
- **Please include a summary of the change and which issue is fixed.**
- Adds a `diff_inv` function that is i... | diff --git a/.gitignore b/.gitignore
index c5ffad608..37010d05d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,11 +30,12 @@ __pycache__/
*.py[cod]
*$py.class
-# C extensions
+# C extensions and cython reports
*.so
*.c
pmdarima/arima/*.html
pmdarima/preprocessing/exog/*.html
+pmdarima/utils/*.html
# Distribu... | 3 | 3 | 0 | [{"id": "G0", "claim": "The loop in C_intgrt_vec could get a performance boost by being wrapped in `with nogil:`.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The diff_inv docstring should be filled in to look like the other docstrings, ideally wi... | null |
alkaline-ml__pmdarima__360 | alkaline-ml/pmdarima | 360 | defect | 20809be1ad7f42e7a0727e39006cc0dfe2eadcee | 21696335a866a4cb9dba7852745759c507d4fa9f | [MRG+2] support inverse_transformer when return_conf_int=True | <!-- Please prefix your title with one of the following:
[WIP] - If the pull request is not finalized
[MRG] - If you are ready to have this PR looked at by a project maintainer
-->
# Description
Currently, if there's an endogenous transformer in the pipeline and try to run `pipeline.predict(*, return_conf_... | diff --git a/pmdarima/pipeline.py b/pmdarima/pipeline.py
index a9d111a19..867cabf11 100644
--- a/pmdarima/pipeline.py
+++ b/pmdarima/pipeline.py
@@ -77,6 +77,7 @@ class Pipeline(BaseEstimator):
transparams=True, trend=None,
with_intercept... | 2 | 2 | 2 | [{"id": "G0", "claim": "The added confidence-interval inverse-transform logic does not need separate Xt_lower_bound/Xt_upper_bound trackers; the Xt returned by each transformer's inverse_transform is either unchanged or already inverse-transformed with y, so the bounds could be computed with the same single Xt used for... | null |
alkaline-ml__pmdarima__439 | alkaline-ml/pmdarima | 439 | defect | 17619729a285e4bbb975d733b9196a12e9a42a1a | 9ff6d9458c7f897c87efc2c5fe3635e7d5c6771a | [MRG] Consistent prediction results for simple_differencing = True and False | # Description
SARIMA and ARIMA predict() and predict_in_sample() now return undifferenced prediction and confidence intervals if simple_differencing = True.
When d or D is not 0, the two functions used to return differenced results. This was not consistent with behaviors of simple_differencing = False and correspon... | diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 4c1adf96d..000000000
--- a/.gitignore
+++ /dev/null
@@ -1,131 +0,0 @@
-# VS Code
-.vscode/
-
-# Mac stuff
-.DS_Store
-.idea/
-
-# custom extension
-.pyramid-cache/
-*.pmdpkl
-
-# Don't want to include scratch stuff
-scratch/
-
-# Models
-*.pkl
-!pmdari... | 1 | 1 | 1 | [{"id": "G0", "claim": "The removed .gitignore file must be added back before merging.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
alkaline-ml__pmdarima__442 | alkaline-ml/pmdarima | 442 | defect | 82675cffeece3083fd3545244e38abe37539d904 | ba3030318a7d02bd7e62093d23be348e98fb60d1 | [MRG] CI consolidation + minor bug fixes | # Description
* Circle CI changes:
- Refactor Circle CI to build wheels during each unit test stage. This is in direct response to several issues we've had during the last several deployments, which were not discovered until the release was cut. Each unit test stage builds a wheel, runs the tests, and then persis... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 72d2a411b..6e2308387 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -7,13 +7,6 @@ test-filters: &test-filters
branches:
only: /.*/
-# This will trigger ONLY on branches
-test-only-filters: &test-only-filters
- tags:
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error message should not read 'must be < than length' — remove one of the duplicated 'than's, preferably dropping the '<' symbol.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
alkaline-ml__pmdarima__495 | alkaline-ml/pmdarima | 495 | defect | c6ace44159b5164862cc91e3760f55462fc52d95 | 2e8a01c49cb162d585eae98f45343841c3239896 | [MRG+1] Add `fittedvalues` to public ARIMA api | # Description
Expose `fittedvalues` in the public `ARIMA` API
Fixes #(issue)
#493
Please delete options that are not relevant.
- [x] New feature (non-breaking change which adds functionality)
- [x] Documentation change
| diff --git a/doc/index.rst b/doc/index.rst
index 959107472..c09c43f34 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -49,6 +49,7 @@ Other versions
Documentation for other release versions of ``pmdarima``:
+* `v2.0.0 <http://alkaline-ml.com/pmdarima/2.0.0>`_
* `v1.8.5 <http://alkaline-ml.com/pmdarima/1.8.5>`_
... | 2 | 2 | 2 | [{"id": "G0", "claim": "Since the release list skips 1.8.6 (it was never released), the aarch64 note currently under the v1.8.6 heading should be moved into the new v2.0.0 section of doc/whats_new.rst.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":... | null |
allcloud-io__clisso__48 | allcloud-io/clisso | 48 | defect | 6892a670c3847b2fc3f23e1789fbc02a5469eef8 | 6aaee3f8aa90e2e8e63016f0af4e7519a2bab9c0 | Support other onelogin regions | The tool, currently, doesn't support onelogin EU- this PR adds that support.
It does this by taking an optional onelogin region (which defaults to US, should it not exist, for backwards compatibility) and then using this to form URLs.
The new code has 100% code coverage, including happy and unhappy path cases.
... | diff --git a/README.md b/README.md
index 7d6e28bf..52b3204d 100644
--- a/README.md
+++ b/README.md
@@ -111,7 +111,8 @@ To create a OneLogin identity provider, use the following command:
--client-id myid \
--client-secret mysecret \
--subdomain mycompany \
- --username user@mycompany.co... | 6 | 6 | 3 | [{"id": "G0", "claim": "The pull request forgot to include the README change demonstrating the new --region flag.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The region flag's help description should read 'Region in which the OneLogin API lives... | null |
allcloud-io__clisso__62 | allcloud-io/clisso | 62 | defect | d8162ab07a93265f5d2e68d79a614cb49544a490 | cb7b42b65b0a7fea13d65145eeb92f86bbaba1d8 | Feature/print valid profiles | To have an easy view how much time is left and if one can run that long running command or has to get fresh credentials first. | diff --git a/README.md b/README.md
index d9cd77d6..0c1acda7 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,7 @@ Clisso has the following commands:
get Get temporary credentials for an app
help Help about any command
providers Manage providers
+ status show currently valid pr... | 29 | 25 | 0 | [{"id": "G0", "claim": "The README entry and the status command help text should be capitalized consistently with the other commands (e.g. `Show active (non-expired) credentials` instead of `show currently valid profiles`).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"},... | null |
allegro__bigcache__11 | allegro/bigcache | 11 | defect | 5f83047ef1efd787da3ec3fc7dd70f88bf70497f | 0bbfe48fa5133bb102e5c9fea60cf5ea548b5191 | Add some tests | Use `DefaultConfig` in test
Make queue tests logs verbose
Add somne corner case tests
| diff --git a/bigcache_test.go b/bigcache_test.go
index bd7ed91a..baa3724e 100644
--- a/bigcache_test.go
+++ b/bigcache_test.go
@@ -11,7 +11,7 @@ func TestWriteAndGetOnCache(t *testing.T) {
t.Parallel()
// given
- cache, _ := NewBigCache(Config{16, 5 * time.Second, 10, 256, false, nil})
+ cache, _ := NewBigCache(D... | 4 | 3 | 2 | [{"id": "G0", "claim": "Get on an empty queue should return an 'Empty queue' error rather than succeed with a non-nil result and no error, as the new TestGetEntryFromEmptyQueue asserts.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Get with an out-... | null |
allegro__bigcache__111 | allegro/bigcache | 111 | defect | 06975fd8de981b85f94a4e5bed7c32999030cef3 | 9400b2951b0dd993967805ea3ea03869b1b1d576 | replace EntryNotFoundError on ErrEntryNotFound | I reconsidered my approach to `EntryNotFoundError` error. User always knows what key he uses, so we can delete `EntryNotFoundError` structure and replace it to `ErrEntryNotFound`
```
benchmark old ns/op new ns/op delta
BenchmarkReadFromCacheNonExistentKeys/1... | diff --git a/bigcache.go b/bigcache.go
index e6aee866..b3879264 100644
--- a/bigcache.go
+++ b/bigcache.go
@@ -102,7 +102,7 @@ func (c *BigCache) Close() error {
}
// Get reads entry for the key.
-// It returns an EntryNotFoundError when
+// It returns an ErrEntryNotFound when
// no entry exists for the given key.... | 2 | 1 | 0 | [{"id": "G0", "claim": "The test assertions added by this PR hard-code the string \"Entry not found\" instead of deriving it from the new sentinel, and should use ErrEntryNotFound.Error() at line 109 and in every assertion below.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro... | null |
allegro__bigcache__119 | allegro/bigcache | 119 | defect | 84a0ff3f153cbd7e280a19029a864bb04b504e62 | 7a2f9a270771b1b06b00b59f5844bd6705abc516 | Fix data corruption (shard.go) | This PR contains a testcase which demonstrates corruption (intermittently). Sometimes leading to `panic`, and sometimes leading to data corruption of values.
I thought that fixing the datarace suggested in #117 would solve it, but it seems I was wrong about that, there's some other underlying bug. I'll push a commi... | diff --git a/bigcache_test.go b/bigcache_test.go
index 187461ac..15c565a8 100644
--- a/bigcache_test.go
+++ b/bigcache_test.go
@@ -1,7 +1,9 @@
package bigcache
import (
+ "bytes"
"fmt"
+ "math/rand"
"runtime"
"sync"
"testing"
@@ -358,6 +360,67 @@ func TestCacheDel(t *testing.T) {
assert.Len(t, cachedValue... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new random delete/put/get corruption test stands up a separate cache and should call t.Parallel().", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added CheckGet method on BytesQueue needs a test.", "category": "test... | null |
allegro__bigcache__168 | allegro/bigcache | 168 | defect | 7aed033ec1081851884258a7285c60fef92241bf | cb85fe3b49da802a8689880688988b29c10ace46 | New Get API which returns additional information about the entry | enhancement: added new data struct Response, which will be returned when
calling GetWithInfo(). Caller can use this Response to check the status
of the Entry, whether its Expired or not. Default '0' means its still
in use.
minor lint changes
Test: added test case for the api and made sure all tests cases are
... | diff --git a/bigcache.go b/bigcache.go
index b3879264..d4ad536a 100644
--- a/bigcache.go
+++ b/bigcache.go
@@ -23,12 +23,18 @@ type BigCache struct {
close chan struct{}
}
+// Response will contain metadata about the entry for which GetWithInfo(key) was called
+type Response struct {
+ EntryStatus RemoveRea... | 6 | 6 | 5 | [{"id": "G0", "claim": "The new import path is misspelled (`allergo` instead of `allegro`) and dropping the `/v2` major-version suffix is not a proper change for a Go-modules project whose major version is 2.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "cl... | null |
allegro__bigcache__184 | allegro/bigcache | 184 | defect | 2539667acdd86ae485aa8e677a9da35ab7336ea9 | 8e97147fff5945c3ade5410bbdd04634da7fc2b7 | Add entry stats | This pull request resolves #159.
- Adding a way to access entry-level stats, that can be enabled/disabled using the config attribute `StatsEnabled` which is set to false by default.
- Adding a way to get metadata related to a particular key using `KeyMetaData(key string)`
- OnRemove now can give you the possibili... | diff --git a/bigcache.go b/bigcache.go
index 950991eb..b203113a 100644
--- a/bigcache.go
+++ b/bigcache.go
@@ -69,7 +69,9 @@ func newBigCache(config Config, clock clock) (*BigCache, error) {
}
var onRemove func(wrappedEntry []byte, reason RemoveReason)
- if config.OnRemove != nil {
+ if config.OnRemoveWithMetaDat... | 5 | 5 | 1 | [{"id": "G0", "claim": "The identifier spellings `KeyMetaData`, `providedOnRemoveWithMetaData`, `OnRemoveWithMetaData` and `metaData`/`getKeyMetaData` should be changed to spell Metadata with a lowercase d.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
allegro__bigcache__19 | allegro/bigcache | 19 | defect | 7b000bdb362a2dad08c6e7abf5b0315b6aabc9cf | 2920ce862f05b70c81b959812a4429110381a9bd | Improve fnv64a hashing algorithm by remove all allocations | Hi everyone,
Lastly I've seen 2 great tutorial how to profile and optimize Go programs. Based on that knowledge I found some small improvements in your bigcache package. I started from adding allocation reporting for all of your benchmarks. After further analysis in pprof tool it showed me that your usage of fnv64a ha... | diff --git a/bigcache_bench_test.go b/bigcache_bench_test.go
index e5cd2d03..d51d8a5d 100644
--- a/bigcache_bench_test.go
+++ b/bigcache_bench_test.go
@@ -15,6 +15,7 @@ func BenchmarkWriteToCacheWith1Shard(b *testing.B) {
}
func BenchmarkWriteToLimitedCacheWithSmallInitSizeAnd1Shard(b *testing.B) {
+ b.ReportAllocs... | 3 | 3 | 1 | [{"id": "G0", "claim": "Instead of adding b.ReportAllocs() to individual benchmark functions, allocation reporting should be enabled via the -test.benchmem flag when running the whole test suite.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The fnv64a... | null |
allegro__bigcache__219 | allegro/bigcache | 219 | defect | 37b9eb28693b36c88824afefa1dfe1a20826e74b | da3aadff170a49418bf258d1b453e5e70ea807e6 | Deleted entries should not be removed by expire eviction | Hi, this is a small fix for #126,
I think the problem is that `shard.delete()` marks entries in queue as deleted ( by zero-ing all the 64 header bits for hash ), but `removeOldestEntry` is not checking for this case. | diff --git a/bigcache_test.go b/bigcache_test.go
index 8a04060f..183614db 100644
--- a/bigcache_test.go
+++ b/bigcache_test.go
@@ -353,6 +353,67 @@ func TestOnRemoveFilter(t *testing.T) {
assertEqual(t, true, onRemoveInvoked)
}
+func TestOnRemoveFilterExpired(t *testing.T) {
+ // t.Parallel()
+
+ // given
+ clock ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should not modify go.mod — the accidentally pushed changes (module path renamed to bigcache, go directive bump, self-require and go.sum) should be reverted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
allegro__bigcache__232 | allegro/bigcache | 232 | defect | bbbffd30d25b538b4c03be6649b1dffbacca9596 | 665c3a9849ee6bc159f361ebd1296ac4a2eb44b7 | fix: panic when update and iterate simultaneously | 1. Fix panic when update and iteration simultaneously. Related to https://github.com/allegro/bigcache/issues/222.
2. Add panic recover in cleanUp to prevent the program exited. Related to https://github.com/allegro/bigcache/issues/226, https://github.com/allegro/bigcache/issues/148, just protect the main program not e... | diff --git a/bigcache_test.go b/bigcache_test.go
index a28cc9fe..b7203bfb 100644
--- a/bigcache_test.go
+++ b/bigcache_test.go
@@ -1038,6 +1038,65 @@ func TestBigCache_GetWithInfo(t *testing.T) {
assertEqual(t, []byte(value), data)
}
+func TestBigCache_OnPanicCallback(t *testing.T) {
+ t.Parallel()
+
+ defer func(... | 2 | 2 | 0 | [{"id": "G0", "claim": "The PR should justify or drop the deferred panic-recover it adds in cleanUp, since the reviewer sees no need for it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The underlying panic that motivated the PR (issue #226) remains un... | null |
allegro__bigcache__236 | allegro/bigcache | 236 | defect | 7bf29c05ed83207873911f27b20170baedd4df0a | ffe70042ef51dc8b92ae8b4c7e53732848698084 | Use uint64 intead of uint32 | There are posibility we run into a problem of int32 overflow.
To prevent this let's use uint64 everywhere.
https://github.com/allegro/bigcache/blob/21e5ca5c3d539f94e8dc563350acd97c5400154f/shard.go#L138
Fixes: https://github.com/allegro/bigcache/issues/148 | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 95e70d97..ab4c7d3b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -11,7 +11,7 @@ jobs:
fail-fast: true
max-parallel: 2
matrix:
- go: ["1.13.x", "1.14.x"]
+ go: ["1.14.x", "1.15.... | 3 | 2 | 2 | [{"id": "G0", "claim": "The change breaks 32-bit compatibility, so that break should be documented and the pull request should ship as a new major version rather than a normal release.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Running the test suite... | null |
allegro__bigcache__24 | allegro/bigcache | 24 | defect | aa2187baf2695f1f74272166962d901bd8257133 | ed612ae207eead4591f595fa3532fd572f7691ca | Zero alloc byte to string conversion | No copying when converting []byte to string.
```
go test -bench BenchmarkIterateOverCache -memprofile mem.out
2016/11/03 00:29:24 Collision detected. Both "liquid" and "costarring" have the same hash 5
BenchmarkIterateOverCache/512-shards-8 5000000 397 ns/op 4 B/op 0 allocs/op
Benc... | diff --git a/encoding.go b/encoding.go
index f6d17802..7a194a10 100644
--- a/encoding.go
+++ b/encoding.go
@@ -2,6 +2,8 @@ package bigcache
import (
"encoding/binary"
+ "reflect"
+ "unsafe"
)
const (
@@ -40,7 +42,13 @@ func readTimestampFromEntry(data []byte) uint64 {
func readKeyFromEntry(data []byte) stri... | 4 | 2 | 2 | [{"id": "G0", "claim": "The reflection-based zero-copy bytesToString helper is not clear code; clear is better than clever and reflection is never clear.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The returned key/value alias the cache's und... | null |
allegro__bigcache__25 | allegro/bigcache | 25 | defect | aa2187baf2695f1f74272166962d901bd8257133 | 9d7463280ae54324c9501bd9bf1751f6bd286e5c | Add Reset() to cache | * Add ```Reset()``` method to ```BigCache``` (reset all shards)
* Add ```Reset()``` method to BytesQueue (reset queue to initial state)
* Add ```Len()``` method to ```BigCache``` (number of entries)
* Move cacheShard to it's own file
* Move config logic
Addresses https://github.com/allegro/bigcache/issues/23 | diff --git a/bigcache.go b/bigcache.go
index ac54a931..f268b5c9 100644
--- a/bigcache.go
+++ b/bigcache.go
@@ -3,9 +3,6 @@ package bigcache
import (
"fmt"
"log"
- "sync"
-
- "github.com/allegro/bigcache/queue"
)
const (
@@ -25,14 +22,6 @@ type BigCache struct {
maxShardSize uint32
}
-type cacheShard struc... | 1 | 1 | 1 | [{"id": "G0", "claim": "BytesQueue.Reset should not restore q.capacity to the initial capacity, because shrinking the capacity back without shrinking q.array is wrong.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
allegro__bigcache__299 | allegro/bigcache | 299 | defect | 16df11e2ee38e06da57939e8cbc11cc94f3fa4ce | 071a98a24d1d55452d1e61d77a4111d2b8b32bca | Adding config validation when creating new cache. | Otherwise this causes more cryptic failures in later code. Best to catch this on initialization. | diff --git a/bigcache.go b/bigcache.go
index c4439c1a..7ae1f124 100644
--- a/bigcache.go
+++ b/bigcache.go
@@ -46,10 +46,18 @@ func NewBigCache(config Config) (*BigCache, error) {
}
func newBigCache(config Config, clock clock) (*BigCache, error) {
-
if !isPowerOfTwo(config.Shards) {
return nil, fmt.Errorf("Sha... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test covering the new config validation in newBigCache.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
allegro__bigcache__331 | allegro/bigcache | 331 | defect | 0d61bd727b03b7ad185df9d013fe7e6cb2a65ed3 | 955ec0ca529527afdddfc5c45f566240485d4329 | Add ResetStats | Hello, I saw the following issues #322 , #315 .
So I wrote the code. | diff --git a/bigcache.go b/bigcache.go
index 393753e5..ae904565 100644
--- a/bigcache.go
+++ b/bigcache.go
@@ -163,6 +163,14 @@ func (c *BigCache) Reset() error {
return nil
}
+// ResetStats all cache shards
+func (c *BigCache) ResetStats() error {
+ for _, shard := range c.shards {
+ shard.resetStats()
+ }
+ ret... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comment on ResetStats should read '// ResetStats resets cache stats' instead of '// ResetStats all cache shards', which misdescribes what the method does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
allegro__bigcache__337 | allegro/bigcache | 337 | defect | c9426ba4b01ea37f412904df29a670711306e31e | 3a2323196d7b64ca3db14d30d3e24e42db42be13 | Cleanly shutdown cleanup go-routine | Cleanly shutdown go routine. Big cache was made when go did not have ctx support
Fixes https://github.com/allegro/bigcache/issues/336 | diff --git a/README.md b/README.md
index 4c34dc53..844c8cc8 100644
--- a/README.md
+++ b/README.md
@@ -11,9 +11,13 @@ Requires Go 1.12 or newer.
### Simple initialization
```go
-import "github.com/allegro/bigcache/v3"
+import (
+ "fmt"
+ "context"
+ "github.com/allegro/bigcache/v3"
+)
-cache, _ := bigcache.NewBig... | 2 | 2 | 1 | [{"id": "G0", "claim": "The old NewBigCache constructor should be kept for backward compatibility but marked deprecated, rather than having its signature changed to take a context.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In the benchmark tests it ... | null |
allegro__bigcache__49 | allegro/bigcache | 49 | defect | aa76879d59fa5d93c43680238227dbf7a53f5c28 | c58910b645ec378a97cc81fc7042a431f268b0de | Improve encapsulation of shards | - `Get`, `Set` methods are moved from `bigcache.go` to `shard.go`
- `initNewShard` has additional param `clock`
- all locks logic exists only inside shard
- get rid of `copyCurrentShardMap`
- `getIndex` and `oldest` methods added to shard
- introduced index variable in `getShard`
Next PR will introduce `Shard` ... | diff --git a/bigcache.go b/bigcache.go
index 93a9b45d..e876e0e3 100644
--- a/bigcache.go
+++ b/bigcache.go
@@ -2,7 +2,6 @@ package bigcache
import (
"fmt"
- "log"
"time"
)
@@ -56,7 +55,7 @@ func newBigCache(config Config, clock clock) (*BigCache, error) {
}
for i := 0; i < config.Shards; i++ {
- cache.... | 5 | 5 | 0 | [{"id": "G0", "claim": "The local variable `next` in copyKeys is declared inside the critical section and could be defined outside it, before `s.lock.RLock()`.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The return values of copyKeys are not obvi... | null |
allegro__bigcache__5 | allegro/bigcache | 5 | defect | f7cfb180af5778d882570404ff8c7740413ed9c2 | 553eac854d9a5818b86dee89217489a9a7d2cca6 | Little optimizations | Hi,
I've applied two optimizations to bigcache:
- provided ability to use other hash functions like [farmhash](http://www.infoq.com/news/2014/04/google_farmhash) instead of fnv
- ensured that number of shards is power of two thus eliminating modulo operation in favor of bit mask
Results aggregated across 10 runs (bef... | diff --git a/bigcache.go b/bigcache.go
index 5c372a56..08fcd1cb 100644
--- a/bigcache.go
+++ b/bigcache.go
@@ -5,6 +5,8 @@ import (
"sync"
"github.com/allegro/bigcache/queue"
+ "math"
+ "fmt"
)
const (
@@ -18,8 +20,9 @@ type BigCache struct {
shards []*cacheShard
lifeWindow uint64
clock clock
-... | 6 | 5 | 0 | [{"id": "G0", "claim": "Adding the external dependency github.com/dgryski/go-farm to this project is undesirable.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The hash function should probably be moved into Config, falling back to fnv64a when it is not... | null |
allegro__bigcache__50 | allegro/bigcache | 50 | defect | 7487d18e1f911654bd0913eed663f106320a0e6c | 76bbfab10b3886568b31a389156fe45c9a755874 | Adding logging interface & default logger | 👋 ohai !
This maintains backwards compatibility in terms of logging format, also keeps `Verbose` as main toggle.
IMO: it would look better to 🔪 `Verbose` , keep only `Logger` and have a default noop-logger. However, that means breaking api compatibility.
Fixes #36 | diff --git a/bigcache_test.go b/bigcache_test.go
index 88863d2e..14e2455a 100644
--- a/bigcache_test.go
+++ b/bigcache_test.go
@@ -371,6 +371,7 @@ func TestEntryBiggerThanMaxShardSizeError(t *testing.T) {
func TestHashCollision(t *testing.T) {
t.Parallel()
+ ml := &mockedLogger{}
// given
cache, _ := NewBigCac... | 3 | 1 | 0 | [{"id": "G0", "claim": "DefaultLogger should perhaps be a package variable rather than a function, like net/http.DefaultClient.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `var _ Logger = &log.Logger{}` compile-time safeguard needs a comment with ... | null |
allegro__bigcache__51 | allegro/bigcache | 51 | defect | 7ffd75d9082fc349681cc600498fd3b9c3cceb73 | 58d84aeecb68853bc64fe5f1d76b961d8c4706f2 | Added concurrent maps benchmark result. | Closes #38 as it's slower than the project's implementation.
Signed-off-by: Mike Lloyd <kevin.michael.lloyd@gmail.com> | diff --git a/README.md b/README.md
index 7b141c15..f1ef9d94 100644
--- a/README.md
+++ b/README.md
@@ -67,23 +67,24 @@ if entry, err := cache.Get("my-unique-key"); err == nil {
## Benchmarks
Three caches were compared: bigcache, [freecache](https://github.com/coocood/freecache) and map.
-Benchmark tests were made o... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add parallel benchmarks for the concurrent map — BenchmarkConcurrentMapSetParallel and BenchmarkConcurrentMapGetParallel — so it is benchmarked alongside the other caches.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
allegro__hermes__1060 | allegro/hermes | 1,060 | defect | 50dfa23757b200ff50a914ae2b5424b9e7258593 | 3a3e6848f3ce0b70dde196df54a2e0d650f537d6 | Added support for java 11 | Build passed with openjdk version "11.0.3" locally
| diff --git a/build.gradle b/build.gradle
index 3aaabb9645..d4737cf55b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -25,8 +25,8 @@ scmVersion {
hooks {
pre 'fileUpdate', [
- files: ['mkdocs.yml', 'hermes-console/package.json'],
- pattern: { v, p -> /("?version"?): (['"])$... | 4 | 3 | 1 | [{"id": "G0", "claim": "Use openjdk11 in the Travis CI configuration, as documented for Java 10 and later.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Not all of the added javax.xml.bind / javax.activation dependency lines in hermes-api/build.gradl... | null |
allegro__hermes__1083 | allegro/hermes | 1,083 | defect | 63edb6044b811d0a4df1a93ce0b546adc0a8b9c5 | 23931feef48b5b3f2f24370bda81cc235ff7a61f | Workload constraints (step 1) | PR adapts `SelectiveWorkBalancer` for use workload constraints. | diff --git a/build.gradle b/build.gradle
index d4737cf55b..5756846a75 100644
--- a/build.gradle
+++ b/build.gradle
@@ -70,6 +70,7 @@ allprojects {
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.7'
testCompile group: 'junit', name: 'junit', version: '4.11'
+ testCompile group: 'c... | 1 | 1 | 0 | [{"id": "G0", "claim": "The getConsumersNumber algorithm in WorkloadConstraints could be simplified so it has no code duplication, using a getOrDefault lookup as suggested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
allegro__hermes__1127 | allegro/hermes | 1,127 | defect | 29956434eaadee827341394ff4fba2a8e597acc6 | 2a593ffeeb7beafa0e74282e50c48ae9efab1b68 | Manually create consumer group/commit offsets on subscription creation. | #1081
`KafkaConsumerGroupsManager` creates `KafkaConsumer`, retrieves topic partitions and current offset for each partition sequentially, commits received offset and closes `KafkaConsumer`.
To enable this feature it is necessary to add following configuration to application.yml:
```
management:
consumer-group... | diff --git a/hermes-management/src/main/java/pl/allegro/tech/hermes/management/api/SubscriptionsEndpoint.java b/hermes-management/src/main/java/pl/allegro/tech/hermes/management/api/SubscriptionsEndpoint.java
index c6a716b577..b67d5d3867 100644
--- a/hermes-management/src/main/java/pl/allegro/tech/hermes/management/api... | 8 | 6 | 3 | [{"id": "G0", "claim": "The partition count should come from the exact Kafka topic rather than the configured default, because old or manually created topics may have a different number of partitions.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A... | null |
allegro__hermes__1139 | allegro/hermes | 1,139 | defect | e2332e7a80d374e199685d27433016bd2a09157b | 8ad9231a7df3a4b9ae64fe75ec2838c927c36d54 | Resolves #1126 | Redirects are disabled by default | Added global flag for enabling redirects. By default they are disabled. Solves #1126 | diff --git a/hermes-common/src/main/java/pl/allegro/tech/hermes/common/config/Configs.java b/hermes-common/src/main/java/pl/allegro/tech/hermes/common/config/Configs.java
index 2b827c07ae..cb176c4a89 100644
--- a/hermes-common/src/main/java/pl/allegro/tech/hermes/common/config/Configs.java
+++ b/hermes-common/src/main/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 'Location' header the pull request adds to the expectMessages stub response in RemoteServiceEndpoint is not required there and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
allegro__hermes__1293 | allegro/hermes | 1,293 | defect | 5b9da178a987fa0f8341b22b06c671382666a147 | 958d8e8edd6a7542a004c2973ecbdabfde10795c | Added possibility to tag topics with defined labels | Allowed labels are configurable via management properties. Currently labels are displayed on topic details page. | diff --git a/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Topic.java b/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Topic.java
index 402b9f3008..7267b152dd 100644
--- a/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Topic.java
+++ b/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Topic.java
@@ -1... | 3 | 3 | 2 | [{"id": "G0", "claim": "Topic is otherwise immutable, so getLabels() returning the raw Set exposes an interface that lets callers modify the topic's labels without creating a new Topic object.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "equals() ... | null |
allegro__hermes__1475 | allegro/hermes | 1,475 | defect | 5c7a0f23db1099378a97e51edba39534330f9e1e | cbaca964a5f1ddc396d8b9570f551d0237c79856 | Fix preview for avro topic with schemaId aware serialization | I've tried to write some integration test in ZookeeperMessagePreviewRepositoryTest but failed on missing dependencies to MessagePreviewLog which is inside hermes-frontend, do you see how to test it as a whole? | diff --git a/hermes-common/src/main/java/pl/allegro/tech/hermes/common/message/converter/AvroRecordToBytesConverter.java b/hermes-common/src/main/java/pl/allegro/tech/hermes/common/message/converter/AvroRecordToBytesConverter.java
index f975e09475..ea4f6fe347 100644
--- a/hermes-common/src/main/java/pl/allegro/tech/her... | 2 | 2 | 1 | [{"id": "G0", "claim": "The static ObjectMapper helper (createObjectMapper) added in MessagePreviewLogTest.groovy appears unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's preview behaviour for avro topics wit... | null |
allegro__hermes__1790 | allegro/hermes | 1,790 | defect | d4dc027c8ded905e8a074c4fd5139a880a5e9321 | dfeab2078ab2191e44b64265c069b1e7943a8a78 | Rewriting tests part 2 | 1. JmsConsumingTest
2. FilteringJsonTest
3. FilteringHeadersTest | diff --git a/integration-tests/build.gradle b/integration-tests/build.gradle
index 13d4c91009..ae82f6a783 100644
--- a/integration-tests/build.gradle
+++ b/integration-tests/build.gradle
@@ -17,6 +17,9 @@ dependencies {
testImplementation group: 'org.eclipse.jetty', name: 'jetty-reactive-httpclient', version: '3.0... | 2 | 2 | 1 | [{"id": "G0", "claim": "Perform JMS cleanup after all tests in JmsConsumingTest.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The filtering tests' check is insufficient because it only checks that the expected message was received and does not fail wh... | null |
allegro__hermes__1792 | allegro/hermes | 1,792 | defect | 191091adfc652219245d692135a3133ac97e3088 | fdc05e7c03f82f33002031d89b5b039a89dd40dc | migrate MetricsTest to new test framework | There are three tests remaining in `pl.allegro.tech.hermes.integration.MetricsTest` to migrate. I skipped them for now due to the following reasons:
* Two of them require an external dependency (Prometheus) that is not provided by HermesExtension. We will see if similar cases exist in other tests and then determine ho... | diff --git a/hermes-test-helper/src/main/java/pl/allegro/tech/hermes/test/helper/builder/GroupBuilder.java b/hermes-test-helper/src/main/java/pl/allegro/tech/hermes/test/helper/builder/GroupBuilder.java
index 3fe4e70e122..7f7fc24a994 100644
--- a/hermes-test-helper/src/main/java/pl/allegro/tech/hermes/test/helper/build... | 1 | 1 | 1 | [{"id": "G0", "claim": "The two messages in shouldReportMetricForFilteredSubscription should also be published until success (like the other publishes in the test) instead of a plain publishWithHeaders, so the metric assertion does not race with delivery.", "category": "testing", "verdict": "supported", "priority": "P1... | null |
allegro__hermes__1796 | allegro/hermes | 1,796 | defect | c81d8057fd4a507a9305aac22edbb941bd319f5e | b97cba2e36dbfda76458fb9e0a9417c4b2af37a3 | rewrite e2e tests | Rewrite tests which require custom frontend setup:
- buffer loading test
- graceful shutdown test
- https client publishing test
- publishing on avro topic without schema test
- attaching keep alive header test
Additionally reuse kafka, zk and schema registry between those tests | diff --git a/hermes-test-helper/src/main/java/pl/allegro/tech/hermes/test/helper/containers/KafkaContainerCluster.java b/hermes-test-helper/src/main/java/pl/allegro/tech/hermes/test/helper/containers/KafkaContainerCluster.java
index 0f9bacb3f7..d9f98f7674 100644
--- a/hermes-test-helper/src/main/java/pl/allegro/tech/he... | 3 | 3 | 0 | [{"id": "G0", "claim": "Don't use Ports.nextAvailable() for test ports because it opens and closes a socket, potentially leaving it in the TIME_WAIT state and sometimes leading to \"Address already in use\" errors; instead use ephemeral ports by passing 0.", "category": "correctness", "verdict": "supported", "priority"... | null |
allegro__hermes__1973 | allegro/hermes | 1,973 | defect | ff002054aee37619800ec97d5e0edd4c65e73176 | 56cbec0f9598d797122e6ae0be968bd229bcde6f | Fix bug related to returning null for createdAt/modifiedAt when anonymizing subscription | When subscription contains oauth policy or endpoint with password it is anonymized before returning it for GUI. The anonymization process didn't set proper createdAt/modifiedAt fields so the GUI displayed "Invalid format" for the fields. This PR fixes this issue. | diff --git a/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Subscription.java b/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Subscription.java
index 2fce9122fcd..b6a9fab6de3 100644
--- a/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Subscription.java
+++ b/hermes-api/src/main/java/pl/allegro/tech/herm... | 3 | 3 | 3 | [{"id": "G0", "claim": "In Subscription.createSerialSubscription the reviewer asks whether createdAt and modifiedAt parameters may be added to the method signature and passed explicitly, since the method is used only by SubscriptionBuilder.build(), which would simplify the build() changes.", "category": "design", "verd... | null |
allegro__hermes__206 | allegro/hermes | 206 | defect | bc31d515f3ceb63d6f1473bc4737f40851ebfae7 | 47447f51f4250e6f1df9fca67285a536b87237ef | Fix discarded messages log | Fixing order of discarded messages log, more restrictive tests.
| diff --git a/hermes-api/src/main/java/pl/allegro/tech/hermes/api/PublishedMessageTrace.java b/hermes-api/src/main/java/pl/allegro/tech/hermes/api/PublishedMessageTrace.java
index 9078eb29d1a..9516ab10b2f 100644
--- a/hermes-api/src/main/java/pl/allegro/tech/hermes/api/PublishedMessageTrace.java
+++ b/hermes-api/src/mai... | 3 | 2 | 2 | [{"id": "G0", "claim": "PublishedMessageTrace.equals does not need to compare every field; messageId alone is enough.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SentMessageTrace.equals should not require every field to be equal; test code requirement... | null |
allegro__hermes__209 | allegro/hermes | 209 | defect | dab96b2be761887e10f9668502899e730f7fceda | c8610aa065a8bf2015086eedaf9e594a123fd7af | 204 initial version of new consumer runtime model | Initial version of new consumer runtime model. Designed to be extended by introducing more advanced workload spread algorithms.
Two basic implementations are provided:
- **legacy.mirror** - consumers are mirroring each other without using new runtime model (legacy behaviour)
- **mirror** - consumers are mirroring each... | diff --git a/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Subscription.java b/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Subscription.java
index e1a9c105530..5ea9af32313 100644
--- a/hermes-api/src/main/java/pl/allegro/tech/hermes/api/Subscription.java
+++ b/hermes-api/src/main/java/pl/allegro/tech/herm... | 4 | 2 | 1 | [{"id": "G0", "claim": "The new config key should be spelled out as \"algorithm\" instead of \"alg\" (rename CONSUMER_WORKLOAD_ALG / consumer.workload.alg).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `topic$subscription` subscription... | null |
allegro__hermes__224 | allegro/hermes | 224 | defect | 148992e37b844c2a034b0e30ed61399dc15ef844 | 5918e7bd7e687f6c3e657b9509c98357ce46999d | 223 introduced RetryListener for more stable integration test suite | Introducing state-of-the-art retrying/stabilizing technology. False negatives are skipped and retried. Unstable tests can be found and reported in the next iteration if I figure out how to do it sensibly.
| diff --git a/hermes-test-helper/build.gradle b/hermes-test-helper/build.gradle
index 2de0ed7f94..f48af9d0d3 100644
--- a/hermes-test-helper/build.gradle
+++ b/hermes-test-helper/build.gradle
@@ -35,4 +35,5 @@ dependencies {
compile group: 'org.assertj', name: 'assertj-core', version: '3.1.0'
compile group: 'n... | 1 | 1 | 0 | [{"id": "G0", "claim": "The testng dependency can be removed from the hermes-integration build file now that testng comes via hermes-test-helper.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
allegro__hermes__358 | allegro/hermes | 358 | defect | 3752566504ce0ac49a1a31824d147c416aa45fd0 | af4275cb6b47a0cab7e2ec48a90ce2bd10758a41 | hermes client explicit Avro support | This PR adds explicit JSON and AVRO support in Hermes Client. I also refactored tests to Groovy to take advantage of advanced parametrization when testing multiple sender implementations.
| diff --git a/build.gradle b/build.gradle
index a4e8ea5890e..2dc05da0e70 100644
--- a/build.gradle
+++ b/build.gradle
@@ -48,7 +48,7 @@ allprojects {
jackson : '2.5.1',
jersey : '2.12',
curator : '2.7.0',
- wiremock : '1.47',
+ wiremock : '1... | 3 | 3 | 1 | [{"id": "G0", "claim": "The documentation example calls a method named `publisAvro` instead of `publishAvro`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Avro binary content type should not carry a charset parameter since it is binary data ... | null |
allegro__hermes__369 | allegro/hermes | 369 | defect | 46c358c48b786ef4ddeb86b3174e89de9c2a09b6 | 07cf6f46cf3e5906d7ecaf5374a96e1552d64d13 | 363 Search endpoint | - Query endpoint for all data
- New LIKE operator
- Closes #363
| diff --git a/hermes-api/src/main/java/pl/allegro/tech/hermes/api/endpoints/HermesPathParams.java b/hermes-api/src/main/java/pl/allegro/tech/hermes/api/endpoints/HermesPathParams.java
deleted file mode 100644
index 0c9e5c70018..00000000000
--- a/hermes-api/src/main/java/pl/allegro/tech/hermes/api/endpoints/HermesPathPar... | 3 | 2 | 0 | [{"id": "G0", "claim": "The reviewer asks for the reason GroupService was switched from @Service to @Component, indicating @Service should be the way to go for consistency with the other services.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `expecte... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.