WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
This derives from the browser console, which is the only thing comparable to Deno's terminal repl.

As of right now, the repl is a normal script, I believe that it would be more helpful to anyone using it If it were a module allowing imports, and with top-level await, as most of Deno is promise focused.

I believe it to be reasonable to derive from the browser in this case as the repl / console is often used for something simple and short, and having more utility there would be helpful, and it shouldn't break any backward compatibility as scripts aren't intended to be programmatically run there.

The console is merely a simple tool to help us out, is it not? What could go wrong?

If anything, having an optional flag wouldn't be that bad,

Maybe something like so: deno --repl=module

Issue 2:
When in the Deno REPL and executing:

import { env } from "deno";

The output is:

SyntaxError: Unexpected token {

Probably related to #1158

Executing: deno -v on the commandline returns:

deno: 0.2.1

v8: 7.1.302.4

typescript: 3.2.1
Issue 1:
Glide Version: 4.11.0

Integration libraries: OkHttp3

Device/Android Version: Redmi Note 4 Android 7.0

Issue details / Repro steps / Use case background: don't know how to reproduce this exception, sadly.

Stack trace / LogCat:

java.util.ConcurrentModificationException: null
at java.util.ArrayList$Itr.next(ArrayList.java:831)
at com.bumptech.glide.Glide.trimMemory(Glide.java:688)
at com.bumptech.glide.Glide.onTrimMemory(Glide.java:900)
at android.app.Application.onTrimMemory(Application.java:138)
at android.app.ActivityThread.handleTrimMemory(ActivityThread.java:5120)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1741)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:165)
at android.app.ActivityThread.main(ActivityThread.java:6375)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802)

Issue 2:
java.lang.AssertionError

Register too many Broadcast Receivers

android.app.LoadedApk.checkRecevierRegisteredLeakLocked(LoadedApk.java:1195)

android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1224)

android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1601)

android.app.ContextImpl.registerReceiver(ContextImpl.java:1574)

android.app.ContextImpl.registerReceiver(ContextImpl.java:1562)

android.content.ContextWrapper.registerReceiver(ContextWrapper.java:603)

com.bumptech.glide.manager.e.c(DefaultConnectivityMonitor.java:1054)

com.bumptech.glide.manager.a.a(ActivityFragmentLifecycle.java:50)

com.bumptech.glide.manager.SupportRequestManagerFragment.onStart(SupportRequestManagerFragment.java:175)

android.support.v4.app.Fragment.performStart(Fragment.java:2287)

android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1458)

android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)

android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1819)

android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3227)

android.support.v4.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:3186)

android.support.v4.app.FragmentController.dispatchStart(FragmentController.java:203)

android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:582)
Issue 1:
Julia doesn't honor USE_SYSTEM_LIBSSH2, and I can't keep Julia from trying to download LibSSH2.

Issue 2:
On v1.0.2 I used a return statement from within a let block that got assigned to a variable. This didn't work as I expected, but it also didn't cause any errors. The surprising side effect was that the variable assigned to was never actually created.

julia> x = let
# some ugly calc
42
end
42

julia> x
42

julia> y = let
# some ugly calc
return 42
end
42

julia> y
ERROR: UndefVarError: y not defined
Issue 1:
deno run --allow-read --allow-env --allow-write npm:prisma@^4.5 init

✅Granted sys access to "uid".

Downloading Prisma engines for Node-API for darwin-arm64 [ ] 0%┌ ⚠️ Deno

✅ Granted net access to "binaries.prisma.sh".

Downloading Prisma engines for Node-API for darwin-arm64 [======== ] 84%error: Uncaught (in promise) TypeError: context.digest is not a function

at Hash.flush [as _flush] (ext:deno_node/internal/crypto/hash.ts:47:35)

at Hash.Ot [as _final] (ext:deno_node/_stream.mjs:11:59823)

at Fa (ext:deno_node/_stream.mjs:11:51130)

at Ua (ext:deno_node/_stream.mjs:11:51274)

at mt (ext:deno_node/_stream.mjs:11:51350)

at Hash.S.end (ext:deno_node/_stream.mjs:11:50523)

at Gunzip.u (ext:deno_node/_stream.mjs:11:36397)

at Object.onceWrapper (ext:deno_node/_events.mjs:502:28)

at Gunzip.emit (ext:deno_node/_events.mjs:391:35)

at Ea (ext:deno_node/_stream.mjs:11:43461)

deno 1.32.5 (release, aarch64-apple-darwin)
v8 11.2.214.9
typescript 5.0.3

Issue 2:
I am following this document.

