WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Passing a list of strings to the DataFrame.sort() method is stable, but passing a string by itself causes the sort to be unstable.

I'm defining sort stability to mean row order is maintained for duplicate values in the sorted column.

Code to recreate

>>>import pandas as pd
>>>df = pd.DataFrame(list('ABCDABCDABCD'), columns=['x'])
>>>print df.sort(['x'])
x
0 A
4 A
8 A
1 B
5 B
9 B
2 C
6 C
10 C
3 D
7 D
11 D
>>>print df.sort('x')
x
0 A
4 A
8 A
1 B
5 B
9 B
6 C
10 C
2 C
3 D
11 D
7 D

The index is out of order for C and D in the 2nd case.

pandas version 0.10.0

Python version 2.7.2

Windows 7, 64-bit

Issue 2:
see discussion in #3059, #3095, also see #1943, #3102

This only applies with a non-unique column index

Currently if duplicate columns across dtypes there are issues in getting the correct block given a column name.

I think it is possible, though non-trivial, to instead have a positional map from the frame columns to the BlockManager blocks, will simplify BlockManager.iget.

Primary motivation is to_csv currently cannot handle these types of lookups.

Also should eliminate need for _find_block

In [6]: df = pd.DataFrame(np.random.randn(8,4))

In [12]: df = pd.DataFrame(np.random.randn(8,4))

In [13]: df._data.blocks[0].ref_locs
Out[13]: array([0, 1, 2, 3])

In [14]: df = pd.DataFrame(np.random.randn(8,4),columns=['a']*4)

In [15]: df._data.blocks[0].ref_locs
---------------------------------------------------------------------------

/mnt/home/jreback/pandas/pandas/core/internals.py in ref_locs(self)
52 def ref_locs(self):
53 if self._ref_locs is None:
---> 54 indexer = self.ref_items.get_indexer(self.items)
55 indexer = com._ensure_platform_int(indexer)
56 if (indexer == -1).any():

/mnt/home/jreback/pandas/pandas/core/index.pyc in get_indexer(self, target, method, limit)
835
836 if not self.is_unique:
--> 837 raise Exception('Reindexing only valid with uniquely valued Index '
838 'objects')
839

Exception: Reindexing only valid with uniquely valued Index objects

This is the root of all evil, this should raise the same as above (but doesn't even if

I consolidate)......

In [16]: df = pd.DataFrame(np.random.randn(8,4))

In [17]: df.columns = ['a']*4

In [18]: df._data.blocks[0].ref_locs
Out[18]: array([0, 1, 2, 3])
Issue 1:
System information (version)

OpenCV => 3.1.0-master

Operating System / Platform => macOS Sierra (10.12) x86_64

Compiler => Apple LLVM version 8.0.0 (clang-800.0.38)

build using Homebrew [today, 08:30CEST]:

brew install ant

brew install opencv3 --HEAD --with-java --with-ffmpeg --with-tbb

Detailed description

If you use VideoCapture via Java wrappers and if you try to release the camera, it always crashes the Java process. It can successfully read the frame though. Releasing the mat works fine, releasing the video capture crashes.

Steps to reproduce

public static void main(String[] args) {
VideoCapture capture = new VideoCapture(0);
Mat mat = new Mat();
capture.read(mat);
mat.release();
capture.release(); //crashes here
}

Afterwards it shows following:

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fff954f9f6f, pid=4925, tid=0x000000000000080b
#
# JRE version: Java(TM) SE Runtime Environment (8.0_102-b14) (build 1.8.0_102-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.102-b14 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libobjc.A.dylib+0x8f6f] objc_release+0x1f
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#

Issue 2:
System information (version)

OpenCV => 3.1

Operating System / Platform => Mac OSX

Compiler => XCode Version 8.0 (8A218a)

Detailed description

I tried to experiment with VideoCapture class in java. It looks like there is a bug - it is possible to open the camera but closing is not possible.

Steps to reproduce

This code leads to java crash ():

VideoCapture cap = new VideoCapture();

cap.open(0); // camera is opening up

Mat img = new Mat();

cap.read(img);

cap.release(); // java crashes
Issue 1:
The search on documentation page keeps saying initializing search. Never searches really. I have even tried clearing cache, cookies and changing network.

Issue 2:
Not a bug in library itself but on docs webpage. The issue is that the search bar on documentation page (fastapi.tiangolo.com) does not work on safari browser on mac. Clicking on search bar shows Initializing search and then nothing else happens.

It works on chrome though on the same system.

Here's the screenshot:
Issue 1:
System info

Playwright Version: v1.31.2

