WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
class Test { static name = "what"; } will report "what" for Test.name in IE11 but "Test" in FF and Chrome. This seems to be by design (https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Function/name). Either the use of 'name' should be not allowed at all or the compiler should do some name mangling - although according to the specs the first option seems to be more appropriate.

Issue 2:
TypeScript Version:

1.8.5

Code

function FeedPig(what:number)
{
print("the pig ate " + what + " pigs at 8:12");
}

FeedPig([1,2,3]);

Compiler Invocation

Using typescriptServices.js:

ts.transpile(source, null, filename)

Expected behavior:

Type error

Actual behavior:

Code compiles successfully and produces the output:

the pig ate 1,2,3 pigs at 8:12
Issue 1:
🚀 Feature

torch.mean currently only accepts a single dimension. It should also accept a tuple of dimensions like torch.sum does.

Motivation

Makes code cleaner and more concise when taking the mean of some quantity across multiple dimensions. An example of this is taking the mean of some pixel-wise quantity over an image (which has two dimensions, and potentially a color channel).

Alternatives

Current workaround is chaining .means repeatedly, as in array.mean(0).mean(0).mean(0) to take the mean over the first three dimensions of an array.

Issue 2:
mean

var, std

max, min

cc @VitalyFedyunin @ngimel
Issue 1:
Hi,

I'm just wondering why numpy can be installed on Windows using pip, while for scipy it seems that it requires a compilation?

Are there any plans to make this command work on windows on the future: pip install scipy?

Thanks.

Issue 2:
It would be very helpful to have binary wheel packages for Windows platform.

I think it might work to build those wheels using Appveyor service: http://www.appveyor.com/
Issue 1:
Arjen Poutsma opened SPR-5690 and commented

See #10294:

It is useful to filter @RequestMapping method based on request headers, similarly to filtering by paramters. In effect, this feature would look something like:

@RequestMapping(value = "/hotels", header = "content-type=text/*")

This would match requests where the Content-Type header is 'text/plain', 'text/html', etc.

Issue Links:

#10107 @RequestMapping to narrow on Request Header details ("is duplicated by")

#9046 @RequestMapping narrowing based on presence of command object ("is duplicated by")

#10294 Content-type filtering in @RequestMapping

Referenced from: commits afa4618

Issue 2:
Ray opened SPR-9802 and commented

We tried to upgrade Spring framework from 2.5.5 to 3.1.1, during performance test we found that TransactionInterceptor will add some performance overhead because introduce of following method:

org.springframework.transaction.interceptor.TransactionAspectSupport.methodIdentification(java.lang.reflect.Method,java.lang.Class)

This new method will call Class.getDeclaredMethods() instead of using the method passed in directly.

If there are multiple transaction pointcuts defined and invoked in one call, the performance will be affected badly.

Can we do fallback support as 2.5.5 or add cache support for the method instead of call Class.getDeclaredMethods() each time?

Affects: 3.1.1

Issue Links:

#14606 Performance degradation for after Spring 3 ("is duplicated by")

#11975 Transaction names should use the concrete class name

Referenced from: commits 89b3651, 2c8b7fe, 49294c9, bbfc807

2 votes, 5 watchers
Issue 1:
ISSUE TYPE

Bug Report

ANSIBLE VERSION

ansible 2.1.1.0

CONFIGURATION

OS / ENVIRONMENT

Ubuntu 16.04

SUMMARY

group_vars are ignored if the inventory is the output of a script that is stored in a subdirectory. This includes the popular ec2 inventory script. This bug was introduced in 2.1.1.0 (2.1.0.0 works fine).

STEPS TO REPRODUCE

inventory/script.sh

#!/bin/sh

echo '{"webservers": ["paperberry"]}'

group_vars/all.yml:

---
frontend_path: /var/www/html

playbooks/webservers.yml:

---
- hosts: all
connection: local
tasks:
- debug: var=frontend_path

Run the following code:

ansible-playbook -i inventory/script.sh playbooks/webservers.yml

EXPECTED RESULTS

ansible 2.1.0.0 shows

ok: [paperberry] => {
"frontend_path": "/var/www/html"
}

