WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Martin Probst opened SPR-4630 and commented

When a MethodInvokingJob scheduled by Quartz throws an exception, the error is logged twice, once at WARN level by the MethodInvokingJob wrapper, and once at INFO by Quartz.

This is because the MethodInvokingJob catches all exceptions thrown by the invoked method (InvocationTargetExceptions), and then re-throws them as JobExecutionExceptions. Quartz apparently considers those to be "expected exceptions" that are used for scheduling purposes, and as such they are only logged as INFO.

Spring's MethodInvokingJob should probably find out if the thrown exceptions was a runtime exception, and re-throw it, and simply wrap checked exceptions in an appropriate RuntimeException and rethrow them. JobExecutionExceptions are apparently reserved for other purposes.

Also, you should probably not log an exception that you are re-throwing anyways, that only gives duplicate log entries, making a potential problem harder to find.

Affects: 2.0.8, 2.5.1

Backported to: 2.0.9

Issue 2:
Costin Leau opened SPR-6844 and commented

The code path for annotation-based servlet and portlet controllers has some "hot spots" that could be improved.

Affects: 3.0 GA

Attachments:

patch.diff (6.54 kB)

Issue Links:

#12359 improve the process of finding actual methods for servlet and portlet handlers ("is duplicated by")
Issue 1:
Currently there is no way to force printing into landscape. This means I have to offer my users portrait/landscape choice in the UI so I can render my print output for the correct size and then hope the user goes into their printer settings after printing has been triggered to choose landscape there too.

Issue 2:
Electron version: 1.4.5

Operating system: All

1- There are only 2 options when it comes to print: silent and printBackground, there are plenty more options, like margins, copies, etc in the print window (Ctrl+P), that could be sent using webContents.print()

2- Access to print queue, to know if the printer is printing
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.3.6

I do not have symfony/templating installed.

The first request is fine, but the second request causes an issue:

Possible solution: Make sure the

Issue 2:
Description

Unless I'm overlooking something, the internationalized routing as introduced in Symfony 4.1 has no fallback locale. We use 5 different locales within our application: nl_NL, nl_BE, en_GB, en_US and de_DE. We use a custom event listener to set the _locale value in the request. So we only use "full" locales, and not "nl", "en" etc.

For the Translator component, nl_NL and nl_BE automatically fall back to translations/messages.nl.yml while en_GB and en_US fall back to translations/messages.en.yml. This allows us to avoid duplicate translations.

The JMSI18nRoutingBundle has a similar approach as route translations are put in translations/routes.en.yml and translations/routes.nl.yml. As such we don't have to create duplicate translations files for en_GB and en_US.

As we try to migrate JMSI18nRoutingBundle to Symfony internationalized routing, we would like to have a similar approach (i.e. avoid duplicate translations). Right now, we have to configure routes like this:

news:
controller: App\Controller\NewsController::item
path:
nl_BE: /nieuws
nl_NL: /nieuws
en_GB: /news
en_US: /news
de_DE: /nachrichten

As you can see, that's a lot of duplication. It would be nice if the Routing component could look for fallback locales, similar like the Translation component and JMSI18nRoutingBundle. In the example below, nl_NL and nl_BE would also match the nl path.

news:
controller: App\Controller\NewsController::item
path:
nl: /nieuws
en: /news
de: /nachrichten
Issue 1:
Deno doesn't seem to have a way to do a POST fetch that includes an openssl cert file and key? This is how it would be done in Python

#!/usr/bin/env python

import requests