Operating System: mcr.microsoft.com/playwright:v1.31.2-focal image

Browser: WebKit

Other info: JavaScript disabled

Source code

I provided exact source code that allows reproducing the issue locally.

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
{
name: 'Chromium without JS',
use: { ...devices['Desktop Chrome'], javaScriptEnabled: false },
},
{
name: 'WebKit with JS',
use: { ...devices['Desktop Safari'], javaScriptEnabled: true },
},
{
name: 'WebKit without JS',
use: { ...devices['Desktop Safari'], javaScriptEnabled: false },
},
]
});

Test file (self-contained)

import { test, expect } from '@playwright/test';

test('Page.setContent', async ({ page }) => {
await page.setContent('<h1>Hello</h1>')

await expect(page.locator('h1')).toHaveText('Hello')
})

Expected

Tests pass.

Actual

The test fails when JavaScript is not available in WebKit:

Running 3 tests using 2 workers

✓ 1 [Chromium without JS] › publishing-a-prereview.spec.ts:690:6 › Page.setContent (1.3s)
✓ 2 [WebKit with JS] › publishing-a-prereview.spec.ts:690:6 › Page.setContent (1.3s)
✘ 3 [WebKit without JS] › publishing-a-prereview.spec.ts:690:6 › Page.setContent (30.0s)

1) [WebKit without JS] › publishing-a-prereview.spec.ts:690:6 › Page.setContent ──────────────────

Test timeout of 30000ms exceeded.

page.setContent: Navigation failed because page was closed!
=========================== logs ===========================
setting frame content, waiting until "load"
============================================================

689 |
690 | test.only('Page.setContent', async ({ page }) => {
> 691 | await page.setContent('<h1>Hello</h1>')
| ^
692 |
693 | await expect(page.locator('h1')).toHaveText('Hello')
694 | })

at /app/integration/publishing-a-prereview.spec.ts:691:14

Pending operations:
- page.setContent at integration/publishing-a-prereview.spec.ts:691:14

1 failed
[WebKit without JS] › publishing-a-prereview.spec.ts:690:6 › Page.setContent ───────────────────
2 passed (44.0s)

The failure screenshot shows that it was able to set the content:

I've tried all the waitUntil options, and none work.

Issue 2:
System info

Playwright Version: [v1.34.3]

Operating System: [Windows 11]

Browser: [Chrome]

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
{
name: 'Chrome',
use: {
...devices['Desktop Chrome'],
},
},
],
});

Test file (self-contained)

test('user should upload too big file and expect error appears successfully', async ({ page }) => {
await page.getByTestId('upload-file-input').setInputFiles('./Assets/11mbphoto.jpg')
await expect(page.getByText('Error: file size is too big')).toBeVisible()
await expect(page.locator('div').filter({ hasText: /^Next step$/ })).not.toBeVisible()
})

[Describe actual behavior]

if you run this test with setInputFiles in new ui mode test will fail, becouze file not uploaded.

