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

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

Steps to reproduce

Copy text with \ line break. Example:

libreadline-gplv2-dev libncursesw5-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libffi-dev \
wget curl libldap2-dev zlib1g-dev lib32z1-dev uuid-dev

Paste it on powershell or wsl console.

Expected behavior

Terminal should recognize \ as a line break and should execute the whole code as it does on powershell or wsl console directly.

Actual behavior

Terminal will not recognize \ as a line break and will execute each line individually immediately causing a unexpected results.

Issue 2:
Description of the new feature/enhancement

We need a way to detect within a running terminal what profile instantiated it, so that we can make on-the-fly changes to the config (like change the background or font). The MSTerminalSetting is an example of that method.

Proposed technical implementation details (optional)

Provide the steps/api to PInvoke to get the profile guid based on the session guid. OR expose the session's profile guid to an environment variable like WT_PROFILE
Issue 1:
I have discovered an ErrorException which arises when calling sin() cos() tan() or similar mathematical functions from C via jl_eval_string()

Strangely the degree variants work fine for those instances i.e sind() cosd() tand() however this isn't always the case. atand() for example also results in an error exception. Operators seem to work fine (1*1) for example.

Simple repro case:

jl_eval_string("sin(1.0)"); == ErrorException

jl_eval_string("sind(1.0)"); == Works

Issue 2:
julia> const x = 2, y = 3, z = 4
ERROR: syntax: invalid assignment location "3"

julia> global x = 2, y = 3, z = 4
4

julia> global const x = 2, y = 3, z = 4
4

Reported at https://groups.google.com/forum/#!topic/julia-users/YSbN6EPOzKk.
Issue 1:
As per HTML5, controls inside the legend first child of a disabled fieldset are not disabled. This is not a random decision and addresses notably the use case of having a radio or checkbox control in the fieldset, as part of the legend, deciding whether that fieldset is enabled or not. Fiddle: http://jsfiddle.net/tyVF4/2/.

I headed for the source to fix that, but then I saw this comment:

// Note: HTML5 says that controls under a fieldset > legend:first-child won't
// be disabled if the fieldset is disabled. Due to implementation difficulty,
// we don't honor that edge case; we style them as disabled anyway.

Is fixing this issue completely out of the question? If not, could you be more specific about "implementation difficulty" before I foolishly jump into it? Right now I'm overriding this with cursor: auto.

Issue 2:
getbootstrap.com

alistapart.com

using the (recommended) breakpoints from http://getbootstrap.com/css/#grid-media-queries

also why is there ,max.width:767px and max-width:768px in bootstrap.css? This makes little sense?

Or min-width:480 and min-width:481px

