WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Using pandas 0.10.1

Pandas allows creating a dataframe with two columns with the same name. (I disagree that it should be allowed, but it is allowed, so OK). However, it doesn't handle that correctly in several cases.

Pandas ought to either completely disallow duplicate named columns or handle them everywhere. But it shouldn't handle them in some cases but not others.

Problem 1: Round-trip to a CSV

Dump the dataframe to a CSV and then read it back. Even though duplicate columns are supposed to be legal, Pandas won't allow that in the CSV import/export.

df = pandas.DataFrame([[1,2]], columns=['a','a'])
#Note df has two identically named columns now
df.to_csv('foo.csv')
df2 = pandas.DataFrame.from_csv('foo.csv')
#Note df2 does NOT have the same columns anymore. the "a" was renamed "a.1"
#At the least, you ought to get some warning that dumping to a CSV will
#lose column names.

Problem 2: Merging to a dataframe with dup columns does not work

df = pandas.DataFrame([[1,2,3]], columns=['a','a','b'])
df.merge(df, how='left', on='b')
#Result: Very misleading error message
# edit: reindexing error

I'd be ok with almost any solution (disallowing duplicate named columns, giving you a warning when you do it, handling it correctly in the merge and csv read, etc). But it should be consistently one way or the other.

Issue 2:
Code Sample, a copy-pastable example if possible

import pandas as pd

df = pd.DataFrame({'a': ['Hello', 'World']})

df['a'] = df['a'].astype('S')
df['b'] = df['a'].astype('S')

print(df.dtypes)

Output is:

a object
b |S5
dtype: object

Problem description

The new column has the correct dtype of numpy byte string, the old column no contains

the new values but still has dtype object.

Expected Output

Both columns should have dtype 'S'

Output of pd.show_versions()

import pandas as pd

df = pd.DataFrame({'a': ['Hello', 'World']})

df['a'] = df['a'].astype('S')

df['b'] = df['a'].astype('S')

print(df.dtypes)
Issue 1:
I checked everything but responsive navbar and icons and the files generated (CSS) had not the right stuff.

Issue 2:
I'm trying to get Bootsrap through Customize, but every time I get a blank boostrap.css and file error.txt with the error:

A less error occured trying to build your bundle.

You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type": "Parse", "message": "Syntax Error on line 792", "index": 25106, "filename": "bootstrap.css", "line": 792, "column": 11, "extract ": [" * margin:-5px 0 5px; "," ove rflow: hidden; "," background-color: @ top; "]}

My Settings: all items marked, except Icons.

What is the problem?
Issue 1:
Migrated issue, originally created by mrudula chougule

Hi,

I am having python+gtk application. I'm currently porting my python application from Ubuntu 10.04 to 14.04. I have sqlalchemy version of 0.8.4-1Ubuntu2.1 on Ubuntu 14.04. When trying to run my application, when it is trying to insert column into database it is throwing this error: **sqlalchemy.exc.compileError: Unconsumed column Name

**

Please share your views or ideas to resolve this error. I'm stuck!!

Thanks,

Mrudula

Issue 2:
Migrated issue, originally created by mrudula chougule

Hi,

I am having python+gtk application. I'm currently porting my python application from Ubuntu 10.04 to 14.04. I have sqlalchemy version of 0.8.4-1Ubuntu2.1 on Ubuntu 14.04.

When trying to run my application, when it is trying to insert column into database it is throwing this error:

sqlalchemy.exc.compileError: Unconsumed column Name

Please share your views or ideas to resolve this error.

I'm stuck!!

Thanks,

Mrudula
Issue 1:
Please, implement the headless option which is available from chrome version 57.

Reason:

Easier usage for testing and scraping (without the xfb hack)

Issue 2:
Electron version: 1.6.x

Operating system: macOS

Expected behavior

Several things:

The promise which is returned by executeJavascript should be rejected