if you run same test in vs code headless mode it pass
Issue 1:
Attached are 3 test cases (https://gist.github.com/ppf2/3ce59f1f1332bb41af46):

TEST 1 (Dynamically mapped fields): Create an index at index creation time. Then add data. You will see that the alias does not work.

TEST 2 (Dynamically mapped fields): Create an index with no alias defined. Add data, then create the alias afterwards. You will see that the alias works this time.

TEST 3 (Explicitly mapped fields): Create an index at index creation time. But this time, define an explicit mapping for the fields as well. Then add data. You will see that the alias works this time.

If this is the expected behavior, can we include a disclaimer in the documentation (and ideally, catch this condition and throw and error to prevent the index alias from being created in the first place?)

Issue 2:
Today, if we create a filtered alias or a percolator query which references a field that is not yet mapped, the field is interpreted as a string.

This is a problem when (eg) the user then indexes a document where the field is really numeric or a date. Any existing filters or percolator queries will not work correctly until the cached filter/query is regenerated (eg after a restart).

Instead, we should support a "strict" query parsing mode which throws an error if an unmapped field is referenced.
Issue 1:
Hi,

I am using Symfony 2.8.6, and after creating a new Command, I stumbled upon an unexpected error:

An argument with name "command" already exists.
[Symfony\Component\Console\Exception\LogicException]
An argument with name "command" already exists.

After trying a lot of different solutions, I found out that the error had to do with the option shortcut I used:

$this->setName('my:super:command')
->setAliases(['my:super:commandalias'])
->setDescription('Performs some irrelevant work.')
->addOption('survey', 's', InputOption::VALUE_REQUIRED, 'My option with a shortcut.')

After changing the alias (or setting it to null), the error just stopped popping out.

Is there any obvious reason I am missing here, or is this a bug?

Because to my knowledge "s" is not used anywhere else.

Furthermore, the error is awkwardly cryptic and gave me a hard time debugging this.

Regards,

Nicolas

Issue 2:
Symfony toolbar in 2.8.0 is generating an error because the FileCache the doctrine is generating file with the very big name in windows 10
Issue 1:
Let us know what functionality you'd like to see in Playwright and what is your use case.

Do you think others might benefit from this as well?

the selenium support it

Actions actions= new Actions(driver);

actions.moveToElement(webElement).clickAndHold().perform();

Issue 2:
Drag and drop should work with playwright. Using the existing mouse apis should generate working dragstart, drag, and drop events. There should also be new APIs to simulate dropping in external content, and to inspect content dragged from the web page.
Issue 1:
Expected result: rendered text There was an error

Actual result: Uncaught TypeError: Cannot read property 'unmountComponent' of undefined

JSFiddle: http://jsfiddle.net/kb3gN/10167/

The code:

var Parent = React.createClass({
getInitialState: function() {
return {error: false};
},
componentWillMount: function() {
var self = this;
// window.onerror is only used for brevity
window.onerror = function() {
if(self.isMounted()) {
self.setState({error: true});
}
};
},
render: function() {
if(this.state.error) {
return <div>There was an error</div>;
} else {
return <Child />;
}
}
});

var Child = React.createClass({
componentWillMount: function() {
throw new Error("test error");
},
render: function() {
return <div>Child</div>;
}
});

React.render(<Parent />, document.body);

Issue 2:
So I'm trying to put some graceful error handling in case 1 of my views crap out:

var MyGoodView = React.createClass({
render: function () {
return <p>Cool</p>;
}
});

var MyBadView = React.createClass({
render: function () {
throw new Error('crap');
}
});

try {
React.render(<MyBadView/>, document.body);
} catch (e) {
React.render(<MyGoodView/>, document.body);
}

However, MyGoodView does not get rendered w/ the following stack trace:

Seems like error throw React in a bad state where renderedComponent is undefined, thus cannot be unmounted. How do I handle this scenario?
Issue 1:
Allow functions that return aux information, similarly to grad or jvp.

Issue 2:
Repro case:

!pip install -U -q jax jaxlib

import jax, jax.numpy as jnp, functools

@functools.partial(jax.custom_jvp, nondiff_argnums=(0, 2))
def sample(shape, param, seed):
return jax.random.gamma(key=seed, shape=shape, a=param)

@sample.defjvp
def sample_jvp(shape, seed, primals, tangents):
param, = primals
dparam, = tangents
dparam = jnp.broadcast_to(dparam, shape)
samples = sample(shape, param, seed)
return samples, samples * dparam # dummy jvp for proof of concept

jax.vmap(lambda seed: sample((2,3), 1., seed))(
jax.random.split(jax.random.PRNGKey(1), 10))

=>

/usr/local/lib/python3.6/dist-packages/jax/custom_derivatives.py in bind(self, fun, jvp, *args)
285 _, env_trace_todo = lu.merge_linear_aux(env_trace_todo1, env_trace_todo2)
286 if env_trace_todo:
--> 287 raise core.UnexpectedTracerError
288 return map(core.full_lower, outs)
289

UnexpectedTracerError:
Issue 1:
It would be great to have a numerical dodge option for boxplot that matches the behaviour of pointplot.

This would allow boxplots over violin plots:

https://discourse.matplotlib.org/t/boxplots-on-top-of-violinplots/22807

Issue 2:
Hi,

thanks for the seaborn library, it's a great tool!

I'd like to suggest an aesthetic improvement: A configurable gap between boxes inside a group of boxes:

Since I'm currently writing my thesis, I'm a bit short on time, all I've got for now is a patch. If you consider this feature worthwhile, I'd create a proper pull request, of course.

Index: categorical.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- categorical.py	(date 1528960332000)
+++ categorical.py	(date 1528960332000)
@@ -366,6 +366,7 @@
n_levels = len(self.hue_names)
if self.dodge:
- each_width = self.width / n_levels
+ each_width = (self.width - (self.gap * (n_levels - 1))) / n_levels
offsets = np.linspace(0, self.width - each_width, n_levels)
offsets -= offsets.mean()
else:
@@ -436,13 +437,14 @@

def __init__(self, x, y, hue, data, order, hue_order,
orient, color, palette, saturation,
- width, dodge, fliersize, linewidth):
+ width, gap, dodge, fliersize, linewidth):

