WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
➜ deno install --allow-net --allow-read https://deno.land/std@0.92.0/http/file_server.ts
Download https://deno.land/std@0.92.0/http/file_server.ts
Download https://deno.land/std@0.92.0/path/mod.ts
Download https://deno.land/std@0.92.0/flags/mod.ts
Download https://deno.land/std@0.92.0/_util/assert.ts
Download https://deno.land/std@0.92.0/http/server.ts
Download https://deno.land/std@0.92.0/async/mod.ts
Download https://deno.land/std@0.92.0/http/_io.ts
Download https://deno.land/std@0.92.0/io/bufio.ts
Download https://deno.land/std@0.92.0/path/posix.ts
Download https://deno.land/std@0.92.0/path/common.ts
Download https://deno.land/std@0.92.0/path/glob.ts
Download https://deno.land/std@0.92.0/path/separator.ts
Download https://deno.land/std@0.92.0/path/win32.ts
Download https://deno.land/std@0.92.0/_util/os.ts
Download https://deno.land/std@0.92.0/path/_interface.ts
Download https://deno.land/std@0.92.0/path/_constants.ts
Download https://deno.land/std@0.92.0/path/_util.ts
Download https://deno.land/std@0.92.0/textproto/mod.ts
Download https://deno.land/std@0.92.0/http/http_status.ts
Download https://deno.land/std@0.92.0/async/deferred.ts
Download https://deno.land/std@0.92.0/async/delay.ts
Download https://deno.land/std@0.92.0/async/pool.ts
Download https://deno.land/std@0.92.0/async/mux_async_iterator.ts
Download https://deno.land/std@0.92.0/io/buffer.ts
Download https://deno.land/std@0.92.0/bytes/mod.ts
Download https://deno.land/std@0.92.0/io/util.ts
Check https://deno.land/std@0.92.0/http/file_server.ts
✅ Successfully installed file_server
C:\Users\felip\.deno\bin\file_server.cmd
C:\Users\felip\.deno\bin\file_server (shell)
ℹ️ Add C:\Users\felip\.deno\bin to PATH
set PATH=%PATH%;C:\Users\felip\.deno\bin
➜ C:\Users\felip\.deno\bin\file_server.cmd
HTTP server listening on http://0.0.0.0:4507/
^CTerminate batch job (Y/N)?

As can be seen, cmd.exe handles the Ctrl+C event instead of the deno process.

Issue 2:
Currently, all the available signal handling API throw "unimplemented" errors for Windows platforms.

It would be great to have cross-platform signal handling along the lines of NodeJS Process Signal Events...

// ...works in NodeJS...

[`SIGBREAK`, `SIGINT`, `SIGUSR1`, `SIGUSR2`, `uncaughtException`, `SIGTERM`].forEach((eventType) => {
process.on(eventType, catchSignal.bind(null, eventType));
});
[`exit`].forEach((eventType) => {
process.on(eventType, catchExit.bind(null, eventType));
});

function catchSignal(eventType) {
console.log('Caught signal...', { eventType });
}
function catchExit(eventType) {
console.log('Now exiting...', { eventType });
}

setTimeout(() => {
console.log('The service is now finished.');
}, 2000);
Issue 1:
My issue is about scipy.sparse.linalg.eigsh

Reproducing code example:

import numpy as np
from scipy import sparse as sp
from scipy.sparse.linalg import eigsh

np.random.seed(0)

A = sp.csr_matrix(np.random.rand(100,100) > 0.5)
D = A.sum(-1).A1
D[D == 0] = 1
D = sp.diags(D ** (-1/2))
L = sp.eye(*A.shape) - D @ A @ D
eigsh(L, k=10, which='SM')[0]

On my Mac I get different results each execution. E.g.

