WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Describe your issue.

When the hybr method doesn't converge, it may sometimes report erroneously success = True. For example, looking at the function $f(x) = x^2-2x$ for initial value $x_0=1$ (or values very close to $1$), this method reports convergence on 1.01 .

When looking at other methods available in root, hybr is the only one to falsely report success while being clearly not converged.

I would propose adding a last function call to hybr and setting success accordingly

Reproducing Code Example

>>> root(lambda x: x**2-2*x, x0=1.)
fjac: array([[-1.]])
fun: array([-0.9999])
message: 'The solution converged.'
nfev: 6
qtf: array([0.9999])
r: array([-0.02000001])
status: 1
success: True
x: array([1.01])

>>> methods = ['hybr', 'lm', 'broyden1', 'broyden2',
... 'anderson', 'linearmixing', 'diagbroyden', 'excitingmixing',
... 'krylov', 'df-sane']
>>> for m in methods:
... r = root(lambda x: x**2-2*x, x0=1., method=m)
... print(f"{m}: {r.success = }, {r.x = }")
...
hybr: r.success = True, r.x = array([1.01])
lm: r.success = True, r.x = array([2.])
broyden1: r.success = True, r.x = array(4.46196389e-07)
broyden2: r.success = True, r.x = array(4.46196389e-07)
anderson: r.success = True, r.x = array(1.4289777e-06)
linearmixing: r.success = True, r.x = array(4.65661287e-10)
diagbroyden: r.success = True, r.x = array(4.46196389e-07)
excitingmixing: r.success = True, r.x = array(1.18976516e-07)
krylov: r.success = False, r.x = array(1.)
df-sane: r.success = True, r.x = array(2.)

Error message

-

SciPy/NumPy/Python version information

1.9.3 1.23.4 sys.version_info(major=3, minor=10, micro=6, releaselevel='final', serial=0)

Issue 2:
Running

from scipy.optimize import root
print(root(lambda x: (x - 1) ** 2 - 1, 1))
print(root(lambda x: (x - 1.6667898)**2 - 2, 1.66678977))

gives the ridiculous results

fjac: array([[-1.]])
fun: array([-0.9999])
message: 'The solution converged.'
nfev: 6
qtf: array([ 0.9999])
r: array([-0.02000001])
status: 1
success: True
x: array([ 1.01])

and

fjac: array([[-1.]])
fun: array([-1.99985602])
message: 'The solution converged.'
nfev: 6
qtf: array([ 1.99985602])
r: array([ 0.02399826])
status: 1
success: True
x: array([ 1.65479065])

These should not happen.

Scipy/Numpy/Python version information:

0.19.0, 1.12.1, version_info(major=2, minor=7, micro=13, releaselevel='final', serial=0)
Issue 1:
Description of the problem

There seems to be a bug when copying from a buffer geometry into another existing buffer geometry, which causes groups to be appended, instead of replaced.

I don't think this is working as intended.

Problematic code

I think this needs a clearGroups() call before starting to add groups.

Three.js version

Dev

r82

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

Linux

Android

IOS

Issue 2:
I was loading an .obj with ~70k vertices, and it was taking ~20s to load the model. The slowness was being caused by mergeVertices call here:

https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/OBJMTLLoader.js#L101

I commented it out just to see what would happen, and it took about ~1s to load the model and there was no visible change. Any ideas?
Issue 1:
I have simple dropdown buttons we built with 2.04

links are A tags, proper quotes, href='#'

Used to work fine.

Upgraded today to 2.1 and the links in any dropdown button don't work. The dropdown menu opens, but clicking on a link closes the menu without any action. tested on Android 2.3 and iOS 5

Rolledback to 2.04 and everything works again. Anyone else has this issue?

Issue 2:
Heya!

We downloaded the server backend for the custom bootstrap builds. I would like to add a custom prefix as a field to the customizer frontend.

In general, would you merge a PR for the customizer frontend and the node backend with the possibility to prefix the css classes?
Issue 1:
Environment

Windows build number: 10.0.19041.264
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): FanzyZones (Keyboard Manager?)

Steps to reproduce

In FancyZones enable "Override Windows Snap hotkeys (Win + arrow) to move windows between zones"

