WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Programs can have links at multiple locations. If links at one these locations is deleted, program should be displayed using links from another locations.

ℹ Computer information

PowerToys version: 0.23.0

PowerToy Utility: Run

Running PowerToys as Admin: no

Windows build number: [run "winver"]

Steps to repro :

Search steam.

Press ctrl+shift+e to open file location. This opens up C:\Users\divyan\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Steam folder.

Delete the shortcut.

✔️ Expected result

Steam should still be displayed as another shortcut is present in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Steam folder.

❌ Actual result

Steam is not displayed. Restarting Run fixes this issue.

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

Issue 2:
ℹ Computer information

PowerToys version: 0.21.1

PowerToy Utility: PT Run

Running PowerToys as Admin: Yes

Windows build number: 19041.508

📝 Provide detailed reproduction steps (if any)

(Pre: have term.cmd on the path, and a term.js file. (See this gist for contents))

Open PT Runner and enter > term

Windows Terminal opens as it should.

Open PT Runner and enter > term node

No response?

✔️ Expected result

The argument passed to the term.cmd file should forward onto the term.js file spawning a Windows Terminal process with the NodeJS profile active (as specified in the term.js file).

❌ Actual result

Nothing happens. Not a process hang, but the Windows Terminal doesn't appear, fullstop. Running > code tmp.js correctly opens a VSCode instance with an unsaved file named tmp.js, so I don't think it's an issue with args, but maybe with how args are piped to the command - specifically with how they appear in the %* object in batch? I don't really know though...

📷 Screenshots