The error and stack trace should be more meaningful (how? = what's possible?)

Furthermore if you listen of global errors with the debugger trough the Runtime.exceptionThrown event - there is currently no way to locate where exactly the error happened. By the way the below error output is captured by this event. There must be a way to identify the script somehow or even better return the source to create a code frame. (compile a named code or so? don't know exactly how it works...)

Actual behavior

When call webContents.executeJavascript and the passed javascript has a syntax error.

There are several problems which make it difficult to debug:

The stack trace is useless (see screenshot)

The returned promise from executeJavascript hangs in the pending state

No identification to which injected JS it belongs to (can be skipped if the previous point is solved smart)

How to reproduce

webContents.executeJavascript('just some syntax error')

Appendix

{ columnNumber: 4,
exception:
{ className: 'SyntaxError',
description: 'SyntaxError: Unexpected identifier\n at EventEmitter.electron.ipcRenderer.on (/Users/xxx/yyy/js_package_nightmare-service/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/init.js:52:28)\n at emitMany (events.js:127:13)\n at EventEmitter.emit (events.js:201:7)',
objectId: '{"injectedScriptId":1,"id":1}',
preview:
{ description: 'SyntaxError: Unexpected identifier\n at EventEmitter.electron.ipcRenderer.on (/Users/xxx/yyy/js_package_nightmare-service/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/init.js:52:28)\n at emitMany (events.js:127:13)\n at EventEmitter.emit (events.js:201:7)',
overflow: false,
properties:
[ { name: 'stack',
type: 'string',
value: 'SyntaxError: Unexpected identifier\n at EventEmi…27:13)\n at EventEmitter.emit (events.js:201:7)' },
{ name: 'message',
type: 'string',
value: 'Unexpected identifier' },
[length]: 2 ],
subtype: 'error',
type: 'object' },
subtype: 'error',
type: 'object' },
exceptionId: 1,
executionContextId: 1,
lineNumber: 0,
scriptId: '112',
stackTrace:
{ callFrames:
[ { columnNumber: 27,
functionName: 'electron.ipcRenderer.on',
lineNumber: 51,
scriptId: '65',
url: '/Users/xxx/yyy/js_package_nightmare-service/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/init.js' },
{ columnNumber: 12,
functionName: 'emitMany',
lineNumber: 126,
scriptId: '30',
url: 'events.js' },
{ columnNumber: 6,
functionName: 'emit',
lineNumber: 200,
scriptId: '30',
url: 'events.js' },
[length]: 3 ] },
text: 'Uncaught' }
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: 2.7.7

Operating System version: Windows 64x

Java version: 1.8

Steps to reproduce this issue

dubboBootstrapApplicationListener is is registered repeatedly in ServiceClassPostProcessor, dubboBootstrapApplicationListener have bean registered through DubboBeanUtils.registerCommonBeans by DubboNamespaceHandler 、@EnableDubboConfig and @DubboComponentScan

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: 所有dubbo版本都存在

Operating System version: mac

Java version: 1.8

Steps to reproduce this issue

使用dubbo-ops禁用provider，客户端仍然能调用禁用的服务

启用一个provider、consumer、dubbo-admin，禁用provider和开启provider测试。

已有用户提ops issue: apache/dubbo-admin#90

我已经check是dubbo实现的Bug, 会尽快修复。

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

Expected Result

如果只有一个provider，禁用后立即生效，应该找不到服务

如果有多个provider，会自动找其他服务调用，除非重新启用服务，否则会忽略禁用服务

Actual Result

禁用的服务持续调用
Issue 1:
Environment

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

Any other software?

Steps to reproduce

1 Set the following global settings in profile.json

"alwaysShowTabs": false,
"showTabsInTitlebar": false,

2 Start Terminal

No tab bar visible

3 Control-Shift-t to create a new tab

Here it's PowerShell Core, but reproduces with git-bash for example

Tab bar becomes visible here.

Switching between tabs here does not affect the outcome.

4 Type exit to terminate the currently-visible shell

Middle-clicking the active tab also works. Middle-clicking the other tab does not reproduce.

If extra shells were opened, this doesn't reproduce, it seems to only happen when the tab bar is hidden as part of closing the current tab.

Setting close-on-exit means this doesn't reproduce until the tab is closed, so not related to the shell process terminating.

Expected behavior

Current tab closes

Tab bar disappears

Other tab is usable.

Actual behavior

Current tab closes

Tab bar disappears

(!!) Other tab content is visible, but cursor is not flashing and input is not handled

(!!) A few seconds later, the application crashes, logged in Event Viewer:

Faulting application name: WindowsTerminal.exe, version: 1.0.1910.22001, time stamp: 0x5daf7ab2
Faulting module name: TerminalControl.dll, version: 1.0.1910.22001, time stamp: 0x5daf7988
Exception code: 0xc0000005
Fault offset: 0x0000000000008268
Faulting process ID: 0x2bec
Faulting application start time: 0x01d5a030043b34f4
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe\TerminalControl.dll
Report ID: eb98c87f-b71c-4108-97b3-626d6a0af7f1
Faulting package full name: Microsoft.WindowsTerminal_0.6.2951.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App

I have raised a Feedback Hub issue, but it has not yet appeared in "My feedback". I'll update this ticket once it's showing up (it said it would take a few minutes, but now it shows nothing...)

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.388]
Windows Terminal version (if applicable): 0.5.2762.0
15" 2015 MacBook Pro -- integrated graphics

Any other software?
Ubuntu 1804.2019.521

Steps to reproduce

Open Windows terminal

Drag window

Actual behavior
Issue 1:
Here we have;

PUT /_template/template_1
{
"template": "te*",
"settings": {
"number_of_shards": 1
}

As you can see we reference the term template 3 times in 3 lines, which is pretty loaded - even if the second (template_1) is an example name of a template.

I was speaking to a new user the other day and they mentioned that the second reference to template isn't immediately obvious that it applies to the index name/pattern that this template should match.

I thought I'd raise this issue to see if perhaps we can rename it to match_pattern, or index_pattern or something else that is a little more descriptive.

Issue 2:
Description of the problem including expected versus actual behavior:

The short explaination:

The field template In templates is vague because it is pattern matching the indices which will be working on, I think that the name should be somthing like Index pattern or so.

The Long one:

First to mention, I have started to use elasticsearch today,

I have used a twitter template which I couldn't understand why is not working.

I have searched the template file maybe It contains the index name and thats the reason It didn't work , I have noticed that when I changed the index name to the template name everything was just fine so I understood that I need to write about Index templates and I have understood that there is an index pattern matching with the template name.
Issue 1:
TypeScript Version:

1.9.0-dev.20160502

Code

const xs = [1,2,3];
const ys = [4,5];
xs.push(...ys);

Compiled with tsc --target es6 --strictNullChecks test.ts

Expected behavior:

Compile without errors (without --target es6 option, the code compiles successfully)

Actual behavior:

Errors are emitted:

test.ts(3,9): error TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'.
Type 'undefined' is not assignable to type 'number'.

Seems like values are treated nullable. (similar to #8357)

Issue 2:
The variable in a for-of loop contains undefined when the target is set to es6. For es5, everything works as expected.

TypeScript Version:

nightly (1.9.0-dev.20160428)

Code

for (const x of ["a", "b"]) {
x.substring;
}

tsconfig.json:

{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"strictNullChecks": true
}
}

Expected behavior:

Type of x is string in the loop body, no compile error.

Actual behavior:

Type of x is string | undefined, which gives an error.

@ahejlsberg
Issue 1:
Background:

I have some buttons on my website that have a glyphicon plus text.

I would like to be able to use hidden-xs on a span around the text inside the button. When the screen is xs (<768px) the button only shows the glyphicon. And when the screen is > 767px the text shows along side the glyphicon.

But the issue is that the hidden-xs (and all other hidden-* classes) use a display: block !important to show the hidden content. THis causes the button to break into two lines.

<button class="btn btn-grey">
<span class="glyphicon glyphicon-chevron-up"></span>
<span class="hidden-xs">Top Of Page</span>
<button>

When the screen is smaller than 768px, the button looks correct:

But then the screen is 768px or greater, the button looks like this:

But it should look like the following:

Possible Solution

What I have done is to add my own media query CSS entries to modify the behavior when hidden-xs is inside a button. Rather than setting display to block !important, I have the display set to ``inline !important`:

@media (min-width: 768px) {
button>.hidden-xs, .btn>.hidden-xs {display: inline !important; }
}

It would be nice to see something like this included in a future release of Boostrap.

Issue 2:
related to issues #8500 , #7808 , #4929 ; using .hidden-sm to hide span within .nav > li > a . Because class is display: block above -sm then text wraps to new line. Would you consider .hidden-* classes to be display: inline-block instead ?

Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... http://jsfiddle.net/jholl/P86yf/
Issue 1:
I'm seeing this recovered panics in kubelet.log:

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go:158
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go:128
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/wait/wait.go:86
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/wait/wait.go:87
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/wait/wait.go:49
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/volumemanager/populator/desired_state_of_world_populator.go:102
/usr/local/go/src/runtime/asm_amd64.s:1998
E0714 20:49:56.257473 3445 runtime.go:70] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:64
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:48
/usr/local/go/src/runtime/asm_amd64.s:472
/usr/local/go/src/runtime/panic.go:443
/usr/local/go/src/runtime/panic.go:62
/usr/local/go/src/runtime/sigpanic_unix.go:24

The same message appears multiple times in succession.

It was first observed in the e2e logs of #27956.

I've confirmed the panics are happening in master by looking at #28978 that changes only a README.md file, and all tests passed.

Full logs at:

https://console.cloud.google.com/storage/browser/kubernetes-jenkins/pr-logs/pull/28978/kubernetes-pull-build-test-e2e-gce/49109/artifacts/e2e-gce-agent-pr-38-0-minion-group-1vnz/

Open the file kubelet.log, search for Observed a panic

@saad-ali PTAL

Issue 2:
When calling /api/v1/proxy/namespaces/$n/pods/$p:1234/ on a pod which returns CORS headers, duplicate CORS headers are returned (from the pod and from the API). The proxy should strip CORS headers, just like the pod proxy does.

Reported in openshift/origin#2619 (comment)

@csrwng
Issue 1:
[X ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Some users like to use tabbing and keyboard to traverse through a page. Some like to click. For checkboxes you should be able to use both to check or uncheck the checkbox.

Current Behavior

Currently, if you use onCheck, then only the mouse works to check or uncheck the checkbox. Using the tab key to select the checkbox, then pressing say the space bar to check or uncheck the checkbox does not work.

However, if you use onClick instead of onCheck, then both the mouse and the keyboard works. However, this is counter-intuitive because onClick sounds more like the one that would only work with the mouse, but it is the opposite.

Steps to Reproduce (for bugs)

Just create a Checkbox on a page, use onCheck to call a function and try to tab into it and press the spacebar. Our users are telling us it doesn't work, or that it takes them 3-5 times hitting the space bar before it takes affect. But if they click on it with a mouse, it is the 1st time.

"If YOU DO NOT take time to provide a codesandbox.io reproduction, should the COMMUNITY take time to help you?"

No they do not need to take the time to write a reproduction, I think it should be easy to do.

Context

Just that we have some users that like to use their keyboard for checkbox clicking.

Your Environment

Tech
Version

Material-UI
0.20

React
16.0

browser
Chrome

Issue 2:
how can i use layout with materical-ui? thanks a lot.
Issue 1:
All input types get set to 210px wide and 18px high, which means image buttons get squashed ridiculously. Adding the radiused box-shadow border doesn't make much sense for image buttons either.

It may be too much to set those values for the individual input types since there are a number of nonstandard ones that different browsers and platforms support, but Bootstrap could at least reset height and width to auto on input[type="image"], and the fancy border stuff to none.

Issue 2:
With Bootstrap 2.0.3, tooltips were appended to the document body and so they weren't constrained to their parent container

Bootstrap 2.0.3: http://jsfiddle.net/TwMdK/1/

With Bootstrap 2.2.2, tooltips are now appended to their parent container and this can cause tooltips to appear "chopped off"

Bootstrap 2.2.2: http://jsfiddle.net/VWVsV/2/
Issue 1:
System information (version)

OpenCV => all version

Operating System / Platform => ❔

Compiler => ❔

Detailed description

It seems that the hosting site is not working.

Steps to reproduce

Issue submission checklist

I report the issue, it's not a question

I checked the problem with documentation, FAQ, open issues,

forum.opencv.org, Stack Overflow, etc and have not found solution

I updated to latest OpenCV version and the issue is still there

There is reproducer code and related data files: videos, images, onnx, etc

Issue 2:
System information (version)

OpenCV => ❔

Operating System / Platform => ❔

Compiler => ❔

Detailed description

Steps to reproduce

Issue submission checklist

I report the issue, it's not a question

I checked the problem with documentation, FAQ, open issues,

answers.opencv.org, Stack Overflow, etc and have not found solution

I updated to latest OpenCV version and the issue is still there

There is reproducer code and related data files: videos, images, onnx, etc
Issue 1:
Feature request

I thiink it is necessary to support alnp. For example, if a developer want to create a http2 server, alpn can make handshake quicker.

Issue 2:
This was discussed over in denoland/deno_std#153 but was locked during the move.

While we still have concerns around the HTTP server, we should also consider supporting HTTP/2, HTTP/3 and QUIC.
Issue 1:
Problem

Currently the props are merged with the instance's own data, which has a few problems:

Both data and props can declare the same property name. The order and priority of the merging is not clear. Should a prop overwrite the field with the same name in data? Or the other way around? Currently, the props' initial values are available inside data functions, but the same field returned in data gets overwritten by the prop.

Once merged, it's not clear whether a component property is its "private" state or a prop that is passed down from (and thus can be changed by) the parent, unless you go and check the component's props declaration.

Proposal

Move props into its own name space, for example this.props. This avoids the merging problem (we can either make props a reserved field or make it $props) and makes it explicit that something is a prop that is obtained from outside the component.

Throw a warning if the user defines duplicate fields in data and props.

Issue 2:
new Vue({
el: '#el',
template: '#tpl',
data: {
items: [
// works fine if defined here
// {title: 'Title 1', id: 1},
// {title: 'Title 2', id: 1},
// {title: 'Title 3', id: 1},
]
},
compiled: function(){
// does not work
// Uncaught TypeError: Cannot read property 'appendChild' of null
this.items = [
{title: 'Title 1', id: 1},
{title: 'Title 2', id: 1},
{title: 'Title 3', id: 1},
]
}
})

<div id="el"></div>

<script id="tpl" type="wtf/exception">
<div v-repeat="items" track-by="id">
{{ title }}
</div>
</script>

https://jsfiddle.net/sw_double/uasek0pt/
Issue 1:
Hello,

we moved recently from TS 1.4 to TS 1.5 with Visual Studio 2013.

When we have the following class definition:

export class ErrorClass {
public foo({bar: number}) { }
}

With the Option "Generate declaration files" and "combine javascript output into file" to true, the resulting declaration for this file will be:

class ErrorClass {
foo({bar: }: {
bar: any;
}): void;
}

Which is syntactically incorrect: The first "bar" is missing the type specifier (and is of type number instead of any).

This will cause that projects using this declaration file fails to compile.

Can anyone reproduce this? Is there a fix available?

Kind regards,

Timo

Issue 2:
I have an interface that is supposed to have a function signature of:

(param: {prop: boolean}): any

but I forget the parameter name (I'm not sure if this signature is considered valid):

({prop: boolean}): any

When compiling this invalid interface with the --declaration flag, an invalid .d.ts file results:

/* foo.ts */
export interface SomeInterface {
({prop: boolean}): any
}

tsc foo.ts --module commonjs --declaration

/* foo.d.ts */
export interface SomeInterface {
({prop: }: {
prop: any;
}): any;
}

If parameter names are optional, this should produce a valid .d.ts file. If parameter names are required, tsc should throw an error, or at least warn me that there is an issue.
Issue 1:
I've been trying to implement Gaussian Processes Regression, which require the calculation of a matrix inverse. With regular numpy I would use np.linalg.inv, but I can't find this function back in jax.

Everything else is working as expected, and I can use np.linalg.inv for basic calculations.

Unfortunately, the use of np.linalg.inv keeps me from using grad to calculate gradients, which would be the most exciting part of the whole implementation!

I would love to contribute a PR if someone can tell me where to start.

Issue 2:
With multiple GPUs there should be a way to direct specific computations to run on a specific GPU.

Context: I want to run #gpu different models in parallel each on its own GPU.

The current best solution that comes to mind is to RPC between different machines, each with 1 GPU -- I'd like to avoid doing this.

@hawkinsp @mattjj