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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
shipwright-io__build__540 | shipwright-io/build | 540 | defect | a7d87a87b1c482a59b489a882c0a8533d1706c20 | cf5c215c0ff48271807eb8511b35f578b08fe843 | Print operator log for failed integration test case | I was just fighting with a failing integration test and needed access to the logs of the operator. Had to do a quick hack. Proposing here a solution that dumps the logs in case a test case fails. Here is an example:
```bash
$ make test-integration
installing apis
customresourcedefinition.apiextensions.k8s.io/buil... | diff --git a/test/integration/integration_suite_test.go b/test/integration/integration_suite_test.go
index 98ad2bd270..2195b018fb 100644
--- a/test/integration/integration_suite_test.go
+++ b/test/integration/integration_suite_test.go
@@ -55,6 +55,12 @@ var _ = AfterEach(func() {
if tb.StopBuildOperator != nil {
c... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new logging code in test/integration/utils/environment.go should not use the operator-sdk logger directly; instead a new NewLoggerTo function writing to the buffer should be added to the ctxlog package and environment.go should use ctxlog.NewLoggerTo(logBuffer, testNamespace), keeping integr... | null |
shipwright-io__build__545 | shipwright-io/build | 545 | defect | 750087f1776b8c7431b8c7823fcfc8cb36f91ebd | 189afedd5c01b482e6e7285371b39158ac2a903f | Correct annotation propagation logic | I was not really aware that I already need vacation. :-( | diff --git a/pkg/controller/buildrun/generate_taskrun.go b/pkg/controller/buildrun/generate_taskrun.go
index d4e8b265c0..d3202f5a3f 100644
--- a/pkg/controller/buildrun/generate_taskrun.go
+++ b/pkg/controller/buildrun/generate_taskrun.go
@@ -257,15 +257,14 @@ func GenerateTaskRun(
}
// assign the annotations fro... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment or godoc in `isPropagatableAnnotation` detailing why certain annotations are not propagated to the TaskRun object.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
shipwright-io__build__594 | shipwright-io/build | 594 | defect | 121b16a83d13d2baf7bebc4991647370eeff6b52 | 170d8fd49a799be0b082147b1b2532967df4e045 | This replaces the taxi go app repo | # Changes
The existing one have an issue on the go.mod definition, leading
to build failures when using the latest golang image.
This PR changes the repo to use, which have the fixes in place. This
is a fix PR, the end-goal is to tackle issue #366 which should avoid
problems like this in the future.
# Sub... | diff --git a/docs/build.md b/docs/build.md
index 04c22aa54f..68f5565d7c 100644
--- a/docs/build.md
+++ b/docs/build.md
@@ -99,7 +99,7 @@ metadata:
build.build.dev/verify.repository: "false"
spec:
source:
- url: https://github.com/sbose78/taxi
+ url: https://github.com/qu1queee/taxi
revision: master
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request must also update samples/build/build_kaniko_cr.yaml (line 10), which still points at the old sbose78/taxi source repository.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shipwright-io__build__603 | shipwright-io/build | 603 | defect | b61d0a980f0db95ac0b4ea1fa09a501719d14692 | 939e255a7e5c616b2a58977c58df598875f47576 | Add ko build strategy sample | # Changes
Based on [this inquiry](https://kubernetes.slack.com/archives/C019ZRGUEJC/p1613685285101400?thread_ts=1613404922.076800&cid=C019ZRGUEJC), I am adding the ko sample build strategy that I recently created. I added a big note to the documentation about the creative interpretation of the `contextDir` property.... | diff --git a/docs/buildstrategies.md b/docs/buildstrategies.md
index 3433ec106b..89a99903dd 100644
--- a/docs/buildstrategies.md
+++ b/docs/buildstrategies.md
@@ -16,13 +16,16 @@ SPDX-License-Identifier: Apache-2.0
- [Try it](#try-it)
- [Kaniko](#kaniko)
- [Installing Kaniko Strategy](#installing-kaniko-strategy... | 5 | 2 | 1 | [{"id": "G0", "claim": "The script's logic to extract the repository and tag from the image URL breaks when the URL contains more than one colon, such as the Travis e2e image 172.18.0.3:5000/shipwright-io/build-e2e:ko, and should be fixed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ... | null |
shipwright-io__build__649 | shipwright-io/build | 649 | defect | 8ca44490fea47e8231b6e180bc410a807209ae0d | 9286a1c024c6f45d960e336967e8418a1d8af6a1 | Make Burst and QPS of the Kube API client configurable | # Changes
While testing with higher MaxConcurrentReconciles values for the build controller, I noticed that going beyond 5 did not further improve the throughput. The next bottleneck is the QPS of the API client. Making it configurable together with its Burst setting. Here are some measured numbers:
System contai... | diff --git a/docs/configuration.md b/docs/configuration.md
index eb82d185c7..c911c3edc2 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -22,3 +22,5 @@ The following environment variables are available:
| `BUILDRUN_MAX_CONCURRENT_RECONCILES` | The number of concurrent reconciles by the buildrun contro... | 3 | 2 | 0 | [{"id": "G0", "claim": "The docs should show the real client-go default values for KUBE_API_BURST and KUBE_API_QPS instead of the confusing 'Default is 0'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The QPS value is needlessly cast to float32 ... | null |
shipwright-io__build__675 | shipwright-io/build | 675 | defect | 82c1e019cc8656da8cd41d9e59ef8975598d6a23 | 1033dea4d1c800942abd52cc3aba768666d089cc | Add support for Buildkit | # Changes
Fixes #407
This adds support for rootless buildkit.
Some of the key things from using buildkit are:
- The cache on subsequent pushes to the same image in a registry, also known as export_cache and import_cache makes the building experience incredible fast.
- It runs as rootless, without any privil... | diff --git a/README.md b/README.md
index 9d877ed3d5..d88aa585b5 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,7 @@ Shipwright supports any tool that can build container images in Kubernetes clust
- [Kaniko](https://github.com/GoogleContainerTools/kaniko)
- [Cloud Native Buildpacks](https://buildpacks.io/)
+- ... | 9 | 8 | 1 | [{"id": "G0", "claim": "The README should advertise BuildKit in the Samples section rather than the Roadmap, and the Roadmap mention should probably be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The root `whoami`/`chown -R 1000:1000` ... | null |
shipwright-io__build__750 | shipwright-io/build | 750 | defect | 5dbd283d071078ba93befb7b242a15f38fb4f4b6 | f446d095284d59d275ceaba660159f6aab631752 | Let buildrun override output secret | # Changes
Until now, buildrun is allowed to override output image, but not the secret, making this impossible to work with private repos in buildrun overrides.
This commit fixes that behavior, secret setup by buildrun, is also added to the serviceaccount.
Fixes #684
# Submitter Checklist
- [x] Includes te... | diff --git a/docs/buildrun.md b/docs/buildrun.md
index d1d8c3e1aa..9727656edf 100644
--- a/docs/buildrun.md
+++ b/docs/buildrun.md
@@ -56,6 +56,7 @@ The `BuildRun` definition supports the following fields:
- `spec.serviceAccount` - Refers to the SA to use when building the image. (_defaults to the `default` SA_)
... | 1 | 1 | 1 | [{"id": "G0", "claim": "When the BuildRun specifies an output credential, the Build's output credential (in case it is different) should not be added to the service account.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shipwright-io__build__836 | shipwright-io/build | 836 | defect | 8b6046f87afbb2775641dc5c7577cf5bab7534fb | 81a2a854c81997a363ef4ad280808cafadbf4932 | Remove runtime feature | # Changes
Removes the `.spec.runtime` field that was marked as deprecated in v0.5.0, as described in https://github.com/shipwright-io/community/blob/main/ships/0002-deprecate-runtime.md
#516
/kind cleanup
# Submitter Checklist
- [y] Includes tests if functionality changed/was added
- [y] Includes docs if... | diff --git a/deploy/crds/shipwright.io_buildruns.yaml b/deploy/crds/shipwright.io_buildruns.yaml
index e998ad3199..605d5e3b95 100644
--- a/deploy/crds/shipwright.io_buildruns.yaml
+++ b/deploy/crds/shipwright.io_buildruns.yaml
@@ -166,66 +166,6 @@ spec:
- value
type: object... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the leftover test/data/build_buildpacks-v3_nodejs_runtime-image_cr.yaml and the Runtime-Image section from docs/build.md, since the deprecated runtime feature is being removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shipwright-io__build__837 | shipwright-io/build | 837 | defect | 5d8fb411a1eb35e9303e813856f794e7acae3710 | f4ffb41495945cbf7c6b1a49992565fc7b9dcc70 | Increase log output readability | # Changes
The current output of the Git step was using the log style of the controller,
which is configured to be machine consumable. However, the output should be
more aligned with the output that is created by other steps. Tools like Kaniko
or Buildpacks produce more human style output. This is also feedback th... | diff --git a/cmd/git/main.go b/cmd/git/main.go
index 4f7b2fee45..5d1b8d1e77 100644
--- a/cmd/git/main.go
+++ b/cmd/git/main.go
@@ -8,6 +8,7 @@ import (
"context"
"fmt"
"io/ioutil"
+ "log"
"net/url"
"os"
"os/exec"
@@ -15,7 +16,6 @@ import (
"regexp"
"strings"
- "github.com/shipwright-io/build/pkg/ctxlo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The log message should not rely on Git's internal directory structure (.git/HEAD); use the user-provided revision value, or fall back to the cloned branch name (via git rev-parse) when no revision was provided.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduce... | null |
shipwright-io__build__840 | shipwright-io/build | 840 | defect | 5d8fb411a1eb35e9303e813856f794e7acae3710 | 56f52b8e9d4c441b82962bdd6c868918630c949b | Enforce label name limits in resource names | # Changes
We got user feedback that build and buildrun names can be specified lead to controller error.
This is caused by the fact that the names used in the label they are strict in their length.
Add validation to enforce specific length for build and buildrun names.
# Submitter Checklist
- [x] Includes t... | diff --git a/pkg/apis/build/v1alpha1/build_types.go b/pkg/apis/build/v1alpha1/build_types.go
index c4e4e22b75..0df4260c0d 100644
--- a/pkg/apis/build/v1alpha1/build_types.go
+++ b/pkg/apis/build/v1alpha1/build_types.go
@@ -38,6 +38,8 @@ const (
UndefinedParameter BuildReason = "UndefinedParameter"
// RemoteReposito... | 3 | 3 | 2 | [{"id": "G0", "claim": "Fix the misspelled identifier BuildNameInvaid to BuildNameInvalid in the new constant's declaration and comment and in its usages in the validator and the integration test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A... | null |
shipwright-io__build__85 | shipwright-io/build | 85 | defect | 4b2f6a8f0457d62e9875969dea777df69b4a5f89 | e6fc54f50415f62a86a4f84d5e1b5621f44c4032 | Add revision support for Git source | I made several enhancements for issue https://github.com/redhat-developer/build/issues/84:
- Change `ref` in Git source to `revision` as `Revision *string`
- Add revision parameter in `generate_taskrun.go` and refine the variable names
- Modify the test in `generate_taskrun_test.go` to use a `develop` revision... | diff --git a/deploy/crds/build.dev_builds_crd.yaml b/deploy/crds/build.dev_builds_crd.yaml
index 6a5355a291..b542209c7d 100644
--- a/deploy/crds/build.dev_builds_crd.yaml
+++ b/deploy/crds/build.dev_builds_crd.yaml
@@ -135,7 +135,7 @@ spec:
description: NoProxy can be used to specify domains for whic... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `serviceAccount: default` hardcoded in samples/buildrun/buildrun_buildah_cr.yaml is not needed for this feature and would break low-touch usage on OpenShift; add it dynamically (e.g. in the e2e tests) instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i... | null |
shipwright-io__build__906 | shipwright-io/build | 906 | defect | ac139dba9437bca165137856e18a593417945630 | 98406b2482bc3f4904288bb1ac7640e710a664e3 | Extend the Buildpack strategy to work with the environment variables | # Changes
We noticed a shortcoming of the `Buildpacks` build strategy: as we bypass pack, the environment variables are not working.
Extend the `buildstrategy_buildpacks-v3_cr.yaml` with the script to process environment variables.
Add a test case to verify the environment variables working with the `Buildpack... | diff --git a/samples/buildstrategy/buildpacks-v3/buildstrategy_buildpacks-v3_cr.yaml b/samples/buildstrategy/buildpacks-v3/buildstrategy_buildpacks-v3_cr.yaml
index 484f719cbd..118f9e767c 100644
--- a/samples/buildstrategy/buildpacks-v3/buildstrategy_buildpacks-v3_cr.yaml
+++ b/samples/buildstrategy/buildpacks-v3/build... | 4 | 4 | 2 | [{"id": "G0", "claim": "Empty environment-variable values should also be written to the env directory, not skipped (use the suggested `if [[ \"$key\" != \"\" ]]; then`), since \"not present\" vs \"empty string\" may matter.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {... | null |
shirou__gopsutil__1035 | shirou/gopsutil | 1,035 | defect | 3585d276bc1ae264d73b8268bde4a04c9c0e79e3 | e8b2bea47fb6c99f7c0a56ad4065b767a2196bb5 | Fix spaces on long process names for MacOS | Fixes #1034. | diff --git a/process/process_darwin.go b/process/process_darwin.go
index 8b8b58a69d..15aa9f9889 100644
--- a/process/process_darwin.go
+++ b/process/process_darwin.go
@@ -38,7 +38,7 @@ type _Ctype_struct___0 struct {
func pidsWithContext(ctx context.Context) ([]int32, error) {
var ret []int32
- pids, err := callPs... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the exported CmdNameWithContext helper to lower camel case so it is not exposed from the package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shirou__gopsutil__1322 | shirou/gopsutil | 1,322 | defect | 7a094df3f7c9640d9f326410ebb0f8c34307a180 | e4e6ed2efa2743cc02c9b352ae75b3ffd5c983f1 | fix(net,linux): fix decodeaddress if Big Endian | fixes #990
Check endian when decode address. | diff --git a/net/net.go b/net/net.go
index 0f3a62f39c..0f28f28cda 100644
--- a/net/net.go
+++ b/net/net.go
@@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"net"
+ "unsafe"
"github.com/shirou/gopsutil/v3/internal/common"
)
@@ -271,3 +272,10 @@ func getIOCountersAll(n []IOCountersStat) ([]IOCountersStat, er... | 2 | 2 | 2 | [{"id": "G0", "claim": "With the patch, Test_Connections passes on s390x but a new failure appears in TestDecodeAddress: the big-endian inputs 0500000A:0016 and 0100007F:D1C2 decode to 5.0.0.10 and 1.0.0.127 instead of 10.0.0.5 and 127.0.0.1.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope... | null |
shirou__gopsutil__1436 | shirou/gopsutil | 1,436 | defect | c0365978d80c35f92dab65afdbd0542298e0d046 | f7e0219acf7804bb7e9d97588cee3a0e660040b9 | cpu: add frequency support for apple silicon m1/m2 cpus | This PR adds support for reading the frequency of Apple Silicon M1/M2 CPUs. We do so by reading the values out of the IOKit framework, as a few other projects have now demonstrated to be possible. This requires the use of CGO. The library provides a convenience IsAppleSilicon() guard to detect whether the values can be... | diff --git a/cpu/cpu_darwin.go b/cpu/cpu_darwin.go
index 7acb258d90f..f645c8e206a 100644
--- a/cpu/cpu_darwin.go
+++ b/cpu/cpu_darwin.go
@@ -8,6 +8,7 @@ import (
"strconv"
"strings"
+ "github.com/shoenig/go-m1cpu"
"github.com/tklauser/go-sysconf"
"golang.org/x/sys/unix"
)
@@ -85,11 +86,15 @@ func InfoWithCon... | 2 | 2 | 1 | [{"id": "G0", "claim": "Create a new cpu_darwin_test.go and move all darwin tests there, to fix the lint issue caused by the darwin-specific test sitting in the shared cpu_test.go.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "go-m1cpu, the dep... | null |
shirou__gopsutil__1785 | shirou/gopsutil | 1,785 | defect | 90e59961ca1cd462850ab7e3345bedc9b9559f4f | 9ce2ec161eb5ff8b990711bfba608c34b836e438 | chore: enable golangci-lint on Windows and MacOS | #### Description
Following https://github.com/shirou/gopsutil/pull/1784#issuecomment-2624558245
I have deliberately added '//nolint:... //FIXME' to make them easily to spot and fix | diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000..d207b1802b
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+*.go text eol=lf
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index c724299975..f316830276 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workfl... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added .gitattributes file might be out of the PR's scope, and if kept it should carry a comment explaining its purpose.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shirou__gopsutil__1829 | shirou/gopsutil | 1,829 | defect | 2b55813e08de8b616fd1e75ad68c16244116321b | d0367a3a58bd997a10ddd07673ee5a647def67a7 | [chore]: bump golangci-lint to v2.1.1 | #### Description
This updates golangci-lint version to v2 and golangci-lint-action to V7. | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 118811e6ed5..48148acf4e6 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -69,7 +69,7 @@ jobs:
with:
go-version-file: go.mod
- name: Setup golangci-lint
- uses: golangci/golangci-lint-... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new formatters list is redundant because gci supersedes goimports and gofumpt supersedes gofmt, so the .golangci.yml formatters config should be simplified to just gci and gofumpt (gofmt being warranted only if gofmt's extra settings are used).", "category": "maintainability", "verdict": "su... | null |
shirou__gopsutil__1839 | shirou/gopsutil | 1,839 | defect | 3608872740b7ded1691742bcd48fe5354a8eb1a6 | 00a28a710eab61ff6697f967c8bf9ff435d6c0de | Remove wmi for Get physical CPU core count | Reimplemented get physical core count with windows api, so we can get rid of wmi. | diff --git a/cpu/cpu_test.go b/cpu/cpu_test.go
index 4d9794b98c..b4662f5058 100644
--- a/cpu/cpu_test.go
+++ b/cpu/cpu_test.go
@@ -59,16 +59,27 @@ func TestTimes(t *testing.T) {
}
func TestCounts(t *testing.T) {
- v, err := Counts(true)
+ logicalCount, err := Counts(true)
common.SkipIfNotImplementedErr(t, err)
- ... | 5 | 4 | 2 | [{"id": "G0", "claim": "Rename getLogicalProcessorInformationEx to procGetLogicalProcessorInformationEx to follow the repo's proc-variable naming convention.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Keep the links to the psutil reference (... | null |
shirou__gopsutil__1861 | shirou/gopsutil | 1,861 | defect | b2c442fcf14737800147550192f6420e9999076a | f21ae494cefcfb5e69cf93ab0e5dd5d67f6ff686 | [disk][linux]: fix parsing mount option when use 1/mounts on Partition | This fixes #1858.
On `disk.Parition()` When we can not read `/proc/1/mountinfo` because version <2.6.26, fallback to read `/proc/1/mounts`. However, mount options are not splitted.
Here is a example line of `mounts`,
```
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=1285356k,nr_inodes=321339,mode... | diff --git a/disk/disk_linux.go b/disk/disk_linux.go
index 8a0a5b17ff1..018de7ee4d0 100644
--- a/disk/disk_linux.go
+++ b/disk/disk_linux.go
@@ -296,7 +296,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
Device: fields[0],
Mountpoint: unescapeFstab(fields[1]),
Fs... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added or updated to cover the mount-option parsing issue this PR describes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shirou__gopsutil__1866 | shirou/gopsutil | 1,866 | defect | ce7e4c88d9e5c1a017c9991650eefeba82311874 | 9dcddfedc7d733a4bc9f1d6e1f0b1eaf95a43447 | fix: optimize performance of process.OpenFiles() | fixes #1781 | diff --git a/internal/common/readlink_linux.go b/internal/common/readlink_linux.go
new file mode 100644
index 0000000000..35ed026136
--- /dev/null
+++ b/internal/common/readlink_linux.go
@@ -0,0 +1,51 @@
+package common
+
+import (
+ "errors"
+ "os"
+ "sync"
+ "syscall"
+)
+
+var bufferPool = sync.Pool{
+ New: func() a... | 2 | 1 | 0 | [{"id": "G0", "claim": "Consider providing an iterator method OpenFilesSeq() on *Process returning iter.Seq[OpenFilesStat], alongside the existing OpenFiles API.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Remove the defer in common.Readlink and ret... | null |
shirou__gopsutil__1878 | shirou/gopsutil | 1,878 | defect | d0dd5e027c0ff389b0c9029cdf4dca77588be177 | 7b6a1b21bcdeb381c2b892bda618ea6ea2bd402d | fix(disk): handle NVMe controller notation in IOCounters on Linux | ## Description
Fixes issue where `IOCountersWithContext` fails to get `SerialNumber` and `Label` for NVMe devices reported with controller notation (`nvmeXcYnZ`) in `/proc/diskstats`. The actual device files exist with standard notation (`nvmeXnZ`), causing "no such file or directory" errors.
## Impact
- Elimi... | diff --git a/disk/disk_linux.go b/disk/disk_linux.go
index 511673ebbb1..33b8b904e54 100644
--- a/disk/disk_linux.go
+++ b/disk/disk_linux.go
@@ -498,8 +498,20 @@ func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOC
// Since `name` here is already a basename, re-add the /dev path.
// Th... | 2 | 2 | 0 | [{"id": "G0", "claim": "Extract the NVMe device-name logic into a private function reusable in both the main code and the tests, named something like getDeviceName (or \"normalize\") rather than any name containing \"Fix\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
shirou__gopsutil__1882 | shirou/gopsutil | 1,882 | defect | 4a774b43033f3521c46e467b5bc8902829c989fc | 235caeb65bb43f520ab35a1bf7996b4b9a67f361 | [mem][linux]: Used calculated from Total and Available | fix #1873
`mem.Used` calculated from `Total - Free - Buffers - Cache` even if `MemAvailable` can be used.
| diff --git a/mem/mem_linux.go b/mem/mem_linux.go
index 3e6e4e3e4d..f5c59e89c2 100644
--- a/mem/mem_linux.go
+++ b/mem/mem_linux.go
@@ -296,15 +296,17 @@ func fillFromMeminfoWithContext(ctx context.Context) (*VirtualMemoryStat, *ExVir
ret.Cached += ret.Sreclaimable
- if !memavail {
+ if memavail {
+ ret.Used = re... | 1 | 1 | 1 | [{"id": "G0", "claim": "The change to how Used is calculated may be a breaking or unnoticed change for users, so add some manner of ctx option to revert to the old calculation.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shirou__gopsutil__1894 | shirou/gopsutil | 1,894 | defect | 49039029bfdc3e5c4645cc831b9cf2789266c5e9 | 6141163595e9f73a27835e8c8ea5459f19c8eee0 | Remove common test helper to skip tests | The `internal/common/common_testing.go` file caused `testing` to leak into any binaries that depend directly or indirectly on this library. The file only contained a single helper function used to skip tests based on a particular error type. All tests that were making use of the helper have had the check inlined instea... | diff --git a/cpu/cpu_linux_test.go b/cpu/cpu_linux_test.go
index 04cd4b099c..324669c540 100644
--- a/cpu/cpu_linux_test.go
+++ b/cpu/cpu_linux_test.go
@@ -78,10 +78,14 @@ func TestCountsAgainstLscpu(t *testing.T) {
expectedPhysical := coresPerSocket * sockets * books * drawers
expectedLogical := expectedPhysical * ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Some files touched by the pull request are failing lint checks, and the reviewer asks that those lint issues be fixed before merge.", "category": "lint", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shirou__gopsutil__1906 | shirou/gopsutil | 1,906 | defect | 2897d98bb53acb867900f977f4d786ebf5a92759 | ad8312f9e0449fbcf6d98517985b99c3e5ccb88b | refactor: use slices.Contains to simplify code |
There is a [new function](https://pkg.go.dev/slices@go1.21.0#Contains) added in the go1.21 standard library, which can make the code more concise and easy to read. | diff --git a/internal/common/common.go b/internal/common/common.go
index 0e766b7b019..f421342ed98 100644
--- a/internal/common/common.go
+++ b/internal/common/common.go
@@ -23,6 +23,7 @@ import (
"path/filepath"
"reflect"
"runtime"
+ "slices"
"strconv"
"strings"
"time"
@@ -300,12 +301,7 @@ func StringsConta... | 1 | 1 | 0 | [{"id": "G0", "claim": "Other functions, like StringsContains, could be simplified in a similar way and the author should update those as well.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
shirou__gopsutil__1920 | shirou/gopsutil | 1,920 | defect | 7294c0727a8cafe806ddc05bd1bded2131ce5c26 | 7c3358aa665122186b4bd4be21ccfed90899cd15 | limit memory usage on warnings list | - Warning List has no bound limit, there are cases where the list accumulates an infinite amount of errors causing memory exhaustion on the machine.
- I think having more than 100 errors, is not helpful in troubleshooting, it can only cause system instability.
- I propose to limit the amount, this is the most si... | diff --git a/internal/common/warnings.go b/internal/common/warnings.go
index 888cc57fae..e8b90197e1 100644
--- a/internal/common/warnings.go
+++ b/internal/common/warnings.go
@@ -3,12 +3,17 @@ package common
import "fmt"
+const maxWarnings = 100 // An arbitrary limit to avoid excessive memory usage, it has no sens... | 2 | 2 | 1 | [{"id": "G0", "claim": "Dropping warnings once maxWarnings is reached should not be silent: the Warnings struct should record that too many errors occurred (with the flag unexported rather than a public ErrTooManyErrors) and the Error() output should say that errors were discarded.", "category": "design", "verdict": "s... | null |
shirou__gopsutil__1929 | shirou/gopsutil | 1,929 | defect | b952ecf6ba1756b551ecdbf62071cb47f4202024 | cef536f1696480923cf6a0ded797cd079ec114f6 | Use registry to remove wmi from cpu package | Implemented registry to get model name and vendorId.
Removed wmi from cpu package
| diff --git a/cpu/cpu_test.go b/cpu/cpu_test.go
index 4fdf9cd753..e6ea39831b 100644
--- a/cpu/cpu_test.go
+++ b/cpu/cpu_test.go
@@ -102,6 +102,12 @@ func TestInfo(t *testing.T) {
assert.NotEmptyf(t, v, "could not get CPU Info")
for _, vv := range v {
assert.NotEmptyf(t, vv.ModelName, "could not get CPU Info: %v",... | 2 | 2 | 1 | [{"id": "G0", "claim": "In TestInfo's Windows branch the second NotEmptyf asserts vv.VendorID a second time where it should assert vv.Family, so the intended CPU Family check never runs.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The registry ke... | null |
shirou__gopsutil__1930 | shirou/gopsutil | 1,930 | defect | b952ecf6ba1756b551ecdbf62071cb47f4202024 | d0ea4970dc8dfb214d20b754029258710791730a | chore: enable noctx linter | #### Description
Enables and fixes issues from [noctx](https://golangci-lint.run/docs/linters/configuration/#noctx) linter | diff --git a/.golangci.yml b/.golangci.yml
index 033edfc0fa5..aac815130e2 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -26,6 +26,7 @@ linters:
- ineffassign
- misspell
- nakedret
+ - noctx
- nolintlint
- perfsprint
- predeclared
diff --git a/cpu/cpu_linux_test.go b/cpu/cpu_linux_te... | 2 | 1 | 0 | [{"id": "G0", "claim": "In TestCountsAgainstLscpu, t.Context() could be used instead of exec.CommandContext(context.Background(), ...) — but only once the module requires Go 1.24 or greater.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "DoSysct... | null |
shirou__gopsutil__1931 | shirou/gopsutil | 1,931 | defect | 208a0f801da877f2a1c2500a13570101b3bcf98f | 7783cdf5cc91a88e3d1d105ba282288a1386c5d1 | Fixes #1284 | I know this issue was closed, but it's literally a 2 second fix to bring it in line with proper documented parsing of the mountinfo format. | diff --git a/disk/disk_linux.go b/disk/disk_linux.go
index 8c4803338c..bbc58d68f0 100644
--- a/disk/disk_linux.go
+++ b/disk/disk_linux.go
@@ -332,7 +332,7 @@ func parseFieldsOnMountinfo(ctx context.Context, lines []string, all bool, fs []
// (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11)
... | 2 | 2 | 1 | [{"id": "G0", "claim": "Add a test covering the changed SplitN parsing of the mountinfo separator line.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pre-existing !all filter only skips devices named \"none\", but per fstab(5) the source field for ... | null |
shirou__gopsutil__1967 | shirou/gopsutil | 1,967 | defect | 50c92102fdf3adf59f73cd92905ed845c56b1bed | df0746d6f8b799e2bfd216c5a89c0ce4bc0ecf5e | Replace AIX uptime function with ps etimes-based implementation | ## Description
This PR replaces the AIX host module's uptime determination method from parsing the `uptime` command output to a more reliable approach using `ps -o etimes -p 1`. This directly queries the process table for PID 1's elapsed time rather than relying on variable human-readable output formatting.
**Fixes... | diff --git a/host/host_aix.go b/host/host_aix.go
index 2e8fb5539c..0f300be194 100644
--- a/host/host_aix.go
+++ b/host/host_aix.go
@@ -45,79 +45,91 @@ func BootTimeWithContext(ctx context.Context) (btime uint64, err error) {
return timeSince(ut), nil
}
-// Parses result from uptime into minutes
-// Some examples o... | 1 | 1 | 1 | [{"id": "G0", "claim": "The input \"01:02\" is asserted valid (expected 1 minute) in TestParseUptimeValidInput while also listed as an invalid format in TestParseUptimeInvalidInput, so the two tests contradict each other — which one is correct?", "category": "testing", "verdict": "supported", "priority": "P0", "scope":... | null |
shirou__gopsutil__1979 | shirou/gopsutil | 1,979 | defect | b91edff71d79de505d821e34d22a86d46ff353dd | 49f0e766b65046079500182568c7539c01317d5d | feat: Add AIX platform support to common package with uptime and boot time functions | ## Description
This PR adds comprehensive AIX (ppc64) platform support to the gopsutil common package.
Part 1 of splitting #1969: Prerequisites
## Changes
- **Labeler Configuration**: Added AIX to the GitHub labeler for better issue/PR organization
- **Common Package**: Implemented new `common_aix.go` module... | diff --git a/.github/labeler.yml b/.github/labeler.yml
index 0262fc635d..795206fc94 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -33,6 +33,11 @@
- any-glob-to-any-file:
- 'net/**'
+'package:nfs':
+ - changed-files:
+ - any-glob-to-any-file:
+ - 'nfs/**'
+
'package:process':
-... | 2 | 1 | 0 | [{"id": "G0", "claim": "The 'package:nfs' labeler entry looks unrelated to this PR's purpose and, if not intended, should be removed from this PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "common.timeSince duplicates the identical helper in host/hos... | null |
shirou__gopsutil__1986 | shirou/gopsutil | 1,986 | defect | 0de45011a171507cfb888fa6fa755b97ffd4385f | dc33c11e12f75632df104f35f28ed47fd20aff5d | feat(mem): add KernelStack field for ExVirtualMemory on linux | This is a PR under #1884. But this PR moves KernelStack field to ExVirtualMemory because that is Linux only . | diff --git a/mem/ex_linux.go b/mem/ex_linux.go
index fd483dd09b8..9e4d8450b75 100644
--- a/mem/ex_linux.go
+++ b/mem/ex_linux.go
@@ -15,6 +15,7 @@ type ExVirtualMemory struct {
InactiveAnon uint64 `json:"inactiveanon"`
Unevictable uint64 `json:"unevictable"`
Percpu uint64 `json:"percpu"`
+ KernelStack uin... | 1 | 1 | 0 | [{"id": "G0", "claim": "The JSON tag of the new KernelStack field in ExVirtualMemory should use lowercase \"kernelstack\" to stay consistent with the struct's other lowercase JSON tags.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shirou__gopsutil__1994 | shirou/gopsutil | 1,994 | defect | ace8daec118ff6951efdb8d600d607abed589246 | 749c936650196b71795429001e49b4d4dd85383d | [process][posix]: fix getTerminalMap path construction bug | fix #1869
This PR fixes incorrect path construction in `getTerminalMap()` that caused terminal device lookup to fail.
The `getTerminalMap()` function had two bugs in path handling:
1. `strings.HasPrefix(devname, "/dev/tty")` checked for `/dev/tty` but `Readdirnames()` returns just the
filename (e.g., `tty1`)... | diff --git a/process/process_posix.go b/process/process_posix.go
index 9fe55b490e..9f23c77f01 100644
--- a/process/process_posix.go
+++ b/process/process_posix.go
@@ -37,8 +37,8 @@ func getTerminalMap() (map[uint64]string, error) {
return nil, err
}
for _, devname := range devnames {
- if strings.HasPrefix(devn... | 1 | 1 | 1 | [{"id": "G0", "claim": "In TestGetTerminalMapPathsExist the test builds device paths with `\"/dev\" + name` even though `name` can already contain a leading slash, producing invalid paths like `/dev/tty1`; it should use filepath.Join(\"/dev\", name) or trim the leading slash.", "category": "correctness", "verdict": "su... | null |
shirou__gopsutil__2025 | shirou/gopsutil | 2,025 | defect | 2bfc9b78e4e5ae2b22812c738bfe417d432e1f9d | 46eb4f9839aeaf8c8aae0832784be01ae22d616b | Fix netstat drop column parsing when address is empty on darwin | The netstat output can only have 11 or 12 columns depending on whether the interface has an address.
The `Drop` column is always present in the output so we shouldn't skip parsing and setting it when there are 11 columns.
Abstract from my laptop highlighting the two cases:
```
Name Mtu Network Addre... | diff --git a/net/net_darwin.go b/net/net_darwin.go
index c47e0c37f7..2cfb56a19a 100644
--- a/net/net_darwin.go
+++ b/net/net_darwin.go
@@ -48,21 +48,19 @@ func parseNetstatLine(line string) (stat *IOCountersStat, linkID *uint, err erro
if numberColumns < 12 {
base = 0
}
- if numberColumns < 11 || numberColumns >... | 2 | 2 | 2 | [{"id": "G0", "claim": "Since it is not known whether any macOS version or configuration produces 13-column netstat output, the PR's tightened upper bound (> 12) might reject valid input on older systems, so it might be safer to keep > 13 as the upper bound.", "category": "correctness", "verdict": "supported", "priorit... | null |
shirou__gopsutil__2031 | shirou/gopsutil | 2,031 | defect | d7abb9a8b0ef96ef51bf7bf5b3af1f941e75dbc5 | 005a19646b54257175c6a5620eacc414d24b7d93 | [net][linux]: prevent incorrect deduplication of unnamed UNIX sockets | The existing dedup logic used only (sockType, src, dst, status) as the key, which caused all unnamed UNIX sockets (empty address) to collapse into a single entry when querying system-wide connections.
Include pid and fd in the dedup key for AF_UNIX sockets so that each socket is correctly preserved. Inet socket dedu... | diff --git a/net/net_linux.go b/net/net_linux.go
index d1e7f0ce773..e28cb1c7173 100644
--- a/net/net_linux.go
+++ b/net/net_linux.go
@@ -405,6 +405,17 @@ func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, p
return statsFromInodesWithContext(ctx, root, pid, tmap, inodes, skipUids)
}
+// ... | 1 | 1 | 1 | [{"id": "G0", "claim": "When inode-to-(pid,fd) mapping is unavailable (pid=0/fd=0 fallback in processUnix), multiple unnamed UNIX sockets still collapse to the same dedup key, so the AF_UNIX key should include the socket inode (with a matching unit test for two pid=0/fd=0 sockets).", "category": "correctness", "verdict... | null |
shirou__gopsutil__2037 | shirou/gopsutil | 2,037 | defect | 30959634e7f4c52c2fa427a259de81ac1388a1ca | 74542c7ce9d97da7877bb4f55193aacaf7eee967 | load: fix MiscWithContext process state parsing on AIX nocgo | ## Summary
Fixes `MiscWithContext` on AIX nocgo:
- **Changed ps command** from `ps -Ao state` to `ps -e -o state` for better AIX compatibility.
- **Fixed process state mapping**: AIX uses single-letter state codes (A=Active, I=Idle, W=Swapped, Z=Zombie, T=Stopped) that differ from Linux. The parser now correctly maps... | diff --git a/load/load_aix_nocgo.go b/load/load_aix_nocgo.go
index 5e4ba6d0f5..9f17f20d46 100644
--- a/load/load_aix_nocgo.go
+++ b/load/load_aix_nocgo.go
@@ -45,23 +45,41 @@ func AvgWithContext(ctx context.Context) (*AvgStat, error) {
}
func MiscWithContext(ctx context.Context) (*MiscStat, error) {
- out, err := i... | 3 | 3 | 1 | [{"id": "G0", "claim": "The comment mapping the `Z` state says \"Canceled\" while the PR description and common AIX terminology call it zombie/terminated; align the wording (e.g. describe it as zombie/defunct).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
shirou__gopsutil__205 | shirou/gopsutil | 205 | defect | 6e9b0bbb1ba299ce4eb978a6882f48c0080a7858 | c36f7ac8b0514e7b860570b1e52b2d0979860102 | Calc cpu percent using last variables if interval of 0 is given | This fixes #202
| diff --git a/cpu/cpu.go b/cpu/cpu.go
index ae6ab04d64..dbdef17b0e 100644
--- a/cpu/cpu.go
+++ b/cpu/cpu.go
@@ -2,11 +2,11 @@ package cpu
import (
"encoding/json"
+ "github.com/shirou/gopsutil/internal/common"
"runtime"
"strconv"
"strings"
-
- "github.com/shirou/gopsutil/internal/common"
+ "sync"
)
type T... | 4 | 3 | 0 | [{"id": "G0", "claim": "TestGetProcInodesAll fails on the author's Linux box with 'Should NOT be empty, but was map[]'; the author raises it as a side note explicitly unrelated to this PR's changes.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The... | null |
shirou__gopsutil__2077 | shirou/gopsutil | 2,077 | defect | cf0a0e8048c6918682068a66ce8e771d3daebda2 | a14b93d1a37b23cbadc8c8faf6d81c98e02d2b45 | Fix NetBSD mem / net stats | This pull request adds NetBSD support to the `net` package and makes a small fix to the `mem` package for NetBSD.
### NetBSD network support
* Implement basic `netstat` based information extraction for NetBSD in `net_netbsd.go`.
* The implementation copies the basic file structure from the OpenBSD implementati... | diff --git a/mem/mem_netbsd.go b/mem/mem_netbsd.go
index 8ef539ca32..2efa1199cc 100644
--- a/mem/mem_netbsd.go
+++ b/mem/mem_netbsd.go
@@ -61,6 +61,7 @@ func SwapMemory() (*SwapMemoryStat, error) {
return SwapMemoryWithContext(context.Background())
}
+// Reference: https://man.netbsd.org/swapctl.8
func SwapMemory... | 3 | 3 | 0 | [{"id": "G0", "claim": "ParseNetstat is an internal parsing helper that should not be public — rename it to the unexported parseNetstat.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add tests for the netstat parsing helper, using table-driven cases ove... | null |
shirou__gopsutil__2081 | shirou/gopsutil | 2,081 | defect | 2f3645fb3fb700e68c54fc19321ec7bb443b33d3 | 0b1eeae0ddcf147d5169a988f92e6dde0ec50952 | [cpu][windows]: fix percpu stats on Windows hosts with multiple processor groups | ## Symptom
On Windows hosts with more than 64 logical CPUs (e.g. 36 cores × 2 HT = 72 logical CPUs, multi-socket servers, AWS EC2 instances with 96 vCPUs, etc.), `cpu.Percent(interval, percpu=true)` **returns the CPUs of only one Processor Group** instead of all CPUs.
- On a 72-CPU host, each call returns either ... | diff --git a/cpu/cpu_windows.go b/cpu/cpu_windows.go
index a6000a3c50..77698507a9 100644
--- a/cpu/cpu_windows.go
+++ b/cpu/cpu_windows.go
@@ -25,6 +25,7 @@ var (
procGetLogicalProcessorInformationEx = common.Modkernel32.NewProc("GetLogicalProcessorInformationEx")
procGetSystemFirmwareTable = common.Modke... | 3 | 2 | 2 | [{"id": "G0", "claim": "perfInfo() should check the active processor group count and keep the legacy NtQuerySystemInformation path (perfInfoSingleGroup) on single-group hosts, using the Ex path only for multi-group hosts, to minimize regression risk as the PR description promises.", "category": "correctness", "verdict"... | null |
shirou__gopsutil__307 | shirou/gopsutil | 307 | defect | d28b00341164c7fc3530f86ea7ed600109b10bfb | dc8102185dbd93dae10630f4dd67fd155af65899 | [cpu]freebsd: cpu.Info() now returns CPUInfos same number as CPU nums. | fix #304
| diff --git a/cpu/cpu_freebsd.go b/cpu/cpu_freebsd.go
index 250379279f..5834d6e11b 100644
--- a/cpu/cpu_freebsd.go
+++ b/cpu/cpu_freebsd.go
@@ -26,6 +26,7 @@ var originMatch = regexp.MustCompile(`Origin\s*=\s*"(.+)"\s+Id\s*=\s*(.+)\s+Fami
var featuresMatch = regexp.MustCompile(`Features=.+<(.+)>`)
var featuresMatch2 =... | 1 | 1 | 1 | [{"id": "G0", "claim": "On FreeBSD systems whose dmesg.boot has no \"FreeBSD/SMP: N package(s) x M core(s)\" line (e.g. 10.3-RELEASE-p11), the new cpuNum stays at its zero value so cpu.Info() returns an empty array; cpuNum should default to 1 instead.", "category": "correctness", "verdict": "supported", "priority": "P0... | null |
shivammathur__setup-php__188 | shivammathur/setup-php | 188 | defect | b46021d8706e8f2ead7b344f6c47de1a343fd5ef | 51a303d993bfdc8f5069c95e7dbff5c154833525 | New Tool: WP-CLI | ---
name: 🎉 Adds WP-CLI as a tool.
about: You found a bug, want to improve something or add a new feature
labels: enhancement
---
## A Pull Request should be associated with an Issue.
> We wish to have discussions in Issues. A single issue may be targeted by multiple PRs.
> If you're offering a new featur... | diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts
index c6aadaa19..7697be7b7 100644
--- a/__tests__/tools.test.ts
+++ b/__tests__/tools.test.ts
@@ -276,6 +276,15 @@ describe('Tools tests', () => {
]);
});
+ it('checking getWpCliUri', async () => {
+ expect(await tools.getWpCliUrl('latest')).t... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new WP-CLI helper in src/tools.ts is still labelled 'Function to get the Deployer url' — change the Deployer naming to wp-cli.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In darwin.sh and linux.sh the wp-cli phar sho... | null |
shivammathur__setup-php__256 | shivammathur/setup-php | 256 | defect | 82837572d4c49ab02d9c37c08ec32949496fe135 | a10537738824a83e5b7838187e8e76f2c747e903 | Fix: Keep list of tools sorted | This PR
* [x] keeps the lists of tools sorted
💁♂️ Thanks to https://plugins.jetbrains.com/plugin/5919-lines-sorter. | diff --git a/README.md b/README.md
index d5756c365..b968294a2 100644
--- a/README.md
+++ b/README.md
@@ -149,7 +149,34 @@ with:
These tools can be setup globally using the `tools` input.
-`blackfire`, `blackfire-player`, `codeception`, `composer`, `composer-normalize`, `composer-prefetcher`, `composer-require-chec... | 1 | 1 | 0 | [{"id": "G0", "claim": "The list of tools in README.md should be kept in CSV format instead of the bulleted list this pull request converted it to.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
shivammathur__setup-php__399 | shivammathur/setup-php | 399 | defect | a83d4379b1200b3d0d19ad4fe0d7a440e00749c1 | 115f11480a880de1b7694e1c3a42f92890b20391 | Allow extensions to be compiled from GitHub sources | ---
name: 🎉 New Feature
about: Allow extensions to be compiled from GitHub sources
labels: enhancement
---
## A Pull Request should be associated with a Discussion.
Note: no discussion available as I built this for my own needs and want to start a discussion based on the changes I made.
### Description
... | diff --git a/README.md b/README.md
index bbb26100b..2c28d4d30 100644
--- a/README.md
+++ b/README.md
@@ -117,7 +117,7 @@ On all supported OS/Platforms the following PHP versions are supported as per th
PHP extensions can be setup using the `extensions` input. It accepts a `string` in csv-format.
-- On `Ubuntu`, ex... | 8 | 4 | 1 | [{"id": "G0", "claim": "The add_extension_from_github shell function should be moved from darwin.sh to common.sh.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The GitHub-source extension check should be moved into the switch block above the se... | null |
shivammathur__setup-php__481 | shivammathur/setup-php | 481 | defect | 7eda3eb9bce6622da0fe3af989ec32b8e864a2b2 | 9c4627b6017c426c521f193848b7d00f22ba211a | Update Phive configuration | ---
name: ⚙ Improvement
about: Update Phive configuration
labels: enhancement
---
### Description
Phive has released version `0.15.0` which ups the minimum supported PHP version to PHP 7.3.
This updates the switch statement for Phive to take this into account.
Ref: https://github.com/phar-io/phive/rel... | diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts
index 121710781..b2493e1e1 100644
--- a/__tests__/tools.test.ts
+++ b/__tests__/tools.test.ts
@@ -201,6 +201,7 @@ describe('Tools tests', () => {
version | php_version | os_version | script
${'latest'} | ${'7.4'} | ${'linux'} | ${'add_too... | 1 | 1 | 1 | [{"id": "G0", "claim": "The added PHP 7.2 test case should expect Phive 0.14.5 to be downloaded from the 0.14.5 release path (https://github.com/phar-io/phive/releases/download/0.14.5/phive-0.14.5.phar), not the 0.13.5 release path, matching the same PR's 7.2-to-0.14.5 mapping.", "category": "correctness", "verdict": "... | null |
shivammathur__setup-php__614 | shivammathur/setup-php | 614 | defect | 3312ea6101295aeda1e702b5d3b641e9717de6d6 | 94ecc65b1f1da716e153fd010bfec290c7d8330f | Add support for tool Laravel Pint | ---
name: 🎉 New Feature
about: add a new feature
labels: enhancement
---
## A Pull Request should be associated with a Discussion.
> If you're fixing a bug, adding a new feature or improving something please provide the details in discussions,
> so that the development can be pointed in the intended direc... | diff --git a/README.md b/README.md
index 26d0e589b..ab9b2a46d 100644
--- a/README.md
+++ b/README.md
@@ -225,7 +225,7 @@ PHP extensions can be set up using the `extensions` input. It accepts a `string`
These tools can be set up globally using the `tools` input. It accepts a string in csv-format.
-[`behat`], [`blac... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new `pint` entries are not ordered by name: place `pint` alphabetically after `phpstan` in `src/configs/tools.json`, after `phpunit-polyfills` in README, and by name in the test tool list.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id... | null |
shivammathur__setup-php__973 | shivammathur/setup-php | 973 | defect | 011ab6e3636042aa955ec206d9f186459e87e581 | 24d382d1f8cbd88b606a43c6c7551cbe80dbc665 | Add support for shipmonk/name-collision-detector tool | This PR adds support for the `shipmonk/name-collision-detector` tool to the setup-php action, following the existing pattern for other ShipMonk composer-based tools.
## What is name-collision-detector?
The `shipmonk/name-collision-detector` is a fast PHP tool that detects duplicate class, interface, enum, trait, cons... | diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts
index 1cb388219..0355fa2ac 100644
--- a/__tests__/tools.test.ts
+++ b/__tests__/tools.test.ts
@@ -393,7 +393,7 @@ describe('Tools tests', () => {
it.each([
[
- 'blackfire, blackfire-player, box, churn, cs2pr, flex, grpc_php_plugin, parallel-l... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add an entry for the new name-collision-detector tool in the tools section of the README, documented like the other tools.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shivammathur__setup-php__975 | shivammathur/setup-php | 975 | defect | 8aee7c58b792b6c51e1e4536be50730ad0a877a6 | 26dc9b4fed83f0c72f399b73ea4c34be96a4c7cd | Add support for mago tool as custom package | This PR adds support for the [mago](https://github.com/carthage-software/mago) tool, which is a comprehensive toolchain for PHP that helps developers write better code with features like code analysis, linting, automated fixes, formatting, and semantic checks.
## Changes Made
### 1. Tool Configuration
- Added `mago` ... | diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts
index 4294d4eba..07b6cb154 100644
--- a/__tests__/tools.test.ts
+++ b/__tests__/tools.test.ts
@@ -393,7 +393,7 @@ describe('Tools tests', () => {
it.each([
[
- 'blackfire, blackfire-player, box, churn, cs2pr, flex, grpc_php_plugin, name-colli... | 6 | 6 | 2 | [{"id": "G0", "claim": "The mago test cases should call the tool as 'Add-Mago'/'add_mago' without the 'latest' argument, keeping with the other tests' patterns.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The version ValidatePattern in Add-Mago is mo... | null |
shoelace-style__shoelace__1043 | shoelace-style/shoelace | 1,043 | defect | 31e1f2fc592e9799d3d9bfbbce4945d5a9f65a66 | c51dd933adb847a8808661da284a98d847e2c2d7 | Added title attribute | Fixes #1042 | diff --git a/src/components/button/button.test.ts b/src/components/button/button.test.ts
index 31daf8fcff..dff552d16c 100644
--- a/src/components/button/button.test.ts
+++ b/src/components/button/button.test.ts
@@ -23,6 +23,7 @@ describe('<sl-button>', () => {
it('default values are set correctly', async () => {
... | 2 | 2 | 0 | [{"id": "G0", "claim": "Move the new title property declarations up near the private properties and replace their JSDoc `/** */` comments with an inline comment saying why they are added (e.g. `@property() title = ''; // make reactive to pass through`), so the docs generator does not document a global attribute.", "cat... | null |
shoelace-style__shoelace__1374 | shoelace-style/shoelace | 1,374 | defect | f4b2623c8ff515234f0fe61533fc96da49b3dd0c | 066d67783fcbfc29be2aa248f5515dece7d72f5f | Add support for svg sprites in `<sl-icon>` | @diervo I hope you don't mind, but I pulled your PR and added some tests, added some docs, fixed some unrelated docs site issues, and added a changelog entry.
Extends #1368
Fixes #1367
- Fixes issues with new docs location of prebundled entrypoints
- Adds support for spritesheets in <sl-icon>
- fixes some ... | diff --git a/.prettierignore b/.prettierignore
index 104baae592..9f8c741410 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -9,3 +9,4 @@ src/react/index.ts
node_modules
package-lock.json
tsconfig.json
+cdn
diff --git a/docs/_includes/default.njk b/docs/_includes/default.njk
index 2a29169d42..a7b7e8b236 100644
... | 9 | 7 | 0 | [{"id": "G0", "claim": "The changelog should mention that resolveIcon() was moved from a static (prototype) method to a private instance method, since any observable behavior is an API for someone.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Copy... | null |
shoelace-style__shoelace__1599 | shoelace-style/shoelace | 1,599 | defect | 8748394f542153f204cbccef31d2ab1334b6efba | ca77930bcef14cf2f6c075d4f2554b3734cd33b7 | Fire `sl-select` when clicking an element inside a menu-item | Fixes #1596 | diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md
index de5821c49c..caa8df9ab7 100644
--- a/docs/pages/resources/changelog.md
+++ b/docs/pages/resources/changelog.md
@@ -14,6 +14,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
## Next
+- Fixed ... | 2 | 1 | 0 | [{"id": "G0", "claim": "Using the element tag name `sl-menu-item` instead of the `role` attribute would be less ambiguous for identifying the clicked menu item.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test should be simplified to not use the... | null |
shoelace-style__shoelace__1922 | shoelace-style/shoelace | 1,922 | defect | 2a4b3ee2e94e0f154307255a19cab2b4dc8f5dc1 | bce70d5f345133ec64e57ecad6ad65a15124cf51 | fix(tree) icons rendering as null | Fixes #1916 | diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md
index 902e9a3501..541c430ab8 100644
--- a/docs/pages/resources/changelog.md
+++ b/docs/pages/resources/changelog.md
@@ -44,6 +44,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
- Added the `hover-br... | 1 | 1 | 0 | [{"id": "G0", "claim": "The changelog entry should read \"...custom expand / collapse icons [#1922]\" without a period before the issue reference.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
shoelace-style__shoelace__1927 | shoelace-style/shoelace | 1,927 | defect | 2a4b3ee2e94e0f154307255a19cab2b4dc8f5dc1 | 37b25b880921475fd097f0cb4008ddd6145bcf72 | apply mutator to spritesheets | Fixes #1925 | diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md
index 902e9a3501..01a6440ade 100644
--- a/docs/pages/resources/changelog.md
+++ b/docs/pages/resources/changelog.md
@@ -16,6 +16,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti
- Added the Sloveni... | 1 | 1 | 0 | [{"id": "G0", "claim": "The two new changelog lines should not end with a period before the issue reference, to match the style of the surrounding entries.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
shoelace-style__shoelace__2041 | shoelace-style/shoelace | 2,041 | defect | f757d514e481c33f2ab6a774e51e242c7d45998b | 922a84aed26c020649edff9ea87966c6e9ae9913 | Implement roving tabindex for tabs | - `<sl-tab-group>` now implements a proper "roving tabindex" and `<sl-tab>` is no longer tabbable by default. This aligns closer to the APG pattern for tabs.
https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
Fixes #1744
| diff --git a/docs/pages/components/tab.md b/docs/pages/components/tab.md
index 0c04e0cec5..9b4d9e61ae 100644
--- a/docs/pages/components/tab.md
+++ b/docs/pages/components/tab.md
@@ -5,26 +5,6 @@ meta:
layout: component
---
-```html:preview
-<sl-tab>Tab</sl-tab>
-<sl-tab active>Active</sl-tab>
-<sl-tab closable>Clo... | 1 | 1 | 1 | [{"id": "G0", "claim": "Asks whether the `it.only` on the 'is accessible' test is intentional; a leftover `it.only` would make the suite run only that one test and skip the rest.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shoelace-style__webawesome__123 | shoelace-style/webawesome | 123 | defect | db94c609bde1594d5664b4fd7963a4896047bafb | ca6ebecfdcde0c486fb3d0a5eb7ede683bc97105 | Tooltips associated via selectors | Tooltips are now associated by doing:
```html
<wa-button id="my-button">I'm a button with a tooltip</wa-button>
<wa-tooltip for="my-button">I'm a tooltip</wa-tooltip>
```
Fixes #93 | diff --git a/docs/docs/components/tooltip.md b/docs/docs/components/tooltip.md
index 462f050e4c..b3225384d0 100644
--- a/docs/docs/components/tooltip.md
+++ b/docs/docs/components/tooltip.md
@@ -9,9 +9,8 @@ A tooltip's target is its _first child element_, so you should only wrap one ele
Tooltips use `display: contents... | 2 | 2 | 2 | [{"id": "G0", "claim": "The `content` property should be eliminated now that tooltip content is slotted in.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "tooltip.md must be updated to reflect the new selector-based association, for example the sentence ... | null |
shoelace-style__webawesome__247 | shoelace-style/webawesome | 247 | defect | 4522b408793a05142719cd5d5091c3d6bc897217 | 4185f3816b6baa9c0b6ac0de889a09695bfd3f40 | automatically slot tab into tab group; fixes #239 | Most of the changes are removing the slot attribute from the docs. The [big change](https://github.com/shoelace-style/webawesome/compare/autoslot?expand=1#diff-91d78201c2c39ef129491fea401203d95518fae0195ff91c9ee397a89d425dceR29) here is in `tab.ts`:
```diff
+ public slot = 'nav';
```
This makes the tab compone... | diff --git a/docs/_layouts/component.njk b/docs/_layouts/component.njk
index 18685ca691..8557cd8b9d 100644
--- a/docs/_layouts/component.njk
+++ b/docs/_layouts/component.njk
@@ -266,9 +266,9 @@
</p>
<wa-tab-group label="How would you like to import this component?">
- <wa-tab slot="nav" panel="cdn">CDN</wa-... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new `public slot = 'nav';` line in src/components/tab/tab.ts should carry an inline comment explaining that it auto-slots the tab into the nav slot.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
shoelace-style__webawesome__582 | shoelace-style/webawesome | 582 | defect | e3560dcf98335a373129596b8dfd12b2c6b0d54b | 0f3071859f7d1997627f58de4fce9a32f702a3e2 | Infrastructure for inheritable props, make `variant` inherit | This PR implements:
- A new `initial` descriptor for `@property`, which sets the initial value for inherited properties (i.e. what is applied if there is no inherited value). When `initial` is used, it automatically applies `default: 'inherit'` if no default value is set.
- Inheritable variants (sizes will be impleme... | diff --git a/docs/docs/experimental/inherit.md b/docs/docs/experimental/inherit.md
new file mode 100644
index 0000000000..88d5788d05
--- /dev/null
+++ b/docs/docs/experimental/inherit.md
@@ -0,0 +1,84 @@
+---
+title: Inheritance & Default value tests
+wide: true
+---
+
+## Variant
+
+{%- set variantDefaults = {
+ butto... | 3 | 2 | 1 | [{"id": "G0", "claim": "Besides the failing tests, the case of a variant-less button within a variant-less callout still needs touching up: per the stated rule, if no `variant` is specified on an ancestor, then no `variant` should be inherited by its descendants.", "category": "correctness", "verdict": "supported", "pr... | null |
shoelace-style__webawesome__885 | shoelace-style/webawesome | 885 | defect | cfc3f181a3c9fd879b981e1a386c2c1ef5e666bc | fbd60e8ab50ce8083190d72edd158aa87c7b44f9 | [Skeleton] Remove `base` part, rel #207 | Completely straightforward, as the base was just a div. | diff --git a/src/components/skeleton/skeleton.css b/src/components/skeleton/skeleton.css
index 60a5b4b0e9..0119986f38 100644
--- a/src/components/skeleton/skeleton.css
+++ b/src/components/skeleton/skeleton.css
@@ -3,12 +3,8 @@
--color: var(--wa-color-neutral-fill-normal);
--sheen-color: color-mix(in oklab, var(-... | 1 | 1 | 1 | [{"id": "G0", "claim": "The avatar example is no longer rendering in this branch.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shogun-toolbox__shogun__2282 | shogun-toolbox/shogun | 2,282 | defect | 98900c2996ccc4509099a6a337a71d7ca9991bd6 | dcba16cdc7c75d90d05c2a66379ecef8c780ad82 | Random Forest added | - Random Forest added
[Reference](http://www.stat.berkeley.edu/~breiman/RandomForests/cc_home.htm#overview)
| diff --git a/src/shogun/machine/BaggingMachine.cpp b/src/shogun/machine/BaggingMachine.cpp
index 698a43ca657..454e5a6c342 100644
--- a/src/shogun/machine/BaggingMachine.cpp
+++ b/src/shogun/machine/BaggingMachine.cpp
@@ -97,7 +97,6 @@ SGVector<float64_t> CBaggingMachine::apply_get_outputs(CFeatures* data)
bool CBaggin... | 11 | 8 | 0 | [{"id": "G0", "claim": "The new CRandomForest and CRandomCARTree classes are missing documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The set_bag_size doc comment should read 'Bag size is set to number of training feature vectors' ins... | null |
shogun-toolbox__shogun__2325 | shogun-toolbox/shogun | 2,325 | defect | ea676cb949e427bf3085190c6751d45228b31187 | 5233b98733c0a641585833b0bec717012957e779 | LDA.cpp eigennized | I have changed the LAPACK codes into EIGEN3 for the binary classification through LDA.
| diff --git a/src/shogun/classifier/LDA.cpp b/src/shogun/classifier/LDA.cpp
index b7f993cffff..b2006294da0 100644
--- a/src/shogun/classifier/LDA.cpp
+++ b/src/shogun/classifier/LDA.cpp
@@ -8,17 +8,19 @@
* Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
*/
-#include <shogun/lib/common.h>
... | 16 | 14 | 4 | [{"id": "G0", "claim": "Fix the bad spacing in the rewritten code: mixed spaces and tabs, stray tabs and wrong spacing around operators.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use Eigen methods to get rid of some of the explicit element loops, as ... | null |
shogun-toolbox__shogun__2389 | shogun-toolbox/shogun | 2,389 | defect | 5382047f49fcea0127c244ac0c96a02d62526bd3 | a36c038012973b731869946f15267592dc5070d3 | Implemented ViennaCL matrix sums | Implemented sum() for the ViennaCL backend (for now only for full matrices, no blocks). The sum is performed using a custom OpenCL kernel which is compiled once when the function is first called. I'm gonna do the remaining sum and square methods in a similar manner once this is merged.
@lisitsyn, @lambday, @karlnapf P... | diff --git a/src/shogun/mathematics/linalg/internal/implementation/Sum.h b/src/shogun/mathematics/linalg/internal/implementation/Sum.h
index 1b11039eb22..9271ff97d5c 100644
--- a/src/shogun/mathematics/linalg/internal/implementation/Sum.h
+++ b/src/shogun/mathematics/linalg/internal/implementation/Sum.h
@@ -42,6 +42,14... | 1 | 1 | 0 | [{"id": "G0", "claim": "Generify the kernel-generation code of the newly added ViennaCL sum specialization so that adding further kernels requires less repetitive code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shogun-toolbox__shogun__2490 | shogun-toolbox/shogun | 2,490 | defect | 856f315f7b8925ec35692980a577a900bd412e3d | 0b2b5759af0beede9db7e2013cfd95d5000f792c | added functions in SGNDArray | @iglesias @hushell
Could you help me to check this patch? Thanks!
| diff --git a/src/shogun/lib/SGNDArray.cpp b/src/shogun/lib/SGNDArray.cpp
index a340a6e31c7..77205449cc7 100644
--- a/src/shogun/lib/SGNDArray.cpp
+++ b/src/shogun/lib/SGNDArray.cpp
@@ -98,6 +98,140 @@ template<class T> void SGNDArray<T>::transpose_matrix(index_t matIdx) const
dims[1] = auxDim;
}
+template<class T>... | 10 | 8 | 1 | [{"id": "G0", "claim": "The get_size() method should not be inline (it contains an if and a loop) and its implementation should live in the cpp file.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "One-line if and for bodies should not be wrapped in brace... | null |
shogun-toolbox__shogun__2691 | shogun-toolbox/shogun | 2,691 | defect | 41ba3da340ab9690bbde162df0a570cff1098d67 | 6258e0f869205ae51e28cd4d04cefd36e33fdeae | Add openmp and default values in function add(linalg) | @lambday I added openmp. Not sure about it, can be incorrect.
| diff --git a/src/shogun/mathematics/linalg/internal/implementation/Add.h b/src/shogun/mathematics/linalg/internal/implementation/Add.h
index bc6f33af17b..6ced21a674f 100644
--- a/src/shogun/mathematics/linalg/internal/implementation/Add.h
+++ b/src/shogun/mathematics/linalg/internal/implementation/Add.h
@@ -1,6 +1,7 @@... | 3 | 2 | 1 | [{"id": "G0", "claim": "Open and close braces on new lines in the newly added test code, following the project's usual style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Please benchmark the openmp parallelisation before merging: for the expe... | null |
shogun-toolbox__shogun__2807 | shogun-toolbox/shogun | 2,807 | defect | 41ae35945eac8b6704d05f821b83177bdef2af02 | 589d31c71060ce3198dd3e2a4d9cbb5d626f1c77 | Added periodic kernel | An implementation of the periodic kernel as described in [Kernel Cookbook](http://mlg.eng.cam.ac.uk/duvenaud/cookbook/index.html)
| diff --git a/src/interfaces/modular/Kernel.i b/src/interfaces/modular/Kernel.i
index 5f84c03114b..45cc73c2309 100644
--- a/src/interfaces/modular/Kernel.i
+++ b/src/interfaces/modular/Kernel.i
@@ -103,6 +103,7 @@ PROTOCOLS_CUSTOMKERNEL(CustomKernel, float32_t, "f\0", NPY_FLOAT32)
%rename(LinearARDKernel) CLinearARDKer... | 20 | 16 | 2 | [{"id": "G0", "claim": "The new files' license headers should use the project's standard BSD text (like FeatureSelection.h) instead of the GPLv3 text and later the abbreviated BSD one-liner.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Most of t... | null |
shogun-toolbox__shogun__2830 | shogun-toolbox/shogun | 2,830 | defect | f4ec586174ade4cbecad7669cbf9b9f68620f77f | b43b2d08f7abbf669a428cc66955c0f925ead1e5 | Added element-wise unary operators in linalg | - Works with predefined operations (sin, cos, log, exp etc.)
- Works with custom unary operators as well (functors, std::function, lambda expressions, function pointers) that developers can provide.
- Implicit type conversion is **turned off** for CPU to/from GPU matrix/vector data-types. NATIVE/EIGEN3 works only with ... | diff --git a/benchmarks/elementwise_benchmark.cpp b/benchmarks/elementwise_benchmark.cpp
new file mode 100644
index 00000000000..96b88b1baa2
--- /dev/null
+++ b/benchmarks/elementwise_benchmark.cpp
@@ -0,0 +1,130 @@
+/*
+ * Copyright (c) The Shogun Machine Learning Toolbox
+ * Written (w) 2015 Soumyajit De
+ * All righ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Computing num_rows*num_cols in the 32-bit index_t risks integer overflow in the newly added SGMatrix::size() for large matrices; the return type should be widened (e.g. uint64_t or size_t).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
shogun-toolbox__shogun__2905 | shogun-toolbox/shogun | 2,905 | defect | 745211823a63bd4b23d1f0e20293da5e05ebef17 | 690d351c0bfa734340b37f3f0c656b033e6d96e0 | String map | https://github.com/shogun-toolbox/shogun/issues/2904
| diff --git a/src/shogun/lib/Map.h b/src/shogun/lib/Map.h
index b791ae2f24b..e51acfd577b 100644
--- a/src/shogun/lib/Map.h
+++ b/src/shogun/lib/Map.h
@@ -292,7 +292,7 @@ IGNORE_IN_CLASSLIST template<class K, class T> class CMap: public CSGObject
*/
int32_t hash(const K& key)
{
- return CHash::MurmurHash3((uint8_... | 3 | 1 | 0 | [{"id": "G0", "claim": "Add a comment explaining why 0xDEADBEEF is used as the third argument (seed) of MurmurHash3 in get_hash_value.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should justify (or reconsider) why the string spec... | null |
shogun-toolbox__shogun__3044 | shogun-toolbox/shogun | 3,044 | defect | e052cb3baba4164ba3953bac112133bab909ead7 | 0470ff4c5a3ffd3f6d7d73ff4a7f0b1cba3da0b3 | Add automatic bias computation in LinearMachine | @karlnapf check changes for issue #3033 :
1- Replace `lapack` calls in `CLinearRidgeRegression::train_machine()` by `eigen` calls.
2- Add `bias_flag` to `LinearMachine` class
3- Add `compute_bias()` method to `LinearMachine` class
4- Override `train()` to add optional `compute_bias()`
| diff --git a/src/shogun/machine/LinearMachine.cpp b/src/shogun/machine/LinearMachine.cpp
index 7a2980d13e5..412142bcf8e 100644
--- a/src/shogun/machine/LinearMachine.cpp
+++ b/src/shogun/machine/LinearMachine.cpp
@@ -12,11 +12,19 @@
#include <shogun/labels/RegressionLabels.h>
#include <shogun/features/DotFeatures.h>
... | 25 | 23 | 1 | [{"id": "G0", "claim": "Members should be initialised to default values in the init method (before SG_ADD), with the constructors calling init and then overwriting defaults passed as parameters, instead of long constructor initialiser lists.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "in... | null |
shogun-toolbox__shogun__3067 | shogun-toolbox/shogun | 3,067 | defect | 7bd7f283d8246f5fa9b63373e55de52eb945d697 | 2f6e62ba70ef7f78b8f3b34a1b47f8a90d3635d1 | kmeans update | This has most of the primary changes to Kmeans based on https://github.com/shogun-toolbox/shogun/issues/2987 and some general cleanups.
Still have to do some aesthetic changes.
- Changed random initialization
- now chooses `k` random points as centers rather than assigning random centers to all points.
- Removed un... | diff --git a/src/shogun/clustering/KMeans.cpp b/src/shogun/clustering/KMeans.cpp
index 26c3d325be7..5805fbfd4ac 100644
--- a/src/shogun/clustering/KMeans.cpp
+++ b/src/shogun/clustering/KMeans.cpp
@@ -13,6 +13,7 @@
#include "shogun/clustering/KMeansMiniBatchImpl.h"
#include <shogun/clustering/KMeans.h>
#include <sho... | 20 | 14 | 2 | [{"id": "G0", "claim": "The removed line weights_set[ClList_Pat]-= 1.0; was completely wrong and should have used += instead.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Use the SGVector version of get_feature_vector here instead of the raw-poi... | null |
shogun-toolbox__shogun__3071 | shogun-toolbox/shogun | 3,071 | defect | 4563785f2efa87077520a322e28dc30c6a198967 | 7c8e7ee3c070f04075d39e465c26e3c820aed2d0 | added rangeFill for linalg | Continuing #2745
added RangeFill.h,rangeFill in Core.h and RangeFill_unittest.
| diff --git a/src/shogun/mathematics/linalg/internal/implementation/RangeFill.h b/src/shogun/mathematics/linalg/internal/implementation/RangeFill.h
new file mode 100644
index 00000000000..69ef376bf0f
--- /dev/null
+++ b/src/shogun/mathematics/linalg/internal/implementation/RangeFill.h
@@ -0,0 +1,102 @@
+/*
+ * Copyright... | 4 | 4 | 1 | [{"id": "G0", "claim": "Drop the NATIVE backend specialization of range_fill, since the project no longer provides a NATIVE interface and Eigen3 is the default.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Split the unit tests into a separate minimal t... | null |
shogun-toolbox__shogun__3092 | shogun-toolbox/shogun | 3,092 | defect | 135a828bb06452ae3c7829edc2fe235237f897dc | e81a3818bbb9e477d562d0b17ff91227f0ad0166 | HAVE_EIGEN3 flags removed | Ref #3088
Sorry to have so many patches again - I just realized this before commit.
I did `grep HAVE_EIGEN3`. Most flags are in examples and tests/unit.
Failed the following tests. I checked several. The failures don’t seem to be caused by my changes
> 17 - unit-GaussianProcessClassificationUsingSingleFITCLaplaci... | diff --git a/benchmarks/sparse_test.cpp b/benchmarks/sparse_test.cpp
index 473320a4817..af5f728eedc 100644
--- a/benchmarks/sparse_test.cpp
+++ b/benchmarks/sparse_test.cpp
@@ -9,7 +9,6 @@
#include <shogun/lib/common.h>
-#ifdef HAVE_EIGEN3
#include <shogun/lib/Time.h>
#include <shogun/lib/SGVector.h>
#include <... | 5 | 3 | 0 | [{"id": "G0", "claim": "The accidental mid-word split of the PROJECT_NAME comment line in doc/doxygen/Doxyfile_en.in should be reverted.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "karlnapf questions why the disabled ARD example's guard was cha... | null |
shogun-toolbox__shogun__3096 | shogun-toolbox/shogun | 3,096 | defect | faf1ecc5413341e8cdcc3fd7c62b450e1ad07f08 | 904c75c6e35eff8acf805afc00523c9d5337d6e1 | Implement Vector Mean in linalg | To make things less messy I put this part in a new branch so I opened a new PR. Ref #3085, #3070 and issue #3051 .
Simple implementation - return vector mean `decltype(vector data type) vector mean` for Eigen3.
Seems I can add both `Vector` and `Matrix` to `Matrix` template?
| diff --git a/src/shogun/mathematics/linalg/internal/implementation/MeanEigen3.h b/src/shogun/mathematics/linalg/internal/implementation/MeanEigen3.h
new file mode 100644
index 00000000000..0a6412da742
--- /dev/null
+++ b/src/shogun/mathematics/linalg/internal/implementation/MeanEigen3.h
@@ -0,0 +1,139 @@
+/*
+ * Copyri... | 7 | 7 | 1 | [{"id": "G0", "claim": "The test file should not carry the `#if defined(HAVE_CXX0X) || defined(HAVE_CXX11)` guards because HAVE_LINALG_LIB is only defined when C++11 is enabled, making the outer guard redundant.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
shogun-toolbox__shogun__3136 | shogun-toolbox/shogun | 3,136 | defect | 85e677b6ad9e57e12d7f08a26ce3908a8270221c | 4df36eb8b2fbf12840ce47aac203174323edc79d | Add rowwise_mean to linalg using Eigen3 | Refer #3051 and PR #3070, #3125
- I didn't implement `colwise_mean` at the same time because I'm not sure how this implement looks like. Apparently I cannot copy `SGVector<T>` to `SGVector<int2float type>` so I just used `for`-loops. Also, I think we are supposed to use EIGEN3 methods, which I have not tried (but used... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 687a3ceae00..41a5cf6260b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -664,10 +664,9 @@ FIND_PACKAGE(PythonInterp REQUIRED)
# Meta examples and dependencies
IF(BUILD_META_EXAMPLES)
- include(FindPythonModule)
- find_python_module(ply REQUIRED)
- IF(... | 5 | 3 | 0 | [{"id": "G0", "claim": "The doxygen comments added by this pull request use \\mean, which is not a LaTeX macro, in the @return formulas.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Single-statement for and if blocks should not be wrapped in bra... | null |
shogun-toolbox__shogun__3144 | shogun-toolbox/shogun | 3,144 | defect | a18a6dc49541eee4cc726a06329dfea05cdc58e2 | 1c12759aeb5b7bfc3ed7cfffeebdddb042bede75 | added cholesky decomposition in linalg | added cholesky decomposition with eigen3 backend in linalg.
| diff --git a/src/shogun/mathematics/linalg/internal/implementation/Cholesky.h b/src/shogun/mathematics/linalg/internal/implementation/Cholesky.h
new file mode 100644
index 00000000000..a0683a3a14c
--- /dev/null
+++ b/src/shogun/mathematics/linalg/internal/implementation/Cholesky.h
@@ -0,0 +1,118 @@
+/*
+ * Copyright (c... | 6 | 5 | 2 | [{"id": "G0", "claim": "The doxygen comments in Cholesky.h should use LaTeX (\\f$ ... \\f$) notation for the formulas instead of plain text like 'A=L L* or A=U* U'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'lower' parameter of the choles... | null |
shogun-toolbox__shogun__3357 | shogun-toolbox/shogun | 3,357 | defect | add5dca475b5ccfb542ea4e60ce47c93291502fe | 619f087e62d75b1d2bb7224079bed39e5820bc0d | add swig for tags using Jinja | Working python code:
```
import modshogun as sg
obj = sg.Obj() # creates CMockObject
obj.getKernel("gaussian") # returns null
gk = sg.GaussianKernel(5)
obj.setKernel("gaussian", gk)
obj.getKernel("gaussian") # returns GaussianKernel
```
`shogun-base.i` looks like [this](https://gist.github.com/sanuj/a85986fb... | diff --git a/cmake/CommonModularInterface.cmake b/cmake/CommonModularInterface.cmake
index 03a916d3e82..cbff4d42741 100644
--- a/cmake/CommonModularInterface.cmake
+++ b/cmake/CommonModularInterface.cmake
@@ -4,6 +4,17 @@ if(SYSTEM_INCLUDES)
endif()
INCLUDE_DIRECTORIES(${INCLUDES})
+# Generate automatic shogun-base... | 8 | 7 | 3 | [{"id": "G0", "claim": "The '// Temporary include to test Tags' comment on the new MockObject include in SGBase.i is unclear — what does 'temporary' mean here, and is this removed before a merge?", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
shogun-toolbox__shogun__3370 | shogun-toolbox/shogun | 3,370 | defect | d8b958f27f4ad7bc0ebba83bf0cc1a8a14d045ab | d08c2ab03187b515275f1cf1f57820ed1add4381 | add plugins functionality | @lisitsyn @karlnapf
Work in progress. :construction: :construction_worker:
Need to add documentation and checks for corner cases.
Please review and tell what needs to be changed.
@lisitsyn how to add create() in this and the plugins that it will be loading :question:
| diff --git a/src/shogun/base/MetaClass.h b/src/shogun/base/MetaClass.h
new file mode 100644
index 00000000000..8b9141cec12
--- /dev/null
+++ b/src/shogun/base/MetaClass.h
@@ -0,0 +1,72 @@
+/*
+ * Copyright (c) 2016, Shogun-Toolbox e.V. <shogun-team@shogun-toolbox.org>
+ * All rights reserved.
+ *
+ * Redistribution and... | 8 | 6 | 0 | [{"id": "G0", "claim": "Add a new line at the end of src/shogun/base/MetaClass.h, which currently lacks a trailing newline.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Replace the std::cout debug output and the <iostream> include in library.c... | null |
shogun-toolbox__shogun__3375 | shogun-toolbox/shogun | 3,375 | defect | c36f10afca456e4fedae532f2b516561ff9bd006 | bcaa9892452e652ac2e778b62ae779573004e6cd | Cereal serialization - SGObejct | class Any serialization.
- Changes in any.h and any.cpp
- Need rebase on #3226
| diff --git a/src/shogun/base/SGObject.cpp b/src/shogun/base/SGObject.cpp
index 388ea195b68..3e2c1f89d79 100644
--- a/src/shogun/base/SGObject.cpp
+++ b/src/shogun/base/SGObject.cpp
@@ -34,6 +34,8 @@
#include <map>
#endif
+#include <cereal/archives/json.hpp>
+
namespace shogun
{
#ifdef HAVE_CXX11
@@ -470,7 +472,3... | 14 | 5 | 1 | [{"id": "G0", "claim": "The serialization code should use shogun's typedefs (int32_t, float64_t) instead of int/double, as used throughout shogun.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Unit tests should never use const vectors (const-qu... | null |
shogun-toolbox__shogun__3391 | shogun-toolbox/shogun | 3,391 | defect | c7af47ef172239d1654c21da23793a8b0961e9d2 | ab4e9e9c6985a020ab5b4633143f5bac73a93151 | LinalgRefactor - SGVector - inplace add | Ref #3387
- I was trying to merge `void add` and `SGVector<T> add` into one method by doing `template <typename T> auto add(SGVector<T>& a, SGVector<T>& b, T alpha=1, T beta=1, bool inplace=false) -> decltype((!inplace, SGVector<T>>))`, but I got error `expected ')' -> decltype((!inplace, SGVector<T>>))`. Not sure whet... | diff --git a/src/shogun/mathematics/linalg/LinalgBackendBase.h b/src/shogun/mathematics/linalg/LinalgBackendBase.h
index 515af1755d0..8cc2ee888d4 100644
--- a/src/shogun/mathematics/linalg/LinalgBackendBase.h
+++ b/src/shogun/mathematics/linalg/LinalgBackendBase.h
@@ -80,6 +80,20 @@ class LinalgBackendBase
DEFINE_FOR... | 3 | 1 | 0 | [{"id": "G0", "claim": "The in-place add interface is awkward and would be nicer designed some other way, e.g. with a flag rather than passing in a pre-allocated result vector.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer questions whether t... | null |
shogun-toolbox__shogun__3721 | shogun-toolbox/shogun | 3,721 | defect | 9343f41898bb4e947268288aa3a057bc8a624ef8 | 3821630d2cfeb469982491c2e19cdded2a761373 | Alternative fix for Dynamic(Object)Array::clone() | Alternative solution to #3720 - involves overwriting `clone()` once again which might be ugly, but causes less trouble. Contains the same test, I suggest to merge this PR and discard #3720. | diff --git a/src/shogun/lib/DynamicArray.h b/src/shogun/lib/DynamicArray.h
index 602247c33bf..f2b28906b69 100644
--- a/src/shogun/lib/DynamicArray.h
+++ b/src/shogun/lib/DynamicArray.h
@@ -619,6 +619,18 @@ template <class T> class CDynamicArray :public CSGObject
m_array.resize_array(m_array.get_num_elements(), true... | 5 | 5 | 1 | [{"id": "G0", "claim": "The new test file needs the full BSD license header instead of the one-line license reference.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test file should just be named DynamicObjectArray rather than DynamicObjectAr... | null |
shogun-toolbox__shogun__3745 | shogun-toolbox/shogun | 3,745 | defect | 17907f45de1659752cd8cdc50510962843729a5e | 8d252a8241ba92ce14e4c9360dbca46786cde25e | Add PRange class to replace old SG_PROGRESS (WIP) | This is a prototype for the new progress bar that will (hopefully) replace `SG_PROGRESS`. This is not a full-fledged solution, it is just to show the idea and to get some feedback about it, so be warned ;)
As @lisitsyn suggested back here #3693, I developed a wrapper that takes a `range()` object and an `SGIO` insta... | diff --git a/src/shogun/base/progress.h b/src/shogun/base/progress.h
new file mode 100644
index 00000000000..b40f7c83d9e
--- /dev/null
+++ b/src/shogun/base/progress.h
@@ -0,0 +1,198 @@
+#ifndef __SG_PROGRESS_H__
+#define __SG_PROGRESS_H__
+
+#include <iterator>
+#include <memory>
+#include <string>
+
+#include <shogun... | 6 | 4 | 0 | [{"id": "G0", "claim": "Put the opening brace of the namespace in src/shogun/base/progress.h on a new line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Paste a use case with calling code and produced output for the new progress API.", "catego... | null |
shogun-toolbox__shogun__3812 | shogun-toolbox/shogun | 3,812 | defect | 0b713865cf064e6a4fdc80cf4aae6c511455b34e | 9294c12af57543095a6a5d418dcc902c74f7bf52 | Add global fixture with label data | This pr is about to add a global fixture to share mock data between different tests. Haven't done yet because I believe there are a lot detail need to discuss. Honestly speaking, I'm really not good at naming things like file and class or variable:/ I will add comments later! | diff --git a/tests/unit/base/main_unittest.cc b/tests/unit/base/main_unittest.cc
index 3c267123ebc..72d86dac940 100644
--- a/tests/unit/base/main_unittest.cc
+++ b/tests/unit/base/main_unittest.cc
@@ -2,6 +2,7 @@
#include <gmock/gmock.h>
#include <shogun/base/init.h>
#include <shogun/io/SGIO.h>
+#include "environmen... | 7 | 5 | 0 | [{"id": "G0", "claim": "The LinearTestEnvironment singleton could use Meyer's singleton, which is a bit more concise.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OCAS test fails on gcc but not on clang, and the reviewer wonders why.", "category": ... | null |
shogun-toolbox__shogun__3826 | shogun-toolbox/shogun | 3,826 | defect | a77c3b88d2e8220d51a504f1d1eed7e79d8e9975 | 19baa8706bc540469d248102b576cc126defc6d8 | Remove duplicate code in LDA/FisherLDA and port the solvers to use linalg (WIP) | Starting point to discuss this task. #3482
Both classes implement two solvers: canonvar (svd based) whose code is very similar in the two implementations except for the regularization parameter in LDA (this PR drops the LDA's solver), and the classic method using covariance matrix, LDA directly computes a solution ... | diff --git a/src/shogun/classifier/LDA.cpp b/src/shogun/classifier/LDA.cpp
index 6c2969ee1c5..6d5f0720451 100644
--- a/src/shogun/classifier/LDA.cpp
+++ b/src/shogun/classifier/LDA.cpp
@@ -18,6 +18,8 @@
#include <shogun/labels/BinaryLabels.h>
#include <shogun/mathematics/Math.h>
#include <shogun/mathematics/eigen3.h... | 13 | 9 | 0 | [{"id": "G0", "claim": "The Eigen mapped matrices will all fail when the linalg backend runs on a GPU because the feature matrix is not in CPU memory; at least mark this here with a TODO.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Make sure the ... | null |
shogun-toolbox__shogun__3830 | shogun-toolbox/shogun | 3,830 | defect | bfe45d510a66d54feafed2e89a11d76e45696fdc | 530893fb284fb2c72801a8125efcc78b1bb4e1c2 | Add to linalg trace, zero, identity, add_col_vec (CPU only) | Operations needed by #3826, linalg + eigen implementation.
~~This is a work in progress: tests, docs, dimension checks etc are missing.~~
PS: if I run `check_format.sh` it wants to rewrite almost completely `LinalgBackendEigen.h`, see https://gist.github.com/micmn/8565fdbb0bcb1e2b1867a934f8f0fbce#file-style-diff-... | diff --git a/src/shogun/mathematics/linalg/LinalgBackendBase.h b/src/shogun/mathematics/linalg/LinalgBackendBase.h
index 82b70239ea1..d2ad11b2514 100644
--- a/src/shogun/mathematics/linalg/LinalgBackendBase.h
+++ b/src/shogun/mathematics/linalg/LinalgBackendBase.h
@@ -404,6 +404,65 @@ class LinalgBackendBase
DEFINE_F... | 3 | 2 | 0 | [{"id": "G0", "claim": "The identity doc comment should read \"Method that writes the identity\" instead of \"Method that write the identity\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether the newly added add_col_vec me... | null |
shogun-toolbox__shogun__3858 | shogun-toolbox/shogun | 3,858 | defect | aef98cb0ee72bb65428cf3e382047959c278d53b | 640c79b4cf3f9c553a837d92dfab080adff95ed1 | [PrematureStopping] Add to CMachine premature stopping methods. | This will need a rebase when #3853 will get merged. | diff --git a/src/shogun/base/init.cpp b/src/shogun/base/init.cpp
index 104636e925d..c7697aa2aeb 100644
--- a/src/shogun/base/init.cpp
+++ b/src/shogun/base/init.cpp
@@ -12,17 +12,19 @@
#include <shogun/lib/memory.h>
#include <shogun/lib/config.h>
+#include <shogun/base/Parallel.h>
+#include <shogun/base/SGObject.h>... | 6 | 6 | 1 | [{"id": "G0", "claim": "The global sg_signal should be held by a smart pointer such as std::unique_ptr<CSignal> (or Some<CSignal>) instead of a raw CSignal* with manual SG_REF/SG_UNREF, since the project is C++11.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
shogun-toolbox__shogun__3901 | shogun-toolbox/shogun | 3,901 | defect | c24280d4b9fc963d7c16e1fd77645c37ee831bf3 | 04d6335674a94749100a02fdb879b8dbb983d7a6 | Refactor (Fisher)LDA solvers into separate class | This includes:
- refactor LDA binary classification and dimension reduction solvers in two separate classes: `LDASolver`, centers data w.r.t. class, compute within cov matrix (shared by bin. class. and dim. red. llt/eigen solvers); `LDACanVarSolver`, inherits from `LDASolver` and computes the solution through canonica... | diff --git a/debian b/debian
index 2858a327c49..add2d5b2eeb 160000
--- a/debian
+++ b/debian
@@ -1 +1 @@
-Subproject commit 2858a327c4968191fdeb6fb9020654211b85ece8
+Subproject commit add2d5b2eebb7631023cb26a3ff5614c396befbe
diff --git a/src/shogun/classifier/LDA.cpp b/src/shogun/classifier/LDA.cpp
index 6ddee60bea5..4... | 13 | 5 | 1 | [{"id": "G0", "claim": "The manual sign-multiplied copy loop in solver_svd could be replaced with linalg::scale(w_st, w, sign).", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new code casts features (and labels) without validating them; add ... | null |
shogun-toolbox__shogun__3920 | shogun-toolbox/shogun | 3,920 | defect | 5e5ebb03b5718bed970c2b719356173696e49750 | f5e3928bd1b4ffece3f70ac5034bd8187c154096 | Add option to compute DotFeatures covariance by matrix product | @karlnapf
There are no unit tests for this method, I'll add a few.
Some benchmark (mat-prod 4-thread vs no-copy)
|rows/cols (s)|1000 |2000 |3000 |4000 | 5000|
|---|---|---|---|---|---|
| 1000 | 0.134 / 0.446 | 0.252 / 0.879 | 0.372 / 1.338 | 0.514 / 1.751 | 0.619 / 2.403 |
| 2000 | 0.494 / 2.092 | 0.976 / ... | diff --git a/src/shogun/features/DotFeatures.cpp b/src/shogun/features/DotFeatures.cpp
index bfb4a001b90..0d6676252d0 100644
--- a/src/shogun/features/DotFeatures.cpp
+++ b/src/shogun/features/DotFeatures.cpp
@@ -305,7 +305,7 @@ CDotFeatures::compute_mean(CDotFeatures* lhs, CDotFeatures* rhs)
return mean;
}
-SGMat... | 3 | 2 | 1 | [{"id": "G0", "claim": "Unit tests for the pull request's new covariance code would be appreciated, as the coverage report complains.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The manual nested loop accumulating the covariance in the iterative bran... | null |
shogun-toolbox__shogun__3939 | shogun-toolbox/shogun | 3,939 | defect | 587aacfe791e597cbbe5e46b17a44c3cf03c9d51 | d3040761409b1f51805245491177dae74645a7bd | [ParametersObservers] Main refactor of the parameter's observers feature. | * Move all parameter observers into separate directory;
* Add ObservedValue class which will store a measurement;
* Refactor SGObject methods name (observe());
* Add SG_OBS_VALUE_TYPE to indicate what is the observed value for;
* Add macro to check the observed value type;
* Update register_observable_param by usi... | diff --git a/src/interfaces/swig/ParameterObserver.i b/src/interfaces/swig/ParameterObserver.i
index 3d323bd2e4f..afa958c8649 100644
--- a/src/interfaces/swig/ParameterObserver.i
+++ b/src/interfaces/swig/ParameterObserver.i
@@ -5,15 +5,15 @@
%template(ParameterList) std::vector<std::string>;
%{
- #include <shog... | 5 | 5 | 0 | [{"id": "G0", "claim": "The observer-parameter list need not be a sorted std::map, implying it should be an unordered one.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether the new type_name helper is for debug purposes only o... | null |
shogun-toolbox__shogun__3942 | shogun-toolbox/shogun | 3,942 | defect | 9b76d222850714fc9a0a6ccbbfd5fd8ee992237e | 46bd52f9265fe291f3799fb0e4cfdc9894a92a14 | Add Multiclass machines to generated serialization tests | MulticlassLabels: algorithms set labels by `set_int_label()` that sets only `m_labels` but this way
`m_current_values` is not initialized and hence equals() fails. [not sure how to handle this, zeroed vectors on allocation in DenseLabels for now].
MCLDA: incomplete params registration [fixed].
QDA: incomplete para... | diff --git a/src/shogun/labels/DenseLabels.cpp b/src/shogun/labels/DenseLabels.cpp
index 525f43b3d5b..47724d76ffe 100644
--- a/src/shogun/labels/DenseLabels.cpp
+++ b/src/shogun/labels/DenseLabels.cpp
@@ -17,6 +17,7 @@
#include <shogun/io/SGIO.h>
#include <shogun/mathematics/Math.h>
#include <shogun/base/Parameter.h... | 11 | 11 | 1 | [{"id": "G0", "claim": "In get_submatrix, the parameters first and last should be named col_start and col_end.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "get_submatrix should use REQUIRE for its argument checks, or have no bounds checking at... | null |
shogun-toolbox__shogun__3956 | shogun-toolbox/shogun | 3,956 | defect | 5e6c6db08bac2a31e7f35d1c81c0b8f749c6199d | 2ad528fe40e8c5fcf7a777cd10bbb4b8bbb46d4f | Initialising BinaryLabels & MulticlassLabels with probabilities scores | - BinaryLabels constructor with confidence scores is more intuitive (comparing >= threshold)
- Added MulticlassLabels constructor with probability matrix | diff --git a/data b/data
index ed8779c8b06..7854e3b08ab 160000
--- a/data
+++ b/data
@@ -1 +1 @@
-Subproject commit ed8779c8b065a48ee346350d1d635dc8c05ea7b8
+Subproject commit 7854e3b08ab99594dcba4c6e94d7cd48eb2d0556
diff --git a/src/shogun/labels/BinaryLabels.cpp b/src/shogun/labels/BinaryLabels.cpp
index 6f1e93f0484.... | 6 | 6 | 2 | [{"id": "G0", "claim": "The new MulticlassLabels matrix constructor's parameter should not be named `src`; a better name would be `scores` or `confidences`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The vector in the new MulticlassLabels ma... | null |
shogun-toolbox__shogun__4075 | shogun-toolbox/shogun | 4,075 | defect | 5d1e93d3ec1fcd60580a352dc8b4f698e9d63051 | 726158ce50e56525a95ea843bc20e842be7626c9 | Add SGSparseMatrix equals and operator== | This fixes #4071 | diff --git a/src/shogun/lib/SGSparseMatrix.cpp b/src/shogun/lib/SGSparseMatrix.cpp
index fd329cbfaa9..c2c707e1fc6 100644
--- a/src/shogun/lib/SGSparseMatrix.cpp
+++ b/src/shogun/lib/SGSparseMatrix.cpp
@@ -282,6 +282,38 @@ template<class T> void SGSparseMatrix<T>::from_dense(SGMatrix<T> full)
SG_FREE(num_feat_entries)... | 6 | 5 | 1 | [{"id": "G0", "claim": "The inline keyword on the operator== declaration does not change anything since the implementation is in the .cpp file.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Travis job is failing and the patch needs codestyle fixes.",... | null |
shogun-toolbox__shogun__4078 | shogun-toolbox/shogun | 4,078 | defect | e4a19a2519e3b76b281b88c025e054e9e5fcfa97 | da92405761be98608e4fd245cd1b211ce0681b1d | Implement clone for any | @karlnapf I removed some SG_SDEBUG from any.h as it is kind of circular dependency. Gets too hard to test separately. | diff --git a/src/shogun/lib/SGVector.cpp b/src/shogun/lib/SGVector.cpp
index 6f8523e1abf..0b71b19b932 100644
--- a/src/shogun/lib/SGVector.cpp
+++ b/src/shogun/lib/SGVector.cpp
@@ -393,7 +393,7 @@ void SGVector<T>::free_data()
}
template <class T>
-bool SGVector<T>::equals(SGVector<T>& other) const
+bool SGVector<T... | 3 | 1 | 0 | [{"id": "G0", "claim": "Keep the explicit compare_impl declarations for the real and complex types by moving their implementation into the .cpp instead of dropping them from the header.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper templates ... | null |
shogun-toolbox__shogun__4087 | shogun-toolbox/shogun | 4,087 | defect | 33d68fb5ad6b96252048903593f55d97e7b22b87 | 4fc02bf1dac7ae797f82bb8d0c68c2b8024674a8 | Add linalg API to allow adding a vector to diagonal | As mentioned in #4085 by @karlnapf , we need a API in linalg to allow adding a vector to a matrix's diagonal. This PR adds `add_diag_vec` that performs operation `A.diagonal = alpha * A.diagonal + beta * b`. Could you provide some feedback on the API design ? | diff --git a/src/shogun/mathematics/linalg/LinalgBackendBase.h b/src/shogun/mathematics/linalg/LinalgBackendBase.h
index c3484f9fca0..d609bdbc98f 100644
--- a/src/shogun/mathematics/linalg/LinalgBackendBase.h
+++ b/src/shogun/mathematics/linalg/LinalgBackendBase.h
@@ -123,6 +123,23 @@ namespace shogun
DEFINE_FOR_ALL... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new add_diag_vec unit test should be made more explicit by writing the expected matrices by hand instead of using loops, use EXPECT_THROW (instead of REQUIRE-based checks) for invalid-input cases, and cover corner cases such as an empty matrix not causing a memory error.", "category": "testi... | null |
shogun-toolbox__shogun__4134 | shogun-toolbox/shogun | 4,134 | defect | c4e720cd2919e22eca906c5246993f8afbfee5c8 | 24a5af344204dda7f7e7325a56973ff548614498 | bugfix for train-test ratio in statistical testing | Fixes the bug found by Dmitry as per the SO thread https://stackoverflow.com/questions/48467554/shogun-quadratic-mmd-error-caused-by-varying-train-test-ratio. | diff --git a/src/shogun/statistical_testing/internals/DataManager.cpp b/src/shogun/statistical_testing/internals/DataManager.cpp
index abb12f577e8..bb1e15edbc8 100644
--- a/src/shogun/statistical_testing/internals/DataManager.cpp
+++ b/src/shogun/statistical_testing/internals/DataManager.cpp
@@ -231,15 +231,12 @@ void ... | 4 | 4 | 1 | [{"id": "G0", "claim": "The REQUIRE error message added in DataManager::set_train_mode is missing a terminating newline.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new kernel-matrix dimension error messages do not tell the user what the expe... | null |
shogun-toolbox__shogun__4176 | shogun-toolbox/shogun | 4,176 | defect | 9e8f47fd57762910cd95e109249b7dcdae22e093 | f4183d59447685966b83b82d26fc25ebc1e7096e | Add trace_dot in linalg | * Add method that computes trace of the product of two matrixes in linalg
* Use `trace_dot` in LMNN | diff --git a/src/shogun/mathematics/linalg/LinalgNamespace.h b/src/shogun/mathematics/linalg/LinalgNamespace.h
index b45595e276b..504cc270460 100644
--- a/src/shogun/mathematics/linalg/LinalgNamespace.h
+++ b/src/shogun/mathematics/linalg/LinalgNamespace.h
@@ -1681,6 +1681,19 @@ namespace shogun
return infer_backen... | 4 | 2 | 1 | [{"id": "G0", "claim": "The rewritten objective computation in CLMNN::train does not look the same as the previous trace(element_prod(matrix_prod(L, L, true, false), gradient)) expression, i.e. it may compute a different value.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"},... | null |
shogun-toolbox__shogun__4183 | shogun-toolbox/shogun | 4,183 | defect | bb7242762b900f5576ebf61e1c94a5bae7025339 | cba0ebf2efe870a70bff90c2d19a00cee9483d8c | Add transpose flags to element_prod | Add transpose flags to arguments of `linalg::element_prod`
```
void element_prod(const SGMatrix<T>& A, const SGMatrix<T>& B, SGMatrix<T>& result,
bool transpose_A = false, bool transpose_B = false)
```
This makes `element_prod` have a consistent interface as `matrix_prod` | diff --git a/src/shogun/mathematics/linalg/LinalgBackendBase.h b/src/shogun/mathematics/linalg/LinalgBackendBase.h
index c49bef7e6d8..4660a188cc0 100644
--- a/src/shogun/mathematics/linalg/LinalgBackendBase.h
+++ b/src/shogun/mathematics/linalg/LinalgBackendBase.h
@@ -308,20 +308,36 @@ namespace shogun
#undef BACKEND_... | 2 | 1 | 0 | [{"id": "G0", "claim": "The transposed element_prod logic is copy-pasted in both element_prod_impl overloads; one method should call the other instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ViennaCL element_prod_impl could store the... | null |
shogun-toolbox__shogun__4216 | shogun-toolbox/shogun | 4,216 | defect | 7605741e19d8521f20399e2a69a00665f0b6d431 | 5959c898b65134dd01f3f1c6a795057db9d6e9df | Added Stan Math Support to Shogun | I've added the ability to now use the Stan Math library in Shogun. I've also written a unit test to make sure it compiles and works properly (The unit test is a perceptron learning algorithm with gradient descent)
The CmakeLists.txt was changed to add the include directories of stan headers, and the last file is the... | diff --git a/cmake/external/StanMath.cmake b/cmake/external/StanMath.cmake
new file mode 100644
index 00000000000..75f06c9dc64
--- /dev/null
+++ b/cmake/external/StanMath.cmake
@@ -0,0 +1,18 @@
+include(ExternalProject)
+ExternalProject_Add(
+ StanMath
+ PREFIX ${CMAKE_BINARY_DIR}/StanMath
+ DOWNLOAD_DIR ${THIRD_PARTY_... | 13 | 8 | 3 | [{"id": "G0", "claim": "The stan checkout should pin GIT_TAG to the last stable release of stan instead of following master HEAD.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The install-interface directory names stan1/stan2/stan3 are cryptic and shoul... | null |
shogun-toolbox__shogun__4224 | shogun-toolbox/shogun | 4,224 | defect | 8d578f454422dd1e390757271208a1107b332078 | c23253ccc8d1203a2ca5030419e789ac972a6b26 | Replace obtain_from_generic with .as | Refer #4191
This is partial wok. There are more cases that need to be re-factored.
PS The build is expected to fail terribly when interface options are set. This is because `build/src/interfaces/{language}/shogun{language}wrap.cxx` needs refactoring wherever `obtain_from_generic` is used. | diff --git a/examples/undocumented/libshogun/so_fg_model.cpp b/examples/undocumented/libshogun/so_fg_model.cpp
index efbede0fc0a..3da4f9247b5 100644
--- a/examples/undocumented/libshogun/so_fg_model.cpp
+++ b/examples/undocumented/libshogun/so_fg_model.cpp
@@ -90,7 +90,8 @@ void test(int32_t num_samples)
// show labe... | 4 | 2 | 2 | [{"id": "G0", "claim": "Replacing obtain_from_generic calls (some of which increase the reference counter) with .as, which does not, leaves the downstream SG_UNREF calls unbalanced and explains the segfaults in the CI; the reference-count increase should be dropped and the downstream code adjusted to no longer decremen... | null |
shogun-toolbox__shogun__4236 | shogun-toolbox/shogun | 4,236 | defect | c8c66e61ebc8b6e90cbe726df7557c7291310cab | 2f2142c1dfaebe17c58f76a98d870391254e7276 | factory methods in lda meta example #4247 | ```lda.get_real("m_gamma")``` did not work due to this casting of gamma(float) as int | diff --git a/examples/meta/src/binary/linear_discriminant_analysis.sg b/examples/meta/src/binary/linear_discriminant_analysis.sg
index 3135838ebde..e429fae500b 100644
--- a/examples/meta/src/binary/linear_discriminant_analysis.sg
+++ b/examples/meta/src/binary/linear_discriminant_analysis.sg
@@ -11,18 +11,17 @@ BinaryL... | 8 | 6 | 1 | [{"id": "G0", "claim": "The prediction step in the example can just use the generic apply instead of apply_binary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Changing the m_gamma registration to a plain pointer might break the integration tests; if... | null |
shogun-toolbox__shogun__4407 | shogun-toolbox/shogun | 4,407 | defect | e338426fc5777386b30eb0adee9e63bf61076e70 | 8e93bf41b5626a9603d249a13787b1d1265ca496 | CLibLinearRegression bug fix #4382 | This PR fixes the issues mentioned in #4382:
* Bias dimensionailty issue, where running the algorithm would fail due to vector dimensions mismatch
* Sets `use_bias` values correctly
* Sets `prob.y` to the given labels
* A unittest for `CLibLinearRegression` | diff --git a/src/shogun/regression/svr/LibLinearRegression.cpp b/src/shogun/regression/svr/LibLinearRegression.cpp
index cf511c726a5..11536905050 100644
--- a/src/shogun/regression/svr/LibLinearRegression.cpp
+++ b/src/shogun/regression/svr/LibLinearRegression.cpp
@@ -93,7 +93,10 @@ bool CLibLinearRegression::train_mac... | 5 | 5 | 2 | [{"id": "G0", "claim": "The lines added by the pull request use space indentation where the project uses tab indentation.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The bias should be accumulated and read at w.vector[w_size], not w.vector[w_size+1], b... | null |
shogun-toolbox__shogun__4421 | shogun-toolbox/shogun | 4,421 | defect | b5345f5771e30e6ddec0a7c456f58b9f0b071868 | 1e58b69bec622eb7408553160f78945bcfea8eea | AnyParameterProperties tests | Added tests to check binary logic of AnyParameterProperties.m_attribute_mask. | diff --git a/src/shogun/base/AnyParameter.h b/src/shogun/base/AnyParameter.h
index 4cc8f80db66..6be0898cde4 100644
--- a/src/shogun/base/AnyParameter.h
+++ b/src/shogun/base/AnyParameter.h
@@ -118,6 +118,15 @@ namespace shogun
return static_cast<bool>(
m_attribute_mask & ParameterProperties::MODEL);
}
+ ... | 5 | 5 | 1 | [{"id": "G0", "claim": "The mask-equality method named `equals` is misleading since a real semantic equals would also compare description and name, so it should be renamed (the reviewer and author settle on a mask-comparison name).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int... | null |
shogun-toolbox__shogun__4423 | shogun-toolbox/shogun | 4,423 | defect | b5345f5771e30e6ddec0a7c456f58b9f0b071868 | 5f6cc7a413ffc10ec9e4d84f8c37b9a77485ef28 | Add meta example features-char-string | A simple meta example for CStringFeatures<char>.
I would like to make changes and add output file for an integration test but I am not sure if the current outputs are enough for that. Currently, it stores "max_string_length", "number_of_strings" and "length_of_first_string". I don't think that is possible to practi... | diff --git a/examples/meta/generator/targets/cpp.json b/examples/meta/generator/targets/cpp.json
index 5031f8d8ac9..029aba78c17 100644
--- a/examples/meta/generator/targets/cpp.json
+++ b/examples/meta/generator/targets/cpp.json
@@ -45,7 +45,7 @@
"Type": {
"RealFeatures": "DenseFeatures<float64_t>",
... | 7 | 6 | 2 | [{"id": "G0", "claim": "Removing the machine_int_t cast from the Enum template may break other generated examples, and ctest -R generated_cpp should be used to check that.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "It needs to be confirmed that ... | null |
shogun-toolbox__shogun__4489 | shogun-toolbox/shogun | 4,489 | defect | ad5e089ad0184feb64a0bb42475df9dd34d8435e | 9629e083c934c7f1937c0517c03623f0e4370bf4 | Centralise type definitions | In shogun we redefine types so many it makes sense to start centralising definitions of types. An example is the Google typed tests where we redefine what types to test against.
I also replaced all the current TYPED_TEST_CASE with a SG_TYPED_TEST_CASE macro that does the conversions from shogun to gtest. | diff --git a/src/shogun/lib/sg_types.h b/src/shogun/lib/sg_types.h
new file mode 100644
index 00000000000..6d1cf64f49e
--- /dev/null
+++ b/src/shogun/lib/sg_types.h
@@ -0,0 +1,126 @@
+#include <shogun/lib/any.h>
+#include <type_traits>
+
+using namespace shogun;
+
+namespace shogun
+{
+ // ENUMS
+ enum class EFeatureTy... | 3 | 2 | 0 | [{"id": "G0", "claim": "The base types from src/shogun/base/base_types.h should also be moved into the new sg_types.h.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Some unit tests would be good for the new template helpers in sg_types.h.", "category": ... | null |
shogun-toolbox__shogun__4551 | shogun-toolbox/shogun | 4,551 | defect | d6e4754f2ae0cc3496b65c7e3a75a0e348925eea | 0098b081c343156c0a74276fecf2241304797966 | Use iterative machine mixin in AveragedPerceptron | @shubham808 This PR addresses the project 'inside the black box II' and issue #4488.
I still need to write some unit tests, but I would like to get confirmation that this is the right way, since I'm still new to this project. | diff --git a/examples/meta/src/binary/averaged_perceptron.sg b/examples/meta/src/binary/averaged_perceptron.sg
index a44808d4c55..db83b980221 100644
--- a/examples/meta/src/binary/averaged_perceptron.sg
+++ b/examples/meta/src/binary/averaged_perceptron.sg
@@ -11,7 +11,7 @@ Labels labels_test = labels(f_labels_test)
#... | 15 | 11 | 3 | [{"id": "G0", "claim": "Use a linalg::add variation here instead of the manual loop that accumulates tmp_w.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Put the combined assignment `bias = 0, tmp_bias = 0;` on separate lines.", "category": "maintainabi... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.