(I tried to screen record, but the Windows Gamebar doesn't record the whole screen. 😟 So sorry, nope.)
Issue 1:
When you curl ip:9200/name/_mappings (or _settings, for example), you get a response with the JSON object.

But when you do curl -I ip:9200/name/_mappings, you get 404.

Why? Because -I is not a GET operation, but a HEAD one, and it's not implemented.

I think this is strange behaviour. According to HTTP protocol spec:

The HEAD method is identical to GET except that the server MUST NOT

return a message-body in the response. The metainformation contained

in the HTTP headers in response to a HEAD request SHOULD be identical

to the information sent in response to a GET request.

So would be nice to have the HEAD acting the same as GET here (without body response), instead of returning 404. I wasted some time trying to figure out what was wrong until i removed -I 😕

Issue 2:
Today, if a request is executed against an endpoint with a method in the request line that that endpoint does not support, Elasticsearch responds with a response like:

{
"error" : {
"root_cause" : [ {
"type" : "illegal_argument_exception",
"reason" : "No feature for name [_forcemerge]"
} ],
"type" : "illegal_argument_exception",
"reason" : "No feature for name [_forcemerge]"
},
"status" : 400
}

This is confusing for users*, semantically wrong, and contrary to the HTTP spec. Instead, Elasticsearch should respond with HTTP status code 405 (Method Not Allowed) and include in the Allow header a list of methods that the endpoint does support.

*: Googling "no feature for name elasticsearch" just leads to pages describing issues when an index is missing.
Issue 1:
#![feature(unboxed_closures, unboxed_closure_sugar)]

fn make_adder(a: int, b: int) -> Box<|&:| -> int> {
(box |&:| a + b) as Box<|&:| -> int>
}

fn main() {
println!("{}", make_adder(1, 2).call(()));
}

This code does not compile with this error:

<anon>:8:42: 8:44 error: mismatched types: expected `()` but found `()` (expected tuple but found ())
<anon>:8 println!("{}", make_adder(1, 2).call(()));
^~
note: in expansion of format_args!
<std macros>:2:23: 2:77 note: expansion site
<std macros>:1:1: 3:2 note: in expansion of println!
<anon>:8:5: 8:47 note: expansion site
error: aborting due to previous error

Naturally, call() without arguments does not work, but I know of no other way to pass zero argument to the closure.

Issue 2:
#![feature(unboxed_closures)]

use std::ops::FnMut;

fn main() {
let mut zero = |&mut:| {}; zero.call_mut(());

// let mut one = |&mut: _: int| {}; one.call_mut((1,));
}

<anon>:6:46: 6:48 error: mismatched types: expected `()` but found `()` (expected tuple but found ())
<anon>:6 let mut zero = |&mut:| {}; zero.call_mut(());
^~

Swapping the comments compiles fine.

(At a guess the compiler is looking for a tuple with no fields, which is not the same as unit ().)
Issue 1:
Bug report

Bug summary

Matplotlib patch 3.1.1 broke imshow() heatmaps. While with version 3.1.0 the heatmap was plotted correctly, in 3.1.1 the bottom most and the top most heatmap tiles are cut off.

This can even be seen in the Matplotlib online documentation itself, see links below.

Code for reproduction

Taken straight from the Matplotlib online documentation:

import numpy as np
import matplotlib
import matplotlib.pyplot as plt
# sphinx_gallery_thumbnail_number = 2

vegetables = ["cucumber", "tomato", "lettuce", "asparagus",
"potato", "wheat", "barley"]
farmers = ["Farmer Joe", "Upland Bros.", "Smith Gardening",
"Agrifun", "Organiculture", "BioGoods Ltd.", "Cornylee Corp."]

harvest = np.array([[0.8, 2.4, 2.5, 3.9, 0.0, 4.0, 0.0],
[2.4, 0.0, 4.0, 1.0, 2.7, 0.0, 0.0],
[1.1, 2.4, 0.8, 4.3, 1.9, 4.4, 0.0],
[0.6, 0.0, 0.3, 0.0, 3.1, 0.0, 0.0],
[0.7, 1.7, 0.6, 2.6, 2.2, 6.2, 0.0],
[1.3, 1.2, 0.0, 0.0, 0.0, 3.2, 5.1],
[0.1, 2.0, 0.0, 1.4, 0.0, 1.9, 6.3]])

fig, ax = plt.subplots()
im = ax.imshow(harvest)

# We want to show all ticks...
ax.set_xticks(np.arange(len(farmers)))
ax.set_yticks(np.arange(len(vegetables)))
# ... and label them with the respective list entries
ax.set_xticklabels(farmers)
ax.set_yticklabels(vegetables)

# Rotate the tick labels and set their alignment.
plt.setp(ax.get_xticklabels(), rotation=45, ha="right",
rotation_mode="anchor")

# Loop over data dimensions and create text annotations.
for i in range(len(vegetables)):
for j in range(len(farmers)):
text = ax.text(j, i, harvest[i, j],
ha="center", va="center", color="w")

ax.set_title("Harvest of local farmers (in tons/year)")
fig.tight_layout()
plt.show()

Actual outcome

Copied from:

https://matplotlib.org/3.1.1/gallery/images_contours_and_fields/image_annotated_heatmap.html#sphx-glr-gallery-images-contours-and-fields-image-annotated-heatmap-py

Expected outcome

Copied from:

https://matplotlib.org/3.1.0/gallery/images_contours_and_fields/image_annotated_heatmap.html#sphx-glr-gallery-images-contours-and-fields-image-annotated-heatmap-py

Matplotlib version

Operating system: Windows 8.1 and Ubuntu 18.04

Matplotlib version: 3.1.1

Matplotlib backend: Qt5Agg

Python version: 3.7.4 on Windows and 3.6.8 on Ubuntu

I am using conda on Windows and pip on Ubuntu.

Issue 2:
Bug report

Bug summary

The very top and bottom of the heatmaps are getting truncated to 1/2 height in version 3.1.1. This does not happen for version 3.0.3.

This is the code from a Jupyter Notebook

import matplotlib
import pandas as pd
import numpy as np
import seaborn as sb
%pylab inline

print(matplotlib.__version__)
print(sb.__version__)

grid = pd.DataFrame(np.arange(9).reshape((3,3))/10)
fig, ax = subplots(1, 1, figsize=(5, 5))

sb.heatmap(grid, annot=True, fmt=".0f", ax=ax, cmap='RdBu', vmin=0, vmax=1, cbar=True);

Actual outcome

Populating the interactive namespace from numpy and matplotlib
3.1.1
0.9.0

Matplotlib version

Operating system: Ubuntu Linux

Matplotlib version: 3.1.1

Matplotlib backend: module://ipykernel.pylab.backend_inline

Python version: 3.6

Jupyter version (if applicable): 4.4.0

Other libraries:
Issue 1:
I was using Twitter Bootstrap on a recent project and had a page with a body class of "page_spanish". After a ton of troublshooting, I determined that a bootstrap selector was picking up the "span" inside of the class and it was messing up the layout of the page.

Can the selector for this be made more narrow so it won't pick up class names that contain "span" somewhere in them?

Issue 2:
The CSS selector [class*="span"] is targeting elements beyond its intended scope.

In my particular scenario, I have a Wordpress site which adds a class equal to the post slug to the body element. So, when the user creates page entitled "Spanish", a class of spanish is added to the body element. And so the entire page is floated left with a 20px negative left margin!
Issue 1:
If I use icons for all tabs, it's fine:

<ul class="nav nav-tabs">
<li class="active"><a href="#"><i class="icon-xxxxx"></i> Tab 1</a></li>
<li><a href="#"><i class="icon-yyyyy"></i> Tab 2</a></li>
</ul>

However, if I only use icons on some of the tabs, then the active tab without an icon will have an offset at the bottom, resulting a border is drawn:

<ul class="nav nav-tabs">
<li class="active"><a href="#">Tab 1</a></li>
<li><a href="#"><i class="icon-yyyyy"></i> Tab 2</a></li>
</ul>

Issue 2:
If you create a tabbable navigation and add an icon to only one tab, the other tab(s) have an incorrect height and thus the bottom border is shown.

The following example illustrates the issue:

http://jsfiddle.net/ZCZev/

A temporary solution is to add

<i class="icon-blank"></i>

Inside the tab's anchor element and have icon-blank be like:

.icon-blank {
width: 0px;
}
Issue 1:
In 1.3.0,

struct PatriciaTree {
data: Box<u8>,
child_l: Box<u8>,
}

impl PatriciaTree {
fn delete(&mut self) {
let child = Box::new(PatriciaTree { data: Box::new(5), child_l: Box::new(5) });
let PatriciaTree { data, child_l } = *child;
}
}

fn main() {}

fails with

break3.rs:10:34: 10:41 error: use of moved value: `child` [E0382]
break3.rs:10 let PatriciaTree { data, child_l } = *child;
^~~~~~~
break3.rs:10:28: 10:32 note: `child` moved here (through moving `child.data`) because it has type `Box<u8>`, which is moved by default
break3.rs:10 let PatriciaTree { data, child_l } = *child;
^~~~
break3.rs:10:28: 10:32 help: if you would like to borrow the value instead, use a `ref` binding as shown:
break3.rs: let PatriciaTree { ref data, child_l } = *child;
error: aborting due to previous error

This is a common pattern for moving all the fields at once out of a struct (since moving them one by one could introduce memory unsafety).

Edit: I posted the wrong error message in the first version of this bug; fixed now.

Issue 2:
The following code worked on 0.11 bu no longer works on master. Last known good nightly was August 1st.

struct Foo {
a: Vec<u8>,
b: Vec<u8>
}

fn main() {
let foo = box Foo{a: Vec::new(), b: Vec::new()};
let Foo { a: a, b: b } = *foo;
}

This will create the following error message:

<anon>:8:24: 8:25 error: use of partially moved value: `foo.b`
<anon>:8 let Foo { a: a, b: b } = *foo;
^
<anon>:8:18: 8:19 note: `foo.a` moved here because it has type `collections::vec::Vec<u8>`, which is moved by default (use `ref` to override)
<anon>:8 let Foo { a: a, b: b } = *foo;

If Foo is not boxed this will function correctly.

struct Foo {
a: Vec<u8>,
b: Vec<u8>
}

fn main() {
let foo = Foo{a: Vec::new(), b: Vec::new()};
let Foo { a: a, b: b } = foo;
}
Issue 1:
As part of the recent changes the Full Stack certificate I had previously claimed was removed, but the corresponding waypoint was still marked as done, and this waypoint was reused for the new Back End certificate. I have now completed the additional API challenges, but when I click through the waypoint again I don't get the Back End certificate added to my profile (http://www.freecodecamp.com/george-stepanek).

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-size-your-images has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
Issue 1:
With RESTART_ON_UPGRADE disabled (default for at least 1.5.2), the init script of ES 1.7.x will be unable to restart ES after a Debian package upgrade from 1.5.x or earlier.

This is because the pid file path changed in 1.6.0 (IIRC), so when a user invokes e.g. /etc/init.d/elasticsearch restart after the package has been upgraded no pid file is found and ES is deemed to not be running. The subsequent start will then fail since it can't bind to any ports as they're still busy by the running ES process.

This broke my automated upgrade from 1.5.2 to 1.7.1, requiring a manual shutdown of ES on affected machines and/or a package rollback. Could we try a little harder to find the pid file by e.g. introducing a fallback pid file in the 1.7.x series? Perhaps migrating the old pid file with something as simple as

LEGACY_PID_FILE="/var/run/elasticsearch.pid"
if [ -f "$LEGACY_PID_FILE" -a "$LEGACY_PID_FILE" != "$PID_FILE" ] ; then
mv "$LEGACY_PID_FILE" "$PID_FILE" || exit 1
fi

right after the PID_DIR creation in /etc/init.d/elasticsearch would do?

Issue 2:
Using repository install on Ubuntu 14.04 LTS

Sequence to reproduce.

Install 1.5.2

Upgrade to 1.6.0

Run service elasticsearch stop

init.d script returns "[ OK ]" (indicates that process has been stopped), but process list shows process is still running. If you manually kill the process, the init.d script then successfully start/stops
Issue 1:
hey,

when trying to download a customized version there is an error while creating css/less files.

i tried download the customized version with default settings.

thanks.

error file:

A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type":"Parse","message":"Syntax Error on line 792","index":25106,"filename":"bootstrap.css","line":792,"column":11,"extract":[" *margin: -5px 0 5px;"," ove rflow: hidden;"," background-color: @top;"]}

Issue 2:
I tested this on the docs page.

If you open a modal, click the close button, then open it again, you (probably) will not be able to close it with the close button a second time. I was able to close it by clicking elsewhere on the screen.
Issue 1:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):

