WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Marius Bogoevici opened SPR-8656 and commented

Suppose there is a class

@Controller
@RequestMapping("/foo")
public class FooController{

@RequestMapping(value="/{id}", method=RequestMethod.GET)
public String viewFoo(@PathVariable("id") Long id) {
...
}

}

After applying an advice (e.g. using <aop:aspectj-autoproxy proxy-target-class="true"/>), a proxy class instance will be used as a controller. However, the framework will try use information from the proxy class to handle the request, which will result in various errors (e.g. parameter mappings are not available due to the fact that @PathVariable is lost, etc).

A suggestion in this case would be to detect that the controller is in fact a proxy and to try to read the metadata from the target class.

Affects: 3.1 M2

Issue 2:
Tuomas Kiviaho opened SPR-8491 and commented

java.awt.Component has both

public void setSize(int width, int height)

and

public void setSize(Dimension d)

introspection of classes derived from this base class (using BeanUtils.getPropertyDescriptor) now crashes with following exception

...

Caused by: java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: size

at java.beans.IndexedPropertyDescriptor.findIndexedPropertyType(IndexedPropertyDescriptor.java:341)

at java.beans.IndexedPropertyDescriptor.setIndexedWriteMethod(IndexedPropertyDescriptor.java:248)

at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:233)

at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:178)

at org.springframework.beans.ExtendedBeanInfo.<init>(ExtendedBeanInfo.java:108)

at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:224)

... 92 more

I guess that this can be omitted by first checking whether or not index method really has to be updated or not (it seems to be already null)

Affects: 3.1 M2

Attachments:

SPR-8491.zip (3.02 kB)

Issue Links:

#13448 ExtendedBeanInfo raises 'type mismatch' error with covariant property types ("duplicates")

#13571 Regression - Introspection with BeanUtils started failing for java.math.BigDecimal

#14663 Overhaul non-void JavaBean write method support

3 votes, 5 watchers
Issue 1:
CSS standards have changed, meaning that CSSStyleDeclaration's indexer property does not have a setter. This leads to a script error in setValueForStyles around

react/packages/react-dom/src/shared/CSSPropertyOperations.js

Line 82
in
21d5f7d

style[styleName] = styleValue;

.

This was reported to Chrome as https://crbug.com/951046 and resolved as by-design. Note: This issue is effectively a duplicate of #11895, but I don't think I have permission to reopen that issue to provide more information.

REPRO 1: Visit http://plumbandbath.co.uk/

OBSERVE: Full error page with stack trace.

REPRO 2:

(1) Visit https://skylifepro.com/#

(2) Click Login button at top right

EXPECT: Login html appears

OBSERVE: No login feature, script errors in console.

Uncaught TypeError: Failed to set an indexed property on 'CSSStyleDeclaration': Index property setter is not supported.

at Object.setValueForStyles (homepage.js?t=1543226156:28)

at m._updateDOMProperties (homepage.js?t=1543226156:29)

at mountComponent (homepage.js?t=1543226156:29)

at Object.mountComponent (homepage.js?t=1543226156:4)

at c.performInitialMount (homepage.js?t=1543226156:29)

at c.mountComponent (homepage.js?t=1543226156:29)

at Object.mountComponent (homepage.js?t=1543226156:4)

at mountChildren (homepage.js?t=1543226156:30)

at m._createInitialChildren (homepage.js?t=1543226156:29)

Issue 2:
Since this.setState has a callback, it would be sweet if you could use await this.setState!
Issue 1:
I looked at the other similar issues, including @#1103, and tried the recepies given there, but still haven't solved my problem.

Here is the output & Thank you for the help!

##########################

Issue 2:
Hi, I'm trying to use the hue parameter in my charts, but whenever it gets added, the figure fails to trigger.

From the examples at https://seaborn.pydata.org/tutorial/relational.html:

import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set(style="darkgrid") tips = sns.load_dataset("tips") sns.relplot(x="total_bill", y="tip", data=tips);

The above draws correctly, but when I add:

sns.relplot(x="total_bill", y="tip", hue="smoker", data=tips);

An error message is triggered, traced back to _backend_tk.py, backend_tkagg.py

This is also true of any other plots requiring the 'style' parameter in a default scatterplot

This is my Python venv environment, currently using Python 3.8:

Pillow
7.2.0

certifi
2020.6.20

cycler
0.10.0

kiwisolver
1.2.0

matplotlib
3.3.1

numpy
1.19.1

pandas
1.1.0

pip
20.2.2

pyparsing
2.4.7

python-dateutil
2.8.1

pytz
2020.1

scipy
1.5.2

seaborn
0.10.1

setuptools
49.6.0

six
1.15.0
Issue 1:
Feature

Dear developers,

