WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Expected Behavior

Using flask run should result in appropriate import error messages if erroneous imports are used in a flask app.

Consider the two flask apps worksjustfine.py:

from flask import Flask
app = Flask(__name__)

and completelymisleading.py:

import flask
import batrachomyomachy
app = flask.Flask(__name__)

If you fire up worksjustfine.py, it works just fine:

$ FLASK_APP=worksjustfine.py flask run
* Serving Flask app "worksjustfine"
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

If you fire up completelymisleading.py, you would expect something like this:

$ FLASK_APP=completelymisleading.py flask run
...
ImportError: No module named 'batrachomyomachy'

Actual Behavior

$ FLASK_APP=completelymisleading.py flask run
Usage: flask run [OPTIONS]

Error: The file/path provided (completelymisleading) does not appear to exist. Please verify the path is correct. If app is not on PYTHONPATH, ensure the extension is .py

This error message is completely misleading, because the file does exist and flask run also starts to import this file. I imagine that somewhere in the flask run code there is a try ... except ImportError that is meant for the situation when the actual flask app can not be found, but one would definitely need a more specific error message for other import errors.

Environment

Python version: 3.5.3

Flask version: 0.12

Issue 2:
(Observed on Python 2.7; untested on 3.x)

Steps to reproduce:

echo "import thisisnotarealpackage" > error_app.py
export FLASK_APP=error_app.py
flask run

Expected result:

Some indication that thisisnotarealpackage is not a real package

Observed result:

Usage: python -m flask run [OPTIONS]

Error: The file/path provided (error) does not appear to exist.
Please verify the path is correct.
If app is not on PYTHONPATH, ensure the extension is .py

(Newlines added)

Why Bother

This has been causing some confusion on my team because cx_Oracle can fail to import (from the bowels of SQLAlchemy) if it can't find certain Oracle support files on the host machine.
Issue 1:
Code Sample

import numpy as np
import pandas as pd
S = pd.Series([np.nan,1.5,np.nan,2,np.nan,np.nan,np.nan,1,1,2,2,2,3])
print S; print; print set(S)

Problem description

The NaNs show up multiple times in set(S), which is not a problem if

S = [np.nan,1.5,np.nan,2,np.nan,np.nan,np.nan,1,1,2,2,2,3]

is used instead. The multiple NaNs in set(S) also become very slow to run if

S = pd.Series([np.nan,1.5,np.nan,2,np.nan,np.nan,np.nan,1,1,2,2,2,3] + [np.nan] * 100000)

is used. Without pd.Series it's a flash of a second.

Issue 2:
In [21]: df = DataFrame({'A' : np.random.randn(5),
'B' : np.random.randn(5),'C' : np.random.randn(5),
'D':['a','b','c','d','e'] })

In [22]: df
Out[22]:
A B C D
0 -0.941264 0.272726 -0.547948 a
1 0.069432 1.398414 0.039093 b
2 -0.073638 -1.264676 -1.339994 c
3 1.520017 -0.562979 -0.739326 d
4 -0.395157 0.542807 0.766582 e

[5 rows x 4 columns]

In [23]: df.take([2,0,1,2,3], axis=1).drop('C',axis=1)
Out[23]:
A B D
0 -0.941264 0.272726 a
1 0.069432 1.398414 b
2 -0.073638 -1.264676 c
3 1.520017 -0.562979 d
4 -0.395157 0.542807 e

[5 rows x 3 columns]

In [24]: df.take([2,0,1,2,1], axis=1).drop('C',axis=1)
IndexError: index 3 is out of bounds for axis 0 with size 3
Issue 1:
One way to implement #7739 would be to create a headless test device. This would be based off of sky_shell, and be accessed through something like flutter run -d test_shell.

@tvolkert @yjbanov

Issue 2:
A HostDevice is similar to AndroidDevice and IOSDevice but runs Flutter shell on the host machine instead of a real device or an emulator. We already do this for flutter test. This feature request is to extend this capability to other commands, especially run and drive.

Flutter tools should have an option to use a host device as a deployment target. Strawman:

flutter run -d host
flutter drive -d host

Why?

tl;dr so we can run more tests on Travis as a pre-submit step

smoke-test flutter sub-commands, such as run and drive

sanity check our integration tests prior to sending them over to the device lab, such as:

performance tests

