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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sgl-project__ome__558 | sgl-project/ome | 558 | defect | 508a1181d88b5ada00495ceb62e047ff747d420b | ebd701440a3b5df0fdc99fd9b8d88cb098e72ca5 | [Misc] Fix staticcheck findings under pkg/ | ## What this PR does
Fix static analysis issues in pkg/
## Why we need it
staticcheck reports multiple issues under pkg/.
Fixes #556
## How to test
make test
## Checklist
- [x] Tests added/updated (if applicable)
- [ ] Docs updated (if applicable)
- [x] `make test` passes locally
| diff --git a/go.mod b/go.mod
index 8e50fd250..548a9fa5e 100644
--- a/go.mod
+++ b/go.mod
@@ -40,7 +40,6 @@ require (
go.uber.org/zap v1.27.0
golang.org/x/oauth2 v0.29.0
golang.org/x/sys v0.39.0
- golang.org/x/term v0.33.0
gomodules.xyz/jsonpatch/v2 v2.4.0
google.golang.org/api v0.231.0
google.golang.org/pro... | 3 | 3 | 1 | [{"id": "G0", "claim": "Keep the unused helper functions (buildS3URI and friends) in pkg/storage/providers/s3/utils.go instead of deleting them, since S3/GCP download support may need them later.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the ... | null |
sgl-project__ome__561 | sgl-project/ome | 561 | defect | df0bfca391af6423be278eb1104b9da31c3be973 | 4cb280c9527d4370a9d404c8ab6c822b53c41a79 | [Misc]Fix static analysis issues | ## What this PR does
- Fix staticcheck warnings across `pkg/`: deprecated APIs, redundant code, style violations
- Delete deprecated `cipher.NewCFBEncrypter/NewCFBDecrypter` with `cipher.NewCTR` in vault utils
- Replace deprecated `io/ioutil` with os package equivalents
- Remove redundant nil check before `len()`... | diff --git a/pkg/hfutil/modelconfig/examples/main.go b/pkg/hfutil/modelconfig/examples/main.go
index 5bc9b885d..0c700930e 100644
--- a/pkg/hfutil/modelconfig/examples/main.go
+++ b/pkg/hfutil/modelconfig/examples/main.go
@@ -3,7 +3,6 @@ package main
import (
"encoding/json"
"fmt"
- "io/ioutil"
"os"
"path/filep... | 2 | 2 | 2 | [{"id": "G0", "claim": "Switching CFBEncrypt/CFBDecrypt from CFB to CTR mode while keeping the CFB names is misleading and will break decryption for any data previously encrypted with the CFB implementation; the functions should be renamed with a migration plan for existing ciphertexts, or CFB/GCM kept if compatibility... | null |
sgtcaze__NametagEdit__611 | sgtcaze/NametagEdit | 611 | defect | a3eb603e260a3e5a1405adf561325c899f6d1e1c | bb5888fded46b2203eada6e4af1dc38c7eefe7df | Fixes for lots of issues | This pull request includes lots of fixes. I've merged [Aurelien30000/NametagEdit](https://github.com/Aurelien30000/NametagEdit) and some commits.
Closes #606, closes #593, closes #589, closes #585, closes #609, closes #607, closes #610 closes #560, closes #577 and closes #517 | diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3be638a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,121 @@
+# Minecraft.gitignore
+# You can download it here: git.io/McIgnore
+# Version: 1.1
+
+# User-specific stuff
+.idea/
+
+*.iml
+*.ipr
+*.iws
+
+# IntelliJ
+out/
+
+# Compiled class file
+*.cl... | 2 | 2 | 2 | [{"id": "G0", "claim": "HEX/RGB color codes don't appear to work on nametags - the code is applied as plain text - so the pull request's reworked hex translation still leaves the feature broken.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "With My... | null |
shadcn-ui__ui__10452 | shadcn-ui/ui | 10,452 | defect | 11cbc3284033182b7e1e632b82e48bdc575d2a0a | 03b94de768b772c3f08e2182f42ab353242d6216 | fix(v4): add missing sera styles to public schema | Adds `radix-sera` and `base-sera` to `apps/v4/public/schema.json` and adds a regression test so the public schema
stays in sync with preset styles. | diff --git a/apps/v4/public/schema.json b/apps/v4/public/schema.json
index 7560477fabc..6c12ae29296 100644
--- a/apps/v4/public/schema.json
+++ b/apps/v4/public/schema.json
@@ -4,7 +4,24 @@
"properties": {
"style": {
"type": "string",
- "enum": ["default", "new-york", "radix-vega", "radix-nova", "ra... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new assertion only verifies the schema enum is a superset of PRESETS and won't fail if schema.json contains stale or extra style values, so it should assert set equality (both directions) to keep the public schema in sync with presets.", "category": "testing", "verdict": "supported", "priori... | null |
shadcn-ui__ui__7557 | shadcn-ui/ui | 7,557 | defect | 854641cea15197612595971acb10f19dc25adf4e | fc02f60412615d16a055b837524b8ee7a90748ee | Fix utils import transform when workspace alias does not start with `@` | The code was assuming the workspace to always start with `@`, this is not always the case
Some snapshots from old tests also got updated with the correct values
Fix https://github.com/shadcn-ui/ui/issues/7348 | diff --git a/packages/shadcn/src/utils/transformers/transform-import.ts b/packages/shadcn/src/utils/transformers/transform-import.ts
index 707b91f36b3..ac7ede65c00 100644
--- a/packages/shadcn/src/utils/transformers/transform-import.ts
+++ b/packages/shadcn/src/utils/transformers/transform-import.ts
@@ -7,8 +7,8 @@ exp... | 1 | 1 | 1 | [{"id": "G0", "claim": "When config.aliases?.utils is undefined or doesn't contain a '/', workspaceAlias will be undefined, leading to utilsImport being 'undefined/lib/utils'; a guard or default value should be added to handle this case.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i... | null |
shader-slang__slang__10033 | shader-slang/slang | 10,033 | defect | 75e0c71197f11009739d614d2b9d607a9dcb1ee9 | 191c02f25786e7833beed0123d46f238b392a9bc | Improve diagnostic testing infrastructure | allow diagnostics with no primary span, and fix that use case for machine readable diagnostics .
on top of https://github.com/shader-slang/slang/pull/10012 and https://github.com/shader-slang/slang/pull/9955 | diff --git a/docs/command-line-slangc-reference.md b/docs/command-line-slangc-reference.md
index 3c2c7ca9c6d..27de304a858 100644
--- a/docs/command-line-slangc-reference.md
+++ b/docs/command-line-slangc-reference.md
@@ -900,6 +900,14 @@ Enable experimental rich diagnostics with enhanced formatting and details
Enable ... | 7 | 3 | 2 | [{"id": "G0", "claim": "Format docs/command-line-slangc-reference.md with Prettier v3+ to meet project style requirements, fixing spacing after markdown anchors and headings.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add language identifiers ... | null |
shader-slang__slang__10035 | shader-slang/slang | 10,035 | defect | 7ffb51d75e7a9668919aabced2b6e65818e37e73 | 645f0c610b25835ef1e1fbcc63784b6a883742b8 | Require colon after prefix in diagnostic annotation tests | The diagnostic annotation system now requires a colon after the prefix
(e.g., //CHECK: instead of //CHECK). This avoids confusion with simple
substring matching where the text after the prefix could be mistaken
as part of the prefix name.
on top of https://github.com/shader-slang/slang/pull/10033
Also a couple... | diff --git a/source/compiler-core/slang-command-line-args.cpp b/source/compiler-core/slang-command-line-args.cpp
index 451ea406c56..fc9ff8acaf1 100644
--- a/source/compiler-core/slang-command-line-args.cpp
+++ b/source/compiler-core/slang-command-line-args.cpp
@@ -41,7 +41,7 @@ void CommandLineArgs::setArgs(const char*... | 6 | 1 | 0 | [{"id": "G0", "claim": "The comment above the args list in SlangCTool::innerMain still says the args list is built with '-diagnostic-color never' prepended, but this PR no longer adds those arguments, so either restore the injection to keep test output deterministic or update/remove the comment and ensure determinism a... | null |
shader-slang__slang__10226 | shader-slang/slang | 10,226 | defect | e3053c3bfc5421f613e89572e3002701a87e209f | a163f87170ec995e80ed264da793c4dece8a4f50 | neural.slang: Add TorchTensorVIewAddress type | Add TorchTensorVIewAddress type to support slang-torch integration. | diff --git a/source/standard-modules/neural/bindless-storage.slang b/source/standard-modules/neural/bindless-storage.slang
index 7d723e5a27b..7423bb12a1c 100644
--- a/source/standard-modules/neural/bindless-storage.slang
+++ b/source/standard-modules/neural/bindless-storage.slang
@@ -193,6 +193,85 @@ public struct Poin... | 10 | 2 | 1 | [{"id": "G0", "claim": "The atomicAdd overloads' capability annotations claim availability on five targets while only a CUDA implementation exists (non-CUDA targets hit static_assert(false), and the vector overload has no [require] at all), so both overloads should use [require(cuda)] and delegate directly like the oth... | null |
shader-slang__slang__10282 | shader-slang/slang | 10,282 | defect | 7621b12efffd641c9676843ecb49b32d1611deaf | 70b4d472eaa1c081b25c438865a99b0d8cd20423 | Add `const` qualifier to `SessionDesc::compilerOptionEntries` | Similar to https://github.com/shader-slang/slang/pull/8824 | diff --git a/docs/user-guide/08-compiling.md b/docs/user-guide/08-compiling.md
index c857a658117..8279b216370 100644
--- a/docs/user-guide/08-compiling.md
+++ b/docs/user-guide/08-compiling.md
@@ -676,7 +676,7 @@ struct SessionDesc
/** Pointer to an array of compiler option entries, whose size is compilerOptionE... | 4 | 3 | 0 | [{"id": "G0", "claim": "The proxy header should use east-const (slang::CompilerOptionEntry const*) instead of west-const for consistency with the other files changed by this PR.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "SessionDesc::compile... | null |
shader-slang__slang__10354 | shader-slang/slang | 10,354 | defect | 55b8d7bef650c2a8320b2080295823295f9bb05d | 44d7242a28c906c5d940044e3d12bad83eb6cf6c | Fix SLANG_ENABLE_ASAN CMake option and ASan-detected errors | Fix the SLANG_ENABLE_ASAN CMake option which was silently not enabling sanitizers due to broken compiler flag detection. Replace the try-all-flags approach with explicit per-compiler handling for Clang (-shared-libsan for dynamic runtime), GCC, and MSVC.
Fix memory errors and undefined behavior detected by ASan:
- ... | diff --git a/cmake/CompilerFlags.cmake b/cmake/CompilerFlags.cmake
index d4d4f12002c..3f1ac36d9a1 100644
--- a/cmake/CompilerFlags.cmake
+++ b/cmake/CompilerFlags.cmake
@@ -214,19 +214,27 @@ function(set_default_compile_options target)
)
if(SLANG_ENABLE_ASAN)
- add_supported_cxx_flags(
- $... | 10 | 8 | 6 | [{"id": "G0", "claim": "The version-incompatible early return creates an artifact with SLANG_TARGET_UNKNOWN and no diagnostics attached, unlike the other error paths, and the reviewer asks to attach an empty diagnostics object or reuse resultArtifact so the returned artifact has a consistent shape.", "category": "corre... | null |
shader-slang__slang__10392 | shader-slang/slang | 10,392 | defect | 343ea8419852214fd4d0d46558e8f08c82943c56 | 882fc5a9eefe5cf6fa9176e78c02e2c02fc6f427 | Fix type conformances not working on binary modules | Fixes #10371
When a module is loaded from a precompiled binary blob, the semantic checker doesn't run, so `addModuleDependency()` is never called for imported modules. This means `getModuleDependencies()` only returns the module itself, not its imports. The reflection API's `findTypeByName` builds a lookup scope fro... | diff --git a/source/slang/slang-session.cpp b/source/slang/slang-session.cpp
index d974bb3913b..fe8b76f6088 100644
--- a/source/slang/slang-session.cpp
+++ b/source/slang/slang-session.cpp
@@ -2141,6 +2141,17 @@ SlangResult Linkage::loadSerializedModuleContents(
module->setPathInfo(moduleFilePathInfo);
module... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should also verify that loading serialized module `a` (which imports `b`, where `b` imports module `c` that defines `IFoo`) allows `IFoo` to be transitively discovered.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shader-slang__slang__10418 | shader-slang/slang | 10,418 | defect | b9f7830f6e02c48b4752dc6ff8c3d2e0917d6986 | ace8d1b43dd1df613673a4836469c9e149f6e59e | Fix SIGPIPE crash in test-server mode and add GPU health checks | Supersedes #10386 (closed due to a zombie GitHub Actions run blocking CI).
## Summary
- **SIGPIPE fix**: Ignore SIGPIPE in `slang-test` and `test-server` on Unix so a crashed test-server returns EPIPE instead of killing the parent process (exit code 141). Reset SIGPIPE to SIG_DFL for child processes via `posix_spawnat... | diff --git a/.github/workflows/ci-slang-test-container.yml b/.github/workflows/ci-slang-test-container.yml
index 8a9f7298a60..50b8ad0a261 100644
--- a/.github/workflows/ci-slang-test-container.yml
+++ b/.github/workflows/ci-slang-test-container.yml
@@ -46,6 +46,15 @@ jobs:
shell: bash
steps:
+ - na... | 8 | 6 | 4 | [{"id": "G0", "claim": "The rerun-on-gpu-failure job watches the Windows GPU jobs, but their workflow (ci-slang-test.yml) has no \"GPU health check\" step, so a faulty Windows GPU VM is never auto-rerun; either add the health check to the Windows reusable workflow or drop the Windows jobs from the detection.", "categor... | null |
shader-slang__slang__10436 | shader-slang/slang | 10,436 | defect | d27b803ae57c7b29d8097dc609edccb34e87c8ab | 8018ed18c6586ddc4ee6f3ee47afd3ac65b7a24e | Fix getLayout() crash on unspecialized generic entry points | Restructure `isUnspecializedGenericDeclRef()` into `isUnspecializedGenericFuncDeclRef()`, which requires the `DeclRef` to be a `FuncDecl` and finds the `GenericDecl` from `parentDecl` once, then checks two cases:
1. No `GenericAppDeclRef`: the generic was never applied (e.g. entry points from `[shader(...)]` created... | diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp
index 1b3b09eb0c5..5616f11814f 100644
--- a/source/slang/slang-lower-to-ir.cpp
+++ b/source/slang/slang-lower-to-ir.cpp
@@ -13723,26 +13723,35 @@ IREntryPointLayout* lowerEntryPointLayout(
return context->irBuilder->getEntryPointL... | 5 | 3 | 1 | [{"id": "G0", "claim": "The specialize(...) call is hard to read on a single very long line; reflow it (or rely on the repo formatting script) to match the wrapping style used in other unit tests and stay within typical line-length limits.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop... | null |
shader-slang__slang__10437 | shader-slang/slang | 10,437 | defect | d3337e35e0c1c7f5a018ebca3dd010b24ef705aa | b538e88249f6fad6aa910dbe208f5719bbe90729 | Add getDeclSourceLocation to ISession for retrieving declaration source locations | Fixes #9941
Add a new API to ISession that resolves a DeclReflection to its source
file path, line, and column via the SourceManager. Uses the standard
SlangResult + out-pointer pattern for ABI safety across compilers.
Includes unit test assertions that verify exact source locations for
both struct and functio... | diff --git a/include/slang.h b/include/slang.h
index 62013a86766..cc114ecacb2 100644
--- a/include/slang.h
+++ b/include/slang.h
@@ -4191,6 +4191,13 @@ enum class ContainerType
ParameterBlock
};
+struct SourceLocation
+{
+ const char* filePath = nullptr;
+ SlangInt line = -1;
+ SlangInt column = -1;
+}... | 12 | 3 | 0 | [{"id": "G0", "claim": "Adding a new pure virtual method to ISession changes the vtable layout, so the SLANG_COM_INTERFACE UUID should be regenerated (and the PR labelled pr: breaking) so consumers can version-detect the interface change.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introdu... | null |
shader-slang__slang__10510 | shader-slang/slang | 10,510 | defect | a055dd280635dd4e878c9192f0d3838157a15d86 | dbff21679fa1a061ca0f759b85eeeafcfad0bc03 | Fix isParameterLocationUsed false for WGSL varying inputs | Aggregate resource usage from field type layouts into the packed struct type layout in packStageInParameters(), so that collectMetadata() can find VaryingInput bindings for WGSL (and Metal) targets.
Add unit test for isParameterLocationUsed with WGSL vertex and fragment varying inputs.
Fixes #9790
Made-with: C... | diff --git a/docs/user-guide/09-reflection.md b/docs/user-guide/09-reflection.md
index 1fc48b3d219..6e49a02f754 100644
--- a/docs/user-guide/09-reflection.md
+++ b/docs/user-guide/09-reflection.md
@@ -1625,6 +1625,16 @@ void printVarLayout(
}
```
+### Target-Specific Limitations
+
+On targets where entry point vary... | 11 | 6 | 3 | [{"id": "G0", "claim": "The new docs headings in 09-reflection.md and a2-03-wgsl-target-specific.md trip the MD003 markdown lint rule (expected setext, actual atx), so the docs check should be kept clean by using the expected heading form or folding the text into body text.", "category": "documentation", "verdict": "un... | null |
shader-slang__slang__10535 | shader-slang/slang | 10,535 | defect | e40b35c3984d0f2b0b890972f927fc3264d3a955 | eb54c76c91a1613056ffae8e97bdf79340910baf | Fix null Val* crash and improve CI GPU failure handling | ## Summary
- Fix null `Val*` crash in `CountOfIntVal` during module serialization (see #10561 for full analysis and other vulnerable code paths)
- Stop scheduling new tests after 32 consecutive failures to avoid running hundreds of tests against a crashed test-server or dead GPU
- Fix zombie process leak: call `waitpid... | diff --git a/.github/workflows/ci-slang-test-container.yml b/.github/workflows/ci-slang-test-container.yml
index 04c7e985934..e075f3ad2b6 100644
--- a/.github/workflows/ci-slang-test-container.yml
+++ b/.github/workflows/ci-slang-test-container.yml
@@ -113,6 +113,19 @@ jobs:
"$bin_dir/slang-test" "${slang_... | 13 | 2 | 2 | [{"id": "G0", "claim": "When the abort flag is set the retry logic below the abort message still runs, so queued failures are retried against a dead GPU; retries should be skipped when aborting.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The GPU... | null |
shader-slang__slang__10597 | shader-slang/slang | 10,597 | defect | 428cd9afc608e8903b1b7300c7621164a5fe86bf | 2bc24f77c6090634031d840834be96533699e1f0 | Fix sanitizer findings: buffer overflows, null pointer UB, and Optional bugs | ## Summary
Fixes real sanitizer findings identified by the new CI sanitizer job (#10573):
* **`StringSlice::getLength()` null guard** (`slang-string.h`): Root cause fix — return 0 when `representation` is null, preventing `end()` from computing `"" + N` which points past the 1-byte literal and triggers ASan global-bu... | diff --git a/source/core/slang-string.h b/source/core/slang-string.h
index 08011743a41..d0125b2f446 100644
--- a/source/core/slang-string.h
+++ b/source/core/slang-string.h
@@ -16,6 +16,17 @@
namespace Slang
{
+
+// Returns a pointer to a shared zero-initialized buffer used as the
+// empty-string fallback. Using a... | 10 | 8 | 1 | [{"id": "G0", "claim": "StringSlice::begin() still has the same bare \"\" fallback pattern the PR fixes elsewhere and should be updated to getEmptyStringBuffer() for consistency and to prevent the same ASan report if that code path is ever exercised.", "category": "correctness", "verdict": "supported", "priority": "P2"... | null |
shader-slang__slang__10621 | shader-slang/slang | 10,621 | defect | 1965f6cd609014005652544903d8cf811d286320 | 87f2c68c28e35f805718913d16d3fb072dd2d019 | Introduce a `slang` dispatcher tool | Note: this PR was authored by Claude (`claude-4.6-opus-high`), but the following description was hand-written.
The `slang` tool provides a convenient way to dispatch out to various tools that are part of the Slang ecosystem, or that we and the community might add over time.
**Subcommands**
When invoked with a ... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 86ba69b15ab..ad8b4b83055 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -583,6 +583,7 @@ add_subdirectory(source/slang-core-module)
add_subdirectory(source/slang-glsl-module)
add_subdirectory(source/slang)
add_subdirectory(source/slangc)
+add_subdirectory(sourc... | 19 | 10 | 7 | [{"id": "G0", "claim": "Add EXPORT_SET_NAME to the slang-dispatcher CMake target so installing the executable does not emit a CMake configuration warning, matching how other installed executables like slangc are declared.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"},... | null |
shader-slang__slang__10653 | shader-slang/slang | 10,653 | defect | fd0ff60aeed04edf0c91d7dcce014acb06b65d08 | f1f6a87f0c0cd51a6479dad3448267c056261a96 | Fix memory leak reports from replay handler static initialization in Debug MSVC builds | Fixes #10624
The replay system's `HandlerRegistrar` struct in `replay-handlers.cpp` registers ~160 handler strings into a `Dictionary<String, PlaybackHandler>` on the `ReplayContext` singleton during static initialization (before `main()` runs). Each `REPLAY_REGISTER` call creates a `String` key that heap-allocates ... | diff --git a/source/slang-record-replay/replay-context.cpp b/source/slang-record-replay/replay-context.cpp
index 7dc46dd3be8..c7c7c0d8dcc 100644
--- a/source/slang-record-replay/replay-context.cpp
+++ b/source/slang-record-replay/replay-context.cpp
@@ -764,6 +764,16 @@ void ReplayContext::registerHandler(const char* si... | 4 | 2 | 2 | [{"id": "G0", "claim": "resetHandlers() uses m_handlers.clear(), which does not release the Dictionary's backing storage, so the handler-table allocations can still be live when _CrtDumpMemoryLeaks() runs and the leak reports this PR set out to eliminate may still fire; swap with an empty dictionary (and document that ... | null |
shader-slang__slang__10661 | shader-slang/slang | 10,661 | defect | eafa2004e7cedcf5c2d3d0da74f881c3c4a8bd97 | 65c9fd3b12655031fc32a10dfb2d105a9137da47 | Fix RHI device cache key and startup device pollution | Fix RHI device cache key and startup device pollution
Remove requiredFeatures from DeviceCacheKey since no RHI backend reads desc.requiredFeatures during device creation; it is only a post-creation validation hint used by render-test itself.
Also prevent startup-check devices from being cached: a cached non-exper... | diff --git a/tools/render-test/slang-test-device-cache.cpp b/tools/render-test/slang-test-device-cache.cpp
index a486ee3f3c2..608a5f6ad31 100644
--- a/tools/render-test/slang-test-device-cache.cpp
+++ b/tools/render-test/slang-test-device-cache.cpp
@@ -31,7 +31,11 @@ bool DeviceCache::DeviceCacheKey::operator==(const D... | 4 | 1 | 1 | [{"id": "G0", "claim": "Fix the formatter failure on the hash-combine return expression, which CI's formatting check already flags for wrong line wrapping.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Deriving dx12ExperimentalFeatures from 'desc.n... | null |
shader-slang__slang__10676 | shader-slang/slang | 10,676 | defect | 1b5d3ec290a3b59c68e02ea61ba6fd90e20988d9 | 69ca4d40b11a0ffe9271bb8edb8a5af0803f07d7 | Add Vulkan gfx-unit-tests to no-GPU expected failure list | Coverage CI runs on GitHub-hosted ubuntu-22.04 runners without a GPU, causing 24 Vulkan gfx-unit-tests to fail consistently. These tests require a Vulkan-capable device and pass in normal CI which uses self-hosted GPU runners. | diff --git a/tests/expected-failure-no-gpu.txt b/tests/expected-failure-no-gpu.txt
index 93c5394f7c2..0fc61f4c62c 100644
--- a/tests/expected-failure-no-gpu.txt
+++ b/tests/expected-failure-no-gpu.txt
@@ -1,6 +1,35 @@
+# RecordReplay tests require a GPU
slang-unit-test-tool/RecordReplay_triangle.internal
slang-unit-t... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `RecordReplay_*` entries in tests/expected-failure-no-gpu.txt do not match the registered unit test IDs, which are `replayRecord_*`, so these entries will not match and Coverage CI will still fail for those tests.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
shader-slang__slang__10792 | shader-slang/slang | 10,792 | defect | 915942b9d02431dd22eb55dbf2009ef42a3ae8d1 | afd269cb0ccf8105d62c5d152cafefe7e6362ac4 | Make backend codegen thread-safe across parallel entry point compiles | ## Summary
- serialize shared lazy state before `linkIR()` so backend optimization and code generation can safely run in parallel
- make intrusive ref counting atomic so concurrent `String` copies and releases are safe during parallel backend emission
- broaden `parallelGenericEntryPointCompile` to stress HLSL, CUDA, S... | diff --git a/source/compiler-core/slang-source-loc.cpp b/source/compiler-core/slang-source-loc.cpp
index e976d7f1c99..0fdd42daa98 100644
--- a/source/compiler-core/slang-source-loc.cpp
+++ b/source/compiler-core/slang-source-loc.cpp
@@ -466,12 +466,15 @@ PathInfo SourceView::getPathInfo(SourceLoc loc, SourceLocType typ... | 25 | 14 | 7 | [{"id": "G0", "claim": "The process-wide `static int32_t uniqueId` is only guarded by the per-Linkage `m_sequentialIDMapMutex`, so concurrent compiles on different Linkage instances can race the increments and produce duplicate generated witness-table mangled names; make it atomic or move it into Linkage.", "category":... | null |
shader-slang__slang__10834 | shader-slang/slang | 10,834 | defect | cfb61464f612fbe31b115291d7f542a432ba65f7 | 029c26a094333bf5adbed807fd7786e40a4af2a4 | Fix replay crash on `getSessionDescDigest` due to null input pointer during playback | The replay dispatch system calls proxy methods with default-initialized arguments via `callWithDefaults`, then each `RECORD_INPUT` macro reads the real values from the recorded stream. For reference parameters (`const T&`), `DefaultValue` provides a `thread_local static T`, which is valid storage. For pointer parameter... | diff --git a/source/slang-record-replay/proxy/proxy-global-session.h b/source/slang-record-replay/proxy/proxy-global-session.h
index 7cac370a4a9..4135a3b2a71 100644
--- a/source/slang-record-replay/proxy/proxy-global-session.h
+++ b/source/slang-record-replay/proxy/proxy-global-session.h
@@ -360,10 +360,9 @@ class Glob... | 9 | 7 | 1 | [{"id": "G0", "claim": "PREPARE_POINTER_INPUT(sessionDesc) runs unconditionally in record mode too, so a real null user input during recording can be silently replaced with a zero-initialized SessionDesc, changing record-time observable behavior versus the non-proxied path; the null substitution should be scoped to rep... | null |
shader-slang__slang__10862 | shader-slang/slang | 10,862 | defect | cfb61464f612fbe31b115291d7f542a432ba65f7 | 71dcffc07eeb51f3f2445e106e6641d1c07a1600 | Fix memory leak when replay system is statically linked but never used | Fixes #10791
PR #10653 added a `ReplayContext::resetHandlers()` call to `slang_shutdown()` so that the handler-string allocations registered on the replay singleton during static initialization get freed before `_CrtDumpMemoryLeaks()` runs in `wmain()`. That fix assumed the replay singleton already existed by the ti... | diff --git a/source/slang-record-replay/replay-context.cpp b/source/slang-record-replay/replay-context.cpp
index 844ee315d22..abb849f788c 100644
--- a/source/slang-record-replay/replay-context.cpp
+++ b/source/slang-record-replay/replay-context.cpp
@@ -123,12 +123,22 @@ DataMismatchException::DataMismatchException(size... | 8 | 4 | 2 | [{"id": "G0", "claim": "s_contextCreated is a plain bool read and written without synchronization while get() is documented as thread-safe, so concurrent get()/tryGet() calls would be a data race (undefined behaviour, stale reads on weakly-ordered architectures); make it std::atomic<bool>.", "category": "correctness", ... | null |
shader-slang__slang__10934 | shader-slang/slang | 10,934 | defect | cb42a1c640d3df24986d8a1b09ffb85971047c5d | 1c1dc9bf5d235092c000c3ff94828d1c70ab3e62 | Fix false positives from _CrtDumpMemoryLeaks in MSVC Debug | Tear down the ReplayContext singleton in slang_shutdown() so its state is freed before the CRT memory dump runs, instead of only resetting handlers on a function-local static that is never destroyed.
For unknown SLANG_TAG_VERSION, format the shared-library timestamp with snprintf into a static char buffer instead of... | diff --git a/source/slang-record-replay/replay-context.cpp b/source/slang-record-replay/replay-context.cpp
index 026aadc1b8c..9e4b36f1884 100644
--- a/source/slang-record-replay/replay-context.cpp
+++ b/source/slang-record-replay/replay-context.cpp
@@ -124,21 +124,20 @@ DataMismatchException::DataMismatchException(size... | 7 | 2 | 2 | [{"id": "G0", "claim": "The PR author asks whether it would make more sense for the singleton-tracking variable to be thread_local instead of guarded by the mutex.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The comment above the singleton pointer sho... | null |
shader-slang__slang__5823 | shader-slang/slang | 5,823 | defect | f0b99141595d47619b63bb5574d34d70f99a5bdf | 5ce37af4726bf907813e340ec970da51dde2adf8 | Fix attribute reflection. | Closes #5811. | diff --git a/include/slang.h b/include/slang.h
index 2dfee6b281c..2ba7150ec15 100644
--- a/include/slang.h
+++ b/include/slang.h
@@ -1776,6 +1776,7 @@ public: \
typedef struct SlangReflectionVariableLayout SlangReflectionVariableLayout;
typedef stru... | 1 | 1 | 1 | [{"id": "G0", "claim": "This change to the reflection API (renaming UserAttribute to Attribute and findUserAttributeByName to findAttributeByName) should be treated as a breaking change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shader-slang__slang__6500 | shader-slang/slang | 6,500 | defect | bca772ca02bbe9c0f1201c7ae177a10ccff84958 | d2bee20bd77ea1a9a10d6786eb3ba41e80e1079e | Support SPIR-V deferred linking option | The new option "SkipDownstreamLinking" will defer final downstream IR linking to the user application. This option only has an effect if there are modules that were precompiled to the target IR using precompileForTarget().
Until now, the default behavior for SPIR-V was to use deferred linking, and the default behavi... | diff --git a/include/slang-gfx.h b/include/slang-gfx.h
index 6f46fed339b..db9dcbacba7 100644
--- a/include/slang-gfx.h
+++ b/include/slang-gfx.h
@@ -163,6 +163,12 @@ class IShaderProgram : public ISlangUnknown
SeparateEntryPointCompilation
};
+ enum class DownstreamLinkMode
+ {
+ None,
+ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "In emitSPIRVForEntryPointsDirectly, use List instead of std::vector for the collected SPIR-V files for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In precompiledModule2TestImplCommon, use List instead of s... | null |
shader-slang__slang__7797 | shader-slang/slang | 7,797 | defect | 73f9aeb838bfaeaeae2c46d94000a4f98da47cea | ad03db642e165c16aa1b33538700010ba1c21e1d | Merge NamePool and RootNamePool into a single type | This PR eliminates the artificial split between `NamePool` and `RootNamePool` types by merging them into a single `NamePool` class, significantly simplifying the name management system.
## Background
The original design had two separate types:
- `RootNamePool`: Contained the actual storage (`Dictionary<String, RefPtr... | diff --git a/source/compiler-core/slang-doc-extractor.cpp b/source/compiler-core/slang-doc-extractor.cpp
index f2f4775fada..0a5c1355dd9 100644
--- a/source/compiler-core/slang-doc-extractor.cpp
+++ b/source/compiler-core/slang-doc-extractor.cpp
@@ -885,9 +885,7 @@ SlangResult DocMarkupExtractor::extract(
Mem... | 4 | 4 | 1 | [{"id": "G0", "claim": "The `namePool` member variable of `Linkage` should be initialized to `nullptr`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The '// Initialize name pool' and '// Note: name pool is now self-contained' comments in Session::... | null |
shader-slang__slang__7827 | shader-slang/slang | 7,827 | defect | c901338e3b443be4c72308f4f473892404b73268 | 878547a6d35f72762cea6f2025a98f5b07f2f5ef | Fix findFunctionByNameInType to preserve functions with different signatures | ## Problem
After PR #7402, `findFunctionByNameInType` was only returning one function when multiple functions existed with the same name but different signatures. This broke reflection functionality for extension methods.
Consider this scenario:
```slang
public interface IModel<T:IDifferentiable>
{
public T forwa... | diff --git a/source/slang/slang-check-overload.cpp b/source/slang/slang-check-overload.cpp
index 52b0ef5bc03..ec07fc79315 100644
--- a/source/slang/slang-check-overload.cpp
+++ b/source/slang/slang-check-overload.cpp
@@ -1367,9 +1367,59 @@ int SemanticsVisitor::CompareLookupResultItems(
}
// If one of the c... | 5 | 5 | 4 | [{"id": "G0", "claim": "The right fix is not to modify CompareLookupResultItems but to modify findDeclFromStringInType so it does not call maybeResolveOverloadedExpr when checkedTerm is an overload of functions, while still calling it when any candidate in the overloaded list is not a DeclRefExpr referencing a function... | null |
shader-slang__slang__8113 | shader-slang/slang | 8,113 | defect | 7cd8130e1a3dbcca8746e0577fb8df3bf2975bf8 | cb4ddb18d68b730c0db286828cf2c34b8d2d41e7 | Fix FunctionReflection getName() returning null for overloaded functions | When using Slang reflection API to find functions by name in a type, `FunctionReflection::getName()` would return `nullptr` for overloaded functions instead of the expected function name.
The issue occurred in `spReflectionFunction_GetName` when `findFunctionByNameInType` returned a `SlangReflectionFunction` wrapping ... | diff --git a/source/slang/slang-reflection-api.cpp b/source/slang/slang-reflection-api.cpp
index 95dcc624974..00fba76eec1 100644
--- a/source/slang/slang-reflection-api.cpp
+++ b/source/slang/slang-reflection-api.cpp
@@ -3472,7 +3472,20 @@ SLANG_API char const* spReflectionFunction_GetName(SlangReflectionFunction* inFu... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request should not add a new test file (unit-test-find-function-by-name-in-type-overloaded.cpp) but instead amend the existing unit-test-function-lookup-resolution.cpp with a SLANG_CHECK() to call getName on func1.", "category": "design", "verdict": "supported", "priority": "P2", "scope... | null |
shader-slang__slang__8775 | shader-slang/slang | 8,775 | defect | fbe741a8a4ef3f42ab1861768e36dd4a80e50f70 | 71caa5b52dba9a71275d9c57acb780bb69ac9a60 | Fix ignored test count when retried | Fix counting failed test as ignored when it is retried
Fixes #7681
Do not add test result at the end of the test if the test failed
and is deferred for re-run.
In `TestReporter::_addResult()` update the test counters only if the current test results are valid. This prevents
errors in ignored and total test c... | diff --git a/tools/slang-test/test-reporter.cpp b/tools/slang-test/test-reporter.cpp
index 00f570b6c9d..fe1d711d00c 100644
--- a/tools/slang-test/test-reporter.cpp
+++ b/tools/slang-test/test-reporter.cpp
@@ -145,7 +145,12 @@ void TestReporter::endTest()
m_currentInfo.message = m_currentMessage;
- _addResul... | 2 | 1 | 1 | [{"id": "G0", "claim": "Deciding in endTest() whether to add the result based on the count of results (m_numCurrentResults > 0) does not work: the reviewer still sees a deliberately failing, retried test reported as \"1 tests ignored\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
shader-slang__slang__8814 | shader-slang/slang | 8,814 | defect | 1f888a3672446c49389bc0809f6e60c47127e46d | b5d8cdef513448d06b9c23fcb5205306dc25cbcc | Add descriptor handle support to render test framework | Fixes #8631
Implements automatic detection and binding of descriptor handle types (.Handle) in the slang-test framework, enabling execution tests for bindless descriptor features.
Changes:
- Add isDescriptorHandleType() to detect .Handle types via reflection
- Modify assignBuffer/Texture/Sampler to allocate a... | diff --git a/tests/language-feature/descriptor-handle/desc-handle-debug.slang b/tests/language-feature/descriptor-handle/desc-handle-debug.slang
new file mode 100644
index 00000000000..8fce00bc412
--- /dev/null
+++ b/tests/language-feature/descriptor-handle/desc-handle-debug.slang
@@ -0,0 +1,19 @@
+//TEST(compute):COMP... | 2 | 2 | 1 | [{"id": "G0", "claim": "isDescriptorHandleType should also check for uint64, which is used for descriptor handles when spvBindlessTextureNV is enabled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reflection API should be changed so that type-... | null |
shader-slang__slang__8940 | shader-slang/slang | 8,940 | defect | 486a16812e7ddd7c0f328eb4d78a562c0971171e | 278e186ba614f7a9391ec06d52da3ee7a00fe8d3 | Validate -render-features in render-test | # Main Changes
Add validation for `-render-feature` and `-render-features` flags against `SLANG_RHI_FEATURES`. Invalid feature names now fail immediately during option parsing with clear error messages.
**Implementation:**
* Add `isValidFeatureName()` helper function using `SLANG_RHI_FEATURES` macro
* Add wor... | diff --git a/tests/cooperative-matrix/load-store-tensorlayout.slang b/tests/cooperative-matrix/load-store-tensorlayout.slang
index d20e08a829e..d9b43fcfb7b 100644
--- a/tests/cooperative-matrix/load-store-tensorlayout.slang
+++ b/tests/cooperative-matrix/load-store-tensorlayout.slang
@@ -1,11 +1,13 @@
//TEST(compute):... | 1 | 1 | 1 | [{"id": "G0", "claim": "The cooperative-matrix tests disabled with //DISABLE_TEST markers in S1 should be re-enabled rather than disabled, and where the element type does not matter for what is being tested the tests should use float16 instead of int32.", "category": "testing", "verdict": "supported", "priority": "P1",... | null |
shader-slang__slang__9052 | shader-slang/slang | 9,052 | defect | 020552abd44a5814d2bc5820a699540f3de172d1 | 65901cee5b762b322cc825441608d6d7a68173ae | Fix generic function overloads in reflection API | Close #8633.
When calling `findFunctionByName<someGeneric<concrete_type>>` to find a generic function, it will report nullptr if there are overloads for the generic function.
The reason is that we didn't handle OverloadedExpr2 node in the reflection API.
The fix is to conservatively convert OverloadedExpr2 to ... | diff --git a/source/slang/slang-linkable.cpp b/source/slang/slang-linkable.cpp
index 7a307cbc3a6..4a36ac84d32 100644
--- a/source/slang/slang-linkable.cpp
+++ b/source/slang/slang-linkable.cpp
@@ -813,6 +813,54 @@ Expr* ComponentType::tryResolveOverloadedExpr(Expr* exprIn)
return visitor.maybeResolveOverloadedExpr... | 3 | 3 | 0 | [{"id": "G0", "claim": "The conversion function should carry a more detailed comment explaining the problem it solves, how the OverloadedExpr and OverloadedExpr2 representations differ, the conversion strategy, and how it handles and reports failure (returning nullptr).", "category": "documentation", "verdict": "suppor... | null |
shader-slang__slang__9066 | shader-slang/slang | 9,066 | defect | ce376e1ef48781ae27b09f983f798b1b8d1988ca | 2a3f8e1385c92483c3758ff46ffbc275924e5970 | Add diagnostic logging for slang-test debugging | Add diagnostic logging for slang-test debugging. Includes timing summary reporting for test execution analysis.
The logging is controlled by `SLANG_TEST_DIAGNOSTICS` environment variable.
**Usage:**
```
SLANG_TEST_DIAGNOSTICS=timing # Test execution timing + summary
SLANG_TEST_DIAGNOSTICS=timing-phases # Detai... | diff --git a/source/core/slang-http.cpp b/source/core/slang-http.cpp
index ec1ccc0a24c..bb3106a01ed 100644
--- a/source/core/slang-http.cpp
+++ b/source/core/slang-http.cpp
@@ -3,6 +3,15 @@
#include "slang-process.h"
#include "slang-string-util.h"
+#include <chrono>
+#include <stdio.h>
+#include <stdlib.h>
+
+#ifnd... | 1 | 1 | 1 | [{"id": "G0", "claim": "On Windows, the buffer allocated by _dupenv_s() in isDiagnosticEnabled() is returned without ever being freed, leaking memory as the docs say the caller must free it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shader-slang__slang__9260 | shader-slang/slang | 9,260 | defect | eff0c0e423c6e66d4c34478c809aa541efc22fed | 1750cb7c87712db983f1ae0f1d02ab248518af5d | Validate semantic usage for stages, add diagnostic | Fixes #8939
Closes #4961
Closes #411
Also for #6428
This adds a new `semantic` decl to the Slang Core Module, and uses it for validating the usage of `SV_` system value semantics as shader entry points and return types.
A `semantic` contains a `get` and/or `set` accessor to indicate usable directions, and `[... | diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang
index 09dcefb2844..4da177f7657 100644
--- a/source/slang/core.meta.slang
+++ b/source/slang/core.meta.slang
@@ -4468,3 +4468,248 @@ typealias NodePayloadPtr = Ptr<T, Access::ReadWrite, (AddressSpace)$((uint64_t)A
__attributeTarget(StructDecl)
at... | 4 | 3 | 1 | [{"id": "G0", "claim": "These error tests (and all the other cases like them) should check that the error is reported on the specific line, using filecheck's LINE directive, so errors are not matched from elsewhere in the diagnostics output.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "i... | null |
shader-slang__slang__9853 | shader-slang/slang | 9,853 | defect | a24c5a5e77c08e5a7d369467024a4bfa2ad920bc | 363274068da283f35d30098a917b5eca54461a23 | Add diagnostic annotation system to slang-test | Closes https://github.com/shader-slang/slang/issues/9666
Adds support for testing compiler diagnostics using inline annotations in
test files. This allows tests to verify that diagnostics appear at specific
line/column positions with expected messages.
allows:
- Position-based annotations using ^ mar... | diff --git a/include/slang.h b/include/slang.h
index 726d97df32e..7609e6b0edd 100644
--- a/include/slang.h
+++ b/include/slang.h
@@ -1108,6 +1108,9 @@ typedef uint32_t SlangSizeT;
ReportDynamicDispatchSites, // bool
+ EnableMachineReadableDiagnostics, // bool, enable machine-readable diagnostic outp... | 9 | 2 | 1 | [{"id": "G0", "claim": "The machine-readable renderer zero-pads String(diag.code) unconditionally, so negative or sentinel codes serialize as odd codes like E00-1; the reviewer asks to special-case non-positive codes so they serialize predictably and don't confuse parsing.", "category": "correctness", "verdict": "uncer... | null |
shader-slang__slang__9869 | shader-slang/slang | 9,869 | defect | a920ad90f9594d512acc1045bff6eb96cf3154d9 | 7fffa762baf0424b4a295773c8976d061f7a33d4 | Don't rewrite entrypoint `in` to `borrow` during ir lowering. | If the user compile a shader via `findAndCheckEntrypoint` API on a function that does not have a `[shader()]` attribute, we could be generating invalid spirv code.
There is logic in lower-to-ir that silently changes the parameter passing convention of entrypoint in to borrow in, which is fundamentally conflicting wi... | diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp
index cff15bc5525..2cb7eda0551 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -746,6 +746,8 @@ Result linkAndOptimizeIR(
if (!isKhronosTarget(targetRequest) && requiredLoweringPassSet.glslSSBO)
SLANG_PASS... | 5 | 4 | 3 | [{"id": "G0", "claim": "The new test hardcodes the Windows-specific path \"d:\\\\test\\\\valve-dbg.hlsl\", so it will fail on non-Windows systems and for anyone without that file; the test should load an inline shader source instead of reading an external file.", "category": "testing", "verdict": "supported", "priority... | null |
shader-slang__slang__9892 | shader-slang/slang | 9,892 | defect | adddb6b6f1d9b95e4da156360fbd79d2498206c4 | 36b17c6044d92db505d97bcfdbfd8454b177756e | Cut slang build time in half with precompiled headers | This cuts Slang's clean build time by over 50% by turning slang-basic.h and slang-compiler.h into precompiled headers. This means the C++ compiler parses the headers only once and reuses the parsed form for every other C++ file. This is good because 50%+ of Slang's build time was spent on parsing these headers redundan... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index f83045c021c..fd69790c8fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -129,6 +129,8 @@ option(SLANG_ENABLE_FULL_IR_VALIDATION "Enable full IR validation (SLOW!)")
option(SLANG_ENABLE_IR_BREAK_ALLOC "Enable _debugUID on IR allocation")
option(SLANG_ENABLE_ASAN ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The additional warnings caused by including the precompiled headers into targets that have a higher warning level need to be fixed — ideally by replacing enough of the offending calls (e.g. fopen) rather than disabling warnings.", "category": "correctness", "verdict": "supported", "priority": "P... | null |
shader-slang__slang__9947 | shader-slang/slang | 9,947 | defect | eaa54ed384190ba720fb273c294f062ce20d12f0 | 51d2e2d3a670d12b58d9e5aa80a1eb20a7a5f409 | Improve diagnostic output and testing |
Machine-readable diagnostics now output all span messages:
- Primary span message is output as a separate line with severity "span"
- Secondary spans use "span" severity (was "secondary")
- Note secondary spans use "note-span" severity (was "note-secondary")
This allows test annotations to verify sp... | diff --git a/.stylua.toml b/.stylua.toml
new file mode 100644
index 00000000000..80c17fe3b0d
--- /dev/null
+++ b/.stylua.toml
@@ -0,0 +1,3 @@
+indent_type = "Spaces"
+indent_width = 4
+call_parentheses = "NoSingleTable"
diff --git a/source/compiler-core/slang-rich-diagnostics-render.cpp b/source/compiler-core/slang-ric... | 4 | 3 | 2 | [{"id": "G0", "claim": "renderDiagnosticMachineReadable() should not unconditionally emit a TSV row for the primary span message: for legacy-path diagnostics primarySpan.message is \"\", so every legacy diagnostic would get an extra empty machine-readable row, breaking exhaustive DIAGNOSTIC_TEST annotations and adding ... | null |
shader-slang__slang__9955 | shader-slang/slang | 9,955 | defect | eaa54ed384190ba720fb273c294f062ce20d12f0 | 1651cb9e00b55b2854bf815ae5d31ad23bd04e89 | Add -diagnostic-color auto/never/always | depends on https://github.com/shader-slang/slang/pull/9947
auto depends on isatty
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Added `-diagnostic-color` command-line option with values: `always`, `never`, and `auto` to control diagnosti... | diff --git a/.stylua.toml b/.stylua.toml
new file mode 100644
index 00000000000..80c17fe3b0d
--- /dev/null
+++ b/.stylua.toml
@@ -0,0 +1,3 @@
+indent_type = "Spaces"
+indent_width = 4
+call_parentheses = "NoSingleTable"
diff --git a/include/slang.h b/include/slang.h
index 7609e6b0edd..8532d2801bc 100644
--- a/include/s... | 5 | 3 | 2 | [{"id": "G0", "claim": "In SLANG_DIAGNOSTIC_COLOR_AUTO mode the code uses FileWriter::isFileConsole(stderr), which can enable ANSI color codes even when diagnostics are captured to a non-console DiagnosticSink (writer == nullptr, output to a blob), so programmatic consumers get escape sequences unexpectedly; it asks to... | null |
shader-slang__slangpy__525 | shader-slang/slangpy | 525 | defect | b53036dfd40e7572d3fdce53946d53f1c0bfefe0 | d5621c6e934fd1709d5fe915f3d8859cf0da1789 | Add 2d matrix ops | - Added some new matrix functions for 2d transforms
- Also made 3d scale/translate construction a bit more efficient | diff --git a/src/sgl/math/matrix_math.h b/src/sgl/math/matrix_math.h
index ffe6ee933..5ecc53ffb 100644
--- a/src/sgl/math/matrix_math.h
+++ b/src/sgl/math/matrix_math.h
@@ -107,6 +107,15 @@ matrix<T, 4, 4> translate(const matrix<T, 4, 4>& m, const vector<T, 3>& v)
return result;
}
+/// Apply a 2D translation to... | 3 | 2 | 2 | [{"id": "G0", "claim": "Prefer restructuring rotate_2d to build the rotation with matrix_from_rotate_2d and multiply, so the matrix logic exists in exactly one place, even at possible slight efficiency cost.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
shader-slang__slangpy__651 | shader-slang/slangpy | 651 | defect | dbcfc06a1f017d87b3ff3d04139c6f3cb8db8260 | bea44680d4a4d4220921738bb6ff6925141efa79 | Added support for assigning objects with to_cursor to cursor objects | We now allow assigning objects to cursors (buffer and shader), if those objects support this interface:
```
template<typename TCursor>
void to_cursor(TCursor& cursor) const
```
When such objects are assigned to a cursor (using `set` or `operator=`) we do not call the generic element-wise `set`, but instead cal... | diff --git a/src/sgl/device/buffer_cursor.h b/src/sgl/device/buffer_cursor.h
index 984b1a731..b292b4c9b 100644
--- a/src/sgl/device/buffer_cursor.h
+++ b/src/sgl/device/buffer_cursor.h
@@ -70,6 +70,14 @@ class SGL_API BufferElementCursor : public CursorWriteWrappers<BufferElementCurs
void get(T& value) const;
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new method name `to_cursor` is confusing (it implies converting the object it is called on into a cursor), and should be renamed to something like `write_to_cursor` or `bind_to_cursor`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shader-slang__slangpy__789 | shader-slang/slangpy | 789 | defect | a5688c0b87b4bfb056a4f2e45fe674d8db4f1170 | 2dbc32231b97eb24c3ca3b102316e54ce39406c8 | reinterpret cursor | Adds a way to reinterpret a BufferElementCursor object. This can be helpful for situations like writing a uint64 as two uint32 or when writing implementation data of dynamic interfaces within a struct.
```slang
public struct ConformanceWrapper<T> {
uint _;
uint __;
uint id;
uint ___;
T data... | diff --git a/src/sgl/device/buffer_cursor.cpp b/src/sgl/device/buffer_cursor.cpp
index 1aa96ad83..16650ddf5 100644
--- a/src/sgl/device/buffer_cursor.cpp
+++ b/src/sgl/device/buffer_cursor.cpp
@@ -21,6 +21,14 @@ BufferElementCursor::BufferElementCursor(ref<const TypeLayoutReflection> layout,
{
}
+BufferElementCurso... | 8 | 5 | 2 | [{"id": "G0", "claim": "The reviewer asks why the reinterpret binding is a lambda rather than a simple binding of the function address.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new reinterpret function needs tests.", "category": "testing", "verdi... | null |
shadps4-emu__shadPS4__4170 | shadps4-emu/shadPS4 | 4,170 | defect | bb9c223d42ed4ba5e6a1fb7cfb2fe97a27eaaefb | 9569b859e5d6b239c65fb4b59cc592015222bdb4 | Introducing testing suite using google test | Currently some tests for new emulator_settings class | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 26c8e20fd2e..96f5e33d797 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,6 +14,8 @@ on:
- "documents/**"
- "**/*.md"
+ workflow_dispatch:
+
concurrency:
group: ci-${{ github.event_name }}-... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new tests must not use Microsoft_Case (underscore-separated) test names.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests/ folder should be covered by the clang-format formatter tool.", "category": "maintainab... | null |
shahradelahi__storage-box__64 | shahradelahi/storage-box | 64 | defect | c34023ae91b5dce97f72d0fcbb77b3d59b1a34ec | 7fb43a2c9a02b7d6be0fe01ed94c8936cbb16f7f | test: added testing for the exit handlers | I know.
It's not perfect.
It's far from perfect.
But this feature should be testable too. | diff --git a/package.json b/package.json
index c485f7b..7f3a4b6 100644
--- a/package.json
+++ b/package.json
@@ -51,6 +51,7 @@
"dependencies": {
"@msgpack/msgpack": "3.0.0-beta2",
"debounce": "^2.1.0",
+ "sinon": "^19.0.2",
"type-fest": "^4.26.0"
},
"devDependencies": {
@@ -60,6 +61,7 @@
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The testing module sinon should be installed as a devDependency rather than a regular dependency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shaka-project__shaka-packager__1015 | shaka-project/shaka-packager | 1,015 | defect | 3fd538a587184a87e2b41a526e089247007aa526 | 9d7606c998d56d76dbd675ff371caca2fd530b90 | fix: Parse one frame mpeg-ts video | Closes #1013 | diff --git a/packager/media/codecs/h264_parser.cc b/packager/media/codecs/h264_parser.cc
index bd2189cd61d..dcbcf330607 100644
--- a/packager/media/codecs/h264_parser.cc
+++ b/packager/media/codecs/h264_parser.cc
@@ -112,6 +112,17 @@ bool H264SliceHeader::IsSISlice() const {
} ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The h264 READ_LONG_OR_RETURN macro could be simplified into a single 32-bit ReadBits call instead of two 16-bit reads.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The h265 READ_LONG macro should likewise be simplified ... | null |
shaka-project__shaka-packager__1116 | shaka-project/shaka-packager | 1,116 | defect | 98e5027fbc3cd999cfe39b20e32fbfc04f1175ae | 9c21c8548cae9a8533d72fcd123971d967a9c925 | feat: port media/test | Rewrite test_data_util.cc to locate files relative to the source file itself, rather than using a service from chromium `base::`.
Issue #1047 (CMake porting)
Issue #346 (absl porting) | diff --git a/packager/CMakeLists.txt b/packager/CMakeLists.txt
index aa0d41bb707..e1ddee76286 100644
--- a/packager/CMakeLists.txt
+++ b/packager/CMakeLists.txt
@@ -41,6 +41,7 @@ endif()
# Subdirectories with their own CMakeLists.txt, all of whose targets are built.
add_subdirectory(file)
add_subdirectory(kv_pairs)
... | 3 | 2 | 0 | [{"id": "G0", "claim": "The copyright header says 'Google Inc.' while other files use 'Google LLC', and the naming should be made consistent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Consider using errno and/or perror for the fopen failure... | null |
shaka-project__shaka-packager__1119 | shaka-project/shaka-packager | 1,119 | defect | c3a4951597f00b51e4feaa7b04c816c8c6220074 | 4dc02771ee24c39ad6176c51f4f5b75f5ac80631 | feat: Port AES and RSA crypto to mbedtls | mbedtls works very differently from BoringSSL, and many changes had to be made in the details of AES decryption to accomodate this.
Beyond the basic changes required for mbedtls, part of the CTS padding implementation had to be rewritten. I believe this is because of an assumption that held for BoringSSL, but not f... | diff --git a/packager/macros.h b/packager/macros.h
index 0127d34bae1..6872efb2ce8 100644
--- a/packager/macros.h
+++ b/packager/macros.h
@@ -32,4 +32,7 @@
/// You can use the insertion operator to add specific logs to this.
#define NOTIMPLEMENTED() LOG(ERROR) << "NOTIMPLEMENTED: "
+/// AES block size in bytes, rega... | 6 | 4 | 2 | [{"id": "G0", "claim": "mbedtls_rsa_rsassa_pss_sign_ext does not hash the original message to generate the message digest, so the new signature code, which passes the raw message with MBEDTLS_MD_NONE, must hash the message explicitly outside mbedtls, as the original implementation did.", "category": "correctness", "ver... | null |
shaka-project__shaka-packager__1127 | shaka-project/shaka-packager | 1,127 | defect | 7b33f2065f5769e9132239c41c7701b1295cff3e | 38eee639b46aff28cf0e32811122169154661e15 | feat: port media/base | This removes all chromium dependencies from media/base/ and completes the build system in CMake.
The ClosureThread class and its classes were removed, as they were specific to chromium base. ClosureThread has been replaced by std::thread.
The byte-swapping utilities in network_util.cc have been removed and repla... | diff --git a/packager/CMakeLists.txt b/packager/CMakeLists.txt
index f90b641ef65..5f36ce4e2a9 100644
--- a/packager/CMakeLists.txt
+++ b/packager/CMakeLists.txt
@@ -48,4 +48,5 @@ add_subdirectory(media)
add_subdirectory(status)
add_subdirectory(third_party)
add_subdirectory(tools)
+add_subdirectory(utils)
add_subdi... | 3 | 1 | 1 | [{"id": "G0", "claim": "Now that the format-name comparison no longer uses the custom base::EqualsCaseInsensitiveASCII helper, DetermineContainerFromFormatName's chain of case-insensitive comparisons could be a switch statement.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"i... | null |
shaka-project__shaka-packager__1205 | shaka-project/shaka-packager | 1,205 | defect | d5ca6e84e6ccd543dc9a79ccc8d07b702010f491 | dd1d8166948f4c9542e276100d5d3d684c85a40f | feat: Generate the entire AV1 codec string when the colr atom is present | As per the AV1 spec, the codec string may contain optional color values. These color values are critical for detecting HDR video streams - see [Issue 1007](https://github.com/shaka-project/shaka-packager/issues/1007) and [Issue 1202](https://github.com/shaka-project/shaka-packager/issues/1202). This PR extracts the mis... | diff --git a/packager/media/base/fourccs.h b/packager/media/base/fourccs.h
index 8be50c1b6bf..cf5f86521f8 100644
--- a/packager/media/base/fourccs.h
+++ b/packager/media/base/fourccs.h
@@ -35,6 +35,7 @@ enum FourCC : uint32_t {
FOURCC_cbcs = 0x63626373,
FOURCC_cenc = 0x63656e63,
FOURCC_cens = 0x63656e73,
+ FO... | 3 | 2 | 1 | [{"id": "G0", "claim": "transfer_characteristics should be set to entry.colr.transfer_characteristics after this line, because it is used to create VideoStreamInfo on line 720, with which the MediaInfo that MediaPlaylist::GetVideoRange() uses to add the VIDEO-RANGE tag is created.", "category": "correctness", "verdict"... | null |
shaka-project__shaka-packager__1221 | shaka-project/shaka-packager | 1,221 | defect | bf6296c4637177f399fec362b5046bc18451141e | 387fe4344236786f6fd4b8dcd0f906c42095909b | feat: Cmake port of Media crypto | Rebasing #1148 on top of current cmake branch
Related to #1047 | diff --git a/packager/media/CMakeLists.txt b/packager/media/CMakeLists.txt
index 587051732f7..bf0beb72598 100644
--- a/packager/media/CMakeLists.txt
+++ b/packager/media/CMakeLists.txt
@@ -7,6 +7,7 @@
# Subdirectories with their own CMakeLists.txt, all of whose targets are built.
add_subdirectory(base)
add_subdirect... | 10 | 10 | 3 | [{"id": "G0", "claim": "The pull request's changes contain linter (clang-format) errors that should be fixed before the review proceeds.", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new log message misspells \"temporary\" as \"teporary\".", "categor... | null |
shaka-project__shaka-packager__1269 | shaka-project/shaka-packager | 1,269 | defect | 8b87804c57c158ab5f66e8de522fb0cca852a444 | 325eecd868674158bb4a13f1e3b1260751b8810c | feat: add install target for cmake | this adds an install target which will install binaries, libraries, pkg-config and headers.
For example to customize the install prefix
```
cmake .. -G Ninja -DINSTALL_GTEST=OFF -DCMAKE_INSTALL_PREFIX=/opt/shaka
```
then running
```
cmake --install .
```
will do the following
```
-- Installing: /... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 412f911b93a..eec66894624 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,7 @@ include("packager/policies.cmake")
# Project name. May not contain spaces. Versioning is managed elsewhere.
project(shaka-packager VERSION "")
+include(GNUInstallDirs)
... | 4 | 4 | 4 | [{"id": "G0", "claim": "Installed headers should go into $PREFIX/include/packager/ rather than straight into the include root, where simple names like file.h could conflict with other software.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "An automated ... | null |
shaka-project__shaka-packager__1384 | shaka-project/shaka-packager | 1,384 | defect | ceeb378a85672a357ac112f6f6682e8ba2ad8bc7 | a957764797103e63640131568141c4e152f5b4a2 | feat: teletext formatting | This PR adds parsing of teletext styling, and rendering of the styling in output TTML and WebVTT subtitle tracks.
It is split into three commits, one for parsing teletext, one for TTML (stpp) generation and a third for WebVTT (wvtt) generation.
Beyond unit tests, I've used the sample https://drive.google.com/file... | diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index d7757949bb2..9ba03ca1b7e 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -54,6 +54,7 @@ Sanil Raut <sr1990003@gmail.com>
Sergio Ammirata <sergio@ammirata.net>
Thomas Inskip <tinskip@google.com>
Tim Lansen <tim.lansen@gmail.com>
+Torbjörn Einarsson <torbjorn.einarsson@ey... | 4 | 4 | 4 | [{"id": "G0", "claim": "The bad-teletext-data-length case should still be logged (perhaps as a WARNING) instead of having the ERROR log commented out.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The existing TTML integration tests are failing and... | null |
shaka-project__shaka-packager__639 | shaka-project/shaka-packager | 639 | defect | faa9a3ea68bf31c5a6e28380457405624e9e08a8 | ba394f6e92f4a011a8fed3b0b2beec807b46dbb0 | Reduce copying ADTS header | ### This PR will ...
This PR will use copied ADTS header.
### Why is this Pull Request needed ?
This PR is needed to reduce unnecessary copying ADTS header. | diff --git a/packager/media/codecs/aac_audio_specific_config.cc b/packager/media/codecs/aac_audio_specific_config.cc
index 572778f84a0..96ea403929d 100644
--- a/packager/media/codecs/aac_audio_specific_config.cc
+++ b/packager/media/codecs/aac_audio_specific_config.cc
@@ -137,27 +137,28 @@ bool AACAudioSpecificConfig::... | 7 | 7 | 2 | [{"id": "G0", "claim": "Use audio_frame.resize(kADTSHeaderSize) instead of inserting kADTSHeaderSize zeros, because inserting appends after any existing content and causes problems if the input audio_frame is not empty.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"... | null |
shaka-project__shaka-packager__679 | shaka-project/shaka-packager | 679 | defect | 1bcaf0a8355022fbfab431462666d396b4d119de | b0db8781ce09a926aaf27cb8fe1149050e771e79 | Generate correct PlayReady PSSH data when AES-CBC encryption is used | This PR fixes the issue #602. When CBC encryption is used, the PlayReady header version 4.3.0.0 must be used. Otherwise, it can be 4.0.0.0, because headers with multiple CTR keys are not supported anyway.
The playback works as expected.
I also changed the version of the PSSH box from 1 to 0, because there is no g... | diff --git a/packager/media/base/key_source.cc b/packager/media/base/key_source.cc
index 8972394c637..5d15f814c49 100644
--- a/packager/media/base/key_source.cc
+++ b/packager/media/base/key_source.cc
@@ -22,7 +22,7 @@ KeySource::KeySource(int protection_systems_flags, FourCC protection_scheme) {
}
if (protecti... | 3 | 3 | 1 | [{"id": "G0", "claim": "Construct PlayReadyPsshGenerator in the GeneratePlayReadyPsshFromKeyIds test with a valid fourcc instead of FOURCC_NULL so the test focuses on testing multiple key_ids.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Run git clang... | null |
shaka-project__shaka-packager__713 | shaka-project/shaka-packager | 713 | defect | ce932f68a2e45e9a85a8e9c3d6f50675682c6fdf | 60360e6b9df340a8d125d1794ae196d9948115f5 | Support signalling of last segment number. | Hi,
I have added a feature as per 4.4.3.6. Signalling the last segment number in Period:
To indicate last segment number, add a Supplemental Descriptor with @schemeIdUri set to http://dashif.org/guidelines/last-segment-number with the @value set to the last segment number.
Example command :
```
packager \
'... | diff --git a/packager/app/mpd_flags.cc b/packager/app/mpd_flags.cc
index 9ee52d3a9db..7f3bd136c13 100644
--- a/packager/app/mpd_flags.cc
+++ b/packager/app/mpd_flags.cc
@@ -62,3 +62,10 @@ DEFINE_bool(
"completely."
"Ignored if $Time$ is used in segment template, since $Time$ requires "
"accurate Segment ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The external --last_segment_number flag should be dropped in favour of a boolean flag (suggested name --dash_add_last_segment_number_when_needed) that makes packager calculate the last segment number itself and emit the supplemental property only when a constant-duration SegmentTimeline is gener... | null |
shaka-project__shaka-packager__736 | shaka-project/shaka-packager | 736 | defect | 9a3ea747a40991c1cfb85bd163693270fb7d41d5 | 30b4066d1e3df0f7b1971ec9dc8a7db454e06d80 | [DASH] Support TrickPlay using separate trick play specific streams | This PR is related to https://github.com/google/shaka-packager/issues/732 | diff --git a/packager/mpd/base/period.cc b/packager/mpd/base/period.cc
index 9de689dadb3..abf4b945d05 100644
--- a/packager/mpd/base/period.cc
+++ b/packager/mpd/base/period.cc
@@ -117,6 +117,18 @@ AdaptationSet* Period::GetOrCreateAdaptationSet(
AdaptationSet* adaptation_set_ptr = new_adaptation_set.get();
adapt... | 7 | 7 | 2 | [{"id": "G0", "claim": "The trickplay cache handling in GetOrCreateAdaptationSet should also check whether content protection matches, and should be restructured so the code around line 222 covers both the trick-play and non-trick-play cases using a reusable FindMatchingAdaptationSetForTrickPlay helper.", "category": "... | null |
shaka-project__shaka-packager__815 | shaka-project/shaka-packager | 815 | defect | caa47e374d4b04262196ec27c338098982211068 | 0a7174ee8086b6ac6d7d97c44ac13bb28951dd6e | Don't add Frame Rate, Audio, Subtitles to IFrame tag | HLS Spec 4.3.4.3:
#EXT-X-I-FRAME-STREAM-INF:<attribute-list>
All attributes defined for the EXT-X-STREAM-INF tag (Section 4.3.4.2)
are also defined for the EXT-X-I-FRAME-STREAM-INF tag, except for the
FRAME-RATE, AUDIO, SUBTITLES, and CLOSED-CAPTIONS attributes. | diff --git a/packager/hls/base/master_playlist.cc b/packager/hls/base/master_playlist.cc
index a3b061a69a6..706b372d8d9 100644
--- a/packager/hls/base/master_playlist.cc
+++ b/packager/hls/base/master_playlist.cc
@@ -218,6 +218,8 @@ void BuildStreamInfTag(const MediaPlaylist& playlist,
variant.text... | 4 | 4 | 1 | [{"id": "G0", "claim": "Define a boolean variable instead (const bool is_iframe_playlist = playlist.stream_type() == kVideoIFramesOnly) rather than comparing against the I-FRAME tag-name string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The... | null |
shaka-project__shaka-player__6985 | shaka-project/shaka-player | 6,985 | defect | b3df270a3efe2886cb87007c6b543dd8c0a2bb6a | 214307d41337c6e7cc0e8eb728f91792190344a1 | feat: Render native cues using text displayer | Closes #2585
Ownership of text displayer has changed to player, it is created now in MSE mode and in src= mode if video element has `textTracks` property. | diff --git a/lib/media/media_source_engine.js b/lib/media/media_source_engine.js
index 87a8431eca..a1ab1ea486 100644
--- a/lib/media/media_source_engine.js
+++ b/lib/media/media_source_engine.js
@@ -392,9 +392,6 @@ shaka.media.MediaSourceEngine = class {
if (this.textEngine_) {
cleanup.push(this.textEngine_... | 6 | 4 | 1 | [{"id": "G0", "claim": "The region mapping in mapNativeCue is missing widthUnits and viewportAnchorUnits and they should be set.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A comment should be added at the region mapping explaining that widthUnits ... | null |
shaka-project__shaka-player__7877 | shaka-project/shaka-player | 7,877 | defect | 1d44f70ce48426223d4efeb8809bc8185453d35a | c1da5c9b1dae3bebb0a31fe882363c9d52afe780 | feat: Add Watermark Support to Shaka Player UI | This pull request introduces watermark support for the Shaka Player UI.
Added functionality to overlay static or dynamic watermarks on videos.
Included options to customize position, size, color, and opacity.
Enhanced content security with dynamic watermarking capabilities.
Resolves #7726 . | diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index ade2ba7e29..ca37820029 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -164,3 +164,4 @@ Koen Romers <koenromers@gmail.com>
Zhenghang Chen <czhtju@gmail.com>
Ashley Manners <ashley.manners@xperi.com>
Bidisha Das <officialbidisha1@gmail.com>
+Chafroud Tarek <chafroudtarek... | 9 | 8 | 2 | [{"id": "G0", "claim": "Add proper JSDoc comments to the classes and methods and delete the build/types/watermark.json file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the watermark style definitions out of ui/controls.less into less/wa... | null |
shaka-project__shaka-player__7886 | shaka-project/shaka-player | 7,886 | defect | c232867053f3808fe2557ef979802fe7c593c2f1 | 858c2afb76874e9eea0911150d04ab1f7cdd1765 | feat: Add adaptation set criteria factory configuration | This exports AdaptationSet, and AdaptationSetCriteria to enable an `adaptationSetCriteriaFactory` method to allow for shaka users to provide their own implementation of a class that implements AdaptationSetCriteria.
Fixes #7768 | diff --git a/externs/shaka/player.js b/externs/shaka/player.js
index dc0f4b5369..8ed0b49c82 100644
--- a/externs/shaka/player.js
+++ b/externs/shaka/player.js
@@ -2323,6 +2323,7 @@ shaka.extern.TextDisplayerConfiguration;
* streaming: shaka.extern.StreamingConfiguration,
* mediaSource: shaka.extern.MediaSourceC... | 2 | 2 | 0 | [{"id": "G0", "claim": "The @export annotation the pull request adds to shaka.media.ExampleBasedCriteria (and its members) is unjustified and should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @export annotation the pull request adds t... | null |
shaka-project__shaka-player__7954 | shaka-project/shaka-player | 7,954 | defect | ca1a8fdc21daaadb739a12dbf0a06395261520df | a51a61e1201dbce62cd2d6c99addbef35d11c6c3 | feat: Retain segment in memory on QuotaExceededError | Closes #1352
Segment prefetch keeps the segments until the position of the segment to be requested changes, which is exactly what happens when the QuotaExceededError error occurs. So enabling this by default with a value of 1 solves this problem. | diff --git a/externs/shaka/player.js b/externs/shaka/player.js
index 9361574568..243b099fdc 100644
--- a/externs/shaka/player.js
+++ b/externs/shaka/player.js
@@ -1780,7 +1780,7 @@ shaka.extern.LiveSyncConfiguration;
* ahead of playhead in parallel.
* If <code>0</code>, the segments will be fetched sequentially... | 2 | 1 | 1 | [{"id": "G0", "claim": "The default streaming-engine test config should keep maxDisabledTime = 0, so explain why the line `config.maxDisabledTime = 0; // Do not disable stream by default` was removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "P... | null |
shaka-project__shaka-player__8835 | shaka-project/shaka-player | 8,835 | defect | f7c2295fc13c128047494ce6955af62fd03ed87f | a57e0108fc9ab1b0725e726754b7694ad79a96d9 | fix(HLS): Fix preload initial variant | This is necessary to obtain the necessary DRM information, which in most cases is not available until the media playlist is downloaded.
Also avoid DRM setup for VOD that does not need it for HLS.
Fixes #8830 | diff --git a/lib/media/preload_manager.js b/lib/media/preload_manager.js
index 01f4f6516a..3f1b5bb486 100644
--- a/lib/media/preload_manager.js
+++ b/lib/media/preload_manager.js
@@ -430,13 +430,18 @@ shaka.media.PreloadManager = class extends shaka.util.FakeEventTarget {
await this.parseManifestInner_();
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The variant-choosing code duplicated in chooseInitialVariant_ and prefetchInner_ should be moved into a helper method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shaka-project__shaka-player__9577 | shaka-project/shaka-player | 9,577 | defect | 9af54837c76ecbecb1b14e883e50ea3a5f773bb7 | 4a024ac65c42b46925d7393d29af9fd838fe1005 | fix: parseHDLR for Apple QuickTime hdlr box compatibility | Apple QuickTime places a manufacturer field ('appl') immediately after the handler type ('soun'), causing readTerminatedString() to incorrectly read 'sounappl' instead of 'soun'. This breaks Opus fMP4 audio playback for content packaged with Apple tools.
Replace null-terminated string parsing with fixed-length byte ... | diff --git a/AUTHORS b/AUTHORS
index f4011a79c5..9ffedbae0f 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -116,6 +116,7 @@ V-Nova Limited <*@v-nova.com>
Wayne Morgan <wayne.morgan.dev@gmail.com>
Wen Ren <renwen0615@gmail.com>
Wojciech Tyczyński <tykus160@gmail.com>
+Woody Hill <wondertrot@gmail.com>
Raymond Cheng <raycheng... | 3 | 3 | 1 | [{"id": "G0", "claim": "readBytes(4) should be called with clone=false so reading the 4-byte handler_type does not clone the buffer.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests are failing and must be fixed.", "category": "testing", "ve... | null |
shakacode__sass-resources-loader__134 | shakacode/sass-resources-loader | 134 | defect | 89538d0fc9ce73496852687fce30cb667371058b | f19ba3f655d0072029161c4abf1ef0a61bd021a7 | Add verbose glob error message | Add verbose error message when any of the specified resource globs don't return any files.
Fixes: #38.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/shakacode/sass-resources-loader/134)... | diff --git a/src/utils/parseResources.js b/src/utils/parseResources.js
index 0714fe4..2a7ea6d 100644
--- a/src/utils/parseResources.js
+++ b/src/utils/parseResources.js
@@ -4,15 +4,28 @@ import logger from './logger';
import isArrayOfStrings from './isArrayOfStrings';
import flattenArray from './flattenArray';
+con... | 2 | 2 | 0 | [{"id": "G0", "claim": "Rename for clarity: getGlobPaths should take `pattern`, the default export should take `patterns`, and the module should be renamed from parseResources to expandResourceGlobs with the calling reference updated.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "... | null |
shanalikhan__code-settings-sync__909 | shanalikhan/code-settings-sync | 909 | defect | c9aae6701a2d667ec2f720805633b56fdaaa7697 | 9b16c8dff78816e0ea0cbd17c8c8ecbde067520c | [Done] Multi instance support | #### Short description of what this resolves:
Add support for multiple instances of VSCode
#### Changes proposed in this pull request:
- Only allow one instance of VS Code to auto-upload
- Catch errors with lock file
- Use extension state for storing environment, commons, and context
**Fixes**: #839
####... | diff --git a/src/commons.ts b/src/commons.ts
index 09031dca..d8e708b7 100644
--- a/src/commons.ts
+++ b/src/commons.ts
@@ -2,10 +2,11 @@
import * as vscode from "vscode";
import { Environment } from "./environmentPath";
import localize from "./localize";
-import { AutoUploadService } from "./service/autoUploadSer... | 3 | 3 | 0 | [{"id": "G0", "claim": "The reviewer asks why the file was renamed to `autoUpload.service` instead of `autoUploadService`, and wants the naming discussed and aligned (and, per the thread, the other services renamed to the same convention) before changing it.", "category": "maintainability", "verdict": "supported", "pri... | null |
shanliuling__skills-link__4 | shanliuling/skills-link | 4 | defect | bffedd730183c2c494575dca273d2c4570aed59e | 01f028d99a651acc0b71a3c0d0eac2077b7ab006 | refactor: declarative agent registry (41+ agents), i18n completion, strict TS | ## Summary
- Replace per-agent path detection (30+ lines each) with a declarative `agentRegistry` (1 line per agent), now supporting 41+ AI agents
- Complete i18n: replace all hardcoded Chinese strings with `t()` calls across watch, rollback, app, list, init, clone commands
- Add `app remove/enable/disable` subcommand... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a3ba334..e990409 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -79,7 +79,7 @@ jobs:
id: check_version
run: |
PACKAGE_VERSION=$(node -p "require('./package.json').version")
- NPM_VERSION=$(npm v... | 13 | 2 | 0 | [{"id": "G0", "claim": "The enable and disable subcommands take the app name only via the -n option while their i18n hints advertise a positional argument, so the command definition should support both positional and option-based name input.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "in... | null |
shapely__shapely__1076 | shapely/shapely | 1,076 | defect | 4fcf83523dbe96fcc51fe12b6826a6ecdc4b2a66 | d34d1e8b4c2ae1ddcdaced2c23665ac9241eefd7 | CI: move Travis linux builds to Github Actions | Following up on https://github.com/Toblerity/Shapely/pull/1041/, and the work that @mwtoews and I did in pygeos. This should currently keep the exact set of environments as we have on Travis (only the numpy versions, if installed, are now also pinned, copied that from pygeos).
(Travis CI is already disabled due to n... | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 000000000..5573c5846
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,152 @@
+name: Linux
+
+on: [push, pull_request]
+
+jobs:
+ TestLinux:
+ name: Python ${{ matrix.python }} (GEOS ${{ matrix.geos }}, speedu... | 6 | 6 | 1 | [{"id": "G0", "claim": "The pip-dependencies if-elif-elif statement should be restructured into separate if-fi statements to catch the configuration options more cleanly, with an else branch running `pip uninstall --yes numpy;` in the final no-numpy case.", "category": "design", "verdict": "supported", "priority": "P2"... | null |
shapely__shapely__1090 | shapely/shapely | 1,090 | defect | 891f517c9d58a30a5c667e4675f4f0a2667c5fef | b262de1d367f645887f241bec639dfdb53cceca2 | ENH: Add normalize() method | Closes #994
This exposes `GEOSNormalize` as a method on the geometry classes. In GEOS, this works in place, but to keep the Shapely interface consistent (other operations like simplify also return a new geometry), I made the `normalize()` method to return a new geometry (and thus first clone the geometry before norm... | diff --git a/shapely/ctypes_declarations.py b/shapely/ctypes_declarations.py
index 51ee01eb1..a0a4f0056 100644
--- a/shapely/ctypes_declarations.py
+++ b/shapely/ctypes_declarations.py
@@ -388,6 +388,9 @@ def prototype(lgeos, geos_version):
lgeos.GEOSGeom_getDimensions.restype = c_int
lgeos.GEOSGeom_getDimens... | 2 | 1 | 0 | [{"id": "G0", "claim": "The doctest output line should use single quotes ('MULTILINESTRING ((2 2, 3 3), (0 0, 1 1))') to match Python repr style.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "normalize should be exposed as a property rather tha... | null |
shapely__shapely__1117 | shapely/shapely | 1,117 | defect | 38593b8a8fae5746c6c635e17360991cbc7bee2f | 5a2a12fc5760ee4ca94501311f6a78593672755e | Add tests to WKT and WKB conversion to increase coverage | Adds more meaningful tests for `shapely.wkt` and `shapely.wkb`. They are now covered completely. | diff --git a/CREDITS.txt b/CREDITS.txt
index cdfb0053f..4f369baef 100644
--- a/CREDITS.txt
+++ b/CREDITS.txt
@@ -24,6 +24,7 @@ Shapely is written by:
* David Swinkels <davidswinkelss@gmail.com>
* Denis Rykov <rykovd@gmail.com>
* Erwin Sterrenburg <e.w.sterrenburg@gmail.com>
+* Felix Divo <4403130+felixdivo@users.nor... | 5 | 4 | 1 | [{"id": "G0", "claim": "test_loads_hex writes `assert loads(dumps(some_point, hex=True), hex=True), some_point`, which asserts a tuple instead of comparing, so change it to `==` so the roundtripped geometry is actually verified.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
shapely__shapely__1213 | shapely/shapely | 1,213 | defect | 0af2ed3b5859684870ee213c9e029b0dc18df426 | b9c2c5116313ae661bd969546511cd6087326530 | TST: fix tests on Windows for python >= 3.8 | With pygeos installed, the tests on appveyor are failing for Python >= 3.8 (failing to import pygeos because it doesn't find GEOS). I assume this is related to the changes in python how it finds (or does not find) DLLs, and you need to explicitly put them on the path. | diff --git a/appveyor.yml b/appveyor.yml
index 40a35e523..b9a6882ac 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -14,13 +14,12 @@ environment:
- PYTHON: "C:\\Python37-x64"
ARCH: x64
GEOS_VERSION: "3.7.3"
- # Python >= 3.8 testing needs an update to ensure DLLs around at runtime
- # - PYTHON:... | 5 | 3 | 1 | [{"id": "G0", "claim": "Setting PATH in appveyor.yml does not fix DLL loading for Python>=3.8 (as found in pygeos#382); the best solution is to copy the DLLs instead.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Register the GEOS DLL directory in th... | null |
shapely__shapely__1241 | shapely/shapely | 1,241 | defect | 200cb6ded37a3b791e61ac50290d2ca2d1b3ec42 | 0a4ec270327ca126e45ce3ce7a427eb561a6de36 | CI: consolidate the build scripts and github actions tests workflow | xref https://github.com/Toblerity/Shapely/issues/962
This PR consolidates the github actions workflow for tests + the build scripts required for that, and gets the tests "passing":
- I basically used the pygeos workflow and build scripts (with some minor adjustments for shapely), but kept the name of the shapely ... | diff --git a/.github/workflows/test-pip.yml b/.github/workflows/test-pip.yml
deleted file mode 100644
index d05a142bf..000000000
--- a/.github/workflows/test-pip.yml
+++ /dev/null
@@ -1,153 +0,0 @@
-name: Test
-
-on: [push, pull_request]
-
-jobs:
- Test:
- name: ${{ matrix.os }}-${{ matrix.architecture }} Py${{ mat... | 7 | 5 | 2 | [{"id": "G0", "claim": "The `if [ \"$GEOS_VERSION\" = \"main\" ]` condition only coincidentally aligns with whether matrix.numpy is specified and might not in the future, so the workflow should test `[ -n \"${{ matrix.numpy }}\" ]` directly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
shapely__shapely__1277 | shapely/shapely | 1,277 | defect | 48cf81e5ba3e48b779e81be543ab42858385c37d | 16ed4178ae1373f01be959f34633d7f8ff0cd193 | BUG: fix Polygon() constructor from a LineString | Constructing a Polygon from a LineString worked before, but no longer on the main branch (noticed this while testing out shapely 2.0 with geopandas). This PR restores that behaviour.
For example with shapely 1.8:
```
In [3]: import shapely
In [4]: import shapely.geometry
In [5]: shapely.geometry.box(0,0,1,... | diff --git a/shapely/geometry/polygon.py b/shapely/geometry/polygon.py
index c747bc0fe..01d70abf0 100644
--- a/shapely/geometry/polygon.py
+++ b/shapely/geometry/polygon.py
@@ -238,6 +238,9 @@ def __new__(self, shell=None, holes=None):
# conversion of coords to 2D array failed, this might be due
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The nested `else: if not isinstance(shell, LinearRing):` block in Polygon.__new__ should be condensed into a single `elif`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
shapely__shapely__1323 | shapely/shapely | 1,323 | defect | d2da26aea0a2d49ea37acca4e9edc111f686aabe | 4d468e86f870496164bc4544a09e77ca691284ab | PERF: vectorized implementation for signed area | As discussed in #1315
1. Vectorizes `shapely.algorithms.cga.signed_area`
2. Modifies `shapely.polygon.orient` to use `LinearRing.is_ccw` instead of `shapely.algorithms.cga.signed_area` to detect the handedness of rings. This defers to a fast GEOS call when possible.
| diff --git a/shapely/algorithms/cga.py b/shapely/algorithms/cga.py
index 5cce1896f..2b786524b 100644
--- a/shapely/algorithms/cga.py
+++ b/shapely/algorithms/cga.py
@@ -1,3 +1,5 @@
+import numpy as np
+
import shapely
@@ -5,12 +7,9 @@ def signed_area(ring):
"""Return the signed area enclosed by a ring in line... | 1 | 1 | 1 | [{"id": "G0", "claim": "Using is_ccw for orient may mishandle invalid geometries, so the PR should consider an is_valid check and only then use is_ccw, keeping the signed_area version otherwise.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shapely__shapely__1393 | shapely/shapely | 1,393 | defect | 43f75e4ec2225aae84e61b716b598f6020fa5661 | 757e3c89d6ef9116ed97663d19c02e7b9f9bd068 | Rename shapely.apply to shapely.transform | xref https://github.com/shapely/shapely/issues/1276 about naming inconsistencies
Shapely uses "transform" for what is called `apply` for the vectorized functions (merged from pygeos). This PR renames `apply()` to `transform()`.
I personally think both names are fine, so this change keeps it a bit more consistent ... | diff --git a/benchmarks/benchmarks.py b/benchmarks/benchmarks.py
index 0ba70d4c9..e879dc29e 100644
--- a/benchmarks/benchmarks.py
+++ b/benchmarks/benchmarks.py
@@ -126,7 +126,7 @@ def setup(self):
pygeos.buffer(pygeos.points(np.random.random((500, 2)) * 500), 15)
)
# shift this up and ri... | 2 | 1 | 0 | [{"id": "G0", "claim": "The docstring of the renamed transform function should also be adjusted (it still references apply).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Maybe also change the names all the way down to C.", "category": "design", ... | null |
shapely__shapely__1418 | shapely/shapely | 1,418 | defect | a0aae53128482f5f5728f993a2c83d901332ba87 | 675bce4ec0137dbb1d96fab2cc5658ab2507d121 | PERF: use numpy matmul for affine transformation | This is an idea borrowed from @ThomasHilger in https://github.com/shapely/shapely/discussions/1336 | diff --git a/shapely/affinity.py b/shapely/affinity.py
index c75250a1c..9550ceb11 100755
--- a/shapely/affinity.py
+++ b/shapely/affinity.py
@@ -10,7 +10,7 @@
def affine_transform(geom, matrix):
- r"""Returns a transformed geometry using an affine transformation matrix.
+ r"""Return a transformed geometry us... | 3 | 1 | 0 | [{"id": "G0", "claim": "The double transpose might be avoidable by computing the product as np.dot(coords, A) instead of np.dot(A, coords.T).T.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out assertion suggests affine_transform no lon... | null |
shapely__shapely__1420 | shapely/shapely | 1,420 | defect | 1af43fd9bf56f8a4a2a6a9e0453035c51860eb28 | 4c40a4b51d3e5494a8406a111dff5181ba2dcc92 | API: all-empty GeometryCollection .geoms to return empty subgeoms | Closes https://github.com/shapely/shapely/issues/956
Currently a GeometryCollection that consists of multiple empty geometries (which is considered as an empty geometry), does not return those geometries in the `.geoms` attribute (because of a special casing in our code for this, to specifically return an empty list... | diff --git a/shapely/geometry/base.py b/shapely/geometry/base.py
index 11d4ee7ea..2544ff634 100644
--- a/shapely/geometry/base.py
+++ b/shapely/geometry/base.py
@@ -729,8 +729,6 @@ def coords(self):
@property
def geoms(self):
- if self.is_empty:
- return []
return GeometrySequence... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test_empty_subgeoms test could be somewhat more succinct by constructing the GeometryCollection directly (GeometryCollection([Point(), LineString()])) instead of building it from GeoJSON, since the focus is on the .geoms attribute.", "category": "maintainability", "verdict": "supported", "pr... | null |
shapely__shapely__1496 | shapely/shapely | 1,496 | defect | 9582f30fa66db5f887d88ebc1ea553cc44bdcc1b | ee3ed04cc16af1c3d78c01fbc6b68368f5ce5cbe | ENH: expose dwithin on the Geometry subclasses | xref https://github.com/shapely/shapely/issues/1281 | diff --git a/shapely/geometry/base.py b/shapely/geometry/base.py
index 1974b5284..5503c0d24 100644
--- a/shapely/geometry/base.py
+++ b/shapely/geometry/base.py
@@ -618,6 +618,14 @@ def within(self, other):
"""Returns True if geometry is within the other, else False"""
return bool(shapely.within(self,... | 3 | 1 | 0 | [{"id": "G0", "claim": "The pull request should also expose contains_properly on the Geometry subclasses; the author asks whether adding it is acceptable.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Shapely docs do not add a note about the require... | null |
shapely__shapely__1506 | shapely/shapely | 1,506 | defect | 6c896a7fb0348f46630e4045e1fdc3e54212dc42 | 2f18d1d2e96e5884a9162f82ad671b02cf4c574e | Update segmentize tolerance parameter to max segment length | - Renamed parameter
- Updated function description
- Updated tests
Closes https://github.com/shapely/shapely/issues/1454 | diff --git a/shapely/constructive.py b/shapely/constructive.py
index ab8cb0dd6..94c5065ce 100644
--- a/shapely/constructive.py
+++ b/shapely/constructive.py
@@ -699,12 +699,12 @@ def reverse(geometry, **kwargs):
@requires_geos("3.10.0")
@multithreading_enabled
-def segmentize(geometry, tolerance, **kwargs):
- ""... | 3 | 3 | 1 | [{"id": "G0", "claim": "Besides shapely/constructive.py, there is also a segmentize method in shapely/geometry/base.py that needs to be updated to the new max_segment_length parameter as well.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The segme... | null |
shapely__shapely__1508 | shapely/shapely | 1,508 | defect | 6c896a7fb0348f46630e4045e1fdc3e54212dc42 | e86d04844e0f55245984dd36089aaa36fdafeb09 | Alias geometry.base buffer styles to geometry.constructive enums | - Update `CAP_STYLE` and `JOIN_STYLE` in `shapely/geometry/base.py` to alias `BufferCapStyles` and `BufferJoinStyles` enums in `shapely/constructive.py`
- Update docs to encourage use of new enums
- Refactor `tests/test_styles.py` tests into `tests/test_buffer.py`
- Add test to ensure they are the same
geometry.b... | diff --git a/docs/manual.rst b/docs/manual.rst
index 763ed9322..0bbd97d50 100644
--- a/docs/manual.rst
+++ b/docs/manual.rst
@@ -207,9 +207,9 @@ General Attributes and Methods
This can be thought of as a measure of the robustness of a geometry, where larger values of
minimum clearance indicate a more robust geome... | 6 | 5 | 1 | [{"id": "G0", "claim": "The pull request lacks a test that passes the old class values (CAP_STYLE/JOIN_STYLE) to the buffer method in tests/test_buffer.py, since only test_styles.py covers those classes superficially.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
shapely__shapely__1546 | shapely/shapely | 1,546 | defect | e941610b0f748999aa1b6bb3ad3ec5eb6e20bc4e | 430d7ffbba86184b880449a0c23578cb5d6624a9 | ENH: Remove Repeated Points | Closes https://github.com/shapely/shapely/issues/1399
Add support for [GEOSRemoveRepeatedPoints](https://github.com/libgeos/geos/blob/2a82afc1ac2327966f56bdf35a6d88aaadb81330/capi/geos_c.h.in#L2795-L2812), introduced in GEOS 3.11.0 | diff --git a/shapely/constructive.py b/shapely/constructive.py
index 47a0235cc..62143d62c 100644
--- a/shapely/constructive.py
+++ b/shapely/constructive.py
@@ -23,6 +23,7 @@
"point_on_surface",
"polygonize",
"polygonize_full",
+ "remove_repeated_points",
"reverse",
"simplify",
"snap",
... | 5 | 5 | 2 | [{"id": "G0", "claim": "The docstring should include a description of the tolerance parameter, taken from GEOS's documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tolerance parameter should have a default value of 0.0, the simplest... | null |
shapely__shapely__1562 | shapely/shapely | 1,562 | defect | 25a74510209ceb09c8809a18b76c39788933a99f | 26ed130d189a4ed44bc4915fd08d24cde16b7ee9 | Refactor reducing set operations as gufuncs + return emtpy collection for empty/all-None input | Next iteration on https://github.com/shapely/shapely/pull/1540 and https://github.com/shapely/shapely/pull/1501
Addresses https://github.com/shapely/shapely/issues/1332
See https://github.com/shapely/shapely/pull/1540#discussion_r990693467 for details. This PR implements `intersection_all` and `symmetric_differenc... | diff --git a/shapely/set_operations.py b/shapely/set_operations.py
index 77432747b..ffb42fdd7 100644
--- a/shapely/set_operations.py
+++ b/shapely/set_operations.py
@@ -138,7 +138,8 @@ def intersection_all(geometries, axis=None, **kwargs):
"""Returns the intersection of multiple geometries.
This function ig... | 6 | 5 | 1 | [{"id": "G0", "claim": "The _REORDERABLE variants existed only to enable reduction, so the set-operation ufuncs can be simplified to plain YY_Y.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Y_Y_reduce_func could use the geom_arr temporary-array trick... | null |
shapely__shapely__1592 | shapely/shapely | 1,592 | defect | c3a6d546cfb3d458772a1bff2e2cc1f700899bca | 142f4ea5b18f665509b02aa2fa0a5f3212aa0a3d | ENH: Add directed parameter to line merge | GEOS 3.11.0 adds [GEOSLineMergeDirected](https://github.com/libgeos/geos/blob/main/capi/geos_c.h.in#L3925-L3934) which is similar to `line_merge` but only returns a merged geometry if possible without merging points.
Does it make sense to implement this as an additional parameter to `line_merge` instead of a separat... | diff --git a/docs/manual.rst b/docs/manual.rst
index 826e87148..1663f5a06 100644
--- a/docs/manual.rst
+++ b/docs/manual.rst
@@ -5,7 +5,7 @@ The Shapely User Manual
=======================
:Author: Sean Gillies, <sean.gillies@gmail.com>
-:Version: 1.7.0
+:Version: 2.0b1
:Date: |today|
:Copyright:
This work is ... | 6 | 6 | 1 | [{"id": "G0", "claim": "The directed option should be implemented as a parameter on line_merge rather than a separate function, and when so implemented the keyword should raise an error on GEOS < 3.11.0 instead of relying on the unsupported decorator.", "category": "design", "verdict": "supported", "priority": "P1", "s... | null |
shapely__shapely__1594 | shapely/shapely | 1,594 | defect | 8c66df52c9c2e04594cc7226708fbd8d7ba7722a | e8814d8a0569c8856931381312773847d4bf6853 | Add handle_nans to linestrings and linearrings | This is a draft implementing the ideas in #1573 for ignoring / raising / allowing NaN values in geometry constructors.
Please let me know what you think about this. | diff --git a/setup.py b/setup.py
index 5c5d06aed..90cccd7b1 100644
--- a/setup.py
+++ b/setup.py
@@ -135,17 +135,16 @@ def finalize_options(self):
self.include_dirs.append(numpy.get_include())
-
ext_modules = []
if "clean" in sys.argv:
# delete any previously Cythonized or compiled files in pygeos... | 7 | 4 | 0 | [{"id": "G0", "claim": "The handle_nans option should also be added to the points ufunc (at least for the 'raise' option, since 'ignore' would change the output size).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment for handle_nans in src/... | null |
shapely__shapely__1599 | shapely/shapely | 1,599 | defect | bda53699fdefeca9d22439865d3a7b3d6d21bf15 | c54f6e2bd265b3626f77cfa4f739a2e983543464 | ENH: allow Geometry methods to return arrays if passed array as argument | Closes https://github.com/shapely/shapely/issues/1588 | diff --git a/shapely/geometry/base.py b/shapely/geometry/base.py
index b353d1808..8079f9920 100644
--- a/shapely/geometry/base.py
+++ b/shapely/geometry/base.py
@@ -64,6 +64,14 @@ def dump_coords(geom):
raise GeometryTypeError("Unhandled geometry type: " + repr(geom.geom_type))
+def _maybe_unpack(result, t... | 2 | 1 | 0 | [{"id": "G0", "claim": "Perhaps make `contains_properly` work in the parametrized predicates test by wrapping the lookup in a try/except AttributeError, or by just calling the `shapely.predicates` functions directly, since each of these fn(a, b) signatures appear in the `shapely.predicates` submodule.", "category": "te... | null |
shapely__shapely__1600 | shapely/shapely | 1,600 | defect | 5cb7819a8f876460307f2199c1bcb84652d0553a | b7c478715ce56cd241c4ebbd5b7eb0c94d5c1029 | Document Point(..) constructor change no longer allowing coordinate sequence of len > 1 | See https://github.com/shapely/shapely/pull/1590#issuecomment-1295823911 for context
With shapely 1.8:
```
In [1]: from shapely.geometry import Point
In [2]: Point([(1, 2), (3, 4), (5, 6)]).wkt
Out[2]: 'POINT (1 2)'
```
One 2.x, this raises an error instead of ignoring the other coordinates. This PR adds... | diff --git a/docs/release/2.x.rst b/docs/release/2.x.rst
index 609c57237..5e72e8ca9 100644
--- a/docs/release/2.x.rst
+++ b/docs/release/2.x.rst
@@ -158,6 +158,9 @@ Some additional backwards incompatible API changes were included in Shapely
* A ``GeometryCollection`` that consists of all empty sub-geometries now
re... | 1 | 1 | 0 | [{"id": "G0", "claim": "The release-note sentence should say that coordinates \"were ignored\" instead of \"would be ignored\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shapely__shapely__1628 | shapely/shapely | 1,628 | defect | 4604408bacda4efb905c82ce121cd02afe6e0c68 | 26db0146ea4a6b0719eee3da451d2f345f1596e3 | ENH: expose flavor keyword in to_wkb | Adding a `flavor` keyword for WKB writing (added in GEOS 3.10.0) | diff --git a/shapely/io.py b/shapely/io.py
index a6159cdc7..e8b0269fe 100644
--- a/shapely/io.py
+++ b/shapely/io.py
@@ -3,6 +3,7 @@
from . import lib
from .decorators import requires_geos
from .enum import ParamEnum
+from .errors import UnsupportedGEOSVersionError
__all__ = [
"from_geojson",
@@ -20,6 +21,8 ... | 4 | 3 | 0 | [{"id": "G0", "claim": "Mike asked whether the GEOS docs' third \"standard\" flavour should be embedded here as a third flavor choice (forcing output_dimension=2 and include_srid=False), and whether \"standard\" is a real flavour.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"},... | null |
shapely__shapely__1655 | shapely/shapely | 1,655 | defect | d2872f6c4d7c99b16f8a71d99cd56d0a5fe54695 | 0021c7dd709fa81d680f6726d1b443823d45b40b | PERF: Fix double check of is_empty in MultiPolygon() constructor (because truthiness implies that) | Closes #1615 | diff --git a/shapely/geometry/multipolygon.py b/shapely/geometry/multipolygon.py
index 0e02bdbb2..499d82a63 100644
--- a/shapely/geometry/multipolygon.py
+++ b/shapely/geometry/multipolygon.py
@@ -55,11 +55,7 @@ def __new__(self, polygons=None):
return polygons
polygons = getattr(polygons, "geom... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a small comment explaining why the truthiness filter is used, since the change made the intent less explicit.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shapely__shapely__1685 | shapely/shapely | 1,685 | defect | d3d109165f0e0830c0b555eaf102fbc2ba56fecb | 68e42aa9ef9b6e92ee20a6667e39d76ad167dd76 | ENH: Add constrained_delaunay_triangles function | One of the items in https://github.com/shapely/shapely/issues/1570
Resolves #772 | diff --git a/shapely/constructive.py b/shapely/constructive.py
index e3c15f3b1..31240d840 100644
--- a/shapely/constructive.py
+++ b/shapely/constructive.py
@@ -13,6 +13,7 @@
"centroid",
"clip_by_rect",
"concave_hull",
+ "constrained_delaunay_triangles",
"convex_hull",
"delaunay_triangles",
... | 6 | 4 | 1 | [{"id": "G0", "claim": "The new constrained_triangulate wrapper in ops.py duplicates the docstring and should reference the one in constructive.py (as in #1673) — or, as the maintainer puts it, new functions should not be added to ops.py at all, only as top-level functions.", "category": "design", "verdict": "supported... | null |
shapely__shapely__1690 | shapely/shapely | 1,690 | defect | d3d109165f0e0830c0b555eaf102fbc2ba56fecb | 7256959a649d475be337bf66e177d71411f4c560 | ENH: add vectorized fallback for `orient_polygons` for GEOS < 3.12 | Closes https://github.com/shapely/shapely/issues/1366
Closes https://github.com/shapely/shapely/issues/1684
Closes (mostly) https://github.com/shapely/shapely/issues/1696 | diff --git a/shapely/__init__.py b/shapely/__init__.py
index 5341ddf43..ece494912 100644
--- a/shapely/__init__.py
+++ b/shapely/__init__.py
@@ -13,6 +13,7 @@
from .coordinates import * # NOQA
from .strtree import * # NOQA
from .io import * # NOQA
+from .algorithms.cga import * # NOQA
# Submodule always needs... | 7 | 5 | 1 | [{"id": "G0", "claim": "There is no need to already generalize the decorator to work on object types other than Geometry, since for now the PR uses it in only one place.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If a vectorized version is added, it ... | null |
shapely__shapely__1708 | shapely/shapely | 1,708 | defect | 5f0352897968e82283a61fe6b201df87993628fb | ade07ba1c1f6d6c513afa3e5c7abeba7a61d40d5 | BUG: solve minimum_rotated_rectangle is incorrect in 2.0.0 | Closes https://github.com/shapely/shapely/issues/1670
restore and vectorized the custom `oriented_envelope` to solve [#1670](https://github.com/shapely/shapely/issues/1670)
add a new test and remove duplicated tests for `oriented_envelope` and `minimum_rotated_rectangle` | diff --git a/docs/manual.rst b/docs/manual.rst
index 37a7221e2..c8e1cfb79 100644
--- a/docs/manual.rst
+++ b/docs/manual.rst
@@ -1686,8 +1686,8 @@ Figure 11. Convex hull (blue) of 2 points (left) and of 6 points (right).
>>> Point(0, 0).minimum_rotated_rectangle
<POINT (0 0)>
- >>> MultiPoint([(0,0),(1,1),(2,0... | 11 | 9 | 3 | [{"id": "G0", "claim": "Keep the actual user-called oriented_envelope function and its documentation in constructive.py where it was, and put only the custom Python implementation in the new module.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Don't gi... | null |
shapely__shapely__1719 | shapely/shapely | 1,719 | defect | c541eee3929456c00ddda2b6f876d7197cfba1de | f0265a3d75352ece74707dafc94071e6221e2954 | FIX: Copy geometries input to STRtree to prevent modification instead of adding write lock to array | Resolves #1714
Instead of adding a write lock to the geometry array input to construct the tree, we now take a copy of the input array, which allows the user to modify the input array later without modifying the geometries stored in the tree. | diff --git a/shapely/strtree.py b/shapely/strtree.py
index b6d328537..a60225668 100644
--- a/shapely/strtree.py
+++ b/shapely/strtree.py
@@ -45,6 +45,11 @@ class STRtree:
Any mixture of geometry types may be stored in the tree.
+ The tree automatically adds a write lock to the input geometry array to
+ p... | 2 | 2 | 1 | [{"id": "G0", "claim": "Wrap the write-lock release in __del__ in a try/except so it cannot raise AttributeError when the instance attributes are already gone, since __del__ is not guaranteed to run as expected.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
shapely__shapely__1720 | shapely/shapely | 1,720 | defect | 16f593af38c7b08b4a27553abadc07b5e3f87e44 | f031c66269634f3799536358ff287e251efe709f | BUG: geometry constructors now support `Decimal` inputs | Closes #1707 | diff --git a/CREDITS.txt b/CREDITS.txt
index 657eb9ae9..67e36d6a2 100644
--- a/CREDITS.txt
+++ b/CREDITS.txt
@@ -47,6 +47,7 @@ Shapely is written by:
* Henry Walshaw <henry.walshaw@gmail.com>
* Howard Butler <hobu.inc@gmail.com>
* Hugo <hugovk@users.noreply.github.com>
+* Idan Miara <idan@miara.com>
* Jacob Wasserm... | 6 | 4 | 0 | [{"id": "G0", "claim": "Avoid converting coordinates with [float(c) for c in coords] when the array already has a numeric dtype; apply the conversion only if the dtype is not numeric.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Point construc... | null |
shapely__shapely__1728 | shapely/shapely | 1,728 | defect | 7cab1278231dda4afde94a950df9dd4ff8028c69 | f4dc05766764a8ae4f8a3bde978d350a980e0032 | TST: update 'invalid value encountered' floating-point warnings (fixed with GEOS>=3.12) | Closes #1345
Closes #1552
Closes #1709
This PR doesn't actually "fix" those issues, but in the meantime those warnings have been fixed upstream in GEOS (https://github.com/libgeos/geos/issues/515, https://github.com/libgeos/geos/pull/791, https://github.com/libgeos/geos/pull/806),a and so this PR updates the tests... | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 3ed689e5c..ade833f76 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -42,8 +42,7 @@ jobs:
numpy: 1.23.4
matplotlib: true
doctest: true
- # TODO(shapely-2.0) tempor... | 1 | 1 | 0 | [{"id": "G0", "claim": "Simplify the new test_binary_empty_result to assert directly on shapely.intersection(a, b).is_empty instead of assigning the result to `actual` and asserting afterwards.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shapely__shapely__1786 | shapely/shapely | 1,786 | defect | bc62f989c8bb2de38f9762a301b7b02c416d38b9 | a515f927792a599d9fdebec8be1bbd8b02713836 | BUG: Check for any `MultiPolygon`s when constructing a `MultiPolygon` | Currently, the `MultiPolygon` constructor only validates the type of the first element of the `polygons` input. When a later element does not have the correct type, things silently fail. | diff --git a/shapely/geometry/multipolygon.py b/shapely/geometry/multipolygon.py
index 394ac7f80..9b2dc9970 100644
--- a/shapely/geometry/multipolygon.py
+++ b/shapely/geometry/multipolygon.py
@@ -69,7 +69,7 @@ def __new__(self, polygons=None):
# This function does not accept sequences of MultiPolygons: ther... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should add a test in shapely/tests/geometry/test_multipolygon.py covering the new check for MultiPolygons anywhere in the argument sequence.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
shapely__shapely__1811 | shapely/shapely | 1,811 | defect | 4087147f26f2f47e84270be669556f5b6a4842c4 | d640081d3d7a9bd4909d7765897b0b62208cdf9a | Add handle_nan to point creation + fix tests with GEOS main | This implements the nan handling (see #1573) for points.
| diff --git a/shapely/creation.py b/shapely/creation.py
index 3feba3d93..4b614aed7 100644
--- a/shapely/creation.py
+++ b/shapely/creation.py
@@ -39,7 +39,9 @@ def _xyz_to_coords(x, y, z):
@multithreading_enabled
-def points(coords, y=None, z=None, indices=None, out=None, **kwargs):
+def points(
+ coords, y=None... | 5 | 4 | 1 | [{"id": "G0", "claim": "The author believes one detail of the 3D point construction is not precisely correct on GEOS main: building a 3D point from (NaN, NaN, 1) yields POINT Z EMPTY while building from (NaN, 1, NaN) yields POINT Z (NaN 1 NaN).", "category": "correctness", "verdict": "supported", "priority": "P1", "sco... | null |
shapely__shapely__1815 | shapely/shapely | 1,815 | defect | 60967815a3f4d40c4fcea719380e4287d2bc5e3b | e23d3ffceb01212a80e7398855f2702d86a176c1 | Handle "Feature" type in `shape` (__geo_interface__) | This adds a branch to `shape`'s `__geo_interface__` parsing to handle `Feature` type. I think this is the right thing to do, but I'm not an expert on GeoJSON or `__geo_interface__`.
Closes https://github.com/shapely/shapely/issues/1814 | diff --git a/shapely/geometry/geo.py b/shapely/geometry/geo.py
index 9afcddb8d..5ffa546f0 100644
--- a/shapely/geometry/geo.py
+++ b/shapely/geometry/geo.py
@@ -89,6 +89,12 @@ def shape(context):
else:
ob = context
geom_type = ob.get("type").lower()
+
+ if geom_type == "feature":
+ # GeoJSO... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test should be moved from shapely/tests/geometry/test_feature.py into the existing shapely/tests/legacy/test_shape.py where tests for shape(..) already live.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
shapely__shapely__1829 | shapely/shapely | 1,829 | defect | 7d068a50f3aacc81c41b9a2a48d3a6a1cd24cdb0 | a1bfad2b65efb10a54848ba95b4cafac2ec44d31 | REGR: fix __eq__ to not ignore z values | Closes https://github.com/shapely/shapely/issues/1732
Broken off from https://github.com/shapely/shapely/pull/1760, to just restore the previous behaviour (using the previous implementaiton) and already add the more extensive tests that I wrote for that PR. This way, the other PR can focus more on the API change. | diff --git a/CHANGES.txt b/CHANGES.txt
index e216caabf..9810a1fbb 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -11,6 +11,13 @@ Improvements:
to allow, skip, or error on nonfinite (NaN / Inf) coordinates. The default
behaviour (allow) is backwards compatible (#1594).
+Version 2.0.2 (unreleased)
+---------------... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add a note that the numpy version (1.19.0) supporting the referenced equal_nan feature will be the minimum version in a few years.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In GeometryCollection.__eq__, use binary geom... | null |
shapely__shapely__1849 | shapely/shapely | 1,849 | defect | f115e06adad5e5d494d6d9b847a65c47d042734c | 3fb9c3acb2b6bcb1b0c6c889284a8e60475ea6ab | Port 'interleaved' and auto-z detection from PR 1676 | Port 'interleaved' and auto-z detection from PR #1676 | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 1ec172ba5..7fce95d5b 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -126,6 +126,9 @@ jobs:
if [ -n "${{ matrix.matplotlib }}" ]; then
pip install matplotlib
fi
+ if [ -... | 7 | 7 | 0 | [{"id": "G0", "claim": "The include_z docstring type line should read \"bool, optional\" (or \"default None\") instead of hard-coding \", default False\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reword the include_z description so it is abo... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.