In Keyboard Manager use "Remap a key" to swap Alt (Left) and Win (Left), by mapping:

Win (Left) to Alt (Left)

Alt (Left) to Win (Left)

Hold Alt (Left) (mapped to Win) press Left (arrow key).

Expected behavior

Window moves between zones.

Actual behavior

Window uses normal Windows Snap behavior.

Additional test scenario

This re-binding of Win (Left) to another key seems to cascade to mapped shortcuts as well.

Steps to reproduce

Follow steps to reproduce described above

In Keyboard Manager use "Remap shortcuts" to give a VIM style movement binding:

Win (Left), Shift (Left), H to Win (Left), Left

Hold Alt (Left) (mapped to Win Left) and Shift (Left) then press H key

Expected behavior

Window moves between zones.

Actual behavior

Window uses normal Windows Snap behavior.

Work around

Now that I understand the issue, I'm working around this by leaving Win/Alt unmodified and instead creating shortcut mappings for any hotkeys I'd like to use with the key next to spacebar. This seems to work well enough and means I can do things such as map Alt-L which was not possible with Win-L.

If the issue reported isn't reasonably achievable, my request would be to put a note in Keyboard Manager that rebinding Win (Left) may cause unpredictable behavior.

Issue 2:
KBM currently does not always work consistenly with FZ and Shortcut guide if the Win key is remapped. The current workaround for a user would be to disable and enable KBM (since this will restart the hook), however we should automatically do this for v1.
Issue 1:
ISSUE TYPE

Bug Report

ANSIBLE VERSION

ansible 2.1.0.0
config file = /path/to/whatever/ansible.cfg
configured module search path = Default w/o overrides

CONFIGURATION

[ssh_connection]
pipelining=True

OS / ENVIRONMENT

N/A

SUMMARY

Unix domain socket created by ansible was too long, therefore ssh fails.

The error message is very vague:

this-is-a-long-hostname.example.org | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh.",
"unreachable": true
}

Giving the same ssh command as ansible, the error was more descriptive:

unix_listener: "/Users/user12/.ansible/cp/ansible-ssh-this-is-a-long-hostname.example.org-1022-user12345.ulAxrSDBy3jA13KO" too long for Unix domain socket

I was able to solve this by putting in my ansible.cfg

control_path = %(directory)s/%%h-%%r

The socket name that ansible sets is clearly way too long. This means that, as of now, long hostnames don't work with Ansible, and it can be quite restricting.

STEPS TO REPRODUCE

Have a long hostname in your inventory (e.g. this-is-a-long-hostname.example.org)

Try a simple ping command (with ansible -vvvvvvvvvvvvv -m ping to that host)

EXPECTED RESULTS

You can connect to the machine

ACTUAL RESULTS

You cannot connect to the machine

