WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Dear Fabien,

Thank you for uploading your slides on the symphony hack day in Berlin.

I played around with the expression language and the got the error, that in the router the request is missing.

I created a fork of symfony standard to reproduce the problem:

https://github.com/sebastianblum/symfony-standard/tree/routing-condition

If I add the condition in the routing.yml

condition: "request.getMethod() in ['GET', 'POST'] and request.headers.get('User-Agent') matches '/firefox/i'"

see https://github.com/sebastianblum/symfony-standard/blob/routing-condition/src/Acme/DemoBundle/Resources/config/routing.yml

then I got the following error:

FatalErrorException: Error: Call to a member function getMethod() on a non-object

See complete stack trace https://gist.github.com/sebastianblum/7417064

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

Symfony version
all

When upgrading an app to Symfony 3.3 beta, an exception is triggered when using the framework.trusted_proxies option. I guess this BC break is OK because security, etc. But as you can see, the Console component has some issues when rendering nested exceptions:
Issue 1:
Environment

Windows build number: 10.0.18362.356
PowerToys version: 0.11.0

Steps to reproduce

Install using MSI and try to launch PowerToys using any of the available shortcuts.

Expected behavior

Expecting PowerToys to open / load.

Actual behavior

My monitors flicker briefly and Task Manager shows "PowerToys Runner" as running, consuming around 6.5MB of RAM. No window opens however and there is no icon in the Notification Area. All PowerToys shortcut icons are also blank, not the one expected.

Using Windows 10 with 4 monitors - 3 are running from a GTX 970 and one is running from on-board Intel GPU. Same problem after multiple re-installs / reboots.

Issue 2:
Environment

Windows build number: 10.0.18362.32
PowerToys version: 0.11.0
PowerToy module for which you are reporting the bug (if applicable):

Steps to reproduce

Reboot.

Expected behavior

An icon should appear in system tray, on which I can double click to open the main window. Or I should be able to open the main window by clicking PowerToys in the start menu.

Actual behavior

No icon appears in system tray. (Though it was there right after install&run before I reboot my machine.) Clicking on PowerToys in start menu brings up a dialog asking for privielge escalation, but nothing happens after then, no matter I click "yes" or "no".

The PowerToys seems to be running. I hold WIN and I see the shortcut hints. I hold down SHIFT and drag windows and I see FancyZone react. However, my FancyZone configuration disappears. Now I only have one zone that takes up the whole screen.

Screenshots
Issue 1:
TypeScript Version:

1.8.0

Code

interface A {
name: string;
age: number;
}

interface AExtension {
name?: string;
age?: number;
}

interface B {
key: string;
value: boolean;
}

interface BExtension {
key?: string;
value?: boolean;
}

function extend(base: A, extension: AExtension);
function extend(base: B, extension: BExtension);
function extend<T>(base: T, extension: any) {

}

const b : B = { key: '...', value: true };

extend(b, { key: '' });

Expected behavior:

Code completion for second parameter of extend shows properties of BExtension.

Actual behavior:

Code completion for second parameter of extend shows properties of AExtension.

Issue 2:
smile:before {
content: "\200B";
}

Is compressed to

smile:before {
content: "200B";
}

mgechev/angular-seed#390
Issue 1:
I was beating my head against the wall trying to figure out what I was doing wrong because this clearly was not unrolling my loop.

*for="field of fields" of course needs to be *for="#field of fields" >_<

Silently failing here seems bad. The for directive should at least check at runtime that it is receiving a valid variable declaration and throw if not. I'll leave it to you all to figure out how to send back useful line numbers and such ;)

Issue 2:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

When you create custom Http it is working in browser, but when you use it in NodeJs environment while rendering on server it never performs HttpRequest.

Expected behavior

Custom Http should work on browser or server side.

Minimal reproduction of the problem with instructions

https://github.com/kukjevov/ng-universal-demo You can see it in master branch. There is a custom Http which works on client, but not on server.

There are console logs, but log in subscribe method which prints result is only called on browser side if used with custom Http. If you use original Http log is also called on server and data are rendered to html.

From logs you can see that custom GET method is called but that is all. You cant even see

GET: /data: 3.005ms on server side if custom Http is used. So that means url was never called.

-->

Please tell us about your environment:

Win 10, VSCode, Express Server

Angular version: 4.0.0-rc.5

Browser: [all]

Language: [TypeScript 2.2.1]

