WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
On master, as a small example:

In [1]: df = pd.DataFrame([[1,2,3,4],[5,6,7,8]], columns=['A','B','A','B'])

In [2]: df
Out[2]:
A B A B
0 1 2 3 4
1 5 6 7 8

In [4]: df.to_excel('test_excel_duplicate_columns.xlsx')

gives:

So the values of columns 2 and 3 are swapped (not the column names)

BTW, this happens both with .xlsx as .xls (openpyxl / xlsxwriter / xlwt)

Possibly related: #10982, #10970

Issue 2:
30% slowdown and up.

melt_dataframe | 2.7920 | 2.1487 | 1.2994 |
concat_small_frames | 22.1807 | 17.0054 | 1.3043 |
dti_reset_index | 0.2950 | 0.2257 | 1.3070 |
frame_reindex_upcast | 28.8033 | 21.2270 | 1.3569 |
frame_fancy_lookup_all | 30.4507 | 22.1930 | 1.3721 |
timeseries_large_lookup_value | 0.0383 | 0.0277 | 1.3811 |
frame_boolean_row_select | 0.4419 | 0.3170 | 1.3941 |
panel_from_dict_equiv_indexes | 58.9810 | 41.6213 | 1.4171 |
panel_from_dict_same_index | 58.9364 | 41.5120 | 1.4197 |
frame_xs_row | 0.0637 | 0.0443 | 1.4355 |
groupby_frame_singlekey_integer | 4.3193 | 2.9940 | 1.4427 |
frame_ctor_nested_dict | 142.8297 | 98.7384 | 1.4465 |
frame_to_csv2 | 191.4937 | 130.7974 | 1.4640 |
series_ctor_from_dict | 5.1107 | 3.4617 | 1.4764 |
groupby_multi_python | 175.8397 | 117.9717 | 1.4905 |
frame_to_csv | 237.1720 | 154.0547 | 1.5395 |
series_string_vector_slice | 325.1186 | 208.9640 | 1.5559 |
indexing_panel_subset | 0.9351 | 0.5874 | 1.5919 |
frame_insert_500_columns_end | 198.1669 | 124.3424 | 1.5937 |
frame_ctor_nested_dict_int64 | 173.6054 | 106.8807 | 1.6243 |
frame_loc_dups | 1.2674 | 0.7770 | 1.6311 |
frame_get_dtype_counts | 0.1843 | 0.1113 | 1.6552 |
ctor_index_array_string | 0.0393 | 0.0236 | 1.6667 |
frame_get_numeric_data | 0.1736 | 0.0997 | 1.7424 |
frame_constructor_ndarray | 0.1047 | 0.0587 | 1.7846 |
frame_iteritems_cached | 1.1443 | 0.6117 | 1.8707 |
indexing_dataframe_boolean_rows_object | 0.9307 | 0.4853 | 1.9176 |
reshape_stack_simple | 2.6710 | 1.3684 | 1.9520 |
frame_iloc_dups | 0.5160 | 0.2420 | 2.1323 |
frame_xs_col | 0.0720 | 0.0323 | 2.2260 |
dataframe_getitem_scalar | 0.0199 | 0.0087 | 2.3028 |
datamatrix_getitem_scalar | 0.0193 | 0.0083 | 2.3143 |
indexing_dataframe_boolean_rows | 0.5593 | 0.2393 | 2.3374 |
series_constructor_ndarray | 0.0397 | 0.0167 | 2.3762 |
sparse_frame_constructor | 13.0450 | 4.7807 | 2.7287 |
frame_iteritems | 76.1917 | 27.6610 | 2.7545 |
indexing_frame_get_value_ix | 0.0123 | 0.0044 | 2.8182 |
series_getitem_scalar | 0.0199 | 0.0070 | 2.8523 |
frame_from_series | 0.1774 | 0.0534 | 3.3214 |
frame_fancy_lookup | 7.8727 | 1.7236 | 4.5675 |
series_get_value | 0.0123 | 0.0017 | 7.3810 |

Ruled out

frame_repr_tall | 49.2450 | 2.3817 | 20.6762 |
frame_repr_wide | 977.6090 | 1.1230 | 870.5710 |

#5550: truncated repr for large frames. legitimate change.
Issue 1:
I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Currently Angular does not have native support, so when we have a form that has an Input = File, we have to implement customizations so that when sending the form, the file is also sent via multipart/form-data.

There are some code examples, such as:

angular2-multipartForm

But these libraries do not integrate very well with the Angular.

Expected behavior

It would be very interesting if in future versions Angular had native support for "input=file" and multipart/form-data.

Adding compatibility with File API.

This would make it much easier for developers who want to implement this type of field in their application forms.

There are some libraries for this, such as: angular2-multipartForm, ng2-file-upload

However, they do not implement very well, or are not updated or break the good practices of the Angular.

Please tell us about your environment:

Angular version: 4.0

Browser: all

Language: all

Node (for AoT issues): node --version = 6.10

Issue 2:
I notice there is no control value accesor for inputs of type "file"
Issue 1:

Issue 2:
High Priority:

repeat

split

std

var

renorm

eq

ge

gt

le

lt

ne

Mid Priority:

cross

cumsum

trace

unfold

cumprod

atan2

__and__

__bool__

__iand__

__ior__

__ixor__

__mod__

__nonzero__

__or__

__xor__

cauchy

exponential

fill

geometric

log_normal

normal

ones

random

uniform

zero

zeros

Wontfix (as in very very low priority, but PRs are welcome!):

gesv

inverse

potrf

svd

trtrs

orgqr

ormqr

potri

potrs

pstrf [NOW DEFUNCT]

qr

symeig

eig

gels

geqrf
Issue 1:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): no

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.): "is:issue is:open federation service", "is:issue is:open federated service"

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:10:32Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Cloud provider or hardware configuration: AWS

OS (e.g. from /etc/os-release): jessie (Debian 8)

Kernel (e.g. uname -a): Linux ip-172-20-110-96 4.4.23-k8s #1 SMP Fri Sep 30 13:51:02 UTC 2016 x86_64 GNU/Linux

Install tools: kops

Others:

What happened:

We are applying label selectors to a service that is federated. e.g.,

apiVersion: v1
kind: Service
metadata:
name: date-time-federated
spec:
selector:
name: update-demo
version: black
ports:
-
protocol: TCP
port: 8080
targetPort: 8080
type: LoadBalancer

What you expected to happen:

We expect the federated service to be updated on all clusters. Instead, the controller manager reports no changes to the service.

When we print the service YAML from the federation, it contains the new label selectors. When we print the service YAML directly from the clusters' APIs (who are members of the federation) there are no updates to the service whatsoever.

How to reproduce it (as minimally and precisely as possible):

Set --v=5 on the federation controller manager. Create a federated service. Add some label selectors to the service and apply it through the federation. Watch the federation controller manager logs while applying the new label selectors and observe the logs that indicate there is no update because there are no perceived changes to the service.

Anything else do we need to know:

We see that the controller manager is only evaluating the ports for changes to the service. See the 1.4.0 reference and the master reference.

Do we have the correct expectation that update criteria should be broader than just changes to ports?

Our use case is for deployment update strategies like sticking a canary under the service.

Thanks a bunch!

Issue 2:
Reported by a couple users. For example:

http://stackoverflow.com/questions/34732597/kubernetes-pod-cant-connect-through-service-to-self-only-to-other-pod-contai

If deliberate, we should document it. I don't see this mentioned in services.md, for instance.
Issue 1:
I think that the help text should be changed to indicate that the selector $(container) needs to be used. If used as is it does not work.

Instead of

$("#target4").appendTo("#left-well");

it should read

$("#target4").appendTo($("#left-well"));

Challenge Waypoint: Use appendTo to Move Elements with jQuery has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36.

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

My code:

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo($("#right-well"));
});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

Issue 2:
A bug seems to be present: Chrome 46.0.2490.86 m; Windows 8.1 with respect to appendTo() function.

$("#target2").appendTo($("#right-well")); does work, but not the $("#target2").appendTo("#right-well");, the latter being suggested in the tutorial.

Hard reload and cache clearing did not seem to solve the problem.
Issue 1:
Am I the first one find it out?

v1-beta2 AppBar

If there is an icon button on the left the title, the icon button margin-left is large than margin-top and margin-bottom.

I don't know if it is a issue.

Issue 2:
Since upgrading from material-ui@1.0.0-beta.12 to >=1.0.0-beta.13, my application cannot even boot up, it crashes straight with an error message.

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

Current Behavior

The following error message gets thrown in the form of a "red screen of death":

