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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
samber__lo__678 | samber/lo | 678 | defect | 3bc887c57ceb54d28330cfaca0bdf4ba6c4f87e2 | 8cc470931c709230c1aef3da08b83a519d5cba0a | fix: more consistent panic strings | I noticed some inconsistencies in panic strings during my work on #672. I went with the pattern used in `lo.RandomString` and `o.ChunkString` with the function name prefix and lower case message. I don't mind what convention is used as long as it's consistent.
Note that I haven't touched the panics returned from `Must... | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index cb39e01cf..934666a4f 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -17,6 +17,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
+ version: 'v2.4'
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The workflow should pin/use the latest golangci-lint version instead of v2.4.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
samber__lo__710 | samber/lo | 710 | defect | da644a79d390bdeea265b3bdf43b9b6e67bed873 | 890e997491449348eed6fa603a9309f8f8b79368 | feat: Optimize UniqMap to reduce unnecessary slice preallocation | **Summary:**
The current implementation of `UniqMapOld` preallocates the result slice with the same capacity as the input collection, even though the number of unique elements is usually much smaller.
This leads to **excessive memory allocation** and **higher memory usage**.
The proposed change adjusts the allocat... | diff --git a/slice.go b/slice.go
index d35d27669..1fb61bcca 100644
--- a/slice.go
+++ b/slice.go
@@ -36,17 +36,16 @@ func Map[T, R any](collection []T, iteratee func(item T, index int) R) []R {
// UniqMap manipulates a slice and transforms it to a slice of another type with unique values.
// Play: https://go.dev/play... | 1 | 1 | 1 | [{"id": "G0", "claim": "Replace slices.Sort with sort.Strings and the \"slices\" import with \"sort\" in slice_example_test.go and slice_test.go, since Go < 1.21 does not support slices.Sort.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
samber__lo__711 | samber/lo | 711 | defect | 1287859ee0b9cf3a9b28e8f30df977756daba038 | 62154bdd2bd71814ceab762d24ab4b93a49161ad | fix(it.Mode): align behavior with lo.Mode and ensure consistent slice… | fix #709
Fixed inconsistent slice capacity between lo.Mode and it.Mode.
Reused slice memory with append(mode[:0], item) and added a test
to ensure len(result) == cap(result).
<img width="1055" height="232" alt="image" src="https://github.com/user-attachments/assets/2981d935-36a9-4426-b765-fd9c57c80ab9" /> | diff --git a/it/math.go b/it/math.go
index 6b3cfa7c9..d59150513 100644
--- a/it/math.go
+++ b/it/math.go
@@ -132,7 +132,7 @@ func MeanBy[T any, R constraints.Float | constraints.Integer](collection iter.Se
// Long heterogeneous input sequences can cause excessive memory usage.
// Play: https://go.dev/play/p/c_cmMMA5E... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asks that the TestModeCapacityConsistency test added for it.Mode be replicated in the core (main) package's math_test.go as well.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
samber__lo__714 | samber/lo | 714 | defect | f3e6605d3ff8fc8b8ca048150626915cb2f799d7 | 16d73a1875633882e85b853644868ebdf1e0484e | Add a Concat slice function. | This is a variadic wrapper around Flatten that allows callers to assemble one slice from many slices without first joining them into a slice-of-slices. | diff --git a/slice.go b/slice.go
index 1fb61bcca..f1949c432 100644
--- a/slice.go
+++ b/slice.go
@@ -261,6 +261,7 @@ func PartitionBy[T any, K comparable, Slice ~[]T](collection Slice, iteratee fun
}
// Flatten returns a slice a single level deep.
+// See also: Concat
// Play: https://go.dev/play/p/rbp9ORaMpjw
fu... | 1 | 1 | 0 | [{"id": "G0", "claim": "The TestConcat assertion should be written as is.Equal([]int{0, 1, 2, 3, 4, 5}, result1), putting the expected value first to match the assert library's (expected, actual) argument convention.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
samber__lo__732 | samber/lo | 732 | defect | ed8ee742a671888417db3a55dc0b1afe0469f7f6 | d987b538fa80aa3c6c6f2e878fb80698cc767ede | Add Clone function to return shallow copy of slice collections | `note`: per issue #656 , this is the second attempt after cleaning up the code.
---
This PR adds a new `Clone` function to the slice utilities that returns a shallow copy of any slice collection.
## Implementation
The `Clone` function uses the efficient `append(collection[:0:0], collection...)` pattern to ... | diff --git a/README.md b/README.md
index 18abf7cae..30b739c00 100644
--- a/README.md
+++ b/README.md
@@ -140,6 +140,7 @@ Supported helpers for slices:
- [Slice](#slice)
- [Replace](#replace)
- [ReplaceAll](#replaceall)
+- [Clone](#clone)
- [Compact](#compact)
- [IsSorted](#issorted)
- [IsSortedByKey](#issortedbyk... | 5 | 5 | 1 | [{"id": "G0", "claim": "The Clone entry must be removed from the `it` package section of docs/static/llms.txt because Clone does not exist in the `it` package.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The llms.txt core-section line should re... | null |
samber__lo__760 | samber/lo | 760 | defect | 96bff97bc52b68201ebfadec2bceb16e8ec5d5a4 | 04570750e4510d2a5f8fd67bf77015347f699fdc | feat: add Take, TakeWhile, FilterTake, Window, and Sliding functions | Add five new slice manipulation functions with tests, examples, and documentation.
## New Functions
### Take
Safely takes the first n elements from a slice. Handles edge cases and creates a copy to avoid mutating the original.
**Production use cases:**
- Pagination: Get first page of results
- Top N items: ... | diff --git a/docs/data/core-chunk.md b/docs/data/core-chunk.md
index 7c088a784..749b52105 100644
--- a/docs/data/core-chunk.md
+++ b/docs/data/core-chunk.md
@@ -12,6 +12,8 @@ similarHelpers:
- core#slice#partitionby
- core#slice#drop
- core#slice#flatten
+ - core#slice#window
+ - core#slice#sliding
- core... | 4 | 3 | 0 | [{"id": "G0", "claim": "Rename FilterTake to TakeFilter, since every combination of helpers has such naming in lo.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "This helper is currently missing in the docs/data directory.", "category": "documen... | null |
samber__lo__791 | samber/lo | 791 | defect | b6d1bf3749becba82baac0d07db79b6c2255382e | ed15ab0f36f98ffd9bd91a2fa77b43ea8aed7595 | Add iterator slice helpers | This PR is a [follow‑up](https://github.com/samber/lo/pull/760) to the previous slice‑helpers PR. It adds iterator versions of Take, TakeWhile, and TakeFilter along with tests, examples, and docs.
| diff --git a/channel.go b/channel.go
index 7717ea94c..28778cb3d 100644
--- a/channel.go
+++ b/channel.go
@@ -325,3 +325,69 @@ func FanOut[T any](count, channelsBufferCap int, upstream <-chan T) []<-chan T {
return channelsToReadOnly(downstreams)
}
+
+// Distinct returns a channel with duplicate values removed.
+//... | 8 | 8 | 4 | [{"id": "G0", "claim": "it.Take's stop logic should be condensed into a single condition, as in the other helpers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Distinct channel helpers' docs should at least mention that memory usage is unb... | null |
samber__mo__23 | samber/mo | 23 | defect | 91abb8bc055654203364721172a4b60eece0d4e5 | 5d1fc3f7696e9b1d25a1970b727444ed90bbe15d | feat(option): if T is sql.Scanner, use it in Scan() | When trying to scan JSON columns into a struct, I noticed it fails with an error.
This should fix it.
What do you think? | diff --git a/option.go b/option.go
index 3e8ef4f..31cb13b 100644
--- a/option.go
+++ b/option.go
@@ -2,6 +2,7 @@ package mo
import (
"bytes"
+ "database/sql"
"database/sql/driver"
"encoding/gob"
"encoding/json"
@@ -257,7 +258,7 @@ func (o *Option[T]) GobDecode(data []byte) error {
return o.UnmarshalBinary(... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a test for the case where the scanned Option (optionalScanner) is of type mo.None.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
samber__mo__49 | samber/mo | 49 | defect | 1fa409c999fc453a65075ae8f14463a5f8282590 | ef7a827b54634067f4503675656e33284f49a814 | Fix option to handle type conversion | Conversion doesn't happen automatically when using `mo.Option` to accept from drivers, or inside gorm model structs.
The test cases assert the desired behavior, and fail on upstream before this PR, but pass after the changes made.
This supersedes https://github.com/samber/mo/pull/34, which can now be closed once ... | diff --git a/.gitignore b/.gitignore
index 3aa3a0a..7b9b3e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,3 +34,4 @@ go.work
cover.out
cover.html
.vscode
+.idea
\ No newline at end of file
diff --git a/option.go b/option.go
index 9955094..dc91f7a 100644
--- a/option.go
+++ b/option.go
@@ -297,7 +297,7 @@ func (o *... | 3 | 2 | 1 | [{"id": "G0", "claim": "Make the Scan/Value type-conversion code compatible with Go versions below 1.22 (which mo supports) by splitting the version-specific code into option.go, option_go118.go and option_go122.go guarded by build constraints such as //go:build !go1.22.", "category": "correctness", "verdict": "support... | null |
samber__mo__9 | samber/mo | 9 | defect | a9c34fb46ad5848dee1c7c468d112d2781e397b7 | 96570ee0c6815d359b2d4ca37483fb57d54f53a5 | feat: marshal/unmarshal JSON | Allows to use Option fields in an API, which is really useful for PATCH requests for example. | diff --git a/option.go b/option.go
index d4c3d47..ef8f2e9 100644
--- a/option.go
+++ b/option.go
@@ -1,11 +1,14 @@
package mo
-import "fmt"
+import (
+ "encoding/json"
+ "fmt"
+)
var optionNoSuchElement = fmt.Errorf("no such element")
// Some builds an Option when value is present.
-func Some[T any](value T) O... | 5 | 5 | 3 | [{"id": "G0", "claim": "The Option type and its constructors should not require T to be comparable and should accept any type instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "UnmarshalJSON must differentiate null from the zero value such as an emp... | null |
samber__oops__107 | samber/oops | 107 | defect | 13cd300e3bcfa825c71819e106b7955a3e9ccbf2 | 604f348b3564c9672a58c7cf3ab491ee390da4db | fix: deep review improvements — bug fixes, docs, and test coverage | - Fix README typos: undefined var `err` -> `err1`, `.Tag()` -> `.Tags()`
- Deep-copy tags in builder.copy() with slices.Clone to prevent shared-array bugs
- Add panic recovery to lazyValueEvaluation (produces descriptive string on panic)
- Replace lo.Assign with maps.Clone in builder.copy() (stdlib, idiomatic)
- Docume... | diff --git a/README.md b/README.md
index 2ec2074..69c8371 100644
--- a/README.md
+++ b/README.md
@@ -348,7 +348,7 @@ oops.SourceFragmentsHidden = false
err1 := oops.Errorf("permission denied")
// ...
-err2 := oops.Wrapf(err, "something failed")
+err2 := oops.Wrapf(err1, "something failed")
fmt.Println(err2.(oops... | 2 | 1 | 1 | [{"id": "G0", "claim": "copy()'s switch to maps.Clone makes context, userData and tenantData nil for a zero-value or nil-map builder, so methods like With, User, Tenant and WithContext will panic on assignment; ensure these fields are always non-nil in copy() (clone then fall back to an empty map) to preserve the previ... | null |
samber__oops__109 | samber/oops | 109 | defect | b85b04a841c2c6a85d60a88860cbac17f9f1f631 | fd0b9c63e4314ba5b2761c27dd93f1766b6c157f | feature/caller skip | - **feat: add CallerSkip and FrameSkip for stack trace control**
- **docs: add README docs for CallerSkip and FrameSkip; fix FrameSkip matching to use strings.Contains**
- **fix: FrameSkip uses exact equality for file path and short function name**
- **test: add tests for CallerSkip and FrameSkip**
| diff --git a/README.md b/README.md
index 69c8371..8b753fd 100644
--- a/README.md
+++ b/README.md
@@ -142,6 +142,7 @@ GoDoc: [https://godoc.org/github.com/samber/oops](https://godoc.org/github.com/s
| `.Assert(condition bool) OopsErrorBuilder` | Panics if condition is false. Assertions can ... | 5 | 4 | 3 | [{"id": "G0", "claim": "CallerSkip is applied as a raw runtime.Callers skip, so CallerSkip(1) often only skips internal frames that would be filtered anyway and does not reliably skip a user helper frame; the reviewer asks that CallerSkip be defined in terms of user-visible frames so that CallerSkip(1) consistently dro... | null |
samber__oops__36 | samber/oops | 36 | defect | 1a99714a330e44f9c5ea99d5fb7e976dccf60d29 | a0a1027d350f3d88f86750d454620165b14098b3 | fix: change User and Tenant param type to ...any | Hey 👋,
`oops.User()` only accept `map[string]any` as second argument but the underlying function is expecting `...any` (chain of key/value)
This is the same for `oops.Tenant()`
This result in this code working
```golang
oops.Hint("test").User("userID", "firstname", "John")
```
But this code does not
```g... | diff --git a/README.md b/README.md
index 157a61f..8621487 100644
--- a/README.md
+++ b/README.md
@@ -201,9 +201,9 @@ The `oops.OopsError` builder must finish with either `.Errorf(...)`, `.Wrap(...)
| `.Trace(string)` | `err.Trace() string` | Add a transaction id, trace id, cor... | 7 | 6 | 4 | [{"id": "G0", "claim": "Changing the oops.User/oops.Tenant parameter type to ...any might cause a breaking change; the parameters should support three interpretations (slog.Attr values, alternating string key/value pairs, and map[string]any), as slog.Group/slog.With do.", "category": "design", "verdict": "supported", "... | null |
samber__oops__50 | samber/oops | 50 | defect | e3d0bb6495c4eeae944b76cabb38cdbd8cebed5e | f905622d11f50bc6fbebf8e4cfa1f1bcd996cff4 | Add Zerolog formatter | Add Zerolog formatter
Log entry looks like this:
```json
{
"level": "error",
"stack": "Oops: permission denied\n --- at ... main()",
"error": {
"code": "iam_authz_missing_permission",
"domain": "authz",
"context": {
"hello": "world",
"user_id": 1234,
"permission": "pos... | diff --git a/Makefile b/Makefile
index accd04f..6f0283d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,9 @@ build:
test:
go test -race -v ./...
+ go -C loggers/zerolog test -race -v ./...
watch-test:
- reflex -t 50ms -s -- sh -c 'gotest -race -v ./...'
+ reflex -t 50ms -s -- sh -c 'gotest -race -v ./... && go -C... | 3 | 3 | 0 | [{"id": "G0", "claim": "The explicit `go -C loggers/zerolog test` invocation in the Makefile is very likely unnecessary since the submodule is declared in go.work, and the Makefile should instead be reworked (e.g. with `MODULES=$(shell go list -m)`) to cover all modules, including logrus.", "category": "design", "verdi... | null |
samber__oops__94 | samber/oops | 94 | defect | 56a34a134482ecef89503ea8a9ea8f68af29d2c6 | 5866fc767b75fc3816e2a8abbaf58aa692396181 | feat(code): allow any code type | This PR addresses #33 by allowing oops.Code(...) to accept multiple code types (e.g. int and string) instead of only string.
Changes:
- Change Code(code string) to Code(code any) on both oops.Code(...) and OopsErrorBuilder.Code(...).
- Change OopsError.Code() return type from string to any.
- Update str... | diff --git a/README.md b/README.md
index df7c784..76e657c 100644
--- a/README.md
+++ b/README.md
@@ -181,7 +181,7 @@ The `oops.OopsError` builder must finish with either `.Errorf(...)`, `.Wrap(...)
| --------------------------------------- | --------------------------------------- | -----------------------------------... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new inline recursion in Code() should use the existing recursive getDeepestErrorAttribute function.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
samcday__phrog__173 | samcday/phrog | 173 | defect | 04211b0f14ea1b44826634722cefd46c7b906775 | 6c5d8d96e9aa8c82147f7af39b0fb4c22cb27d36 | Initial i18n support | ### Motivation
- Ensure existing `phosh` translations remain the default while adding a separate gettext domain for phrog-specific strings.
- Initialize gettext at startup without aborting application startup on i18n errors so the app still runs with fallback English.
- Scope phrog-specific lookups to a `phrog` domai... | diff --git a/Cargo.toml b/Cargo.toml
index 77e67901..c00f3bab 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -18,6 +18,7 @@ async-global-executor = "3.0.0"
futures-util = "0.3.30"
log = "0.4.22"
lazy_static = "^1.4"
+gettextrs = "0.7"
[dependencies.glib]
version = "0.18"
diff --git a/src/lib.rs b/src/lib.rs
index 9... | 5 | 5 | 2 | [{"id": "G0", "claim": "The shared gettext constant should be named TEXT_DOMAIN instead of GETTEXT_PACKAGE.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fake greetd password prompt should look up its translation via the TEXT_DOMAIN constan... | null |
samclarke__SCEditor__675 | samclarke/SCEditor | 675 | defect | 03e1a352a581fa6ae9822a822051e9ed6faedd19 | 29acb81d670a0fbd8bf11543e0182c1cf5098315 | Remove empty "sceditor-nlf" paragraph in XHTML format | Updating XHTML format with the code from bbcode format to remove empty "sceditor-nlf" paragraphs.
Addresses #673 | diff --git a/src/formats/xhtml.js b/src/formats/xhtml.js
index e59347fa0..1f802f08b 100644
--- a/src/formats/xhtml.js
+++ b/src/formats/xhtml.js
@@ -12,6 +12,12 @@
(function (sceditor) {
'use strict';
+ var IE_VER = sceditor.ie;
+
+ // In IE < 11 a BR at the end of a block level element
+ // causes a double line b... | 2 | 2 | 2 | [{"id": "G0", "claim": "If the sceditor-nlf node isn't empty then the format should probably remove the sceditor-nlf class (dropping the class attribute if it becomes empty).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add regression tests to tes... | null |
samclarke__SCEditor__855 | samclarke/SCEditor | 855 | defect | 60d47efc8a21a9c1183376c19211f9061effeb42 | ae8d088a522543b2de67554c4eaf55ee62b2ca65 | Add wildcard BBCode tag matching | Adds ability to use wildcards to match tags and combines moves styles to the style attribute.
This also renames the `attrMatch` property to `strictMatch`.
Closes #589 | diff --git a/src/formats/bbcode.js b/src/formats/bbcode.js
index 0d22e208..a65eec2f 100644
--- a/src/formats/bbcode.js
+++ b/src/formats/bbcode.js
@@ -2154,18 +2154,18 @@
quoteType: QuoteType.auto,
/**
- * Method to use when matching attributes.
+ * If to use strict matching on attributes and styles.
*
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The 'Missing title' assertions in the strict and non-strict matching tests pass an element that still has a title attribute ('<div title=\"not test\" test=\"value\"></div>'), so they do not exercise the missing-title case; the reviewer suggests changing the input to '<div test=\"value\"></div>'.... | null |
samee__obliv-c__27 | samee/obliv-c | 27 | defect | 484c0df555ba89ca95e9453b4072672f6b3e0d0d | 5c5a0d48e6dbae4359e39d9d61961afa769413b7 | Fixed stdio transports, which were broken by recent updates. | Also, I added alternative instructions to the readme for the millionaires' test.
It's worth noting that protocol splitting definitely doesn't work when using stdio. I'm not sure how it would be possible to rectify that. Perhaps it would be best simply to refuse to split (return false or something like that)? | diff --git a/src/ext/oblivc/obliv_bits.c b/src/ext/oblivc/obliv_bits.c
index fedb52c52..947d92214 100644
--- a/src/ext/oblivc/obliv_bits.c
+++ b/src/ext/oblivc/obliv_bits.c
@@ -43,16 +43,23 @@ static int stdioSend(ProtocolTransport* pt,int dest,const void* s,size_t n)
static int stdioRecv(ProtocolTransport* pt,int s... | 2 | 2 | 0 | [{"id": "G0", "claim": "ocSplitProto should simply refuse to split (return false) for protocols that cannot be split, rather than multiplexing over the transport.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The added ocCanSplitProto definition shoul... | null |
sammchardy__python-binance__1475 | sammchardy/python-binance | 1,475 | defect | 1867c30bee7935cd8f10930dafa9f374b5bc43b9 | c9919142eb96b23f28c304b3e0ac94cad2096ce8 | added cancel_replace_order, cancel_all_open_orders and cancel_all_open_margin_orders to client.py | - added cancel_replace_order()
- added cancel_all_open_orders()
- added cancel_all_open_margin_orders()
- enum TIME_IN_FORCE_GTD (good till date)
- parameters for get_current_order_count to set recvWindow | diff --git a/binance/client.py b/binance/client.py
index df39aeab3..7119dd8ed 100755
--- a/binance/client.py
+++ b/binance/client.py
@@ -2160,6 +2160,115 @@ def cancel_order(self, **params):
"""
return self._delete("order", True, data=params)
+ def cancel_all_open_orders(self, **params):
+ ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The params passed to get_current_order_count are unnecessary because the rateLimit/order endpoint accepts no parameters, so the added data=params should be removed.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new methods... | null |
sammchardy__python-binance__1610 | sammchardy/python-binance | 1,610 | defect | efc2f5c452b12af7a0bece22894d22935fa17724 | c4408279d4c53eb29fc06942dded04bab503af19 | feat: add demo trading support | - Fixes proxy use for websockets
- Adjusts mock tests for demo domain
- Feat: allows running tests in parallel
- Simplifies code by using tox instead of both tox and github action matrix strategy
- Update github action verions | diff --git a/README.rst b/README.rst
index 088a3227..d597f57b 100755
--- a/README.rst
+++ b/README.rst
@@ -63,7 +63,8 @@ Features
- Implementation of all General, Market Data and Account endpoints.
- Asyncio implementation
-- Testnet support for Spot, Futures and Vanilla Options
+- Demo trading support (by providin... | 6 | 2 | 2 | [{"id": "G0", "claim": "When demo=True and testnet=False, the websocket API URL selection should use WS_API_DEMO_URL instead of the production URL.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The unnecessary blank line added after margin_socket s... | null |
sammcj__mcp-devtools__107 | sammcj/mcp-devtools | 107 | defect | 0fff6102b102e2044b0b80570c5a1d7d0111c6c2 | 8508612d930fe5b385ce1adf9b263543db807064 | fix(package_versions): npm package sizes | __Before (Bug):__
```json
{
"name": "typescript",
"latestVersion": "unknown",
"skipped": true,
"skipReason": "Failed to fetch package info: failed to parse npm package info: unexpected end of JSON input"
}
```
__After (Fixed):__
```json
{
"name": "typescript",
"currentVersion": "4.9.5",
... | diff --git a/internal/tools/packageversions/utils.go b/internal/tools/packageversions/utils.go
index 1128b4aa..20fe6658 100644
--- a/internal/tools/packageversions/utils.go
+++ b/internal/tools/packageversions/utils.go
@@ -11,7 +11,6 @@ import (
"regexp"
"strconv"
"strings"
- "sync"
"time"
"golang.org/x/tim... | 7 | 5 | 2 | [{"id": "G0", "claim": "The custom contains/containsAt helpers in the regression test reimplement standard-library functionality; use strings.Contains instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The concurrent test sends nil into the... | null |
sammcj__mcp-devtools__122 | sammcj/mcp-devtools | 122 | defect | 2321f7a757c30dd6cda29eeae43d87870c9e4fa0 | a93a098ac7ff9d517d4062b537380eb62de51a7f | feat: token usage estimation benchmark for tools | - feat: introduce benchmark test for estimated token count of enabled tools and build/test time
---
This pull request introduces a system for benchmarking and controlling the token cost of all registered tools, with the goal of preventing excessive prompt context usage and making it easier to optimize or add new ... | diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml
index 9388a430..2b205055 100644
--- a/.github/workflows/build-and-release.yml
+++ b/.github/workflows/build-and-release.yml
@@ -79,6 +79,12 @@ jobs:
- name: Test
run: TEST_FAST=1 make test
+ - name: Che... | 3 | 3 | 1 | [{"id": "G0", "claim": "The os.Exit(1) call in the -v branch is unreachable because t.Fatal() already stops the test when failed is true, so the block should be restructured or removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The || normalise... | null |
sammcj__mcp-devtools__126 | sammcj/mcp-devtools | 126 | defect | cf56576e06f5a6098fbbce6d6462eb8a3bd5ae78 | b4d64857d0734a71a093c1566db1b918cf60320f | enhancement: minor calculator tool improvements | - enhancement: minor calculator tool improvements
---
This pull request adds support for exponentiation (`^`) to the calculator tool, updates documentation and tests to reflect this new functionality, and introduces a new utility for listing all tool definitions as seen by MCP clients. The changes improve both th... | diff --git a/Makefile b/Makefile
index 65afe61a..02901d09 100644
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,11 @@ benchmark-tokens:
$(if $(HIGH_THRESHOLD),-high-threshold=$(HIGH_THRESHOLD)) \
$(if $(ALLOW_HIGH_TOKENS),-allow-high-tokens=$(ALLOW_HIGH_TOKENS))
+# List all tool definitions as seen by MCP clients
+... | 2 | 2 | 0 | [{"id": "G0", "claim": "Line 1 of tests/benchmarks/list_tools_test.go is a malformed duplicate build tag `// go:build listtools` (space after //) and should be removed, keeping only the correct `//go:build listtools` directive on line 2.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"... | null |
sammcj__mcp-devtools__138 | sammcj/mcp-devtools | 138 | defect | 48b933920a4c68f4be9abedaf8a8abb5c325f383 | db944a8523dcae8d74852cbd377ac694211f08ac | refactor: improve tooling enablement | - refactor: registry tooling enablement logic
- change: disable find_long_files tool by default
---
This pull request refactors the tool enablement logic to enforce a "secure-by-default" policy, ensuring all new tools are disabled unless explicitly approved. It updates both documentation and code, and introduces... | diff --git a/CLAUDE.md b/CLAUDE.md
index 71a6c66d..4785e950 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -93,6 +93,17 @@ All tools follow this pattern:
4. Implement `Execute()` for tool logic
5. Use shared logger and cache for consistency
+## New Tool Registration Checklist
+
+**CRITICAL**: Before registering a new to... | 3 | 2 | 1 | [{"id": "G0", "claim": "In TestRegistry_DisabledFunctions_Empty the manual save/restore of DISABLED_TOOLS and ENABLE_ADDITIONAL_TOOLS should be replaced with the WithEnv helper this PR introduces, since the manual pattern defeats the purpose of the new helper.", "category": "maintainability", "verdict": "supported", "p... | null |
sammcj__mcp-devtools__140 | sammcj/mcp-devtools | 140 | defect | 66125aed7856c7452d26319b237bc98461ad0203 | 867e627f5c4b4dfa69cfbee313681f6833fc9bb3 | improve github tool, parallelise tests | - Improve Github tool handling of forks
- Parallelise tests
---
This pull request introduces several improvements to GitHub pull request handling, testing infrastructure, and developer documentation. Most notably, it enhances fork-based pull request support by exposing more detailed repository and branch infor... | diff --git a/CLAUDE.md b/CLAUDE.md
index 4785e950..876de9f2 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -10,7 +10,10 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
- `make run-http` - Build and run server with HTTP transport on port 18080
### Testing
-- `make test` - Run all tests... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test function TestCreateFileNotFoundError should call t.Parallel() at the beginning to match the parallelization pattern used across the test suite in this PR.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
sammcj__mcp-devtools__146 | sammcj/mcp-devtools | 146 | defect | f3d597f577558c9a89ade90521ccf78bdbe67a7a | d6cfd20905c0fae426a61595fa575806dd044613 | Refactor: Improve signal termination handling and logging | - refactoring stop and cleanup logic
---
This pull request primarily introduces improvements to the LSP client cleanup routine in `client_cache.go`, making it more robust and idempotent, and performs a comprehensive rename of various analysis-related function names and comments from American to British English sp... | diff --git a/internal/tools/code_rename/client_cache.go b/internal/tools/code_rename/client_cache.go
index e9d49651..f74f6130 100644
--- a/internal/tools/code_rename/client_cache.go
+++ b/internal/tools/code_rename/client_cache.go
@@ -11,8 +11,9 @@ import (
// Global cleanup management
var (
- cleanupOnce sync.Once... | 5 | 4 | 3 | [{"id": "G0", "claim": "logger.Fatalf on the app.Run error path writes to stderr in stdio mode and will corrupt the MCP protocol stream; error handling should respect the transport mode instead of unconditionally calling Fatalf.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existi... | null |
sammcj__mcp-devtools__155 | sammcj/mcp-devtools | 155 | defect | 5fa2d18ef28a90d7b6221cd10138df5ecb2b2b26 | c9c1ca3b249757947eb3d605b4d505f48bf6878a | feat: add package cooldown, default to 72hrs for npm only | - feat: add package cooldown, default to 72hrs for npm only
The Package Search tool includes an optional "dependency cooldown" feature that helps protect against supply chain attacks. Most supply chain attacks have a short exploitation window (hours to days) before being detected and removed. By waiting a configurab... | diff --git a/README.md b/README.md
index 810384db..63034de7 100644
--- a/README.md
+++ b/README.md
@@ -442,6 +442,8 @@ All environment variables are optional, but if you want to use specific search p
- `SEARXNG_BASE_URL` - Enable SearXNG search provider by providing the base URL (e.g. `https://searxng.example.com`)
-... | 16 | 6 | 2 | [{"id": "G0", "claim": "The unchecked type assertion `cached.(osvCacheEntry)` could panic if the cached value is not of that type; use a type-checked assertion that deletes the bad entry and continues with a fresh lookup.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i... | null |
sammcj__mcp-devtools__158 | sammcj/mcp-devtools | 158 | defect | 082535f596352a3008918b58596a5a3f12934c89 | 5830c5868013228d63b5bd29a8f3d22e094f5f31 | feat: add excel tool to fetch all sheet data | This pull request introduces a new feature to the Excel tool: the ability to export all data from one or more sheets in an AI-agent-friendly format (CSV, TSV, or JSON) via a new `read_all_data` function. It also updates documentation, schema, and extended help to support this feature, and adds comprehensive tests to en... | diff --git a/docs/tools/excel.md b/docs/tools/excel.md
index 1bbbb278..716b256f 100644
--- a/docs/tools/excel.md
+++ b/docs/tools/excel.md
@@ -116,6 +116,59 @@ Read data from a cell range.
}
```
+#### `read_all_data`
+Export all data from one or more sheets in AI-agent-friendly format (CSV, TSV, or JSON).
+
+**Para... | 20 | 9 | 2 | [{"id": "G0", "claim": "The \"format\" field in each sheet response redundantly echoes what the caller requested, so remove it (and the matching docs/extended-help mentions) to reduce token usage.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TSV fo... | null |
sammcj__mcp-devtools__159 | sammcj/mcp-devtools | 159 | defect | 082535f596352a3008918b58596a5a3f12934c89 | 75b6439600f8d62959f81e53f887bf180e0f3e66 | feat: add AWS pricing to AWS documentation tool | This pull request significantly extends the AWS Documentation tool to support AWS pricing research in addition to documentation search and retrieval. The tool now allows users to list AWS services with pricing data, retrieve pricing information for specific services, and apply flexible filters to pricing queries. These... | diff --git a/README.md b/README.md
index 63034de7..77931c20 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ graph LR
A --> D[UI Component<br>Libraries]
A --> H[MCP]
- B --> B_Tools[📝 Terraform Docs<br>☁️ AWS Doc]
+ B --> B_Tools[📝 Terraform Docs<br>☁️ AWS Documentation & Pricing]
C -... | 15 | 14 | 9 | [{"id": "G0", "claim": "The tool descriptions and ParameterDetails state a pricing default of 50 while the implementation uses 10; update the documented defaults to 10.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `region` parameter is refer... | null |
sammcj__mcp-devtools__200 | sammcj/mcp-devtools | 200 | defect | d7df985afad5144867555347846486a2825809b3 | 1a4d92cc27c04b1cd00eb6e97b132a3ffb0c1a43 | refactor: think and sequential thinking tools | This pull request updates the documentation and implementation for the `think` and `sequential_thinking` tools to clarify their intended use cases and promote concise, focused reasoning. The changes emphasise when to use each tool, encourage shorter reasoning steps, and update error messages and descriptions to guide u... | diff --git a/docs/tools/sequential-thinking.md b/docs/tools/sequential-thinking.md
index d7bee0b4..48d9aae3 100644
--- a/docs/tools/sequential-thinking.md
+++ b/docs/tools/sequential-thinking.md
@@ -1,10 +1,15 @@
# Sequential Thinking Tool
-The Sequential Thinking tool provides a structured approach to dynamic probl... | 6 | 3 | 1 | [{"id": "G0", "claim": "The new think.md guidance saying think is only for brief single-decision thoughts conflicts with the document's remaining multi-step/breakdown examples, and those examples should be replaced with 2-4 sentence single-decision examples with the multi-step ones moved to the sequential_thinking docs... | null |
sammcj__mcp-devtools__208 | sammcj/mcp-devtools | 208 | defect | ddbc64be0a0e3a9c19a19fed1e70e182b9027bf1 | ea746457c492f2d6078c7176ee08efa15c04b78a | refactor: Reduce MCP server startup latency | - refactor startup logic to improve initial latency
---
- Make upstream proxy tool registration async so OAuth/network delays don't block server startup
- Cache ENABLE_ADDITIONAL_TOOLS env var parsing with sync.Once instead of re-reading on every tool registration (~60 reads)
- Move error log rotation to a back... | diff --git a/internal/registry/registry.go b/internal/registry/registry.go
index c81ab6b7..e1f6b636 100644
--- a/internal/registry/registry.go
+++ b/internal/registry/registry.go
@@ -2,7 +2,6 @@ package registry
import (
"os"
- "slices"
"sort"
"strings"
"sync"
@@ -11,9 +10,38 @@ import (
"github.com/sirups... | 10 | 6 | 4 | [{"id": "G0", "claim": "GetTools, GetEnabledTools, GetEnabledToolNames and GetToolNamesWithExtendedHelp iterate toolRegistry (and read proxiedTools) without holding registryMu, which can trigger a concurrent map iteration/write panic while async proxy registration writes the map; wrap the iteration in registryMu.RLock(... | null |
sammcj__mcp-devtools__72 | sammcj/mcp-devtools | 72 | defect | 3c80c071e880fad3fca7b384fc74cf2858ab736e | 03bb4fac21986e15c6ce06f6c877688f81e98784 | feat: new tool - sequential thinking | - Feature: New Tool - `sequential_thinking` (disabled by default)
This pull request adds the new Sequential Thinking tool to the project, providing AI agents with a structured, dynamic, and reflective approach to complex problem-solving. The tool is now documented, integrated into the codebase, and referenced thro... | diff --git a/README.md b/README.md
index ce9052d1..571e23e7 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ graph LR
D --> D_Tools[📋 SBOM Generation<br>🛡️ Vulnerability Scan<br>🔒 Security Framework<br>🛠️ Security Override]
- E --> E_Tools[🧠 Think Tool<br>🕸️ Memory Graph]
+ E --> E_Tools[🧠... | 5 | 3 | 2 | [{"id": "G0", "claim": "The ToolDisabled test's args map still uses the deprecated parameters 'nextThoughtNeeded', 'thoughtNumber' and 'totalThoughts' instead of the new implementation's simplified schema ('continue' instead of 'nextThoughtNeeded'; numbering and totals auto-managed so the other two are not required).",... | null |
sammcj__mcp-devtools__76 | sammcj/mcp-devtools | 76 | defect | 3cd539bdaf6c387c18a71b2337ac9a40dde875be | 2d100c9ec6091180edcc5bf482783dc2cc7ca326 | feat: new tool - calculator | - Feature: New tool - `calculator` a basic calculator, because LLMs are bad at maths.
```plain
> I've enabled you with a new 'calculator' tool I've created, can you try it out to make sure it working properly?
⏺ dev-tools - calculator (MCP)(expression: "15 + 27 * 3")
⎿ {
"expression": "15 + 27 * 3",
... | diff --git a/Makefile b/Makefile
index 04cb8a50..7abe37bd 100644
--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,7 @@ fmt:
lint:
gofmt -w -s .
golangci-lint run
- go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -test ./...
+ go run golang.org/x/tools/gopls/internal/analysis/modernize/cm... | 2 | 1 | 0 | [{"id": "G0", "claim": "The tools list line added to the README mermaid diagram begins with a stray 'h' character that looks like a typo.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README example value for DISABLED_FUNCTIONS changed from '... | null |
sammcj__mcp-devtools__94 | sammcj/mcp-devtools | 94 | defect | 4d9532abc195cb60992f0ed320a9fa9cbdc976bf | a3214c5d607da38e8720b9a14b93106fda794ae0 | feat: search engine fallback when unavailable or rate limited | - feat: fallback to another search provider upon failure
- feat: add google programmable search provider to internet_search | diff --git a/README.md b/README.md
index c7d1f3e7..4646fc50 100644
--- a/README.md
+++ b/README.md
@@ -253,15 +253,19 @@ mcp-devtools --transport http --port 18080 --oauth-enabled
All environment variables are optional, but if you want to use specific search providers or document processing features, you may need to... | 9 | 9 | 2 | [{"id": "G0", "claim": "The mock provider's unchecked type assertion `args[\"query\"].(string)` can panic if 'query' is not a string or is nil; use the checked two-value form and return an error instead.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
samonzeweb__godb__15 | samonzeweb/godb | 15 | defect | 0df44629fbdcadd6677a49eaced0e8b705c98df5 | f3ab96b0d4099463d520dd19dbe5940313367294 | added JSONStr and CompactJSONStr | `JSONStr` makes easy to handle JSON data at database's text fields(like VARCHAR,CHAR,TEXT) and blob fields(like BLOB, BYTEA, JSONB). `NullJSONStr` is Nullable version of `JSONStr`.
`CompactJSONStr` is same as `JSONStr` except, whitespaces are remove from JSON formatted data while saving to database. It is useless if... | diff --git a/dbreflect/scannable.go b/dbreflect/scannable.go
index 2c62d7e..21f33f2 100644
--- a/dbreflect/scannable.go
+++ b/dbreflect/scannable.go
@@ -23,6 +23,10 @@ func init() {
// Custom nullable types
RegisterScannableStruct(types.NullTime{})
RegisterScannableStruct(types.NullBytes{})
+ RegisterScannableStr... | 4 | 4 | 2 | [{"id": "G0", "claim": "The CREATE TABLE example in the doc comment is missing the Id column that the Book struct's key field and the example query rely on.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The doc example should avoid being themed a... | null |
samonzeweb__godb__21 | samonzeweb/godb | 21 | defect | b248963d2370312a69c6c781bcd05679a18abb9f | 95bbdfc54e63349317350b0bd40bd25bd576761c | BlackListing or WhiteListing columns for struct based inserts and updates | This PR is to blacklist or whitelist columns during struct based inserts or updates. For example:
```go
type User struct {
ID int64 `db:"id,key,auto" json:"id"`
Username string `db:"username" json:"username"`
LastLoginIP types.NullString `db:"last_login_ip" json:"last... | diff --git a/README.md b/README.md
index 88807e8..984b81d 100644
--- a/README.md
+++ b/README.md
@@ -23,6 +23,7 @@ godb is a project that is still young and evolving. The API is almost stable, bu
- `OUTPUT` support for SQL Server.
- Define your own logger (should have `Println(...)` method)
- Define model struct nam... | 2 | 2 | 2 | [{"id": "G0", "claim": "`wbColsSet` is never set to true, so with a whitelist/blacklist the insert statement's columns are added again on every record of a BulkInsert; it needs to be set to true after the first record.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":... | null |
samonzeweb__godb__27 | samonzeweb/godb | 27 | defect | 9c472d501b7e8413ad1d39d8fd8c541a1104ba44 | c6021b456ae318f61a099345dba98c6a211ddcee | Added Int64Slice,StrSlice,Float64Slice and BoolSlice | Added `Int64Slice,Float64Slice,BoolSlice` and `StrSlice` to `types` package.
- `StrSlice` converts `[]string{"a","b","c"}` to JSON bytes `["a","b","c"]` which can be saved to `BLOB, VARCHAR, TEXT`. And when it reads `["a","b","c"]` from DB, it converts to `[]string{"a","b","c"}`
- `Int64Slice` converts `[]int64{1,2,3... | diff --git a/types/boolslice.go b/types/boolslice.go
new file mode 100644
index 0000000..8f72af5
--- /dev/null
+++ b/types/boolslice.go
@@ -0,0 +1,50 @@
+package types
+
+import (
+ "database/sql/driver"
+ "encoding/json"
+ "fmt"
+)
+
+// BoolSlice makes easy to handle JSON encoded bool lists from/to db stored either i... | 3 | 2 | 0 | [{"id": "G0", "claim": "Remove the stray blank line inside the 'valid value' test of each of the four new *_test.go files.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the test variables named null*Slice (e.g. nullBoolSlice) even where ... | null |
samtools__htsjdk__1004 | samtools/htsjdk | 1,004 | defect | c9cab31191e786b6e1b6e83c4f47a39df726c1c6 | 6b8cfa795569cd49bf0e122b02b22806e8ad6b32 | Fixed ENA url to use https (instead of http) | ### Description
- It seems that the ENA has moved to https which is why tests are failing.
- This probably also affected cram access to ena resources. fixed.
- Reformated tests to use a data provider
### Checklist
- [ ] Code compiles correctly
- [ ] New tests covering changes and new functionality
- [ ]... | diff --git a/src/main/java/htsjdk/samtools/cram/ref/EnaRefService.java b/src/main/java/htsjdk/samtools/cram/ref/EnaRefService.java
index 4d99d1e32b..0e7e35938d 100644
--- a/src/main/java/htsjdk/samtools/cram/ref/EnaRefService.java
+++ b/src/main/java/htsjdk/samtools/cram/ref/EnaRefService.java
@@ -16,6 +16,8 @@ public ... | 4 | 1 | 0 | [{"id": "G0", "claim": "The HTTP_MOVED_PERMANENTLY failure seems recoverable because the response header/body contains the new URL, though the reviewer acknowledges handling it may be too much work given such changes are rare.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id"... | null |
samtools__htsjdk__1121 | samtools/htsjdk | 1,121 | defect | adf428f970a73cfc467bcbc3eb6343a74abff7b5 | 4a6123403e9c4a778b181c79439727cab4e1b69b | Seeks within SeekableBufferedStream's buffer do not need to create a new buffer | ### Description
This is an optimization to avoid unnecessary seeks (which can be expensive when reading from cloud stores, or Hadoop). See #1112
### Checklist
- [ ] Code compiles correctly
- [ ] New tests covering changes and new functionality
- [ ] All tests passing
- [ ] Extended the README / documentatio... | diff --git a/src/main/java/htsjdk/samtools/seekablestream/SeekableBufferedStream.java b/src/main/java/htsjdk/samtools/seekablestream/SeekableBufferedStream.java
index 0c89b0166d..7fd71ef666 100644
--- a/src/main/java/htsjdk/samtools/seekablestream/SeekableBufferedStream.java
+++ b/src/main/java/htsjdk/samtools/seekable... | 8 | 7 | 2 | [{"id": "G0", "claim": "The buffer-boundary checks in seek() have off-by-one errors (with a similar one in skip()'s skip-vs-seek check), so seeking to the exact start or end of the buffer can trigger an extra expensive seek instead of reusing the buffer.", "category": "correctness", "verdict": "supported", "priority": ... | null |
samtools__htsjdk__1137 | samtools/htsjdk | 1,137 | defect | c19f9f73af0bdee912b4480fef403cd48a989c7b | 384467b706ceeae651295b8b108a4479f8c6786a | Yf sam locus and reference base iterator | This new small class holds a SamLocusIterator and a ReferenceFileWalker and keeps them in Tandem. This way you can easily know what the reference base is at the locus you are looking at.
### Checklist
- [ ] Code compiles correctly
- [ ] New tests covering changes and new functionality
- [ ] All tests passin... | diff --git a/src/main/java/htsjdk/samtools/reference/SamLocusAndReferenceIterator.java b/src/main/java/htsjdk/samtools/reference/SamLocusAndReferenceIterator.java
new file mode 100644
index 0000000000..6f97821dec
--- /dev/null
+++ b/src/main/java/htsjdk/samtools/reference/SamLocusAndReferenceIterator.java
@@ -0,0 +1,79... | 11 | 11 | 1 | [{"id": "G0", "claim": "The copyright year in the new file's header should be 2018, not 2009-2016.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comma in the javadoc sentence 'Only, whatever loci are covered by the input reads are returned.' ... | null |
samtools__htsjdk__1145 | samtools/htsjdk | 1,145 | defect | 0d8e1c6c2b8da46b3c44db5032150fe23ab83610 | fd0ef0ed701e591b6b19a6c06eb0ee61adee50bb | Load tribble index from a stream. | Make it possible to load a tribble index from a stream, not just a file. This is needed for #1112.
The change is covered by existing tests.
### Checklist
- [ ] Code compiles correctly
- [ ] New tests covering changes and new functionality
- [ ] All tests passing
- [ ] Extended the README / documentation, if... | diff --git a/src/main/java/htsjdk/tribble/index/IndexFactory.java b/src/main/java/htsjdk/tribble/index/IndexFactory.java
index 10866b88af..1c9aee1df0 100644
--- a/src/main/java/htsjdk/tribble/index/IndexFactory.java
+++ b/src/main/java/htsjdk/tribble/index/IndexFactory.java
@@ -162,7 +162,7 @@ public static IndexType g... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new loadIndex(String, InputStream) overload needs an explicit test, which can reuse the existing test code.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
samtools__htsjdk__1167 | samtools/htsjdk | 1,167 | defect | e0bf651c3122190134d0ea72b940b59567f0a31e | c4eb34d8e62323d4e64ddb8de90a152693c2a000 | Fix CRAM container offset calculation | ### Description
Fixes a bug from #1129, and added a test to check for the error (which fails without the fix).
### Checklist
- [x] Code compiles correctly
- [x] New tests covering changes and new functionality
- [x] All tests passing
- [ ] Extended the README / documentation, if necessary
- [ ] Is not back... | diff --git a/src/main/java/htsjdk/samtools/cram/build/CramContainerIterator.java b/src/main/java/htsjdk/samtools/cram/build/CramContainerIterator.java
index 5fcf83f5a6..159de03f90 100644
--- a/src/main/java/htsjdk/samtools/cram/build/CramContainerIterator.java
+++ b/src/main/java/htsjdk/samtools/cram/build/CramContaine... | 1 | 1 | 1 | [{"id": "G0", "claim": "The test should capture the return value of `ContainerIO.readContainer` and add equality assertions (for example alignmentStart, alignmentSpan, nofRecords, checksum) against the corresponding full container, to verify the container read from the offset is intact.", "category": "testing", "verdic... | null |
samtools__htsjdk__1188 | samtools/htsjdk | 1,188 | defect | 49c70e5b394d303b47bd894d430f78f08aefc268 | 6d40e0a8b458edcd2dc7a2fa58d6f4dbc61f7310 | BinaryCodec.readBytesOrFewer fails if no data is requested AND no date is available in the underlying input stream | I ran into this bug when writing an empty string as the last element into a byte buffer (ex `binaryCodec.writeString("", true, false)`) and then trying to read it back in (ex. `binaryCodec.readLengthAndString(false)`). The main issue is that `InputStream.read` will return `-1` even if the maximum number of bytes to re... | diff --git a/src/main/java/htsjdk/samtools/util/BinaryCodec.java b/src/main/java/htsjdk/samtools/util/BinaryCodec.java
index 08fe60a123..14d2e2a8b5 100644
--- a/src/main/java/htsjdk/samtools/util/BinaryCodec.java
+++ b/src/main/java/htsjdk/samtools/util/BinaryCodec.java
@@ -415,7 +415,8 @@ public int readBytesOrFewer(f... | 3 | 2 | 0 | [{"id": "G0", "claim": "The InputStream documentation states that read returns 0 when len is zero, questioning why the combination of end-of-stream and a zero-length read fails at all.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use curly braces ar... | null |
samtools__htsjdk__1208 | samtools/htsjdk | 1,208 | defect | f00a75437bce14d094cdceb373fa380195cf7a89 | 2e4dcf1ec5dc78a031ae67bbbea20cf6648e5884 | Updating SAMTag and SAMTagUtils | ### Description
This PR does several things:
1. It updates the list of tags in SAMTags and SAMTagUtils to include all the tags currently in the spec
2. It deprecates tags that are listed as "for backwards compatibility only", this should hopefully signal to downstream users that they should no longer be generating... | diff --git a/src/main/java/htsjdk/samtools/BAMRecord.java b/src/main/java/htsjdk/samtools/BAMRecord.java
index 5374b18400..c7ee274099 100644
--- a/src/main/java/htsjdk/samtools/BAMRecord.java
+++ b/src/main/java/htsjdk/samtools/BAMRecord.java
@@ -310,7 +310,7 @@ static boolean isSentinelCigar(final Cigar cigar, final i... | 7 | 5 | 0 | [{"id": "G0", "claim": "The javadoc comment on the GC enum constant kept for backwards compatibility is missing the @deprecated mark.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The public SAMTagUtil constructor kept for backwards compatibility... | null |
samtools__htsjdk__1211 | samtools/htsjdk | 1,211 | defect | f00a75437bce14d094cdceb373fa380195cf7a89 | 59b5fd9a9b789ba533c5788741eb1aa4bc7ca34e | Changing htsjdk to produce sam version 1.6 | * Htsjdk has techinically been producing Sam version 1.6 since support for long cigars was added.
* Updating that list of acceptable versions to include 1.6 and setting the header version of new bams to 1.6
### Checklist
- [ ] Code compiles correctly
- [ ] New tests covering changes and new functionality
- [ ]... | diff --git a/src/main/java/htsjdk/samtools/SAMFileHeader.java b/src/main/java/htsjdk/samtools/SAMFileHeader.java
index 1d123684f1..7c6e8aae0e 100644
--- a/src/main/java/htsjdk/samtools/SAMFileHeader.java
+++ b/src/main/java/htsjdk/samtools/SAMFileHeader.java
@@ -40,8 +40,8 @@ public class SAMFileHeader extends Abstract... | 3 | 2 | 0 | [{"id": "G0", "claim": "Use CURRENT_VERSION in ACCEPTABLE_VERSIONS instead of hard-coding the current version string, so the set always keeps the current version without hard-coding.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use an already-... | null |
samtools__htsjdk__1212 | samtools/htsjdk | 1,212 | defect | f00a75437bce14d094cdceb373fa380195cf7a89 | 8c0ad2baef73887b557f22482cc62f73edb29deb | Getter for generic fields in VCFSimpleHeaderLine | ### Description
Setting a getter for accessing to values like "Description"
### Checklist
- [] Code compiles correctly
- [] New tests covering changes and new functionality
- [] All tests passing
- [] Extended the README / documentation, if necessary
- [] Is not backward compatible (breaks binary or sourc... | diff --git a/src/main/java/htsjdk/variant/vcf/VCFSimpleHeaderLine.java b/src/main/java/htsjdk/variant/vcf/VCFSimpleHeaderLine.java
index 1c36f9e956..eb9661571f 100644
--- a/src/main/java/htsjdk/variant/vcf/VCFSimpleHeaderLine.java
+++ b/src/main/java/htsjdk/variant/vcf/VCFSimpleHeaderLine.java
@@ -126,4 +126,8 @@ publi... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new getGenericFields() must return a Map<String, String> instead of a String — as written the PR does not compile, and the suggested change returns an unmodifiable map with a javadoc comment.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id"... | null |
samtools__htsjdk__1227 | samtools/htsjdk | 1,227 | defect | 6577c46c51598a0561cf15144e436e5674d27075 | db83cfff4d2cf1a5de9c598bfef9031f69067c90 | more changes to SAMTagUtil | * reverting the change from constants to static variables, deprecating
the constants instead
### Checklist
- [ ] Code compiles correctly
- [ ] New tests covering changes and new functionality
- [ ] All tests passing
- [ ] Extended the README / documentation, if necessary
- [ ] Is not backward compatible (bre... | diff --git a/src/main/java/htsjdk/samtools/SAMTagUtil.java b/src/main/java/htsjdk/samtools/SAMTagUtil.java
index cf0a3c10d5..cbd7287479 100644
--- a/src/main/java/htsjdk/samtools/SAMTagUtil.java
+++ b/src/main/java/htsjdk/samtools/SAMTagUtil.java
@@ -27,10 +27,12 @@
/**
* Facility for converting between String and... | 3 | 3 | 0 | [{"id": "G0", "claim": "Remove the stray blank line separating the deprecated-field javadoc comment from the field it documents.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The class javadoc should spell the project name HTSJDK instead of Hts... | null |
samtools__htsjdk__1230 | samtools/htsjdk | 1,230 | defect | 698a4c37a735ff43f8b568d798000cd32ea17260 | b75aec693358ccd0a3b05228f14f2c54d5920148 | Adding some sanity checking to IntervalList reading. | - check that start is >0
- check that end is <= the LN of the sequence
- check that start is <= end + 1 (to allow for empty intervals, but not more than that)
- adding tests to see that sanity is maintained.
### Description
Please explain the changes you made here.
Explain the **motivation** for making this c... | diff --git a/src/main/java/htsjdk/samtools/util/IntervalList.java b/src/main/java/htsjdk/samtools/util/IntervalList.java
index 6691fa5745..d31474bf53 100644
--- a/src/main/java/htsjdk/samtools/util/IntervalList.java
+++ b/src/main/java/htsjdk/samtools/util/IntervalList.java
@@ -23,27 +23,11 @@
*/
package htsjdk.samt... | 11 | 10 | 1 | [{"id": "G0", "claim": "Wildcard imports such as `import htsjdk.samtools.*;` should be avoided because they make it harder to see where a name is imported from.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The javadoc list of tab-separated rec... | null |
samtools__htsjdk__1248 | samtools/htsjdk | 1,248 | defect | 0bf5ff60d85d0fe743c84ee67a905c1174466895 | 5766688783ffd458716ba45e86241134523ff5d2 | Parse valid VCF 4.2 with ##INFO containing Source + Version | ### Description
As per bug #517 - despite VCFv4.2 spec allowing for "Source" and "Version" fields in ##INFO, htsjdk would throw an error. This fixes the issue.
### Checklist
- [x] Code compiles correctly
- [x] New tests covering changes and new functionality
- [x] All tests passing
- [ ] Extended the README... | diff --git a/src/main/java/htsjdk/variant/vcf/VCFCompoundHeaderLine.java b/src/main/java/htsjdk/variant/vcf/VCFCompoundHeaderLine.java
index 481ca924a2..b01bddb7f7 100644
--- a/src/main/java/htsjdk/variant/vcf/VCFCompoundHeaderLine.java
+++ b/src/main/java/htsjdk/variant/vcf/VCFCompoundHeaderLine.java
@@ -32,8 +32,11 @... | 18 | 16 | 4 | [{"id": "G0", "claim": "Use the diamond operator instead of repeating the type argument in `new HashSet<String>(Arrays.asList(\"Source\", \"Version\"))`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Question whether Set is worth its overhead v... | null |
samtools__htsjdk__1256 | samtools/htsjdk | 1,256 | defect | 5a0ab689c3ec8f70702a728eec19345a76f68981 | 06070a0343b2d74c137e8743d5f8a3ad968450fb | Immutable CRAIEntry | ### Description
Code cleanup for CRAIEntry
### Checklist
- [x] Code compiles correctly
- [x] New tests covering changes and new functionality
- [x] All tests passing
- [x] Extended the README / documentation, if necessary
- [ ] Is not backward compatible (breaks binary or source compatibility)
| diff --git a/src/main/java/htsjdk/samtools/cram/CRAIEntry.java b/src/main/java/htsjdk/samtools/cram/CRAIEntry.java
index dd22a00a1b..a83acbb569 100644
--- a/src/main/java/htsjdk/samtools/cram/CRAIEntry.java
+++ b/src/main/java/htsjdk/samtools/cram/CRAIEntry.java
@@ -7,27 +7,36 @@
import java.io.IOException;
import ... | 10 | 5 | 1 | [{"id": "G0", "claim": "The removed sliceIndex field was being used uninitialized to populate Slices, which was incorrect.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The container offset cannot necessarily be derived from the Slice because sli... | null |
samtools__htsjdk__1258 | samtools/htsjdk | 1,258 | defect | 68d9fdb781fae55023ae0a8eb71a60f36b23ead9 | 0c6ab4e7d15cbfaca46faa2742d3a33fc78db227 | Only compute BIN on BAM write and on index building | ### Description
Prior to this change if you had a SAM or BAM file with records mapped to references > 512mb, SAMRecord would log a warning per record mapped to those contigs!! It would also blindly compute an invalid BIN value and store it.
This change removes the stored `indexingBin` field in `SAMRecord` and ha... | diff --git a/src/main/java/htsjdk/samtools/BAMIndexer.java b/src/main/java/htsjdk/samtools/BAMIndexer.java
index 4dfe39d15d..3858ef5319 100644
--- a/src/main/java/htsjdk/samtools/BAMIndexer.java
+++ b/src/main/java/htsjdk/samtools/BAMIndexer.java
@@ -231,11 +231,7 @@ public int getEnd() {
}
... | 14 | 9 | 1 | [{"id": "G0", "claim": "Removing the public computeIndexingBinIfAbsent() method is a change in public API; deprecate it first instead of removing it outright.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Renaming isReferenceSequenceCompatibleWithBAI is... | null |
samtools__htsjdk__1272 | samtools/htsjdk | 1,272 | defect | 942e3d6b4c28a8e97c457dfc89625bb403bdf83c | 1659775cc91a89ea1f51b832ef8b1466074c72a3 | Moving the SRA tests to a separate env | ### Description
Please explain the changes you made here.
Explain the **motivation** for making this change. What existing problem does the pull request solve?
### Checklist
- [ ] Code compiles correctly
- [ ] New tests covering changes and new functionality
- [ ] All tests passing
- [ ] Extended the READM... | diff --git a/.travis.yml b/.travis.yml
index 45bc976612..797730d7bb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,13 +14,19 @@ jdk:
matrix:
fast_finish: true
allow_failures:
+ - env: TEST_TYPE=SRA
- env: TEST_TYPE=FTP
include:
+ - jdk: oraclejdk8
+ env: TEST_TYPE=SRA
- jdk: orac... | 1 | 1 | 1 | [{"id": "G0", "claim": "The ENA test should not be labelled as an FTP test (that group is permanently broken and excluded); instead a new EXTERNAL_APIS test type should group the ENA and SRA tests together.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
samtools__htsjdk__1284 | samtools/htsjdk | 1,284 | defect | 62fc0b1b4609b1a8874c49b67be2b6046f57278c | 6167a56b973ad03f8b2cf668047b6a6b10e28ab7 | update CramCompressionRecord.isPlaced() to make it APDelta-aware | ### Description
isPlaced() was not checking for the APDelta flag, thus inappropriately marking some records as unplaced.
Error introduced on 1/30 with #1266
### Checklist
- [x] Code compiles correctly
- [x] New tests covering changes and new functionality
- [x] All tests passing
- [x] Extended the README... | diff --git a/src/main/java/htsjdk/samtools/CRAMContainerStreamWriter.java b/src/main/java/htsjdk/samtools/CRAMContainerStreamWriter.java
index c588bdb46d..57c003c87e 100644
--- a/src/main/java/htsjdk/samtools/CRAMContainerStreamWriter.java
+++ b/src/main/java/htsjdk/samtools/CRAMContainerStreamWriter.java
@@ -379,8 +37... | 13 | 12 | 1 | [{"id": "G0", "claim": "The coordinateSorted flag computed in flushContainer() is inverted (it is false for coordinate-sorted data), so insert sizes are computed under the wrong sorting assumption.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A te... | null |
samtools__htsjdk__1286 | samtools/htsjdk | 1,286 | defect | 52169ed31df7da289e5ce4d2cb2ebd8d87bf5139 | a9ad08e6eb6ddd6bad2fc2009ec457cb3008d794 | Yf add get reference to sam set builder | In order to test cram files we need a way to write a reference that agrees with the samDictionary that the SAMRecordSetBuilder has in mind. By default it is quite large, and so this enables us to generate a random one (deterministic) on the fly. | diff --git a/src/main/java/htsjdk/samtools/SAMRecordSetBuilder.java b/src/main/java/htsjdk/samtools/SAMRecordSetBuilder.java
index c237194aaf..0758c4178c 100644
--- a/src/main/java/htsjdk/samtools/SAMRecordSetBuilder.java
+++ b/src/main/java/htsjdk/samtools/SAMRecordSetBuilder.java
@@ -24,6 +24,8 @@
package htsjdk.sam... | 8 | 6 | 3 | [{"id": "G0", "claim": "The continuation-line spacing of the reformatted return statement in getReadLengthFromCigar is weird.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Some reviewers prefer the original one-line form for the isSecondary one-l... | null |
samtools__htsjdk__1296 | samtools/htsjdk | 1,296 | defect | d771b30ceb95419dd09fee01742e0cff0d5a9a6a | 789e8ee1e7a89cec2765aa202e375427d0ae469c | adding new overloads to IOUtils with Path for some file only methods | ### Description
Add Path overloads of some functions in IOUtil that were missing them.
Fixes #1294
### Checklist
- [ ] Code compiles correctly
- [ ] New tests covering changes and new functionality
- [ ] All tests passing
- [ ] Extended the README / documentation, if necessary
- [ ] Is not backward compatible... | diff --git a/src/main/java/htsjdk/samtools/util/IOUtil.java b/src/main/java/htsjdk/samtools/util/IOUtil.java
index 83d0a6b461..8bc32527a6 100755
--- a/src/main/java/htsjdk/samtools/util/IOUtil.java
+++ b/src/main/java/htsjdk/samtools/util/IOUtil.java
@@ -26,7 +26,6 @@
import htsjdk.samtools.Defaults;
import htsjdk.... | 3 | 3 | 1 | [{"id": "G0", "claim": "In openFileForWriting, the line `if(hasGzipFileExtension(path)) {` should have a space after the `if` keyword.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new testReadWriteJimfs test should verify that files with g... | null |
samtools__htsjdk__1298 | samtools/htsjdk | 1,298 | defect | 3b3d107de954b71a026cc993a0e5e4cd930c3707 | 43379f29dcc4fcd55a03b5a1bf9a5569e136670b | fix toFile call | ### Description
fixes #1297 and does some nitpicky formatting, blocked by #1296
### Checklist
- [ ] Code compiles correctly
- [ ] New tests covering changes and new functionality
- [ ] All tests passing
- [ ] Extended the README / documentation, if necessary
- [ ] Is not backward compatible (breaks binary o... | diff --git a/src/main/java/htsjdk/samtools/util/IntervalListWriter.java b/src/main/java/htsjdk/samtools/util/IntervalListWriter.java
index 418a980078..31d1df81c8 100644
--- a/src/main/java/htsjdk/samtools/util/IntervalListWriter.java
+++ b/src/main/java/htsjdk/samtools/util/IntervalListWriter.java
@@ -37,9 +37,9 @@
*... | 8 | 7 | 0 | [{"id": "G0", "claim": "Add a space between `try` and `(` in the OutputStream try-with-resources in IntervalCodecTest, as the suggestion block shows.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `else` after `break` in the decode loop of testEndToEn... | null |
samtools__htsjdk__1309 | samtools/htsjdk | 1,309 | defect | 0cc762fc8bfb0aadbfd4f3c4975053ac3e6620ed | e47374adf3b9f27690227be19724dcc870e54056 | making changes to reduce size of giant interval lists | ### Description
Two separate changes which should reduce the in-memory size of IntervalList and OverlapDetector.
1: Cache the last seen contig name when loading IntervalLists and reuse the same String to avoid keeping many duplicate copies of "chr1" in memory. This should have very minor overhead since interval fil... | diff --git a/src/main/java/htsjdk/samtools/util/IntervalList.java b/src/main/java/htsjdk/samtools/util/IntervalList.java
index 31c0d552d1..88a0626695 100644
--- a/src/main/java/htsjdk/samtools/util/IntervalList.java
+++ b/src/main/java/htsjdk/samtools/util/IntervalList.java
@@ -531,6 +531,7 @@ public static IntervalLis... | 1 | 1 | 1 | [{"id": "G0", "claim": "The set-merging logic added to OverlapDetector.addLhs should be implemented inside the IntervalTree class (e.g. as a computeIfPresent-style method), finding out whether the stored set is mutable instead of relying on the size-1-implies-immutable trick.", "category": "design", "verdict": "support... | null |
samtools__htsjdk__1318 | samtools/htsjdk | 1,318 | defect | d678af330eaea819f2b939a6c2f4b2a90f725272 | 8b83dd98c0f14d956ef5564d5000a644d5b8f5cf | Fixing zero-length interval bug in IntervalList.merge | * Fixing a bug in IntervalList.merge() that caused it to break when merging 0 length intervals
* Improving tests for merge
* The bug was introduced in #1265 and hasn't been in any release
### Checklist
- [ ] Code compiles correctly
- [ ] New tests covering changes and new functionality
- [ ] All tests passing... | diff --git a/src/main/java/htsjdk/samtools/util/IntervalList.java b/src/main/java/htsjdk/samtools/util/IntervalList.java
index 88a0626695..26b786f174 100644
--- a/src/main/java/htsjdk/samtools/util/IntervalList.java
+++ b/src/main/java/htsjdk/samtools/util/IntervalList.java
@@ -379,13 +379,14 @@ private static List<Int... | 2 | 2 | 2 | [{"id": "G0", "claim": "Merging a zero-length interval with a non-zero one should not add bases to the result: 10-9 merged with 11-15 should not become 10-15 (the reviewer thinks it should stay 11-15), and zero-length intervals should instead be dropped or ignored when merging.", "category": "correctness", "verdict": "... | null |
samtools__htsjdk__1319 | samtools/htsjdk | 1,319 | defect | b321d91adb65e42dbed6082cc5c2969b8f12171c | fecf11e06910b57451088d9234b8550b59b1ac95 | CRAM: correct CT and MF encoding datatypes from byte to int | Also add a test demonstrating that the old byte-based code did not cause problems because byte and int codecs are identical for the full range of the fields
### Checklist
- [x] Code compiles correctly
- [x] New tests covering changes and new functionality
- [x] All tests passing
- [x] Extended the README / do... | diff --git a/src/main/java/htsjdk/samtools/cram/encoding/reader/CramRecordReader.java b/src/main/java/htsjdk/samtools/cram/encoding/reader/CramRecordReader.java
index 0150e3a630..79476b7cbf 100644
--- a/src/main/java/htsjdk/samtools/cram/encoding/reader/CramRecordReader.java
+++ b/src/main/java/htsjdk/samtools/cram/enc... | 9 | 6 | 0 | [{"id": "G0", "claim": "Asks whether the remaining CRAM data series encodings were compared against the spec, in case any besides CT and MF are also stored with the wrong datatype.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new ExternalCodecEq... | null |
samtools__htsjdk__1327 | samtools/htsjdk | 1,327 | defect | 2b5f3bc597d01949aa178a0f3b1db4ef706a76b0 | 0caa68b4962df00ccd083855b5e4fd5fc2ec1eba | Yf add interval list codec | - moved the business part of the dec from IntervalList to the Tribble dec.
- testing the Tribble directly.
| diff --git a/src/main/java/htsjdk/samtools/util/Interval.java b/src/main/java/htsjdk/samtools/util/Interval.java
index c0493745a9..a0ffb59790 100644
--- a/src/main/java/htsjdk/samtools/util/Interval.java
+++ b/src/main/java/htsjdk/samtools/util/Interval.java
@@ -24,6 +24,7 @@
package htsjdk.samtools.util;
import ht... | 13 | 12 | 2 | [{"id": "G0", "claim": "The `log` field in the new AsciiSamFeatureCodec is unused and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new LineReader.EOF_VALUE constant needs javadoc, and peek's javadoc should reference it."... | null |
samtools__htsjdk__1329 | samtools/htsjdk | 1,329 | defect | 2b5f3bc597d01949aa178a0f3b1db4ef706a76b0 | 68ed944dac52063972dc776e3f556c6469efd356 | Follow-up to #1276: Remove multiple versions of Slice/Container getCRAIEntries() | - Encapsulate Container.byteOffset and distribute to Slices on set
- enforce prerequisites to index entry creation
### Description
Please explain the changes you made here.
Explain the **motivation** for making this change. What existing problem does the pull request solve?
### Checklist
- [x] Code compil... | diff --git a/src/main/java/htsjdk/samtools/BAMIndexMetaData.java b/src/main/java/htsjdk/samtools/BAMIndexMetaData.java
index 4007e8bf7a..09391b6515 100644
--- a/src/main/java/htsjdk/samtools/BAMIndexMetaData.java
+++ b/src/main/java/htsjdk/samtools/BAMIndexMetaData.java
@@ -159,7 +159,7 @@ void recordMetaData(final Sli... | 10 | 8 | 4 | [{"id": "G0", "claim": "If setByteOffset() is called while the Container's slices are still null and slices are populated later, there is no guarantee the byte offset will be propagated to those slices.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
samtools__htsjdk__1340 | samtools/htsjdk | 1,340 | defect | f9361ac2c0ca03783d0d566afd6e1642524e15d3 | 59c483f21071e2b30887b641d396e3541f91c4ed | Added fasta.gz write support to FastaReferenceWriterBuilder | Added the ability for the FastaReferenceWriterBuilder to emit block compressed output streams. Hooked up some basic checks for this into the existing test code as well. | diff --git a/src/main/java/htsjdk/samtools/reference/FastaReferenceWriter.java b/src/main/java/htsjdk/samtools/reference/FastaReferenceWriter.java
index 334a74c3a9..85ab2e4155 100644
--- a/src/main/java/htsjdk/samtools/reference/FastaReferenceWriter.java
+++ b/src/main/java/htsjdk/samtools/reference/FastaReferenceWrite... | 28 | 23 | 2 | [{"id": "G0", "claim": "The new addIndexer method needs javadoc (it carries only a TODO placeholder comment).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out condition block in deflateBlock() should be deleted rather than left com... | null |
samtools__htsjdk__1341 | samtools/htsjdk | 1,341 | defect | aa8980937e80bee82edd344df1435ba82ab670c2 | c1c0129515114feadd374188530bd88201e9299f | CRAM: revert #1326 and fix tests and comments | ### Description
Please explain the changes you made here.
Explain the **motivation** for making this change. What existing problem does the pull request solve?
### Checklist
- [x] Code compiles correctly
- [x] New tests covering changes and new functionality
- [x] All tests passing
- [x] Extended the READM... | diff --git a/src/main/java/htsjdk/samtools/BAMIndexMetaData.java b/src/main/java/htsjdk/samtools/BAMIndexMetaData.java
index 09391b6515..3a502e93e3 100644
--- a/src/main/java/htsjdk/samtools/BAMIndexMetaData.java
+++ b/src/main/java/htsjdk/samtools/BAMIndexMetaData.java
@@ -159,7 +159,7 @@ void recordMetaData(final Sli... | 5 | 5 | 0 | [{"id": "G0", "claim": "The Javadoc for Container.landmarks should be explicit that the offsets are within the container starting from the end of the container header, with offset 0 being the start of the compression header.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
samtools__htsjdk__1344 | samtools/htsjdk | 1,344 | defect | 1ece54c3df86f0e7245b8969cfd3291e6ec44ad5 | 7c916045d8f24c91eaead06a0244d57c2448a473 | make VariantContextBuilder safer | Adds tests and fixes unsafe building patterns that were enabled by VariantContextBuilder.
This required a small change in the API around adding a genotype context. Now when .genotypes() is called with a GenotypeContext object the builder will call immutable() on that object, to make sure that the user doesn't chang... | diff --git a/src/main/java/htsjdk/variant/variantcontext/CommonInfo.java b/src/main/java/htsjdk/variant/variantcontext/CommonInfo.java
index 301475de97..cb99b0aace 100644
--- a/src/main/java/htsjdk/variant/variantcontext/CommonInfo.java
+++ b/src/main/java/htsjdk/variant/variantcontext/CommonInfo.java
@@ -105,7 +105,7 ... | 28 | 26 | 1 | [{"id": "G0", "claim": "Several VariantContextBuilder use-patterns fail or yield unexpected results, and the author asks whether they are reasonable use-patterns that should be fixed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The PASSES_FILTE... | null |
samtools__htsjdk__1351 | samtools/htsjdk | 1,351 | defect | 5442f78cda87e742a7cab1579187471f4ab6be73 | bc70a087c09ac152945bff7abfb3bc9e38aa433e | Support writing a CRAI index from CRAMContainerStreamWriter | ### Description
This is to make it possible to write CRAI indexes from `CRAMContainerStreamWriter`, not just BAI indexes (as is the case currently). This is needed by https://github.com/disq-bio/disq/pull/97.
This PR introduces `AbstractCRAMIndexer` that is the common base class of `CRAMBAIIndexer` and `CRAMCRAII... | diff --git a/src/main/java/htsjdk/samtools/AbstractCRAMIndexer.java b/src/main/java/htsjdk/samtools/AbstractCRAMIndexer.java
new file mode 100644
index 0000000000..16b9e0920c
--- /dev/null
+++ b/src/main/java/htsjdk/samtools/AbstractCRAMIndexer.java
@@ -0,0 +1,20 @@
+package htsjdk.samtools;
+
+import htsjdk.samtools.c... | 4 | 4 | 0 | [{"id": "G0", "claim": "AbstractCRAMIndexer should be an interface instead of an abstract class.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test code should use try-with-resources instead of explicit close() calls.", "category": "maintainability"... | null |
samtools__htsjdk__1352 | samtools/htsjdk | 1,352 | defect | 5442f78cda87e742a7cab1579187471f4ab6be73 | 2bd58ea7cedb9c977b996e23296d47667d898c73 | Allow BCFCodec subclasses to provide custom version compatibility. | Fix/workaround for https://github.com/broadinstitute/gatk/issues/5839. Allows BCFCodec subclasses to override the default version compatibility policy. | diff --git a/src/main/java/htsjdk/variant/bcf2/BCF2Codec.java b/src/main/java/htsjdk/variant/bcf2/BCF2Codec.java
index 372f15ee9f..bf54f6fae5 100644
--- a/src/main/java/htsjdk/variant/bcf2/BCF2Codec.java
+++ b/src/main/java/htsjdk/variant/bcf2/BCF2Codec.java
@@ -55,13 +55,12 @@
/**
* Decode BCF2 files
*/
-public f... | 6 | 6 | 1 | [{"id": "G0", "claim": "Remove the two non-NLS marker lines from the end of BCFCodecTest.java.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a @throws javadoc tag to the new validateVersionCompatibility method, which throws a TribbleExcepti... | null |
samtools__htsjdk__1354 | samtools/htsjdk | 1,354 | defect | 1ece54c3df86f0e7245b8969cfd3291e6ec44ad5 | e52e98de4f165c53850b14966a39d910cadda354 | - Add a function to calculate the value of the OA tag | The OA tag can be used to record the previous ("Original") alignment information in a SAM record. This PR add a method that will construct the contents of the OA tag from a record, to make the creation of the OA tag easy and uniform. | diff --git a/src/main/java/htsjdk/samtools/SAMRecordSetBuilder.java b/src/main/java/htsjdk/samtools/SAMRecordSetBuilder.java
index fbeaca90ae..1bf0a8d795 100644
--- a/src/main/java/htsjdk/samtools/SAMRecordSetBuilder.java
+++ b/src/main/java/htsjdk/samtools/SAMRecordSetBuilder.java
@@ -231,16 +231,17 @@ private SAMReco... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `import java.util.Optional;` added to SequenceUtil.java appears to be an accidental inclusion, since that file does not use Optional.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new public method `calculateOATa... | null |
samtools__htsjdk__1374 | samtools/htsjdk | 1,374 | defect | 3b0dd60a31e14852163c1465d588f4663be5200c | 485d9e0f00640b61b46ca399232260f9a0b2dddd | Substitution matrix refactoring and tests | There are 4 commits:
- use an enum for substitution bases, tighten up types and matrix code, range checking
- a minor reordering of methods so all public methods come first
- move creation of SubstitutionMatrix inside of CompressionHeaderFactory, rather than having all callers create it
- change the SubstitutionM... | diff --git a/src/main/java/htsjdk/samtools/cram/build/CompressionHeaderFactory.java b/src/main/java/htsjdk/samtools/cram/build/CompressionHeaderFactory.java
index 4bb3bf3262..6c38310017 100644
--- a/src/main/java/htsjdk/samtools/cram/build/CompressionHeaderFactory.java
+++ b/src/main/java/htsjdk/samtools/cram/build/Com... | 11 | 10 | 0 | [{"id": "G0", "claim": "Fix the typo in the SubstitutionBase constructor javadoc ('represneting' should be 'representing').", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Simplify SubstitutionBase by deriving each constant's base from the first ch... | null |
samtools__htsjdk__1389 | samtools/htsjdk | 1,389 | defect | b0decef94800849b2e0ebf34050955aa1eaba85a | 21f511a7db91bca267d7dde0c47c86b938905814 | Output missing vcf fields as a single . |
### Description
* Previously vcf genotype fields with a specific number of elements were output as a comma separated list of dots
* This is valid, but uneccessarily long and doesn't provide any additional information.
* Now only a single dot will be emitted.
* ex: .,.,. -> .
This is a follow up to #1371
#... | diff --git a/src/main/java/htsjdk/variant/vcf/VCFEncoder.java b/src/main/java/htsjdk/variant/vcf/VCFEncoder.java
index 48c5dfc6b8..00d80c4791 100644
--- a/src/main/java/htsjdk/variant/vcf/VCFEncoder.java
+++ b/src/main/java/htsjdk/variant/vcf/VCFEncoder.java
@@ -338,23 +338,6 @@ else if (intValues.length == 1) // fast ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new comment should have a space after the opening `//` before the text.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
samtools__htsjdk__1401 | samtools/htsjdk | 1,401 | defect | c5ed6b74b2929ddd13331cd6c8aed2b91bcd0868 | ec1ea91a44cb6cbfbce89b65dbc0ebe4e6409073 | Handle PEDIGREE header lines differently for vcf4.2 vs vcf4.3. | Fix https://github.com/samtools/htsjdk/issues/1400. | diff --git a/src/main/java/htsjdk/variant/vcf/AbstractVCFCodec.java b/src/main/java/htsjdk/variant/vcf/AbstractVCFCodec.java
index f9a4967c2d..bfa718453e 100644
--- a/src/main/java/htsjdk/variant/vcf/AbstractVCFCodec.java
+++ b/src/main/java/htsjdk/variant/vcf/AbstractVCFCodec.java
@@ -202,7 +202,8 @@ protected VCFHead... | 1 | 1 | 0 | [{"id": "G0", "claim": "In the new pedigree-parsing tests the string literal \"PEDIGREE\" should be replaced with the existing constant VCFConstants.PEDIGREE_HEADER_KEY (likewise in the vcf4.3 test).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
samtools__htsjdk__1418 | samtools/htsjdk | 1,418 | defect | e1bbd34cb95fdcbd940392346a9ac08cb41c995d | 16f635595e405500bb1b63d32d5ffe9e54139560 | Make VCFHeader not throw exception if contig header lines lack length field | ### Description
`VCFHeader.getSequenceDictionary` currently throws an exception if one or more of the `Contig` header lines does not have a length field, despite the fact that:
- The VCF spec (v 4.2 and 4.3) does not require a length field (although it states that they are typically present)
- If contig lines ar... | diff --git a/src/main/java/htsjdk/variant/vcf/VCFContigHeaderLine.java b/src/main/java/htsjdk/variant/vcf/VCFContigHeaderLine.java
index 2cbc40ea28..730cb32dde 100644
--- a/src/main/java/htsjdk/variant/vcf/VCFContigHeaderLine.java
+++ b/src/main/java/htsjdk/variant/vcf/VCFContigHeaderLine.java
@@ -76,9 +76,14 @@ public... | 3 | 3 | 2 | [{"id": "G0", "claim": "getSAMSequenceRecord should preferably return a SAMSequenceRecord with its length set to SAMSequenceRecord.UNKNOWN_SEQUENCE_LENGTH when the contig header line lacks a length field, rather than returning null in cases where it previously would have thrown.", "category": "design", "verdict": "supp... | null |
samtools__htsjdk__1430 | samtools/htsjdk | 1,430 | defect | c33b69504f36cff58f5e02846cca6397ba1d1a27 | cc22605f96fdb8c69123fd13ee2cd5e9909ebb07 | Path-enable IndexFactory. | Prerequisite for https://github.com/broadinstitute/gatk/issues/6161. | diff --git a/src/main/java/htsjdk/tribble/index/IndexFactory.java b/src/main/java/htsjdk/tribble/index/IndexFactory.java
index 28bde10a15..1ec0119f05 100644
--- a/src/main/java/htsjdk/tribble/index/IndexFactory.java
+++ b/src/main/java/htsjdk/tribble/index/IndexFactory.java
@@ -40,6 +40,8 @@
import htsjdk.tribble.read... | 3 | 1 | 0 | [{"id": "G0", "claim": "The File overloads should use the null-safe IOUtil.toPath(file) for the File-to-Path conversion and keep the null check only in the final Path overload, instead of repeating ValidationUtils.nonNull(file).toPath() in each overload.", "category": "maintainability", "verdict": "supported", "priorit... | null |
samtools__htsjdk__1461 | samtools/htsjdk | 1,461 | defect | c7b09183c761ba521d3888a6fd4d4cb3511113f9 | 5aa3ccb7739e34dfcdbb2f2e53cb1c6f627e429d | Add option to hard clip read in CigarUtils (replacement for #1453) | @lbergelson here is the replacement PR for #1453 we discussed earlier today.
@fleharty, @lbergelson and I talked about how to get hard clipping merged ASAP, given that I do not have permissions to push directly to htsjdk, and so cannot make modifications directly to your branch. He suggested opening up a new PR to ... | diff --git a/src/main/java/htsjdk/samtools/util/CigarUtil.java b/src/main/java/htsjdk/samtools/util/CigarUtil.java
index 86347644b1..21fd69baa5 100644
--- a/src/main/java/htsjdk/samtools/util/CigarUtil.java
+++ b/src/main/java/htsjdk/samtools/util/CigarUtil.java
@@ -30,11 +30,9 @@
import htsjdk.samtools.SAMRecord;
im... | 3 | 3 | 1 | [{"id": "G0", "claim": "Delete or uncomment the commented-out assertion of the initial cigar string in hardClippingTest.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the confusing parameters and variables in the clipping merge helper (c... | null |
samtools__htsjdk__1481 | samtools/htsjdk | 1,481 | defect | bd1b7396ec6bdb1b75c7e6c73fddff46733be2f9 | e5cd548cefe90dea6d8d434165ad8443116441c0 | SamLocusAndReferenceIterator fails with leading indels at the start of the reference | This comes from https://github.com/broadinstitute/picard/issues/1511
| diff --git a/src/main/java/htsjdk/samtools/reference/SamLocusAndReferenceIterator.java b/src/main/java/htsjdk/samtools/reference/SamLocusAndReferenceIterator.java
index ec8d0e01b5..5c27d83356 100644
--- a/src/main/java/htsjdk/samtools/reference/SamLocusAndReferenceIterator.java
+++ b/src/main/java/htsjdk/samtools/refer... | 5 | 5 | 2 | [{"id": "G0", "claim": "The debug `System.err.println` of loci with insertions left in the test loop should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The position-0 guard would be easier to read with a named constant for the byt... | null |
samtools__htsjdk__1496 | samtools/htsjdk | 1,496 | defect | 657b0a6076d84582a19b741fc28cd3c9a12384bf | a35696d31cb382c0ab85e776ef7812954eab1a19 | IOPath interface and IOPathSpec implementation | An interface and extensible concrete implementation for paths specifiers backed by URIs. The hard part is the names. | diff --git a/build.gradle b/build.gradle
index e479d7c5ab..a087337e49 100644
--- a/build.gradle
+++ b/build.gradle
@@ -44,6 +44,7 @@ dependencies {
testCompile "org.testng:testng:6.14.3"
testCompile "com.google.jimfs:jimfs:1.1"
testCompile "com.google.guava:guava:26.0-jre"
+ testCompile "org.apache.co... | 1 | 1 | 0 | [{"id": "G0", "claim": "The concrete class IOPathSpec should be renamed to HtsjdkPath because the PathSpec-style name is confusing.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
samtools__htsjdk__1497 | samtools/htsjdk | 1,497 | defect | 657b0a6076d84582a19b741fc28cd3c9a12384bf | c2fca57ea7b5a56d7f5b3de2d7cf5335c2f85278 | BasicFastqWriter: no longer flushing on every write | ### Description
`PrintStream.checkError()` is called on every write(). Since this flushes the underlying stream, performance when writing fastq files is very poor.
This change defers the call to `checkError()` to `flush()` and `close()` operations. | diff --git a/src/main/java/htsjdk/samtools/fastq/BasicFastqWriter.java b/src/main/java/htsjdk/samtools/fastq/BasicFastqWriter.java
index 0c9596a0b9..271401dbfe 100644
--- a/src/main/java/htsjdk/samtools/fastq/BasicFastqWriter.java
+++ b/src/main/java/htsjdk/samtools/fastq/BasicFastqWriter.java
@@ -62,6 +62,9 @@ public ... | 4 | 1 | 0 | [{"id": "G0", "claim": "Removing the checkError call from write() makes the writer vulnerable to undetected errors without actually fixing the flushing problem.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR should configure the PrintStream wit... | null |
samtools__htsjdk__1520 | samtools/htsjdk | 1,520 | defect | a728b34379fbfd3b22ac43cc7f19cd830f9e69f3 | dcfa8d79b1ba6c9b2e6abc4fb387253b2182b067 | Check base qualities before accumulating inserted bases in SamLocusIterator | ### Description
Updated `accumulateIndels` in `SamLocusIterator` to check if bases in an insertion have base quality >= `qualityScoreCutoff` before adding them to the accumulator. The motivation for this change is that insertions should be filtered and accumulated consistently with matching bases.
### Things to t... | diff --git a/src/main/java/htsjdk/samtools/util/SamLocusIterator.java b/src/main/java/htsjdk/samtools/util/SamLocusIterator.java
index 1034f145f3..b0f8dfc2d5 100644
--- a/src/main/java/htsjdk/samtools/util/SamLocusIterator.java
+++ b/src/main/java/htsjdk/samtools/util/SamLocusIterator.java
@@ -119,6 +119,9 @@ void accu... | 2 | 1 | 0 | [{"id": "G0", "claim": "In testInsertionQualityFilter the final two branches (the else-if and the else) assert the same thing, so the else-if branch looks redundant and the reviewer asks whether they were meant to assert different things.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope... | null |
samtools__htsjdk__1524 | samtools/htsjdk | 1,524 | defect | f80cf0a7dff1abbc464b7d75bdeb58951806c929 | 4a184608788055387937a7c89a41bb10f7c6136b | Feature/async pool | ### Description
This PR adds a Pooled Async Writer aimed at the use case where there are significantly more writers than there are threads.
### Things to think about before submitting:
- [X] Make sure your changes compile and new tests pass locally.
- [X] Add new tests or update existing ones:
- A bug fix s... | diff --git a/src/main/java/htsjdk/samtools/util/AsyncWriterPool.java b/src/main/java/htsjdk/samtools/util/AsyncWriterPool.java
new file mode 100644
index 0000000000..1503895ba1
--- /dev/null
+++ b/src/main/java/htsjdk/samtools/util/AsyncWriterPool.java
@@ -0,0 +1,124 @@
+package htsjdk.samtools.util;
+
+import java.io.... | 42 | 34 | 5 | [{"id": "G0", "claim": "Members should be declared with the interface type (List<PooledWriter<A>>) rather than the concrete ArrayList.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pool should not be generically typed, since the type parame... | null |
samtools__htsjdk__1572 | samtools/htsjdk | 1,572 | defect | aac46ee6d4cc9cf40f963cf32dde81183c4f294b | ca668439924c84b2392f3e37abf2600b56e98110 | Adding Github actions as an alternative to travis. | * This is not 100% equivalent to the travis run but runs MOST of our tests and can be used as a backup.
* Made minor changes to a few things to make tests run on GH machines | diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
new file mode 100644
index 0000000000..62561996fd
--- /dev/null
+++ b/.github/workflows/gradle.yml
@@ -0,0 +1,66 @@
+# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
+#... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new workflow only triggers on push, and should also run on pull requests.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The workflow file should make clear it is a GitHub Actions workflow: the header comment should say s... | null |
samtools__htsjdk__1575 | samtools/htsjdk | 1,575 | defect | aac46ee6d4cc9cf40f963cf32dde81183c4f294b | b9de1595f301133c3e43c822fb60109bd7a63acc | add predicate to GFF3Codec to give a chance to filter out some unused attributes | ### Description
When using a GFF3Reader with DecodeDepth==DEEP, it may use a large amount of memory with attributes that will never be used ("version" ,"tag", etc...). This PR gives the GFF3Codec a chance to set a `Predicate<String>` to only keep a defined set of attributes.
the private attribute of ID_ATTRIB... | diff --git a/src/main/java/htsjdk/tribble/gff/Gff3BaseData.java b/src/main/java/htsjdk/tribble/gff/Gff3BaseData.java
index e484d0da6b..c9f2b94556 100644
--- a/src/main/java/htsjdk/tribble/gff/Gff3BaseData.java
+++ b/src/main/java/htsjdk/tribble/gff/Gff3BaseData.java
@@ -9,8 +9,8 @@
import java.util.Map;
public clas... | 7 | 7 | 0 | [{"id": "G0", "claim": "The javadoc on the new filter field should be reworded to 'Optional filter to remove keys from the EXTRA_FIELDS column' instead of 'give a chance filter out some keys in the EXTRA_FIELDS column'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
samtools__htsjdk__1578 | samtools/htsjdk | 1,578 | defect | aac46ee6d4cc9cf40f963cf32dde81183c4f294b | 11c1fbeebfce6824f63d3aa0ad059494e0d20627 | ignore TC, TN on CRAM read | ### Description
As per CRAMv3,
> TC and TN are legacy data series from CRAM 1.0. They have no function in CRAM 3.0 and should not
> be present. However, some implementations do output them and decoders must silently skip these fields.
> It is illegal for TC and TN to contain any data values, although there may... | diff --git a/src/main/java/htsjdk/samtools/cram/structure/CompressionHeaderEncodingMap.java b/src/main/java/htsjdk/samtools/cram/structure/CompressionHeaderEncodingMap.java
index 25c4163765..77e83f5d35 100644
--- a/src/main/java/htsjdk/samtools/cram/structure/CompressionHeaderEncodingMap.java
+++ b/src/main/java/htsjdk... | 6 | 6 | 3 | [{"id": "G0", "claim": "The comments left where the TC and TN encodings were removed should say that these DataSeries are actually obsolete, which is different from series like BB and QQ that are merely not used by the current htsjdk implementation.", "category": "documentation", "verdict": "supported", "priority": "P2... | null |
samtools__htsjdk__1593 | samtools/htsjdk | 1,593 | defect | b5af659e6c71addab4baeed297aadf4468d94bd0 | a79b421515e227c34239f025fb5c454d56a1eda4 | Use allele info in VariantContext comparisons for stable sorts | TLDR: This PR will make coordinate VCF sorting in HTSJDK/Picard similar to bcftools.
I tried to use Picard's [SortVcf](https://gatk.broadinstitute.org/hc/en-us/articles/360036858331-SortVcf-Picard) for a VCF comparison task, but I had difficulty because it's output was non-stable based on the full primary informatio... | diff --git a/.gitignore b/.gitignore
index f10fff99c0..694f85de06 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
htsjdk.iws
.command_tmp
+.DS_Store
atlassian-ide-plugin.xml
/htsjdk.version.properties
/test-output/
diff --git a/src/main/java/htsjdk/variant/variantcontext/VariantContextComparator.java b/sr... | 4 | 1 | 1 | [{"id": "G0", "claim": "The loop bound should probably use getNAlleles() instead of getAlleles().size().", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since there is no guarantee that a VariantContext's alleles are sorted in any order, the tie-... | null |
samtools__htsjdk__1616 | samtools/htsjdk | 1,616 | defect | 489c4192dd9682a9d1e53f4c8f6f7bb826e33589 | 185e63ba1e3efb87fb81e3d1192c03a9028dc915 | Fix EdgeReadIterator | - Fixing #1615
- EdgeReadIterator was calling AbstractLocusIterator's `getCurrentInterval()` to determine the read overlaps. However, the `lastInterval` that it uses internally was never updated. This PR removes the method `getCurrentInterval()` and instead implements this functionality in `EdgeReadIterator`, which... | diff --git a/src/main/java/htsjdk/samtools/util/AbstractLocusIterator.java b/src/main/java/htsjdk/samtools/util/AbstractLocusIterator.java
index 79cc39e044..9804adbc8a 100644
--- a/src/main/java/htsjdk/samtools/util/AbstractLocusIterator.java
+++ b/src/main/java/htsjdk/samtools/util/AbstractLocusIterator.java
@@ -142,1... | 9 | 5 | 0 | [{"id": "G0", "claim": "The newly added strict sequence-dictionary equality check may fail in benign cases and cause problems in downstream tools that allow looser dictionary compatibility; the reviewer asks to make the check less strict, e.g. via a compatibility check.", "category": "design", "verdict": "opposed", "pr... | null |
samtools__htsjdk__1648 | samtools/htsjdk | 1,648 | defect | 9f0e80f5bf69b415f5d4f52594acc0b50723159c | 6f5230ff638db6522ddfc34482e4390bb9c2a7a7 | Expose the ability to encode a Genotoype into a GT field | * Expose two public methods in VCFEncoder writeGtField and encodeGtField
* Supports https://github.com/broadinstitute/gatk/issues/8160 but seems like a useful thing to be able to do in general
* minor breaking change in VCFEncoder, made methods formatVCFField and buildAlleleStrings static
It is unlikely anyone ove... | diff --git a/src/main/java/htsjdk/variant/vcf/VCFEncoder.java b/src/main/java/htsjdk/variant/vcf/VCFEncoder.java
index 9cffb45837..c674665fa0 100644
--- a/src/main/java/htsjdk/variant/vcf/VCFEncoder.java
+++ b/src/main/java/htsjdk/variant/vcf/VCFEncoder.java
@@ -219,7 +219,7 @@ private void fieldIsMissingFromHeaderErro... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a unit test for writeGtField() as well, as was done for encodeGtField().", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
samtools__htsjdk__1693 | samtools/htsjdk | 1,693 | defect | 3964abef798ed1db46321fc9c23827dbede44e1b | 6cdcbd479f7a6e56fc30e9664dd4885c2357862d | Re-Ordering priority in SeekableStreamFactory | * Now when constructing streams it will prefer NIO plugins.
* If no http / ftp plugin exists it will fall back to the htsjdk bulit in
* No longer special casing local files, these will now be handled through NIO as well.
* Deprecating SeekableStreamFactory.isFilePath() since it is no longer used and interacts poorly
... | diff --git a/src/main/java/htsjdk/samtools/seekablestream/SeekableStreamFactory.java b/src/main/java/htsjdk/samtools/seekablestream/SeekableStreamFactory.java
index 7148323be4..5ddd95acd1 100644
--- a/src/main/java/htsjdk/samtools/seekablestream/SeekableStreamFactory.java
+++ b/src/main/java/htsjdk/samtools/seekablestr... | 5 | 4 | 2 | [{"id": "G0", "claim": "The same priority re-ordering should also be applied to ParsingUtils.openInputStream() (used by TribbleIndexedFeatureReader.readHeader()).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The repeated `new HtsPath(path).isPath(... | null |
samtools__htsjdk__1694 | samtools/htsjdk | 1,694 | defect | 40e3a8bbe033d4b2fdaa475bd6bfae4f44f2e057 | 41e99ff44a5b4d1ad9d4b86729c2278b63a32beb | Improving the somewhat slipshod change I made to HtsPath | @droazen Can you take a quick look at this? It fixes some cases that I should have handled before. | diff --git a/src/main/java/htsjdk/io/HtsPath.java b/src/main/java/htsjdk/io/HtsPath.java
index c16090b450..320031d5ed 100644
--- a/src/main/java/htsjdk/io/HtsPath.java
+++ b/src/main/java/htsjdk/io/HtsPath.java
@@ -27,7 +27,7 @@
* encoding/escaping.
*
* For example, a URI that contains a scheme and has an embedde... | 5 | 5 | 2 | [{"id": "G0", "claim": "The javadoc misspells \"hierarchical\" as \"heirachical\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The unconditional pathString.endsWith(HIERARCHICAL_SCHEME_SEPARATOR) check would wrongly reject paths like `http://ho... | null |
samtools__htsjdk__1703 | samtools/htsjdk | 1,703 | defect | b23c36aab4d012023fdf8733c85006c2f6f1995a | 9465199636d62a6ec07a7f39f4e81fff0fb37ad4 | Implement VCF bundles. | Draft until https://github.com/samtools/htsjdk/pull/1702 goes in. | diff --git a/src/main/java/htsjdk/beta/io/bundle/Bundle.java b/src/main/java/htsjdk/beta/io/bundle/Bundle.java
index b4178d2f5d..9efe52e45b 100644
--- a/src/main/java/htsjdk/beta/io/bundle/Bundle.java
+++ b/src/main/java/htsjdk/beta/io/bundle/Bundle.java
@@ -5,14 +5,14 @@
import java.io.Serializable;
import java.ut... | 12 | 11 | 2 | [{"id": "G0", "claim": "The serialVersionUID field should be annotated with @Serial.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The VariantsBundle constructors should use List.of() instead of Arrays.asList().", "category": "maintainability",... | null |
samtools__htsjdk__1713 | samtools/htsjdk | 1,713 | defect | 46f6f0f125956423909f53ca07b980edfef65573 | ae17645b9d303d2047e5af32550ae31182b6a93a | Support reference bundles. | The main feature implemented here is that a bundle can be used in place of a reference, without executing any code paths that assume that the individual resources are located in the same parent directory (there are a LOT of such code paths, since most of the existing code base makes these assumptions). There are a numb... | diff --git a/src/main/java/htsjdk/beta/codecs/hapref/fasta/FASTADecoderV1_0.java b/src/main/java/htsjdk/beta/codecs/hapref/fasta/FASTADecoderV1_0.java
index f78b8ea68a..45b50eb35e 100644
--- a/src/main/java/htsjdk/beta/codecs/hapref/fasta/FASTADecoderV1_0.java
+++ b/src/main/java/htsjdk/beta/codecs/hapref/fasta/FASTADe... | 7 | 6 | 1 | [{"id": "G0", "claim": "Fix the typo in the new bundle-creating method's Javadoc, where 'Create q reference bundle' should read 'Create a reference bundle'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo in the FastaSequenceFile Javad... | null |
samtools__htsjdk__1758 | samtools/htsjdk | 1,758 | defect | c6729bb302d0efd74734929270c6fe857227ffd4 | d5ba68d43658dd01bb094498b58ec457aa696a4b | Fix SamLocusIterator so that read position is not incorrectly offset … | …after transiting insertions that fail the base quality check.
### Description
This fixes a bug in SamLocusIterator where during accumulation of indels, the position in the read (`readBase`) was incorrectly failling to count indels that failed a base quality check. The result of this is that indels later in the ... | diff --git a/src/main/java/htsjdk/samtools/util/SamLocusIterator.java b/src/main/java/htsjdk/samtools/util/SamLocusIterator.java
index b0f8dfc2d5..029e20b47a 100644
--- a/src/main/java/htsjdk/samtools/util/SamLocusIterator.java
+++ b/src/main/java/htsjdk/samtools/util/SamLocusIterator.java
@@ -136,8 +136,10 @@ void acc... | 3 | 3 | 1 | [{"id": "G0", "claim": "Remove the time-dependent wording from the new test's documentation — the 'Previously, failing the BQ check...' sentence in the javadoc, the '(not 11)' phrasing, and the '// Before the fix...' comment — since 'previously' only makes sense in a commit or PR, not in a test docstring.", "category":... | null |
samtools__htsjdk__1759 | samtools/htsjdk | 1,759 | defect | c6729bb302d0efd74734929270c6fe857227ffd4 | cf7658ba8b1f801190bc8a995a046023dfa5dbf8 | Fix up unit tests so that gradle correctly reports results (no more erroneous skips) | ### Description
I got tired of gradle reporting incorrect test results, so this PR is intended to fix that, and enable reasonable parallelization of the tests. The crux is that parallelization at the method level with TestNG and gradle's test infrastructure seem to be incompatible, and this is known issue that is s... | diff --git a/build.gradle b/build.gradle
index bd5e331247..0eed767aa5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -84,13 +84,11 @@ import org.gradle.internal.os.OperatingSystem;
tasks.withType(Test).configureEach { task ->
task.outputs.upToDateWhen { false } // tests will always rerun
- // Always run ser... | 3 | 1 | 1 | [{"id": "G0", "claim": "With setup moved to class level, the tests no longer each start with the same SAMRecordSetBuilder, so a test that modifies the builder (now or in the future) would affect the tests that come after it in the same class.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope... | null |
samtools__htsjdk__1765 | samtools/htsjdk | 1,765 | defect | 8f5fe6056f522ad7487cdecaff760ba014164cf2 | ca3d969995c9361505f3609c3e1a292a252b1700 | Fix LTF8 9-byte write bug: wrong bit shift (>> 28 instead of >> 24) | The writeUnsignedLTF8(long, OutputStream) method incorrectly shifts by 28 bits instead of 24 bits when encoding byte 5 of a 9-byte LTF8 value. This causes data corruption for values requiring the full 9-byte encoding (values >= 2^56 with certain bit patterns).
The 9-byte encoding should write bytes at shifts:
56,... | diff --git a/src/main/java/htsjdk/samtools/cram/io/LTF8.java b/src/main/java/htsjdk/samtools/cram/io/LTF8.java
index 11872dabae..d9e12a0c86 100644
--- a/src/main/java/htsjdk/samtools/cram/io/LTF8.java
+++ b/src/main/java/htsjdk/samtools/cram/io/LTF8.java
@@ -195,7 +195,7 @@ public static int writeUnsignedLTF8(final lon... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test case for a 9-byte value that does not start with zero (e.g. 0xFEDCBA9876543210L), since the spec is ambiguous about the presence or absence of a trailing zero after the prefixed 1's.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
samtools__htsjdk__487 | samtools/htsjdk | 487 | defect | 389b8848215c12c8799ccc29b9f3338db5d87c95 | 9ab4ebf404cf4fa176c28a09e54dbfa082145809 | CRAM lossless roundtrip | see https://github.com/samtools/htsjdk/issues/483 and https://github.com/samtools/htsjdk/issues/455
| diff --git a/src/java/htsjdk/samtools/CRAMIterator.java b/src/java/htsjdk/samtools/CRAMIterator.java
index 3fee6664a4..c11264fe94 100644
--- a/src/java/htsjdk/samtools/CRAMIterator.java
+++ b/src/java/htsjdk/samtools/CRAMIterator.java
@@ -49,7 +49,7 @@ public class CRAMIterator implements SAMRecordIterator {
priva... | 3 | 2 | 0 | [{"id": "G0", "claim": "The restoreNMTag and restoreMDTag fields and their corresponding @SuppressWarnings annotations in CRAMIterator are no longer used and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out calcul... | null |
samtools__htsjdk__543 | samtools/htsjdk | 543 | defect | 72a3f6cb9fdcfc03e432274a41e302e0b588311c | 72b333c0a66796fd600a909f707b9678a8396718 | Bug fixes for SAMRecord, SAMBinaryTagAndValue, and BAMIndexer. | Fixes https://github.com/samtools/htsjdk/issues/512, https://github.com/samtools/htsjdk/issues/402, and a couple of gratuitous javadoc fixes.
| diff --git a/src/java/htsjdk/samtools/BAMFileReader.java b/src/java/htsjdk/samtools/BAMFileReader.java
index de115da6fc..4cfa92fda3 100644
--- a/src/java/htsjdk/samtools/BAMFileReader.java
+++ b/src/java/htsjdk/samtools/BAMFileReader.java
@@ -203,7 +203,7 @@ void enableFileSource(final SamReader reader, final boolean e... | 8 | 8 | 4 | [{"id": "G0", "claim": "The new exception message lost a word (\"BAM file must be coordinate-sorted\") and should also state what the sort order actually is.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Indexing should probably allow headers wit... | null |
samtools__htsjdk__810 | samtools/htsjdk | 810 | defect | 737ceec0d62e5a7c57a1d0cf2d7dce09cc78d38a | f293192fc02c88ff50bbc24323e36d99084be7f6 | Tribble/Tabix index path support | ### Description
#### Motivation
While trying to index a `Path` (no convertible to `File`) using the `Index` interface, the client should:
- Create the `LittleEndianOutputStream`by its own. This may lead to wrong indexes because they aren't block-compressed.
- Get the index file name by its own if it is based on a... | diff --git a/src/main/java/htsjdk/tribble/TabixFeatureReader.java b/src/main/java/htsjdk/tribble/TabixFeatureReader.java
index 889fdc22ba..e722433250 100644
--- a/src/main/java/htsjdk/tribble/TabixFeatureReader.java
+++ b/src/main/java/htsjdk/tribble/TabixFeatureReader.java
@@ -23,7 +23,6 @@
*/
package htsjdk.tribbl... | 14 | 13 | 9 | [{"id": "G0", "claim": "Something went wrong in the pull request as first opened: the tests are failing all over.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "The javadoc of the Path-based index-path method still refers to {@code filename} where it s... | null |
samtools__htsjdk__826 | samtools/htsjdk | 826 | defect | 8c97c994f57bcff1446a77c7a1e9715ceb9d1917 | 2bf9bddeaeb2d1899724031f5d434a49c7792808 | Obey the tmpDir setting in several constructors that currently ignore it | ### Description
Several constructors don't do what they should regarding tmpDir.
Ensured that both initWriter and initializeBAMWriter both call setTempDirectory() when needed, and made one of the existing constructors make use of initWriter() (This private method had an unused parameter, which has been removed)
... | diff --git a/src/main/java/htsjdk/samtools/SAMFileWriterFactory.java b/src/main/java/htsjdk/samtools/SAMFileWriterFactory.java
index b788fbe892..30b36d7b31 100644
--- a/src/main/java/htsjdk/samtools/SAMFileWriterFactory.java
+++ b/src/main/java/htsjdk/samtools/SAMFileWriterFactory.java
@@ -173,6 +173,14 @@ public SAMFi... | 3 | 2 | 1 | [{"id": "G0", "claim": "Add accessors on the writer (and factory) for properties such as tmpDir and maxRecordsInRam, plus tests verifying that they are propagated from the factory to the writer instance for the affected code paths.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"... | null |
samtools__htsjdk__903 | samtools/htsjdk | 903 | defect | dd78f7717a0b1b260727cd990b2ad0e583d0c40e | f440cb9394d9f53bb982a5fe6c2cddeac41c6308 | Insertions accumulating in AbstractLocusIterator bugfix | The current version of `AbstractLocusIterator` class works the following way: when new read comes, it completes all accumulated loci with position to the left of the read start. When the flag `includeIndels` is specified, the read starting with insertions won't complete the locus at the position to the left of the read... | diff --git a/src/main/java/htsjdk/samtools/util/AbstractLocusIterator.java b/src/main/java/htsjdk/samtools/util/AbstractLocusIterator.java
index e35087405f..2e41327288 100644
--- a/src/main/java/htsjdk/samtools/util/AbstractLocusIterator.java
+++ b/src/main/java/htsjdk/samtools/util/AbstractLocusIterator.java
@@ -277,1... | 3 | 2 | 2 | [{"id": "G0", "claim": "The pull request should include a testcase covering the bug it fixes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A test is needed whereby the previous record is in the previous sequence, exercising the sequence-index check th... | null |
samtools__htsjdk__910 | samtools/htsjdk | 910 | defect | 8f89e27588416b8057470d875b87ccbde7313337 | b794b79f721dd235775f1aeca5521f0f4fec0d48 | More support for java.nio.Path: DiskBackedQueue and SortingCollection | ### Description
- New methods in IOUtil to support Paths
- Change DiskBackedQueue to use Paths
- Change SortingCollection to use Paths
- Change SortingLongCollection to use Paths
### Checklist
- [ ] Code compiles correctly
- [ ] New tests covering changes and new functionality
- [ ] All tests passing
- [... | diff --git a/src/main/java/htsjdk/samtools/util/DiskBackedQueue.java b/src/main/java/htsjdk/samtools/util/DiskBackedQueue.java
index 22fca11386..a3c7ff2801 100644
--- a/src/main/java/htsjdk/samtools/util/DiskBackedQueue.java
+++ b/src/main/java/htsjdk/samtools/util/DiskBackedQueue.java
@@ -28,17 +28,18 @@
import htsjd... | 14 | 10 | 4 | [{"id": "G0", "claim": "The new IOUtil.deletePaths methods are entirely untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new IOUtil.newTempPath methods are untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope":... | null |
samtools__htsjdk__933 | samtools/htsjdk | 933 | defect | 8d207ae878f9f5136cb6e6ae628659eddef047d6 | f8ea2acc8679315f28e9e9ed29e7ada1aa9a7022 | Write vcf to stdout | Related to: https://github.com/broadinstitute/picard/issues/863
If we call `.setOutputFile` with `"/dev/stdout"`, then `this.outputStream` is `null`, this.outFile` is `File("/dev/stdout")`, and `this.outType` is `OutputType.VCF_STREAM`. When calling `build()`, it will throw a NPE! | diff --git a/src/main/java/htsjdk/samtools/util/IOUtil.java b/src/main/java/htsjdk/samtools/util/IOUtil.java
index 373bd5f24f..986383a9ae 100644
--- a/src/main/java/htsjdk/samtools/util/IOUtil.java
+++ b/src/main/java/htsjdk/samtools/util/IOUtil.java
@@ -366,7 +366,7 @@ public static void assertFilesAreReadable(final L... | 5 | 5 | 2 | [{"id": "G0", "claim": "The pull request's changed behaviour (writing a VCF to /dev/stdout) should be covered by a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Avoiding the NPE is not enough: the actual problem, that with setOutputFile('/dev/std... | null |
samtools__htsjdk__942 | samtools/htsjdk | 942 | defect | cfbbe4b8e0e5ad4f011d6aacec2640eab8ff49a0 | 8096efc5df1248b747c90a6b0562dc679ac39149 | Add ability to log to file | ### Description
Implements https://github.com/samtools/htsjdk/issues/941.
Clients, such as GATK, want to capture the htsjdk output log data to a file. This capability is required for fully implementing https://github.com/broadinstitute/gatk/pull/2751.
### Checklist
- [X] Code compiles correctly
- [X] New tes... | diff --git a/src/main/java/htsjdk/samtools/util/Log.java b/src/main/java/htsjdk/samtools/util/Log.java
index acbd3c4253..c92265236b 100644
--- a/src/main/java/htsjdk/samtools/util/Log.java
+++ b/src/main/java/htsjdk/samtools/util/Log.java
@@ -47,7 +47,7 @@ public static enum LogLevel { ERROR, WARNING, INFO, DEBUG }
... | 4 | 4 | 1 | [{"id": "G0", "claim": "Add a getGlobalPrintStream method (and, while at it, a getGlobalLogLevel) alongside the new global setters so the global print stream and log level can be read back.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The now-static `o... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.