hot-reload dev cycle tests

/cc @devoncarew
Issue 1:
Problem description

I recently updated material-ui from 0.18.2 to 0.18.4 and noticed that the buttons in my application have a unusual white gap on the bottom of the buttons with a containerElement attached to it (the element is a react element.

I switched back to 0.18.2 and the gap seized to exist. I upgrade to 0.18.3 and it still didn't appear until I upgraded to 0.18.4.

The difference seems to be that the button now has a overflow: hidden attribute to it whereas the other buttons do not show this attribute at all.

Link to minimal working code that reproduces the issue

You can see this problem on the demo where a RaisedButton

has the gap when you hover over it. I don't see this problem in other buttons.

Versions

Material-UI: 0.18.4

React: 15.6.1

Browser: Chrome 58.0.3029.110 (64-bit)

Issue 2:
The latest release 0.18.4 adds overflow: hidden; to a containerElement on RaisedButton. This is not happening with 0.18.3. It increases the height of the button and displays a white border at the bottom of the button,

Also checked FlatButton, which still works properly.

Here is a link to a reproduction:

https://www.webpackbin.com/bins/-KnZlC-OMVsBCErCmgGD

EDIT: for convenience, here is a link to webpackbin with 0.18.3

https://www.webpackbin.com/bins/-KnZuTGm_5ZPX8yRYMgR
Issue 1:
VSCode Version: 1.1.1

OS Version: Windows 8.1

Steps to Reproduce:

open html file

alt+shift+RightArrow

works for me in other language modes, but not in HTML

Issue 2:
I can not use editor.action.smartSelect.grow and editor.action.smartSelect.shrink functions to working on html file. I don't think the develop team have any reason to disable them on html file. It's should be working on any file!! Any body know why?

Please fix it!

Thanks!
Issue 1:
Create a react project with Typescript and start to report errors as soon as it runs.

Errors

D:\XXXXXX\node_modules\react-scripts\scripts\utils\verifyTypeScriptSetup.js:239

appTsConfig.compilerOptions[option] = value;

TypeError: Cannot assign to read only property 'jsx' of object '#'

at verifyTypeScriptSetup (D:\Code\react-demo-ts\node_modules\react-scripts\scripts\utils\verifyTypeScriptSetup.js:239:43)

at Object. (D:\Code\react-demo-ts\node_modules\react-scripts\scripts\start.js:31:1)

at Module._compile (internal/modules/cjs/loader.js:1063:30)

at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)

at Module.load (internal/modules/cjs/loader.js:928:32)

at Function.Module._load (internal/modules/cjs/loader.js:769:14)

at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)

at internal/main/run_main_module.js:17:47

error Command failed with exit code 1.

Issue 2:
Describe the bug

When creating a react-typescript app using

npx create-react-app . --template typescript

The error:

yarn run v1.22.5
$ react-scripts start
/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239
appTsConfig.compilerOptions[option] = value;
^

