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
TheHPXProject__hpx__7210
TheHPXProject/hpx
7,210
defect
ac34da28fad5b9702b2e43cf5d1cf88bf517e904
83173e0ef6c9db53691277f3d2d4a7ed30b3d9e5
Reimplement distributed::barrier on top of collectives infrastructure
Fixes #7203 ## Proposed Changes Delete `barrier_node` LCO component. Barrier now stores a `variant<monostate, communicator, hierarchical_communicator>`. Small-N uses flat communicator; large-N uses hierarchical with 2k-1/2k generation mapping for reduce+broadcast phases. Global barriers always use flat path. #...
diff --git a/libs/full/collectives/CMakeLists.txt b/libs/full/collectives/CMakeLists.txt index 681e6eb1fb61..51c7647beb2e 100644 --- a/libs/full/collectives/CMakeLists.txt +++ b/libs/full/collectives/CMakeLists.txt @@ -21,7 +21,6 @@ set(collectives_headers hpx/collectives/broadcast_direct.hpp hpx/collectives/...
8
7
2
[{"id": "G0", "claim": "The error message should state the 2k-1/2k internal generation mapping (user generation k maps to internal generations 2k-1 and 2k), not \"2k/2k+1\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The early return for an em...
null
TheHPXProject__hpx__7211
TheHPXProject/hpx
7,211
defect
ac34da28fad5b9702b2e43cf5d1cf88bf517e904
2b0eb46eacf26d9cfe2bb77d959bae7179efb7b9
[parallel] Fix incorrect return types in max_element and minmax_element parallel reduction
## Problem `max_element::sequential_minmax_element_ind` and `minmax_element::sequential_minmax_element_ind` had incorrect return types in the parallel reduction phase. These functions are invoked **exclusively within the parallel execution path**, when `positions.begin()` (an iterator-of-iterators) is reduced to ...
diff --git a/libs/core/algorithms/include/hpx/parallel/algorithms/minmax.hpp b/libs/core/algorithms/include/hpx/parallel/algorithms/minmax.hpp index 1329bce1d0c6..853c79bbb494 100644 --- a/libs/core/algorithms/include/hpx/parallel/algorithms/minmax.hpp +++ b/libs/core/algorithms/include/hpx/parallel/algorithms/minmax.h...
1
1
1
[{"id": "G0", "claim": "Remove the unneeded #include <hpx/parallel/container_algorithms/minmax.hpp> from the new test file, which causes the reported compilation errors.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
TheHPXProject__hpx__7215
TheHPXProject/hpx
7,215
defect
2dbdb70bb8a5e91767d8890962f65801686d1684
47a19754998391ceb7fe450e706af859236b6ebc
Implement hpx::experimental::for_each_index (P4150R0)
Fixes #7214 # Description This PR introduces `hpx::experimental::for_each_index`, an implementation of the multidimensional index-based for-each algorithm proposed in ISO C++ proposal [P4150R0](https://wg21.link/p4150). The algorithm iterates over the domain defined by the extents of a layout mapping and calls...
diff --git a/libs/core/algorithms/CMakeLists.txt b/libs/core/algorithms/CMakeLists.txt index 1b880638f24d..e54b4c1b1faa 100644 --- a/libs/core/algorithms/CMakeLists.txt +++ b/libs/core/algorithms/CMakeLists.txt @@ -54,6 +54,7 @@ set(algorithms_headers hpx/parallel/algorithms/fill.hpp hpx/parallel/algorithms/f...
15
14
4
[{"id": "G0", "claim": "In the primary template simple_mapping<Rank>, the defaulted default constructor would attempt to default-initialize ext_ (whose type simple_extents<Rank> has no default constructor) for Rank > 0; remove it from the primary template or constrain it to rank 0 to avoid misuse and confusing diagnost...
null
TheHPXProject__hpx__7230
TheHPXProject/hpx
7,230
defect
37c665c4e42f433bd07c9cd815c585b071926d21
264e948c6b4ab00503de5d35ed4085b6ab701ab2
algorithms: expose Proj parameter in hpx::min/max/minmax_element CPOs
## Summary This PR exposes the `Proj` (projection) parameter in the public Customization Point Objects (CPOs) for `hpx::min_element`, `hpx::max_element`, and `hpx::minmax_element`. Previously, while the internal `detail` layer supported projections, the public parallel CPO overloads hardcoded `hpx::identity_v`...
diff --git a/libs/core/algorithms/include/hpx/parallel/algorithms/minmax.hpp b/libs/core/algorithms/include/hpx/parallel/algorithms/minmax.hpp index c5201888dced..e684e22b2ee6 100644 --- a/libs/core/algorithms/include/hpx/parallel/algorithms/minmax.hpp +++ b/libs/core/algorithms/include/hpx/parallel/algorithms/minmax.h...
1
1
1
[{"id": "G0", "claim": "The pull request should not add a non-standard Proj parameter to the public hpx:: namespace algorithm CPOs (min_element/max_element/minmax_element, is_partitioned, is_sorted); those APIs should keep matching the std:: signatures, which expose no projection.", "category": "design", "verdict": "su...
null
ThePhD__sol2__476
ThePhD/sol2
476
defect
eef1a32eef4b22bfb9ef8d203b83727aa09404c4
f20e21db635c9a1bff701353067d83d0303c2e7d
Large integer support
This PR adds large integer support for x86 and integer misrepresentation detection for x86/x64. sol2 will still try to use lua_Integer wherever it is safe to do so, only when the value can't possibly fit in lua_Integer, it uses lua_Number as fallback with optional runtime checks to make sure the floating point value s...
diff --git a/.travis.yml b/.travis.yml index bc9e5f589..0b5224cd8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -86,6 +86,29 @@ matrix: - ninja-build - libluajit-5.1-dev + # gcc-5:i386 + - os: linux + env: COMPILER=g++-5 LUA_VERSION=luajit51:i386 + compiler: gcc + install: +...
3
3
1
[{"id": "G0", "claim": "Runtime number-precision checks should be gated behind SOL_CHECK_ARGUMENTS rather than being unconditionally active.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Calling lua_isinteger followed by lua_tointeger is a slight ineffi...
null
ThePornDatabase__namer__42
ThePornDatabase/namer
42
defect
f31deb721b24a6a24fcf703520178f9ec6251ff8
930ac11117c825b5ee0e47d257a584a89c2945f2
decouple server from namer, reuse for a tpdb fake
Decouple webserver from namer for easy reuse. Reuse webserver to make a ParrotWebserver. Use ParrotWebserver for a fake tpdb for testing. Todo: finish configuring response from fake tpdb update the test to use Fake_tpdb.
diff --git a/namer/types.py b/namer/types.py index fa695c07..797ca5c6 100644 --- a/namer/types.py +++ b/namer/types.py @@ -16,8 +16,10 @@ from typing import List, Optional, Sequence from loguru import logger -from pathvalidate import Platform, sanitize_filename -from requests_cache import BACKEND_CLASSES, BaseCache...
3
3
0
[{"id": "G0", "claim": "The tests' browser setup should not rely on the chrome-specific module-level globals but instead configure each browser per-browser as suggested (e.g. the aliased-import style shown), since the reviewer runs Edge on Windows.", "category": "design", "verdict": "supported", "priority": "P2", "scop...
null
TheR1D__shell_gpt__107
TheR1D/shell_gpt
107
defect
caa4fbfb8e8d9bc50ef337510f33eb6eb94238eb
1d6cad0e60da181d599be09dfb973be3c1d1d592
Added Real time streaming and Improvements
- [Created .gitignore](https://github.com/TheR1D/shell_gpt/commit/d6df210332641356936cb05d05260dc7bc8e787a) - [Added system role](https://github.com/TheR1D/shell_gpt/commit/631c435c096031ebda80afafe4ba8a56564e3cf9) and [Better prompts](https://github.com/TheR1D/shell_gpt/commit/c9dc106fb5feb259351117e1c62348adda7a2073...
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..3ad810b2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,132 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs...
10
10
6
[{"id": "G0", "claim": "Remove the committed .gitignore, since ignore rules are very specific to each user and a personal .gitignore (git config core.excludesFile) solves this.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Lowering the temperat...
null
TheR1D__shell_gpt__195
TheR1D/shell_gpt
195
defect
239f39a54baa9f8c75e398cfa155f4a3dbdaa248
e6e3e7e22063dd3197dcaab1ad18a7c8924fc686
Shell integrations
Implementation of #194 . The key-binding is Control+Space, which doesn't conflict on zsh nor bash. I decided most commands *sgpt* spits out are good enough to execute directly without supervision. This makes the natural language interface really make it feel like an English shell. However, there are two hacks when e...
diff --git a/sgpt/.gitignore b/sgpt/.gitignore new file mode 100644 index 00000000..68bc17f9 --- /dev/null +++ b/sgpt/.gitignore @@ -0,0 +1,160 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +d...
11
6
6
[{"id": "G0", "claim": "There should be some indication of the current mode, e.g. by implementing a ps1_toggle that modifies the prompt when modes are switched.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "At some point the shell integration acts like ...
null
TheR1D__shell_gpt__393
TheR1D/shell_gpt
393
defect
a9bebab77805616eca3032c4ba02d9bc50cf6f39
5d6a51e48f8f751b353a31299ba0a29feb15f6c0
Add Multiline REPL feature
Allow users to insert multiple lines to a REPL input, useful for copypasting large inputs and better usability. For multiline inputs, press '"""' and enter your prompt and exit the prompt with '"""'. ![image](https://github.com/TheR1D/shell_gpt/assets/55632837/ac865bf2-5845-4efb-b832-677754c42720) Resolves ...
diff --git a/sgpt/handlers/repl_handler.py b/sgpt/handlers/repl_handler.py index 12d02c71..3b58c8d0 100644 --- a/sgpt/handlers/repl_handler.py +++ b/sgpt/handlers/repl_handler.py @@ -14,6 +14,20 @@ class ReplHandler(ChatHandler): def __init__(self, chat_id: str, role: SystemRole) -> None: super().__init__...
3
2
1
[{"id": "G0", "claim": "Trigger multiline input with the well-known Python triple-quote `\"\"\"` syntax (with `...` indicating multiline mode) instead of `{`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the \"Entering REPL multiline mode...\" i...
null
TheR1D__shell_gpt__394
TheR1D/shell_gpt
394
defect
a9bebab77805616eca3032c4ba02d9bc50cf6f39
c105a427246473ee7eefcba8131bbd68286e48ed
Add option the check version of sgpt
Add an option to check the version of `sgpt` using `--version` or `-v`. Resolves #161 ![image](https://github.com/TheR1D/shell_gpt/assets/26190375/a12f4f49-cfb0-4ccc-b81f-bb0f565825a5)
diff --git a/pyproject.toml b/pyproject.toml index 4da8829f..f127e289 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,7 @@ dev = [ ] [tool.hatch.version] -path = "sgpt/__init__.py" +path = "sgpt/version.py" [tool.hatch.build.targets.wheel] only-include = ["sgpt"] diff --git a/sgpt/__init__.py b/sg...
2
2
1
[{"id": "G0", "claim": "Rename the new module `sgpt/version.py` to `sgpt/__version__.py`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `[tool.hatch.version]` path in pyproject.toml must be changed to `sgpt/__version__.py` as well, to match the rena...
null
TheR1D__shell_gpt__444
TheR1D/shell_gpt
444
defect
d908d1d3704d46f114b43edce84814cda2038a4d
3899b72fe7b19f6127b3d8286f79b5e0fd9aedd2
Fix #422: Markdown formatting for chat history
![20240114_07h42m31s_grim](https://github.com/TheR1D/shell_gpt/assets/4934853/908908e6-afca-475e-a9fe-efd621dc8a7e)
diff --git a/sgpt/handlers/chat_handler.py b/sgpt/handlers/chat_handler.py index 9919df56..4ad91f56 100644 --- a/sgpt/handlers/chat_handler.py +++ b/sgpt/handlers/chat_handler.py @@ -1,6 +1,8 @@ import json from pathlib import Path from typing import Any, Callable, Dict, Generator, List, Optional +from rich.console ...
2
2
2
[{"id": "G0", "claim": "Markdown rendering should be applied only for \"default\" role conversations, since with --code conversations the output is pure text and markdown skips \\n and prints multiple lines of code on one line.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
TheR1D__shell_gpt__569
TheR1D/shell_gpt
569
defect
20405b2ed23984f6467b8b0efae4ada3dd9c7f65
fe88db69fb0ecb6b6f37bc06fd5eb2e7ee7dfbad
Adopt to new function calling format - allow function calling on Groq & other non-openai models
Update function calling to use the new 'tool use' format. This format is compatible with litellm proxies, groq, etc.
diff --git a/sgpt/function.py b/sgpt/function.py index ed4c99a5..aee653fc 100644 --- a/sgpt/function.py +++ b/sgpt/function.py @@ -2,7 +2,7 @@ import sys from abc import ABCMeta from pathlib import Path -from typing import Any, Callable, Dict, List +from typing import Any, Callable, Dict, List, Union from .config...
2
2
2
[{"id": "G0", "claim": "When the functions folder is empty, sgpt fails with the OpenAI API error \"'tool_choice' is only allowed when 'tools' are specified\"; add an `if functions:` condition so tool_choice and tools are only sent when functions exist.", "category": "correctness", "verdict": "supported", "priority": "P...
null
TheR1D__shell_gpt__94
TheR1D/shell_gpt
94
defect
caa4fbfb8e8d9bc50ef337510f33eb6eb94238eb
ce833b4fb28c5c48631db32c517c27dad1c379b2
Implementation of interactive mode
This pull request adds a new interactive mode to `sgpt`, which can be accessed using the `--interactive` or `-i` command line options. With this feature, users can interact with sgpt in a more dynamic way, and it works seamlessly with both the `--shell` and `--code` options. This makes it possible to refine shell comma...
diff --git a/setup.py b/setup.py index c4c16acd..e227b728 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ # pylint: disable=consider-using-with setup( name="shell_gpt", - version="0.7.3", + version="0.7.4", packages=find_packages(), install_requires=[ "typer~=0.7.0", diff --git a/sg...
7
5
1
[{"id": "G0", "claim": "Instead of requiring the user to type r<Enter> before each revision, the interactive mode could enter revision mode automatically and use special commands to break out of it (execute, quit).", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "c...
null
Theano__Theano__3318
Theano/Theano
3,318
defect
00f184d50a982f5cb89fd75a2825bf9a6aa6fd08
4940bb33f4cc45e09caa103628471bf3b2e995cb
Numpy-like interface for stack.
Fixes #3182
diff --git a/doc/library/tensor/basic.txt b/doc/library/tensor/basic.txt index 89f351e7b2c..dfcbafdef25 100644 --- a/doc/library/tensor/basic.txt +++ b/doc/library/tensor/basic.txt @@ -583,6 +583,20 @@ dimensions, see :meth:`_tensor_py_operators.dimshuffle`. :type n_ones: int :type n_ones: number of dimension...
9
7
3
[{"id": "G0", "claim": "Docstring parameter format is inconsistent across Theano, and the new stack docstring should be rewritten in the 'Parameters ----------' style.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Calling the new interface as sta...
null
Theano__Theano__3790
Theano/Theano
3,790
defect
725b7a3f34dd582f9aa2071a5b6caedb3091e782
61d11637f022d0010170ec5524b3704433ca4017
set_subtensor GPU realizations
GpuAdvancedSubtensor1 c_code for ndim==1 (was only 2 and 3) GpuAdvancedIncSubtensor1 and GpuAdvancedIncSubtensor1_dev20 work for set, not just inv partial implementation of https://github.com/Theano/Theano/issues/861
diff --git a/theano/sandbox/cuda/basic_ops.py b/theano/sandbox/cuda/basic_ops.py index b2a8d3b31a2..9ce79e1b7df 100644 --- a/theano/sandbox/cuda/basic_ops.py +++ b/theano/sandbox/cuda/basic_ops.py @@ -2710,7 +2710,7 @@ def make_node(self, x, ilist): raise TypeError('cannot index into a scalar') ...
2
2
2
[{"id": "G0", "claim": "The c_code_cache_version value should be raised since the C code was changed, otherwise the compile cache becomes inconsistent.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a test for GPU set_subtensor in theano/sandbox...
null
Theano__Theano__4168
Theano/Theano
4,168
defect
0900b662f82948b9fb1445f281bcdfa6367dfedd
fe7d322d60f0b1e930a4727e8364d25935fc6b80
Fix nan handling in output buffer for CGemv
This fixes #3887
diff --git a/theano/tensor/blas_c.py b/theano/tensor/blas_c.py index ad33d902bfd..82c5538bdb4 100644 --- a/theano/tensor/blas_c.py +++ b/theano/tensor/blas_c.py @@ -1,5 +1,3 @@ -import numpy - from theano import config from theano.tensor.opt import in2out @@ -8,7 +6,6 @@ from theano.tensor.blas import Ger, ger, ge...
1
1
0
[{"id": "G0", "claim": "The gemv C code still uses the pre-rename object names: the comment says 'aa' where the variable is now named 'y', the comment says 'length-0 x' where the matrix is now named 'A', and an error message above still mentions 'xx' — these should be updated to the new names.", "category": "documentat...
null
Theano__Theano__4669
Theano/Theano
4,669
defect
a3bbfb8c700c9be1803da785a7f8d0f76f25448b
031400a6d874fbb01c869d1fb6bcee98332af1c5
Partial evaluation in CVM
I started to implement partial evaluation in CVM. I didn't do the `output_keys` yet, just the partial evaluation when the `output_subset` is a list of indices. Could you take a look? Tries to fix #4624.
diff --git a/theano/gof/lazylinker_c.c b/theano/gof/lazylinker_c.c index 4662f8bf2b4..8482f8f4506 100644 --- a/theano/gof/lazylinker_c.c +++ b/theano/gof/lazylinker_c.c @@ -789,14 +789,35 @@ CLazyLinker_call(PyObject *_self, PyObject *args, PyObject *kwds) { CLazyLinker * self = (CLazyLinker*)_self; static char ...
4
4
4
[{"id": "G0", "claim": "In CLazyLinker_call, raise a catchable Python error with a useful message instead of using C asserts when output_subset is not a list or its elements are not ints.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer q...
null
Theano__Theano__4763
Theano/Theano
4,763
defect
d5944c965c453558ef834b439b671e0c01530b3c
a5bd90b95d372c83a42c4f1aba324215108d1ead
Gpuadvsub
Finish the work in #4396 Fixes #3166
diff --git a/theano/gpuarray/opt.py b/theano/gpuarray/opt.py index 76a10deaed9..5e8e001b84b 100644 --- a/theano/gpuarray/opt.py +++ b/theano/gpuarray/opt.py @@ -50,6 +50,7 @@ from .elemwise import (GpuElemwise, GpuDimShuffle, GpuCAReduceCuda, GpuCAReduceCPY, gpu_ca_reduce_cuda) from .subtensor...
4
3
2
[{"id": "G0", "claim": "The new AdvancedSubtensor lifter should be updated to also work with the new GraphToGpu optimizer by adding a register_opt2 registration with the (op, context_name, inputs, outputs) signature.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
Theano__Theano__4996
Theano/Theano
4,996
defect
260fc9a7af181dde0cd9c8f411bbdf3e4894f4c6
3c16e57e87f2c1954f130bab5faf38d202709fc5
Scan with Checkpoints (part 2)
Fixes #4124. This is the following of @carriepl PR #4271 #### TODO - [x] Write the documentation. - [x] Finish the tests. - [x] Write the docstring.
diff --git a/doc/library/scan.txt b/doc/library/scan.txt index d772bbab2a6..828dcd35012 100644 --- a/doc/library/scan.txt +++ b/doc/library/scan.txt @@ -529,6 +529,38 @@ As a rule, scan always expects the condition to be the last thing returned by the inner function, otherwise an error will be raised. +Reduce Scan...
10
9
7
[{"id": "G0", "claim": "The function should not reuse scan's output interface: the `return results, updates # TODO is it a bug?` line should be removed so the user can only use the last timestep and does not lose the memory savings.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"},...
null
Theano__Theano__5038
Theano/Theano
5,038
defect
a116149c813aa05d7cc8c35fa0e9ed41c7671764
fb64d1c3a4041b82a2b9042535a047984f52bfc5
Gpu multinomial more dtypes
Allowing GPUArray multinomial op to handle more dtypes. Fixes #4455
diff --git a/theano/gpuarray/multinomial.py b/theano/gpuarray/multinomial.py index 14916557025..424fc1492c3 100644 --- a/theano/gpuarray/multinomial.py +++ b/theano/gpuarray/multinomial.py @@ -52,11 +52,6 @@ def make_node(self, pvals, unis): odtype = pvals.dtype else: odtype = self.od...
2
1
0
[{"id": "G0", "claim": "The leftover note 'I need to figure out how to convert from numpy dtypes to c datatypes' should be dropped, since the reviewer believes the author already found that conversion and used it in the other op.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intro...
null
Theano__Theano__5175
Theano/Theano
5,175
defect
2e06c87eb99953e4b99712c56465f822c9e02da2
02b76031f3bc76058771744eaf7159138bef5ba7
Fix grad of elemwise with boolean inputs.
Fixes #5171 and https://github.com/pymc-devs/pymc3/issues/1496
diff --git a/theano/tensor/elemwise.py b/theano/tensor/elemwise.py index a2faf6da31c..c838440ac72 100755 --- a/theano/tensor/elemwise.py +++ b/theano/tensor/elemwise.py @@ -9,6 +9,7 @@ import theano from theano import gof from theano.compat import izip +from theano.configparser import change_flags from theano.gof i...
2
2
1
[{"id": "G0", "claim": "The integer-output condition in Elemwise.grad would be more clearly written as `if any(out.type.dtype not in theano.tensor.continuous_dtypes for out in outs)`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fix to gra...
null
Theano__Theano__5321
Theano/Theano
5,321
defect
98a120b42a6e90236257c7dea44920d336285069
46eaf9dfb27dc34e0db91aa18ee499c37325c466
unstable commit-fixed perform on gpujoin
Hi @nouiz , fix #5253 , I tried to apply the same logic for GPU. I fixed the perform function and it seems to work as expected but I can not do the test as before. The reason is that we were checking if the same object is passed to the output. Since the numerical values are converted to ```<type 'pygpu.gpuarray.GpuArr...
diff --git a/theano/gpuarray/basic_ops.py b/theano/gpuarray/basic_ops.py index 1bcf554e10f..dd0d229ca13 100644 --- a/theano/gpuarray/basic_ops.py +++ b/theano/gpuarray/basic_ops.py @@ -1245,8 +1245,27 @@ class GpuJoin(HideC, Join): """ _f16_ok = True + __props__ = ("view",) params_type = gpu_context...
2
2
1
[{"id": "G0", "claim": "GpuJoin should not keep commented-out __str__/__setstate__ stubs or define its own __str__; remove them and instead change the parent Join.__str__ to use self.__class__.__name__ so it prints the correct class name (the removal of the now-real GpuJoin.__str__ was re-asked later).", "category": "m...
null
Theano__Theano__5336
Theano/Theano
5,336
defect
ad1310c88830ed96119194c4f2da22b9b37c7622
6b504935bbe52ed80dede7e4f70b3abd00a13453
Use a default value compatible with broadcastable of type
Fix #4834. Test still missing
diff --git a/theano/scan_module/scan_op.py b/theano/scan_module/scan_op.py index c931e2f4010..23255f5da97 100644 --- a/theano/scan_module/scan_op.py +++ b/theano/scan_module/scan_op.py @@ -773,8 +773,11 @@ def make_thunk(self, node, storage_map, compute_map, no_recycling, # function exectution....
1
1
0
[{"id": "G0", "claim": "Remove the print statement from the new test_default_value_broadcasted test; prints are not wanted in this project's tests.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Theano__Theano__5398
Theano/Theano
5,398
defect
5b7edbde2038060f6f6f59ed440eee22771506a2
80d4a07e6209575d51e7ffe00baf6a28fe7b0617
Implement conv2d_transpose convenience function
Fixes #3989. @lamblin would you mind having a look?
diff --git a/theano/gpuarray/tests/test_abstractconv.py b/theano/gpuarray/tests/test_abstractconv.py index 680977089a6..292fe3266f5 100644 --- a/theano/gpuarray/tests/test_abstractconv.py +++ b/theano/gpuarray/tests/test_abstractconv.py @@ -252,3 +252,12 @@ def setUp(self): self.constant_tensor = gpuarray.arra...
8
7
3
[{"id": "G0", "claim": "The conv2d_transpose unit test fails in FAST_COMPILE mode because the unoptimized Op has no perform; lamblin asked the author to pick one of three fixes (force FAST_RUN, skip, or exclude the CorrMM/AbstractConvCheck optimizations) and favored excluding the optimizations.", "category": "correctne...
null
Theano__Theano__5412
Theano/Theano
5,412
defect
fcdd8c777485b15df107324d71e1b489786a4266
3b1b4afefceb617061ccccb3585c2f3a7f892609
Fix theano scripts on windows
Use the entry_points/console_scripts feature of `setup.py` to make theano scripts installed when running `pip install`. These step are done to fix #5308. The bin folder containing the scripts is now importable from Python, with each script embedding its code into a `main()` function specified as the entry point of t...
diff --git a/bin/__init__.py b/bin/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/bin/theano-cache b/bin/theano-cache deleted file mode 100755 index a5cfdfbdf37..00000000000 --- a/bin/theano-cache +++ /dev/null @@ -1,85 +0,0 @@ -#!/usr/bin/env python -from __future__ import print_function ...
4
3
2
[{"id": "G0", "claim": "lamblin questions whether the setup.py console_scripts entry_points (module paths like bin.theano_cache:main) actually work when the current directory is not the Theano directory, suspecting bin is treated as a package name and the scripts would have to be moved inside the theano package.", "cat...
null
Theano__Theano__5417
Theano/Theano
5,417
defect
c0b247621893f174c24e6e1e27a26a408d432603
00a374a7583b2cf73e95de4b9042f5e507b33525
make tensor.join() return the input when there is only 1 variable to join.
fix #4897 , join function is added so that we can check the number of tensors that are to concatenate. The test is also added which tests two cases. One where there are several tensors for concatenation and the other with only one tensor.
diff --git a/theano/tensor/basic.py b/theano/tensor/basic.py index 336dd06b718..0e01663bc55 100644 --- a/theano/tensor/basic.py +++ b/theano/tensor/basic.py @@ -4162,7 +4162,12 @@ def infer_shape(self, node, ishapes): return [tuple(out_shapes)] -""" +join_ = Join() +pprint.assign(Join, printing.FunctionPri...
2
2
0
[{"id": "G0", "claim": "Add a note to the join() docstring saying that this function won't add the op in the graph when it is not useful.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Simplify test_join_oneInput by not building a FunctionGraph, a...
null
Theano__Theano__5427
Theano/Theano
5,427
defect
598991d76d2764ab7411c5dc5a2dcc59e3ef55ea
56a3944520cf78adea8323ac803b12fe964e8068
Add user warning to prevent issue #5143
This does not fix #5143 but helps user prevent this issue. For 3D convolutions, cuDNN currently provides 2 algorithms to compute backward filter step: algo 0 (`CUDNN_CONVOLUTION_BWD_FILTER_ALGO_0`) and algo 3 (`CUDNN_CONVOLUTION_BWD_FILTER_ALGO_3`). In theano unit tests, when theano flag `dnn.conv.algo_bwd_filter` i...
diff --git a/theano/gpuarray/dnn.py b/theano/gpuarray/dnn.py index c604615366c..e624c0048d4 100644 --- a/theano/gpuarray/dnn.py +++ b/theano/gpuarray/dnn.py @@ -1135,6 +1135,11 @@ def dnn_conv3d(img, kerns, border_mode='valid', subsample=(1, 1, 1), desc_op.subsample) out_shp = ...
4
4
2
[{"id": "G0", "claim": "Remove the \"[new backend]\" (and likewise the old-backend) prefix from the warning message, as it does not help users.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The warning condition is too broad: the error only happe...
null
Theano__Theano__5443
Theano/Theano
5,443
defect
5be27af0c68c6586baf5565a29fa9b2bb67d875f
cee897024a5f0655aba1a8da2a68ca4087d90c6b
Added broadcast check in scan.
Adresses #5224 and fix #5384 I added an error message (it is still unclear for the moment), and a small test with the failure case.
diff --git a/theano/scan_module/scan_op.py b/theano/scan_module/scan_op.py index e2cf90602f2..af6a10be3d6 100644 --- a/theano/scan_module/scan_op.py +++ b/theano/scan_module/scan_op.py @@ -402,6 +402,32 @@ def make_node(self, *inputs): 'by using dimshuffle or shape_padleft. ' )...
3
2
2
[{"id": "G0", "claim": "Remove the stray word \"that\" from the _check_broadcast docstring.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The broadcast check should be called before format() for the handling of output_info only, not inside format...
null
Theano__Theano__5616
Theano/Theano
5,616
defect
bcf2d7dca71937453f3f6d1b3edddd6d2ad18ef7
2ce0646e263ad182edb2c9e0dbdf6f29c4efadbc
Explicitly specify the output ndim in reshape
The whole code expects the shape to be of length 4, and the output to be 4D already. Fixes #5613.
diff --git a/theano/tensor/nnet/neighbours.py b/theano/tensor/nnet/neighbours.py index 8dea99425af..7167e535e4c 100644 --- a/theano/tensor/nnet/neighbours.py +++ b/theano/tensor/nnet/neighbours.py @@ -620,7 +620,7 @@ def neibs2images(neibs, neib_shape, original_shape, mode='valid'): valid_shape = list(original...
1
1
1
[{"id": "G0", "claim": "list(original_shape) will fail when original_shape's length cannot be determined.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Theano__Theano__5665
Theano/Theano
5,665
defect
acd4a90f040ef85554e827d70e5357f537780c6b
991f0ceae218ec1bdcda497d49e9f106de1e8d1e
Optimization to remove upcast in local_cast_cast
fix #949 I've made a list of pairs of data types that would constitute an upcast, in **opt.py** in the function _upcast_ Function _local_cast_cast_ has been updated accordingly.
diff --git a/theano/tensor/opt.py b/theano/tensor/opt.py index cf0dc200c6f..fdfb88891d0 100644 --- a/theano/tensor/opt.py +++ b/theano/tensor/opt.py @@ -2204,7 +2204,7 @@ def local_cast_cast(node): when those contrain: dtype1 == dtype2 - TODO: the base dtype is the same (int, uint, float, complex) + O...
9
7
4
[{"id": "G0", "claim": "The new upcast-removal logic needs tests in the T_cast_cast class of tensor/tests/test_opt.py, covering the mixed-dtype case and a case where the optimization should not apply.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add c...
null
Theano__Theano__5688
Theano/Theano
5,688
defect
cfd45e242f2ed796abb0669b7ce6dc8579ae37c7
661be5b763fc19d09f791ab66fa2c72d1e1c7fa9
gpuarray: keep stack trace
for #4115 @lamblin - [x] Follow up: Document: Variable.notify_construction_observers
diff --git a/theano/gpuarray/opt.py b/theano/gpuarray/opt.py index 23d2560edb9..c2f5e8e5bb1 100644 --- a/theano/gpuarray/opt.py +++ b/theano/gpuarray/opt.py @@ -15,6 +15,7 @@ from theano.gof import (local_optimizer, EquilibriumDB, TopoOptimizer, LocalGroupDB, SequenceD...
5
4
1
[{"id": "G0", "claim": "In local_gpu_contiguous_gpu_contiguous the added `if not getattr(inp.tag, 'trace', None)` guard is redundant because copy_stack_trace already handles a missing trace, so the PR should be able to skip the `if`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "i...
null
Theano__Theano__5775
Theano/Theano
5,775
defect
44f7578c16e7b991c06e373d470d9889c2729844
e77343db4f81daf50e44b1fc5dd2282c567490b5
Correct gradient of scan until.
Fixes #5439 Still work in progress. I made a few changes. There is one test failing: `test_grad_multiple_outs_some_truncate`. I will investigate it.
diff --git a/theano/scan_module/scan_op.py b/theano/scan_module/scan_op.py index bb4a26026e4..5124c9294ae 100644 --- a/theano/scan_module/scan_op.py +++ b/theano/scan_module/scan_op.py @@ -2198,7 +2198,7 @@ def compute_all_gradients(known_grads): dC_dinps_t[dx + self.n_seqs] += dC_dXtm1 # Cons...
8
6
3
[{"id": "G0", "claim": "Combine the two subtensor operations into the single slice x[grad_steps-1::-1] instead of slicing twice and relying on Theano's optimization to clean it up.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The suggested combine...
null
Theano__Theano__5785
Theano/Theano
5,785
defect
bd1a12ed706a4ef1a2e1b8f06565737a37eafb99
17666684aed0c4720881943f9e4fd0c3837e3671
inc to set for zeros
fix #5094
diff --git a/theano/tensor/opt.py b/theano/tensor/opt.py index 0720b0f53cf..11ee37c7d2a 100644 --- a/theano/tensor/opt.py +++ b/theano/tensor/opt.py @@ -1,6 +1,5 @@ from __future__ import absolute_import, print_function, division -""" -Tensor optimizations addressing the ops in basic.py. +""" Tensor optimizations addr...
2
2
0
[{"id": "G0", "claim": "The new optimizer function should be named with a leading local_ (the opt name should start by local_).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comments in theano/tensor/subtensor.py (around line 581) should be...
null
Theano__Theano__5817
Theano/Theano
5,817
defect
8e29249361c2177969d4101163b3dca4f1a7bec1
356b55f2cba9e178847ce3a98e0de823d7a34a15
Add covariance matrix function theano.tensor.cov
I added a simple function theano.tensor.cov using existing theano functions so that it may run on a GPU. This is is modeled after np.cov but matches only one of it's function signatures. These guys helped me figure this out! Olexa Bilaniuk @obilaniu Zhouhan Lin @hantek
diff --git a/theano/tensor/basic.py b/theano/tensor/basic.py index 682c8b7f1e0..6b705caa89b 100644 --- a/theano/tensor/basic.py +++ b/theano/tensor/basic.py @@ -2168,6 +2168,67 @@ def sqr(a): square = sqr +def cov(X, y=None, rowvar=True, bias=False, ddof=None, fweights=None, aweights=None): + """Calculate the c...
5
4
3
[{"id": "G0", "claim": "The cov function's interface should be made more similar to numpy.cov, ideally mimicking its full functionality (m, y, rowvar, bias, ddof, and the weight arguments) rather than the minimal cov(a).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
Theano__Theano__5903
Theano/Theano
5,903
defect
b6a4757f5253fd4cab34bb329ad8f83a36583d94
6f2499025aa8154f97c25b3252850a4d94048e89
[BUG,CRASH] Fix crash in GPU advanced indexing with no arrays
Fixes #5898.
diff --git a/theano/gpuarray/subtensor.py b/theano/gpuarray/subtensor.py index b0cd4e96d1d..370db6c715d 100644 --- a/theano/gpuarray/subtensor.py +++ b/theano/gpuarray/subtensor.py @@ -544,6 +544,12 @@ def perform(self, node, inputs, out_): idx_ = ([slice(None)] * p + nidx[p:]) x = x.__getitem__(idx_)...
2
2
1
[{"id": "G0", "claim": "The new p == 0 early return sets out[0] = x, which may be a view aliasing the input since no view_map is set.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CPU Op's advanced indexing perform appears to have the same alia...
null
Theano__Theano__5942
Theano/Theano
5,942
defect
22eaec56111a8fc3fd10a20aafd5b24e08c52f22
bae4eb91f3e8d09acd6c8240a56ef6fe938d9c66
Added mode 'half', 'full' to Images2Neibs. Tests pass.
close #5938
diff --git a/theano/gpuarray/neighbours.py b/theano/gpuarray/neighbours.py index c02b67fb820..0f9966c834e 100644 --- a/theano/gpuarray/neighbours.py +++ b/theano/gpuarray/neighbours.py @@ -23,9 +23,9 @@ class GpuImages2Neibs(GpuKernelBase, Images2Neibs, Op): """ def __init__(self, mode='valid'): - if...
8
8
3
[{"id": "G0", "claim": "The new test test_neibs_half_step_by_valid only calls close.eval(), so with Theano tests meant to run with device=cpu it will not run on the GPU; it should compile with theano.function() and pass mode=self.mode.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
Theano__Theano__6005
Theano/Theano
6,005
defect
b6b5f4d13fed85eea0eb95fb67ed5fe81dfcae37
5991946755520dd7f8f3b4506b06a9d0d3ab68fa
Fix min function to work with uint* and bool
fix #5791
diff --git a/theano/tensor/basic.py b/theano/tensor/basic.py index 50cf6e17324..9ca1eca7a23 100644 --- a/theano/tensor/basic.py +++ b/theano/tensor/basic.py @@ -1715,6 +1715,11 @@ def min(x, axis=None, keepdims=False): str_x_type = str(x.dtype) if str_x_type.startswith('float') or str_x_type in int_dtypes: ...
2
2
2
[{"id": "G0", "claim": "The new uint/bool support in min/argmin needs tests, extending T_argmin_argmax and T_min_max in theano/tensor/tests/test_basic.py.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "min on unsigned dtypes upcasts the result to a high...
null
Theano__Theano__6030
Theano/Theano
6,030
defect
1a7b89955520b0a0f73bfe1da0421797daad4fa7
9f88138231d64798e4c4828a2db56e0f0486d169
Add lifter for CrossentropyCategorical1Hot and grad
Fix #5036. Unfortunately, there is no easy way of introducing the GPU Ops for subtensor and inc_subtensor directly, so they have to be cleaned up in a later pass. I did not see GpuAdvancedSubtensor or even AdvancedIncSubtensor to be an issue in practice, it did not even register in the profile. It could be differ...
diff --git a/theano/gpuarray/opt.py b/theano/gpuarray/opt.py index 6d70c7fdb05..e6e818d3242 100644 --- a/theano/gpuarray/opt.py +++ b/theano/gpuarray/opt.py @@ -19,6 +19,7 @@ from theano.misc.ordered_set import OrderedSet from theano.scalar.basic import Scalar, Pow, Cast +from theano.scalar.basic import log, neg, t...
1
1
0
[{"id": "G0", "claim": "Remove the leftover `theano.printing.debugprint(f, print_type=1)` line from the new test_crossentropycategorical1hot_lifter test.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Theano__Theano__6050
Theano/Theano
6,050
defect
e679cd14387900a05bf97f6f6484972296a12a72
bf953097f4f3f11ce19cd56a6e7c725b548189fd
Scaled Exponential Linear Unit (SELU) activation
[Self-Normalizing Neural Networks](https://arxiv.org/abs/1706.02515) - [x] A new activation function called SELU - [x] Unit test
diff --git a/theano/tensor/nnet/__init__.py b/theano/tensor/nnet/__init__.py index 470e7adab26..ae8fc16b2fd 100644 --- a/theano/tensor/nnet/__init__.py +++ b/theano/tensor/nnet/__init__.py @@ -18,7 +18,7 @@ graph_merge_softmax_with_crossentropy_softmax, h_softmax, logsoftmax, logsoftmax_op, prepend_0_to_each_...
3
3
3
[{"id": "G0", "claim": "The selu body unconditionally overrides the alpha parameter from the function signature, so the alpha parameter should be removed from the signature (or the default set there).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "s...
null
Theano__Theano__6059
Theano/Theano
6,059
defect
d51233517debf3a1231a33058d65e8f969db923d
cd23ca8200bdbd7d23e9cead0f4b3940799c76ae
separate copying inputs and copying orphans
This PR has two effects: - `theano.gof.graph.clone_get_equiv` now has better interface with separate options for `copy_inputs` and `copy_orphans` - `theano.gof.graph.clone` now always copies orphans, its `copy_inputs` flag will only affect the inputs, not the orphans This makes it possible to clone a graph includi...
diff --git a/theano/gof/graph.py b/theano/gof/graph.py index d0c7652564e..a50d13f6ead 100644 --- a/theano/gof/graph.py +++ b/theano/gof/graph.py @@ -822,7 +822,7 @@ def clone(i, o, copy_inputs=True): return [equiv[input] for input in i], [equiv[output] for output in o] -def clone_get_equiv(inputs, outputs, cop...
3
3
1
[{"id": "G0", "claim": "The pull request changes clone()'s existing behaviour (copy_inputs=False now still copies orphans because clone_get_equiv's single flag was split), and nouiz asks the PR to keep the old default interface by applying his suggested diff (calling clone_get_equiv(i, o, copy_inputs, copy_inputs)), de...
null
Theano__Theano__6171
Theano/Theano
6,171
defect
ebaef5af9a2888013d188ca441b563b0f48c6191
3327aaddee5a929e9778d8e94b3d7ae649796161
Fix for GpuAdvancedIndexing
Fix the logic for axes reordering. Fix #6152.
diff --git a/theano/gpuarray/subtensor.py b/theano/gpuarray/subtensor.py index 0ae3b1dbc75..2e32f49e9b7 100644 --- a/theano/gpuarray/subtensor.py +++ b/theano/gpuarray/subtensor.py @@ -511,40 +511,48 @@ def perform(self, node, inputs, out_): x = x.reshape(nshp) - narrays = 0 transp = list(r...
1
1
1
[{"id": "G0", "claim": "The new test_adv_grouped test assigns `f` but never calls it (which flake8 flags), so the grouped advanced-indexing behaviour the pull request set out to test is left untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Theano__Theano__6207
Theano/Theano
6,207
defect
b997f389ef4a17d62c9dc169db650622eee6531b
ed99d0bf9deffaea90176ba674322922f3f881ee
Add support for boolean indexing
This would be the easy way of adding support for boolean indexing, as suggested in #5192. It passes the simple tests, but it's not unlikely that there are edge cases that I didn't consider.
diff --git a/doc/library/tensor/basic.txt b/doc/library/tensor/basic.txt index 7a9bfc6da44..e8682196687 100644 --- a/doc/library/tensor/basic.txt +++ b/doc/library/tensor/basic.txt @@ -1109,42 +1109,9 @@ Like NumPy, Theano distinguishes between *basic* and *advanced* indexing. Theano fully supports basic indexing (se...
6
5
1
[{"id": "G0", "claim": "The boolean-detection condition in __getitem__ can be simplified to isinstance(arg, (np.ndarray, theano.tensor.TensorVariable)) and arg.dtype == 'bool'.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "test_boolean should als...
null
Theano__Theano__6221
Theano/Theano
6,221
defect
f62366bcf55336a3155e835ae8bcbc79898b01f6
1bdf1c7d025f2e3ffb8f61332bd2191711b1cfb0
Use E_PADSHAPE flag in GPU Incsubtensor
This needs E_PADSHAPE to be present in libgpuarray.
diff --git a/theano/gpuarray/opt.py b/theano/gpuarray/opt.py index 36d7d24fc73..853bec0c7d9 100644 --- a/theano/gpuarray/opt.py +++ b/theano/gpuarray/opt.py @@ -1095,9 +1095,11 @@ def local_gpua_advanced_incsubtensor1(op, context_name, inputs, outputs): set_instead_of_inc=set_instead_of_inc) -@register...
2
1
1
[{"id": "G0", "claim": "The perform() of the two GPU incsubtensor ops should be updated with the same GE_PADSHAPE fix now that abergeron added the Python interface for it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The first sentence of the new ...
null
Theano__Theano__6267
Theano/Theano
6,267
defect
3e86efecdd8c5d7fe88ef7dff5cf33efcfc4a46a
226976eb0445a9ea9c49fb71bdd0203774303302
3D Grouped Convolutions
Related to https://github.com/Theano/Theano/issues/5621 Tasks: - [x] Implement AbstractConv version - [x] Implement CorrMM version - [x] Implement GPUCorrMM version
diff --git a/theano/gpuarray/blas.py b/theano/gpuarray/blas.py index e5021231949..f9084d3b495 100644 --- a/theano/gpuarray/blas.py +++ b/theano/gpuarray/blas.py @@ -1074,7 +1074,7 @@ class BaseGpuCorr3dMM(CGpuKernelBase): _f16_ok = True def __init__(self, border_mode="valid", subsample=(1, 1, 1), - ...
2
2
1
[{"id": "G0", "claim": "This PR should not spend time making conv3d support group convolution for cudnn; after this PR, a follow-up should update the conv to compile with cudnn v7 and use its native group convolution.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "c...
null
Theano__Theano__6315
Theano/Theano
6,315
defect
4747cf442b50408d2a02f7263396a7c668ad41da
066729930daa17de2567013c8eef8390dc7d1549
Adding tensor6 and tensor7 constructors
The upcoming unshared convolution requires 6D tensors, so I think it would be useful to add those to the list of available tensor constructors. (Is it possible to have too many of those? The list is getting quite long.) Since 3D unshared convolution will need 7D tensors, I've added those as well.
diff --git a/doc/generate_dtype_tensor_table.py b/doc/generate_dtype_tensor_table.py index f66ab587ec1..e65982f6277 100644 --- a/doc/generate_dtype_tensor_table.py +++ b/doc/generate_dtype_tensor_table.py @@ -18,17 +18,19 @@ ('matrix', (False,False)), ('tensor3', (False,False,False)), ('tenso...
1
1
0
[{"id": "G0", "claim": "The generated dtype/tensor documentation table should print long broadcastable tuples like `(False, False, ...)` in the shorter `(False,) * 6` form to make them clearer.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Theano__Theano__6316
Theano/Theano
6,316
defect
4747cf442b50408d2a02f7263396a7c668ad41da
bdceabfd97b7fa8ae9f9937a6d91e690ce66218a
Add unravel_index and ravel_multi_index
These two ops would make the NumPy functions `unravel_index` and `ravel_multi_index` available for Theano arrays. It's a bit annoying that the `unravel_index` function needs an extra `ndim` parameter, because the length of a `Shape` cannot be determined. Is there some clever trick to get the shape of a shape? The `n...
diff --git a/theano/tensor/basic.py b/theano/tensor/basic.py index 651be194f08..9947e2416fd 100644 --- a/theano/tensor/basic.py +++ b/theano/tensor/basic.py @@ -2588,6 +2588,175 @@ def nonzero_values(a): return a.flatten()[flatnonzero(a)] +class UnravelIndex(gof.Op): + __props__ = ('order',) + + def __in...
6
6
2
[{"id": "G0", "claim": "UnravelIndex should handle ndim so a node can be re-created from its inputs — the reviewer suggests adding ndim to the node's inputs, or using ndim=None and inferring the length via get_vector_length as other ops do.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "int...
null
Theano__Theano__6323
Theano/Theano
6,323
defect
2d3ab3b04965654fd7210327919589eafbd59e59
5dc75c1bffd8772867e58653b2906a7f399e8c41
Fix test in the daily buildbot and make sure to don't loose the current linker.
Also allow the flag mode to be an instance of Mode.
diff --git a/theano/compile/debugmode.py b/theano/compile/debugmode.py index 7cbb82d66fc..d258642019d 100644 --- a/theano/compile/debugmode.py +++ b/theano/compile/debugmode.py @@ -10,7 +10,6 @@ import sys import gc import logging -import six.moves.copyreg as copyreg from itertools import chain, product as itertool...
1
1
0
[{"id": "G0", "claim": "The `from nose.plugins.skip import SkipTest` line this PR adds at the top of theano/gpuarray/tests/test_opt.py duplicates the SkipTest import already present below in the file.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Theano__Theano__6332
Theano/Theano
6,332
defect
b998dc61db755d25a81ec5143c67e745499d5f3d
c749cbc6d80fb6ae192c0a1650bdb467c6503907
test optimization in grouped convolution
There seems to be an optimization error for cudnn. Thanks @gvtulder for pointing that out
diff --git a/theano/gpuarray/tests/test_dnn.py b/theano/gpuarray/tests/test_dnn.py index 662ed1213db..06ab26e7bb7 100644 --- a/theano/gpuarray/tests/test_dnn.py +++ b/theano/gpuarray/tests/test_dnn.py @@ -2288,27 +2288,17 @@ def dconvi(kern, topgrad, imshp): class Cudnn_grouped_conv(Grouped_conv_noOptim): - mod...
1
1
1
[{"id": "G0", "claim": "Jenkins CI fails on the flake8 formatting test (theano.tests.test_flake8.test_format_flake8) because of the code this pull request adds.", "category": "style", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
Theano__Theano__6348
Theano/Theano
6,348
defect
a5588fce364c3d6d067affc645dd9f9f31103f6e
8f99cfe449db63d4e4768bac72d579833aa9ab0a
Add DEBUG infos to profile cuDNN convolutions.
This PR adds profiling in C DEBUG mode for cuDNN convolutions. Currently, profiling is added only for `dnn_fwd`, but I am not sure if current code efficiently measures execution time. Even with `CUDA_LAUNCH_BLOCKING=1`, some executions take `0 milliseconds` (see below). I have added a special test class (`TestDnn...
diff --git a/theano/gpuarray/c_code/dnn_conv_base.c b/theano/gpuarray/c_code/dnn_conv_base.c index 576451108ca..5d3f0aff9ec 100644 --- a/theano/gpuarray/c_code/dnn_conv_base.c +++ b/theano/gpuarray/c_code/dnn_conv_base.c @@ -85,6 +85,23 @@ typedef std::unordered_map<std::string, AlgoRec> AlgoCache; #line 87 "dnn_con...
9
6
4
[{"id": "G0", "claim": "The comment above the workspace allocation in dnn_fwd.c is outdated (the cudaMalloc cache means it no longer introduces a sync point), so it should just be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The works...
null
Theano__Theano__6354
Theano/Theano
6,354
defect
078bdfb11f7d66312ccf6db165250db66021aec8
bcff31c92a6f9a8e7ca509cf90497a55b2faafd4
Add data type configuration to algorithms hash for cuDNN convolutions caching system
While running scripts from #5932 , I discovered an error that can be reproduced with following code and master branch: File `test12.py` ```python from __future__ import absolute_import, print_function, division import numpy as np import theano.tests.unittest_tools as utt # Force use of new back-end from theano.g...
diff --git a/theano/gpuarray/c_code/dnn_conv_base.c b/theano/gpuarray/c_code/dnn_conv_base.c index 576451108ca..edc37db461b 100644 --- a/theano/gpuarray/c_code/dnn_conv_base.c +++ b/theano/gpuarray/c_code/dnn_conv_base.c @@ -199,7 +199,7 @@ static std::string shape(cudnnFilterDescriptor_t t, cudnnDataType_t* type) ...
3
1
0
[{"id": "G0", "claim": "The convolution data type should also be part of the cache value, not only the hash key, so that a future extension dynamically choosing pseudo-fp16 vs native fp16 based on time could work.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "clai...
null
Theano__Theano__6362
Theano/Theano
6,362
defect
9592125cdad4cd94605c3844a7f3d6541aa2098e
45f9b15a7cfb89c4ec6f8bddfb8321d65dfe8e4a
fix 3d optimizers for grouped convolutions and add more test cases
addresses https://github.com/Theano/Theano/issues/6360
diff --git a/theano/gpuarray/dnn.py b/theano/gpuarray/dnn.py index b7045e50a49..4b45b92e4c3 100644 --- a/theano/gpuarray/dnn.py +++ b/theano/gpuarray/dnn.py @@ -3266,6 +3266,7 @@ def local_abstractconv3d_cudnn_alt(node): border_mode = node.op.border_mode subsample = node.op.subsample filter_dilation = no...
4
2
0
[{"id": "G0", "claim": "The way the tests check that an optimizer returns None — excluding conv_gemm and conv_dnn and asserting that the meta-optimizer call raises an error — is too roundabout, and testing the individual optimizers directly instead of through the meta-optimizer would be faster and make the None check e...
null
Theano__Theano__6367
Theano/Theano
6,367
defect
a56e6d858e51aac12f8cc47d33188fb9376043a5
5fba95cfdecba351795404f22b293567865ad1e0
Add fallback implementation for BLAS [sd]gemv_.
Try to fix #6365 by adding a fallback implementation for `[sd]gemv_`, inspired from here: http://www.netlib.org/lapack/explore-html/d6/d30/group__single__blas__level2_gafc92361b74c6d41c7e5afa0aa5d13ec9.html#gafc92361b74c6d41c7e5afa0aa5d13ec9 . Tested successfully with `theano/tensor/nnet/tests/test_corr[3d]` with float...
diff --git a/theano/tensor/blas_headers.py b/theano/tensor/blas_headers.py index 5bf71d565de..8311b0217e7 100644 --- a/theano/tensor/blas_headers.py +++ b/theano/tensor/blas_headers.py @@ -731,29 +731,28 @@ def cblas_header_text(): def blas_header_text(): """C header for the fortran blas interface""" - gemm_...
9
7
4
[{"id": "G0", "claim": "The GPU card running the Windows jenkins does not support float16 precision, so test_conv_guess_once_with_dtypes fails there; a condition should be added to that failing test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The ...
null
Theano__Theano__6386
Theano/Theano
6,386
defect
9b3f6351d41d9f5e01b198e3de7538d7f032c409
55ccab9aa44d59195145b8ba3f3dd0350e23edc8
ExtractDiag cleanup #5633
Pull request for issue #5633 @nouiz @ReyhaneAskari
diff --git a/theano/tensor/basic.py b/theano/tensor/basic.py index 57cf99565d8..917c1172852 100644 --- a/theano/tensor/basic.py +++ b/theano/tensor/basic.py @@ -6413,6 +6413,26 @@ def infer_shape(self, node, shapes): out_shape.append(diag_size) return [tuple(out_shape)] + def __setstate__(self, s...
3
3
0
[{"id": "G0", "claim": "Remove the leftover ExtractDiag implementation in theano/tensor/nlinalg.py, whose perform() duplicates the one in tensor/basic and claims numpy's diagonal is slow.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Add an e...
null
Theano__Theano__6401
Theano/Theano
6,401
defect
404cea07a9f1969c4cd5cbe725059dbcb124940a
b26f53abdb22a7ed3be8bd1a74f19226d0f98eaa
Implement truncated normal with box-muller
This is an implementation of the box-muller transform for a normal distribution truncated at two standard deviations (as requested in issue #6381). I did not quite get why there would be need to distinguish between integer and tensor sizes, given that theano optimises the graph and probably includes constant folding...
diff --git a/theano/sandbox/rng_mrg.py b/theano/sandbox/rng_mrg.py index 75b691e12cc..51b4907cab2 100644 --- a/theano/sandbox/rng_mrg.py +++ b/theano/sandbox/rng_mrg.py @@ -20,6 +20,7 @@ from theano.tensor import (TensorType, as_tensor_variable, get_vector_length, cast, opt, scal) from the...
5
5
3
[{"id": "G0", "claim": "Tests should be added in theano/sandbox/tests/test_rng_mrg.py to verify that the generated distribution is well clipped.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 'low' bound (0.13585) used when re-sampling invalid sampl...
null
Theano__Theano__6405
Theano/Theano
6,405
defect
404cea07a9f1969c4cd5cbe725059dbcb124940a
84a67842342213869a2d4ec29e9e8b1a5044ae9d
test MRG random stream with device=cuda and target=cpu
test MRG random stream with device=cuda and target=cpu, shared variable + computation in a real model stay on CPU. fix #6382
diff --git a/theano/gpuarray/dnn.py b/theano/gpuarray/dnn.py index 6a2895f1c37..edbf5b4ea72 100644 --- a/theano/gpuarray/dnn.py +++ b/theano/gpuarray/dnn.py @@ -119,7 +119,8 @@ def _make_handle(ctx): with ctx: err = cudnn.cudnnCreate(ctypes.byref(handle)) if err != 0: - raise RuntimeError("err...
2
2
0
[{"id": "G0", "claim": "In theano/gpuarray/tests/config.py the skip should be `raise SkipTest(init_error)` rather than `raise SkipTest(e)`, which only works by accident because the except-clause variable leaks into the module namespace.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope":...
null
Theano__Theano__6431
Theano/Theano
6,431
defect
bc20630aff4273397dc9e33896fbe6ff00bdf370
2196e257fbc19a0e5efb592f910370f139768030
Generalised AllocDiag for more than 2D input
#5633 @ReyhaneAskari Starting off the pull request.
diff --git a/theano/tensor/basic.py b/theano/tensor/basic.py index 94aec1b00b0..a0615e78419 100644 --- a/theano/tensor/basic.py +++ b/theano/tensor/basic.py @@ -6520,27 +6520,63 @@ class AllocDiag(Op): """ - __props__ = ("offset", ) - default_offset = 0 + __props__ = ("offset", "axis1", "axis2") - ...
4
3
1
[{"id": "G0", "claim": "The existing test_diag does not explicitly test AllocDiag, so a separate test for AllocDiag should be written.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The AllocDiag class docstring should document the new axis1 and axis2...
null
Theano__Theano__6447
Theano/Theano
6,447
defect
b56a541cf132b5959e2ab10f96733374b3a1c693
0887bec28b7489c553941dc1442a8dc5788a09bb
correct gradient for ARange
fix #5790
diff --git a/theano/tensor/basic.py b/theano/tensor/basic.py index bbaf7dfab9e..e720b87526a 100644 --- a/theano/tensor/basic.py +++ b/theano/tensor/basic.py @@ -5475,6 +5475,7 @@ def make_node(self, start, stop, step): inputs = [start, stop, step] outputs = [tensor(self.dtype, (False,))] + ...
8
1
1
[{"id": "G0", "claim": "Travis is failing due to flake8 issues in the pull request's code.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "`step > 0` does not make any sense here because `step` is a symbolic variable, and the sign of `step` does not act...
null
Theano__Theano__6457
Theano/Theano
6,457
defect
aeb6e3c5d8134ba81299122acc3d494e4f3f9ee0
27f03a00f6096979bde2150d77f29f3d9ddcdb2a
Disallow float16 precision for convolution gradients functions.
@nouiz @abergeron @lamblin fix https://github.com/Theano/Theano/issues/6435
diff --git a/theano/gpuarray/dnn.py b/theano/gpuarray/dnn.py index 152c496d7bd..5cd36c8038c 100644 --- a/theano/gpuarray/dnn.py +++ b/theano/gpuarray/dnn.py @@ -329,7 +329,7 @@ def version(raises=True): cudnn = cudnn_defs.get_definitions(version(raises=False)) -def get_precision(precision, inputs): +def get_precis...
2
1
1
[{"id": "G0", "claim": "The silent upcast of float16 precision to float32 in the gradient paths of dnn_conv and dnn_conv3d is untested and undesirable; an error should be raised in that case instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Raising...
null
Theano__Theano__6467
Theano/Theano
6,467
defect
8dccbe6e1000239f57006e556fe8f737bb717aba
8d307b4840d7db84defbb8b4bb77bed55fbb0545
Improve alternative BLAS code and add tests for alternative gemm function.
This should fix #6464 . Now if a tensor must be elemwise-multiplied by zero, then it is explicitly set to 0 to overwrite any previous value. I also added unit tests for alt gemm, so that all current alternative BLAS functions are tested. @lamblin @nouiz @abergeron
diff --git a/theano/gpuarray/c_code/dimshuffle.c b/theano/gpuarray/c_code/dimshuffle.c index 8b8bfa47617..765d04577ba 100644 --- a/theano/gpuarray/c_code/dimshuffle.c +++ b/theano/gpuarray/c_code/dimshuffle.c @@ -1,6 +1,6 @@ #section support_code_apply -int gpu_dimshuffle(PyGpuArrayObject* input, PyGpuArrayObject** ...
4
3
0
[{"id": "G0", "claim": "The new test class t_gemm_no_flags should be named following the convention of the other tests, like TestCGemmNoFlags.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the 'from itertools import product' import from in...
null
Theano__Theano__6496
Theano/Theano
6,496
defect
b6e37683272683399b0f91590f96d7b5ecab26aa
4a48f8f3cb997178964479d11f4a910e0076cb2f
Optimize SUM(x^2), SUM(ABS(X)) and MAX(ABS(X)) to cuDNN reduction.
Same PR as #6491 but with libgpuarray compiled in `Debug` mode for jenkins tests. @nouiz @abergeron @lamblin
diff --git a/.jenkins/jenkins_pr_gpu.sh b/.jenkins/jenkins_pr_gpu.sh index 369a653c2aa..89bf2dfbce8 100755 --- a/.jenkins/jenkins_pr_gpu.sh +++ b/.jenkins/jenkins_pr_gpu.sh @@ -17,7 +17,7 @@ export LIBRARY_PATH=/usr/local/cuda/lib64:$LIBRARY_PATH echo "===== Testing gpuarray backend" -GPUARRAY_CONFIG="Release" +GP...
2
2
0
[{"id": "G0", "claim": "The reduction is still producing problems (failing tests) and their cause is not yet identified.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "claim": "Update _k_init() and the kernel template around line 2030 to initialize myresul...
null
Theano__Theano__6641
Theano/Theano
6,641
defect
8430dd673d2f0f0930a5fbdf2654fa4232b2bfab
13f75d11e6d948bfc8a04fb34ac3940d7090ca98
Broadcast sparse dot
Supersedes https://github.com/Theano/Theano/pull/6522
diff --git a/theano/sparse/basic.py b/theano/sparse/basic.py index a39cb83b596..1b6955e6810 100644 --- a/theano/sparse/basic.py +++ b/theano/sparse/basic.py @@ -4008,28 +4008,34 @@ def make_node(self, x, y): "sparse variable as inputs, but the inputs are " "%s (%s) and %s (%s)." % (x, ...
1
1
1
[{"id": "G0", "claim": "The added lines of test_dot_broadcast in theano/sparse/tests/test_basic.py mix tabs and spaces in their indentation — the commented line starts with a tab — and should be indented with spaces like the surrounding code.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope...
null
Theano__Theano__6749
Theano/Theano
6,749
defect
c86a0e02c99ad6392e1fdf40f6d4f64d96dcdddd
ed1c62400942d307dc4c9c90bb17e03161c47184
MAINT: Be compatible with numpy 1.17 and scipy 1.3
Fixes #6715 and most of #6719 (= [Debian 955471](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955471)). Includes and supersedes #6721. Tested (affected tests, not a full run) in: - Debian unstable (Python 3.8, numpy 1.17, scipy 1.3) - Debian stable (Python 3.7, numpy 1.16, scipy 1.1) ClipTester: As noted ...
diff --git a/theano/gof/tests/test_compute_test_value.py b/theano/gof/tests/test_compute_test_value.py index a855bd8f94c..37e45ccc352 100644 --- a/theano/gof/tests/test_compute_test_value.py +++ b/theano/gof/tests/test_compute_test_value.py @@ -285,12 +285,13 @@ def fx(prior_result, A): except ValueError: ...
1
1
1
[{"id": "G0", "claim": "Removing the clip min > max test case is the wrong fix; instead the test should be restored with an expected function that reproduces the old behaviour when min > max and np.clip otherwise.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Theano__libgpuarray__227
Theano/libgpuarray
227
defect
fc2df22a6f377505d1e0bf7cc0409aa19dd61dcd
404064cf033c0553583a882ab4c51bea54012b23
Fix for cuda8 in blas code.
Cuda 8 added an implementation of atomicAdd for doubles so we need to mask our own.
diff --git a/src/gpuarray_blas_cuda_cublas.c b/src/gpuarray_blas_cuda_cublas.c index fa3caa872b..8cacde63a9 100644 --- a/src/gpuarray_blas_cuda_cublas.c +++ b/src/gpuarray_blas_cuda_cublas.c @@ -75,6 +75,7 @@ static const char *code_sgemvBH_T_a1_b1_small = \ " atomicAdd(&y[p][i*incy], yi);" ...
2
1
1
[{"id": "G0", "claim": "The CUDA_VERSION < 8000 guard leaves errors on some card/CUDA combinations (cuda8 on Titan Black/GT 520, cuda7.5 on a 1080), so whether to include the atomicAdd for doubles should depend on the type of card, not the CUDA version.", "category": "correctness", "verdict": "supported", "priority": "...
null
Theano__libgpuarray__279
Theano/libgpuarray
279
defect
f2c3227aba53acc6149b6ffb4342cd44f5639eb5
e4380d451a2412288cb2bd5daee1414c0f361c7c
Make MaxAndArgmax use internally signed axis numbers.
This avoids an infinite loop when counting ndX downto 0 with unsigned integers, as the condition `unsigned >= 0` always holds.
diff --git a/src/gpuarray_buffer_cuda.c b/src/gpuarray_buffer_cuda.c index a19f33f691..f403ef9534 100644 --- a/src/gpuarray_buffer_cuda.c +++ b/src/gpuarray_buffer_cuda.c @@ -1305,6 +1305,10 @@ static int cuda_callkernel(gpukernel *k, unsigned int n, } switch (n) { + case 0: + ctx->err = cuLaunchKer...
2
2
2
[{"id": "G0", "claim": "A regression test should be added for behaviour that failed before this change and passes now - the reduce-all-axes case that previously returned an error.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 0-dim kernel-launch ca...
null
Theano__libgpuarray__63
Theano/libgpuarray
63
defect
237a7d859fbfb14a355336cef4da2e1e7beb46a9
dd15470ffcbe795ab20c050b38442107d5327cb6
Advanced indexing
This introduces GpuArray_take1() which performs an operation similar to numpy.take(). I also got rid of halloc since it brings very little benefit and a lot of complexity.
diff --git a/src/gen_types.py b/src/gen_types.py index 66800340d7..f835224bfd 100644 --- a/src/gen_types.py +++ b/src/gen_types.py @@ -33,6 +33,7 @@ def add_type(name, C, sz): i=23 # to sync with numpy. add_type("half", "half_t", 2); add_type("size", "size_t", "sizeof(size_t)"); +add_type("ssize", "ssize_t", "sizeof...
4
4
2
[{"id": "G0", "claim": "The take1 code will need tests; minimal tests here to make sure the basic case works (or tests from the Theano Ops that use it) would be enough.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Running the tests segfaults inside cu...
null
ThomAub__officemd__19
ThomAub/officemd
19
defect
db90237038c51113a756cc18e4c2a6b5159437f6
c5604cd7bd5cd7c053f1c8cc0252f6c1e15a692b
feat(markdown): add include.frontmatter opt-out for the officemd comment
Adds a `frontmatter: bool` field to `RenderIncludeOptions` (defaults to `true` for backwards compatibility). When set to `false`, `render_document_with_options` omits the leading `<!-- officemd: kind=... -->` comment.
diff --git a/crates/officemd_cli/src/main.rs b/crates/officemd_cli/src/main.rs index 3b31cc1..d39f00a 100644 --- a/crates/officemd_cli/src/main.rs +++ b/crates/officemd_cli/src/main.rs @@ -511,6 +511,7 @@ fn render_output(doc: &OoxmlDocument, common: &CommonOptions) -> Result<String, document_prope...
1
1
1
[{"id": "G0", "claim": "Because Python render kwargs are converted to `RenderOptions` with `frontmatter` hard-coded to `true`, the new include.frontmatter opt-out is not configurable from Python (no `include_frontmatter` kwarg can suppress the marker), unlike the other `include_*` switches.", "category": "design", "ver...
null
Threagile__threagile__100
Threagile/threagile
100
defect
1166da1b4960e98708ab61670e4b22176f6e0e20
342dbff9331ef3bcbe6b045cd13e4ef16090122a
add ability to disable chapters via config file
currently supported: * RiskRulesCheckedByThreagile add the following: ``` "ReportConfiguration": { "ShowChapter": { "RiskRulesCheckedByThreagile": false } } ``` to your config.json to disable the chapter
diff --git a/Taskfile.yml b/Taskfile.yml index 9d80d7a4..b58adaa2 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -53,6 +53,7 @@ tasks: deps: [build-threagile] env: YAML: ./demo/example/threagile.yaml + CONFIG: ./demo/example/threagile-example-config.json cmds: ...
1
1
1
[{"id": "G0", "claim": "The new chapters flag defaults to hiding the RiskRulesCheckedByThreagile chapter unless the config explicitly enables it, and the reviewer asks that chapters be shown by default with users hiding unwanted ones instead, asking whether this applies to the PDF report as well.", "category": "correct...
null
ThreeDotsLabs__watermill__115
ThreeDotsLabs/watermill
115
defect
b8fcecb573daa1ee2c76a1a76c1c077a0dc35faf
1f42437fbd820aca0f3b4f47cb9c502864ab003b
Fix gochannel-related races
This PR fixes data races reported by #111. They are related with concurrent closing of gochannel PubSub and Router.
diff --git a/message/router.go b/message/router.go index cf734a56f..69850ab74 100644 --- a/message/router.go +++ b/message/router.go @@ -110,9 +110,10 @@ type Router struct { handlersWg *sync.WaitGroup runningHandlersWg *sync.WaitGroup - closeCh chan struct{} - closedCh chan struct{} - closed bool + clo...
1
1
0
[{"id": "G0", "claim": "Add a getter for the closed field (e.g. an isClosed() method) instead of manually locking closedLock to read g.closed inline.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ThreeDotsLabs__watermill__166
ThreeDotsLabs/watermill
166
defect
6634c70d4219465b49f2d9ba6bd86a0496a0aaa0
7071ab73a4b1b3c0868f56fccfdca145dea9c0ee
Add FanOut proposal
During development of https://github.com/ThreeDotsLabs/watermill-http/pull/3 it occurred to me that we could abstract the "router" I created here, so this is a proposal of adding a `FanOut` component. This is essentially a wrapper over GoChannel Pub/Sub that lets you send messages coming from upstream subscriber to ...
diff --git a/message/router.go b/message/router.go index 4b81c94ab..00b4cfc40 100644 --- a/message/router.go +++ b/message/router.go @@ -34,6 +34,11 @@ type HandlerFunc func(msg *Message) ([]*Message, error) // NoPublishHandlerFunc is HandlerFunc alternative, which doesn't produce any messages. type NoPublishHandlerF...
6
5
2
[{"id": "G0", "claim": "The new `ProxyHandler` variable should maybe be renamed to `PassthroughHandler`, which would better show what it is doing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `pubSub` and `router` fields of FanOut could be...
null
ThreeDotsLabs__watermill__221
ThreeDotsLabs/watermill
221
defect
e083ac2ab0fc29a99bd8c2d078e2b174738b1a7b
e1b8ad31af16ccd81a9a6ab974297265d81a4b58
Implement FanIn
Create component multiplexing messages from many topics on one
diff --git a/pubsub/gochannel/fanin.go b/pubsub/gochannel/fanin.go new file mode 100644 index 000000000..eb82fb0a9 --- /dev/null +++ b/pubsub/gochannel/fanin.go @@ -0,0 +1,139 @@ +package gochannel + +import ( + "context" + "errors" + "fmt" + "sort" + "strings" + "sync" + + "github.com/ThreeDotsLabs/watermill" + "githu...
4
4
1
[{"id": "G0", "claim": "The Running method may no longer make sense for FanIn and seems unused, so it should be removed or justified.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Since the FanIn is not gochannel-specific, it should be moved to the comp...
null
ThreeDotsLabs__watermill__355
ThreeDotsLabs/watermill
355
defect
b5ad971db9a09d47bba1de89ac88740892bec4a3
8b3ed6c9b54450eae33e1d81e3704aab8e934706
Add SlogLoggerAdapter
Standard library is going to merge an experimental structured logging package `slog` soon. Therefore, it is important to support it. Happy to have this parked until /exp/slog is merged into standard library. I am using the adapter in production already.
diff --git a/go.mod b/go.mod index 694d1b08c..8e6fd2b42 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/ThreeDotsLabs/watermill -go 1.17 +go 1.21.0 require ( github.com/cenkalti/backoff/v3 v3.2.2 diff --git a/go.sum b/go.sum index 35cfc33d6..cf6170c6f 100644 --- a/go.sum +++ b/go.sum @@ -1,55...
8
5
1
[{"id": "G0", "claim": "The PR should import the standard \"log/slog\" instead of golang.org/x/exp/slog now that slog ships with Go 1.21.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "NewSlogLogger should not panic on a nil logger; it should re...
null
ThreeDotsLabs__watermill__407
ThreeDotsLabs/watermill
407
defect
7b5b8255081ce8e4e0a60123bfbd730a785f7fea
9ba365b18f83eb66f3dc98c8f7fb072e017f182c
Clean up resources in Go channel pub sub [Memory leak]
## Issue Part of the issue reported here https://github.com/ThreeDotsLabs/watermill/issues/391 After testing, I've found same issue in `Publish` method. It uses `LoadOrStore` for fetching `subLock`. https://github.com/ThreeDotsLabs/watermill/blob/d20a6051456863fa147b9f9034b66500a6f0ffdf/pubsub/gochannel/pubsub.go#L96...
diff --git a/pubsub/gochannel/pubsub.go b/pubsub/gochannel/pubsub.go index a11c21629..84dea23a0 100644 --- a/pubsub/gochannel/pubsub.go +++ b/pubsub/gochannel/pubsub.go @@ -93,8 +93,12 @@ func (g *GoChannel) Publish(topic string, messages ...*message.Message) error { g.subscribersLock.RLock() defer g.subscribersLoc...
3
3
2
[{"id": "G0", "claim": "The subscriber-cleanup logic in Subscribe's deferred function is now unnecessary after merging #561 and should be reverted to a plain deferred unlock.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests broke after t...
null
ThreeDotsLabs__watermill__423
ThreeDotsLabs/watermill
423
defect
d20a6051456863fa147b9f9034b66500a6f0ffdf
29f4758ad55db9dc4fb3210c439a623880dadb62
Add deduplication middleware and publisher decorator
Useful for many projects. If similar messages appear, discards all but the first one in a given time window.
diff --git a/message/router/middleware/deduplicator.go b/message/router/middleware/deduplicator.go new file mode 100644 index 000000000..f82ee11b4 --- /dev/null +++ b/message/router/middleware/deduplicator.go @@ -0,0 +1,237 @@ +package middleware + +import ( + "bytes" + "context" + "crypto/sha256" + "fmt" + "hash/adler...
6
6
1
[{"id": "G0", "claim": "The documentation should explicitly state that the deduplication middleware is not a solution for at-least-once delivery because it is not persistent or shared between instances, so people will not misuse it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intr...
null
ThreeDotsLabs__watermill__487
ThreeDotsLabs/watermill
487
defect
ca938e06e61d7b2a0d2735266c219c2a41cc6674
867fb77d09afb782d5563f706f8550460dc1475e
Add context propogation to subscribers for local pub-sub
Solves #464 **Update 1 -** Have not added extra variables in Message struct, because the Message struct is used by every publisher-subscriber **Update 2 -** Couldn't test the func - **TestMessageCtx** in _test_pubsub.go_ It's mentioned that "ExactlyOnceDelivery test is not supported yet"
diff --git a/message/message.go b/message/message.go index 410f5e3a7..a064ef823 100644 --- a/message/message.go +++ b/message/message.go @@ -193,3 +193,11 @@ func (m *Message) Copy() *Message { } return msg } + +// CopyWithContext copies all message without Acks/Nacks. +// The context is also propagated to the cop...
7
5
1
[{"id": "G0", "claim": "Keep preserveContext as a field of the subscriber struct instead of a method parameter, to keep the methods' API minimal.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The preserve branch wraps the message's context in a cancelab...
null
ThreeDotsLabs__watermill__526
ThreeDotsLabs/watermill
526
defect
42d26dd34a5c5beeba5639c5b3742f8ad496592e
25b696604cb1206f56e5e7f6ec126635e7bf2f5b
get rid of github.com/gogo/protobuf
### Motivation / Background github.com/gogo/protobuf is deprecated and doesn't work with newer protobuf files. It's time to switch to standard protobuf. ### Detail It's important that this change won't affect services that are using the old marshaled. Unfortunately, gogo protobuf doesn't handle messages gener...
diff --git a/components/cqrs/marshaler_protobuf.go b/components/cqrs/marshaler_protobuf.go index 474861094..8e9f66afb 100644 --- a/components/cqrs/marshaler_protobuf.go +++ b/components/cqrs/marshaler_protobuf.go @@ -5,13 +5,13 @@ import ( "github.com/ThreeDotsLabs/watermill" "github.com/ThreeDotsLabs/watermill/m...
2
2
2
[{"id": "G0", "claim": "Before merging, it must be checked that the change is backward compatible with messages generated with gogo protobuf.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The downgrade of github.com/golang/protobuf from v1.5.4 to v...
null
ThreeDotsLabs__watermill__556
ThreeDotsLabs/watermill
556
defect
a0a845c5cb8b5bf040fe1aafff58143697bff5c6
20d6373790222b693fa45aa9b69747b286c9e409
nacking messages when context canceled
<!-- Thanks for contributing to Watermill! The following template aims to help contributors write a good description for their pull requests. **The more information you provide, the faster we will be able to review and merge your PR.** Feel free to skip this template for minor changes like typo fixes. --> ...
diff --git a/message/router.go b/message/router.go index d1bbde169..8f242ae3f 100644 --- a/message/router.go +++ b/message/router.go @@ -802,8 +802,10 @@ func (h *handler) handleMessage(msg *Message, handler HandlerFunc) { h.logger.Trace("Received message", msgFields) producedMessages, err := handler(msg) - if er...
1
1
1
[{"id": "G0", "claim": "The error log for a handler failure should be skipped when the error is context.Canceled, i.e. the inner condition must be negated to `!errors.Is(err, context.Canceled)`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ThreeDotsLabs__watermill__582
ThreeDotsLabs/watermill
582
defect
cdddd603198590141e394c3a0190301ba55f32ea
1ce3afedf55cbd752782efddcbe74a0216144225
Make the retry middleware more flexible
### Motivation / Background This PR addresses the issue https://github.com/ThreeDotsLabs/watermill/issues/571. The idea here is to allow clients to specify exactly which errors are retryable or not. Retryable errors are typically caused by transient failures such as timeouts or connection issues. However, ther...
diff --git a/message/router/middleware/retry.go b/message/router/middleware/retry.go index b8280732c..3531cee23 100644 --- a/message/router/middleware/retry.go +++ b/message/router/middleware/retry.go @@ -32,6 +32,12 @@ type Retry struct { // The number of the current retry is passed as retryNum, OnRetryHook func(r...
1
1
1
[{"id": "G0", "claim": "ShouldRetry should take a struct holding its arguments instead of individual parameters, so that adding another argument later would not be a breaking change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ThreeTen__threeten-extra__101
ThreeTen/threeten-extra
101
defect
fd443af835e359db97684759fdf7531efda033db
661e602fbdcb2deda667efbe1428ef427e6040b4
add TemporalAdjusters for previousWorkingDayOrSame and nextWorkingDayOrSame
add OrSame version of previousWorkingDay and nextWorkingDay like the static ones in TemporalAdjusters or previous and next DayOfWeek.
diff --git a/src/main/java/org/threeten/extra/Temporals.java b/src/main/java/org/threeten/extra/Temporals.java index 797ea8c2..02c2e626 100644 --- a/src/main/java/org/threeten/extra/Temporals.java +++ b/src/main/java/org/threeten/extra/Temporals.java @@ -86,7 +86,18 @@ private Temporals() { public static TemporalA...
3
2
0
[{"id": "G0", "claim": "The new adjusters' documentation should define \"working day\" and note that holidays are not taken into account, since the Saturday/Sunday weekend is culture-dependent.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ad...
null
ThreeTen__threeten-extra__154
ThreeTen/threeten-extra
154
defect
c1d0fb1bd162e63feef91da54bd453275fa0dbea
16882d57fba216a69dc0c73710f298d5bbfda496
Refactoring
Minor refactoring: * Removing commented-out lines of code * ~Remove redundant `static` modifier for enums~ (reverted) * Replace` Predicate<Integer>` with `IntPredicate` * Remove empty & redundant statements
diff --git a/src/main/java/org/threeten/extra/AmountFormats.java b/src/main/java/org/threeten/extra/AmountFormats.java index 3632faf6..06c29117 100644 --- a/src/main/java/org/threeten/extra/AmountFormats.java +++ b/src/main/java/org/threeten/extra/AmountFormats.java @@ -183,7 +183,8 @@ public static String wordBased(Pe...
2
2
0
[{"id": "G0", "claim": "Keep the explicit `static` modifier on the nested enums in PackedFields.java (PackedDate, PackedHourMin, PackedTime) rather than relying on the implicit one, for readability.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ...
null
ThreeTen__threeten-extra__156
ThreeTen/threeten-extra
156
defect
db9fb8e2605f8d31cded33e7c6fa44453e206a6f
4b55eed8982c2bd2197efe10f36495a9a766b164
Add Year-based static factory methods to YearWeek and YearQuarter
Adds the following static factory methods: - `YearWeek.of(Year, int)` - `YearQuarter.of(Year, Quarter)` - `YearQuarter.of(Year, int)` Fixes https://github.com/ThreeTen/threeten-extra/issues/155
diff --git a/src/main/java/org/threeten/extra/YearQuarter.java b/src/main/java/org/threeten/extra/YearQuarter.java index 7929e091..aa06c031 100644 --- a/src/main/java/org/threeten/extra/YearQuarter.java +++ b/src/main/java/org/threeten/extra/YearQuarter.java @@ -178,6 +178,29 @@ public static YearQuarter now(Clock cloc...
3
3
0
[{"id": "G0", "claim": "The @param year javadoc of the new YearQuarter.of(Year, Quarter) factory wrongly says the year ranges 'from MIN_YEAR to MAX_YEAR', a constraint that does not apply to a Year argument; it should read 'the year to represent, not null'.", "category": "documentation", "verdict": "supported", "priori...
null
ThreeTen__threeten-extra__182
ThreeTen/threeten-extra
182
defect
0f56b86c914724be1d49520f76311646467fb818
af91b85d5f9aaec559b366b51127370fa78a5853
Add support for unit-based duration parsing to AmountFormats
Introduce unit-based duration support based on Golang's `time.ParseDuration` method. It seems that the abseil.io library only supports parsing of these unit-based duration strings, but not encoding. If unit-based encoding is desired in Java, then Golang's `time.Duration.String()` implementation should serve as the ...
diff --git a/src/main/java/org/threeten/extra/AmountFormats.java b/src/main/java/org/threeten/extra/AmountFormats.java index 9bf07aba..0d4844d4 100644 --- a/src/main/java/org/threeten/extra/AmountFormats.java +++ b/src/main/java/org/threeten/extra/AmountFormats.java @@ -34,9 +34,13 @@ import java.time.Duration; impor...
2
2
1
[{"id": "G0", "claim": "Rephrase the Javadoc of parseUnitBasedDuration to something more like \"Parses formatted durations based on units. The behaviour matches that of the Golang duration parser.\" instead of embedding the Go doc verbatim.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope...
null
ThreeTen__threeten-extra__187
ThreeTen/threeten-extra
187
defect
cbe70d4335fc2aacac1f5005791f4819df075645
dabe22127745b87ec82d3d1f918e06a5c901f8f9
Fix for #184 A more natural way to create unbounded Intervals
Added `startingAt` and `endingAt` methods to create open-ended intervals + tests. I did not address the none/never (empty/null-value) interval in this PR. The `endingAt(Instant.MIN)/startingAt(Instant.MAX)` tests are mostly to document this somewhat surprising behavior, but perhaps not strictly necessary. Coul...
diff --git a/src/main/java/org/threeten/extra/Interval.java b/src/main/java/org/threeten/extra/Interval.java index e7fc5358..71eab159 100644 --- a/src/main/java/org/threeten/extra/Interval.java +++ b/src/main/java/org/threeten/extra/Interval.java @@ -129,6 +129,30 @@ public static Interval of(Instant startInclusive, Du...
2
2
0
[{"id": "G0", "claim": "Remove the blank javadoc line between the @param and @return tags in the new startingAt method and the same in the other new method.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Drop the `final` modifier on the paramete...
null
ThreeTen__threeten-extra__373
ThreeTen/threeten-extra
373
defect
54834ca24b2b6aa046c8285e3fcee474b8f03d0e
25397864e22e91bca011298629e27d98bb17090d
Additional wordBased method on AmountFormats
Allow `PeriodDuration` to be directly formatted Also remove trailing whitespace in yaml See #269 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * New Features * Added word-based formatting support for PeriodDuration, aligning output with existing period/durati...
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24d2e331..3594a598 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: Build -on: +on: push: branches: - '*' @@ -21,7 +21,7 @@ jobs: strategy: matrix: java: [...
1
1
1
[{"id": "G0", "claim": "The new wordBased(PeriodDuration, Locale) method should include null parameter validation for both periodDuration and locale to stay consistent with the existing wordBased method and prevent potential NullPointerExceptions.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
ThreeTen__threeten-extra__374
ThreeTen/threeten-extra
374
defect
1af9bdc5cd9661d5051ccaa1f8e21969e00a1fa0
e10cce53e25ece54c811cd9bb0e2995bac138ff5
Add PeriodDuration.truncatedTo
Only truncate the duration part Fixes #269 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added ability to truncate the time-based portion of a period+duration to a specified temporal unit (nanoseconds, milliseconds, seconds, minutes, days) ...
diff --git a/src/main/java/org/threeten/extra/PeriodDuration.java b/src/main/java/org/threeten/extra/PeriodDuration.java index 136a1944..1dff4e56 100644 --- a/src/main/java/org/threeten/extra/PeriodDuration.java +++ b/src/main/java/org/threeten/extra/PeriodDuration.java @@ -620,6 +620,31 @@ public Temporal subtractFrom...
2
2
1
[{"id": "G0", "claim": "The implementation calls Duration.truncatedTo(TemporalUnit), which does not exist on Java 8 and fails the build, so the method needs Java 8-compatible truncation logic.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G2", "claim": "The trunc...
null
ThreeTen__threeten-extra__376
ThreeTen/threeten-extra
376
defect
d896bcf17ee4604d4ca1f2f62b538594ecc40c5f
a584984e03b958467ad8a36c257b363c32db8e5a
Fix implementations of query()
Precision query is defined to return null when date is inconsistent. `MonthDay` is inconsistent, but all the clases here are consistent. Fix implementations and enhance docs <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Direct precision q...
diff --git a/src/main/java/org/threeten/extra/AmPm.java b/src/main/java/org/threeten/extra/AmPm.java index 5437c18b..978f3877 100644 --- a/src/main/java/org/threeten/extra/AmPm.java +++ b/src/main/java/org/threeten/extra/AmPm.java @@ -315,8 +315,9 @@ public long getLong(TemporalField field) { * obtain the result....
12
8
0
[{"id": "G0", "claim": "The corrected 'Returns an {@code HourMinute}' wording appears to have been added in the wrong method context and should be part of the plus() method documentation, not the query() method documentation.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"...
null
ThreeTen__threeten-extra__78
ThreeTen/threeten-extra
78
defect
4465a45d7e775d8a86345fb55381ee202dde20c5
5fb0df0b4aeb2f17099380a8490fe0e3068a12e2
YearWeek with plusWeeks and minusWeeks
Added the methods plusWeeks and minusWeeks in YearWeek.java Typical use case is a calendar application that toggles between the weeks in a year. These two methods align with other found for example in java.time.LocalDate. JavaDoc and UnitTests included. The implementation is based on a loop. Probably not the...
diff --git a/src/main/java/org/threeten/extra/YearWeek.java b/src/main/java/org/threeten/extra/YearWeek.java index 17cbae23..ff585096 100644 --- a/src/main/java/org/threeten/extra/YearWeek.java +++ b/src/main/java/org/threeten/extra/YearWeek.java @@ -473,6 +473,60 @@ public boolean is53WeekYear() { public int leng...
3
3
2
[{"id": "G0", "claim": "plusWeeks and minusWeeks fail when passed Long.MIN_VALUE because negating Long.MIN_VALUE overflows and the two methods delegate to each other, so they should handle it the way similar JDK code does (subtract 1, then subtract the rest).", "category": "correctness", "verdict": "supported", "priori...
null
ThreeTen__threeten-extra__84
ThreeTen/threeten-extra
84
defect
aeec1857e8d441d5c7123257a443861809ab2810
e87d6355515c2793f211cd12d1b4fa99b6c6e114
Add MutableClock
Fixes #83
diff --git a/src/main/java/org/threeten/extra/MutableClock.java b/src/main/java/org/threeten/extra/MutableClock.java new file mode 100644 index 00000000..ea9b6de2 --- /dev/null +++ b/src/main/java/org/threeten/extra/MutableClock.java @@ -0,0 +1,511 @@ +/* + * Copyright (c) 2007-present, Stephen Colebourne & Michael Nas...
2
1
1
[{"id": "G0", "claim": "The epochUTC() factory method seems unjustified because it covers a rare case, questioning whether it should exist.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Given the warning that the clock should only go forwards, and the a...
null
ThrowTheSwitch__Unity__252
ThrowTheSwitch/Unity
252
defect
04e10f95eee76eb2efac79000f146a13696f8409
185fb4938007bcf9701ac6fac15d8e315ec9e38c
Compile examples during continuous integration
Closes #216 * Get example 1 to compile easily on systems without ruby * Cleanup example Makefiles, update test runners * Compile examples in continuous integration, update example_3 readme Altered the rake build so that it passes. The example_3 shows off some failing tests, so the rake build has to ignore those. ...
diff --git a/examples/example_1/makefile b/examples/example_1/makefile index 01abb5526..c5a3ca47e 100644 --- a/examples/example_1/makefile +++ b/examples/example_1/makefile @@ -5,17 +5,14 @@ # ========================================== #We try to detect the OS we are running on, and adjust commands as needed -ifeq ...
1
1
0
[{"id": "G0", "claim": "Removing -Werror (and the other warning-flag lowering) from the example makefiles lowers standards; maybe the examples should be cleaned up instead of removing warnings-as-errors.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ThrowTheSwitch__Unity__278
ThrowTheSwitch/Unity
278
defect
2c7629a0ae90ffe991b5fd08e4db8672f72ed64c
2dd7d8195841ed1af1ce48f3179cea8794b07c87
Print execution time for each test when verbose mode enabled
Implements https://github.com/ThrowTheSwitch/Unity/issues/277
diff --git a/extras/fixture/src/unity_fixture.c b/extras/fixture/src/unity_fixture.c index 3872bd8ff..3d54b4cb0 100644 --- a/extras/fixture/src/unity_fixture.c +++ b/extras/fixture/src/unity_fixture.c @@ -7,7 +7,9 @@ #include "unity_fixture.h" #include "unity_internals.h" +#include <stdio.h> #include <string.h> +#...
6
4
3
[{"id": "G0", "claim": "Do not add <stdio.h> to unity_fixture.c and do not build the pass message with snprintf, since the library cannot rely on stdio on its targets; print the number with UnityPrintNumberUnsigned instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
TiddlyWiki__TiddlyWiki5__6149
TiddlyWiki/TiddlyWiki5
6,149
defect
3287cf56bb443c66f05881c47689a81a0c220b85
0e55ac989693c698749a7d57a8c52aaf4451aac5
Extends :map filter run prefix to provide missing variables
Extends `:map` filter run prefix to provide the missing variables index, revIndex and length as provided in `:reduce` Documentation update and tests are included. Fixes #6118
diff --git a/core/modules/filterrunprefixes/map.js b/core/modules/filterrunprefixes/map.js index a70f6b0f4a3..a47763c116a 100644 --- a/core/modules/filterrunprefixes/map.js +++ b/core/modules/filterrunprefixes/map.js @@ -15,7 +15,8 @@ Export our filter prefix function exports.map = function(operationSubFunction,option...
1
1
0
[{"id": "G0", "claim": "In the new :map documentation bullets, the <<.from-version \"5.2.1\">> macro should be placed as a prefix before the description text, per the usual repository convention.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
TiddlyWiki__TiddlyWiki5__6540
TiddlyWiki/TiddlyWiki5
6,540
defect
c1f123499c2f9b9b67897302456bf9406ee1ae54
a2d985510ba8bd2bca5e972ecf051f93aaceb118
Fix action-listops unsafe use of $tw.utils.stringifyList()
Fixes #6535
diff --git a/core/modules/widgets/action-listops.js b/core/modules/widgets/action-listops.js index 802fcaa76a2..d8e27464429 100644 --- a/core/modules/widgets/action-listops.js +++ b/core/modules/widgets/action-listops.js @@ -1,3 +1,5 @@ +const { makeTiddlerIterator } = require("../wiki"); + /*\ title: $:/core/modules...
1
1
0
[{"id": "G0", "claim": "Questions whether the top-level `const { makeTiddlerIterator } = require(\"../wiki\");` line added by the PR is an allowed construction — it is an unused, accidentally added import.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
TiddlyWiki__TiddlyWiki5__6561
TiddlyWiki/TiddlyWiki5
6,561
defect
6a5d73dae6235b3dab55abc564262cfdcc716fd3
3b6134b766dc8d224059ea655d346e85bc148bbb
Checkbox widget: list and filter modes
Fixes #5613. Supersedes #5623. This adds `listField` and `filter` attributes to the checkbox widget. They are described in the documentation tiddler changes included in this PR, but I'll describe them in more depth below: ## List mode The `listField` attribute works like `field`, but where `field` is treated ...
diff --git a/core/modules/widgets/checkbox.js b/core/modules/widgets/checkbox.js index 8ea47deb4a3..454e121ceea 100644 --- a/core/modules/widgets/checkbox.js +++ b/core/modules/widgets/checkbox.js @@ -27,6 +27,7 @@ CheckboxWidget.prototype = new Widget(); Render this widget into the DOM */ CheckboxWidget.prototype.r...
6
4
2
[{"id": "G0", "claim": "The checkbox documentation examples should be made self-contained by including the macro definitions inside the example text rather than keeping them separated at the top of the tiddler.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",...
null
TiddlyWiki__TiddlyWiki5__7292
TiddlyWiki/TiddlyWiki5
7,292
defect
2271f6885af8b6301696d3aa33f82472f691ba72
25f2b5809adff9cfa4df84a40c21fd988649b753
Add the timestamp suffix to the format operator
This is the complementary operation to the `format[TIMESTAMP]` syntax and allows values that represent the Unix epoch to be converted back to any TW date format. Invalid input titles will be passed through unchanged. Initial commit taken verbatim from @ericshulman. Closes #7120. To do: - [x] Add tests - [...
diff --git a/core/modules/filters/format/timestamp.js b/core/modules/filters/format/timestamp.js new file mode 100644 index 00000000000..dd105a03919 --- /dev/null +++ b/core/modules/filters/format/timestamp.js @@ -0,0 +1,27 @@ +/*\ +title: $:/core/modules/filters/format/timestamp.js +type: application/javascript +modul...
3
2
1
[{"id": "G0", "claim": "Tests should be added for the new format:timestamp suffix, including a valid input timestamp other than 0 and an invalid input title.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "format:timestamp should drop invalid input inste...
null
TiddlyWiki__TiddlyWiki5__7392
TiddlyWiki/TiddlyWiki5
7,392
defect
2a19c60e201571087b93a7c7111df6ee18d4400a
0f15ebbbad23ca93275a1d12e730d2efb6d92cd8
Add a `:then` filter run prefix
I would like to propose adding a `:then` filter run prefix, akin to `:else` and the `then` filter operator. The implementation is straightforward: If there is input, replace it with the output of this filter run. The input to the filter run should be `all[tiddlers]`, or for subfilters the input to the subfilter, lik...
diff --git a/core/modules/filterrunprefixes/then.js b/core/modules/filterrunprefixes/then.js new file mode 100644 index 00000000000..ecea20b0b97 --- /dev/null +++ b/core/modules/filterrunprefixes/then.js @@ -0,0 +1,32 @@ +/*\ +title: $:/core/modules/filterrunprefixes/then.js +type: application/javascript +module-type: ...
13
11
2
[{"id": "G0", "claim": "The pull request should add documentation for the new :then filter run prefix.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new :then prefix code needs tests covering its different logic paths, such as no input and in...
null
TiddlyWiki__TiddlyWiki5__7448
TiddlyWiki/TiddlyWiki5
7,448
defect
9d6784f26210412cb316eae4bc8169495a6c6459
6d646e2bfcb1549bf6104f4d8dc01cdbaccfd41e
Checkbox widget should not affect date fields
If a date field like `created` or `modified` is passed as the listField attribute of the checkbox widget, it will be left unchanged and actions on the checkbox widget will *not* fire. Includes unit tests to ensure that the "created" and "modified" fields will not be touched by checkboxes and will continue to be Date...
diff --git a/core/modules/widgets/checkbox.js b/core/modules/widgets/checkbox.js index 68ebe79802b..e2df3185cc5 100644 --- a/core/modules/widgets/checkbox.js +++ b/core/modules/widgets/checkbox.js @@ -112,7 +112,7 @@ CheckboxWidget.prototype.getValue = function() { var list; if(this.checkboxListField) { if...
2
1
0
[{"id": "G0", "claim": "Replace `const` with `var` in the checkbox test file, because the project still targets ES5 and does not use `const` yet.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rewritten handleChangeEvent in checkbox.js cause...
null
TiddlyWiki__TiddlyWiki5__7526
TiddlyWiki/TiddlyWiki5
7,526
defect
88dc6eba9616191e00c3558d32734ed95833ed09
3e8f1a313683e5a1eec6f92c7aa199fcabd5e95f
Adds Text substitution support in widget attributes
This PR adds text substitution support as discussed in #6663. The `substitute[]` operator and backtick quoted attributes support the following substitutions in this order: 1. embedded filters using `${ filter }$` syntax 2. operands using the syntax `$n$` where `n` denotes the position of the operand (starting fro...
diff --git a/core/modules/filters/substitute.js b/core/modules/filters/substitute.js new file mode 100644 index 00000000000..6cd2a1225f0 --- /dev/null +++ b/core/modules/filters/substitute.js @@ -0,0 +1,38 @@ +/*\ +title: $:/core/modules/filters/substitute.js +type: application/javascript +module-type: filteroperator +...
4
3
2
[{"id": "G0", "claim": "Avoid introducing another method on the widget object: getSubstitutedText should be moved over to be a wiki method taking the widget as a parameter, as with filterTiddlers().", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Exposing...
null
TiddlyWiki__TiddlyWiki5__8978
TiddlyWiki/TiddlyWiki5
8,978
defect
06adaf3331d983be822a40c10677fa05f6ea4536
607bd473342f3afdb606a6cddf1e9a247978155b
feat: add removeEventListener , and allow register multiple listeners
Instead of remove old one when add new one. Fixes #7192 I find this when [Updating Krystal plugin to use "layout" feature](https://github.com/crazko/krystal/discussions/50#discussioncomment-12509208), because although "krystal - horizontal story river" is meant to be a story view mode, but it changes too much core t...
diff --git a/core/modules/widgets/widget.js b/core/modules/widgets/widget.js index 14e90ba2d26..36ddd0a37f1 100755 --- a/core/modules/widgets/widget.js +++ b/core/modules/widgets/widget.js @@ -628,31 +628,51 @@ Widget.prototype.addEventListeners = function(listeners) { }; /* -Add an event listener +Add an event lis...
1
1
1
[{"id": "G0", "claim": "Storing listeners in a list makes repeatedly registering the same event type and handler behave differently than before (a slight backwards incompatibility); the reviewer asks to verify that there isn't already a listener registered with the same type and handler before adding it.", "category": ...
null
TigerVNC__tigervnc__1489
TigerVNC/tigervnc
1,489
defect
da5b0df9eebdcc9b205546d05564c2cd07de0f47
cdbed4040f20491d2ecc965625c3baae73181ba8
Add missing FLTK include statements
This PR is about adding include statements (and one other modification) to make TigerVNC compile with FLTK 1.4 (Git master). Although FLTK 1.3 and 1.4 are API compatible, some missing headers have been unnecessarily included in other FLTK 1.3 headers such that not including these headers in source files worked by ac...
diff --git a/tests/perf/fbperf.cxx b/tests/perf/fbperf.cxx index 2b21bdd871..0178172583 100644 --- a/tests/perf/fbperf.cxx +++ b/tests/perf/fbperf.cxx @@ -26,6 +26,7 @@ #include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/fl_draw.H> +#include <FL/x.H> #include <rdr/Exception.h> #include <rfb/util.h> diff --...
3
3
0
[{"id": "G0", "claim": "A blank line should separate the includes from the declarations in vncviewer/MonitorArrangement.h.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new #include <stdlib.h> in vncviewer/PlatformPixelBuffer.cxx should be ...
null
TigerVNC__tigervnc__1521
TigerVNC/tigervnc
1,521
defect
97f51df7013ac818ec3e3c94b6c07b1300de1acd
bb5fa4de1da17cfaf0070e4a29009fd76ef8697b
Ignore leading and trailing whitespace
This makes the address box a little bit more tolerant of insignificant typos The impetus for this change came from a troubleshooting session with my boss where he wasn't able to articulate that there was a problem because it was nearly invisible
diff --git a/common/rfb/Hostname.h b/common/rfb/Hostname.h index bd68dc0210..a06d2e5204 100644 --- a/common/rfb/Hostname.h +++ b/common/rfb/Hostname.h @@ -31,6 +31,10 @@ namespace rfb { const char* hostEnd; const char* portStart; + // Trim leading whitespace + while(isspace(*hi)) + hi++; + i...
3
3
3
[{"id": "G0", "claim": "The new whitespace-trimming loop runs before the NULL check, so the new code will crash unless the NULL check is made first.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "There is no trimming of the hostname when no port is ...
null
TigerVNC__tigervnc__1670
TigerVNC/tigervnc
1,670
defect
963f11e3130c0dbf60b7d8df4bd119ab0b6bed40
e75b5e709a757aae28038c4e3056c8d917cab669
vncconfig: add option to force view-only remote client connections
Specifies that the server must ignore all keyboard or mouse events sent by the client. Doing this trough SocketServer::addSocket() looks as a dirty trick. It probably requires some refining. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2180903
diff --git a/common/network/Socket.h b/common/network/Socket.h index 117851c191..e44bbc2596 100644 --- a/common/network/Socket.h +++ b/common/network/Socket.h @@ -121,7 +121,9 @@ namespace network { // outgoing is set to true if the socket was created by connecting out // to another host, or false if the ...
5
4
2
[{"id": "G0", "claim": "Reusing the pad0 padding byte of the xVncExtConnectReq message as a viewOnly flag may not be allowed, since the message format of the X extension possibly cannot be changed.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The co...
null