SSH error is very vague (maybe addressed by #16649 )

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

ssh control persist

ANSIBLE VERSION

2.0

SUMMARY

When trying to use the ec2 plugin, ssh fails with this error:

SSH Error: unix_listener: "/Users/luke/.ansible/cp/ansible-ssh-ec2-255-255-255-255.compute-1.amazonaws.com-22-ubuntu.CErvOvRE5U0urCgm" too long for Unix domain socket

Here's the full example:

$ ansible -vvvv -i ec2.py -u ubuntu us-east-1 -m ping
<ec2-255-255-255-255.compute-1.amazonaws.com> ESTABLISH CONNECTION FOR USER: ubuntu
<ec2-255-255-255-255.compute-1.amazonaws.com> REMOTE_MODULE ping
<ec2-255-255-255-255.compute-1.amazonaws.com> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/Users/luke/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 ec2-255-255-255-255.compute-1.amazonaws.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1436458336.4-21039895766180 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1436458336.4-21039895766180 && echo $HOME/.ansible/tmp/ansible-tmp-1436458336.4-21039895766180'
ec2-255-255-255-255.compute-1.amazonaws.com | FAILED => SSH Error: unix_listener: "/Users/luke/.ansible/cp/ansible-ssh-ec2-255-255-255-255.compute-1.amazonaws.com-22-ubuntu.CErvOvRE5U0urCgm" too long for Unix domain socket
while connecting to 255.255.255.255:22
It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.

I've changed some of the sensitive info in here like the IP etc.
Issue 1:
Currently applications are not staying in the fancy zones, when the monitor is powered off and on again.

All applications pile up in the upper left corner.

Would be nice to keep the state/position of the applications after the screen is powered again. Same as when the computer is returning from sleep mode.

Issue 2:
This was mentioned in the README so I'm creating the issue as it sounds like a neat idea to me

I'm assuming this would allow for more flexible window arrangements than the current quadrant snapping, etc.
Issue 1:
What problem does this feature solve?

Allow resolution of promises inside templates.

What does the proposed API look like?

{{ await someFunction(value) }}

Issue 2:
Version

2.3.4

Reproduction link

https://github.com/geekdada/vue-hackernews-2.0

Steps to reproduce

$ yarn
$ MICRO_CACHE=false node --expose-gc --inspect server
$ ab -n 50 -c 20 http://127.0.0.1:8080/

Stimulate a garbage collection before dump memory heap.

What is expected?

All Vue$3 instances not being in use are garbage collected.

What is actually happening?

As opposite.

My heap dump file can be found here: http://d.pr/f/H0ypK
Issue 1:
I hit an ICE - I've reduced a reproducible test case here: http://is.gd/M5LB6P

pub struct Foo<T, P>
where P: DerefMut<Target=Bar<T>>
{
bar: P,
}

pub struct Bar<T> {
nzp: NonZero<*mut Option<T>>
}

impl<T, P> Foo<T, P>
where P: DerefMut<Target=Bar<T>>
{
fn fun(&mut self) {
let p: *mut Option<T> = *self.bar.nzp;
match unsafe {*p} {
None => (),
Some(t) => (),
}
}
}

error is

<anon>:22:23: 22:25 error: internal compiler error: this path should not cause illegal move
<anon>:22 match unsafe {*p} {
^~

I'm not even sure what the workaround for this is. Any ideas?

Issue 2:
Input:

struct T(u8);

fn t() -> *mut T {
unsafe { 0u8 as *mut T }
}

fn main() {
let a = unsafe { *t() };
}

Output:

$ rustc ../test.rs
../test.rs:9:19: 9:23 error: internal compiler error: this path should not cause illegal move
../test.rs:9 let a = unsafe { *t() };
^~~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /Users/John/Documents/dev/rust/src/libsyntax/diagnostic.rs:123

stack backtrace:
1: 0x10f825b75 - sys::backtrace::write::h757d4037fec4513elCt
2: 0x10f84800f - failure::on_fail::he99e1d2cd81a67a80Hz
3: 0x10f7b3c8a - rt::unwind::begin_unwind_inner::hede15ebc165353e0Qpz
4: 0x10d508707 - rt::unwind::begin_unwind::h5150449308391082809
5: 0x10d50869c - diagnostic::SpanHandler::span_bug::h1cc7aa850b4525b9nQF
6: 0x10c93bc1d - session::Session::span_bug::h9dff6f0c981e0b95mRq
7: 0x10c547999 - borrowck::build_borrowck_dataflow_data::hbfab9f3785e58ec8QRe
8: 0x10c5432fb - borrowck::borrowck_fn::h9d4d5a57ec1e26a2cPe
9: 0x10c5440f2 - borrowck::borrowck_item::hd3de64f0b51b624a9Ne
10: 0x10c54461f - borrowck::check_crate::hab49ad1d67fb67e9ZIe
11: 0x10c09e8aa - driver::phase_3_run_analysis_passes::h3bf5eb3f470c8788gwa
12: 0x10c082d90 - driver::compile_input::h63293298907e332cxba
13: 0x10c14e7ba - monitor::unboxed_closure.22558
14: 0x10c14cf15 - thunk::F.Invoke<A, R>::invoke::h15985566512806182469
15: 0x10c14bcf0 - rt::unwind::try::try_fn::h5957420952141477940
16: 0x10f8b1189 - rust_try_inner
17: 0x10f8b1176 - rust_try
18: 0x10c14c3ec - thunk::F.Invoke<A, R>::invoke::h12578415658120090831
19: 0x10f835814 - sys::thread::thread_start::he6c5dcba45c95bf2drw
20: 0x7fff933e22fc - _pthread_body
21: 0x7fff933e2279 - _pthread_body
Issue 1:
[root@pcbsd-7889] /home/jc/atom# script/build

Node: v0.10.32

npm: v1.4.28

Installing build modules...

Installing apm...

events.js:72

throw er; // Unhandled 'error' event

^

Error: incorrect header check

at Zlib._binding.onerror (zlib.js:295:17)

npm ERR! atom-package-manager@0.133.0 install: node ./script/download-node.js

npm ERR! Exit status 8

npm ERR!

npm ERR! Failed at the atom-package-manager@0.133.0 install script.

npm ERR! This is most likely a problem with the atom-package-manager package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR! node ./script/download-node.js

npm ERR! You can get their info via:

npm ERR! npm owner ls atom-package-manager

npm ERR! There is likely additional logging output above.

npm ERR! System FreeBSD 10.1-RELEASE-p8

npm ERR! command "node" "/usr/home/jc/atom/build/node_modules/.bin/npm" "--userconfig=/usr/home/jc/atom/.npmrc" "install" "--loglevel" "error"

npm ERR! cwd /usr/home/jc/atom/apm

npm ERR! node -v v0.10.32

npm ERR! npm -v 1.4.28

npm ERR! code ELIFECYCLE

npm ERR! not ok code 0

Any Idea on how to solve this?

Issue 2:
I followed the build instructions given for the FreeBSD (10.0 x86_64) here- https://github.com/atom/atom/blob/master/docs/build-instructions/freebsd.md

I compiled node and npm from sources (FreeBSD ports) but still no luck. Here is the full error log:

http://pastebin.com/WQx8UXWs
Issue 1:
include: playbook.yml a=2 b=3 c=4

we can do it with tasks, why not?

see also: handlers

make sure with_items also works with these includes as it now works with task includes

Issue 2:
Unable to connect to ec2-host (errors with permission denied errors) in AWS.

Have the following entry in inventory file

Following command was executed

ansible -vvv test_ansible --user ansible --private-key=/home/ansible/.ssh/id_rsa -m ping --become-user=ansible

It is trying to connect as ec2-user@ec2_remotehost |FAILED> SSH Error: Permission denied (publickey).

while connecting to ec2_remotehost:22

If this is already fixed, let me know the bug number and I can close this as duplicate.
Issue 1:
Code Sample, a copy-pastable example if possible

dat = pd.DataFrame(
{'number': [2, 2, 3], 'string': ['a', 'a', 'b']},
index=pd.date_range('2018-01-01', periods=3, freq='1s')
)
dat.rolling('2min').apply(lambda x: len(np.unique(x)))
number	string
2018-01-01 00:00:00	1.0	a
2018-01-01 00:00:01	1.0	a
2018-01-01 00:00:02	2.0	b

Problem description

What I am trying to do is counting how many unique values in a rolling window. This works well for the numeric column dat.number but the string column dat.string simply only returns what it was.

In the above example, I expect to see the two columns in the output are the same as the number of unique values are 1, 1, 2 starting from the first row. However the string column returns a, a, b.

Expected Output

number	string
2018-01-01 00:00:00	1.0	1.0
2018-01-01 00:00:01	1.0	1.0
2018-01-01 00:00:02	2.0	2.0

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.5.final.0

python-bits: 64

OS: Linux

OS-release: 4.13.0-38-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: en_AU.UTF-8

LOCALE: en_AU.UTF-8

pandas: 0.22.0

pytest: None

pip: 9.0.3

setuptools: 39.0.1

Cython: None

numpy: 1.14.2

scipy: 1.0.1

pyarrow: None

xarray: None

IPython: 6.3.0

sphinx: 1.7.2

patsy: 0.5.0

dateutil: 2.7.2

pytz: 2018.3

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

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
Hi the Pandas dream team.

I think it would be nice if rolling could accept strings as well (see https://stackoverflow.com/questions/52657429/rolling-with-string-variables)

With the abundance of textual data nowadays, we want Pandas to stay at the top of the curve!

import pandas as pd
import numpy as np

df = pd.DataFrame({'mytime' : [pd.to_datetime('2018-01-01 14:34:12.340'),
pd.to_datetime('2018-01-01 14:34:13.0'),
pd.to_datetime('2018-01-01 14:34:15.342'),
pd.to_datetime('2018-01-01 14:34:16.42'),
pd.to_datetime('2018-01-01 14:34:28.742')],
'myvalue' : [1,2,np.NaN,3,1],
'mychart' : ['a','b','c','d','e']})

df.set_index('mytime', inplace = True)

df
Out[15]:
mychart myvalue
mytime
2018-01-01 14:34:12.340 a 1.0
2018-01-01 14:34:13.000 b 2.0
2018-01-01 14:34:15.342 c NaN
2018-01-01 14:34:16.420 d 3.0
2018-01-01 14:34:28.742 e 1.0

Here I want to concatenate the strings in mychart using the values in the last 2 seconds (not the last two observations).

Unfortunately, both attempts below fail miserably

df.mychart.rolling(window = '2s', closed = 'right').apply(lambda x: ' '.join(x), raw = False)
df.mychart.rolling(window = '2s', closed = 'right').apply(lambda x: (x + ' ').cumsum(), raw = False)

TypeError: cannot handle this type -> object

What do you think?

Thanks!
Issue 1:
Steps to reproduce:

Start Terminal.

Press Win+Left key to dock Terminal window to the left half of my monitor. The Terminal window starts at (0|0) left top position.

Exit Terminal.

Start Terminal.

Actual results:

After step 4, the Terminal window starts at some probably random (X|Y) position.

Now I have to repeat above step 2:

Press Win+Left key to dock the Terminal window to the left half of my monitor.

This is really annoying.

Expected results:

The Terminal window should start pixel perfect at the very same position where I closed it the last time. No offset or anything. Just start with the same size and the same position. No matter whether I manually resized the window or whether being docked before.

Google Chrome does this very well, Microsoft Edge based on Chromium does this very well, too, same does e.g. Visual Studio Code. I hope Terminal can do better, too.

Additional information:

I've described a similar issue some years back over at Super User, together with some UI mockups.

Issue 2:
Summary of the new feature/enhancement

When the window is closed, remember its position/size for next time, either automatically or with some sort of explicit "remember" option.

Alternatively, as a minimal implementation, be able to manually specify initial position (similar to how you already can with column and row size). Already covered by #1043.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Previous Behavior

In version 1.0.0.beta31, you could put anything inside a <Fade> component and it would get faded.

Current Behavior

As of version 1.0.0.beta32, it seems that Fade relies on the child component doing the right thing with the style prop.

Here's a CodeSandbox example:

https://codesandbox.io/s/7j8y2rqyn6

I am not sure if this is intended behavior or not, but the change caught me off guard and I figured I should mention it.

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

I have multiple Paper components, and each of them need to have a different background color.

Do i simply wrap each of the components around a MuiThemeProvider with custom theme? Is there any major disadvantage to this approach?

Or is MuiThemeProvider meant to be one per application (like Redux)? If so, what's the easiest way to meet my requirement?
Issue 1:
So Babel is compiling a for of loop into code that uses Symbol - which is an ES6 specific feature. Example:

for (let i of x) {
console.log(i)
}

Babel output:

"use strict";

var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

try {
for (var _iterator = x[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var i = _step.value;

console.log(i);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator["return"]) {
_iterator["return"]();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}

Issue 2:
I have some code like:

for (var n of geoHashes) {
console.log(n);
}

Only in firefox it throws an error: ReferenceError: Symbol is not defined
Issue 1:
The select component in 1.0-beta.27 does not change selection to when you type

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

Expected Behavior

When you have a select field selected and begin to type, it should change selection to match what you typed.

Current Behavior

Typing while a select is open does nothing.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/20xx3owq8n

Context

Need to be able to quickly select from a large list

Your Environment

Tech
Version

Material-UI
1.0-beta.27

React
15,6

browser
Chrome (latest)

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

Expected Behavior

I would expect native and non-native Selects to left justify their text with the same text indent as an Input.

Current Behavior

Currently on firefox on Windows and Linux the native select (the middle one in the screenshot below) has a text indent where the others don't:

Steps to Reproduce (for bugs)

https://codesandbox.io/s/zn4k1yq153

Context

I'm making lists of Inputs and native Selects, and it looks odd when they have different text indents

Your Environment

Tech
Version

Material-UI
1.0.0 beta 19

React
15.5.3

browser
firefox

etc