WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.6.2951.0

Any other software?
Not important

# Steps to reproduce

Laptop DELL XPS 9560 (screen resolution 1920x1080) is connected to an external USB-C LG 4k 27" monitor (LG 27UK650).
Open terminal and move it from the second screen to the laptop's screen and the terminal will close without any error message after 2 seconds.

# Expected behavior

Terminal not to crash when moved to a second display.

# Actual behavior

Terminal closes when moved to a separate display

Issue 2:
Environment

Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version (if applicable): 2019.1022.2157.0

Any other software?
(WSL)

I originaly asked this as a question on the unix stackexchange, because I thought this to be an issue with the WSL and not windows terminal. (Original Question)

Steps to reproduce

Add the following Color scheme (or any other, I tried It didn't matter) to the profiles.json

{
"background": "#ECF0F1",
"black": "#2C3E50",
"blue": "#3498DB",
"brightBlack": "#95A5A6",
"brightBlue": "#3498DB",
"brightCyan": "#1ABC9C",
"brightGreen": "#2ECC71",
"brightPurple": "#9B59B6",
"brightRed": "#E74C3C",
"brightWhite": "#ECF0F1",
"brightYellow": "#F1C40F",
"cyan": "#1ABC9C",
"foreground": "#7F8C8D",
"green": "#2ECC71",
"name": "Flat Light",
"purple": "#9B59B6",
"red": "#E74C3C",
"white": "#e0e0e0",
"yellow": "#F1C40F"
}

And enable it for any profile. (I tried WSL (Arch & Ubuntu) aswell as cmd)

Now if you try to get an black background of some sort. You'll get the background color.

I tried printf "\033[40;30mNot a black background" on WSL aswell as color 0f on cmd.

Expected behavior

The blackground is suposed to be black (grayish blue) on ASNI 40.

I assume that this is the result of my incompetence rather that an actual bug, but in this case the documentation should be updated.
Issue 1:
I have a dialog with a table in it that requires scrolling. The table contains a column that contains icons with tooltips. Everything is okay when tooltip placement='bottom'. When I change placement to 'right' an additional scrolling bar appears inside the dialog.

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

Expected Behavior

Same as with Tooltip placement='bottom'

Steps to Reproduce (for bugs)

https://codesandbox.io/s/3v4wrk3jn1

Your Environment

Tech
Version

Material-UI
1.0.0-beta.21

React
16.0.0

browser
Chrome

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

Expected Behavior

<Switch checked={this.props.isChecked} />

When this.props.isChecked is undefined( on initial render), the switch is off. When this.props.isChecked later updates to true, the switch should be on.

Current Behavior

When initial value is true or false, everything works as expected. When initial value = undefined, later updates do not show

Steps to Reproduce (for bugs)

https://codesandbox.io/s/04w6919x4v

In the sample, both switches should become true after timeout of 2000. checkedA with initial value of false works, checkedB remains unchecked.

Context

Checked prop should be Boolean or String, but sometimes initial values are undefined until server data arrives. a !!checkedB resolves the issue, but it can be very confusing.

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.25

React
16.2.0

browser
Firefox, Chrome

etc
Issue 1:
wolverine:kubernetes-0.7.1 pires$ ./build/make-run-images.sh
+++ Verifying Prerequisites....
+++ Setting boot2docker clock
You don't have a local copy of the golang docker image. This image is 450MB.
Download it now? [y/n] y

+++ Pulling docker image: golang:1.3
golang:1.3: The image you are pulling has been verified
cd9d7733886c: Pull complete
bc3ee983ce77: Pull complete
0ea4f77cbe62: Pull complete
59a867a98a17: Pull complete
218f135dec09: Pull complete
d8a647f6492b: Pull complete
060f214cb89b: Pull complete
3c09e87b5ef2: Pull complete
efebd35e7458: Pull complete
ebd3fd90ae2e: Pull complete
511136ea3c5a: Already exists
36fd425d7d8a: Already exists
aaabd2b41e22: Already exists
Status: Downloaded newer image for golang:1.3
+++ Building Docker image kube-build:cross.
+++ Building Docker image kube-build:build-9759e.
+++ Running build command....
+++ Creating data container
exec: "build/build-image/make-binaries.sh": stat build/build-image/make-binaries.sh: no such file or directoryFATA[0000] Error response from daemon: Cannot start container a94744ddf85b5ef5043b9e60cc6ce972269129199e5de6af11cb2ce6d95b7695: exec: "build/build-image/make-binaries.sh": stat build/build-image/make-binaries.sh: no such file or directory
!!! Error in ./build/../build/common.sh:406
'"${docker_cmd[@]}" "$@"' exited with status 1
Call stack:
1: ./build/../build/common.sh:406 kube::build::run_build_command(...)
2: ./build/make-run-images.sh:32 main(...)
Exiting with status 1
wolverine:kubernetes-0.7.1 pires$

Issue 2:
kubernetes/test-infra#470 filed against test-infra repo, but that is a somewhat forgotten repo, and we need to make sure that this does not get overlooked so duplicating here.

Without fixing this, it's difficult to run full e2e tests against submitted PR's before merging them, which makes it very easy to introduce regressions.
Issue 1:
Prompted by this deprecation warning:

Warning: In the future `findall(A)` will only work on boolean collections. Use `findall(x->x!=0, A)` instead.

I decided to do a (n admittedly worst-case) test: A = rand(10_000, 10_000);

julia> @time u = findall(x->x != 0, A); # this assumes 0 = zero(eltype(A))
8.606016 seconds (65.73 k allocations: 260.716 MiB, 2.96% gc time)

julia> @time v = findall(!iszero, A);
12.464981 seconds (40 allocations: 1.531 GiB, 4.27% gc time)

julia> @time w = findall((!iszero).(A));
1.531174 seconds (23 allocations: 1.502 GiB, 12.50% gc time)

julia> u == v == w
true

Had I taken the recommended approach, I would've run into a pretty bad performance regression. As it stands, the best (time) performing approach is among the worst in memory usage; the recommended approach with the anonymous function is bad in time but best in memory, and the negative function is worst in both.

Issue 2:
Example:

This is printing ARGS / args at the start of process_options in client.jl.

julia> test = "$JULIA_HOME/julia"
"/Users/jacobbolewski/Julia/julia/usr/bin/julia"

julia> run(`$test --code-coverage=none -e "exit(0)"`)
args = UTF8String["-e","exit(0)"]
ARGS = UTF8String["-e","exit(0)"]

julia> run(`$test --code_coverage=none -e "exit(0)"`)
args = UTF8String["--code_coverage=none","-e","exit(0)"]
ARGS = UTF8String["--code_coverage=none","-e","exit(0)"]
ERROR: unknown option: --code_coverage=none
in process_options at ./client.jl:321
in _start at ./client.jl:401

ERROR: failed process: Process(`/Users/jacobbolewski/Julia/julia/usr/bin/julia --code_coverage=none -e exit(0)`, ProcessExited(1)) [1]
in run at /Users/jacobbolewski/Julia/julia/usr/lib/julia/sys.dylib

julia> run(`$test --color=no --code-coverage=none -e "exit(0)"`)
args = UTF8String["--code-coverage=none","-e","exit(0)"]
ARGS = UTF8String["--code-coverage=none","-e","exit(0)"]

julia> run(`$test --color=yes -e "exit(0)"`)
args = UTF8String["--color=yes","-e","exit(0)"]
ARGS = UTF8String["--color=yes","-e","exit(0)"]

I can start digging around, but does anyone have ideas?
Issue 1:
Implement a feature that split one window into multiple windows

Usually , when we start a terminal , and make a connection ,then the whole connection will occupy the whole window, I hope we can split one window into multiple ,then we can start connection in each sub window , then we can watch multiple connection at the same time. cool.

Maybe a picture is much more clear to express what I want ,

See bellow:

Issue 2:
Description of the new feature/enhancement

When opening a new CMD tab, the width of the tab is small due to the name of the prompt being small "cmd." This makes it a little uncomfortable, and if the tabs were to have a minimum width it would give it more space, specially when you're blazing through tabs and don't want to accidentally close the tab.

I think that the minimum width I highlited below would be way better than the smaller CMD tab.
Issue 1:
VSCode Version: 1.2.0 stable

OS Version: Tried it on OS X 10.10.5 and Ubuntu 16.04

Steps to Reproduce:

Open a file where breakpoints are supported

Set a breakpoint at any line

Right click the breakpoint and select "Edit Breakpoint"

While the "Edit Breakpoint" dialog is open, move the line where the breakpoint is set

Hit Enter to confirm the "Edit Breakpoint" dialog

The breakpoint gets duplicated, but it should just move like it does if escape is pressed instead of Enter.

Note that this reproes without actually starting debugging.

Here's a recording of the repro:

@isidorn @weinand

Issue 2:
VSCode Version: 1.1.1

OS Version: Windows 7 SP1

Steps to Reproduce:

Open folder in the VSCode with many subdirectories

Navigate to some file in sub-sub directory and start to edit it

Press Ctrl+O to open other file from the same directory of currently edited file

But open file dialog starts with something really different directory, probably with directory I last used Ctrl+O with.

That's counter-intuitive and in usual Visual Studio it works the way I expect it to behave.

Should I enable some hidden config rule to get desired behaviour?
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-give-your-javascript-slot-machine-some-stylish-images has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The first test case (Use the provided code three times. One for each slot) cannot be completed. Tried several different ways, non of them worked.

Possible duplicate of #1862

Issue 2:
I lost most of my work last night when there were problems on the server. I think this is the 4th time this has happened with my account. My points number reflects over 300 while my map does not.

I have been working at this for close to a year, if not over a year.

And the issue was closed even though my map is not restored to where it should be.

Lost most of my work last night #3629

Help please
Issue 1:
Similarly to puppeteer/puppeteer#540

Currently when navigating to a page that requires client certificates and client certificates are available a popup is shown in Firefox and Chrome which asks to select which certificate to use. It would be beneficial to provide an API to select the correct certificate to use (or use none). Digital marketing in Lahore

Issue 2:
Similarly to puppeteer/puppeteer#540

Currently when navigating to a page that requires client certificates and client certificates are available a popup is shown in Firefox and Chrome which asks to select which certificate to use. It would be beneficial to provide an API to select the correct certificate to use (or use none).
Issue 1:
I would think that the right thing to do here is to silently carry on, if there is no upstream tracking branch than there is nothing to update.

ERROR: Update finished with errors.
=> Package MXNet cannot be updated.
GitError(Code:ERROR, Class:Merge, There is no tracking information for the current branch.)
in #123 at ./libgit2/libgit2.jl:414 [inlined]
in with(::Base.LibGit2.##123#128{Base.LibGit2.GitRepo}, ::Void) at ./libgit2/types.jl:638
in (::Base.LibGit2.##119#124{String,String,Bool,Base.LibGit2.MergeOptions,Base.LibGit2.CheckoutOptions,Base.LibGit2.GitRepo})(::Base.LibGit2.GitReference) at ./libgit2/libgit2.jl:412
in with(::Base.LibGit2.##119#124{String,String,Bool,Base.LibGit2.MergeOptions,Base.LibGit2.CheckoutOptions,Base.LibGit2.GitRepo}, ::Base.LibGit2.GitReference) at ./libgit2/types.jl:638
in (::Base.#kw##merge!)(::Array{Any,1}, ::Base.#merge!, ::Base.LibGit2.GitRepo) at ./<missing>:0
in (::Base.Pkg.Entry.##39#45{CompositeException})(::Base.LibGit2.GitRepo) at ./pkg/entry.jl:428
in with(::Base.Pkg.Entry.##39#45{CompositeException}, ::Base.LibGit2.GitRepo) at ./libgit2/types.jl:638
in update(::String, ::Set{String}) at ./pkg/entry.jl:416
in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}})() at ./pkg/dir.jl:31
in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}}, ::String) at ./file.jl:59
in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at ./pkg/dir.jl:31
in update() at ./pkg/pkg.jl:210
in eval(::Module, ::Any) at ./boot.jl:234
in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:66
in macro expansion at ./REPL.jl:97 [inlined]
in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68
in update(::String, ::Set{String}) at ./pkg/entry.jl:463
in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}})() at ./pkg/dir.jl:31
in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{String}}}, ::String) at ./file.jl:59
in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at ./pkg/dir.jl:31
in update() at ./pkg/pkg.jl:210