No.

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):

"bazel"

Is this a BUG REPORT or FEATURE REQUEST? (choose one):

Bug report.

Kubernetes version (use kubectl version):

master.

What happened:

golang.org/x/net/context clashed with a dependency in my project because it been vendored as source into the tree.

What you expected to happen:

I expected Kubernetes to use go_rules features for vendoring in WORKSPACE, like so

new_go_repository(

name = "org_golang_x_net",

importpath="golang.org/x/net",

commit="f4b625ec9b21d620bb5ce57f2dfc3e08ca97fce6"

)

How to reproduce it (as minimally and precisely as possible):

Build a small project that imports Kubernetes as an external dependency like this:

git_repository(

name = "io_k8s_kubernetes",

remote = "https://github.com/kubernetes/kubernetes",

commit = "...",

)

This allows use of the Kubernetes BUILD rules in the remote project. Then, import golang.org/x/net as above and try to use it in a go_binary. The link step will fail.

Anything else do we need to know:

I understand there may be concerns I'm not aware of here. @mikedanese

Issue 2:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): no

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):

I searched in the issues and asked for help multiple times on Slack.

Is this a BUG REPORT or FEATURE REQUEST? (choose one): FEATURE REQUEST

Kubernetes version (use kubectl version): 1.5 beta

It is currently not possible to specify the desired FSType when using dynamically provisioned volumes. As I understand it, only a PV resource can specify the FSType. But as we don't create PVs by ourself when using dynamic provisioning, we have no chance to specify it.