Node (for AoT issues): node --version = 7.7.1
Issue 1:
I've created a navbar fixed to top and some content. When the modal is shown, a white 15px margin appears on the right side that pushes the content left.

It appears to be this rule:

body.modal-open,
.modal-open .navbar-fixed-top,
.modal-open .navbar-fixed-bottom {
margin-right: 15px;
}

I tested it on OSX in Chrome, Firefox and Opera and it shows similar behavior in all.

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 guys,

in the latest javascript file of bootstrap is an error in my opinion... (in all 3.0.x versions)

The problem is in the Collapse.prototype.show function.

Especially because of the 'collapsing' transition. Here you remove the 'collapse' class, because you are adding 'collapsing'. But after this step is complete, you are removing 'collapsing', but do not add the normal 'collapse' again, only in.

Which results in a lot of problems, because most application are waiting for an 'collapse in' class (as the documentation stated), which will be never there..

I made an fiddle to illustrate my point, if the content is shown it has only the class 'in':

http://jsfiddle.net/u4D46/

Regards

ICE

Issue 2:
Hi there,

i'm new to github so i hope i make not so much mistakes.

Here i have a demo of the problem:

http://jsfiddle.net/W6hPs/6/

i think the tab-plane has overflow:auto; and if the button group is dropped down the tab-plane don't get bigger. with overflow:visible; is it fixed. But i don't know the future issues for that change.
Issue 1:
Something like this should really produce a better error message:

mod foo {
extern mod extra;

use foo::extra;
}

/////////////////////////////////
//The error:
//bug-testing.rs:4:6: 4:16 error: unresolved import
//bug-testing.rs:4 use foo::extra;
// ^~~~~~~~~~
//error: aborting due to previous error
//////////////////////////////////

Not sure whether current compiler state makes it difficult to identify this and other reasons for failed resolution, but if it's fairly simple better error messages would be great.

Issue 2:
Example:

Foo {a: 1, b: 2, c: 3,
d: 4, e: 5}

if you indent the second line, it will work and result in:

Foo {a: 1, b: 2, c: 3,
d: 4, e: 5}

However, if there were a space after the '{':

Foo { a: 1, b: 2, c: 3,
d: 4, e: 5}

you would expect pressing tab on the second line to indent to:

Foo { a: 1, b: 2, c: 3,
d: 4, e: 5}

instead an error is raised, saying that forward-to-word's definition is void.
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.7.6, 2.7.7

Operating System version: macOS 10.14.1

Java version: 1.8.0_222

Steps to reproduce this issue

expose service with name Alice.call()

expose service with name Bob.call(), with an injvm @reference field Alice

add a filter to Alice, which print "filter invoked"

invoke Alice.call()

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

Expected Result

"filter invoked" was print in console.

Actual Result

"filter invoked" was not print in console.

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: 2.5.3

Operating System version: centos

Java version: 1.8

Steps to reproduce this issue

泛化实现一个dubbo服务

ServiceConfig service = dubboServices.get(serviceId);

this.removeService(service);

dubboServices.remove(serviceId);

service = this.createDubboService(serviceName, myGenericService, address, timeout,

protocolPort, groupName, retries, applicationName);

service.export();

注册中心写入规则，

{

"condition": " => host != 172.1.1.1",

"service":"com.bestpay.cf.instalmentmix.api.facade.account.CustomerService"

}

结果路由规则不生效

请求还是走到了172.1.1.1上的服务，没有按预期情况走到泛化实现的服务上面

Expected Result

希望是有方式可以让路由规则可以对泛化服务生效
Issue 1:
System information (version)

OpenCV => 3.4

Operating System / Platform => Windows 64 Bit

Compiler => Visual Studio 2019

Detailed description

I use cmake to build opencv 3.4, and there is a warning about OpenCV_RUNTIME.

CMake Warning at cmake/OpenCVDetectCXXCompiler.cmake:147 (message):
OpenCV does not recognize MSVC_VERSION "1921". Cannot set OpenCV_RUNTIME
Call Stack (most recent call first):
CMakeLists.txt:157 (include)

I check the file OpenCVDetectCXXCompiler.cmake, and in line 132-148.