([-0.0065401 , 0.80065443, 0.80663355, 0.81676304, 0.82418536, 0.82525194, 0.82584799, 0.82882288, 0.83281599, 0.8343768 ]

The results also differ from my Linux machine:

[-0.01216965, 0.80576331, 0.81269594, 0.81530367, 0.82356752, 0.82470864, 0.82817419, 0.82923541, 0.82930345, 0.83027089]

I assume this is caused by the use of a random starting vector via ARPACK (not via numpy). Setting v0 manually, at least gives consistent results:

e.g eigsh(L, k=10, which='SM', v0=100*[0.1])[0]

returns [-0.00491898, 0.8024341 , 0.81182509, 0.82095066, 0.82200956, 0.82278322, 0.82411053, 0.83036532, 0.83053034, 0.83250892] on my Mac and Linux machine.

Should we rather use bumpy (e.g. randn) for generating v0? However, I don't know how many other methods might be affected. I am happy to submit a pull request, in case you agree and point me to further locations we should fix.

Issue 2:
There are numpy.linalg and scipy.linalg for good reasons (fortran and blas) but as a user including both is a pain. If scipy's version could include all numpy.linalg's function, then I could import scipy.linalg, being sure I don't have to read both manual to know if what I want to do can be done.

To do that, if I am right, there are only 2 functions to include in scipy.linalg:

numpy.matrix_rank

numpy.cond

If you do that, you will help a lot a users and such questions will not happen anymore. In the same time the documentation could change scipy.linalg imports most of them by all of them!
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: xxx

Operating System version: centos 7

Java version: 1.8.0

Steps to reproduce this issue

Class.forName 使用的MetadataReportService 的classloader 来加载interface,

但是这个interface 可能是另外的class loader 加载的，会报找不到class.

2019-08-01 12:15:26,110 ERROR org.apache.dubbo.metadata.integration.MetadataReportService[106] - [DUBBO] publishProvider getServiceDescriptor error. providerUrl: dubbo://192.168.0.9:20880/com.wdk.SpiTes?anyhost=true&application=wdk-plugin-engine&dubbo=2.0.2&generic=false&group=dubbo&interface=com.wdk.SpiTes&methods=speak&proxy=jdk&release=2.7.1-SNAPSHOT&revision=1.0.0-SNAPSHOT&side=provider&version=1.0.0.wdk-serverless-bundle.1.0.0, dubbo version: 2.7.1-SNAPSHOT, current host: 192.168.0.9
java.lang.ClassNotFoundException: com.wdk.SpiTes

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

At the moment we create the adaptive extension class by org.apache.dubbo.common.extension.ExtensionLoader#createAdaptiveExtensionClass, which generates a Java class source String and compiles it.

So I'm wondering why is this strategy chosen and can we generate a proxy class directly (for example using cglib) of the adaptive extension class, it would save the time to compile and reduce the complexity when manipulating String to generate the source code, thus less errors may occur and more performant(I think).

Thanks
Issue 1:
by yeswah:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull", "hg update default", rebuild, and
retry
what you did to
reproduce the problem. Thanks.

What steps will reproduce the problem?
1.
2.
3.

When I want to change code from

func main() {
i := 0
fmt.Println(i)
i, j := test()
fmt.Println(j)
fmt.Println(i)
}

to

func main() {
i := 0
fmt.Println(i)
if i == 0 {
i, j := test()
fmt.Println(j)
}
fmt.Println(i)
}

I always can't find the bug

var i has been redefined!!

func test() (int, int) {
return 1, 2
}

What is the expected output?
0
2
1

What do you see instead?
0
2
0

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
windows7

Which revision are you using? (hg identify)
r60

Please provide any additional information below.

Issue 2:
The spec language is vague to non-existent regarding what happens when maps and channels
are assigned to variables (reference assignment only).
Issue 1:
.hidden-sm does not work with .nav-justified > li, since the former sets display: block !important and the latter sets display: table-cell. Would be useful if these worked together.

Issue 2:
related to issues #8500 , #7808 , #4929 ; using .hidden-sm to hide span within .nav > li > a . Because class is display: block above -sm then text wraps to new line. Would you consider .hidden-* classes to be display: inline-block instead ?

Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... http://jsfiddle.net/jholl/P86yf/
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

^11.2.0

What operating system are you using?

Windows

Operating System Version

Windows 10 20H2

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

When clicking https://drive.google.com/drive/my-drive inside a webview through on board of google apps, the Google Drive home page should open

Actual Behavior

The webview is blank and reloading the webview does nothing.

Use webview tag in react

Testcase Gist URL

No response

Additional Information

I tried to test the:

behavior when loading https://drive.google.com/drive/my-drive from webview.loadURL(src) - normal

behavior when clicked link https://drive.google.com/drive/my-drive in google search inside webview - normal

Issue 2:
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.6

What operating system are you using?

macOS

Operating System Version

11.2

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

When loading https://drive.google.com inside a webview, the Google Drive home page should be visible

Actual Behavior

The webview is blank and reloading the webview does nothing

Testcase Gist URL

https://gist.github.com/e474113b345cc6d8ae5cdf5bf1b536b7

Additional Information

In our app, reloading the webview actually crashes the whole app when drive.google.com is loaded in the webview. I could not reproduce the crashing behavior in the gist; but still, the bug that the URL doesn't load is reproducible
Issue 1:
I've just updated to 2.3.5-DEV and now the forms containing checkboxes appear to be broken.

In particular this commit ed83752 seems to be the cause.

If I add back the if (null === $value) return null; in src/Symfony/Component/Form/Extension/Core/DataTransformer/BooleanToStringTransformer.php everything is fine again.

Am I missing something?

Issue 2:
Commit ed83752 breaks form creations for new objects in some common circumstances:

For example if Product has a boolean type property which is initially null, this form creation will instantly throw a TransformationFailedException.

$entity = new Product();
$form = $this->createForm(new ProductType(), $entity);

Maybe the following part should not have been removed from BooleanToStringTransformer::transform:

if (null === $value) {
return null;
}

Minimal failing example:

$obj = new \stdClass();
$obj->boolProp = null;

$form = $this->createFormBuilder($obj)
->add('boolProp', 'checkbox')
->getForm();
Issue 1:
Bug report

When using experimental dynamic routes (#7432) in a zoned app. I get this error in the browser:

Your `<Link>`'s `as` value is incompatible with the `href` value. This is invalid

Describe the bug

In order to find the query parameters, href and as are matched against each other. But the current implementation seems to be too strict.

see https://github.com/zeit/next.js/blob/21fae5262f2dada7a229e6dd2831639d330ff746/packages/next-server/lib/router/router.ts#L274-L281

To Reproduce

See https://github.com/Xiphe/next-dynamic-route-in-zone

Create a next app

Add a proxy to have it mounted on a subpath (like http://localhost:3000/foo)

Add a index page and a dynamic page (like pages/bar/$dyn.js)

Try to link to the dynamic page from the index page

<Link href="/bar/$dyn" as "/foo/bar/baz"><a>Baz</a></Link>

Click the link in the browser

Expected behavior

I want to use dynamic routes in a zoned app, so the above Link-code should not throw.

System information

OS: macOS

Browser: chrome

Version of Next.js: 8.1.1-canary.43

Issue 2:
Feature request

Is your feature request related to a problem? Please describe.

Multi zones is a great feature which allows to run multiple next.js apps on the same domain, but it doesn't allow to define a basepath which will be accepted by all parts of next.js. Since we are not able to namespace apps right now it is not possible to have the same names for pages in various apps.

Describe the solution you'd like

I want to be able to configure a basepath in the next.config.js file. Thanks to this configuration all parts of next.js (Router, Link, Static assets etc.) will be aware of the basepath and will automatically generate and match to the correct paths.

Describe alternatives you've considered

One alternative is to nest all desired pages into a folder which matches the basepath. This solves just one small issue with routing and is quite ugly because most of the my basepaths are not one level paths.

The second alterantive is to configure a proxy in a way where the basepath is automatically removed before the request arrives into a next.js app and also implement a custom Link component which automatically adds basepath to all links. I just don't want to maintain custom fork of next.js. It doesn't make sense in my opinion.

Additional context

The assetPrefix solution allows us to define a different prefix for each app. But as fair as I know it works only with different hosts.

with-zones example

module.exports = {
assetPrefix: NOW_URL ? `https://${alias}` : 'http://localhost:4000'
}

If I add a basepath to it everything fails

module.exports = {
assetPrefix: NOW_URL ? `https://${alias}/account` : 'http://localhost:4000/account'
}

In my opinion we should split it into 2 variables:

module.exports = {
assetPrefix: NOW_URL ? `https://${alias}` : 'http://localhost:4000',
basepath: '/account'
}

Related issues

#2072

#257

#2289

#4969

#4146
Issue 1:
What / Why

I'm trying to install a local package like npm install ../package-name. This fails when on an exFAT partition with the following stacktrace:

1201 verbose stack Error: EISDIR: illegal operation on a directory, symlink 'E:\Repos\react-git-info' -> 'E:\Repos\abhyudayasharma.github.io\node_modules\react-git-info'
1202 verbose cwd E:\Repos\abhyudayasharma.github.io
1203 verbose Windows_NT 10.0.18363
1204 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Abhyudaya\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "..\\react-git-info\\"
1205 verbose node v12.13.1
1206 verbose npm v6.14.4
1207 error code EISDIR
1208 error syscall symlink
1209 error path E:\Repos\react-git-info
1210 error dest E:\Repos\abhyudayasharma.github.io\node_modules\react-git-info
1211 error errno -4068
1212 error EISDIR: illegal operation on a directory, symlink 'E:\Repos\react-git-info' -> 'E:\Repos\abhyudayasharma.github.io\node_modules\react-git-info'
1213 verbose exit [ -4068, true ]

exFAT does not support symlinks: https://docs.microsoft.com/en-us/windows/win32/fileio/filesystem-functionality-comparison#functionality

Since exFAT is not the only filesystem without support of symlinks, there should be a fallback. One I could think of is copying files to node_modules and watching the directory of the package to be installed for changes.

When

Installing a local package on an exFAT formatted drive.

Where

Windows 10 1909, Version 10.0.18363.815

npm 6.14.4

Node v12.13.1

I have tested only on Windows, but this should be a problem in all other operating systems.

How

Current Behavior

Installation of the package fails due to the filesystem not supporting symlinks.

Steps to Reproduce

On an exFAT partition, clone any npm package. In another npm project, install the cloned package with a relative path. The installation will fail because npm is unable to make a symlink.

Expected Behavior

Installation of local packages should work like it does with NTFS and ext4.

Who

n/a

References

n/a

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

Current Behavior

No response

Expected Behavior

No response

Steps To Reproduce

In this environment...

With this config...

Run '...'

See error...

Environment

OS:

Node:

npm:

@8.ggdgxyf6z6fx6fx

Duplicate of #
Issue 1:
As well as specifying top, right, bottom and left, it would also be useful to be able to specify top-right, top-left, right-top, right-bottom, bottom-right, bottom-left, left-top and left-bottom. Without these options, tooltips/popovers added to elements in the corner of the window will overlap the window itself (in some way or another).

Here's an example of bottom-right (which could be used to add a tooltip/popover to an element that is in the top left corner:

http://jsfiddle.net/fZTm4/3/

Issue 2:
I think it would be great if we could position our popover more precisely.

Adding corner support like :

http://craigsworks.com/projects/qtip2/demos/tips

Is there a way to achieve this today?
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.3

Operating System version: MAC OX 10.14.5

Java version: 1.8

Steps to reproduce this issue

Use GenericService by API, assign the version is 1.0.0.test.qa.st

breakpoint at DubboInvoker.doInvoke

check the DubboInvoker.version = 0.0.0

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

Expected Result

In the instance of DubboInvoker，the version should be 1.0.0.test.qa.st

Actual Result

In the instance of DubboInvoker，the version’s value actully is default value,0.0.0

Cause

this method : "ClusterUtils.mergeUrl" at line 87 ,remove the version key, so lost the version's value

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

Operating System version: any

Java version: 1.8

Steps to reproduce this issue

public class DubboTest {

public static void main(String[] args) {
RpcContext.getContext().getAttachments().put("a", "b");

System.out.println("before");
for (Map.Entry<String, String> entry : RpcContext.getContext().getAttachments().entrySet()) {
System.out.println(entry.getKey() + "==>" + entry.getValue());
}

System.out.println("after");
}
}

execute result:

the reason is ObjectToStringMap implements has serious problem.

I will make a PR to fix this

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:
ISSUE TYPE

Documentation Report

SUMMARY

'Edit on GitHub' http://joxi.ru/l2Z6VxFwlbVL2J?d=1 link leads to 404 error page http://joxi.ru/eAO14Wfxv1Gdmo?d=1

STEPS TO REPRODUCE

1 Go to http://docs.ansible.com/ansible/intro_adhoc.html

2 Press 'Edit on GitHub' at top right corner.

3 See 404 error page.

EXPECTED RESULTS

Some kind of valid git hub page for editing related page.

ACTUAL RESULTS

404 error page

Issue 2:
ISSUE TYPE

Documentation Report

STEPS TO REPRODUCE

Go to http://docs.ansible.com/ansible/index.html, click the Edit on GitHub link in the upper right corner.
Issue 1:
Since Deno 1.31 upgrade, on startup and at each tab completion an error message is logged.

Platform: windows 11

Full re-install, cleaning cache, ... not solving this issue

Downgrading solve it

Install on VM don't seems to have this issue

Could not set npm package requirements. Error getting response at https://registry.npmjs.org/npm for package "npm": An npm specifier not found in cache: "npm", --cached-only is specified.
Deno 1.31.1
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> MCould not set npm package requirements. Error getting response at https://registry.npmjs.org/npm for package "npm": An npm specifier not found in cache: "npm", --cached-only is specified.

Map Math MessageChannel MessageEvent MessagePort

Issue 2:
Hello. So, I was testing Deno 1.9.2 with a workload that involves Temporal and a Postgres database. I noticed that after a few minutes, the 2GB VPS just ran out of memory after some batches of processing. I did the following:

Tried to profile using --inspect, but I noticed that it never went above 20MB, so it was probably not a "normal" JavaScript leak. I think Deno lacks GC information in the DevTools profiler, so that wasn't helpful.

I proceeded to compile Deno in debug mode, upload to VPS, run with the workload using LD_PRELOAD=/usr/lib/libtcmalloc.so and a HEAPPROFILE.

The results were in. And looks like it's Intl.DateTimeFormat that is at fault.

Then I looked for similar issues. Found: nodejs/node#31914, seems related, and listed as fixed for v8, but let's try the repro. Created a file leak.ts, ran with deno and watched the resident memory climb up to 5.4G. Ran with node, it also looks "leaky", but it only goes up to 1.3G.

setInterval(() => {
var a;
for (let i = 0; i < 100; i++) {
a = new Intl.DateTimeFormat("en").format(Date.now());
}
}, 1);

The same code with a similar object, Intl.NumberFormat, peaks at 100M for node, and 258M for deno. I assume that is normal.

setInterval(() => {
var a;
for (let i = 0; i < 100; i++) {
a = new Intl.NumberFormat("en").format(3);
}
}, 1);

I couldn't change this memory ceiling by using --v8-flags=--max-old-space-size, so I guess it's completely external to that.

I think it's probably an issue in V8 itself that has not been correctly resolved, and deno and node both handle it differently. I will try to change Temporal to reuse the same Intl.DateTimeFormat instance, for now, but it would be nice if this could be fixed.
Issue 1:
There are several functions for which I would like to see protocols constructed. I've raised issues for #11074 and #11128 but these are just special cases of a much larger issue that includes many operations. The sense I've gotten is that the process to change numpy takes a while, so I'm inclined to find a catch-all solution that can serve as a catch-all while things evolve.

To that end I propose that duck-arrays include a method that returns a module that mimics the numpy namespace

class ndarray:
def __array_module__(self):
import numpy as np
return np

class DaskArray:
def __array_module__(self):
import dask.array as da
return da

class CuPyArray:
def __array_module__(self):
import cupy as cp
return cp

class SparseArray:
def __array_module__(self):
import sparse
return sparse
...

Then, in various functions like stack or concatenate we check for these modules

def stack(args, **kwargs):
modules = {arg.__array_module__() for arg in args}
if len(modules) == 1:
module = list(modules)[0]
if module != numpy:
return module.stack(args, **kwargs)
...

There are likely several things wrong the implementation above, but my hope is that it gets a general point across that we'll dispatch wholesale to the module of the provided duck arrays.

cc @shoyer @hameerabbasi @njsmith @ericmjl

Issue 2:
Reproducing code example:

import numpy as np
z = np.ones((2, 3, 4))
z.sum((0, 0, 0))

Error message:

ValueError: duplicate value in 'axis'

Even though I could do:

z.sum(0, keepdims=True).sum(0, keepdims=True).sum(0, keepdims=True)

This happens to be caused by this snippet.

PyObject *tmp = PyTuple_GET_ITEM(axis_in, i);
int axis = PyArray_PyIntAsInt_ErrMsg(tmp,
"integers are required for the axis tuple elements");
if (error_converting(axis)) {
return NPY_FAIL;
}
if (check_and_adjust_axis(&axis, ndim) < 0) {
return NPY_FAIL;
}
if (out_axis_flags[axis]) {
PyErr_SetString(PyExc_ValueError,
"duplicate value in 'axis'");
return NPY_FAIL;
}
out_axis_flags[axis] = 1;

I'm not sure why do you prevent duplicate axis?

Numpy/Python version information:

1.16.2 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34)
[GCC 7.3.0]