I am using the following extension in Google Chrome: https://chrome.google.com/webstore/detail/responsive-inspector/memcdolmmnmnleeiodllgpibdjlkbpim
Issue 1:
Benchmarks on the internet seem to suggest that ujson is the fastest json parser (e.g., http://www.justinfx.com/2012/07/25/python-2-7-3-serializer-speed-comparisons/).

Maybe try importing ujson first, then simplejson, then json?

Issue 2:
Hi,

Is it possible to use ujson as an optional JSON encoder/decoder for requests? Or, if ujson satisfies all the use cases of requests, replace simplejson with ujson?
Issue 1:
Tensorboard does not list any event stored in disk.

Environment info

Operating System: Docker on Windows 10

Tensorflow version 0.7.1

Steps to reproduce

graph = tf.Graph()
with graph.as_default(), tf.device('/cpu:0'):
a = tf.constant(5.0)
b = tf.constant(6.0)
c = a * b

# Enter data into summary.
c_summary = tf.scalar_summary("c", c)
merged = tf.merge_all_summaries()

with tf.Session(graph=graph) as session:
writer = tf.train.SummaryWriter("log/test_logs", session.graph_def)

result = session.run([merged])
tf.initialize_all_variables().run()
writer.add_summary(result[0], 0)

I then ran tensorboard --logdir={absolute path to log/test_logs} but no event was listed there. Is there anything I should have written differently in the code maybe?

Note that log/test_logs does contain files like events.out.tfevents.1459102927.0a8840dee548.

What have you tried?

Running https://github.com/tensorflow/tensorflow/blob/r0.7/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py did not correct this (despite the events correctly outputted to disk).

Issue 2:
I am trying to run the example in my Linux machine (Ubuntu 14.04):

tensorflow/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py

First, I type "python mnist_with_summaries.py" in command line. Everything looks good.

Then following the tutorial, I type "tensorboard --logdir =/tmp/mnist_logs". Following message appeared.

WARNING:tensorflow:Unable to read TensorBoard tag

Starting TensorBoard on port 6006

(You can navigate to http://0.0.0.0:6006)

Then I visit "http://0.0.0.0:6006" on Chrome, nothing appears except:

" No scalar summary tags were found.

Maybe data hasn't loaded yet, or maybe you need to add some tf.scalar_summary ops to your graph, and serialize them using the tf.training.summary_io.SummaryWriter. "

In the terminal, following messages showed up:

"127.0.0.1 - - [07/Mar/2016 11:45:06] "GET / HTTP/1.1" 200 -

127.0.0.1 - - [07/Mar/2016 11:45:07] "GET /lib/css/global.css HTTP/1.1" 200 -

127.0.0.1 - - [07/Mar/2016 11:45:07] "GET /external/lodash/lodash.min.js HTTP/1.1" 200 -

127.0.0.1 - - [07/Mar/2016 11:45:07] "GET /external/plottable/plottable.min.js HTTP/1.1" 200 -

127.0.0.1 - - [07/Mar/2016 11:45:07] "GET /external/d3/d3.min.js HTTP/1.1" 200 -

127.0.0.1 - - [07/Mar/2016 11:45:07] "GET /external/plottable/plottable.css HTTP/1.1" 200 -

127.0.0.1 - - [07/Mar/2016 11:45:07] "GET /external/graphlib/dist/graphlib.core.min.js HTTP/1.1" 200 -

127.0.0.1 - - [07/Mar/2016 11:45:07] "GET /external/polymer/polymer.html HTTP/1.1" 200 -

127.0.0.1 - - [07/Mar/2016 11:45:07] "GET /external/webcomponentsjs/webcomponents-lite.min.js HTTP/1.1" 200 -

127.0.0.1 - - [07/Mar/2016 11:45:07] "GET /external/iron-ajax/iron-ajax.html HTTP/1.1" 200 -

127.0.0.1 - - [07/Mar/2016 11:45:07] "GET /external/dagre/dist/dagre.core.min.js HTTP/1.1

... ... "

I checked /tmp/mnist_log/, there is an event file named "events.out.tfevents.1457371474.rdii-Alienware-X51". Why nothing shows up on my TensorBoard ? Please help me!
Issue 1:
It seems that the onLoad attribute doesn't work on <svg> tags as it does on <img /> tags...

Could you add support for onLoad on <svg /> ?

Issue 2:
SVG <image> is supposed as far as I know to support at least the same onload and onerror events <img> supports.

From looking at React code the events are handled on specific elements in ReactDOMComponents.js in trapBubbledEventsLocal, mountComponent, unmountComponent.

It would be easy to create a pull request to add 'image' to these cases, but it seems that there is a separation between js files that handle DOM and SVG in the codebase that this might collide with.

Am I correct and there is more to it than just adding more cases? Or these functions are the right place to also handle SVG image?
Issue 1:
I think we need to listen the event of DatePicker's cancel and ok button.

Just run handler props in _handleCancelTouchTap and _handleOKTouchTap, that is it!

Isn't it simple and distinct? Why we didn't do it.

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

Expected Behavior

When picking an option from Select and then clicking outside the select container, Select looses focus.

Current Behavior

When picking an option from Select and then clicking outside the select container, Select stays focused.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/m3xknnr4m8

Pick an option from Select

Click outside the select container.

Notice, that Select stays in focused state

Context

Problem appears, when Select without native option is inside of a Popover or other component, which uses Popover under the hood (e.g. Dialog).

I'm pretty sure, that's because Select renders its own Popover for options list (it uses Menu, which uses Popover under the hood) and Dialog also has its own Popover.

This explains, why Select works fine outside a Popover, and why Select with native option also works fine (in both cases there's only on Popover visible at the same time).

Any thoughts on that? I tried to debug that, but at some point I stuck. I would appreciate any help or a feedback.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.9

React
15.5.3

browser
Chrome

etc
Issue 1:
by dimitrij.denissenko@blacksquaremedia.com:

What does 'go version' print?

go version go1.2 linux/amd64

What happened?

In my http server, I am trying to read the http.Request.Body via
ioutil.ReadAll(req.Body). Rarely, it causes an unexpected panic:

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x5e65ca]
goroutine 1918503 [running]:
runtime.panic(0x7c3560, 0xd59d88)
/home/user/.gvm/gos/go1.2/src/pkg/runtime/panic.c:266 +0xb6
io/ioutil.func·001()
/home/user/.gvm/gos/go1.2/src/pkg/io/ioutil/ioutil.go:29 +0xf0
runtime.panic(0x7c3560, 0xd59d88)
/home/user/.gvm/gos/go1.2/src/pkg/runtime/panic.c:248 +0x106
bufio.(*Reader).fill(0xc2101b1c00)
/home/user/.gvm/gos/go1.2/src/pkg/bufio/bufio.go:91 +0x10a
bufio.(*Reader).Read(0xc2101b1c00, 0xc2119bde00, 0x1e5, 0x200, 0x1e5, ...)
/home/user/.gvm/gos/go1.2/src/pkg/bufio/bufio.go:159 +0x1a4
io.(*LimitedReader).Read(0xc2107532e0, 0xc2119bde00, 0x200, 0x200, 0xc2119bde00, ...)
/home/user/.gvm/gos/go1.2/src/pkg/io/io.go:398 +0xbb
net/http.(*body).Read(0xc2109ee4e0, 0xc2119bde00, 0x200, 0x200, 0x1, ...)
/home/user/.gvm/gos/go1.2/src/pkg/net/http/transfer.go:534 +0x96
bytes.(*Buffer).ReadFrom(0xc21344b1c0, 0x7fe124670ee0, 0xc2109ee4e0, 0x0, 0x0, ...)
/home/user/.gvm/gos/go1.2/src/pkg/bytes/buffer.go:169 +0x1f7
io/ioutil.readAll(0x7fe124670ee0, 0xc2109ee4e0, 0x200, 0x0, 0x0, ...)
/home/user/.gvm/gos/go1.2/src/pkg/io/ioutil/ioutil.go:32 +0x156
io/ioutil.ReadAll(0x7fe124670ee0, 0xc2109ee4e0, 0x5320e1b2, 0x2a5129fd, 0x48349e, ...)
/home/user/.gvm/gos/go1.2/src/pkg/io/ioutil/ioutil.go:41 +0x3f

What should have happened instead?

The documentation http://golang.org/src/pkg/net/http/request.go?#L114 suggests that a
server body must never be nil.

Issue 2:
by laf163:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1.
func loginHandler(w http.ResponseWriter, r *http.Request) {
...
cookie := http.Cookie{Name: "username", Value: "测试", Path: "/"}
http.SetCookie(w, &cookie)
http.Redirect(w, r, path, http.StatusFound)
}
2.
func getScoreHandler(w http.ResponseWriter, r *http.Request) {
username, err := r.Cookie("username")
if err != nil {
log.Printf("getScoreHandler: username=%s, err=%s", username, err)
fmt.Fprintf(w, "%s", err)
return
}
fmt.Fprint(w, "ok")
...
}

What is the expected output?
ok

What do you see instead?
http: named cookie not present

Which compiler are you using (5g, 6g, 8g, gccgo)?
go1.0.3.windows-386.msi

Which operating system are you using?
win7 x64 home sp1

Which version are you using? (run 'go version')
1.0.3

Please provide any additional information below.
if the value of username is english, there is no problem, if the value is chinese
string, read cookie will fail.
Issue 1:
I believe this is a typical use case, we allow a user to type a search string and then use it to search against a set of fields. Unfortunately, currently that doesn't allow to include integer fields (say, document ID) in this set. Following a simple example:

$ curl -XGET http://localhost:9200/gallery/item/_search -d '{query:
{multi_match: {fields: ["id", "name"], query: "test"}}
}'

which gives:

{"error":"SearchPhaseExecutionException[Failed to execute phase [query], total failure; shardFailures {[LJs6UPnTQ_u-Ws0SAna0zA][gallery][0]: SearchParseException[[gallery][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query": {"multi_match": {"fields": ["id", "name"], query: "test"}}}]]]; nested: NumberFormatException[For input string: "test"]; }{[LJs6UPnTQ_u-Ws0SAna0zA][gallery][1]: SearchParseException[[gallery][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query": {"multi_match": {"fields": ["id", "name"], query: "test"}}}]]]; nested: NumberFormatException[For input string: "test"]; }]","status":500}

I did read the discussions in Google Groups on that matter and I agree that it's not really correct to simply ignore those errors. However, since it is a typical use case which is very commonly used indeed (for instance, that's how Django Admin search_fields works), I believe we need to have a multi_match query option (off by default) which will allow such queries to complete.

Supposedly, that will be something like:

$ curl -XGET http://localhost:9200/gallery/item/_search -d '{query:
{multi_match: {fields: ["id", "name"], query: "test", "match_field_types": true}}
}' # automatically remove 'id' from fields because of the incompatible type