if(MSVC_VERSION EQUAL 1400)
set(OpenCV_RUNTIME vc8)
elseif(MSVC_VERSION EQUAL 1500)
set(OpenCV_RUNTIME vc9)
elseif(MSVC_VERSION EQUAL 1600)
set(OpenCV_RUNTIME vc10)
elseif(MSVC_VERSION EQUAL 1700)
set(OpenCV_RUNTIME vc11)
elseif(MSVC_VERSION EQUAL 1800)
set(OpenCV_RUNTIME vc12)
elseif(MSVC_VERSION EQUAL 1900)
set(OpenCV_RUNTIME vc14)
elseif(MSVC_VERSION MATCHES "^191[0-9]$")
set(OpenCV_RUNTIME vc15)
else()
message(WARNING "OpenCV does not recognize MSVC_VERSION \"${MSVC_VERSION}\". Cannot set OpenCV_RUNTIME")
endif()

Can I just add MSVC_VERSION 1921 like this, or something else?

elseif(MSVC_VERSION MATCHES "^192[0-9]$")
set(OpenCV_RUNTIME vc16)

Steps to reproduce

Issue 2:
System Information

Version:

opencv-python 4.7.0.72

here is the image:

https://s3.ap-northeast-2.amazonaws.com/com.liveschole/common/1679969040122.png

here is the code.

img_path = <download image path>
img = cv2.imread(img_path)

here is the error code.

libpng error: Read Error
Issue 1:
Rust should support a no extra attribute and flag. This would be useful for me so I could:

compile my own hacked version of extra like rustc rust/src/libextra/extra.rs --output-dir .

compile a regressing benchmark like rustc -L . -Z no-extra rust/src/test/bench/msgsend-mutex-arcs.rs -o mutex-bench

and then run the benchmark file like ./mutex-bench

This would greatly speed up time hunting for the regression in mutex performance for my pull request #7701 .

Issue 2:
Once we can declare lifetime parameters, there is no reason not to permit them in type bounds. Also, I am not entirely sure if the way we are handling them is correct/sound. I've tagged places where such bounds appear with FIXMEs so that I can look into them later.

Example:

trait Iterable<'a> {
fn my_iter(&'a self);
}

fn foo<'a, C: Iterable<'a>>(c: C) {
c.my_iter();
}

fn main() { }

5121.rs:6:5: 6:6 error: internal compiler error: Cannot relate bound region: ReLateBound(12, BrNamed(syntax::ast::DefId{crate: 0u32, node: 21u32}, a)) <= ReInfer(1)
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: https://github.com/mozilla/rust/wiki/HOWTO-submit-a-Rust-bug-report
5121.rs:6 c.my_iter();
^
task 'rustc' failed at 'explicit failure', /home/huon/rust/src/libsyntax/diagnostic.rs:41
task '<main>' failed at 'explicit failure', /home/huon/rust/src/librustc/lib.rs:440

pnkfelix: I am adding a checklist to the bottom of this bug, where the unchecked issues represent problems that still remain unfixed (and the entire list of issues were closed as duplicates of this ticket).

#10391

#10467

#10841

#10868

#11016

#11446

#11881

#12008

#12851

#5715

#11971

#12856

#12857
Issue 1:
Elastic Search Version: 0.90.1

Number of servers: 16

Nodes: 32 (2 nodes per server)

When using N/2+1 to set the "discovery.zen.minimum_master_nodes":

discovery.zen.minimum_master_nodes: 17

The node will never join the cluster. I can set it to:

discovery.zen.minimum_master_nodes: 5

And it joins, but setting it to any number above 5 and it all not join.

Currently I have 4 hosts in the "discovery.zen.ping.unicast.hosts: "

discovery.zen.ping.unicast.hosts: ["node1", "node6", "node11", "node16"]

If I change "discovery.zen.minimum_master_nodes: 5" to "6" the node will not join the cluster. However if I add an additional host to "discovery.zen.ping.unicast.hosts:" the node will then join the cluster. This behavior is consistant, +1 to master_node and I need to add a host to unicast setting.

Issue 2:
If you have minimum_master_nodes set and you don't supply enough nodes in d.z.p.unicast.hosts, a node can fail to join the cluster. Described at http://thread.gmane.org/gmane.comp.search.elasticsearch.user/740.
Issue 1:
Try this:

x = Float16[2.3 4.3; 3.4 5.6]

svd(x)

The returned eigenvectors and eigenvalues are in Float32. I think they should be in Float16.

Compare to the behavior of svd(x) where x is Float32, or Float64. In these cases the result has the same type of x.

