WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
System information (version)

OpenCV => :4.4.0:

Operating System / Platform => Ubuntu 20.04

Compiler => GCC 8.4

Detailed description

I am loading a pre-trained SSD from TensorFlow and setting the target as preferred backend as CUDA. I am running Cuda 10.2 with cuDNN 8.0.2 and I have built OpenCV. Following code to load the model

cv::dnn::Net net = cv::dnn::readNetFromTensorflow("/Models/frozen_inference_graph.pb",
"/graph.pbtxt");
net.setPreferableBackend(cv::dnn::DNN_BACKEND_CUDA);
net.setPreferableTarget(cv::dnn::DNN_TARGET_CUDA);

And I get the following error -

terminate called after throwing an instance of 'cv::dnn::cuda4dnn::csl::cudnn::cuDNNException'

what(): OpenCV(4.4.0) /home/atharva/opencv-4.4.0/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:420: error: (-217:Gpu API call) CUDNN_STATUS_BAD_PARAM in function 'convolve'

Could you please point what could be goig wrong?

Issue submission checklist

[ yes] I report the issue, it's not a question

[yes ] I checked the problem with documentation, FAQ, open issues,

answers.opencv.org, Stack Overflow, etc and have not found solution

[ yes] I updated to latest OpenCV version and the issue is still there

[ yes] There is reproducer code and related data files: videos, images, onnx, etc

Issue 2:
System information (version)

OpenCV => 4.4dev

Operating System / Platform => Ubuntu 18.04

Compiler => gcc 7.5

nVidia Driver: 450.57

CUDA: 11.0.194GA

cudnn: 8.0.2GA

Detailed description

cv2.error: OpenCV(4.4.0-dev) /source/opencv/modules/dnn/src/layers/../cuda4dnn/primitives/../csl/cudnn/convolution.hpp:420: error: (-217:Gpu API call) CUDNN_STATUS_BAD_PARAM in function 'convolve'

Steps to reproduce

running YOLOV4 model with this works:

net = cv2.dnn.readNet('yolov4.weights', 'yolov4.cfg')
net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA_FP16)

With this I get the error above

net = cv2.dnn.readNet('yolov4.weights', 'yolov4.cfg')
net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)
Issue 1:
Now with 100% less circular imports!

Issue 2:
Pending resolution of ReactiveX/rxjs#860 on reactivex/rxjs (which makes this possible).

We want to support the existing toPromise and fromPromise logic provided by ObservableWrapper without making toPromise and fromPromise available on the Observable prototype. Currently, there is no way to import an individual operator from rxjs without it automatically monkey-patching the Observable prototype. This could lead to users depending on the angular version of Observable containing the toPromise and fromPromise methods, which would make them sad when we someday remove it.

The reason we want to remove this from the facade is because these operators are only used internally by forms, and core needs to shed some bytes.
Issue 1:
Environment

Windows build number: 19008.vb
Windows Terminal version 0.6.2951.0

Any other software?

Steps to reproduce

Launching a new tab is done via CTRL+SHIFT+

I remap my Caps Lock key to CTRL via remapkey utility which just changes a registry key somewhere. This behavior works everywhere except for the Terminal app.

Expected behavior

Windows Terminal respects my remapped key, i.e., Caps Lock + Shift + launches a new tab.

Actual behavior

Caps Lock + Shift + does not launch a new tab

Issue 2:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.6.2951.0

Any other software?

Steps to reproduce

produce more than a screenful of data, e.g. cat a file, or ssh to a Linux box and then:

seq -f 'the quick brown fox jumps over the lazy dog %.f' 100

narrow the window so that the onscreen parts begin to wrap

optionally widen it back

scroll back

Expected behavior

The entire scrollback should be rewrapped, just like the onscreen bits.

Actual behavior

Each line of the scrollback is truncated to the narrow width.
Issue 1:
npm install angular2 is not working.

it throws error:

npm ERR! 404 'reactivex' is not in the npm registry.

npm ERR! 404 You should bug the author to publish it

npm ERR! 404

npm ERR! 404 Note that you can also install from a

npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 3.13.0-32-generic

npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "angular2"

npm ERR! cwd /home/shatakshi/Documents/a

npm ERR! node -v v0.10.25

npm ERR! npm -v 1.3.10

npm ERR! code E404

npm http 304 https://registry.npmjs.org/zone.js/0.5.7

npm ERR!

npm ERR! Additional logging details can be found in:

npm ERR! /home/shatakshi/Documents/a/npm-debug.log

npm ERR! not ok code 0

Issue 2:
Don't know if this is the right place to post this bug, please let me know if it isen't.

Failing to install latest angular2 package with npm:

npm ERR! 404 Not Found

npm ERR! 404

npm ERR! 404 'reactivex/rxjs' is not in the npm registry.

npm ERR! 404 You should bug the author to publish it

npm ERR! 404 It was specified as a dependency of 'angular2'

npm ERR! 404

npm ERR! 404 Note that you can also install from a

npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Windows_NT 6.2.9200

npm ERR! command "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\node\node" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm\bin\npm-cli.js" "install"

npm ERR! cwd C:************

npm ERR! node -v v0.10.31

npm ERR! npm -v 1.4.9

npm ERR! code E404
Issue 1:
Is it possible to use the APK split or app bundle functionality in the Android Gradle plugin to reduce the size of an release APK like have splits for different cpu architectures arm64, x86 or even more advanced splits on screensize and language.

Issue 2:
Currenlt Flutter only packages the armeabi-v7a library in the release APK and none other. So my suggestion is to use the feature explained at

https://developer.android.com/studio/build/configure-apk-splits.html

.. so that flutter can generate different apks for different abis (x86, x86_64, etc).

For more details see #10717
Issue 1:
It's a very common use case to want to add spacing between widgets in a Row or a Column. At the moment, the way to do this is adding padding to each individual element (but avoiding to do it on the first element).

It would be super useful to be able to just pass in a spacing value, that would be the spacing between each widget in the row or the column.

Issue 2:
Steps to Reproduce

I see Row and Column widgets as a UIStackView and would expect spacing parameter so that we can add custom spacing between their children. Something like spacing.

I always end up adding additional Containers in between and this is far from clean solution from my pov - something like this:

new Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
new Container(
height: 20.0,
child: new Image.asset('assets/images/someimage.png'),
),
new Container(
height: 8.0,
),
new Container(
height: 20.0,
child: new Image.asset('assets/images/someimage.png'),
),
)
)

I understand that there are other ways to do this but all of them induce extra logic and make code harder to read.
Issue 1:
nicolas de loof opened SPR-2605 and commented

Containers like plexus use field injection. According to http://forum.springframework.org/showthread.php?t=9692&highlight=field+injection, This is not considered by Spring developers as a good practice.

I myself had a case where it may be better than setter injection :

A newbee developper coded into a Struts action injection of values into it's dependencies using public setters. Dependency may use a facade interface but was not in this case (generated code). This is not Spring responsibility to avoid such errors, but requirement for public setters exposes components internals.

Having protected (or package) field for dependencies keeps code testability (only require the testcase to be in the same package) and avoid exposing unnecessary setters.

Field injection requires Spring to make some "magic" Privileged actions, but Hibernate and JPA also do AFAIK.

Could you please reconsider this and expose a definitive argument to exclude field injection from Spring scope ?

Issue Links:

#10249 @Autowired vs. <property ("is duplicated by")

Issue 2:
Kenny MacLeod opened SPR-3759 and commented

This is a non-backward-compatible change, but I think JdbcDaoSupport should expose its JdbcTemplate object as a JdbcOperations type. The current implementation is hard to test, since you cannot inject a mock JdbcOperations object into the DAO, you can only inject a JdbcTemplate. This is less test friendly.

I appreciate this is a tricky one to manage, however. Perhaps some balance of JdbcOperations injection and getJdbcTemplate() could be achieved?

Affects: 2.0.6

Issue Links:

#8782 JdbcDaoSupport.setJdbcTemplate() should accept JdbcOperations ("is duplicated by")

#8832 HibernateDaoSupport should use HibernateOperations in method signatures

2 votes, 1 watchers
Issue 1:
The following program crashes with panic:

package main

import (
"fmt"
"bytes"
)

func main() {
var a, b int
r := bytes.NewReader([]byte{'1', '\n', '2'})

_, err := fmt.Fscanf(r, "%d", &a)
if err != nil {
panic(err)
}

_, err = fmt.Fscanf(r, "%d", &b)
if err != nil {
panic(err)
}
}

panic: unexpected newline

goroutine 1 [running]:
main.main()
/tmp/f.go:19 +0x33d
exit status 2

on commit b83b011

Issue 2:
I got different fmt.Scanf behavior depending on the line endings style.

My go version is go1.3.3 darwin/amd64 on a Mac with OSX 10.10

