WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
here is the backtrace:

FAIL: Doctest: scikits.learn.datasets.base.load_sample_image
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/fabian/lib/python2.7/doctest.py", line 2153, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for scikits.learn.datasets.base.load_sample_image
File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 403, in load_sample_image

----------------------------------------------------------------------
File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 406, in scikits.learn.datasets.base.load_sample_image
Failed example:
china = load_sample_image('china.jpg')
Exception raised:
Traceback (most recent call last):
File "/home/fabian/lib/python2.7/doctest.py", line 1248, in __run
compileflags, 1) in test.globs
File "<doctest scikits.learn.datasets.base.load_sample_image[0]>", line 1, in <module>
china = load_sample_image('china.jpg')
File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 418, in load_sample_image
images = load_sample_images()
File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 389, in load_sample_images
raise ImportError("The Python Imaging Library (PIL)"
ImportError: The Python Imaging Library (PIL)is required to load data from jpeg files

Issue 2:
Description

Calculating recall using micro-averaging needs to be optimized for large scale dense arrays.

Steps/Code to Reproduce

from sklearn.metrics import recall_score

recall = recall_score(actual, predictions, average='micro')

Versions

Darwin-15.5.0-x86_64-i386-64bit

Python 3.5.2 |Anaconda custom (x86_64)| (default, Jul 2 2016, 17:52:12)

[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]

NumPy 1.11.1

SciPy 0.18.1
Issue 1:
Axios shows err_empty_response at 2:01 min. I used the timeout. But it's not working.

This is my axios code.

export const createNetwork = networkData => dispatch => {

axios({

method: "post",

url: "/createNetworks",

timeout: 1000 * 3 * 60, // Wait for 5 seconds

headers: {

"Content-Type": "application/json"

},

data: {

id: 1234

}

})

.then(res => {

console.log(res.data);

})

.catch(err => {

console.log(err);

});

};

server code

let server = app.listen(port, err => { if (err) throw err; console.log(Server is running in port ${port}); });

server.timeout = 5 * 60 * 1000;

This is my route

app.post("/createNetworks",(req,res)=>{

setTimeout(function(){ res.json({status:true,message:"It's working"}) }, 3000);

})

Issue 2:
Instructions

Please read and follow the instructions before submitting an issue:

Read all our documentation, especially the README. It may contain information that helps you solve your issue.

Ensure your issue isn't already reported.

If you aren't sure that the issue is caused by axios or you just need help, please use Stack Overflow or our chat.

If you're reporting a bug, ensure it isn't already fixed in the latest axios version.

If you need a new feature there's a chance it's already implemented in a library or you can implement it using interceptors.

⚠️👆 Delete the instructions before submitting the issue 👆⚠️

Summary

Describe your issue here, including as much detail as necessary.

If you're reporting a bug, include the relevant code and stack traces to debug it (removing any private information).

If you're requesting a feature, include some context and examples of code using it.

Context

axios version: e.g.: v0.16.0

Environment: e.g.: node v6.9.4, chrome 54, windows 7
Issue 1:
The location of apiserver auth certs and keys and the kube-apiserver SSH keys are inconsistent between Debian and GCI. This means that master upgrades from Debian to GCI are broken.

In Debian, Salt puts these files in master-pd/srv/kubernetes (via /srv/salt-overlay/salt/kube-apiserver/basic_auth.csv and /srv/kubernetes/basic_auth.csv, see configure-vm.sh and init.sls), whereas GCI expects it in master-pd/etc/srv/kubernetes (see configure-helper.sh, originally introduced in #20463).

cc @mikedanese @adityakali @andyzheng0831

Issue 2:
$ kubectl run -it --image=busybox --restart=Never false /bin/false

I expect this to run the /bin/false once. Instead a job is created which restarts /bin/false until it succeeds (which it never does).

This way it is impossible to create real one-off tasks with kubectl run.
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-reboot-release-1.4/850/

Failed: [k8s.io] Reboot [Disruptive] [Feature:Reboot] each node by ordering unclean reboot and ensure they function upon restart {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:134
Oct 21 08:36:33.173: Couldn't delete ns: "e2e-tests-reboot-h3vjy": an error on the server ("Internal Server Error: \"/api\"") has prevented the request from succeeding (&errors.StatusError{ErrStatus:unversioned.Status{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ListMeta:unversioned.ListMeta{SelfLink:"", ResourceVersion:""}, Status:"Failure", Message:"an error on the server (\"Internal Server Error: \\\"/api\\\"\") has prevented the request from succeeding", Reason:"InternalError", Details:(*unversioned.StatusDetails)(0xc820cce000), Code:500}})
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:338

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-reboot-release-1.4/356/

Failed: [k8s.io] Reboot [Disruptive] [Feature:Reboot] each node by ordering unclean reboot and ensure they function upon restart {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:98
Oct 1 04:43:30.313: Test failed; at least one node failed to reboot in the time given.
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:158
Issue 1:
I'm trying to have std imported conditionally for testing only, as I use core in my OS kernel, and found this issue. This code:

#![feature(core)]

#![feature(no_std)]
#![no_std]
extern crate std;

extern crate core;

#[derive(Copy)]
pub enum Kind {
None = 0,
Reserved = 1,
}

With this Cargo.toml (where ../lib/libcore is from the exact same commit as the compiler):

[package]
name = "example"
version = "0.0.1"
authors = ["Virtlink <info@example.com>"]

[dependencies.core]
path = "../lib/libcore"

Gives me these errors:

Compiling example v0.0.1 (file:///home/virtlink/projects/example)
src/lib.rs:1:1: 1:1 error: duplicate entry for `const_ptr` [E0152]
src/lib.rs:1 #![feature(core)]
^
src/lib.rs:1:1: 1:1 error: duplicate entry for `mut_ptr` [E0152]
src/lib.rs:1 #![feature(core)]
^
src/lib.rs:1:1: 1:1 error: duplicate entry for `i8` [E0152]
src/lib.rs:1 #![feature(core)]
^

...

src/lib.rs:1:1: 1:1 error: duplicate entry for `non_zero` [E0152]
src/lib.rs:1 #![feature(core)]
^
src/lib.rs:1:1: 1:1 error: duplicate entry for `debug_trait` [E0152]
src/lib.rs:1 #![feature(core)]
^
error: aborting due to 58 previous errors
Could not compile `example`.

However, if I remove the local libcore dependency from Cargo.toml then it works fine:

[package]
name = "example"
version = "0.0.1"
authors = ["Virtlink <info@example.com>"]

I expected there to be no difference between using a local copy of core and using the built-in core.

I can't remove extern crate core, due to issue #23982, and I can't use the built-in core as I'm using a custom target for my Rust kernel.

rustc 1.0.0-nightly (c89de2c56 2015-03-28) (built 2015-03-29)
binary: rustc
commit-hash: c89de2c56baeb61e7cc434924dcc8bedd32b26b8
commit-date: 2015-03-28
build-date: 2015-03-29
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly

Issue 2:
In #4789 discussion was started about redesigning the traits related to numbers and I think the first step is to design and document the traits we think are required and why.

We probably also depend on #4183 and some other bugs for the actual implementation?

(I have an initial sketch/RFC here, based on the work in #4789 etc. https://gist.github.com/JensNockert/4719287)
Issue 1:
Soft wrapping breaks apart completely and creates a big mess if a certain sequence of actions is performed. I'm on OSX 10.8.4 and Atom 17.0.

To reproduce:

Start Atom, open a blank new file, and turn on soft wrapping

Enter text until it wraps to the other line:

Your cursor being at the end of line 1, press ENTER to go to the next line. This correctly creates a newline character and moves the cursor to the beginning of the next line:

Press BACKSPACE. This deletes the new line that was just created and correctly moves the cursor back to the end of line 1. Screenshot same as in step 2:

Press ENTER again, as if to repeat step 3. This messes everything up:

So, the first "virtual" line was duplicated. Also, this duplicated first line is now non-selectable and non-editable -- I can't even put my cursor there (it's frozen).

DevTools console doesn't show any errors.

Issue 2:
Sometimes you have several files open in a window and two or more of the tabs share the same file name (e.g., subfolders of examples with many index.html files). Just like Chrome and Sublime (and perhaps other OS X apps?), when you hover of the tab for a couple seconds, we should show additional context. In this case, the full path to the file.
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.3 & 2.5.10

Operating System version: mac

Java version: JDk 1.8

Steps to reproduce this issue

DubboSaveRegistryCache thread cost a lot of cpu when device is full.

[DUBBO] Failed to save registry store file, cause: No space left on device, dubbo version: 2.0.1, current host: 10.14.129.133
java.io.IOException: No space left on device
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:326)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at java.io.BufferedWriter.flush(BufferedWriter.java:254)
at java.util.Properties.store0(Properties.java:844)
at java.util.Properties.store(Properties.java:818)
at com.alibaba.dubbo.registry.support.AbstractRegistry.doSaveProperties(AbstractRegistry.java:169)
at com.alibaba.dubbo.registry.support.AbstractRegistry$SaveProperties.run(AbstractRegistry.java:490)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

when device is full, it will retry doSaveProperties and log warn in infinite loop.

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

Expected Result

Seems the version check is not takes effect, doSaveProperties should be stopped.

Actual Result

retry doSaveProperties when device is full takes a lot of cpu time.

Issue 2:
Issue 1:
As stated in #677 currently you have to wrap a v-for with an if to catch if an array is empty. I'd love a tag like v-empty to do that. It would work like v-else and you put it right after a v-for (maybe also v-else could also be reused for that?).

The v-empty block triggeres if the v-for list is empty. Just like the equivalent django template tag: https://docs.djangoproject.com/en/1.9/ref/templates/builtins/#for-empty

Example:

<div v-for="(index, item) in items">
{{ index }} {{ item.message }}
</div>
<div v-empty>
<p>Sorry, no elements yet.</p>
</div>

Issue 2:
Version

2.5.13

Reproduction link

https://jsfiddle.net/jbwxeunb/1/

Steps to reproduce

open console

click counter

What is expected?

Show warning when mutating object prop

What is actually happening?

Warning only shows up when mutating primitive props
Issue 1:
Bug

Using libtorch causes memory leaks. but i think that it is very strange. because i only define torch::DeiviceType , then got bug1

bug1

still reachable: 884,654 bytes in 13,927 blocks of which reachable via heuristic: stdstring :436062 bytes in 5832 blocks

bug2

possibly lost: 3104 bytes in 22 blocks
still reachable: 1231592 bytes in 14005 blocks of which reachable via heuristic: stdstring :436062 bytes in 5832 blocks

To Reproduce

bug1

int main()
{
torch::DeviceType device_type;
}

bug2

int main()
{
torch::DeviceType device_type;
if(torch::cuda::is_available())
{
device_type = torch::kCUDA;
}
else
{
device_type = torch::kCPU;
}
torch::Device device(device_type)
}

Environment

PyTorch Version : 1.4

libtorch Version: 1.4

OS (e.g., Linux): Ubuntu 14.04

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

Python version: 3.5

CUDA/cuDNN version: 10

Issue 2:
When compiling PyTorch from sources (a80a46a) with the flag NO_DISTRIBUTED=1 it ends up with the Following error :

couldn't find libcudart. Make sure CUDA libraries are installed in adefault location, or that they're in LD_LIBRARY_PATH comming from there : https://github.com/pytorch/pytorch/blob/master/torch/cuda/__init__.py#L66

Compiling with Distributed support makes the error disappear.

Happened on Fedora 29, using GCC/G++ 7.3.1 with CUDA 9.2 / CuDNN 7.4.1 / GTX 1080 Ti
Issue 1:
Challenge Taste the Bootstrap Button Color Rainbow has an issue.

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<div class="container-fluid">
<h2 class="red-text text-center">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>

<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<button class="btn btn-block">Like</button>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>

Issue 2:
Challenge Show the Local Weather has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/601.7.8.

Please describe how to reproduce this issue, and include links to screenshots if possible.

If you are using a secure connection (https) to the codepen.io page, API calls to open weather will not work. Really should have this on the assignment page. I spent 5+ hours to realize there was nothing wrong with my code. You need to delete the 's' for it to work.

https://codepen.io/... --> http://codepen.io/...

https://www.reddit.com/r/FreeCodeCamp/comments/413p2u/issues_making_api_calls_with_codepen/
Issue 1:
Copy-pastable examples:

import pandas as pd
fileName = 'temp/df.h5'

#### Example 1

t = pd.DataFrame(data={'k':['A','B','C'],
'x':[ 1., 2., 3.]})
t.set_index(['k'], inplace=True)
t.sort_index(inplace=True)

t.to_hdf(fileName, 't', format='table')

t2 = pd.read_hdf(fileName, where='k=="A"' ) # XXX: does not work
t2 = pd.read_hdf(fileName, where='k in ["A"]') # XXX: does not work
t2 = pd.read_hdf(fileName, where='k in {"A"}') # XXX: does not work

#### Example 2

t = pd.DataFrame(data={'k1':['A','B','C'],
'k2':[ 10, 20, 30],
'x' :[ 1., 2., 3.]})
t.set_index(['k1','k2'], inplace=True)
t.sort_index(inplace=True)

t.to_hdf(fileName, 't', format='table')

t2 = pd.read_hdf(fileName, where='k1=="A"' ) # XXX: works
t2 = pd.read_hdf(fileName, where='k1 in ["A"]') # XXX: works
t2 = pd.read_hdf(fileName, where='k1 in {"A"}') # XXX: does not work

Problem description

'where' queries seem to completely fail if the DataFrame has single str index

'where' queries do not support sets, which are much more algorithmically efficient for searches than lists (in my use cases, I select routinely keys, which belong to sets with hundreds or thousands of elements)

Expected Output

It would be great to support the single index case

It would be great to allow sets in 'where' queries

Output of pd.show_versions()

>>> pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.6.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-693.17.1.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: en_US.utf-8
LANG: en_US.utf-8
LOCALE: en_US.UTF-8

pandas: 0.23.0
pytest: 3.3.2
pip: 10.0.1
setuptools: 39.0.1
Cython: 0.27.3
numpy: 1.14.3
scipy: 1.0.1
pyarrow: None
xarray: None
IPython: 6.2.1
sphinx: 1.6.6
patsy: 0.5.0
dateutil: 2.7.2
pytz: 2018.4
blosc: None
bottleneck: None
tables: 3.4.2
numexpr: 2.6.4
feather: None
matplotlib: 2.2.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.9999999
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None

Issue 2:
from SO

In [1]: df = pd.DataFrame.from_dict({'A':[1,2],'B':[100,200], 'C':[42,11]})
In [2]: df_a = df.set_index('A')
In [3]: df_a
Out[3]:
B C
A
1 100 42
2 200 11

In [4]: store = pd.HDFStore('foo.h5','w')
In [5]: store.put('bar', df_a, format='table', data_columns=True)
In [7]: store.select('bar','index==1')

store.select('bar','A==1)

should work as well (obviously only for a named index)
Issue 1:
System information (version)

OpenCV => 3.1.0

Operating System / Platform => Windows 7 64 Bit

Compiler => Visual Studio 2013

Detailed description

Steps to reproduce

Issue 2:
When i try to import tensorflow frozen model of faster_rcnn_nas_coco using cv.dnn.readNetFromTensorflow it is giving me the following error.

cv2.error: /io/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:553: error: (-2) Input layer not found: BoxPredictor_0/ClassPredictor/BiasAdd in function connect

OpenCV => 3.4

Operating System / Platform => Ubuntu 16.04

Compiler => Python 3.6.3

Tensorflow => 1.4

OpenCV => ❔

Operating System / Platform => ❔

Compiler => ❔
Issue 1:
Do you want to request a feature or report a bug?

feature

What is the current behavior?

There is no warning if two or more instances of the same plugin are applied.

If the current behavior is a bug, please provide the steps to reproduce.

n/a

What is the expected behavior?

A warning should be emitted for each plugin that is duplicated, featuring the name of the plugin.

If this is a feature request, what is motivation or use case for changing the behavior?

I noticed @ooflorent's comment and figured it probably would be possible to add a dev-time warning to aid in avoiding plugin clashes.

Issue 2:
I'm submitting a feature request (or a won't fix bug but helpful warnings would be nice if you will)

Webpack version:

1.13.2

Please tell us about your environment:

Linux

Current behavior:

When loading (e.g.) React¹ as an external dependency while loading an npm package [e.g. material-ui] that requires a React Addon which itself requires React², this React² will be included by webpack and not loaded from the external, while the external (React¹) will be loaded as well.

A Facebook member explains this here, they also describe a workaround in that bug report.

Please note that this causes not only bloat but can cause a React app to crash.

Expected/desired behavior:

As by above statement there doesn't seem to be trivial solution, but webpack should warn the user that they are included a duplicate version.

What is the motivation / use case for changing the behavior?

It is very hard to find this issue (digging through the bundled code, comparing import numbers) and cause React apps to crash.

Browser: All, I guess. Tested in Chromium.

Language: All, I guess. My code is TypeScript, uses React and Material-UI.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

TextField Underline should be hidden when I mention underlineStyle={{display: 'none'}}

Current Behavior

Nothing changes for the TextField UnderLine

Steps to Reproduce (for bugs)

<TextField
placeholder="Search here"
inputClassName={classes.input}
className={classes.searchField}
margin="normal"
underlineStyle={{display: 'none'}}
/>

Your Environment

Tech
Version

Material-UI
1.0.0-beta.7

React
15.6.1

browser
chrome

Issue 2:
Like Select does, It'd be useful to allow TextField to receive a custom Input component.

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

Expected Behavior

Passing a custom Input element via the input prop.

<TextField
label="Name"
input={<CustomInput name="amount" id="amount-simple" />}
/>

Current Behavior

Having to stick to the default Mui Input

<TextField
label="Name"
/>

Context

My custom Input shows a specific icon depending on the error prop

Your Environment

Tech
Version

Material-UI
1.0.0-beta.31
Issue 1:
I wanted to make a small script that picks a random file, ask some questions about it and then go to the next file. I don't really need a full-fledged Command, would it be possible to move helpers like Question helper to their own component? (1) Right now i would have to use the Command component and set a default command (because i don't really need a "command"). It would be nice if the question helper just uses the default stdin stdout if those arguments are not supplied. (2). And secondly it would help if the Question helper has some convenient methods to create the questions. (3). I imagine a usage like this:

$helper = new QuestionHelper(); // pass optional other InputInterface / OutputInterface
$colors = $helper->choice(
'Please select your favorite color (defaults to red)',
array('red', 'blue', 'yellow'),
0);

// .. $helper -> another question

Same for being able to send color output to the console.

Issue 2:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
yes

Symfony version
latest

Workflow\Registry accepts only instances of Worflow\Workflow which makes decorating workflows awkward. It would allow for more flexibility if an interface was introduced here.
Issue 1:
Just like isequal(x) returns a function which compares to x, it would be nice that isa(T) returned a function which can be used to test if a value is of type T, that is:

isa(::Type{T}) where {T} = x -> isa(x, T)

(A user cannot define this method since isa is a built-in function).

Issue 2:
It would be nice to have a single argument isa for cleaner filtering code.

filter(x -> !isa(x, AbstractFloat), [1, 2.0])
# could become
filter(!isa(AbstractFloat), [1, 2.0])

This would provide some consistency with other functions, such as isequal, but since isa is a builtin function, defining other variants doesn't seem trivial.

julia> Core.isa(::Type{T}) where {T} = (x) -> isa(x, T)
ERROR: cannot add methods to a builtin function