Issue 2:
The lenient option will control format based failure to be ignored (just as in query_string query).
Issue 1:
I pass a global variable "foo" to Twig. Here's the config.yaml

twig:
globals:
foo: "@acme.foo.foolistener"

This works fine. But when I add a self themed form block (see below) to the template, the foo variable is destroyed.

{% form_theme form _self %}

{% block integer_widget %}
<div class="integer_widget">
{% set type = type|default('number') %}
{{ block('field_widget') }}
</div>
{% endblock %}

Issue 2:
With symfony 2.0.9 this code :

{% form_theme form _self %}

{% block field_label %}
{{ app.session.locale }}
{% endblock %}

{% block container %}
{{ form_widget(form) }}
{% endblock %}

generate an error :

Variable "app" does not exist in myBundle:Entity:view.html.twig at line 7
500 Internal Server Error - Twig_Error_Runtime
Issue 1:
System information (version)

OpenCV => 3.4.7

Detailed description

Could OpenCv.js please be added to npm and instructions to install it such as:

npm install opencvjs --save

please be placed in the Using OpenCv.js tutorial?

npm is the main package index for all javascript projects, both browser and Node, and including OpenCv.js there will increase its accessibility to developers significantly.

Issue 2:
I see there's no package for opencv.js so JavaScript users can install it using npm install as is accustomed by JS users.