Could you please "round()" member function for "np.array", which will be more like OO programming.

Here is a snippet example:

x = np.array((13,2.5))
y = np.around(x)
y1 = x.around()

Issue 2:
Rank 1 matrices should be removed. They don't behave as expected. For example a rank 1 matrix transpose does not return an error and does not do a transpose as expected. This can cause silent bugs. I'm not sure what purpose these rank 1 matrices serve but they are confusing.
Issue 1:
When you call a method with a borrowed self, the compiler appears to assume that the borrow of self starts before the other parameters to that method have been evaluated, which seems wrong. This forces you to create local variables unnecessarily. Here's an example of code that I think should compile, but doesn't:

struct Thingy {
i:int
}
impl Thingy {
fn do_something_mutable(&mut self, x: int) {
// Just assume there's a real reason for self to be mutable here...
println(format!("{}", x));
}
fn get_i(&self) -> int { self.i }
}

fn main() {
let mut o = Thingy{ i: 2 };
o.do_something_mutable(o.get_i()); // This line should compile, but doesn't
}

the error is this:

lifetime-call-param.rs:13:27: 13:28 error: cannot borrow `o` as immutable because it is also borrowed as mutable
lifetime-call-param.rs:13 o.do_something_mutable(o.get_i());
^
lifetime-call-param.rs:13:4: 13:5 note: second borrow of `o` occurs here
lifetime-call-param.rs:13 o.do_something_mutable(o.get_i());
^

If you replace the problematic line with this it compiles and works fine:

let y = o.get_i();
o.do_something_mutable(y);

but isn't that equivalent to the non-compiling version?

Issue 2:
This is challenging to resolve. I thought I could fit into the new borrow checker, but it is worth addressing separately since there are a number of subtle issues. What this really amounts to is that you need to support borrows where the lifetime of the borrow pointer does not encompass the borrow itself. To handle this safely, we wind up with two loans, the primary one and then a secondary, aliasing loan that tracks the fact that a pointer has been created, even if the memory it points at cannot be dereferenced yet.

Part of #5074
Issue 1:
The error is reported in case when the indexer is a union type of string|number:

var a:number|string

var b:any

var c = b[a]; <- TS2342

Issue 2:
I have declared function getter(key: string|number).

Inside I try to do var x = someObject[key]

I get a TS error saying "An index expression argument must be of type 'string', 'number' or 'any'.

Obviously key satisfies this constraint as it is either a string or a number. But I guess the TS compiler does hard type equality checks in this case.
Issue 1:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

Override replaces some but not all instances of overriden dependency. In this example, I have a dependency on a package which has a dependency on npm which contains a vulnerable version of ansi-regex. I tried to fix this via an override but npm audit still complains and searching through package-lock.json shows various version numbers before my overriden value.

Expected Behavior

According to docs, overrides should ensure all installed instances of a dependency conform to the given value so I expect my override version 5.0.1 only to exist.

Steps To Reproduce

Clone https://github.com/melink14/rikaikun

Modify package.json with:

"overrides": {
"ansi-regex": "5.0.1",
},

Delete package-lock.json and run npm install

Run npm audit and see that vulnerable older versions of ansi-regex still exist..

Environment

npm: 8.3.2

Node.js: 16

OS Name: WSL Pengwin

System Model Name:

npm config:

; node bin location = /home/espeed/n/bin/node
; cwd = /home/espeed/projects/rikaikun
; HOME = /home/espeed
; Run `npm config ls -l` to show all defaults.

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

After updating the overrides, npm install is not updating the package.lock or node_modules.

To make it work I had to remove both package.lock and node_modules, then the overrides have been applied.

Expected Behavior

Change in overrides should update package.lock and node_modules after running npm install

Steps To Reproduce

Add a dependency

npm install

Add override

npm install

Environment

npm: >=8.3.0

Node.js: 16.13.2

OS Name: macOS 12

System Model Name:

npm config:

; copy and paste output from `npm config ls` here
Issue 1:
Issue Type: Feature Idea

Ansible Version: 1.9.1

Ansible Configuration: nothing changed

Environment: RHEL/CentOS 7

Summary:

I'm trying to keep some software installed into a non-standard directory. Currently using the yum module I can't specify an alternative installroot path.

Expected Results:

I would like to be able to add --installroot option like I can do this with yum in linux.

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

include_role

ANSIBLE VERSION

ansible 2.2.2.0

config file = /etc/ansible/ansible.cfg

configured module search path = Default w/o overrides

CONFIGURATION

n/a

OS / ENVIRONMENT

Ubuntu

SUMMARY

The tasks_from variable is not resolved in the include_role module. However the name variable is resolved

STEPS TO REPRODUCE

ansible-playbook play.yml --extra-vars "tasks=debug role=test_role"