Issue 2:
Starting from a tagged version:

julia> Pkg.checkout("TaylorSeries", "warningsv05")
INFO: Checking out TaylorSeries warningsv05...
ERROR: GitError(Code:ERROR, Class:Merge, There is no tracking information for the current branch.)

but this works if master is checkouted first.
Issue 1:
I ues python 2.7.9 and requests 2.5.1

when I do like this:

files = {'file1':('中文','hello')}
r = requests.post('http://test',files=files)

the request is like this(copy from fiddler):

Content-Disposition: form-data; name="file1"; filename*=utf-8''%E4%B8%AD%E6%96%87

I think the format of filename is wrong.

the right format should be:

Content-Disposition: form-data; name="file1"; filename="中文"

Issue 2:
This code:

requests.post(url, files={"file": open(u"漢字.o8d", "r")})

will return a 200, but the file is never uploaded.

I can upload that file by posting in the browser so this doesn't seem to be a server-side issue. Also, if I change the name of the file to "bob" or something ASCII it works perfectly.
Issue 1:
Migrated issue, originally created by tosh

Hi there,

I use SQLAlchemy 0.8.3 (so maybe it's fixed in newer releases) with MySQL 5.1.73.

When I do the query

Session.query(distinct(Model))

it generates something like

SELECT DISTINCT :param_1 AS anon_1;

Where :param_1 is replaced with Model.__repr__() which is a simple string.

Maybe it would be more obvious if such SQLAlchemy-queries generated the following code?

SELECT DISTINCT id AS anon_1 FROM model_table;

Optionally, SQLAlchemy could raise an exception if a model was passed as an argument.

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1931 on 2011-08-10 by trac user tlatorre, assigned to unknown.

>>> np.uint64(5) << 1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: ufunc 'left_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'
>>> np.uint64(5) >> 3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: ufunc 'right_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule 'safe'

Issue 2:
This is to gather and close some other issues. The NEP 50 proposal would close it. In many cases using int64 as the default Python integer for scalar operations (where we disable value-based logic) can be surprising

gh-2955 (bitwise_and)

gh-5746 (comparison) although uint64 and int64 comparisons of course have still more issues (covered by gh-12525)

gh-2524 (bit shift operators)

gh-8809 power is surprising for promotion (which is just the normal madness of scalar+value-based logic), again together with gh-12525

gh-13057 (division of uint by Python int)

This issue is just to gather and close the other ones as duplicates.
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.

Operating System version: mac

Java version: 1.8

Step to reproduce this issue

表现：

consumer 在某些情况下会抛出Dubbo client can not supported string message异常，并且 message 显示为乱码信息，经查找资料是说消息体 >8M 导致；

实际测试结果：

我本地测试的时候，均无法复现对应的异常信息，>8M 的表现为 consumer 等待超时，且 provider 抛出Data length too large:异常。

求大神们帮忙分析一下，在什么情况下会出现标题中的那种异常？

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

Java version: 1.8

Actual Result

dubbo/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyClient.java

Line 80
in
00febe9

// the handler will be warped: MultiMessageHandler->HeartbeatHandler->handler

dubbo/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyServer.java

Line 79
in
00febe9

// the handler will be warped: MultiMessageHandler->HeartbeatHandler->handler

Expected Result

wrapped
Issue 1:
CartesianIndices seems to enforce Int even if the arguments are of a different type; e.g.,

x = Int32(3)
@show typeof(-x:x)
# => UnitRange{Int32}
c = CartesianIndices((-x:x, -x:x))
@show typeof(c.indices[1])
# => UnitRange{Int64}

This is very bad for writing type-stable code that uses an integer type other than Int.

versioninfo() ->

Julia Version 1.1.0
Commit 80516ca202* (2019-01-21 21:24 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.2.0)
CPU: Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 1

Issue 2:
Due to LinearIndices only supporting Ints, keys and LinearIndices do not work when the indices are not representable as Ints:

julia> keys(1:typemax(Int128))
ERROR: InexactError: trunc(Int64, 170141183460469231731687303715884105727)
[...]

julia> LinearIndices(1:typemax(Int128))
ERROR: InexactError: trunc(Int64, 170141183460469231731687303715884105727)
[...]

Related: #27090
Issue 1:
Electron version: 0.37.2

Operating system: Windows 10

Trying to access the id property of a window from the renderer side, I am getting this error:

TypeError: Cannot read property 'object' of undefined
at ObjectsRegistry.get (c:\GitDevelopment\monaco\.build\electron\resources\atom.asar\browser\objects-registry.js:44:28)
at EventEmitter.<anonymous> (c:\GitDevelopment\monaco\.build\electron\resources\atom.asar\browser\rpc-server.js:337:31)
at emitThree (events.js:97:13)
at EventEmitter.emit (events.js:175:7)
at EventEmitter.<anonymous> (c:\GitDevelopment\monaco\.build\electron\resources\atom.asar\browser\api\web-contents.js:144:25)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
at metaToValue (c:\GitDevelopment\monaco\.build\electron\resources\atom.asar\renderer\api\remote.js:170:13)
at descriptor.get [as id] (c:\GitDevelopment\monaco\.build\electron\resources\atom.asar\renderer\api\remote.js:118:16)
at new ElectronWindow (file:///C:/GitDevelopment/monaco/out/vs/workbench/electron-browser/window.js:25:32)

Issue 2:
Electron version: 0.36.9

Operating system: Mac

We're still trying to nail down repro steps in Slack, but it seems to happen on 0.36.9 when calling remote methods. Specifically, we build context menus using remote (very similar to the Menu sample) and occasionally they stop working with this exception:

Uncaught Error: Cannot read property 'object' of undefined
TypeError: Cannot read property 'object' of undefined
at ObjectsRegistry.get (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\objects-registry.js:44:28)
at metaToValue (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:155:32)
at Array.map (native)
at unwrapArgs (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:214:15)
at EventEmitter.<anonymous> (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\lib\rpc-server.js:317:12)
at emitMany (events.js:108:13)
at EventEmitter.emit (events.js:182:7)
at EventEmitter.<anonymous> (C:\Users\paulb\AppData\Local\slack\app-2.0.2\resources\atom.asar\browser\api\lib\web-contents.js:133:25)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
Issue 1:
Currently if a historical tier has a replication factor of 1 (meaning only 1 copy of the data across the tier) then any particular node cannot be shut down for planned maintenance without temporarily loosing the ability to query data which was hosted there.

As a user of Druid, I would like my queries to always return all the data even during planned maintenance or planned node shutdowns provided there is enough overall tier capacity to hold the data.

Issue 2:
This ask is that historical nodes are able to be put into a maintenance mode such that their nodes do not count towards the replication threshold. This allows for scaling tiers down in a more controlled manner.

We occasionally have capacity issues as we scale our cluster such that a lower tier fills up, and upper tiers need to be expanded to accommodate the handoff of realtime indexing tasks while the lower tiers expand. Once this is completed and segments are flowing as expected through the tiers, the "more recent data" tiers need to be shrunk back to normal operating size.

Being able to put a historical node into a state where it doesn't count towards replication would help in this.
Issue 1:
I saw two common usage patterns of Timer.Reset:

First is ensuring that a sequence of events happens in a timely fashion:

timeout := time.NewTimer(T)
for {
if !timeout.Reset(T) {
<-timeout.C
}
select {
case <- ...: ...
case <-timeout.C: ...
}
}

Second is connection timeout with an ability to change the timeout:

timeout := time.NewTimer(T)

// goroutine 1
for {
select {
case <- ...: ...
case <-timeout.C: ...
}
}

// goroutine 2
if !timeout.Reset(T2) {
<-timeout.C
}

There are several things that can go wrong here depending on timings:

Reset returns false; one element is already in the channel (the old one); timer goroutine sends another (corresponding to the new timeout), it is discarded since the channel is full; now we drain the channel to read out the old value; as the result timeout will never happen as the new value was discarded.

Reset returns false; one element is already in the channel (the old one); timer goroutine sends another (corresponding to the new timeout), it is discarded since the channel is full; goroutine 1 reads out from the channel; goroutine 2 hangs forever trying to drain the channel.

I've found several cases of this bug in our internal codebase, one even with a TODO by @bradfitz describing this race.

Timer.Reset does the following:

func (t *Timer) Reset(d Duration) bool {
if t.r.f == nil {
panic("time: Reset called on uninitialized Timer")
}
w := when(d)
active := stopTimer(&t.r)
t.r.when = w
startTimer(&t.r)
return active
}

What would be possible to use correctly is:

func (t *Timer) Reset2(d Duration) bool {
if t.r.f == nil {
panic("time: Reset called on uninitialized Timer")
}
w := when(d)
active := stopTimer(&t.r)
if !active {
<-t.C
}
t.r.when = w
startTimer(&t.r)
return active
}

@rsc @Sajmani @aclements

Issue 2:
A common idiom is to keep a single timer and extend its

use by calling Timer.Reset.

From a naive reading of the documentation, these two

lines are equivalent except for saving some garbage:

t.Reset(x)

t := time.NewTimer(x)

Unfortunately t.C is buffered, so if the timer has just expired,

the newly reset timer can actually trigger immediately.

The safe way to do it might be someting like:

t.Stop()
select {
case <-t.C:
default:
}
t.Reset(x)

but this is cumbersome. Perhaps we could change Reset to do this

as a matter of course.