ACTUAL RESULTS

ansible 2.1.1.0 shows

ok: [paperberry] => {
"frontend_path": "VARIABLE IS NOT DEFINED!"
}

Issue 2:
The ability to have role dependencies is nice, but it would be even better to be able to

call a role as a task with parameters. It would still be ok having to define the role as a

dependency in meta, but perhaps with a run tag, for example:

meta/main.yml

dependencies:
- role: pre
arg: bar
- role: bar
auto: false
- role: finalize
auto: post

the default is then, as now, auto: pre

and then in tasks/main.yml

- name: do something that I do alot from different places
role: bar arg=baz
Issue 1:
I can write Persian text (almost same as Arabic) in Atom even though it does not appear right to left. I can live with it, the problem is when I try to edit the text and I position the cursor somewhere inside the text and begin to type, the characters appear somewhere else, a few characters away.

To show you a good example of correct behavior I should mention gedit. Using gedit to write Persian blog posts in markdown format, I have no problem entering and editing the text. Everything works as expected, I don't know which GUI component is being used in Atom and Gedit, probably that's the difference. Here are some screenshots showing the texts but I have no way to show the typing problem.

In Atom:

In gedit:

Issue 2:
Halp ticket:

support/e61e5074bc3011e396a434cf997499c3

Support for Unicode is incomplete. Unicode characters are shown, but the cursor get stuck, and the navigation with the keyboard arrows stop working.

The user was using this string as an example ג׳ג׳ג׳dwdwdww

Here's a GIF of me pressing just the right arrow key to get from the beginning of the string to the end:
Issue 1:
Instead of consuming 250 milli-cores, recourse consumer consumes nearly 400 milli-cores. This causes flakiness of autoscaling e2e tests:

http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gce-autoscaling/1521/

Horizontal pod autoscaling [Skipped][Autoscaling Suite] should scale from 1 pod to 3 pods and from 3 to 5 (scale resource: CPU)

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:47

Oct 28 03:27:29.523: Number of replicas has changed: expected 3, got 4

Logs from controller-manager:

I1028 10:27:25.876466 6 metrics_client.go:135] Sum of cpu requested: {1.500 DecimalSI}
I1028 10:27:25.878913 6 metrics_client.go:172] Metrics available: {
"items": [
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 0
},
{
"timestamp": "2015-10-28T10:24:00Z",
"value": 180
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
},
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 227
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
},
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 122
},
{
"timestamp": "2015-10-28T10:24:00Z",
"value": 80
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
}
]
}
I1028 10:27:25.884889 6 horizontal.go:154] Successfull rescale of rc, old size: 3, new size: 4

Issue 2:
http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-autoscaling/1893/

Horizontal pod autoscaling (scale resource: CPU) [Skipped] [Autoscaling] ReplicationController Should scale from 1 pod to 3 pods and from 3 to 5

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:56 Nov 30 13:28:33.651: timeout waiting 10m0s for pods size to be 3
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

Downloaded 9.0.2 and 9.0.3 electron.exe --version does not provide anything

Operating System:

Windows 10 Insider preview (build 19631.1)

Last Known Working Electron version:

8.3.5

Expected Behavior

Double-click on electron in file explorer should open a window.

Actual Behavior

Nothing happens. Starting from a terminal does not open a UI and does not show any trace even using

PS C:\Users\olivi\Downloads\electron903> .\electron.exe --version
PS C:\Users\olivi\Downloads\electron903> .\electron.exe --enable-logging -v=10
PS C:\Users\olivi\Downloads\electron903>

To Reproduce

Downloaded electron-v9.0.3-win32-x64.zip from the releases.

Unzip it in a directory

Double click on electron.exe in the file explorer

Or run .\electron.exe in the directory from a windows terminal

Absolutely nothing happens, and you get back to the prompt

Additional Information

Bug discovered while testing keeweb 1.15.x which runs on electron 9.0.x

Keeweb 1.14.3 running on electron 8.2.5 works fine

I downloaded electron 8.3.5 and did the same (unzip in a directory and double clic) and it works!!!

Issue 2:
I have a function that is called several times in a loop that is trying to access cookies, but after few times i get the following error:

Electron: 1.4.11

Cannot get property 'cookies' on missing remote object 16127

Error: Cannot get property 'cookies' on missing remote object 16127

at throwRPCError (D:\devel\work\js\microstockr.desktop\node_modules\electron-prebuilt\dist\resources\electron.asar\browser\rpc-server.js:143:17)

at EventEmitter. (D:\devel\work\js\microstockr.desktop\node_modules\electron-prebuilt\dist\resources\electron.asar\browser\rpc-server.js:368:7)

at emitThree (events.js:116:13)

at EventEmitter.emit (events.js:194:7)

at WebContents. (D:\devel\work\js\microstockr.desktop\node_modules\electron-prebuilt\dist\resources\electron.asar\browser\api\web-contents.js:231:13)

at emitTwo (events.js:106:13)

at WebContents.emit (events.js:191:7)

The code is:

var session = require('electron').remote.session;

session.defaultSession.cookies.get({ url: url }, function(err, domainCookies) {.....});
Issue 1:
Very helpful in storing additional info per property. for example a display name or some other application specific annotations for a property

Issue 2:
A mapping can have a _meta element - but it only keeps it if declared on the top level.

When using the _meta to annotate a mapping, or keeping custom configuration on it, or using it for some binding - a lot of times besides the top level you also need more custom data on a field level. So you need the mapping to keep also _meta nodes defined under fields.
Issue 1:
The scipy implementation of the hyp1f1 function exhibits a huge inaccuracy based on a comparison to mpmath's arbitrary-precision and double-precision implementations (shown below) as well as GSL, all of which agree (GSL gives 1.649746910616242567826e+00). The input here comes from GSL's included tests.

Reproducing code example:

Python 3.6.8 (default, Aug 20 2019, 17:12:48)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from mpmath import *
>>> from scipy import special
>>> mp.hyp1f1(100, 200, 1.0)
mpf('1.6497469106162459')
>>> fp.hyp1f1(100, 200, 1.0)
1.6497469106162461
>>> special.hyp1f1(100, 200, 1.0)
4.654116242484843e+42

Scipy/Numpy/Python version information:

1.3.1 1.17.2 sys.version_info(major=3, minor=6, micro=8, releaselevel='final', serial=0)<!-- You can simply run the following and paste the result in a code block

import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)

-->

Issue 2:
hyp1f1 explodes for modestly large arguments. For example:

scipy.special.hyp1f1(30, 70, 20j)

returns

(-1748.2243027213672+51.441200608645886j)

which is completely wrong (whenever 1 < a < b and z is purely imaginary, abs(1F1(a,b,z)) <= 1).

This doesn't seem to be insoluble, since the package mpmath (also open sourced here on GitHub) returns what seems to be the correct answer:

mpmath.hyp1f1(30, 70, 20j)

mpc(real='-0.32066129006007188', imag='0.38180277645752586')

(I assume this is correct because Mathematica returns the same result. It would be very unlikely if they were both wrong and returned the same answer).

Moreover, I did a simple test. Simply using the Taylor series expansion gives the correct result. The problem with scipy's implementation seems to be in using a recurrence relation to lower the value of 'a' until it is < 2. The recurrence relation relation used is Abramowitz 13.4.1, but I think this is unstable.
Issue 1:
Electron version: v1.8.2-beta.3

Operating system: window7

Expected behavior

Actual behavior

Open DevTools, click on any key in the console, the entire application crashes

####Scenario Restore

Execute /script/build.py No error occurred.

After deployment, find the electron.exe in out and open the electron through the command line. 3. Open DevTools, click on any key in the console, the entire application crashes.

Issue 2:
Electron version: 1.8.2-beta.3

Operating system: Windows_NT 10.0.15063

Expected behavior

When devtools are open I should be able to type directly into the console.

Actual behavior

When you type into the console in devtools it crashes the electron app without showing any errors.

How to reproduce

git clone https://github.com/electron/electron-api-demos.git
cd electron-api-demos
npm install --save-dev electron@1.8.2-beta.3
npm install
npm start

When the electron window opens, go to View menu, then Toggle Developer Tools option.