I tried to understand the source when it comes to dynamic provisioning. As I understand it, the cloud specific VolumeSource (e.g. AzureDiskVolumeSource or AWSElasticBlockStoreVolumeSource) hold the desired FSType. For AzureDiskVolumeSource, I could not find any place where FSType is actually set. For AWSElasticBlockStoreVolumeSource, it is set to ext4 on creation and then never touched again.

I would suggest that FSType should be added to either StorageClass or PersistentVolumeClaim. I'm not sure however which one would best fit, or if it fits at all.
Issue 1:
As of PHP bug https://bugs.php.net/bug.php?id=39992, proc_terminate, used in Process.php @ line 555 does not terminate children process.

I propose either use a fix described in http://php.net/manual/en/function.proc-terminate.php , or grouping pids as "mast at imast dot ru" described in the php.net bug itself.

Issue 2:
Since PHP internally executes all commands using sh -c "original cmd" a call to ->stop() does not actually stop our process, but instead stops sh -c while the real process can still continue running.

I'm not sure what the best fix is here, we could add an exec call in front of the command to remove the sh -c wrapper and directly control our process.

Another improvement in the stop() method would be to send a final SIGKILL signal if the process does not terminate after sending SIGTERM. But that would only make sense if we actually send this signal to the real process, not to the wrapper.
Issue 1:
JSON standard (http://json.org/) say, that any entity can be object or array.

When I try:

jsonify(['a','b','c', 'd', 'e', 'f'])

I got an error:

ValueError: dictionary update sequence element #0 has length 8; 2 is required

I think it is not a correct answer from flask. It should returns a JSON-object with array.

Issue 2:
I was suprised to find that jsonify(['hello', 'world']) will raise a TypeError even though

[

"hello",

"world"

]

is valid json.

I think there should be a check to see if the first argument is a list instance and just do a json dump of the first argument if it is or something like that.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Previously reported in #8855. Re-opening with reproducible example.

Expected Behavior

Selecting MenuItem in Select component connected to redux-form sets redux-form field value to MenuItem value.

Current Behavior

Redux-form field value is briefly set to MenuItem value, but then is re-set to 0. I suspect the root cause is related to Select component's onBlur propagating an event.value.taget of value 0 to the redux-form reducer. Overriding onBlur in Select component results in expected behavior. The current behavior appears to have been introduced in 1.0.0-beta.18.

Steps to Reproduce (for bugs)

Example of expected behavior in material-ui@1.0.0-beta.17: https://codesandbox.io/s/3vqn815voq

Example of observed behavior in material-ui@1.0.0-beta.18: https://codesandbox.io/s/lrk7k607p7

Example of observed behavior in material-ui@1.0.0-beta.19: https://codesandbox.io/s/qy6v4jpq6

Example of expected behavior when overriding Select component's onBlur in material-ui@1.0.0-beta.19 (see SimpleSelect.js and console): https://codesandbox.io/s/nrlnnnm3j4

Your Environment

Tech
Version

Material-UI
1.0.0-beta.19

React
16.0.0

browser
Chrome 62.0.3202.75

redux-form
7.1.2

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

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

This problem only occur when I use next() function, so created a repo for this

Clone the repo and install npm dependencies.

Run npm run dev then open localhost:3000, an AppBar appears as expected.

Run node server.js then open localhost:5000, no AppBar appears.

Context

I'm trying to next() function to serve the site instead of running next start. File server.js contains the code.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.29

React
16.2.0

Next.js
4.2.3
Issue 1:
Challenge at http://freecodecamp.com/challenges/waypoint-declare-javascript-variables has an issue. If be more accurate all Basic JS exercises have that issue.

Just watch screenshot: http://i.imgur.com/IZVEsPL.jpg;

Browser: FF42

Issue 2:
Issue Description

Upon login, the user is brought back to the next challenge. If the challenge happens to be a project, the page layout is broken and clicking on Map has no effect.

Steps to reproduce: log out of the beta site, close browser window, and log in again using email and password.

Browser Information

Browser Name, Version: Google Chrome v55.0.2883.95

Operating System: macOS 10.12.2

Mobile, Desktop, or Tablet: Desktop

Screenshot
Issue 1:
I'm not sure if this is an issue or whether there is an expected performance problem with forwarding functions with varargs (or something else). As suggested in a discourse thread I'm submitting it here as an issue.

The following code run as a script with -O3

using InteractiveUtils

function foo(f::F, m::Int64, args...) where F<:Function
for i in 1:m
z = f(args...)
end
return true
end

function g(x::Float64, y::Float64)
return rand() < 0.5, 1
end

function bar(f::F, m::Int64, x::Float64, y::Float64) where F<:Function
for i in 1:m
z = f(x, y)
end
return true
end

versioninfo()

@btime foo(g, 1000, 1.0, 2.0)
@btime bar(g, 1000, 1.0, 2.0)

gives as output

Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin14.5.0)
CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, haswell)
Environment:
JULIA_NUM_THREADS = 4

38.486 μs (1000 allocations: 31.25 KiB)
1.260 μs (0 allocations: 0 bytes

This suggests there could be an issue with forwarding arguments with varargs.

Changing many things in isolation eliminates the allocations, e.g. if

g returns rand() < 0.5

g returns x < y, 1

Issue 2:
As This worked fine when I downloaded and built Julia 1.0 from source. However, when I download the julia-1.2.0-full.tar.gz file from https://github.com/JuliaLang/julia/releases/download/v1.2.0/julia-1.2.0-full.tar.gz, I can't get it to build on an isolated network. Currently the steps I follow are:

% tar -xvf julia-1.2.0-full.tar.gz

% make

Warning: git information unavailable; versioning information limited

Warning: git information unavailable; versioning information limited

Warning: git information unavailable; versioning information limited

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed connect to cache.julialang.org:443; Connection refused

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed connect to github.com:443; Connection refused

make[1]: *** [/home/user1/julia-1.2.0/deps/srccache/SuiteSparse.v5.4.0-2.x86_64-linux-gnu-gcc4.tar.gz] Error 7

make: *** [julia-deps] Error 2

OS: RHEL 7.6 fully patched.

Any help would be greatly appreciated.