Issue 2:
At this point, Float16 is in a kind of weird limbo where it is sort of a storage type but we keep haphazardly adding more and more functionality to it. I think we really need to figure out where to draw the line here. Either we severely limit the scope of Float16's functionality and stop using it in tests for anything but converting to and from other numeric types, or we just go full throttle and make it a full computation type with as much functionality as Float32 or Float64 – albeit slower, since many operations will not be implemented as native machine ops.
Issue 1:
Bug report

Bug summary

When plotting with %matplotlib notebook, the canvas gets cropped to a small section in the top left corner.

Code for reproduction

When running the following code:

%matplotlib notebook
import matplotlib.pyplot as plt
import numpy as np

fig, ax = plt.subplots()
ax.scatter(range(10), range(10))

I get the following output in Chrome:

As you can see, the interactive plot is cropped to the top left corner. Inspecting the HTML shows that the height and width are undefined. Therefore, chrome defaults to the size 300 x 150

<canvas
class="mpl-canvas"
style="width: undefinedpx; height: undefinedpx;"
width="NaN"
height="NaN">
</canvas>

Closing the tab and rerunning in Firefox, I get no issues.

The shrunk canvas is still interactive (you can still pan the y-axis up and down), but obviously the height and width calculations went awry. I have tried restarting the Jupyter server (and the notebook kernel) and I still get the same result in Chrome.

Note: using %matplotlib inline works fine in Chrome.

To summarize, I only get this issue when I use %matplotlib notebook in Chrome. I don't know if switching to Windows would resolve this problem (I use Ubuntu 20.04).

Versions

I am running Jupyter in a virtual environment managed by Poetry.

% lsb_release -d
Description:	Ubuntu 20.04.1 LTS

% poetry run jupyter --version
jupyter core : 4.6.3
jupyter-notebook : 6.1.1
qtconsole : 4.7.5
ipython : 7.17.0
ipykernel : 5.3.4
jupyter client : 6.1.6
jupyter lab : not installed
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 5.0.7
traitlets : 4.3.3

% poetry run python -c 'import matplotlib; print(matplotlib.get_backend())'
TkAgg

% poetry run python -V
Python 3.8.3

% google-chrome --version
Google Chrome 84.0.4147.105

% cat pyproject.toml
...

[tool.poetry.dependencies]
python = "^3.8"
jupyter = "^1.0.0"
pandas = "^1.1.0"
numpy = "^1.19.1"
scipy = "^1.5.2"
networkx = "^2.4"
ipywidgets = "^7.5.1"
matplotlib = "^3.3.0"
sklearn = "^0.0"

...

Issue 2:
Bug report

Bug summary

A simple 3D scatter plot is not working on jupyter notebook when %matplotlib notebook is enabled. However, it is working for %matplotlib inline

An extremely large, blank window appears that spans beyond the page.

Code for reproduction

%matplotlib notebook

import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

A = np.random.random((100,3))
fig = plt.figure()
ax = Axes3D(fig)
ax.scatter(A[:,0], A[:,1], A[:,2])
plt.show()

Actual outcome

Expected outcome

Expecting a 3D scatter plot of A.

Matplotlib version

Operating system: posix Darwin 19.6.0

Matplotlib version: 3.3.0

Matplotlib backend (print(matplotlib.get_backend())): nbAgg

Python version: 3.7.5

Jupyter version (if applicable):

jupyter core : 4.6.3

jupyter-notebook : 6.0.3

qtconsole : 4.7.5

ipython : 7.16.1

ipykernel : 5.3.4

jupyter client : 6.1.6

jupyter lab : not installed

nbconvert : 5.6.1

ipywidgets : 7.5.1

nbformat : 5.0.7

traitlets : 4.3.3

Other libraries: numpy 1.19.1, scipy 1.5.2
Issue 1:
Florian Rampp opened SPR-7383 and commented

The current implementations of ClientHttpRequestFactory (besides SimpleClientHttpRequestFactory) only comprise CommonsClientHttpRequestFactory, which depends on Jakarta Commons HttpClient. The successor of this is Apache HttpComponents. See: http://hc.apache.org/httpclient-3.x/#History

It would be desirable to employ the newer HttpComponents HttpClient. Therefore, an implementation of ClientHttpRequestFactory for usage with the HttpComponents HttpClient is necessary.

This issue might be related to http://jira.springframework.org/browse/SWS-563.

Affects: 3.1 M1

Issue Links:

#11385 CommonsClientHttpRequestFactory getHttpClient() returns HttpClient from Commons HttpClient 3.x which has been EOL'd ("duplicates")

Issue 2:
Dave Syer opened SPR-7632 and commented

Allow valid file extension paths to be specified in DispatcherServlet. My use case is

@RequestMapping(value = "/jobs/{jobName}", method = RequestMethod.GET)

I need .html and .json to be valid extensions (stripped off by the dispatcher), but other . separated jobName values are legal and should be presented as they are (e.g. my.job or my.job.html both resolve to my.job).

The current behaviour is simply to truncate at the first period. Even with a regex pattern {jobName:.*} we truncate the path, so the only way to make it work is to add HttpServletRequest to all controller methods and extract the parameter manually (back to Spring 2.5).

Affects: 3.0.6

This issue is a sub-task of #13057

Issue Links:

#13120 Configure PatternsRequestCondition with information that allows it to do a smart suffix pattern match ("is duplicated by")

#19242 @PathVariable will cut off the last point ("is duplicated by")

#10832 a Uri Value is incorrectly extracted if it contains '.'.

Referenced from: commits 4fd7645

0 votes, 6 watchers
Issue 1:
Please:

[x ] Check for duplicate issues.

[ x] Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

This code generates a Traceback. If I replace jax.opt.adam with jax_opt.sgd, it seems to work fine. That is why I suspect something is wrong in adam. This is in jax version 0.2.25.

import jax.example_libraries.optimizers as jax_opt
from jax import value_and_grad
import jax.numpy as np

opt_init, opt_update, get_params = jax_opt.adam(1e-2)

opt_state = opt_init(np.array(1.1))

def objective(x):
return (x**2).squeeze()

def step(i, opt_state):
value, grads = value_and_grad(objective)(get_params(opt_state))
return value, opt_update(step, grads, opt_state)

step(0, opt_state)

[x ] If applicable, include full error messages/tracebacks.

I get this resulting error

---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-7-caac38fbc2ef> in <module>()
14 return value, opt_update(step, grads, opt_state)
15
---> 16 step(0, opt_state)

3 frames
/usr/local/lib/python3.7/dist-packages/jax/example_libraries/optimizers.py in update(i, g, state)
408 m = (1 - b1) * g + b1 * m # First moment estimate.
409 v = (1 - b2) * jnp.square(g) + b2 * v # Second moment estimate.
--> 410 mhat = m / (1 - jnp.asarray(b1, m.dtype) ** (i + 1)) # Bias correction.
411 vhat = v / (1 - jnp.asarray(b2, m.dtype) ** (i + 1))
412 x = x - step_size(i) * mhat / (jnp.sqrt(vhat) + eps)

TypeError: unsupported operand type(s) for +: 'function' and 'int'

Issue 2:
The documentation of jax.devices says that it returns all devices. This is not true in multi-backend setups, it returns only the devices from the default backend. This was confusing to me initially, and I also encountered this confusion in issue #2785

The simplest change would be to the documentation: if no backend is specified then only the devices on the default backend are returned (along with an explanation of what is the default backend).

A better change may be though to say that it returns all devices, in the order of backend priority, such that devices()[0] is the same as now. This may break some code though.
Issue 1:
So here's a weird one. I have a Docker container based on debian:stable where I install python3 and python3-pip, and when trying to install requests from a requirements.txt file I get the following:

Downloading/unpacking requests (from -r /tmp/requirements/xxx.txt (line 2))
Running setup.py egg_info for package requests

Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1014, in prepare_files
req_to_install.assert_source_matches_version()
File "/usr/lib/python3/dist-packages/pip/req.py", line 359, in assert_source_matches_version
version = self.installed_version
File "/usr/lib/python3/dist-packages/pip/req.py", line 351, in installed_version
return self.pkg_info()['version']
File "/usr/lib/python3/dist-packages/pip/req.py", line 318, in pkg_info
data = self.egg_info_data('PKG-INFO')
File "/usr/lib/python3/dist-packages/pip/req.py", line 261, in egg_info_data
data = fp.read()
File "/usr/lib/python3.2/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8161: ordinal not in range(128)

However, when I run pip-3.2 install requests directly, it works fine.

I honestly have no idea where even to start on debugging this.

Issue 2:
The current Requests implementation seems not to work for https request under proxy.

I have posted a question on stackoverflow:

http://stackoverflow.com/questions/13005301/https-proxy-support-in-python-requests-library