Go to Console tab.

Click into the console by the > and start typing anything.
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

Operating System version: macos 10.15.13

Java version: xxx

Steps to reproduce this issue

Spring boot 1.5.2 ,when update dubbo 2.5.3 to 2.7.6 ，I have some problems

my config is <dubbo:application name="indicatiors" owner="xxx"/>

No application config found or it's not a valid config! Please add <dubbo:application name="..." />

只在特定的项目里面发生这个问题，但是整体的环境都是一样的

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

Expected Result

What do you expected from the above steps？

Actual Result

run error

the exception trace:

Caused by: java.lang.IllegalStateException: No application config found or it's not a valid config! Please add <dubbo:application name="..." /> to your spring config.
at org.apache.dubbo.config.utils.ConfigValidationUtils.validateApplicationConfig(ConfigValidationUtils.java:371)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.checkGlobalConfigs(DubboBootstrap.java:526)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.initialize(DubboBootstrap.java:513)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.init(DubboBootstrap.java:494)
at org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:190)
at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:158)
at org.apache.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:68)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
... 64 common frames omitted

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.7.3

Operating System version: Centos7

Java version: openjdk1.8+

Steps to reproduce this issue

看了以前18年的提及的issue，但是没看到很好的解决方法，官网提供的解决方案是通过telnet参数限制命令数量，但是还是希望能够做到直接关闭telnet功能，不知道还有什么方式能够做到

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

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Issue 1:
Output of node_modules/.bin/electron --version: v5.0.0-beta.1

Operating System (Platform and Version): Windows 10 Version 1803 build 17134.523

Output of node_modules/.bin/electron --version on last known working Electron version (if applicable): v4.0.3

Expected Behavior

Menu item click function should execute. e.g. toggle dev tools

Actual behavior

Clicking any application menu item causes electron to crash.

To Reproduce

Run electron-api-demos with 5.0.0-beta.1 and click any application menu item. Node integration to true for it to launch properly.

Issue 2:
Electron Version (output of node_modules/.bin/electron --version):

5.0.0-beta.2

Operating System (Platform and Version):

Windows 7 Professional (SP1)

Expected Behavior

Not crash

Actual behavior

Crash 3221225477

To Reproduce

https://github.com/Gvozd/electron-quick-start/tree/issue-16883

based on electron-quick-start. only updated electron to 5.0.0-beta.2

try to open devtools from menu - crash
Issue 1:
Description

PHPUnit 8 has just been released. In addition to new features, the following has been deprecated and will be removed in PHPUnit 9:

assertInternalType() and assertNotInternalType()

assertArraySubset()

Annotation(s) for expecting exceptions

Assertions (and helper methods) that operate on (non-public) attributes

Optional parameters of assertEquals() and assertNotEquals()

TestListener interface

Optional parameters of assertContains() and assertNotContains() as well as using these methods with string haystacks

Full details at https://phpunit.de/announcements/phpunit-8.html

Let's review our tests to make sure we don't use these. Thanks.

Issue 2:
Description

Allow to specifying a "message name" which define the type of message that can be handled.

Example

Simple use-case where my main message can be extended:

<?php

use App\Messenger\MessageInterface;

class RandomMessage implements MessageInterface
{
protected $name = 'test'

// getter
}

The RandomMessage children:

<?php

class NewRandomMessage extends RandomMessage
{
protected $name = 'newTest'

// getter
}

Now the handler:

<?php

use App\Messenger\MessageInterface;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;

class RandomHandler implements MessageHandlerInterface
{
public static function getHandledMessage(): string
{
return 'newTest';
}

public function __invoke(MessageInterface $message): void
{
/** $message NewRandomMessage */
if ($message->getName() !== static::getHandledMessage()) {
return;
}
}
}