I'm running this command:

deno run -A --unstable npm:prisma init

And receiving this error:

Downloading Prisma engines for Node-API for darwin-arm64 [...] error: Uncaught (in promise) TypeError: context.digest is not a function

If I try to run prisma init outside of deno:

npx prisma init

It succeeds just fine:

I'm not sure if this is a deno issue, or a prisma issue, however I am able to get this working outside of deno.
Issue 1:
System info

Playwright Version: [v1.35.1]

Operating System: [Windows 10]

Browser: [Chrome]

Other info: Windows Terminal

Steps

[Run npm init playwright]

[Error]

Expected

Configuration to initialize Playwright

Actual

Error:

npm ERR! code ENOLOCAL

npm ERR! Could not install from "Apud\AppData\Roaming\npm-cache_npx\17028" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\Fernando R. Apud\AppData\Roaming\npm-cache_logs\2023-06-20T23_23_00_727Z-debug.log

La instalación de [ 'create-playwright@latest' ] fracasó con código 1

Log:

2023-06-20T23_23_00_727Z-debug.log

Issue 2:
System info

Playwright Version: [v18.17.0]

Operating System: [Windows 11]

Other info:

I have the the command npm init playwright@latest to install playwright but it is not giving success message and failing to install chromium

Here is the error belo

Failed to install browsers

Error: Failed to download Chromium 115.0.5790.75 (playwright build v1071), caused by

Error: Download failure, C:\Users\BhagyashriChaudari\AppData\Local\ms-playwright\chromium-1071\INSTALLATION_COMPLETE does not exist

at ChildProcess. (C:\PIP\PlayWright\Practice\node_modules\playwright-core\lib\server\registry\browserFetcher.js:93:14)

at ChildProcess.emit (node:events:514:28)

at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)

Error: Command failed: npx playwright install

at checkExecSyncError (node:child_process:885:11)

at execSync (node:child_process:957:15)

at executeCommands (C:\Users\BhagyashriChaudari\AppData\Local\npm-cache_npx\d352e76cc6b4974c\node_modules\create-playwright\lib\index.js:4519:39)

at Generator.run (C:\Users\BhagyashriChaudari\AppData\Local\npm-cache_npx\d352e76cc6b4974c\node_modules\create-playwright\lib\index.js:4679:5)

at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

at async C:\Users\BhagyashriChaudari\AppData\Local\npm-cache_npx\d352e76cc6b4974c\node_modules\create-playwright\lib\index.js:4950:3 {

status: 1,

signal: null,

output: [ null, null, null ],

pid: 13084,

stdout: null,

stderr: null

}

npm ERR! code 1

npm ERR! path C:\PIP\PlayWright\Practice

npm ERR! command failed

npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-playwright

npm ERR! A complete log of this run can be found in:
Issue 1:
Peter Mularien opened SPR-3910 and commented

The vanilla Spring framework download (not the -with-dependencies.zip) should at the very least include Javadoc for the Spring API. As of Spring 2.0.6, "spring-framework-2.0.6.zip" does not include API docs, and users are forced to download the unintuivitely-named "-with-dependencies.zip" to get the Javadoc, along with a whole bunch of stuff that they probably didn't want.

Thanks for listening!

Affects: 2.0.6

Issue Links:

#7590 Offer basic distribution that includes javadoc ("duplicates")

#8589 Spring web site should document the difference between the 2 downloads (*2.0.6.zip, and -with-dependencies.zip)

Issue 2:
Rogério Meneguelli Gatto opened SPR-2903 and commented

The standard distribution (spring-framework-2.0.1.zip) does not include API javadocs. There are no downloads in the documentation page either.

Affects: 2.0.1

Issue Links:

#8590 Spring ZIP file should include Javadoc for Spring ("is duplicated by")
Issue 1:
I have noticed when editing HTML files that Visual Studio does a very good job with auto complete; however, when I am using HTML within a PHP file, tags and tag attributes don't show up in the intellisense menu. Is this by design or something that was accidentally looked over?

Thanks,

Hunter Mitchell

Issue 2:
In PHP files there is no html tags auto completion, please add.

EDIT 9/13/2018 @egamma: VS Code provides only basic support for PHP, but there are powerful PHP extensions available in the market place:

PHP IntelliSense

PHP Intelephence.

This feature should be provided by these extensions (Intelephence actually already does support it). Please give these extensions a try and help to make them better by filing issues and pull requests.