Invariant Violation: Unknown(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.
invariant
webpack:///~/fbjs/lib/invariant.js:42
ReactCompositeComponentWrapper.mountComponent
webpack:///~/react-dom/lib/ReactCompositeComponent.js:192
Object.mountComponent
webpack:///~/react-dom/lib/ReactReconciler.js:43
ReactDOMComponent.mountChildren
webpack:///~/react-dom/lib/ReactMultiChild.js:234
ReactDOMComponent._createInitialChildren
webpack:///~/react-dom/lib/ReactDOMComponent.js:701
ReactDOMComponent.mountComponent
webpack:///~/react-dom/lib/ReactDOMComponent.js:520
Object.mountComponent
webpack:///~/react-dom/lib/ReactReconciler.js:43
ReactCompositeComponentWrapper.performInitialMount
webpack:///~/react-dom/lib/ReactCompositeComponent.js:368
ReactCompositeComponentWrapper.mountComponent
webpack:///~/react-dom/lib/ReactCompositeComponent.js:255
Object.mountComponent
webpack:///~/react-dom/lib/ReactReconciler.js:43

Steps to Reproduce (for bugs)

Clone https://github.com/simonyiszk/mvk-web

Upgrade material-ui to the latest version (>=1.0.0-beta.13)

Launch the application using yarn develop or npm run develop

Open a web browser at the location shown inside the console

Your Environment

Tech
Version

Material-UI
1.0.0-beta.16

React
15.6.2

Browser
Google Chrome 61.0.3163.100 x64

Gatsby
1.9.55
Issue 1:
The help gives no info about the fact that a function is deprecated.

EDIT: Unless you notice that it is defined in deprecated.jl.

Example:

help?> fft
search: fft fft! FFTW fftshift rfft ifft bfft ifft! bfft! ifftshift irfft brfft

No documentation found.

Base.DFT.fft is a Function.

# 1 method for generic function "fft":
[1] fft(args...; kwargs...) in Base.DFT at deprecated.jl:133

julia> fft()
ERROR: Base.DFT.fft has been moved to the package FFTW.jl.
Run `Pkg.add("FFTW")` to install it, restart Julia,
and then run `using FFTW` to load it.
Stacktrace:
[1] error(::Function, ::String, ::String, ::String, ::String, ::String, ::String, ::String, ::String, ::String) at ./error.jl:44
[2] fft() at ./deprecated.jl:133
[3] top-level scope

Issue 2:
Unlike other iterable types, Task seem to advance on done instead of next. Is there a reason for this - it seems to break the iteration contract. eg.

function p()
produce("A")
produce("B")
produce("C")
end

t = Task(p)

println("1")
s = start(t)
println("2")
done(t, s)
println("3")
(v, s) = next(t, s)
println("4 $v")
done(t, s)
println("5")
(v, s) = next(t, s)
println("6 $v")
(v, s) = next(t, s)
println("7 $v")
done(t, s)
println("8")

Produces:

1
2
3
4 A
5
6 B
7 B
8
Issue 1:
In angular 1 we transform form data in this way ng-model-options="{ getterSetter: true }". In my plunk http://plnkr.co/edit/hWuOlOQn9iTlTKEL38sM?p=preview emails input can be a comma delimited email list. How could it be implemented without moving transform logic to the onSubmit method?

I found the ControlValueAccessor, DefaultValueAccessor and NumberValueAccessor classes, but I don't know how to use my own on a single input.

Issue 2:
Implementing custom formatters and parsers is a common way to extend control types in Angular 1.

I think there are two ways to do it in Angular 2:

Implement parsers and formatters similar to Angular 1

Make defining new value accessors easier, so the use case can be handled by defining a new accessor.
Issue 1:
While tracing codes, found that:

Inside ReactCompositeComponentMixin.mountComponent, the code reads

// These should be set up in the constructor, but as a convenience for
// simpler class abstractions, we set them up after the fact.
inst.props = publicProps;
inst.context = publicContext;
inst.refs = emptyObject;

https://github.com/facebook/react/blob/master/src/renderers/shared/reconciler/ReactCompositeComponent.js#L149

However, at ReactClass.createClass, the props and context are set already

this.props = props;
this.context = context;

https://github.com/facebook/react/blob/master/src/isomorphic/classic/class/ReactClass.js#L826

It seems no reason to have duplicated codes.

Should we remove one of these two code snippets and only keep one ?

Or is there any reason for this ?

If no other concerns, I would suggest move the setup of the props, context and refs back to the class constructor.

Make the duty of constructing and the duty of mounting clear.

Issue 2:
Hello there!

We, in our team, love the new Hooks API!

But it comes with one negative thing we are experiencing since the 16.8 update...

Hooks can only be called inside the body of a function component.

We internally use multiple repositories.

One for every customer project and multiple shared libraries.

Since hooks require us to only have one copy of react in the scope (https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react) we are forced to link our project to allow development of the shared libraries while running the dev server from the customer projects.

So we have to link our projects depending on which project we are currently working on.

#!/bin/bash
cd /shared-component-library
pushd ./node_modules/react && yarn link && popd
pushd ./node_modules/react-dom && yarn link && popd
yarn link

cd /shared-hooks-library
yarn link "react"
yarn link "react-dom"
yarn link

cd /customer-project-1
yarn link "react"
yarn link "react-dom"
yarn link "shared-component-library"
yarn link "shared-hooks-library"

This process has to be done for every frontend developer and does not work every time you try.

Before you add new dependencies you have to unlink every linked dependency.

and therefore it is very time consuming and is in our way.

Then we stumbled upon yarn plug'n play... which is not working for the most part. most npm packages cannot be installed, therefore its not a viable option for us.

And then we tried the package manager pnpm which installs all dependencies on a central location in the filesystem and we thought that this might fix all of our issues. unfortunately there are two react instances too...

We would highly appreciate if someone would put some effort into this topic.

Maybe by finding a way to make sure only one react instance is present - making it a Singleton somehow?!

We don't have to re-invent the package management for this issue i think - it's just a matter of detecting of a react instance is already present - i think ^^
Issue 1:
Is there any existing feature for printing the scene tree to the console, e.g. for debugging? I'm finding it a bit time-consuming to expand node.children recursively in the JS Console. If not, I wanted to propose something along the lines of:

SceneUtils.log( node );

. <Scene>
├── <Object3D>
│ └── joint_1 <Bone>
│ └── joint_2 <Bone>
│ └── joint_3 <Bone>
├── fancy_character <SkinnedMesh>
├── <PointLight>
├── <AmbientLight>
└── bookshelf <Mesh>

Issue 2:
Describe the bug

JPEG textures in an input GLB get exported as PNG, causing such models to grow enormously in size.

To Reproduce

Steps to reproduce the behavior:

Go to https://threejs.org/editor/

Import DamagedHelment.glb

Export as GLB

Note the original was 3.8 Mb, while the new is 17.9 Mb

Expected behavior

The exported model should be pretty close to the same size as the original. I understand it won't be identical, which is fine, but this is pretty unusable.

Cause

#23385 is sort of the culprit, but really it was #23228 where the RGBFormat was removed and this was the only way we had to tell if a texture had been a JPG or a PNG. @Mugen87 @donmccurdy This is blocking model-viewer's update to r137/r138 because it affects our editor the same as yours. Can anyone think of a quick work-around?
Issue 1:
Description of the new feature/enhancement

Improve the console User Experience by using the console schema "Campbell". Currently, using the "Solarize Dark", makes it harder to read and the bash console colors are gone.

Proposed technical implementation details (optional)

Change:

"colorScheme": "Solarized Dark",

to:

"colorScheme": "Campbell",

Issue 2:
When I don't use the terminal for some time (preferably when I left my PC unattended for some time...), the window just disappeared.

Since I have little to no idea on how this can be reproduced consistently, I mainly want to post this here in case other people observe the same behavior.

Environment

Windows build number: 10.0.18999.1
Windows Terminal version (if applicable): 0.5.2762.0

Steps to reproduce

I can't consistently reproduce this, but it happens to me lots of the times when I leave the terminal unused for some time (at least half an hour I would say).

Expected behavior

As long as I don't explicitly close it, the Terminal stays open.

Actual behavior

After some undefined period of time, the Terminal window is just gone. All that is left to make sure I'm not crazy is the processes of the tabs / panes I had opened - although I have no idea how to get back to them:
Issue 1:
TypeScript Version:

1.8.0.10 & nightly (1.9.0-dev.20160601)

Code

Small example project here: https://github.com/unindented/ts-webpack-example

Project has the following layout:

.
├── app
│ ├── index.css
│ ├── index.html
│ └── index.ts
├── components
│ ├── button
│ │ ├── index.css
│ │ ├── index.html
│ │ └── index.ts
│ └── counter
│ ├── index.css
│ ├── index.html
│ └── index.ts
├── package.json
├── shared
│ ├── backbone_base_view.ts
│ ├── backbone_with_default_render.ts
│ └── backbone_with_subviews.ts
└── tsconfig.json

tsconfig.json has the following options:

{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"noImplicitAny": false,
"removeComments": false,
"preserveConstEnums": true,
"sourceMap": true,
"outDir": "dist"
},
"exclude": [
"dist",
"node_modules"
]
}