self.establish_variables(x, y, hue, data, orient, order, hue_order)
self.establish_colors(color, palette, saturation)

self.dodge = dodge
self.width = width
+ self.gap = gap
self.fliersize = fliersize

if linewidth is None:
@@ -2203,12 +2205,12 @@

def boxplot(x=None, y=None, hue=None, data=None, order=None, hue_order=None,
orient=None, color=None, palette=None, saturation=.75,
- width=.8, dodge=True, fliersize=5, linewidth=None,
+ width=.8, gap=0.1, dodge=True, fliersize=5, linewidth=None,
whis=1.5, notch=False, ax=None, **kwargs):

plotter = _BoxPlotter(x, y, hue, data, order, hue_order,
orient, color, palette, saturation,
- width, dodge, fliersize, linewidth)
+ width, gap, dodge, fliersize, linewidth)

if ax is None:
ax = plt.gca()

Please let me know what you think.

Cheers,

Peter
Issue 1:
Downloaded bootstrap and had to recompile it to use the grid system we are using for the site. Only changed variables.less. Once I recompiled, placeholder text on all inputs no longer works. Did some testing and found it was due to the "-webkit-transform-style: preserve-3d;" property on inputs and selects. Looked in the forms.less and the pre-compiled bootstrap.css files and didn't see the rule.

Honestly, I'm not sure if this is a problem with the compilers I'm using (Less.app and SimpLESS.app on Mac OS X) but considering they should be using the same compiler, not sure why this property is appearing in my compiled versions but not the pre-compiled version (http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css). Any ideas? Removing that line fixes placeholder text but I'd rather not have to touch the file beyond editing variables.less.

Issue 2:
Do not comment here.

This is a tracking issue for the next release, v3.1.0. Only linked issues, pull requests, and commits should be included. See the contributing guidelines for more information. All notable changes have been mentioned here. See the v3.1.0 milestone for a complete set of changes.

X-Ref: #9397.
Issue 1:
http://jsfiddle.net/3gxA5/3/

Click "Data 1" to open popover

Close popover with the 'hide' or 'destroy' button

Try to click "Data 3" to activate it's popover

Trying to inspect element on "Data 3" shows the popover div still exists on top of the td

Issue 2:
i searched for an already opened issue but did not found any that was reporting this exact problem.

I'm trying to use the destroy method on tooltip (bootstrap v3) but it does not remove the element from the DOM.

Any idea ?

Fiddle : http://jsfiddle.net/52VtD/59/

click on the button to trigger the tooltip destroy method
Issue 1:
I'm currently building an vim extension for vscode when I encountered this problem.

I need to bind keys such as i in Normal Mode and unbind it in Insert Mode so suggestions and other vscode's builtin features could work as normal.

In detail, my desired package.json can be:

{
"contributes": {
"keybindings": [
{
"command": "vim.i",
"key": "i",
"when": "editorTextFocus && !isVimInsertMode"
},
// ...
]
// ...
}
// ...
}

It would be a great help if extension can access KeybindingService to register context to keybindings or bind/unbind in runtime.

ps: I can mimic all the default behaviours in Insert Mode, but that's just a lot of duplicate code and unnessery time.

Issue 2:
VSCode Version: 1.2.0-insider

OS Version: Windows, OS X, Linux

Steps to Reproduce:

Create a new app or open an existing one.

Hit F5 to start debugger.

When no launch.json file exists VSCode creates it but then refuses to recognize it and start the debugger.

This buggy behavior is noticeable when at start you press F5 from anywhere but the Debugger. If you navigate to the Debugger and hit F5 it works and then VSCode remembers it.

Note: VSCode 1.1.1 works.
Issue 1:
I've described the original issue at stackoverflow.com.

CREATE and especially MATCH support more or less complex patterns that can't be written without breaking up the pattern into multiple parts, separated by commas. This is due to the one-dimensional nature of a line of text used to describe the pattern in Cypher.

For example, in order to get my mom, dad and brother I have to split up the pattern and repeat the node identifier (me):

MATCH (dad)<-[:FATHER]-(me { Name: 'Jan'})-[:MOTHER]->(mom), (me)-[:BROTHER]->(brother)
RETURN mom, dad, brother;

I expected that MERGE would allow for the same syntax, but it does not: it returns an error:

Invalid input ',': expected whitespace, a relationship pattern ...

I can't split up the pattern into multiple MERGEs because that would give different results (either the whole pattern matches or it doesn't).

Can this be supported?

Thanks,