roles/test_role/tasks/debug.yml
- debug: msg="debug {{ansible_host}}"

play.yml
- name: test play
hosts: all
tasks:
- debug: msg="{{tasks}}"
- include_role:
name: "{{role}}"
tasks_from: "{{tasks}}"

EXPECTED RESULTS

xploit@ubuntu:/mnt/hgfs/workspace_/infra/bss$ ansible --version
ansible 2.2.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
exploit@ubuntu:/mnt/hgfs/workspace_/infra/bss$ ansible-playbook -i inventories/sigfox-local.ini play.yml --extra-vars "tasks=debug role=test_role"

PLAY [test play] ***************************************************************

TASK [setup] *******************************************************************
ok: [localhost]

TASK [debug] *******************************************************************
ok: [localhost] => {
"msg": "debug"
}

TASK [test_role : debug] *******************************************************
ok: [localhost] => {
"msg": "debug localhost"
}

PLAY RECAP *********************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=0

ACTUAL RESULTS

Using /etc/ansible/ansible.cfg as config file
ERROR! Could not find specified file in role: {{tasks}}
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1526 on 2011-09-29 by trac user tony.stillfjord, assigned to @wnbell.

With a scipy.sparse.lil_matrix A, assignments of the form A[L1, L2] = 0, where L1 and L2 are two index lists, give the wrong results. If either L1 or L2 is a single index it works fine. Only accessing the matrix with A[L1, L2] also gives the right elements, it is just the assignment part that fails. Exchanging the 0 with an array of the correct length does not help.

The faulty behaviour seems to be equivalent to A[min(L1):max(L1)+1, min(L2):max(L2)+1] = 0 but I'm not completely sure. The code below illustrates the bug:

import numpy

import scipy.sparse

B = numpy.array([[1,2,3],[3,4,5],[6,7,8]])

A = scipy.sparse.lil_matrix(B)

print 'A:', A.todense()

print 'B:', B

print 'Some A-elements:', A[[0,1,2],[1,2,0]].todense()

print 'Some B-elements:', B[[0,1,2],[1,2,0]]

B[[0,1,2],[1,2,0]] = 0

print 'New B:', B

A[[0,1,2],[1,2,0]] = 0

print 'New A:', A.todense()

Output:

A: [[1 2 3]

[3 4 5]

[6 7 8]]

B: [[1 2 3]

[3 4 5]

[6 7 8]]

Some A-elements: [[2 5 6]]

Some B-elements: [2 5 6]

New B: [[1 0 3]

[3 4 0]

[0 7 8]]

New A: [[0 0 0]

[0 0 0]

[0 0 0]]

Issue 2:
When defining a list of constraints as an input for the scipy.optimize.minimize (using a default 'SLSQP' method), repeated or redundant constraints will raise messages like "Singular matrix C in LSQ subproblem", and a solution is not achieved, when in fact, these repeated/redundant constraints should just be ignored.

This is very relevant when one has to define multiple inequality and equality constraints, which sometimes partially overlap for some of the constraints.

To replicate the problem: Use a working example of a constrained minimization problem, but now duplicate the list of constraints (two times more constraints, but all of them repeated).

Example where this is useful: Forcing a bivariate polynomial f(x,y) of a certain degree, to be f(0,y)=0 and forcing it's first derivative with respect to x, to be d f(x=1,y) / dx = 0, will provide a large set of equality constraints where a few of them are redundant.
Issue 1:
Steven Bazyl opened SPR-765 and commented

I haven't yet narrowed down a simple test case, but we recently saw a problem where we're trying to load multiple spring bean definition files from jars packaged in an ear using a well-known filename approach (e.g. classpath*:beans.xml)

What we're seeing is that the same UrlResource is being returned multiple times. While its harmless in that it only results in beans redefining themselves with the same definition, it does cause a lot of noise in the logs and increases our start up time just slightly. We've also seen cases where the same URL is returned albeit with slightly different path represenatations ( /beans.xml vs. /./beans.xml)

It would be nice if findAllClassPathResources() ensured each unique resource is returned once and only once. One simple change is just changing from List to Set to hold the resources while enumerating. This fixes the first part (same path multiple times) and fixing the second part should just be a matter of normalizing the URL.

Affects: 1.1.5

Issue 2:
David Fogel opened SPR-5932 and commented

What we are seeing is that when we use @Configuration-annotated configuration classes to define our beans, that our singleton beans are instead treated as prototype beans. This means that we get new instances of our singletons for each time they are referenced (!!!).

I have created sample code which demonstrates this broken behavior.

This code, when run as a regular spring-ified java application, (NOT OSGi), works as expected (only ONE instance of Foo and Bar are created).

BUT, when the identical code is run via Spring DM, THREE different instances of Bar are created!