To reproduce the problem, here is a short go program:

package main

import "fmt"

func main() {
var steps, i int
fmt.Scanf("%d", &steps)

var a, b int
for i = 0; i < steps; i++ {
fmt.Scanf("%d", &a)
fmt.Scanf("%d", &b)
fmt.Println(a + b)
}
}

And an input file

2
2 5
4 8

go run test.go < input

I expect to see regardless of the line endings been \r\n or \n:

7
12

But I see

2
7

when in the input file the line endings are \r\n .

If the line endings are \n it works fine.
Issue 1:
Martin Ahrer opened SPR-5236 and commented

org.springframework.orm.jpa.vendor.HibernateJpaDialect.getSession should not try to cast directly to HibernateEntityManager since there is a chance that the entity manager passed in is just a proxy for the EntityManager interface!

protected Session getSession(EntityManager em) {
return ((HibernateEntityManager) em).getSession();
}

This cast can be avoided (see below)

protected Session getSession(EntityManager em) {
return (Session) em.getDelegate();
}

I'm facing this problem while I'm trying to integrate Seam with Spring. Seam is in charge of managing the life time of the entity manager and passing it on to Spring using org.jboss.seam.ioc.spring.SeamManagedEntityManagerFactoryBean.

Currently a work around is to subclass HibernateJpaDialect and implement getSession as shown!

Affects: 2.5.5

Issue Links:

#9909 HibernateJpaDialect.getSession casting to HibernateEntityManager ("duplicates")

Issue 2:
Abhishek Gupta opened SPR-7782 and commented

In production applications it is imperative that SQL statements and bind parameters be logged at a configurable level for support purposes.

When using the JdbcTemplate spring does currently log both, but sql statements are logged at debug level and parameters are logged in the 'o.s.j.c.StatementCreatorUtils' class at trace level. It is impractical to keep trace level on in a critical (or any) production system - even for a single class. There are other non-important (or non-functional) debug/trace logs that might be in the class that are not required to be logged. Or new ones might be introduced in future versions.

We would want the query/params to be logged at info level but again that might not be suitable for others, so ideally it should be something that is configurable.

The work-around today is ugly, in that we wrap the JdbcTemplate just to be able to log the parameters. Ideally, if there could be a property in the JdbcTemplate that accepts the log level for functional logs (query, params in this case) it would be most helpful. Given that JdbcTemplate is now a total replacement for using any low level jdbc api, and is so popular, it makes sense to have this feature that will give users more control and contribute to the completeness of such a widely used Spring offering.

I am happy to use any other solution you might have that addresses this use-case.

Thanks,

Abhi

P.S. This really applies to other classes too like in the jdbc.object package

Affects: 3.0.5

Issue Links:

#14041 JdbcTemplate parameter and result logging ("is duplicated by")

#12774 Revisit subsystem-oriented logging

6 votes, 14 watchers
Issue 1:
Mark Fisher opened SPR-6847 and commented

The approach should be consistent with @Transactional:

http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/htmlsingle/spring-framework-reference.html#tx-multiple-tx-mgrs-with-attransactional

The bean name may be considered, but the 'qualifier' is generally recommended.

@Async("beanNameOrQualifierValue")
public void someOp() {
...
}

Affects: 3.0 GA

Sub-tasks:

#14079 Backport "Enable Executor qualification with @Async"

Issue Links:

#13956 @Async groups ("is duplicated by")

#11705 Allow @Async to specify which executor to use ("is duplicated by")

#14209 Issue with @Async in version 3.1.2 linking to the task executor it is assigned to (instead of the default)

#13338 Introduce qualifier in @Cacheable for cache manager name

#18792 Enable Executor qualification with @Scheduled

#18392 BeanFactoryAnnotationUtils.qualifiedBeanOfType does not work for @Qualifier on bean class

14 votes, 14 watchers

Issue 2:
Bertrand Fovez opened SPR-4073 and commented

When application context is starting using jee namespace fails bacause import in the xsd in beans and tool doesn't have schema location.

spring-jee-2.0.xsd is not valid schema.

Affects: 2.5 RC1

Issue Links:

#8747 Call to http://www.springframework.org/schema/util/spring-util-2.5.xsd results to an HTTP 404 error ("is duplicated by")

#8717 "http://www.springframework.org/schema/util/spring-util-2.5.xsd" is not found (404) ("is duplicated by")
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

No errors

Current Behavior