Jan

Issue 2:
I am not for certain this is a bug, but looks like so.

First add 3 duplicate nodes by

CREATE (:Person {Name:'Peter'})

CREATE (:Person {Name:'Peter'})

CREATE (:Person {Name:'Peter'})

Then add another 3 duplicate nodes by

CREATE (:Person {Name:'Tom'})

CREATE (:Person {Name:'Tom'})

CREATE (:Person {Name:'Tom'})

Then the following query returns an incorrect result.

MATCH (e1:Person {Name:'Peter'}),(e2:Person {Name:'Tom'}) RETURN count(e1)

The result for count(e1) is 9 instead of 3.

If "distinct" keyword is used, the result is correct.

MATCH (e1:Person {Name:'Peter'}),(e2:Person {Name:'Tom'}) RETURN count(distinct e1)

The result for count(distinct e1) is 3.

Perhaps I misunderstand the query? But I think 3 is expected for "count(e1)" in this case.
Issue 1:
Having stacked versions of all possible linear algebra functions would be nice, lstsq being one in particular.

See also http://stackoverflow.com/questions/30442377 regarding a workaround using svd.

See also #3217.

Issue 2:
Many linalg functions are already broadcastable, lstsq isn't.

A workaround is via svd which is already broadcasted:

u, s, v = numpy.linalg.svd(A, full_matrices=False)
uTb = numpy.einsum('ijk,ij->ik', u, b)
xx = numpy.einsum('ijk, ij->ik', v, uTb / s)
Issue 1:
(*** This section is for bug reports and feature requests only. This is NOT a help site. Do not ask help questions here. If you need help, please use stackoverflow. ***)

Description of the problem

Error: WebGL: texImage2D: Incurred CPU-side conversion, which is very slow. three.js:19017:5

Error: WebGL: texImage2D: Incurred CPU pixel conversion, which is very slow. three.js:19017:5

Error: WebGL: texImage2D: Chosen format/type incurred an expensive reformat: 0x1907/0x1401 three.js:19017:5

Three.js version

Dev

r82

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

Linux

Android

IOS

Hardware Requirements (graphics card, VR Device, ...)

GTX1080 graphics card

Issue 2:
Description of the problem

When I try to clone a mesh object I expect it will be full cloned, with "new" material and geometry objects. Is this behavior on purpose?

Three.js version

Dev

r93

...

Browser

All of them

Chrome

Firefox

Internet Explorer

chromium (nw js actually)

OS

All of them

Windows

macOS

Linux

Android

iOS
Issue 1:
To extract the port from a random port in a Deno.listen is somewhat painful:

const listener = Deno.listen({ port: 0, transport: "tcp" });
//@ts-ignore
const {port} = listener.addr
this.port = port

While the random port doesn't seem that useful, it is extremely. For unit tests, launching a listener or process at a random port means that unit tests can really be independent, and not hardcoded.

Issue 2:
Ctrl+Z stopped Deno run

but I don't know why, after another deno run the port of the server (was 8080) were still in use.

so I tried to use a random free port with the 0.

after a console.warn(server), I got:

Server {
listener: ListenerImpl { rid: 5, addr: { hostname: "127.0.0.1", port: 34263, transport: "tcp" } },
closing: false,
connections: []
}

but when I tried to access to the port with server.listener.addr.port, I had this message:

error TS2339: Property 'port' does not exist on type 'Addr'.
Property 'port' does not exist on type 'UnixAddr'.

it doesn't make sense. it seems like port is not defined on type Addr (obvious but confusing)
Issue 1:
I was looking for an easy/straightforward way to open observatory for my app. flutter --help doesn't appear to give me an option to flutter observe.

Is there another way to open the observatory for my app? Or, should we made a flutter observe ?

use case: I want to see the timeline of how my app starts up, and I am assuming that a good way to do that is open the Observatory.

Workaround: flutter run && open http://localhost:8181

Issue 2:
This could be done via an additional keycode command, like K. The logic to launch devtools is fairly straightforward. For example, see the following code in dwds:

https://github.com/dart-lang/webdev/blob/master/dwds/lib/src/servers/devtools.dart
Issue 1:
https://console.cloud.google.com/storage/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/7790/

Failed: BeforeSuite {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:138
May 24 17:15:53.306: Error waiting for all pods to be running and ready: Not all pods in namespace 'kube-system' running and ready within 10m0s

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/7761/

Failed: BeforeSuite {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:138
May 23 21:08:38.707: Error waiting for all pods to be running and ready: Not all pods in namespace 'kube-system' running and ready within 10m0s