WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Issue Type: Bug Report

Ansible Version:

$ ansible --version
ansible 1.9.0.1
configured module search path = None

Environment:

Running on Mac OS to manage an Ubuntu 14.04 VM.

Summary:

The new version 1.2.1 of the "docker-py" module seems to have removed the "docker.client.DEFAULT_DOCKER_API_VERSION" variable that Ansible was using.

FWIW - It looks like this 1.2.1 release of "docker-py" just came out today, 4/29/15. See: https://pypi.python.org/pypi/docker-py.

And here's a link to the diff on "docker-py" where @shin- removed "docker.client.DEFAULT_DOCKER_API_VERSION":

docker/docker-py@ae329cb

And the new "docker.constants" file where this variable was moved to:

https://github.com/docker/docker-py/blob/ae329cb3acb3ff38bd986215c99b1136a6183f78/docker/constants.py#L1

TASK: [apt-cacher-ng | Run the extellisys/apt-cacher-ng Docker container] *****
failed: [default] => {"failed": true, "parsed": false}
BECOME-SUCCESS-ldprfowyxhdsqcsgmtrqpvirszzgajwq
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-tmp-1430328017.67-135370415083178/docker", line 3104, in <module>
main()
File "/home/vagrant/.ansible/tmp/ansible-tmp-1430328017.67-135370415083178/docker", line 1449, in main
manager = DockerManager(module)
File "/home/vagrant/.ansible/tmp/ansible-tmp-1430328017.67-135370415083178/docker", line 558, in __init__
docker_api_version=docker.client.DEFAULT_DOCKER_API_VERSION
AttributeError: 'module' object has no attribute 'DEFAULT_DOCKER_API_VERSION'

If I downgrade my "docker-py" to the previous 1.1.0 release, the Ansible operation completes successfully.

Steps To Reproduce:

Pretty basic use of Ansible's "docker" module:

- name: apt-cacher-ng | Run the extellisys/apt-cacher-ng Docker container
docker:
image=extellisys/apt-cacher-ng
name=apt-cacher-ng
ports="{{ apt_cache_server_port }}:3142"
volumes="{{ apt_cache_server_dir }}:/var/cache/apt-cacher-ng"

Again, this issue occurs when "docker-py" is 1.2.1 and not when "docker-py" is 1.1.0.

Expected Results:

I expect Ansible's "docker" module to work correctly.

Actual Results:

TASK: [apt-cacher-ng | Run the extellisys/apt-cacher-ng Docker container] *****
failed: [default] => {"failed": true, "parsed": false}
BECOME-SUCCESS-ldprfowyxhdsqcsgmtrqpvirszzgajwq
Traceback (most recent call last):
File "/home/vagrant/.ansible/tmp/ansible-tmp-1430328017.67-135370415083178/docker", line 3104, in <module>
main()
File "/home/vagrant/.ansible/tmp/ansible-tmp-1430328017.67-135370415083178/docker", line 1449, in main
manager = DockerManager(module)
File "/home/vagrant/.ansible/tmp/ansible-tmp-1430328017.67-135370415083178/docker", line 558, in __init__
docker_api_version=docker.client.DEFAULT_DOCKER_API_VERSION
AttributeError: 'module' object has no attribute 'DEFAULT_DOCKER_API_VERSION'

Issue 2:
docker-py recently moved their constants in a backwards incompatible way in v1.2.x

Previously we accessed docker.client.DEFAULT_DOCKER_API_VERSION

That constant is now available at docker.client.constants.DEFAULT_DOCKER_API_VERSION

See docker/docker-py#570 for the relevant change.

We will need to update reference of this constant.

cc @smashwilson @abadger
Issue 1:
Windows build number: Windows 10 Pro 64 bit, Ver 1909, OS build 18363.815

PowerToys version: 0.17.0

PowerToy module for which you are reporting the bug (if applicable):

# Actual behavior