Clicking on Dynamic1 or Dynamic2 blinks an error before a correct page is displayed

Clicking on Level1 home page or Level1 about page displays "Not Found"

Clicking on WithHash displays An unexpected error has occured

Steps to Reproduce (for bugs)

Run an project from test/integration/static, for example by:

cp -r test/integration/static /tmp/next-client

cd /tmp/next-client

yarn init -y

yarn add next react react-dom

next build && next export && serve out

visit localhost:5000 and click links described in Current Behaviour

Context

Your Environment

Tech
Version

next
4.3.0-canary.1

node
v8.2.1

OS
10.11.2 El Capitan

browser
Chrome 62.0.3202.94

etc

Issue 2:
Bug report

Describe the bug

Everything can be found here: remarkjs/remark#454

To Reproduce

follow the steps in the issue, or look at the codesandbox

Expected behavior

I'd expect IE11 not have a syntax error and expecting the same behavior of what other examples in the issue do.

Screenshots

N/A

System information

OS: N/A

Browser (if applies) N/A

Version of Next.js: 9.1.4

Additional context

N/A
Issue 1:
Sample

class Foo {
something;
constructor(public bar /*rename bar*/) {
this.something = bar;
}
}

Rename bar to foo and you expect:

class Foo {
something;
constructor(public foo /*rename bar*/) {
this.something = foo;
}
}

But you get:

class Foo {
something;
constructor(public foo /*rename bar*/) {
this.something = bar; // Error here
}
}

Error reproduce-able on playground. Fortunately we get an error on usages ;) so nothing bad happens silently 🌹

Issue 2:
Rename parent to parent_.

class Foo {
constructor(private parent) {
parent
}
}

expected

class Foo {
constructor(private parent_) {
parent_
}
}

actual

class Foo {
constructor(private parent_) {
parent
}
}

Visual Studio 2013
Issue 1:
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np

# Load example data
data = np.random.normal(size=100)

# Create histogram plot with legend label
sns.histplot(data, label='Total Bills')

# Add legend and set title
plt.legend(title="Legend Title")
plt.title("Histogram Plot with Single Legend Label")

# Show plot
plt.show()

The code gives me:

How can I let it show only one legend label? Thanks!

Issue 2:
The following code results in a segmentation fault if fastcluster is not installed :

import numpy
import seaborn
a = [ [ 1,2,3,numpy.inf ],
[ 1,2,3,numpy.inf ],
[ 1,2,3,numpy.inf ],
[ 1,2,3,numpy.inf ] ]
seaborn.clustermap( a )