Note: I used a FileSystemXmlApplicationContext to load this when running as a normal java application, and put the config.xml file inside a /META-INF/spring folder when running in Spring dm.

Affects: 3.0 M3

Reference URL: http://forum.springsource.org/showthread.php?t=74458

Attachments:

spring-dm-javaconfig-bug.zip (2.96 kB)

Issue Links:

SJC-89 Ensure OSGi / Spring Dynamic Modules compatibility ("is duplicated by")

#13912 Java config FactoryBean proxy causes class loader leak

#14941 Concurrent creation of the same Configuration class in different contexts is not thread-safe

Referenced from: commits 9e0d87c
Issue 1:
Enable mapping a shortcut to a single key (and vice versa)

The expected behaviour would be to set the following mappings:

Alt + o -> ö

Shift + Alt + o -> Ö

What works already is the second example, since you can make it to produce Shift + ö (which then prints as Ö).

What doesn't work is the first example, since key remapping does not allow for using shortcut sequences (instead only single keys) and on the other hand shortcut remapping does not allow for a single keystroke be its result ("Shortcut must start with a modifier key" when trying to set ö as the result of Alt + o shortcut).

For me the scenario would be to get rid of German QWERTZ keyboards and be able to do programming with QWERTY, while also being able to type proper German text with Umlauts. All of that while not having to use a crude keyboard layout where, e.g.:

RAlt + q = ä

RAlt + p = ö

RAlt + y = ü

Maybe the way to go would be to either add another category that allows intermixed (shortcut -> single keystroke) mappings, or just allow exactly that for the existing shortcut remapping category.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
I'll keep this short bcz there's literally a lot that could be added for this. It's almost a standlaone app but it should be part of windows.

Press Win key.

Type 'Desktop'.

Watch search fail not finding the desktop folder.

Cry.

So really the cortana search is at best aweful. Can we make it useful (or create something else that is useful)? It'd be good for people who like to not use mouse.
Issue 1:
Describe what you were doing when the bug occurred:

1.

2.

3.

Please do not remove the text below this line

DevTools version: 4.3.0-3e0967783

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159833

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159779)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:160302)

at Sl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:322998)

at ii (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59363)

at Sl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107431)

at Ic (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:99973)

at Tc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:99898)

at vc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:96672)

Component stack: in Sl

in div

in div

in div

in vo

in Unknown

in n

in Unknown

in div

in div

in Qi

in Ve

in nn

in Da

in Yc

Issue 2:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

I got this error when I click 'Ranked'.

Please do not remove the text below this line

DevTools version: 4.0.4-3c6a219

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)

at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

Component stack: in _i

in div

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ha

in le

in ve

in ko

in Ul
Issue 1:
I don't think there's really any need to have http for the site at all. Any non-TLS location is a chance for an attacker to send users to a malicious download.

Issue 2:
I just noticed that the rust-lang.org, the nighty archives, and rustup.sh are not being served over https. We should set this up to protect users from man-in-the-middle attacks. Nominating for this to be done before we release 1.0.

set up https for static.rust-lang.org

change binary links on website

change binary links on wiki

change binary links in docs

change rustup links in docs

modify rustup.sh to download over ssl

move rustup.sh to static.rust-lang.org

deprecate www.rust-lang.org/rustup.sh

change makefiles to download snapshots over ssl?
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.4.9-sp5-20150715

Operating System version: linux

Java version: 1.5

Steps to reproduce this issue

在dubbo:refrence 中配置了cache=“LRU”,发现数据无法获取最新数据，有时候取到新的，有时候取到旧的，后来将cache配置删了，发现还是无法解决；

通过调试，用命令trace dubbo接口，发现接口返回的数据中每次都是最新的，但是在程序中debug获取的返回值却是旧的，搞不懂了，为什么会与trace返回的数据不一样呢？

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

正常理解是cache去除后，应该是不走缓存？还是说配置问题？

是否会有缓存的序列化的问题，如果有，怎么清除序列化文件？

Actual Result

![image](https://user-images.githubusercontent.com/25905832/54585896-59751900-4a56-11e9-8878-8457ae76cb69.png)
![image](https://user-images.githubusercontent.com/25905832/54585950-7dd0f580-4a56-11e9-87e3-dfee68a43861.png)

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: v2.6.5

Operating System version:windows 7

Java version: v1.8

Steps to reproduce this issue

<dubbo:service id="helloService" interface="com.alibaba.hello.api.HelloService" version="1.0.0" protocol="dubbo,hessian" />

<dubbo:reference id="helloService" interface="com.alibaba.hello.api.HelloService"/>

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

hope success

Actual Result

com.alibaba.dubbo.rpc.RpcException: Unsupported client type: httpclient, supported client type is grizzly mina netty netty4