TypeError: Cannot assign to read only property 'jsx' of object '#<Object>'
at verifyTypeScriptSetup (/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/utils/verifyTypeScriptSetup.js:239:43)
at Object.<anonymous> (/home/aditya/all/yt/twitter/node_modules/react-scripts/scripts/start.js:31:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Issue 1:
As recently discussed on the TensorFlow mailing list (https://groups.google.com/a/tensorflow.org/d/msg/discuss/GUW0KOmN7MM/2lRMD4JVAQAJ), it would be nice if TensorBoard would include an export function that supports exporting the graph in a vector graphics format (e.g., SVG or EPS, or both) in addition to the current PNG export function.

For instance, I recently bumped into a case where I wanted to include the TensorBoard graph as an example output of a tutorial section on TensorBoard in my book and found that the PNG version is "too low-res" and not very helpful so that I had to manually redraw it. Also, I like to include TensorBoard graphs in reports some times after applying some stylistic changes and recently stumbled upon a browser utility called "SVG crowbar" that can get the graph from TensorBoard in SVG format -- with some workarounds. This indicates that it may already be in SVG format, and it would be nice to allow to export it to disk for styling and generating high res figures.

Issue 2:
Hi All,

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A

TensorFlow installed from (source or binary): source

TensorFlow version: 1.12.0

Bazel installed version : 0.21.0

Python version: 3.6

Installed using virtualenv? pip? conda?:

Bazel version (if compiling from source): 0.21.0

GCC/Compiler version (if compiling from source): gcc 7.3

CUDA/cuDNN version: N/A

GPU model and memory: N/a

I'm trying to build tensorflow from source on arm64 (aarch64) but got stucked at the following:

INFO: From Compiling tensorflow/core/kernels/diag_op.cc [for host]:

tensorflow/core/kernels/diag_op.cc:118:1: warning: multi-line comment [-Wcomment]

// `new_index = i1*(s2*...sks1...sk) + i2(s3*...sks1*...*sk) +... +

^

ERROR: /home/rock64/tensorflow/tensorflow/core/kernels/BUILD:2187:1: C++ compilation of rule '//tensorflow/core/kernels:resource_variable_ops' failed (Exit 4)

gcc: internal compiler error: Killed (program cc1plus)

Please submit a full bug report,

with preprocessed source if appropriate.

See file:///usr/share/doc/gcc-7/README.Bugs for instructions.

Target //tensorflow/tools/pip_package:build_pip_package failed to build

Use --verbose_failures to see the command lines of failed build steps.

INFO: Elapsed time: 3734.152s, Critical Path: 279.33s

INFO: 4043 processes: 4043 local.

FAILED: Build did NOT complete successfully

Bazel installed version : 0.21.0

Tensorflow : 1.12.0

installed gcc-aarch64-linux-gnu & g++-aarch64-linux-gnu
Issue 1:
Description

I have following form types: ContactType.php and SendContactType.php.

I have following entities with constraints: Contact.php and SendContact.php.

They code for theose files can be seen at: https://gist.github.com/1199860.

The problem is with the something field of ContactType.

When that field is something simple (type text for example) everything works.

If the value is shorter that 3 the error gets added to field's error list.

But when that field is of type repeated something gets broken. When assertion

fails the error gets added to the outermost form instead of "something" field.

Basically with this code:

$form = $this->get('form.factory')->create(new SendContactType());
$form->bindRequest($request);
if (!$form->isValid()) {
var_dump($form->getErrors());
}

A non-empty array is unexpectedly dumped with the error/message that shouldn't be there but down the tree.

My analysis

Basically what happens in this case is that the propertyPath put together during validation graph walking doesn't match

any of the patterns later generated in DegelatingValidator::buildFormPathMapping() etc. This happens

when a form embeds another form containing a type repeated field.

The propertyPath generated for something field is string(32) "children[contact].data.something".

The patterns DelegatingValidator generates and tries to match it against:

string(25) "/^children\.data\.(?!\w)/"
string(30) "/^children\.data\.agree(?!\w)/"
string(36) "/^children\[contact\]\.data\.(?!\w)/"
string(49) "/^children\[contact\]\[something\]\.data\.(?!\w)/"
string(54) "/^children\[contact\]\[something\]\.data\.first(?!\w)/"
string(55) "/^children\[contact\]\[something\]\.data\.second(?!\w)/"
string(41) "/^children\[contact\]\[something\](?!\w)/"
string(43) "/^children\[contact\]\.data\.message(?!\w)/"
string(28) "/^children\[contact\](?!\w)/"

The last one in this list is first that matches and that's why the error gets added to form, but it really should match earlier.

Issue 2:
Description

New feature request has start with the blog post : Form field help. It's a great post that explain how to extend a form to add a custom option help to show help message. I asked myself how to add this help message in an item choice of choiceType form. I wanted to make that like a choice_attr and callable function. But I cant. I fact ChoiceType create his children fields (Radio or Checkbox) with ChoiceView class and we can't add your custom options.

In resume we can't extend choice_options like this:

$builder
->add('dilem', ChoiceType::class, [
'choices' => [
'foo' => false,
'bar' => true,
],
'choice_options' => function ($value, $key, $index) {
if ($value) {
return ['help' => 'My Help message'];
}
},
'expanded' => true,
'multiple' => false,
]) ;

I want to modify the code and create the pull request but can someone can accompany me to do it properly ?
Issue 1:
<Button disableRipple /> throws an exception when the KeyDown event triggered.

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

Expected Behavior

Pressing the spacebar over keyboardFocused button should`t lead to exception.

Current Behavior

https://github.com/mui-org/material-ui/blob/c17d66e187cbb9acdd86c0c3735c84735085e836/src/ButtonBase/ButtonBase.js#L113

This line does not protect from that the this.ripple can be null.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/z6jwnmzq1p

Focus the button by keyboard

Press the spacebar

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

Expected Behavior

As I use material components, they mostly come with the Robot font and I've found that Subheader is the first one I encountered that doesn't have the font declared. I was expecting it to be styled since other components are.

Current Behavior

The Subheader is not styled with a font family.
Issue 1:
Hi,

I am running elasticsearch 0.90.5 on windows 2008 R2. In service.bat I updated ES_HEAP_SIZE as 2g I checked script with Echo ON and it showed my 2g .

However when I run the service and check heap committed it comes as 111 mb .

I check running the es with elasticsearch.bat with ES_HEAP_SIZE=2g and it shows heap committed as 1.9 g.

By the way I am using server jre 1.7 u40 .

However I earlier tried client jre 1.7 u 25 but the result is same .

Thanks

Issue 2:
Currently the memory options are passed on as java options but these are ignored by the jvm.dll. They need to be extracted and passed through different arguments so they can be used before starting the java process.

Unfortunately this also means doing some conversion (from GB to MB and MB to KB).
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/8245/

Failed: [k8s.io] Load capacity [Feature:Performance] should be able to handle 30 pods per node {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/load.go:71
Expected
<int>: 1
not to be >
<int>: 0

Previous issues for this test: #26544

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-kubemark-5-gce/4982/

Failed: [k8s.io] Density [Feature:Performance] should allow starting 30 pods per node {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/density.go:150
There should be no high-latency requests
Expected
<int>: 2
not to be >
<int>: 0
Issue 1:
It would be great if we could save the values we use in the customiser. If I need to re-customize one or two values a week after downloading I have to enter all of the custom values again

Issue 2:
The new site has the awesome customization screen, but unless you manage your bookmarks like a champ, there's no clear mapping between which custom builds on your system correspond to which URLs on the site. It would rock socks if the URL of the custom build was in the header comment in the generated source files.

For example, In bootstrap.css, you could have something like:

/*!
* Bootstrap v3.0.0
* Custom build generated by http://getbootstrap.com/customize/?id=6277349
*
Issue 1:
In many places we're checking the numpy version by comparing strings. This will break when numpy gets to 1.10. Need to fix this all over the codebase for the next release.

Issue 2:
As mentioned in #2992

There are several places where version checking is done as follows:

np.version.short_version < '1.6'. This will do the wrong thing if numpy ever gets to version 1.10 or higher.
Issue 1:
I am looking at broadcast.jl and wondering what magic is occurring for me to use ".+" in an expression and have it work but when I type it by itself it gives an error.

Why is it not like an addition where it's just a generic function?

The goal of my exploration is to try and document the ".+" and ".*" broadcasting ability.

Issue 2:
When more than one array is used on maximum, the output is confusing.

julia> max([1,2,3,2,1],[4,4,4,4,4])
5-element Array{Int64,1}:
4
4
4
4
4

julia> maximum([1,2,3,2,1],[4,4,4,4,4])
5-element Array{Int64,1}:
1
2
3
2
1

julia> maximum([4,4,4,4,4],[5,2,3,2,1])
1-element Array{Int64,1}:
4

julia> maximum([4,4,4,4,4],[5,5,5,5,5])
5-element Array{Int64,1}:
4
4
4
4
4
Issue 1:
req.respond({ body: renderApp(`
<body>
<script type="module">
import server from 'https://unpkg.com/browse/html-dom-parser@0.1.3/dist/html-dom-parser.min.js';
console.warn(server)
</script>
</body>
`) });

throws:

Download https://unpkg.com/browse/html-dom-parser@0.1.3/dist/html-dom-parser.min.js
error: Uncaught TypeError: Cannot resolve extension for "https://unpkg.com/browse/html-dom-parser@0.1.3/dist/html-dom-parser.min.js" with mediaType "Unknown".
at getExtension ($deno$/compiler/sourcefile.ts:42:13)
at new SourceFile ($deno$/compiler/sourcefile.ts:70:22)
at processImports ($deno$/compiler/imports.ts:122:45)
at async Object.processImports ($deno$/compiler/imports.ts:125:7)
at async compile (file:///home/runner/work/deno/deno/cli/js/compiler.ts:144:31)
at async tsCompilerOnMessage (file:///home/runner/work/deno/deno/cli/js/compiler.ts:359:22)
at async workerMessageRecvCallback ($deno$/runtime_worker.ts:73:9)

import in string should not be evaluated

Issue 2:
v0.20.0

Parser doesn't find declarations correctly?

[EDITED]

Previous example has unrelated mistake but I don' know which code can reproduce error I met.

I met this error when I ran -> https://raw.githubusercontent.com/keroxp/dink/v0.5.1/main.ts

That can be compiled with deno@v0.19.0. But got error below with v0.20.0:

error: Uncaught ImportPrefixMissing: relative import path "${resp.url}" not prefixed with / or ./ or ../
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
at unwrapResponse ($deno$/dispatch_json.ts:40:11)
at sendAsync ($deno$/dispatch_json.ts:85:10)
Issue 1:
The FreeBSD builder sporadically fails with (among other things) EADDRINUSE errors.

e.g.
Change 4e18f60442c2 broke the freebsd-386 build:
http://godashboard.appspot.com/log/c55befefa54d803c1b6327356ac0db98109203d2f462e9efb547462e7cc3f948

... shows a net.Dial failing.

This test program (attached) will reproduce it after a few tries on a 64-bit FreeBSD
8.0-RELEASE-p4 box:

[bradfitz@ch ~]$ ./stress
2011/04/14 09:22:34 at 0
2011/04/14 09:22:34 at 100
2011/04/14 09:22:34 at 200
2011/04/14 09:22:34 Accept: dial tcp 127.0.0.1:57021: address already in use

Output also includes sometimes:

...
2011/04/14 09:16:49 at 9400
2011/04/14 09:16:49 at 9500
2011/04/14 09:16:49 at 9600
2011/04/14 09:16:49 Accept: dial tcp 127.0.0.1:38028: connection reset by peer

Attachments:

stress.go (590 bytes)

Issue 2:
by CMT.miniBill:

What steps will reproduce the problem?
===
1. Install go on a normal kernel
2. Try to run /usr/bin/go on a grsec kernel
3. It crashes believing to be out of memory

What is the expected output?
===
Go is a tool for managing Go source code.

Usage:
...

What do you see instead?
===
throw: out of memory (FixAlloc)

Which compiler are you using (5g, 6g, 8g, gccgo)?
===
I don't know

Which operating system are you using?
===
Gentoo Linux

Which version are you using? (run 'go version')
===
I can't run 'go version'. Eix reports 1.0.3

Please provide any additional information below.

this is the tail of a strace

mmap(NULL, 131072, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
-1 EPERM (Operation not permitted)
write(2, "throw: ", 7throw: ) = 7
write(2, "out of memory (FixAlloc)", 24out of memory (FixAlloc)) = 24
write(2, "\n", 1
) = 1
exit_group(2) = ?
+++ exited with 2 +++
Issue 1:
[Y ] I have searched the issues of this repository and believe that this is not a duplicate.

[Y ] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.5.9

Operating System version: WIN10

Java version: IBM 1.6

Steps to reproduce this issue

1，xml中配置若干条dubbo registry，同时指定consumer的registry为其中1个

<dubbo:registry id="r1" ...../>

<dubbo:registry id="r2" ...../>

<dubbo:consumer registry="r1"/>

2，消费方通过@reference注解订阅一个服务

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

Expected Result

消费方通过registry r1正常订阅

Actual Result

消费方订阅时报错No such any registry to refer service in consumer xxxxx

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

Just put your stack trace here!

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.6.0及以上

Operating System version: mac

Java version: 1.8

Steps to reproduce this issue

2.5.3版本通过javassist动态加载class，没有任何问题

2.6.0及以上版本通过javassist加载class，在idea内启动项目没有问题，但是通过springboot java -jar启动后会报javassist.NotFoundException异常。

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

Expected Result

Caused by: javassist.NotFoundException: com.alibaba.dubbo.common.bytecode.Wrapper

at javassist.ClassPool.get(ClassPool.java:452)

at com.alibaba.dubbo.common.bytecode.ClassGenerator.toClass(ClassGenerator.java:263)

What do you expected from the above steps？

Actual Result

无法正常加载业务class

What actually happens?

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

Just put your stack trace here!