WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Python 3.7.6 (default, Jan 30 2020, 09:44:41)
[GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.__version__
'1.17.0'
>>> np.lexsort(np.empty((0, 2), dtype=int).T)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<__array_function__ internals>", line 6, in lexsort
MemoryError
>>>

Issue 2:
Numpy 1.17.0 raises MemoryError when using lexsort on an empty array with non-standard strides. If strides is the natural one, or if there is >= 1 element in the input, then it works as expected.

Reproducing code example:

import numpy as np

xs = np.array([], dtype='i8')
assert xs.strides == (8,)
assert np.lexsort((xs,)).shape[0] == 0 # Works

ys = np.array([0], dtype='i8')
ys.strides = (16,)
assert np.lexsort((ys,)).shape[0] == 1 # Works

xs.strides = (16,)
assert np.lexsort((xs,)).shape[0] == 0 # MemoryError

Numpy/Python version information:

1.17.0 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)]
Issue 1:
Bug report

Markers appear smeared and not clear

When I plot markers with pyplot they show compression artifacts even when I save them as PNG.

Code for reproduction

#!/usr/bin/env python

import numpy as np
import matplotlib.pyplot as plt

x = [1, 2, 3]

plt.errorbar(x, x, xerr=.05, yerr=.02, fmt='+')

plt.savefig('test.png')

Actual outcome

See image attached.

Expected outcome

I want markers without smearing or interpolation as clear as the resolution permits.

Matplotlib version

Matplotlib version 2.0.0, Python 2.7.13 and Debian 9.

Matplotlib installed with pip

Issue 2:
Using errorbar does not properly center the errorbar on the marker. See the following example and output. The issue persists in the legend as well. The errorbar is a few pixels off center and changing the linewidth does not solve the issue. snap kwarg has no effect either. I have reproduced this using matplotlib 1.2.1 and 1.3.1 on Mac OSX 10.8.4.

import matplotlib.pyplot as plt
plt.errorbar([1],[1],[0.1],fmt='k^',capsize=5,capthick=2,ms=9,markerfacecolor='none',mew=2)
plt.show()
Issue 1:
Noticed by accident. After running go get for an invalid directory, the first go get -u fails, and the second succeeds. The internal error lines at the end are #14444. This issue is about the fact that the two runs of go get -u .../ fail in different ways.

I haven't looked into it.

> mkdir /tmp/gopath2
> GOPATH=/tmp/gopath2 go get golang.org/x/tools/cmd/imports # does not exist
package golang.org/x/tools/cmd/imports: cannot find package "golang.org/x/tools/cmd/imports" in any of:
/home/iant/go/src/golang.org/x/tools/cmd/imports (from $GOROOT)
/tmp/gopath2/src/golang.org/x/tools/cmd/imports (from $GOPATH)
> GOPATH=/tmp/gopath2 go get -u .../
/tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:20:2: cannot find package "golang.org/x/text/encoding" in any of:
/home/iant/go/src/golang.org/x/text/encoding (from $GOROOT)
/tmp/gopath2/src/golang.org/x/text/encoding (from $GOPATH)
/tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:21:2: cannot find package "golang.org/x/text/encoding/charmap" in any of:
/home/iant/go/src/golang.org/x/text/encoding/charmap (from $GOROOT)
/tmp/gopath2/src/golang.org/x/text/encoding/charmap (from $GOPATH)
/tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:22:2: cannot find package "golang.org/x/text/encoding/htmlindex" in any of:
/home/iant/go/src/golang.org/x/text/encoding/htmlindex (from $GOROOT)
/tmp/gopath2/src/golang.org/x/text/encoding/htmlindex (from $GOPATH)
/tmp/gopath2/src/golang.org/x/net/html/charset/charset.go:23:2: cannot find package "golang.org/x/text/transform" in any of:
/home/iant/go/src/golang.org/x/text/transform (from $GOROOT)
/tmp/gopath2/src/golang.org/x/text/transform (from $GOPATH)
/tmp/gopath2/src/golang.org/x/net/http2/h2i/h2i.go:38:2: cannot find package "golang.org/x/crypto/ssh/terminal" in any of:
/home/iant/go/src/golang.org/x/crypto/ssh/terminal (from $GOROOT)
/tmp/gopath2/src/golang.org/x/crypto/ssh/terminal (from $GOPATH)
> GOPATH=/tmp/gopath2 go get -u .../
internal error: duplicate loads of unsafe
internal error: duplicate loads of runtime/internal/sys
internal error: duplicate loads of runtime/internal/atomic
many other internal errors