This method (the name should be improved but for me, that's like the EventSusbscriberInterface one) can ease the process when a message can be extended, once handled, the message keep the same type in the Handler but the developer can indicate that only this type of message can be handled, this allow to use switch in the same handler in order to keep a small amount of handlers.

The MessageInterface::getName() is just for demonstration purpose (it can be a constant or anything else that can be called).

Thanks for the feedback.

EDIT: Example for a new interface

Here's the new interface that can be added in order to allow this approach:

<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Component\Messenger\Handler;

interface MessageListenerInterface extends MessageHandlerInterface
{
/**
* Returns the name of the message to be handled.
*
* It returns a string which contain the name of the message:
*
* return Message::NAME;
*
* Or:
*
* return 'test';
*
* The `__invoke` method of the handler can use a defined interface.
*/
public static function getHandledMessage(): string;
}
Issue 1:
Running on super old distro (don't ask), yields errors:

$ /home/glen/.deno/bin/deno --help
/home/glen/.deno/bin/deno: /lib64/libgcc_s.so.1: version `GCC_4.0.0' not found (required by /home/glen/.deno/bin/deno)
/home/glen/.deno/bin/deno: /lib64/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /home/glen/.deno/bin/deno)
/home/glen/.deno/bin/deno: /lib64/tls/libm.so.6: version `GLIBC_2.27' not found (required by /home/glen/.deno/bin/deno)
/home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by /home/glen/.deno/bin/deno)
/home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.7' not found (required by /home/glen/.deno/bin/deno)
/home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.9' not found (required by /home/glen/.deno/bin/deno)
/home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.10' not found (required by /home/glen/.deno/bin/deno)
/home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.14' not found (required by /home/glen/.deno/bin/deno)
/home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.15' not found (required by /home/glen/.deno/bin/deno)
/home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.18' not found (required by /home/glen/.deno/bin/deno)
/home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.25' not found (required by /home/glen/.deno/bin/deno)
/home/glen/.deno/bin/deno: /lib64/tls/libc.so.6: version `GLIBC_2.27' not found (required by /home/glen/.deno/bin/deno)

perhaps possible to add fully static build, not to rely on glibc and gcc?

Issue 2:
Previously I was able to use --target x86_64-unknown-linux-musl on rusty_v8 and deno (excluding the plugin). denoland/rusty_v8#49

It's unclear to me if it's best to only target x86_64-unknown-linux-musl or to additionally support it. e.g. sccache seems to only provide binaries for that target.

The one concern is that glibc is required for plugins (but I don't know if that means glibc cannot be used on a binary created with musl 🤷‍♂ ).

This is useful for platforms without glibc, examples alpine linux and amazon linux (which is occasionally a pain building, so would be helpful if a compatible binaries was in deno's CI).

xlink: #3243 #1658 #1495 #3356
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

12.0.2

What operating system are you using?

macOS

Operating System Version

MacOS Big Sur 11.2.3

What arch are you using?

x64

Last Known Working Electron version

12.0.2

Expected Behavior

Set proxy IP

Actual Behavior

I set proxy to report error: err_ NO_ SUPPORTED_ PROXIES。 How to solve this problem?

app.commandLine.appendSwitch('proxy-server', 'socks5://username:password@ip:port')

win.webContents.session.setProxy({proxyRules: 'socks5://username:password@ip:port'})

Thanks!!!

Testcase Gist URL

No response

Issue 2:
Electron version: 1.8.4, recent master (0d7becf)

Operating system: win7 sp1 x64

Expected behavior

it should navigate using the set proxy

Actual behavior

net::ERR_NO_SUPPORTED_PROXIES is logged in the devtools console

How to reproduce

'use strict';

const {app, BrowserWindow} = require('electron'),
path = require('path');

let brWin;

app.commandLine.appendSwitch('proxy-server', 'http://user:password@proxy_host:proxy_port');

app.on('ready', () => {
brWin = new BrowserWindow({
width: 1366,
height: 768,
closable: true,
show: true,
frame: true,
useContentSize: true,
webPreferences: {
devtools: true,
nodeIntegration: false,
webviewTag: false,
sandbox: false,
allowRunningInsecureContent: true,
offscreen: false,
webSecurity: true,
contextIsolation: true,
//preload: path.join(__dirname, 'preload.js'),
},
});
brWin.loadURL('about:blank');
brWin.webContents.openDevTools({mode: 'right'});
});

app.on('window-all-closed', () => app.exit());

load the above app

in the devtools location = 'http://example.org'