Expected behavior:

I'd expect imports like this one to work:

import Counter from 'components/counter/index';

Actual behavior:

I get TS2307 errors:

app/index.ts(1,21): error TS2307: Cannot find module 'components/counter/index'.
components/button/index.ts(2,22): error TS2307: Cannot find module 'shared/backbone_base_view'.
components/button/index.ts(3,25): error TS2307: Cannot find module 'shared/backbone_with_default_render'.
components/counter/index.ts(2,22): error TS2307: Cannot find module 'shared/backbone_base_view'.
components/counter/index.ts(3,25): error TS2307: Cannot find module 'shared/backbone_with_default_render'.
components/counter/index.ts(4,27): error TS2307: Cannot find module 'shared/backbone_with_subviews'.
components/counter/index.ts(5,20): error TS2307: Cannot find module 'components/button/index'.

However, if I change module to amd, things do work.

If this is intentional, is there a way to have commonjs be able to resolve these kinds of "absolute" paths?

Issue 2:
TypeScript Version:

This is reproducible both in VSCode 1.0 and in the playground (https://www.typescriptlang.org/play/#src=...)

Code

interface A {
x: number;
}

interface B {
x: string;
}

const c: A | B = { x: 1 || "a" };

const d: A | B = { x: 1 } || { x: "a" };

Expected behavior:

Both c and d should be fine

Actual behavior:

TypeScript reports this error for the const c: A | B = { x: 1 || "a" }; statement:

Type '{ x: number | string; }' is not assignable to type 'A | B'.
Type '{ x: number | string; }' is not assignable to type 'B'.
Types of property 'x' are incompatible.
Type 'number | string' is not assignable to type 'string'.
Type 'number' is not assignable to type 'string'.
Issue 1:
Proposed new feature or change:

As the title, Bfloat16 is a new data type of float number that is used in cuda A100 cards and intel CPU. Does numpy have any plan to support Bfloat16?

Issue 2:
Feature

Hi,

I am working at PaddlePaddle(chinese DL framework). We and other DL frameworks would extremely benefit from integrated bfloat16 numpy datatype. I have seen that TF added its own implementation and lately a standalone pip package bfloat16 was released.

I have also seen NEP 41, 42, 43 which from what I understand will allow adding new, user-defined datatypes. Are you guys planning to integrate bfloat16 into core numpy? If you don't have the bandwidth to do that, is there anyone that can guide me how to implement that so I can make a PR? And how are these NEPs going?
Issue 1:
Symfony 4.1.0

Hello when I deploy my symfony application on my production server it does not work it shows me an error that is the following :

Attempted to call an undefined method named "hasBeenStarted" of class "Symfony\Component\HttpFoundation\Session\Session".

Please can you help me to find a solution I must make the project today

I am under symfony 7.2.7

cordially

Issue 2:
Symfony version(s) affected: >=4.0.12, >=4.1.1

Description

After upgrading HttpFoundation to version 4.0.12 (due to a security issue reported by SensioLabs Security Checker), our web debug toolbar stopped working. Debugging this issue shows that there seems to be a mismatch between version 4.0.4 of HttpKernel and version 4.0.12 of HttpFoundation, because the method hasBeenStarted has been removed from Symfony\Component\HttpFoundation\Session\Session.

This sounds to me like a BC break. I'm not sure if we are supposed to upgrade all symfony packages at the same time, but I think the composer.json of symfony/http-foundation should at least contain a conflicts entry. I realize that the hasBeenStarted method was tagged as @internal but apparently it was being used in other Symfony components.

Apparently this affects the web debug toolbar, but not our actual application.

The same issue seems to occur with version 4.1.1.

How to reproduce

Have symfony/http-foundation on version 4.0.12 and symfony/http-kernel on a lower version. Open the web interface with the debug toolbar enabled.

Possible Solution

Restore the hasBeenStarted method

Add a conflicts entry to the composer.json of HttpFoundation, to point out the conflict with older versions of HttpKernel

Additional context

This screenshot shows the request made by the web debug toolbar:

Installed Symfony components with their versions (from composer show symfony/*):