Issue 2:
From:

go/src/net/dnsclient.go

Line 43
in
ced0646

if dns.rcode == dnsRcodeNameError && dns.recursion_available {

it looks like any NXDOMAIN reply where the server doesn't allow recursive queries is treated as "server misbehaving". I would expect this to be treated like any other case where the name doesn't exist and get a "no such host" error instead.

Any reason why we have the "&& dns.recursion_available" part of the condition?
Issue 1:
Costin Leau opened SPR-8334 and commented

SimpleCacheManager and MapCacheManager are identical and one of them should be eliminated.

Affects: 3.1 M1

Referenced from: commits 700a02b, cc519e7

Issue 2:
Dave Syer opened SPR-3156 and commented

Docos (or maybe assertion in code) to help with using DefaultMessageListenerContainer with non-XA transaction manager. It is actually quite plausible (and common) to use a DefaultMessageListenerContainer with a DataSourceTransactionManager (not full XA). Then database work done in the listener can rollback, but will guarantee a message rollback only if transactedSession=true. If the flag is true the worst that can happen is a duplicate message if the database commits, and the commit of the JMS session fails (power failure etc.). But the default is false, so you can get duplicate messages whatever happens with the datasource. It would help if the docos mentioned this scenario, or provided some protection (e.g. if the transaction manager is not JtaTranasactionManager, then make sure transactedSession=true).

Affects: 2.0.2
Issue 1:
I was looking at the templating helper classes in FrameworkBundle and SecurityBundle. There appears to be a fair about of code duplication between these classes and their Twig extension counterparts.

I realize helpers extend a base class, as do Twig extensions, so separate classes must continue to exist; however, we could use object composition to have the Twig extensions expose the helper's methods to Twig. In some cases, this might require an intermediary wrapping method in the helper.

Issue 2:
(Copied from #6522)

With the current implementation, the attributes passed in the attr option are rendered both in the <form> tag (new) and in the <div>/<table> tag of the form (for BC).

$form = $this->createForm('my_form', $formData, array(
'attr' => array(
'id' => 'foo',
'class' => 'bar',
),
));

Template:

{{ form(form) }}

->

<form id="foo" class="bar">
<div id="foo" class="bar">
<!-- rows -->
</div>
</form>

Solutions that come to mind:

(a) Move the rendering of the attributes from the <div>/<table> tag to the <form> tag for the root form. This breaks BC because the form_widget() call for the root form does not output the attributes anymore then. Nested forms are not affected.

<form id="foo" class="bar">
<div><!-- no attrs! -->
<!-- rows -->
</div>
</form>

(b) Don't render a <div> tag for the root form and do as in (a) for the table layout. This obviously also breaks BC. Nested forms are not affected.

<form id="foo" class="bar">
<!-- rows -->
</form>

(c) Don't render any attributes in the <form> tag. Maintains full BC.

<form>
<div id="foo" class="bar">
<!-- rows -->
</div>
</form>

Opinions?

While (c) is the best solution from a BC point of view, I think it is rather unintuitive. As a newcomer, if I put a "class" attribute on a form, I would expect it to be on the outermost <form> tag, not on some <div> within.

(a) and (b), on the other hand, break BC for those people that use form_widget() to render the complete form. I don't know how many people would be affected by this, this poll tries to gather some data about that. IMO both (a) and (b) are more intuitive and future-proof.

My favorite is (b) because it removes a useless <div> from the default markup.
Issue 1:
I'm not sure if this is a duplicate of #6061, But here's the problem.

I'm on windows 10 using deno 1.12.2 (release, x86_64-pc-windows-msvc), v8 9.2.230.14, typescript 4.3.5, and I have this file DenoStd.ts :

import * as Http from 'https://deno.land/std@0.103.0/http/mod.ts'
export { Http };

I'm behind a Socks5 proxy running on my localhost 127.0.0.1:1080 and I've tried setting related environment variables to these values :

http://127.0.0.1:1080/

https://127.0.0.1:1080/

socks5://127.0.0.1:1080/

But none seem to work, and I get the following error when I reach the import line :

error: error sending request for url (https://deno.land/std@0.103.0/http/mod.ts): error trying to connect: tls handshake eof
at file:///Bla/Bla/Bla/DenoStd.ts:1:0

But if I set my proxy using Windows' proxy settings GUI (instead of environment variables) it works with no problem.

Expected behavior is that environment variables also work, so maybe there's a bug there ? Or is it the case that Socks5 proxies are not supported somehow ??

Issue 2:
Referring to: #5979

I'm trying to use React exported from esm.sh bundler service like this:

// myproject/src/deps/react.ts
export { default as React } from "https://esm.sh/[react,react-dom]/react?dev&no-check";

export { default as ReactDOM } from "https://esm.sh/[react,react-dom]/react-dom?dev&no-check";

But this project should be depending on my other library, html-react-transformer, which in itself refers to the same React:

// /deno-html-react-transformer/src/deps/react.ts
export { default as React } from "https://esm.sh/[react,react-dom]/react?dev&no-check";

However, when using deno bundle the resulting JS has 2 duplicate React imports, and Invalid hook call error ensues.

I'm trying something like this, which do not work:

// /deno-html-react-transformer/src/transformer.ts

import { React as BundledReact } from "./deps/react.ts";

// HACK: Workaround for React typing
interface ReactInstanceProps {
createElement(component: any, props: any, ...children: any): BundledReact.ReactNode;
useState<T>(st: T): any;
useEffect(callback: ReactUseEffectCallbackFunc, deps: any[]): any;
}
interface ReactUseEffectCallbackFunc {
(): any;
}

export class Transformer {
// ...

public getComponent(React: ReactInstanceProps = BundledReact): TransformerComponent {
return ({ source }: TransformerComponentProps) => {
let [transformerReady, setTransformerReady] = React.useState<boolean>(this.initState);
// ...

return (transformerReady) ? this.transform(source, React) : null
}
}
}

Is there any pending fix or workaround?

Thanks!
Issue 1:
While doing tests sometimes I felt some test are too easy and others quite hard to solve. For some of them I could imagine, they are better split up into more tests to need better explanation. The goal might be to develop a more even learning curve or possibly add better links to external resources.

How about adding a small optional survey after each test like:

Was it easy or difficult to solve this test?

Too Easy

Ok

Too Difficult

This way you could determine which exercises may need more explanation or might be boring?

Issue 2:
We are planning to delete all the inactive Gitter rooms. Before we do, we need to make a full dump of all activity in those Gitter rooms, which we can then release as an open dataset.
Issue 1:
I need to check in more detail, but my first impression is that supporting a precomputed metric doesn't involve too much modification to the existing code.

Is there a reason we should not support it?

Issue 2:
OPTICS relies on the nearest neighbor graph, and should be possible to perform with precomputed distances (maybe it does already, but I don't think it's tested), and with sparse feature spaces. It should perhaps also be possible to perform with sparse precomputed neighborhoods (e.g. as returned from radius_neighbors_graph(radius=max_bound)) but I've not double checked this.
Issue 1:
jax/interpreters/batching.py in _dimsize(dim, aval, x)
294 return reduce(set.union, map(_dimsize, dim, aval, x))
295 elif type(dim) is int:
--> 296 return reduce(set.union, map(partial(_dimsize, dim), aval, x))
297 elif dim is None:
298 return set()

TypeError: reduce() of empty sequence with no initial value

Issue 2:
Let

def split(pytree, masks):
left = jax.tree_map(lambda p, m: p if m else None, pytree, masks)
right = jax.tree_map(lambda p, m: None if m else p , pytree, masks)
return left, right

acting on pytree, masks which are PyTrees of identical structure; the latter assumed to have Boolean leaves.

I would like to define a function merge for which merge(split(...)) is the identity.

(More generally, we might consider taking some tuple of PyTrees with common structure, and merging them all together, replacing the Nones in each PyTree with the leaves (or subtrees) of the others.)

As far as I can see, there is no reasonable way to define such a merge at the moment, so I'm opening this issue in search of a solution. (Which I suspect would involve exposing additional functionality through JAX, so I've tagged this as a feature request.)

Appendix:

My current solution is to take inspiration from vmap and treat Nones as PyTree leaves:

_sentinel = object()

def _merge(*args):
for arg in args:
if arg is not _sentinel:
return arg
return _sentinel

def merge(*pytrees: PyTree):
pytrees = [jax._src.tree_util._replace_nones(_sentinel, pytree) for pytree in pytrees]
return jax.tree_map(_merge, *pytrees)

However of course this relies on private functionality. Possible solutions might be to:

Expose jax._src.tree_util._replace_nones as public functionality;

I note that its implementation also seems to rely on private functionality, so it's not possible to duplicate as an end user.

Or add an optional argument to tree_map that treats Nones as leaves.

c.f. #2348
Issue 1:
Electron version: 1.6.8 or 1.7.1

Operating system: Windows

Expected behavior

In windows multiple monitor setup with different DPIs, electron app starts out of bounds

Actual behavior

Should start at the same place where app was last opened

How to reproduce

Have two monitors with 200% and 100% DPI

Start electron app and move the app to monitor with 100% DPI (non maximized)

Quit and Restart the app

App starts out of the bounds in the 100% DPI monitor.

This is a regression after #8786 . I reverted this change and this issue no longer repros.

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

12.0.0

Operating System:Windows 10

Windows 10

Last Known Working Electron version:

11.x.x

Expected Behavior

Actual Behavior

To Reproduce

Screenshots

Additional Information
Issue 1:
Challenge Declare JavaScript Variables has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36.

Today I actually received an error:

Error 504 Ray ID: 28c56387b0b90ecd • 2016-03-31 17:06:54 UTC

Gateway time-out

This is the link:

https://www.freecodecamp.com/challenges/declare-javascript-variables#?solution=%2F%2F%20Example%0Avar%20ourName%3B%0A%0A%0A%0A%2F%2F%20Define%20myName%20below%20this%20line%0A%0Avar%20myName%3B%0A%0A

Issue 2:
Challenge Adjusting the Padding of an Element has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36.

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

My code:

<style>
.injected-text {
margin-bottom: -25px;
text-align: center;
}

.box {
border-style: solid;
border-color: black;
border-width: 5px;
text-align: center;
}

.yellow-box {
background-color: yellow;
padding: 10px;
}

.red-box {
background-color: red;
padding: 20px;
}

.green-box {
background-color: green;
padding: 20px;
}
</style>
<h5 class="injected-text">margin</h5>

<div class="box yellow-box">
<h5 class="box red-box">padding</h5>
<h5 class="box green-box">padding</h5>
</div>

Edit by @raisedadead:

Camper is unable to advance between challenges due to slow/poor connectivity.
Issue 1:
Atom should support following the shortcuts/"shell links" Windows uses.

Currently when dragging a file to Atom, or when selecting a shortcut in the tree view, the binary file is opened directly. (format )

Issue 2:
Currently, dragging a shortcut to a folder in Atom (on Windows) opens the .lnk file itself rather than the target of the shortcut; the latter behavior would make more sense. I keep a bunch of shortcuts to project folders on my Desktop and it would be nice to be able to drag the shortcuts directly into Atom and have the project itself be opened (rather than the .lnk)
Issue 1:
I have tried to download the documentation in PDF from the official site (http://flask.pocoo.org/) and the link there (http://flask.pocoo.org/docs/0.12/.latex/Flask.pdf) is returning error 404.

Issue 2:
Ran the builder manually to figure out why nothing was building. Builder is sitting waiting for input, which it will never get. Had to enter Ctrl-D at each of the ? prompts.

...
Package hyperref Message: Driver (autodetected): hpdftex.

(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hpdftex.def
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/hypcap.sty) (./jinjastyle.sty
(/usr/share/texlive/texmf-dist/tex/latex/inconsolata/inconsolata.sty))
Writing index file Jinja2.idx
(./Jinja2.aux) (/usr/share/texlive/texmf-dist/tex/latex/base/ts1cmr.fd)
(/usr/share/texlive/texmf-dist/tex/latex/psnfss/t1ppl.fd)
(/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(./Jinja2.out) (./Jinja2.out)
! Undefined control sequence.
\maketitle ...tnoterule \relax \ifsphinxpdfoutput
\begingroup \def \\{, } \p...
l.55 \maketitle

?
Issue 1:
When there is an untitled window open with untitled buffer and atom . command is used from shell, window is not restored properly (tree-view is hidden and previously open buffers are not restored).

If there is no atom window open and atom . is used then window is propertly restored.

I am using Atom 124.0 on OS X Mavericks.

Issue 2:
Like I mentioned here in my comment opening a folder won't work for the first time you open it, wether if you drag&drop it or just open it via the shortcut.

Same Problem on two different computers with Atom (0.124.0) running on Mac OS X (Mavericks).
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-target-elements-by-id-using-jquery has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

First target your div element with the id target3 by using the $("#target3") selector.

div needs changing to button.

Issue 2:
Challenge Name

Add Borders Around your Elements

Issue Description

I was trying to change the class on "img src" tag, but when I click on the old class (for the changing) I can't write something else.

Browser Information

Browser Name, Version:

Operating System: Windows 10

Mobile, Desktop, or Tablet: Desktop

Your Code

Screenshot

Edited by : @raisedadead
Issue 1:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
yes

Symfony version
dunno

A lot of new features related to the auto-wiring have been added recently:

Autowiring

Setter auto-wiring

Getter auto-wiring

IMO, especially with the last two, it starts to become necessary to have more tooling to debug auto-wiring. For example, I am a developer coming onto an existing Symfony project which make moderate or heavy use of the auto-wiring feature. Regardless of if the usage of this feature has been done wisely or not, in that situation, I should be able to easily tell what services is auto-wired and its surrounding effects (e.g. if #21031: what other services are auto-wired?).

I have in mind a command to list all the auto-wired services with eventually details on which level of auto-wiring is used. But maybe someone has a better or other suggestions in mind?

/cc @nicolas-grekas @dunglas

Issue 2:
As specified in the AuthenticationManagerInterface, any implementation of AuthenticationManagerInterface::authenticate should always return a TokenInterface. Some provided implementation do not follow the rule, examples are

AnonymousAuthenticationProvider

PreAuthenticatedAuthenticationProvider

RememberMeAuthenticationProvider

UserAuthenticationProvider

In addition, the AuthenticationProviderInterface::supports is not really an interface public method, just like the supports* method from VoterInterface are never used by caller classes. These method are solely used as if they where protected helper functions.

These issues are not critical but may induce unexpected behaviour. Fixing them may end in some BC break. Any opinion ?
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: ALL

Operating System version: nop

Java version: nop

Step to reproduce this issue

enable monitor

open admin console

consumer links in MonitorService will be wrong - lack of consumers's application name and ip address.

Expected Result

They should not be empty.

Actual Result

lack of them.

consumer:///com.alibaba.dubbo.monitor.MonitorService?category=consumers&check=false&dubbo=2.0.1&interface=com.alibaba.dubbo.monitor.MonitorService&pid=2867×tamp=1532173971611

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: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

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

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

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

Just put your stack trace here!