This issue has lost focus and turned into a discussion whether VS Code should provide PHP support out of box. However, as with many other language like C#, C++, Go, Python, Rust we do not want to bundle PHP with VS Code but rather rely on our great extension ecosystem. I´m therefore closing this issue.
Issue 1:
It seems that masked_fill_ is more dangerous for zero-strided tensors, because the mask may be different for the elements that refer to the single location in memor

Probably related issue: #12230

My Torch version is 1.1.0.

import torch
a = torch.zeros(2)
b = a.expand(2, 2)

b *= 2 # breaks
# RuntimeError: mul: unsupported operation: more than one element of the written-to tensor refers to a single memory location. Please clone() the tensor before calling mul

mask = torch.ByteTensor([[0, 1], [1, 0]])
b.masked_fill_(mask, 0) # works, but semantically unsafe

Issue 2:
I discovered this when writing some masking code, it seems that unexpected behavior can arise when using pointwise operations to write to expanded tensors. The code below reproduces and explains the issue:

We start off by constructing an example array and constructing a mask from it:

example_batch = torch.Tensor([
[[1, 2, 0, 0],
[2, 1, 3, 0],
[2, 1, 3, 0]]
])

mask = (example_batch == 0)
>>> mask
tensor([[[0, 0, 1, 1],
[0, 0, 0, 1],
[0, 0, 0, 1]]], dtype=torch.uint8)

We then expand a range into our example batch:

index_filled = torch.arange(1, example_batch.size(-1) + 1).expand_as(example_batch)
>>> index_filled
tensor([[[1, 2, 3, 4],
[1, 2, 3, 4],
[1, 2, 3, 4]]])

So far, so good, yet the problem appears when we try to do a masked_fill on index_filled using our masked array:

masked = index_filled.masked_fill_(mask, 0)
>>> masked
tensor([[[1, 2, 0, 0],
[1, 2, 0, 0],
[1, 2, 0, 0]]])

This doesn't seem to be what we would expect from our mask operation, what we where expecting was:

tensor([[[1., 2., 0., 0.],
[1., 2., 3., 0.],
[1., 2., 3., 0.]]])

This behavior also happens with .add_ (an ATen operation):

>>> index_filled.add_(mask.long())
tensor([[[1, 2, 4, 7],
[1, 2, 4, 7],
[1, 2, 4, 7]]])

Verse if we try with .contiguous()...

>>> index_filled.contiguous().add_(mask.long())
tensor([[[1, 2, 4, 5],
[1, 2, 3, 5],
[1, 2, 3, 5]]])

The "quick fix" to this is to call .contiguous() before add_ or masked_fill, however I feel that this solution is non-obvious if the user is not aware of strides (and non-obvious even if the user is). Maybe a check for this type of case should exist? Thanks to @jekbradbury for helping me figure out this issue.

System Info

Python version: 3.6

CUDA available: No

PyTorch or Caffe2: PyTorch

How you installed PyTorch (conda, pip, source): Conda

OS: Mac OSX 10.13.6

PyTorch version: 0.4.1

Python version: 3.6
Issue 1:
Hello guys, I'm trying to create decorators with the deno, however this is not being possible, the deno console also does not provide me with information.

See the code:

interface Newable<T> {
new(...args: any[]): T;
}

function Decorate() {
return function <T extends Newable<TBaseClass>>(constructor: T): any {
// extend constructor
console.log(constructor);
return class extends constructor {
protected _extraField: string = '-'
};
}
}
@Decorate()
class ExtTest{}
console.log((new ExtTest))

*OBS: I tried remove the <T extends Newable> and but not working

If i comment the "@decorate" the error fades away.

See the console:

and my tsconfig.json:

am i doing something wrong?

See you later!

Issue 2:
$ deno cache https://gist.githubusercontent.com/lucacasonato/e7d549c5c2d92ed4c10170f0a758b952/raw/a5fc2b7cc8b1952e1718103b496cc9254e2a9ada/decorator.ts --config https://gist.githubusercontent.com/lucacasonato/e7d549c5c2d92ed4c10170f0a758b952/raw/a5fc2b7cc8b1952e1718103b496cc9254e2a9ada/tsconfig.json
error:

It just errors with error:. Kinda surprising there is no test for this. I'm on a release build from f98cc34.
Issue 1:
Frequently, even with all files saved, Atom will cancel logout on OS X. It seems to do this to give itself a moment to close. However,

This behavior is very frustrating

This behavior is against OS X guidelines and standard practices

This behavior goes against user expectations

This should be removed entirely, and Atom should never delay logging out.

Issue 2:
Halp ticket:

support/5b613158cbd611e38be29976540e6fbc