Selecting "settings" - Powertoys window loads for a couple of seconds and then shuts down. I have been having this problem since Powertoys 0.11.
Program is running in administrative mode. Had no issues when installing. Tried uninstalling/reinstalling, didn't fix the problem. It works on other pc's/tablets that I own.

Issue 2:
Environment

W10 Pro V1903 Build 18362.295

PowerToys: 0.11.0

Settings Screen

Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):

Steps to reproduce

Just installed and attempted to open settings. Screen is totally blank/empty.

I 'repaired - same issue.

Uninstalled, reboot and reinstall - same issue.

Expected behavior

Expect to see config options

Actual behavior

Blank window.

Screenshots

https://i.imgur.com/a7oWKgp.png
Issue 1:
Upgrading my app from alpha34 to alpha35, one directive I had with a selector [on-init] was not working anymore. I realize it must be conflicting in the parser with the canonical syntax for events, but it was working until alpha35 and the error we have now is not really explicit:

TypeError: Cannot set property 'lastInBinding' of undefined
at Function._ConvertAstIntoProtoRecords.create (http://me:8080/jspm_packages/npm/angular2@2.0.0-alpha.35/src/change_detection/proto_change_detector.js:97:39)
at http://me:8080/jspm_packages/npm/angular2@2.0.0-alpha.35/src/change_detection/proto_change_detector.js:35:47

Maybe the error could be more explicit and the doc warns about not using these prefixes (on, var, bind) in attribute selectors?

Issue 2:
Related: #3664 (should be fixed together)

I have a template with the following element:

<input type="file" id="picture" accept="image/*"
(change)="onFileSelected(f, $event)"
(fileread)>

On alpha 33 it worked great.

On alpha35 it produces the following runtime error:

EXCEPTION: TypeError: Cannot set property 'lastInBinding' of undefined
angular2.js:13030 STACKTRACE:
angular2.js:13030 TypeError: Cannot set property 'lastInBinding' of undefined
at Function.execute._ConvertAstIntoProtoRecords.create (http://localhost:5555/lib/angular2.js:18104:47)
at http://localhost:5555/lib/angular2.js:17730:49
at Array.map (native)
at createEventRecords (http://localhost:5555/lib/angular2.js:17729:36)
at JitProtoChangeDetector.execute.JitProtoChangeDetector._createFactory (http://localhost:5555/lib/angular2.js:17575:39)
at new JitProtoChangeDetector (http://localhost:5555/lib/angular2.js:17567:32)
at $__1.execute.JitChangeDetection.createProtoChangeDetector (http://localhost:5555/lib/angular2.js:10323:20)
at http://localhost:5555/lib/angular2.js:15553:42
at Array.map (native)
at Function.execute.ListWrapper.map (http://localhost:5555/lib/angular2.js:6374:26)

The following modification still produces the error:

<input type="file" id="picture" accept="image/*"
(change)="onFileSelected(f, $event)"
(fileread)="">

This one works

<input type="file" id="picture" accept="image/*"
(change)="onFileSelected(f, $event)"
(fileread)="x">
Issue 1:
Hello,

the only thing keeping me away from atom is the fact that it's crashing everytime I try to open a large file, jquery.min.js for example. In comparision to sublime, this is pretty bad because when atom doesn't crash, it takes up to 10 seconds to load the syntax highlighter.

Is there an issue similar to this or is this already tracked?

I'm using OSX Yosemite and Windows 8.1

Issue 2:
So, I use my text editor for all kinds of things (writing code, reading readmes, editing dotfiles, etc). One of the things I do most often during any given day is open up large log files to troubleshoot Enterprise problems. These files can sometimes get as large as 500-800MB.

I just tried viewing a 350MB log file and Atom locked up immediately -- the file selector didn't change and the entire window went completely white 4 seconds after I tried viewing the file. I could still close the top level window, but we should still have better handling for this kind of thing.

Sublime Text 2 took about 55 seconds to open the file, but gave a nice progress indicator while it was loading:

Once it loaded it was as responsive as any other file I load (scrolled fast, normal text highlight performance, etc). It would be nice if we set this as a baseline for expected behavior (progress bar + responsive after loading).
Issue 1:
If you run a cypher like this in 2-M05:

START n=node(1)
RETURN HEAD(LABELS(n))

you get a syntax error, saying that it expected a collection, but getting a boolean. This worked fine in M04 and previous.

Issue 2:
There seems to be a breaking change in new cypher parser, which now incorrectly parses:

START node=node(*)
WHERE ANY (label in LABELS(node) WHERE label IN ['mylabel'])
RETURN node

with error:

Error: Type mismatch: expected Collection<Any> but was Boolean (line 1, column 40)
"START node=node(*) WHERE ANY (label IN LABELS(node) WHERE label IN ['mylabel']) RETURN node"
^

You can also see this here: http://console-test.neo4j.org/r/scx0j4

This was first reported in a SO question: http://stackoverflow.com/questions/18746605/neo4j-2-0-0-m05-cypher-changes-in-function-predicates-by-labels.
Issue 1:
Description of the new feature/enhancement

Proposed technical implementation details (optional)

Issue 2:
Environment

Windows build number: Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version commit: 200e90d1c64cb8ad3f48b808ac695bac5bb6e696

Any other software?

Visual Studio Community 2019 16.3.3

Steps to reproduce

vim Terminal\src\cascadia\TerminalApp\TerminalPage.cpp

yank and paste second line.

Expected behavior

pasted line appears text, below scrolls down

Actual behavior

pasted line appears text scrolls up.

At this point there is no consistency between cursor and location in the file.

Hitting "u" to undo even when at the "Already at the oldest change" point removes the text under the cursor and scrolls everything up. leading to multiple copies of the vim status line

Confirms this is a problem even when ssh [-ing] to a remote machine and using vim there not the local windows instance as well.

Last known working commit: 2c8b324 Wed Sep 25 22:00:06 2019 -0700

Screenshot is after simply hitting "u" 6 times.
Issue 1:
Version

2.6.10

Reproduction link

https://codesandbox.io/s/vue-template-ptrum?fontsize=14

Steps to reproduce

When the parent style is scoped the <slot> will lost the style of the first tag if other tags on component has a selector with v-if.

Example:

Main.vue:

<template>
<Test>
<div class="test">
<div class="test2">
</div>
<div class="test2">
</div>
</div>
</Test>
</template>
<script>
import Test from './Test.vue'
export default {
components: {
Test
}
}
</script>
<style scoped>
.test {
display: flex;
}

.test2 {
width: 200px;
height: 200px;
background: black;
}
</style>

Test.vue

<template>
<div>
<div v-if="f" class="_test_style_class_name">
</div>
<slot v-else>
</slot>
</div>
</template>
<script>
export default {
data () {
return {
f: true
}
},
mounted () { this.f = false }
}
</script>

Open it on Chrome, and no style set on class test but I have set it on Main.vue.

If I remove class="..." or remove v-if="f" on Test.vue then the class test will set..

Is it that I lost something to know in using <slot>?

Thanks.

What is expected?

No lost style.

What is actually happening?

No Style set on the first tag.

Issue 2:
Version

2.6.10

Reproduction link

https://jsfiddle.net/anrzf5uh/

Steps to reproduce

Enter 'obj' in the text input and nothing gets printed to console. Enter str in the text input and uncaught exception: message gets printed to console. But it's wrong in both cases.

If you remove async from the watch method and the call to the await method, then it works properly.

Enter 'obj' in the text input and Object { error: "message" } gets printed to console. Enter str in the text input and message gets printed to console. It's right in both cases.

What is expected?

Error handling should work the same in an async watcher as in a sync watcher.

What is actually happening?

Error handling works correctly in a sync watcher but not async watcher.
Issue 1:
I have some prolem when i render script tag.

Example when i click link on page A, i new render page B which i inluce demo.js file. In demo.js i console.log('Hello world'). But when i open google devtools i don't see that. What happen which that erros.

Issue 2:
&lt;script> is a bit hard to use right now.

If you have a {...} then it's going to start interpolating. And you are bound to have whenever you use if, function ... Workaround: you can wrap it inside of an interpolated string {'if (true) { ... }'}

If you have any ' or " it's going to output the html encoded version and Javascript is going to throw a parsing exception.

In order to workaround those two issues the best way I found is to use dangerouslySetInnerHTML and use ES6 backtick in order to have multi-line strings.

<script dangerouslySetInnerHTML={{__html: `
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('send', 'pageview');
`}} />

We should probably make it easier, it's quite a pain to use right now.
Issue 1:
After reading this blog post on New Experimental Console Features, I thought this was the right time to ask for a feature request, that could be added to the terminal options. (Or maybe even made as default behaviour?)

When cycling previously run commands with the up-arrow, it will take 8 key-presses to reach the ls command in the example below

(read from bottom to top)

$ ls
$ java main.
$ javac main.java
$ java main
$ javac main.java
$ java main
$ javac main.java
$ java main

But I want an option to remove duplicate commands, when cycling through them, so in the example, it would only take 3 key-presses

(read from bottom to top)

$ ls
$ javac main.java
$ java main

Issue 2:
Windows build number: [Version 10.0.16299.248]

If I use an ANSI sequence to set the background color attribute, then move to the bottom of the screen and output some newlines so the screen scrolls up, I'd expect the newly revealed lines to have the background color that I just set.

Similarly, if I move to the top of the screen, and output the reverse feed sequence (\033M) so the screen scrolls down, I'd again expect the new revealed lines to use the current background color.

The later case (scrolling down) works as expected, but scrolling up does not.

Test case (from a bash shell):

printf "\033[44m\033[200B\n\n\033[200A\033M\033[m"

I'd expect the above sequence to result in both the top and bottom lines of the screen having a blue background (which is what I see in a Linux console), but in the Windows 10 console, only the top line is blue.

Note that the scroll up sequence (\033[S) has similar problems, although it's a little more complicated. The first line that's revealed when scrolling up will have the wrong background color, but subsequent lines will be correct. Scrolling down (like reverse feed) always seems to work as expected.

I suspect this may be related to issue #70. I apologise if it's just a duplicate.
Issue 1:
Asked a bit in the IRC channel and it was suggested that this should be the case. Basically, if you imagine a real time linter (kind of like Babel's Try It) that just wants to show errors, or a syntax highlighter that also shows errors, it would be nice to show Duplicate Declaration Errors (let x = 10; let x = 10;).

As of right now it appears that the only way to get this is through going through a transform (as opposed to babylon.parse just throwing it). This is unfortunate since its a lot of extra work since I won't actually be using the transform, just wanting to get this one error. I might be wrong here and there is some in-between step you can do to get this but I don't know.

I am aware that this is kind of a strange error since it waits to happen until called, so its kind of in the middle, but again unfortunate to require the full sweep.

Issue 2:
The following ES6 code:

var x = {x: 1, x: 2};

generates the following code:

"use strict";

var x = { x: 1, x: 2 };

which will result in an error for ES5-compliant engines. I'm not sure what should be done here instead as duplicate keys are back to being valid in strict mode in ES6, but maybe something like this:

"use strict";

var x = { x: 1 };
x.x = 2;

This bug also occurs with JSX:

var x = <x x={1} x={2} />;

becomes

"use strict";

var x = React.createElement("x", { x: 1, x: 2 });
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18898.1000]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Open new tab in flyout menu

Try to select text in the newly created tab

Expected behavior

Text should be selected as normal

Actual behavior

Terminal doesn't response to mouse dragging occasionally

Issue 2:
Environment

Windows build number: Windows 10 18363
Windows Terminal version (if applicable): 0.6.2911.0

Steps to reproduce

Drag the terminal window to other display. Terminal will exit after a second or so of being unresponsive.
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.0

Operating System version: Linux

Java version: Java 11

Steps to reproduce this issue

Travis CI failed with the following log

https://api.travis-ci.org/v3/job/485054109/log.txt

Expected Result

CI pass.

Actual Result

CI Failure.

[�[1;34mINFO�[m] Running org.apache.dubbo.registry.redis.�[1mRedisRegistryTest�[m
log4j:WARN No appenders could be found for logger (org.apache.dubbo.common.logger.LoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[�[1;31mERROR�[m] �[1;31mTests �[0;1mrun: �[0;1m5�[m, Failures: 0, �[1;31mErrors: �[0;1;31m1�[m, Skipped: 0, Time elapsed: 1.202 s�[1;31m <<< FAILURE!�[m - in org.apache.dubbo.registry.redis.�[1mRedisRegistryTest�[m
[�[1;31mERROR�[m] testAnyHost Time elapsed: 0.201 s <<< ERROR!
redis.embedded.exceptions.EmbeddedRedisException: Failed to start Redis instance
at org.apache.dubbo.registry.redis.RedisRegistryTest.setUp(RedisRegistryTest.java:50)
Caused by: java.io.IOException: Cannot run program "/tmp/1548641223184-0/redis-server-2.8.19" (in directory "/tmp/1548641223184-0"): error=26, Text file busy
at org.apache.dubbo.registry.redis.RedisRegistryTest.setUp(RedisRegistryTest.java:50)
Caused by: java.io.IOException: error=26, Text file busy
at org.apache.dubbo.registry.redis.RedisRegistryTest.setUp(RedisRegistryTest.java:50)

[�[1;34mINFO�[m]
[�[1;34mINFO�[m] Results:
[�[1;34mINFO�[m]
[�[1;31mERROR�[m] �[1;31mErrors: �[m
[�[1;31mERROR�[m] �[1;31m RedisRegistryTest.setUp:50 Â» EmbeddedRedis Failed to start Redis instance�[m
[�[1;34mINFO�[m]
[�[1;31mERROR�[m] �[1;31mTests run: 5, Failures: 0, Errors: 1, Skipped: 0�[m

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: master branch

Operating System version: macOS 10.13.6

Java version: 1.8

Step to reproduce this issue

start the provider demo

Expected Result

Provider start success.

Actual Result

Provider start failed.

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

Caused by: java.net.SocketException: Can't assign requested address
at java.net.PlainDatagramSocketImpl.join(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.join(AbstractPlainDatagramSocketImpl.java:178)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:323)
at org.apache.dubbo.registry.multicast.MulticastRegistry.<init>(MulticastRegistry.java:91)
... 24 more

If I add vm args -Djava.net.preferIPv4Stack=true, everything works fine.
Issue 1:
Describe your issue.

Following up to #1616

When the input for distance_transform_edt has no background, the results are unexpected.

As in the previous issue, the expectation would be that the function would return an array of zeros.

However, the output distances are based on the distance from (-1, 0), which seems incorrect.

I'm currently having to check if the array has a background or not before using the function, but would like the function to have a more consistent output.

Reproducing Code Example

In [1]: import numpy as np
In [2]: from scipy.ndimage.morphology import distance_transform_edt
In [3]: distance_transform_edt(np.ones((3,3), dtype=int), return_indices=True)
Out[3]:
(array([[1. , 1.41421356, 2.23606798],
[2. , 2.23606798, 2.82842712],
[3. , 3.16227766, 3.60555128]]),
array([[[-1, -1, -1],
[-1, -1, -1],
[-1, -1, -1]],

[[ 0, 0, 0],
[ 0, 0, 0],
[ 0, 0, 0]]], dtype=int32))

Error message

No error

SciPy/NumPy/Python version information

1.7.3

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1647 on 2012-04-22 by @WarrenWeckesser, assigned to unknown.

The erlang distribution (in distributions.py) defines the method _arg_check instead of _argcheck, so it currently allows values for n that are not integers.
Issue 1:
Issue originally made by @spicyj

Bug information

Babel version: 6.11.6

Node version: 6

npm version: 3

Description

var traverse = require('babel-traverse').default, babylon = require('babylon');
traverse(babylon.parse('let x; let x;'))

should throw an error about duplicate bindings, but it throws

TypeError: Cannot read property file of undefined
at Scope.checkBlockScopedCollisions (node_modules/babel-traverse/lib/scope/index.js:492:21)
at Scope.registerBinding (node_modules/babel-traverse/lib/scope/index.js:681:16)
at Scope.registerDeclaration (node_modules/babel-traverse/lib/scope/index.js:580:14)
...
at TraversalContext.visit (node_modules/babel-traverse/lib/context.js:219:19)
at Function.traverse.node (node_modules/babel-traverse/lib/index.js:171:17)
at traverse (node_modules/babel-traverse/lib/index.js:90:12)
at repl:1:81

instead because this.hub is undefined on this line:

babel/packages/babel-traverse/src/scope/index.js

Line 350
in
dce9ee9

throw this.hub.file.buildCodeFrameError(id, messages.get("scopeDuplicateDeclaration", name), TypeError);

.

Can we fix this as-is? Do I need to pass in a File object of some sort (how would I construct one)?

(I'm actually passing sourceFilename and code to traverse already.)

Issue 2:
Since v1.11, 6to5 is modifying the source code in places where there are no es6 features.

var foo = function(bar) { this.foo = bar; };

var arr = [
'item1',
'item2',
...
];

var bar = 'bar',
baz = 'baz';

var foo = function (bar) {
this.foo = bar;
};

var arr = ["item1", "item2", ...];

var bar = "bar", baz = "baz";

Some es6 features are also getting more modifications than before.

toString() {
return `${this.name}: ${this.message}` + (
this.url ? ` See: ${this.url}` : ''
);
}
// used to (<1.11) become:
toString: function() {
return "" + this.name + ": " + this.message + (
this.url ? " See: " + this.url : ''
);
}
// and is now (1.11)
toString: function() {
return "" + this.name + ": " + this.message + (this.url ? " See: " + this.url : "");
}
Issue 1:
Apologies if this is a dupe.

This doesn't compile:

fn main() {
match 25u8 {
0 ... 24 => println!("less than 25"),
25 => println!("exactly 25"),
26 ... 255 => println!("above 25")
}
}

Error message:

<anon>:2:5: 6:6 error: non-exhaustive patterns: `_` not covered [E0004]
<anon>:2 match 25u8 {
<anon>:3 0 ... 24 => println!("less than 25"),
<anon>:4 25 => println!("exactly 25"),
<anon>:5 26 ... 255 => println!("above 25")
<anon>:6 }
<anon>:2:5: 6:6 help: see the detailed explanation for E0004
error: aborting due to previous error

The compiler isn't actually checking whether all the values for u8 are covered, it's just checking whether or not there's a case for _.

I've created some code that takes a Range<T> (the 'all-encompassing' range, i.e. 0...255 for u8) and Vec<Range<T>> where T: Ord + Copy and determines which ranges (if any) are not covered by the ranges provided by the vector. However, this code needs proper inclusive range support in order to work; I can't add 1 to the maximum value of a type in order to make it include every possible value for that type. That is available here.

I'm interested in implementing this logic in the compiler but I've no idea where to start, plus the code has the aforementioned inclusive range requirement.

Issue 2:
The following function does not compile because rustc determines that the patterns in the match statement are non-exhaustive. However, the pattern matches every possible value of the integer type, and the compiler should be able to detect this.

fn wont_compile(x : u8) {
match (x) {
0x00 .. 0xff => { }
}
}