The benefits of this would be also that is better integrated with web bundlers like webpack, parcel, browserify which simplify development workflow used in generally for web development.

I think for supporting this, the .wasm version could be better. BTW the current open.js file, although it works since it supports UMD, it would not be the best since it will be combined by bundlers (so the resulting .js file will contain it and will be huge bloking the user's apps). Instead it should be downloaded separately optionally allowing users to define an alternative url for it (like a CDN).

I'm working on a proof f concept for this, and also to support / tests for node.js as API and a little CLI tool too, and I wonder if something like this would be accepted as a PR to at least start the discussion.

Thanks
Issue 1:
The help text at http://freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery gives an example that says:

$(".target:nth-child(3)").addClass("animated bounce");

This should say

$(".target :nth-child(3)").addClass("animated bounce");

per :nth-child's syntax.

Issue 2:
Challenge Name: Golf Code (JavaScript)

https://www.freecodecamp.com/challenges/golf-code

Issue Description

Challenge Solution is being accepted and passed despite missing semi-colon ";" in the code.

Browser Information

Browser Name, Version: Google Chrome, Version 55.0.2883.87 (64-bit)

Operating System: Ubuntu 16.10

Mobile, Desktop, or Tablet: Desktop

Your Code

function golfScore(par, strokes) {
// Only change code below this line
if(strokes==1){return "Hole-in-one!";}
else if(strokes <= par-2){return "Eagle";}
else if(strokes == par-1){return "Birdie";}
else if(strokes == par){return "Par";}
else if(strokes == par+1){return "Bogey";}
else if(strokes == par+2){return "Double Bogey";}
else {return "Go Home!"}
//Missing semicolon in the else statement above
// Only change code above this line
}

// Change these values to test
golfScore(5, 4);

Screenshot
Issue 1:

Issue 2:
Right now we bind kube-apiserver to 0.0.0.0:443 and kube-discovery to 0.0.0.0:9898. We need to allow users to:

override both ports separately (and may be change the default from 443 to 6443 or something)

override bind address if they wish to make it more secure (we must keep default as is for now, as we would break external accessibility if we do that and it's also what kube-apiserver defaults to)
Issue 1:
Hi,

I was (am) testing the carousel on mobile devices (my android phone), and noticed it doesn't support touch events (swipe left or right etc).

And I search for the solution and found this

https://github.com/ixisio/bootstrap-touch-carousel

and implemented it and it works fine.

But shouldn't it be a part of core framework? As its main goal is "Mobile First" so having no touch support for carousel and such doesn't make sense to me?

Please let me know about future plans of touch support for different elements?

Is this part of 3.1 milestone????

Issue 2:
http://getbootstrap.com/javascript/

is it possible to make it work when we swipe.
Issue 1:
Hello, I ran into a bug related to typealias while working in Graphs.jl today.

Here's the code:

typealias A{B} Vector{Vector{B}}
typealias C{D} Vector{Vector{D}}

Then A gives Array{Array{B,1},1} as expected.

Unfortunately C also gives Array{Array{B,1},1}

So A{Int} is Array{Array{Int64,1},1}

But C{Int} is Array{Array{B,1},1}

This has bad effects. If I put typealias LLT{T} Vector{Vector{T}} at the top of Graphs/test/test_all, before the library is loaded, it breaks everything.

Issue 2:
I'm building a DSL for symbolic things. I couldn't parse unicode characters for forall '∀' and exists '∃' as symbols (function names) in 1.6.0-beta1.
Issue 1:
Electron version:0.37.0

Operating system: windows 7

running electron does nothing as far as i can tell

/c/GitHub/sandbox (master) $ electron .

(no output)

/c/GitHub/sandbox (master) $ electron --help

(no output)

Issue 2:
I'm not sure why this works on Chrome v49 itself but this is a win8 only API. Maybe the WINVER setting isn't working properly in brightray's gypi
Issue 1:
Electron version: 1.4 - 1.6 - but most likely happens on all of them

Operating system: Windows 7/8

Expected behavior

In frameless window any dom element should lose focus after mouse cursor leaves the window area.

Actual behavior

In frameless window any dom element stays focused after mouse cursor leaves the window area.

How to reproduce

Create div element with on :hover css state that changes its background-color. Place the div close to the frameless window border. Move mouse cursor over the div then move the cursor outside of the window.

Issue 2:
I have a simple div with a css hover effect changing the background color. When I move the mouse outside of the window area, the div keeps its hover style. It should actually go back to its normal style. Presumable the mouseleave event was "swallowed".

For a demonstration video see here: https://www.screenr.com/4M0N

It happens using the frameless view and using the windows frame view. Even though the latter is more difficult to reproduce (move the mouse faster).

You can reproduce it with this sample code:

<!DOCTYPE html>
<html>
<head>
<title>mouseleave</title>

<style>
.box {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 10%;
}
.box:hover {
background-color: red;
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>

My setup:

Windows 8.1 7

atom-shell 0.15.7
Issue 1:
our_rand_r is a fast and simple random generator defined in sklearn/tree/_tree.pyx

Problems:

The functions only return 0s if seeded with 0. We need to audit the use of this function and make sure it is never seeded with 0.

The code is duplicated (sklearn/linear_model/cd_fast.pyx) and will be in #4738, in #4873, and possibly other PR . My first attempt to re-use only one code (by moving the inline function in _tree.pxd file) has failed: Every tests passed on Linux (Travis) but it broke 45 tests on Windows (AppVeyor), I did not figure out why.

Issue 2:
Right now the output of travis is too large to render, partially because a lot of deprecation warnings and partially because of warnings from the common tests. The common tests should catch all the deprecation warnings and probably also convergence warnings or numerical warnings (we decrease the number of iterations for faster testing).
Issue 1:
For example, given an empty lib.rs, this happens:

rustc --lib lib.rs & rustc --rlib lib.rs
error: linking with `cc` failed: exit code: 1
note: cc arguments: '-m64' '-L/usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib' '-o' 'liblib-9ed81b85-0.0.so' 'lib.o' 'lib.metadata.o' '-Wl,--as-needed' '-L/tmp/.rust' '-L/tmp' '-L/usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib' '-lstd-04ff901e-0.9-pre' '-lrt' '-ldl' '-lm' '-lpthread' '-lstdc++' '-shared' '-lmorestack' '-Wl,-rpath,$ORIGIN/../usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib' '-Wl,-rpath,/usr/local/lib/rustc/x86_64-unknown-linux-gnu/lib'
note: /usr/bin/ld: reopening lib.o: No such file or directory

/usr/bin/ld: final link failed: No such file or directory
collect2: error: ld returned 1 exit status

error: aborting due to previous error
task 'rustc' failed at 'explicit failure', /home/siege/src/rust2/src/libsyntax/diagnostic.rs:102
task '<main>' failed at 'explicit failure', /home/siege/src/rust2/src/librustc/lib.rs:398

This could be fixed in two main ways.

Add an option (e.g. --temps-path) to store the intermediates in a specific location

Add some kind of hash to the names of the intermediates to stop them from colliding. Can't just be the pkgid hash, as it'd still fail the above test.

Issue 2:
This change to using #[pkgid] is causing a serious problem. Library names are now completely different. And I don't mean the hash. I mean the actual name on-disk. Not only that, but libraries without a #[pkgid] will potentially be named completely incorrectly and collide on-disk.

The library name on disk is lib<name>-<hash>.... Previously, <name> came from the link args, so #[link(name="foo")]; produced libfoo-<hash>.... Now, it's apparently based off of the last path component of the #[pkgid]. So if my library doesn't have a #[pkgid], and the root file is named lib.rs, then I'll end up with liblib-<hash>.... And since the hash is also based off of the #[pkgid], then every single non-#[pkgid] library with the same root source file will result in the same full filename (as both the library name and the hash are identical). That's really bad.

If I go ahead and add a #[pkgid], and use the recommended approach of using my github path as the pkgid, then I end up with a library that's potentially named incorrectly. For example, my github.com/kballard/rust-lua library wants to produce liblua-<hash>... but instead with the #[pkgid] it's now librust-lua-<hash>....