payload = 'username=myusername&password=password'
headers = {Content-Type': 'application/x-www-form-urlencoded'}

resp = requests.post('https://example.com', data=payload, cert=('client-2048.crt', 'client-2048.key'), headers=headers)

I imagined it working something like this:

const response = await fetch(
url,
{
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded","X-Application": appkey},
cert:'client-2048.crt',
key:'client-2048.key',
body: form,
},
);
return response.json();

However there is no cert or key for RequestInit()

No overload matches this call.
Overload 1 of 2, '(input: string | Request | URL, init?: RequestInit | undefined): Promise<Response>', gave the following error.
Argument of type '{ method: string; headers: { "Content-Type": string; "X-Application": string; }; cert: string; key: string; body: FormData; }' is not assignable to parameter of type 'RequestInit'.
Object literal may only specify known properties, and 'cert' does not exist in type 'RequestInit'. Overload 2 of 2, '(input: string | Request | URL, init?: (RequestInit & { client: HttpClient; }) | undefined): Promise<Response>', gave the following error.
Argument of type '{ method: string; headers: { "Content-Type": string; "X-Application": string; }; cert: string; key: string; body: FormData; }' is not assignable to parameter of type 'RequestInit & { client: HttpClient; }'.
Object literal may only specify known properties, and 'cert' does not exist in type 'RequestInit & { client: HttpClient; }'.deno-ts(2769)

Issue 2:
Just like curl --cert <file.pem>.

Now the way to solve this problem in deno is: curl. But this method is not cross-platform.
Issue 1:
Rich Kroll opened SPR-6486 and commented

I have a URI template in the form of "/hotels/{hotel}/bookings/{booking}", and can access the path variables in the controller via @PathVariable, but when building links in the view I need a reference to the different path variables.

As an example, let's say the user requests "/hotels/Hotelier/bookings/booking-123", and as is a common use case in the view, there is a need to link back to the bookings listing "/hotels/Hotelier/bookings/". The only way currently to access the URI template variables is to manually inject them each time into the view. I suggest that a tag be created that is capable of building a link from the same URI template style that is used in the @RequestMapping, something like <spring:a link="/hotels/{hotel}">go</spring:a>.

Affects: 3.0 M1, 3.0 M2, 3.0 M3, 3.0 M4, 3.0 RC1, 3.0 RC2, 3.0 RC3

Issue Links:

#12200 Automatically expose @PathVariables in the Model ("is duplicated by")

7 votes, 6 watchers

Issue 2:
Karl Moore opened SPR-2770 and commented

The example code in the Lookup method injection section (3.3.8.1) doesn't compile. There are duplicate local variables, the abstract method returns the wrong type, its got the wrong method name and the class isn't abstract. I think the code should look something like below.

public abstract class CommandManager

{

public Object process ( Object commandState )

{

// grab a new instance of the appropriate Command interface

Command command = createCommand ();

// set the state on the (hopefully brand new) Command instance

command.setState ( commandState );

return command.execute ();

}

// mmm, but where is the implementation of this method?
protected abstract Command createCommand ();

}

public interface Command

{

public void setState ( Object commandState );

public boolean execute ();

}

public class AsyncCommand implements Command

{

private Object commandState;

public AsyncCommand ()
{
System.out.println ( "Created AsyncCommand" );
}

public void setState ( Object commandState )
{
this.commandState = commandState;
}

public boolean execute ()
{
System.out.println ( commandState );
return true;
}

}

Affects: 2.0 final
Issue 1:
Bug report

the program .py written in spyder3.3.3 can't run in spyder3.3.6. It seems that the command axes[].plot() from matplotlib has sth wrong in spyder3.3.6. The alarm messenge is : tuple index out of range

I report the probelm to the admin of spyder. He reply me that it is the problem in matplotlib not in spyder, and I should update my code.

What can I do about updating my code? my matplotlib in anaconda is 3.1.0

Bug summary

It seems that the command axes[].plot() from matplotlib has sth wrong in spyder3.3.6. The alarm messenge is : tuple index out of range

Code for reproduction

# Paste your code here
#
#
for i in range(n):
irf_data = pd.DataFrame(
[irf_1[:,i], irf_2[:,i], irf_3[:,i]]).T
irf_data.columns = ['point', 'up', 'lower']

axes[i//2, i % 2].plot(irf_data.index, irf_data.1,
color = 'blue', linestyle = '-')

Actual outcome

tuple index out of range

Expected outcome

Matplotlib version

Operating system:

Matplotlib version:

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

Python version:

Jupyter version (if applicable):

Other libraries:

Issue 2:
Bug report

Bug summary

I have reported the issue in details here

basically after an upgrade to 3.1.1 it drops the error:

IndexError: tuple index out of range

all other details inclduing the CSV file and code are in the above link.
Issue 1:
Hi there

Not sure if this would even be possible but I'm going to put it out there. Maybe there's a way of setting bootstrap up to do this.

Lots of issues come up for me - eg I can't use background image 100% for IE8 and below even though this is useful for responsive websites. I notice someone else having issues with responsive tables and IE8

I would like to fix the width for IE8. I guess the issue would be that if parts of bootstrap are in media queries by default then bootstrap won't see them. Perhaps there's some clever way to set a media query so it shows to < IE8

Anyway - great job everyone!

Issue 2:
NOTE ( This is practically a duplicate of my response to someone elses pull made in the past few weeks regarding icons. I figured we should really get the discussion started. My opinions are my own and subject to change. )

Color, visual size and other issues brought up by the community could be irrelevant if bootstrap used something like Raphaëljs for icons. MIT licensed, which is great, and a very nice starter set for the community to begin creating from. I'm sure the creator would be stoked if a prominent open source project such as Bootstrap were to bring it's community to contribute and further his work. It may be possible to set glyphicons as a fallback somehow if needed and js were disabled but of course, if js is disabled most sites these days wont work much anyhow so I'm not certain that is a relevant argument but I'm sure cases exist for it.

The icon library included in bootstrap is wonderful work but feels like an advertisement of sorts and does not seem to fit with the principles of collaboration Bootstrap has grown to endow. Even if we move to Raphael I would love to see the Glyphicons ported and would gladly pay for them. Design is copyright-able even if it is a path declaration in js/svg/whatever! The icons are great and I'm personally waiting for the go ahead to purchase and integrate the full license for Glyphicons but why not do everyone a favor and create an icon set that's truly for the masses, scalable, usable, cross platform and could be tailored to exacting needs on a case by case basis. No derivatives for the icons of a web design toolkit is rather unnerving.

Relevant link: http://raphaeljs.com/icons/

( From the website )

"Raphaël currently supports Firefox 3.0+, Safari 3.0+, Chrome 5.0+, Opera 9.5+ and Internet Explorer 6.0+."

I have not personally verified the browser compatibility stated on the site. Checking the icons at the site out on my Samsung Nexus Prime mobile phone with Android 4.0 Ice Cream Sandwich with both the stock browser and Chrome looks beautiful at any zoom level. Firefox 10+ and Chrome on Ubuntu (gnome) and Linux Mint are just fine. Firefox and Chrome on Windows 7 seem fine and as I recall IE 9 was peachy keen as well last I tested it a few weeks ago.

Hopefully a good discussion of the merits can begin. I think this issue deserves some attention going forward and better sooner than later. If the stats are any indication, there is a huge opportunity here.

+1 for an open, forward looking icon kit that's willing and able to be molded for any case.

Cheers
Issue 1:
I have the following options blacklisted

"blacklist": [
'regenerator',
'es6.constants',
'es6.forOf',
]

Specifically - since I'm using chrome, no need to transform the supported const keyword.

I wrote a function that looks like this:

const getValue = (model, propertyPath) => {
if(!propertyPath || propertyPath == '*')
return model
if(_.isUndefined(model) || model === null)
return model //No such model, should this be an error?
if(model.hasOwnProperty(propertyPath))
return model[propertyPath]
const [head, ...tail] = (propertyPath||'').split('.')
if(!head)
return undefined; //Property does not exist, Maybe should be an error?
return getValue(model[head], tail.join('.'))
}

which compiles into

const getValue = function getValue(_x8, _x9) {
var _again = true;

_function: while (_again) {
var model = _x8,
propertyPath = _x9;
_split = _split2 = head = tail = undefined;
_again = false;

if (!propertyPath || propertyPath == '*') return model;
if (_.isUndefined(model) || model === null) return model; //No such model, should this be an error?
if (model.hasOwnProperty(propertyPath)) return model[propertyPath];

var _split = (propertyPath || '').split('.');

var _split2 = _toArray(_split);

const head = _split2[0];

const tail = _split2.slice(1);

if (!head) return undefined; //Property does not exist, Maybe should be an error?
_x8 = model[head];
_x9 = tail.join('.');
_again = true;
continue _function;
}
};

Note that at the top, we assign undefined to tail but it's only declared by const further down. Since const is block scoped this will break.

Issue 2:
Hi, I use node@4.0.0, so I add es6.blockScoping to babel blacklist, but an error occurred.

The code:

function getFetchData(component = {}) {
if (component.WrappedComponent) {
return getFetchData(component.WrappedComponent);
}
return component.fetchData;
}

Compile:

function getFetchData() {
var _arguments = arguments;
var _again = true;

_function: while (_again) {
component = undefined;
_again = false;
let component = _arguments.length <= 0 || _arguments[0] === undefined ? {} : _arguments[0];

if (component.WrappedComponent) {
_arguments = [component.WrappedComponent];
_again = true;
continue _function;
}
return component.fetchData;
}
}

Error:

ReferenceError: component is not defined

Because let component only define once.

I think ES6 Default value should be to var rather than let.
Issue 1:
// 1. input `w,`
w
window,
// 2. input `window`, move caret to line head by using arrow key, input `!`
window
window!window

Issue 2:
interface I {
property1: number;
property2: string;
}

var x: I = {
/**/property1
}

Both property1 and property2 are suggested at that position even though it currently exists in the object literal. To make this worse, if you commit with `property1, you end up with the following:

interface I {
property1: number;
property2: string;
}

var x: I = {
property1property1
}
Issue 1:
Upgrading from 1.20.2 to 1.20.3 results in McAfee flagging and deleting _common.cp37-win_amd64.pyd

"The Trojan named Artemis!AA5930A5315E was detected and deleted."

Reproducing code example:

import numpy as np

Error message:

Traceback (most recent call last):

File "", line 1, in

File "...\Continuum\anaconda3\lib\site-packages\numpy_init_.py", line 156, in

from . import random

File "...\Continuum\anaconda3\lib\site-packages\numpy\random_init_.py", line 179, in

from . import _pickle

File "...\Continuum\anaconda3\lib\site-packages\numpy\random_pickle.py", line 1, in

from .mtrand import RandomState

File "mtrand.pyx", line 1, in init numpy.random.mtrand

File "bit_generator.pyx", line 1, in init numpy.random.bit_generator

ModuleNotFoundError: No module named 'numpy.random._common'

NumPy/Python version information:

Numpy fails to load due to deleted file. Version reported by pip is 1.20.3.

Issue 2:
Steps to reproduce:

pip install numpy==1.20.3

Not reproducible on :

pip install numpy==1.20.2

Error message:

it states an issue with random_common.cp37-win_amd64.pyd
Issue 1:
TypeScript Version: 1.8.10 and higher

Code

Actual code that causes the problem can be found on this issue: ReactiveX/rxjs#1637

# clone the repo
git clone git@github.com:ReactiveX/rxjs.git

# get PR branch
git fetch master pull/1637/head:pr-1637
git checkout pr-1637

# install dependencies (runs build, too, which will fail, but that's okay)
npm i

# try building the CJS version (success)
npm run build_cjs

# try building the ES6 version (failure)
npm run build_es6

The exact scripts being run are:

tsc typings/main/ambient/es6-shim/index.d.ts ./dist/cjs/src/Rx.ts ./dist/cjs/src/Rx.KitchenSink.ts ./dist/cjs/src/Rx.DOM.ts ./dist/cjs/src/add/observable/of.ts -m commonjs --sourceMap --outDir ./dist/cjs --target ES5 -d --diagnostics --pretty --noImplicitAny --suppressImplicitAnyIndexErrors
tsc ./dist/es6/src/Rx.ts ./dist/es6/src/Rx.KitchenSink.ts ./dist/es6/src/Rx.DOM.ts ./dist/es6/src/add/observable/of.ts -m es2015 --sourceMap --outDir ./dist/es6 --target ES6 -d --diagnostics --pretty --noImplicitAny --suppressImplicitAnyIndexErrors

Expected behavior:

Both build successfully.

Actual behavior:

Only the CJS build succeeds, the ES6 build fails:

11 import * as observableSymbol from 'symbol-observable';
~~~~~~~~~~~~~~~~~~~

dist/es6/src/Observable.ts(11,35): error TS2307: Cannot find module 'symbol-observable'.

16 import * as observableSymbol from 'symbol-observable';
~~~~~~~~~~~~~~~~~~~

dist/es6/src/observable/FromObservable.ts(16,35): error TS2307: Cannot find module 'symbol-observable'.

11 import * as observableSymbol from 'symbol-observable';
~~~~~~~~~~~~~~~~~~~

dist/es6/src/util/subscribeToResult.ts(11,35): error TS2307: Cannot find module 'symbol-observable'.

142 import * as observable from 'symbol-observable';
~~~~~~~~~~~~~~~~~~~

dist/es6/src/Rx.ts(142,29): error TS2307: Cannot find module 'symbol-observable'.

Issue 2:
From @vinod-a-ext on May 10, 2016 10:49

VSCode Version:Latest 1.1.0

OS Version:windows

Steps to Reproduce:

In your controller inject a service/factory for a http call

press F12 (go to definition ) to visit the factory which results negative?

Copied from original issue: microsoft/vscode#6238
Issue 1:
Open a file

Use ctrl+f to search

Type in your search term

What happens next:

You see x results found for 'search term' and need to manually press the find button go to the first result. Or you need to know you can press enter for that.

What I’d expect instead:

While typing, the view automatically jumps to the first result.

Issue 2:
From @andreicristianpetcu on December 14, 2014 23:59

Hi,

Please add search as you type just like Eclipse STS http://youtu.be/1lH7Zla5ubQ

Thank you for building Atom! :D

Copied from original issue: atom/atom#4613
Issue 1:
np.timedelta64(2,'h') returns numpy.timedelta64(2,'h'), but np.timedelta64(np.int64(2),'h') returns:

---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-75-fd40c0d8eac0> in <module>()
----> 1 np.timedelta64(np.int64(2),'h')

ValueError: Could not convert object to NumPy timedelta

Issue 2:
timedelta64 only accepts timedeltas of type int; it does not support timedeltas of other int types, such as int64.
Issue 1:
My tests fail due to a segfault.

I am not sure if I am doing 'something unsafe', but I am pretty sure the tests were almost identical on 0.7beta where things went fine.

https://discourse.julialang.org/t/segmentation-fault-on-0-7/13065/2

any ideas?

the error occurs on 0.7, 1.0 and 1.1 too

https://travis-ci.org/kafisatz/DecisionTrees.jl/builds/415879916

Issue 2:
While updating Homebrew's Julia to 1.7.0 (cf. Homebrew/homebrew-core#90194), I found that running Base.runtests("core") fails with

Error in testset core:
Test Failed at /usr/local/Cellar/julia/1.7.0/share/julia/test/core.jl:3519
Expression: (Vararg{Int, N} where N <: T) where T
Expected: ErrorException
No exception thrown
Error in testset core:
Test Failed at /usr/local/Cellar/julia/1.7.0/share/julia/test/core.jl:3520
Expression: Vararg{Int, N} where N <: Integer
Expected: ErrorException
No exception thrown
Error in testset core:
Test Failed at /usr/local/Cellar/julia/1.7.0/share/julia/test/core.jl:3521
Expression: Vararg{Int, N} where N >: Integer
Expected: ErrorException
No exception thrown
ERROR: LoadError: Test run finished with errors
in expression starting at /usr/local/Cellar/julia/1.7.0/share/julia/test/runtests.jl:93
ERROR: A test has failed. Please submit a bug report (https://github.com/JuliaLang/julia/issues)
including error messages above and the output of versioninfo():
Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin21.1.0)
CPU: Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, ivybridge)

This reproduces on macOS 11 and 12. CI logs available here: https://github.com/Homebrew/homebrew-core/actions/runs/1522862535

To make sure that this isn't something peculiar to our build, I downloaded the official binary and encountered the exact same failure. Here's versioninfo() from the machine I ran that on:

Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.5.0)
CPU: Intel(R) Core(TM) i3-1000NG4 CPU @ 1.10GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, icelake-client)

Is it just a matter of these tests being outdated?

julia/test/core.jl

Lines 3519 to 3521
in
3bf9d17

@test_throws ErrorException Vararg{Int, N} where N<:T where T

@test_throws ErrorException Vararg{Int, N} where N<:Integer

@test_throws ErrorException Vararg{Int, N} where N>:Integer

Those tests are still there on master, so I am wondering why this doesn't trip in CI here.
Issue 1:
Current Behavior:

postinstall script not executed

Expected Behavior:

postinstall script should be executed.

Steps To Reproduce:

Set up a VM you can trash later (the package modifies your global configuration)

Create directory /opt/iobroker, enter it

run npm i iobroker@latest as root

Environment:

OS: Debian Buster

Node: 15.5.1

npm: 7.3.0

Issue 2:
Current Behavior:

I'm making a global cli tool that asks you for your language preference upon install but since NPM 7 it doesn't run the postinstall script anymore

Expected Behavior:

In NPM 6 it works just fine

Steps To Reproduce:

npm i -g dnd

Environment:

macOS Big Sur, npm 7
Issue 1:
TypeScript Version:

1.8.9

React Version:

15.0.0

Code

import * as React from 'react';
import * as ReactDOM from 'react-dom';

let test = {a: 1, b: 2};

ReactDOM.render(
<div {...test} />,
document.getElementById('app')
);

Actual behavior:

Browser console error "Uncaught TypeError: React.__spread is not a function".

Issue 2:
I have a file that will be evaluated by Nashorn. Nashorn has a global function called print. Therefore I declare it like so:

declare var print: (_: string) => void;

When I compile, I get:

.../node_modules/typescript/lib/lib.d.ts(16887,18): error TS2300: Duplicate identifier 'print'.

If I call tsc with the --noLib option, I instead get:

error TS2318: Cannot find global type 'Array'.
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'RegExp'.
error TS2318: Cannot find global type 'String'.

What are my options here? Importing Window from lib.d.ts is pointless since there is no window in Nashorn.