When restarting on OS X Mavericks and choosing the option to reopen windows, Atom crashes and will not let the system reboot.
Issue 1:
f1c2ab7#commitcomment-3341689

https://groups.google.com/d/topic/symfony2/F17eK33QY6M/discussion

Issue 2:
It`s very simple to reproduce:

services:
request_scoped_service:
class: stdObject
scope: request

alias_for_service:
alias: request_scoped_service

/** @var ContainerInterface $container */
$container->enterScope('request')
$byName = $container->get('request_scoped_service');
$byAlias1 = $container->get('alias_for_service');
$byAlias2 = $container->get('alias_for_service');
var_dump( $byName === $byAlias1 ); // false, expected true
var_dump( $byName === $byAlias2 ); // false, expected true
var_dump( $byAlias1 === $byAlias2 ); // false, expected true

Bug may be after this: f1c2ab7
Issue 1:
I think the issue can be traced down to lax.eq(np.inf, np.nan) returning True, for some reason. I am on a recent master commit (7328689).

>>> import jax.numpy as np
>>> from jax.numpy.lax_numpy import isinf
>>> from jax import lax
>>> nan = np.array([np.nan])
>>> print(nan)
array([nan], dtype=float32)
>>> np.isnan(nan) # Should be True
array([False])
>>> np.isinf(nan) # Should be False
array([True])
>>> lax.eq(np.nan, np.inf) # Should be False
array(True)

Issue 2:
as a result np.nan_to_num, np.nanmean, etc all don't work

import jax.numpy as np
a = np.zeros(1) / np.zeros(1)
print(a.__array__())
print(np.isnan(a).__array__())

[nan]

[False]

This bug only happens with the CPU-only build of JAX, when I see this warning: "warnings.warn('No GPU found, falling back to CPU.')"
Issue 1:
[ x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

It should not fire the error

Current Behavior

I'm using custom express server and I'm getting this error page load

"Home.getInitialProps()" should resolve to an object. But found "undefined" instead.

Steps to Reproduce (for bugs)

Use custom express server

server.get('/home/:slug', (req, res) => {
const { pathname, query } = parse(req.url, true)
return app.render(req, res, '/Faq', {
slug: req.params.slug
})
})

Home component is like this

export default class Faq extends Component {

static async getInitialProps ({ req, query }) {
console.log(query)
}
render() {
<div> This is home </div>
}

I'm gettting above error

Context

I want to render page dynamically as per the slug, without it I'm not able proceed further

Your Environment

Tech
Version

next
6.0.2

node
9.2.0

OS
Mac

browser
Chrome

etc

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

Expected Behavior

<Link> should produce a working link.

Current Behavior

Using <Link> causes an error in console: Did not expect server HTML to contain a <a> in <div>.

Steps to Reproduce (for bugs)

Clone my repo, npm i

Visit localhost:3000

Check console

Context

I am using Next.js for the first time. I am actually following the tutorial step for step. I got stuck on this step ("Using Link").

(I also noticed that sometimes the environment gets stuck in an infinite reload loop. For example when I added the about.js page. Or when I add and remove the <Link>-tag. That's probably a different issue...)

Your Environment

Tech
Version

next
6.0.0

node
v8.9.4

OS
10.13.4

browser
Safari 11.1

npm
5.6.0

react
16.3.2
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: win10

Java version: 1.8

Steps to reproduce this issue

消费端配置：dubbo.consumer.cluster = failfast

启动项目，debug发现使用了failover

但是打印出的日志却是failfast

换回2.7.5，初始化时用的是 FailfastCluster，调用正常，但是2.7.6，初始化的是FailoverCluster

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

Expected Result

不进行重试

Actual Result

重试了2次

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

[DUBBO] Notify urls for subscribe url consumer://10.1.64.48/com.xxx.remote.crm.service.warn.xxx?application=ai-api-web&category=providers,configurators,routers&check=false&cluster=failfast&dubbo=2.0.2&init=false&interface=com.xxx.remote.crm.service.warn.xxx&metadata-type=remote&methods=xxx&pid=19676&qos.enable=false&release=2.7.6&revision=1.0.0&side=consumer&sticky=false&timeout=1000&timestamp=1588757842211&version=1.0.0, urls: [dubbo://10.1.64.48:20885/com.xxx.remote.crm.service.warn.xxx?anyhost=true&application=service-crm&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=com.xxx.remote.crm.service.warn.xxx&metadata-type=remote&methods=xxx&pid=29572&release=2.7.6&revision=1.0.0&service.filter=remoteServiceExceptionFilter,-exception&side=provider&timeout=10000&timestamp=1588757859274&version=1.0.0], dubbo version: 2.7.6, current host: 10.1.64.48

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

yes

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

yes

JMH is a Java harness for building, running, and analysing nano/micro/milli/macro benchmarks written in Java and other languages targetting the JVM.

use JMH, some of our code changes will be more convincing
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.175]

Any other software? Visual Studio Code Insiders

Steps to reproduce

Launch VS Code Insiders.

Ensure using conpty with setting: terminal.integrated.windowsEnableConpty

Open a terminal with Ctrl+`