Most (all?) distance metrics in scipy.distance.pdist will fail produce valid output if the matrix contains inf or nan, but someone should probably raise an exception somewhere before things devolve badly enough to take down the interpreter.
Issue 1:
I have been working on Deno compatibility for the TypeScript data validation library "Zod" (colinhacks/zod#269). The v3 development branch is working properly under deno run, but I am still encountering some errors in the output of deno bundle.

I am testing with the latest canary build representing the current master, 36ff7bd (deno 1.6.3+36ff7bd (canary, x86_64-unknown-linux-gnu)). #9085/swc-project/swc#1318 resolved the error I was previously encountering in #9085, but I am encountering new ones.

when I run deno bundle https://raw.githubusercontent.com/colinhacks/zod/654680afc2ede388e71e09104eac5a0088fe3207/deno/lib/index.ts && deno run bundle.js, an error is thrown while evaluating the bundled module:

error: Uncaught ReferenceError: util is not defined
const ZodIssueCode = util.arrayToEnum([
^
at file:///mnt/c/Users/_/src/bundle.js:1:22

When we look at the bundle output, we can indeed see that the contents of the "./helpers/util.ts"; import are not present in the bundled output.

When we don't go through the bundler, but instead just use deno run https://raw.githubusercontent.com/colinhacks/zod/654680afc2ede388e71e09104eac5a0088fe3207/deno/lib/index.ts directly, the library is imported and evaluated without any errors.

I experienced the same result (run successful, bundle-and-run missing modules) when I tried bundling a real project of mine that was using Zod and Deno, instead of the above example.

Issue 2:
deno@v1.5.4

mod.ts

export namespace Bar {
export function foo() {
console.log("foo");
}
}

main.ts

import { Bar } from "./mod.ts";
Bar.foo();

deno bundle main.ts main.bundle.js

but main.bundle.js:

Bar.foo();

deno run main.bundle.js

error: Uncaught ReferenceError: Bar is not defined
Bar.foo();
.....
Issue 1:
I'm working on a compile-to-js language called Skew. Visual Studio Code's language services API has been really awesome so far and I'm impressed how easy it was to hook up my compiler to provide standard features like tooltips and diagnostics and so on. I tried to do the same thing in Atom and ended up needing to implement tooltips and squiggly underlines and stuff which was a bummer. So great job on the API!

Right now the primary target language for the Skew compiler is JavaScript, so it makes sense to run Skew code with the node debugger target. I recently discovered that the debugger supports source maps so I'd like to focus on making Visual Studio Code the primary IDE for Skew. However, Skew is different enough from JavaScript that the values in the debugger panel don't make sense sometimes and the value tooltips often don't work. Some examples: the object context is called "self" instead of "this", enums show up as numbers instead of their textual names, function names in the call stack use their rewritten names instead of their original names.

Is there a way to hook into the view layer of the debugger to provide better names, tooltips, and value visualizations for languages that compile to JavaScript? The debugger API seems to be at the wrong level. I want to leverage the existing node debugger, just change the view layer when the current file is Skew code. Doing this customization in the view layer also seems like the right place to me because it means debugging a project that uses multiple compile-to-js languages would be able to work. Other languages could benefit too. For example, tooltips currently don't work when debugging CoffeeScript for variables that use the "@" prefix to access instance variables.

Issue 2:
VSCode Version: 1.2.0-insider

OS Version: Win10

Steps to Reproduce:

as the title says
Issue 1:
When I try to iterate over a Map object as described in MDN: Map, i.e.

let map = new Map<string, string>();

map.set("key", "value");

for (let value of map.values()) {
console.debug(value);
}

the compiler complains:

Type 'IterableIterator<string>' is not an array type or a string type.

Is this a bug, or am I doing something wrong?

Issue 2:
NodeList interface is defined as iterable in DOM4, but by design it cannot be directly used in for-of loop because we cannot declare it as iterable in ES5.

Suggestion

Introduce a ES5-compatible way to declare iterable interfaces (Similar to what discussed in #2862)

// WebIDL-like way
interface NodeList {
iterable<Node>
}

// extends-like way
interface NodeList iterable<Node> {}

iterable<T> in ES6 mode will work as a shorthand of [Symbol.iterator](): IterableIterator<T> but in ES5 mode will just make an internal flag to be allowed in for-of loop.

// NodeList is marked as iterable,
// it has .length property and index signature for ES5 emit, so all good
for (let node of document.querySelectorAll("...")) {
}

This will make it work both on ES5 and ES6 without changing emit.
Issue 1:
I see modal flicker on iPad Retina in Safari and in Chrome 29.0.1547.57 on OS X 10.7.5. This needs more testing, please. Thanks!

Issue 2:
When launching the modal component (http://getbootstrap.com/javascript/#modals) the entire content will slightly move to the left on mac OS (haven't tried it on windows yet). With the active modal the scrollbar seem to disappear, while the content width still changes.

You can observer the problem on the bootstrap page
Issue 1:
Hi all,

there are cases when need to conditionally use part of template, for example header of box can be used to compound template depending on params. Currently am duplicating such partials.

But is there a solution for such partials?

thanks in advance.

Issue 2:
Version

2.5.22

Reproduction link

https://codesandbox.io/embed/vue-template-b6c06?fontsize=14&hidenavigation=1&theme=dark

Steps to reproduce

When the initial value of a is equal to true and b is equal to false, the child component was created twice.

When the initial value of a is equal to false and b is equal to true, the child component was created once.

When the initial value of a and b are same, the child component was created twice.

What is expected?

The child component is created the same number of times in different cases

What is actually happening?

The child component is created the different number of times in different cases
Issue 1:
Sometimes it is useful to create array of forms and render them in template separately with the same name ($form->getName()). But in this case Profiler will display only the last form in Panel, because FormDataCollector uses $form->getName() as index and the last form overrides previous forms.

Possible solution is to fix this code to somethink like

$name = $form->getName().'_'.uniqid();
$this->data['forms'][$name] = array();

In this case profiler will collect multiple forms correctly.

Issue 2:
Is it an expected behavior: in a controller that receives a request from the other controller using a forward() call, calling $request->getQueryString() returns the original query-string? (Request $request is injected as an argument in the controller action definition).

As a workaround I had to replace $request->getQueryString() with http_build_query($request->query->all()).