WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
[Enter steps to reproduce below:]

Clicked on File > Open Folder (from already open project)

In file chooser, created a new folder, went inside, and clicked "open"

Opens the folder anyway without any issues. Clicking "New Window", "New File", all creates the same issue (but new windows, new files are created okay, and I can save new files without issue). Closing all windows and opening Atom fresh causes the errors to stop.

Atom Version: 0.165.0

System: linux 3.13.0-43-generic

Thrown From: Atom Core

Stack Trace

Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT

At events.js:85

Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)

Commands

Config

{
"core": {
"themes": [
"atom-dark-ui",
"base16-tomorrow-dark-theme"
]
},
"editor": {
"fontSize": 12
}
}

Installed Packages

# User
No installed packages

# Dev
No dev packages

Issue 2:
TEMPORARY WORKAROUND: ln -s /usr/share/atom/atom "/usr/share/atom/atom (deleted)"

Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT

Atom Version: 0.152.0

System: linux 3.13.0-40-generic

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At events.js:85

Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
Issue 1:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

When you render a react component inside a shadow DOM, events will not be dispatched in react. I.e. you do something like this:

<div onClick={() => alert('I have been clicked')}>foo bar</div>

but nothing happens. Someone investigated this already, got to the bottom of it and wrote a work around: https://stackoverflow.com/questions/37866237/click-event-not-firing-when-react-component-in-a-shadow-dom

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

Following the official docs (https://facebook.github.io/react/docs/web-components.html ):

https://jsfiddle.net/84v837e9/187/

What is the expected behavior?

Events should be dispatched even when the react app is rendered in a shadow dom

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

All browsers, tested with react 15.

Issue 2:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

A React Component with an Event Handler (for example onClick) is rendered inside a Web Component. When the Component is clicked the Event does not receive the React Component (specified callback is not invoked)

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).