Close the terminal with the trash can icon

Repeat 3 and 4 until the window hangs. It takes around 10 retries on my machine.

Expected behavior

No hanging.

Actual behavior

The window hangs. Using windbg, I see the following:

Notice the many leftover conhosts in the task manager as well as the hang in ClosePseudoConsole.

Here is the link to the code in node-pty calling into the PseudoConsole API.

https://github.com/microsoft/node-pty/blob/04445ed76f90b4f56a190982ea2d4fcdd22a0ee7/src/win/conpty.cc#L429

/cc @daimms

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.10000]
Windows Terminal version (if applicable): EARLY PREVIEW BUILD

Any other software?

Steps to reproduce

Open multiple tabs in the terminal

Expected behavior

The tabs resize in that way we can see all the tabs o close one

Actual behavior

Many tabs open without been possible closed
Issue 1:
0 info it worked if it ends with ok

1 verbose cli [

1 verbose cli '/usr/local/Cellar/node/13.12.0/bin/node',

1 verbose cli '/usr/local/bin/npm',

1 verbose cli 'i',

1 verbose cli 'react-player'

1 verbose cli ]

2 info using npm@6.14.4

3 info using node@v13.12.0

4 verbose npm-session 7a90fc0402509a7a

5 silly install loadCurrentTree

6 silly install readLocalPackageData

7 warn registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning undefined: network timeout at: https://registry.npmjs.org/react-player

8 warn registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.

9 http fetch GET 200 https://registry.npmjs.org/react-player 160110ms (from cache)

10 timing npm Completed in 235562ms

11 error cb() never called!

12 error This is an error with npm itself. Please report this error at:

13 error https://npm.community

Issue 2:
*Updated* as of 01/15/2021

Note: Please read this doc before filing a new issue.
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-comment-your-javascript-code has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Can get thru Basic Javascript 1 thru 8 , but the all have these kins of errors under where you reset the code.

thanks!

Issue 2:
Cleared to go to next challenge while teh tasks listed were still showing red X circles instead of check mark of completion.
Issue 1:
TypeScript Version:

Just tested in Atom-Typescript which currently has master as of 2016-02-23 https://github.com/TypeStrong/atom-typescript/blob/8d43dd1b930a6df0ce62454a1560acfb7eee24c9/package.json#L64

Code

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

const Hello = (props: { compiler: string, framework: string }) => {
return (
<div>
<div>{props.compiler}</div>
<div>{props.framework}</div>
</div>
);
}

ReactDOM.render(
<Hello compiler="TypeScript" framework="React" />,
document.getElementById("root")
);

Expected behavior:

Rename Hello in const Hello to Hellos and <Hello should update to <Hellos.

Actual behavior:

Rename Hello in const Hello to Hellos and <Hello will not update.

More

I was using this as a sample for https://github.com/basarat/react-typescript 🌹

Issue 2:
When adding JSDoc to an overloaded function, It seems that the JSDoc comment must immediately precede the actual function. When preceding the list of overloads, the JSDoc comment is dropped after compilation.

Example:

module app {

/**
* Returns "foo"
*
* this doesn't output.
*/
export function foo(x: string): string;
export function foo(x: number): string;
export function foo(x: any): string {
return "foo";
}

export function bar(x: string): string;
export function bar(x: number): string;

/**
* Returns "bar"
*
* this will output. but I don't like my overloads detached.
*/
export function bar(x: any): string {
return "bar";
}

}
Issue 1:
Hi,

I'm trying out to create a Dropdown nav bar, but the Dropdown menu is not visible. Can anyone help me?

Here is my code:

http://jsfiddle.net/t0m4h4wk/mEevs/

Thank you very much!

t0m4h4wk

PS: Please forgive me my english, I'm german ;)

Issue 2:
I used to customize button colors using .gradientBar mixin... now it appears that I have to use .buttonBackground mixin to customize my own button types/colors. Could you move it from buttons.less to mixins.less so that I do not have to copy it from buttons.less to my own stylesheet file?