You can reproduce it with Web Component example contained in the react repository (https://github.com/facebook/react/blob/master/examples/webcomponents/index.html): Replace the 'a' element with a button and add for example an onClick event handler.

You can find a modified version of the Web Component example (based on the 15.4.2 codebase - https://github.com/facebook/react/blob/v15.4.2/examples/webcomponents/index.html) here:

https://gist.github.com/nilshartmann/3a520920e5fc920bfde49e077ad3beab#file-index-html-L50

What is the expected behavior?

The event handler should be called.

For testing I have modified getEventTarget.js to return the target from the path property of the nativeEvent (instead of the "original" target from the nativeEvent). With this addition it works -

the Event Handler is called.

You can find the modified version also in the gist: https://gist.github.com/nilshartmann/3a520920e5fc920bfde49e077ad3beab#file-geteventtarget-js-L6

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

15.4.x and 16.x

I've tested in Chrome, Firefox and Safari. I don't know if it works in previous versions of React (don't think so)
Issue 1:
Neo4j version: 4.1.3

Operating system: MacOS Catalina 10.15.7

API/Driver: Neo4j Browser

The command db.schema.visualization contains loops suggesting that nodes have relationships with other nodes of the same type, but this it not the case in this graph.

I include a screenshot below in which you can see the output of db.schema.visualization and also a Cypher query showing that there are no nodes with this loopback relationship.

Issue 2:
This question looks like a duplicate of #3872 , however I'm unable to upgrade neo4j any further than 2.2.8.

A basic query to return the searched Node works correctly, however when I try to delete the node with DELETE, I get the following error:

org.neo4j.kernel.impl.core.NodeManager.isDeleted(Lorg/neo4j/graphdb/Node;)Z

A sample of the query I'm using is as follows (the queried node definitely exists):

MATCH (n {comment:"Adding subbcomment to midland"})
DELETE n

I've tested this behaviour across Neo4J Enterprise 2.2.1 and 2.2.8, and the error occurs across both. I've also re-downloaded the packages and the error persists.

Noteable behaviour: through the webadmin, if I click and examine the returned node and click the 'Delete' button, it is successfully deleted.

Is there some sort of dependency or JAR that I am missing perhaps? Any help is greatly appreciated.
Issue 1:
Environment

Windows build number: Win32NT 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2762.0

Steps to reproduce

ssh to a Linux box.

Get Markus Kuhn's UTF-8 decoder capability and stress test file.

cat UTF-8-test.txt

Expected behavior

Consistent output (which, by the way, reasonably closely matches what's described in the file), regardless of timing, including with various parameters to slowcat.

Actual behavior

Faulty and inconsistent output, presumably depending on the timing of events.

Often the output terminates way too prematurely, e.g. during the intro or section 1 or 2 of the file. Sometimes the succeeding shell prompt isn't printed either, although the shell is already ready to accept a new command.

Other times the output ends as the end of the text file, but as you scroll back you'll notice that a big chunk is missing.

Issue 2:
Environment

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

Monitor 1: 3840x2160 (225%)
Monitor 2 (new default): 2560x1440 (125%)

Steps to reproduce

Open Terminal and maximize its window

Attach a new default monitor to the device with a different scaling percentage from the previous one (the window is moved to the new monitor retaining its maximized state)

💥

It's easier to notice this if the new default monitor is placed on the left of the previous one.

Expected behavior

The title bar is sized correctly.

Actual behavior

The title bar is wider than the actual window by 9px.

Resizing the window fixes the width.

This is a little annoying because the 9px grey area goes on to the next monitor and it does nothing when you click on it.
Issue 1:
My issue is about optimize.shgo. It gives an unexpected TypeError.

When running the following

from scipy.optimize import rosen, rosen_der, rosen_hess
bounds = [(0,1.6), (0, 1.6), (0, 1.4), (0, 1.4), (0, 1.4)]
result = scipy.optimize.shgo(rosen, bounds, options={'jac':rosen_der,'hess':rosen_hess})

I get

TypeError: _minimize_slsqp() got multiple values for argument 'jac'

I believe that jac is correctly specified here (see this documentation). Did I make a mistake or is there a bug here?

Scipy/Numpy/Python version information:

1.6.0 1.20.0 sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)

Issue 2:
The shgo implementation seems to be unable to handle the gradient calculation option where the gradient is directly returned alongside the objective value by the objective function (as indicated by using 'jac': True).

I think the minimal working example below demonstrates the issue quite well.

It works fine when passing a separate Callable that calculates the gradient for 'jac'

Reproducing code example:

from scipy.optimize import shgo

def func(x):
return np.sum(np.power(x, 2)), 2 * x

shgo(
func,
bounds=[[-1,1], [1,2], [-1,1], [1,2], [0,3]],
n=100, iters=5,
sampling_method="sobol",
minimizer_kwargs={'method': 'SLSQP', 'jac': True}
)

Error message:

Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/david/anaconda3/envs/bachelor-project/lib/python3.8/site-packages/scipy/optimize/_shgo.py", line 421, in shgo
shc.construct_complex()
File "/home/david/anaconda3/envs/bachelor-project/lib/python3.8/site-packages/scipy/optimize/_shgo.py", line 726, in construct_complex
self.iterate()
File "/home/david/anaconda3/envs/bachelor-project/lib/python3.8/site-packages/scipy/optimize/_shgo.py", line 869, in iterate
self.iterate_complex()
File "/home/david/anaconda3/envs/bachelor-project/lib/python3.8/site-packages/scipy/optimize/_shgo.py", line 906, in iterate_delaunay
self.sampled_surface(infty_cons_sampl=self.infty_cons_sampl)
File "/home/david/anaconda3/envs/bachelor-project/lib/python3.8/site-packages/scipy/optimize/_shgo.py", line 1236, in sampled_surface
self.fun_ref()
File "/home/david/anaconda3/envs/bachelor-project/lib/python3.8/site-packages/scipy/optimize/_shgo.py", line 1447, in fun_ref
self.F[i] = self.func(self.C[i, :], *self.args)
ValueError: setting an array element with a sequence.

Scipy/Numpy/Python version information:

scipy: 1.6.0
numpy: 1.19.2
sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)

-->
Issue 1:
I would like to have keyboard shortcuts on close dialog to chose options

S - save

N - dont save

C - cancel

Issue 2:
Using Atom 0.19.5 on Windows pressing either escape or the little X in the dialog corner, I am getting "0" returned as result, as if the user was pressing the primary button. I would expect undefined or null.

To reproduce just run Atom hello world and on startup do this:

var result = dialog.showMessageBox({
type: 'info',
message: 'message',
buttons: ['Yes', 'No']
});

console.log(result);

Then just press escape or the X in the dialog title.
Issue 1:
When creating a local variable in a template with the pound symbol works only with lowercase names.

Example that works:

<input type="text" #varf (keyup)="$event"> {{varf.value}}

Example that doesn't works (note the uppecase F):

<input type="text" #varF (keyup)="$event"> {{varF.value}}

Plunker example

Issue 2:
With the new parser #4417 we should switch to no longer convert dash-case to camelCase and instead honor the properties as is.
Issue 1:
Using:

from cStringIO import StringIO
df1 = pd.read_csv(StringIO("""s,date,v\nQ,2013-11-21 00:00:00,1\nQ,2013-11-22 00:00:00,2\nQ,2013-11-22 00:00:00,3"""),
index_col=[0,1])
df2 = pd.read_csv(StringIO("""s,date,v\nQ,2013-11-21 00:00:00,1\nQ,2013-11-22 00:00:00,2\nQ,2013-11-23 00:00:00,3"""),
index_col=[0,1])

Observer how slicing performs very different and non intuitively in these cases:

In [4]: df1.ix[["Q"]]
Out[4]:
v
Q NaN

[1 rows x 1 columns]

In [5]: df2.ix[["Q"]]
Out[5]:
v
s date
Q 2013-11-21 00:00:00 1
2013-11-22 00:00:00 2
2013-11-23 00:00:00 3

[3 rows x 1 columns]

I feel that a warning like this: http://pandas.pydata.org/pandas-docs/stable/indexing.html?highlight=sort#the-need-for-sortedness-with-multiindex should happen when there are duplicates in the index.

Issue 2:
from pydata mailing list:

"""

The problem I'm hitting is in getting setup.py to run either with build_ext --inplace or develop, so I can run 'nosetests pandas'

cc1.exe: error: unrecognized command line option '-mno-cygwin'

error: command 'gcc' failed with exit status 1

Which looks like a possible case of http://bugs.python.org/issue12641.

Some details:

I'm running python 2.7.2 on Windows 64.

mingw installed per http://wiki.cython.org/InstallingOnWindows:

C:\Users\US\pandas>gcc --version

gcc (GCC) 4.6.2

Copyright (C) 2011 Free Software Foundation, Inc.

"""
Issue 1:
In 0.5 the following works,

abstract foo{T}
immutable bar <: foo end

but in 0.6 it gives "invalid subtyping in definition of bar". You can fix it by putting immutable bar <: foo{Any}, which afaict gives the behavior 0.5 used to.

If this is intended, unless I've missed it then I think this should be mentioned in NEWS.md. I'm probably biased because this pattern appeared in my code a lot, but I would vote for it being near the top.

Actually, FWIW I thought the 0.5 version is nicer, I have lots of types with many parameters, and its getting a bit ugly to keep writing foo{Any,Any,Any,...}, so actually unless I missed why this is required or this is actually a bug, my vote would be to allow the old syntax.

Issue 2:
It is possible to create zeros(Int32(2)) and ones(Int32(2)) arrays but falses(Int32(2)) or trues(Int32(2)) fail both 0.4.5 with

ERROR: MethodError:converthas no method matching convert(::Type{BitArray{N}}, ::Int32)

and 0.5 with

ERROR: MethodError: no method matching trues(::Tuple{Int32})

Julia Version 0.4.5
Commit 2ac304d* (2016-03-18 00:58 UTC)
Platform Info:
System: Linux (x86_64-redhat-linux)
CPU: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblasp.so.0
LIBM: libopenlibm
LLVM: libLLVM-3.3
Issue 1:
System information (version)

OpenCV =>4.12

Operating System / Platform => Windows 64 Bit

Compiler => PyCharm 2018 CE

Detailed description

i tried to run text detection.py based on my own east model, but it failed at

''outs = net.forward(outNames)''

cv2.error: OpenCV(4.1.1) .\opencv-python\opencv\modules\dnn\src\dnn.cpp:525: error: (-2:Unspecified error)

Can't create layer "resnet_v1_50/conv1/BatchNorm/FusedBatchNormV3" of type "FusedBatchNormV3" in function 'cv::dnn::dnn4_v20190621::LayerData::getLayerInstance'

i saved my model in this:

output_graph = "frozen_east_model_02.pb"

output_graph_def = tf.graph_util.convert_variables_to_constants(sess, sess.graph_def,

["feature_fusion/Conv_7/Sigmoid",

"feature_fusion/concat_3"])

tf.train.write_graph(output_graph_def, ".", output_graph, as_text=False)

i have tried to modify model.py ， nevertheless it did not work.

https://github.com/argman/EAST/blob/master/model.py Line 150

c1_1 = slim.conv2d(tf.concat([g[i-1], f[i]], axis=3), num_outputs[i], 1)

pi2 = 0.5 * np.pi

angle_map = (slim.conv2d(g[3], 1, 1, activation_fn=tf.nn.sigmoid, normalizer_fn=None) - 0.5) * pi2 # angle is between [-45, 45]

F_geometry = tf.concat([geo_map, angle_map], axis=3)

Steps to reproduce

Issue 2:
System information (version)

OpenCV => 4.1

Operating System / Platform => macOS Mojave (10.14.3)

Compiler => XCode 10.3

Detailed description

The camera crashes while trying to initialize when the user is prompted with the "Do you allow to access your camera?" instead of waiting for approval. After granting approval and rerunning the program again everything works just as intended but it is not good for development where the binary changes often and every time you want to test a change you have to run your code twice.

Note

In order to force the authorization prompt to appear I added the Info.plist file to be copied to the binary like the suggestion in this StackOverflow post

Steps to reproduce

#include "opencv2/opencv.hpp"

int main() {
const int cameraDev = 0;
cv::VideoCapture capture(cameraDev);

while (!capture.isOpened()) {
return -1;
}

cv::Mat frame;

while(true) {
capture >> frame;

if (frame.empty()) {
std::cout << "Empty frame, breaking!" << std::endl;
break;
}

cv::imshow("What I see", frame);

if (cv::waitKey(30) == 27) break; // KEY_ESCAPE
}
return 0;
}

Hit run.

Accept the prompt when the popup appears.

Stop the execution.

Run again.
Issue 1:
Flow v0.32 adds a new syntax for exact object types. It uses {| and |} instead of { and }. It supports code like this now:

type Foo = {|
x: string;
y: number;
|};
function foo(object: {| x: string, y: number |}) {
}

Babel Configuration (.bablerc, package.json, cli command)

{
"plugins": ["transform-flow-strip-types"]
}

Expected Behavior

In Flow annotations, Babel should handle {| ... |} similarly to { ... } and the transform-flow-strip-types plugin should strip it out just the same. With transform-flow-strip-types, the code should compile to something like:

function foo(object) {}

(And if the syntax-flow plugin is present and not the transform-flow-strip-types plugin, then Babel should be able to reproduce the original code with the {| ... |} syntax preserved.)

Current Behavior

SyntaxError: test.js: Unexpected token (1:12)
> 1 | type Foo = {|
| ^
2 | x: string;
3 | y: number;
4 | |};

Your Environment

software
version

Babel
6.14.0

Issue 2:
In case the UMD formatter is used, it would be great if the detected module system was also exposed somehow. It would allow for even greater dirty hacks...

Right now I need to duplicate the detection code (sniffing the global object since export & module are function parameters for the factory) in order to conditionally load other modules.
Issue 1:
Motivating examples:

(100_0000_0000_0000_2345u64).to_f64(); // => Some(1000000000000002244f64)
(42.5f64).to_u8(); // => Some(42u8)
(42.5e80f64).to_u8(); // => Some(0u8)
(42.5e80f64).to_i32(); // => Some(-2147483648i32)

Note that the last two results can change depending on your optimization level. (Is it another issue?) It seems that it's due to the constant propagation across inlined function calls.

Currently we check for such cases in int to int and float to float conversion, but we don't check (and solely rely on casting) in int to float and float to int conversion. This can cause the inexact computation in two ways: unwanted truncation, and failed bound check. Four possible decisions have their pros and cons respectively, but should be decided and documented.

Issue 2:
Status as of 2020-04-18

We intend to stabilize the saturating-float-casts behavior for as, and have stabilized unsafe library functions that handle the previous behavior. See #71269 for the latest discussion on that stabilization process.

Status as of 2018-11-05

A flag has been implemented in the compiler, -Zsaturating-float-casts, which will cause all float to integer casts have "saturating" behavior where if it's out of bounds it's clamped to the nearest bound. A call for benchmarking of this change went out awhile ago. Results, while positive in many projects, are quite negative for some projects and indicates that we're not done here.

The next steps are figuring out how to recover performance for these cases:

One option is to take today's as cast behavior (which is UB in some cases) and add unsafe functions for the relevant types and such.

Another is to wait for LLVM to add a freeze concept which means that we get a garbage bit pattern, but it's at least not UB

Another is to implement casts via inline assembly in LLVM IR, as the current codegen is not heavily optimized.

Old status

UPDATE (by @nikomatsakis): After much discussion, we've got the rudiments of a plan for how to address this problem. But we need some help with actually investigating the performance impact and working out the final details!

ORIGINAL ISSUE FOLLOWS:

If the value cannot fit in ty2, the results are undefined.

1.04E+17 as u8
Issue 1:
FWIW this may be a duplicate of another issue I remember seeing. I skimmed through and could not find it, thus thus issue.

What version of Go are you using (go version)?

1.6

What operating system and processor architecture are you using (go env)?

GOOS="linux"

GOARCH="amd64"

What did you do?

If possible, provide a recipe for reproducing the error.

A complete runnable program is good.

A link on play.golang.org is best.

https://play.golang.org/p/IccuDHNXXu

It seems any array size over 0xA00000 triggers this error.

What did you expect to see?

No compiler error.

What did you see instead?

prog.go:8: internal compiler error: esc return list

Issue 2:
by mathew1800:

See: https://code.google.com/p/go/source/browse/src/cmd/6g/gsubr.c#2163

There is the following:

if(o & OAddable) {
naddr(reg1, a, 1);
a->offset = 0;
a->scale = w;
a->index = a->type;
a->type = reg->val.u.reg + D_INDIR;
} else {
naddr(reg1, a, 1);
a->offset = 0;
a->scale = w;
a->index = a->type;
a->type = reg->val.u.reg + D_INDIR;
}

This was likely a copy/paste error or something.
Issue 1:
Describe the bug

when i execute db.fetch_all(query), then ValueError: not enough values to unpack expected 5, got 4 is existed

To Reproduce

Settings = Table(
"settings",
METADATA,
Column("key", String(length=128), nullable=False, index=True, unique=True),
Column("value", JSON, nullable=True),
)

query = select([Settings])
db = DB.get()
async with db.transaction():
result = await db.fetch_all(query)

Error

ERROR: Exception in ASGI application

Traceback (most recent call last):

File "/usr/local/lib/python3.8/dist-packages/xxx/api/v1/setting.py", line 114, in list_settings

db_settings = await db_api.list_settings()

File "/usr/local/lib/python3.8/dist-packages/xxx/db/api.py", line 35, in wrapper

return await fn(*args, **kwargs)

File "/usr/local/lib/python3.8/dist-packages/xxx/db/api.py", line 84, in list_settings

result = await db.fetch_all(sql)

File "/usr/local/lib/python3.8/dist-packages/databases/core.py", line 149, in fetch_all

return await connection.fetch_all(query, values)

File "/usr/local/lib/python3.8/dist-packages/databases/core.py", line 271, in fetch_all

return await self._connection.fetch_all(built_query)

File "/usr/local/lib/python3.8/dist-packages/databases/backends/sqlite.py", line 95, in fetch_all

metadata = CursorResultMetaData(context, cursor.description)

File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/cursor.py", line 190, in init

Versions

OS: Centos 8

Python: 3.8

SQLAlchemy: 1.4.42

Database: sqlite3

DBAPI (eg: psycopg, cx_oracle, mysqlclient):

Additional context

I modified /usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/cursor.py

_compile():

execution_context.result_column_struct = (

compiled._result_columns,

compiled._ordered_columns,

compiled._textual_ordered_columns,

None, # add

compiled._loose_column_name_matching,

)

when I add None in excution_context.result_column_struct，the error disappeared.

Issue 2:
Describe the bug

When following the FastAPI Async Rational DB(https://fastapi.tiangolo.com/advanced/async-sql-databases/) turtorial I was unable to complete it as I kept getting the issue(see stackoverflow https://stackoverflow.com/questions/74089620/python-databases-library-cant-fetch-all-from-mysql-database)

However after downgrading it fixed the issue

To Reproduce

see fastapi turtorial

Error

File "c:\users\nikhi\desktop\upwork\srinath srinath\api_project\venv\lib\site-packages\databases\backends\mysql.py", line 115, in fetch_all

metadata = CursorResultMetaData(context, cursor.description)

File "c:\users\nikhi\desktop\upwork\srinath srinath\api_project\venv\lib\site-packages\sqlalchemy\engine\cursor.py", line 164, in init

(

ValueError: not enough values to unpack (expected 5, got 4)

Versions

OS:

Python: 3,10

SQLAlchemy: 1.4.42

Database: Mysql seems to be every version

DBAPI (eg: psycopg, cx_oracle, mysqlclient):

Additional context

No response