WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
My problem might be related to #4492, however now appeared in Symfony v2.7.3:

Reordering of form collections using AJAX submits does not work correcly.

I have an entity "Meeting", which consists of a collection of "Topics". When reordering the topics, the integer field "position" is re-assigned using javascript based on the current ordering.

When starting, the collection of topics is as follows:

topic[0] : topic ZERO, position 0

topic[1] : topic ONE, position 1

Now I switch the order (using jQuery), it looks as follows:

topic[1] : topic ONE, position 0

topic[0] : topic ZERO, position 1

Now I save this state to the database using AJAX, meaning that in the browser (DOM) nothing changes.

Now I switch the order again, it looks exactly as in the beginning:

topic[0] : topic ZERO, position 0

topic[1] : topic ONE, position 1

Now I save again using AJAX (no visible change in the browser).

When I reload the page, however, something strange appears:

topic[1] : topic ZERO, position 0

topic[0] : topic ONE, position 1

-> The order of topics is not switched but only their content reassigned to the new position, which leads to the situation that the topic's content is changed which should definitely not happen.

-> If I reload after the first saving (meaning standard POST submit with page reload instead of AJAX), everything is fine in the end.

What's wrong here?

Thanks a lot!

Issue 2:
Symfony default behaviour for handling reordering in collection type is wrong.

When you reorder to items saved in database as:

id: 56, name: first, order: 0

id: 57, name: second, order: 1

After changing they positions I receive:

id: 56, name: second, order: 0

id: 57, name: first, order: 1

Instead of:

id: 56, name: first, order: 1

id: 57, name: second, order: 0

Last occurrence at version 2.0.15
Issue 1:
When you are building components, you often want to support both valueLink and value/onChange, which means you need a function like this:

getValueLink: function(props) {
return props.valueLink || {
value: props.value,
requestChange: props.onChange
};
},

This easily end up being duplicated between components. Would it be an idea to include it in the LinkedState mixin?

Issue 2:
Describe what you were doing when the bug occurred:

1.

2.

3.

Please do not remove the text below this line

DevTools version: 4.2.1-3816ae7c3

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)

at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)

at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)

at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)

at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)

at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)

at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)

Component stack: in vl

in div

in div

in div

in wo

in Unknown

in n

in Unknown

in div

in div

in Li

in $e

in dn

in Ca

in Pc
Issue 1:
I would love to drag windows to zones without having one hand on the keyboard. But I also don't want zones enabled always when I move a window, because I like free placement too.

Wouldn't it be nice when you could set a modifier by yourself? Maybe use your 5th mouse button as a modifier? Or you could also enable something like left + right mouse down + mouse drag to show zones..

Issue 2:
I use 38" display (3840 x 1600) in office and 34" (3440x1440) at home.

When I move in between those displays I always need to open Zones editor and apply same layout to not have smaller or bigger zones. Otherwise I have zones small (when I move from 34" to 38" display and higher resolution) or bigger when I move vice-versa.

I think fix can be quite easy, just to re-apply layout when display is changed.

Anyway, I can't imagine working on todays' displays without PowerToys ;-)
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Display the delete icon for the <Chip /> component when onDelete prop is provided.

Current Behavior

Does not display the delete icon for the <Chip /> component when onDelete prop is provided.

Steps to Reproduce (for bugs)

Install material-ui v1.0.0-beta23 on a fresh project with create-react-app

Copy over the example code for a chip array https://material-ui.com/demos/chips/

Observe how the delete icon does not appear for any of the chips.

Observe in the console the error: Warning: Unknown event handler property "onDelete". It will be ignored.

Context

Your Environment

Tech
Version

Material-UI
1.0.0-beta.23

React
16.2.0

browser
Chrome 63.0.3239.84 (Official Build) (64-bit)

etc

Issue 2:
I'm currently using next.js with material-ui. I've stubbled across adding the href prop to a button, and in most cases I can wrap a button with a ..

However, I'm struggling with Tab.

Cannot read property 'charAt' of undefined

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

Steps to Reproduce (for bugs)

<Tabs centered>
<Link route="/home">
<Tab
label="Home"
href="/home"
/>
</Link>
</Tabs>

Context

I'm trying to avoid a full page reload and use the Router push/replace features.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.27

React
16.2.0

next.js
4.4.0-canary.3
Issue 1:
All works fine but there are errors in console, maybe I am not properly use ngSwitchDefault directive, but there is nothing about the right location of ngSwitchDefault in docs. For example, if ngSwitchDefault must be in the same level of nesting like all ngSwitchCase or not.

import { Component } from '@angular/core';

@Component({
selector:'my-app',
template:`
<input type="text" [(ngModel)]="box"/>
<div [ngSwitch]="box">
<div *ngFor="let j of ['1','2','3']">
<div *ngSwitchCase="j">Case {{j}}</div>
</div>
<h2 *ngSwitchDefault>Default</h2>
</div>
`})
export class App {
box:string = '1';
}

I'm submitting a ...

[x] bug report

Reproduction of the problem

http://plnkr.co/edit/KWEExfmHYtmKs7FpR00d?p=preview

Issue 2:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] 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

This issue only appears on initial view creation.

If a ngSwitchDefault is surrounded by a ngIf like:

<div [ngSwitch]="switchVar">
<template [ngIf]="1">
<span *ngSwitchCase="0">0</span>
<span *ngSwitchDefault>A</span>
</template>
</div>

the ngSwitchDefault element will not be shown.

If you remove the ngIf it works fine like:

<div [ngSwitch]="switchVar">
<span *ngSwitchCase="0">0</span>
<span *ngSwitchDefault>A</span>
</div>

Expected behavior

It should show ngSwitchDefault on view creation, if surrounded by ngif.

Reproduction of the problem

http://plnkr.co/edit/vy4KguXbPxnBxeMgqAWd?p=preview

What is the motivation / use case for changing the behavior?

Fine working framework

Please tell us about your environment:

Angular version: 2.0.1

Browser: [all]

Language: [all]

Node (for AoT issues): node --version = 6.6.0
Issue 1:
Kyrill Alyoshin opened SPR-9170 and commented

I think it would be a really-really good idea to move org.springframework.batch.retry into org.springframework.core.retry. It is really well-thought out and useful API, a true gem. I can't believe I haven't noticed it in all these years of using Spring. The API contain no conceptual dependencies on batch infrastructure and they should really be moved into the core.

Affects: 3.1.1

Issue Links:

#9531 Migrate Repeat and Retry from Spring Batch ("duplicates")

1 votes, 4 watchers

Issue 2:
Dave Syer opened SPR-4855 and commented

Migrate Repeat and Retry from Spring Batch. They are almost completely self-contained now (on trunk), so it shouldn't be a tough job - just need to decide where to put them. Maybe the tests might have some batch dependencies, but they would be easily factored out. There is also a dependency on some utility stuff in org.springframework.batch.support which would need to be moved over or equivalents provided in core.

The only real work will be migrating the StatefulRetryOperationsInterceptor (very useful). It currently depends on ItemKeyGenerator and NewItemIdentifier, for good reasons, so equivalents will have to be provided. When this is refactored it might also be a good idea to revisit the whole stateful retry concept - it could be implemented as an extension of the RetryOperations interface instead of through a callback / policy pairing as it is now.

Affects: 2.5.4

Issue Links:

#13808 Consider moving Spring Batch Retry package into Spring Core ("is duplicated by")

1 votes, 3 watchers
Issue 1:
Right now, as I understand it, helpers registered to the PHP templating engine aren't accesible in Twig, so any developer who writes a helper must duplicate (or at least wrap) their helper to make it available to Twig templates. To me, this seems like unnecessary work for the developer and it's bound to cause trouble for some users switching from one templating engine to the other. Why not simply have TwigBundle pass the PHP helpers to all twig templates?

Issue 2:
The API of FileSystem::copy() is unintuitive and its docs are probably flawed. It says:

@param bool $override Whether to override an existing file or not

But that's not true, even if $override is false the target might be overwritten if it's older than origin. Generally, I would expect

$fs->copy($origin, $target, false);

not to overwrite my $target but it does. Either the docs should make this very clear or the behavior should ideally be changed but that would probably mean a breaking change. Anyway, if #10547 gets a go ahead I think that the time comparison "magic" should be removed or at least hidden behind some appropriately named parameter.
Issue 1:
REF: https://github.com/scikit-learn/scikit-learn/pull/18183/files#r472079672

Issue 2:
Currently, the following list of metrics will raise an error if str are provided as labels and that pos_label is not defined and needed to compute the metrics:

average_precision_score

f1_score

fbeta_score

jaccard_score

precision_recall_curve

precision_score

recall_score

roc_curve

We try to make sure that the error message is consistent in #18192

brier_score_loss should supposedly follow the behaviour than the other metrics. However, it seems that up-to-now, it does some inference when labels are string.

Thus, 2 questions can be raised:

Is it normal that brier_score_loss can do such inference or should it raise a similar error as other metrics?

If it should raise an error, shall we open consider as a bug fix or make a deprecation cycle?
Issue 1:
Is it possible to use next.js with the new react router v4?

Issue 2:
Bug report

Describe the bug

We are displaying a banner for users to manage their third party cookie consent. We include the script on the page

and then it goes and downloads the necessary styling.

When upgrading from version 9.0.2 to > 9.0.3 we are seeing an issue with the script inclusion.

The script seems to be rendered in the page source (View Page Source), but when looking at the Elements tab of the

devtools it's not visible. When going to the network tab, we can see the script being downloaded successfully.

We can also see the CSS the script dynamically loads in the network tab, but it doesn't appear on the page.

Any help would be great!

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Use test repo and run yarn dev

Load main page, view designs (actual behaviour)

Downgrade next to v9.0.2, yarn, yarn dev

Load main page, view designs (expected behaviour)

Actual behavior

Expected behavior

Screenshots

See above

System information

OS: macOS

Browser (if applies): Chrome, Firefox

Version of Next.js: 9.0.7 (breaking at 9.0.3)
Issue 1:
Reported by @mechanoid here TypeStrong/atom-typescript#719 (comment) Tested with TypeScript nightly

Sample from original issue report : https://github.com/mechanoid/ts-import-error-test

Issue 2:
This is as minimal an example as I have for now (tsc version and tsconfig.json details at the bottom of this issue)

class A {
doIt(x: Array<string>): void {
x.forEach((v) => {
switch(v) {
case "test": console.log(this);
}
});
}
}

Comparing the transpiled output from 1.8.0-dev.20151109 and 1.8.0-dev.20151110 we see:

--- app.js.1.8.0-dev.20151109 2015-11-12 16:02:01.064780316 +0000
+++ app.js.1.8.0-dev.20151110 2015-11-12 16:05:07.933061708 +0000
@@ -2,10 +2,9 @@
function A() {
}
A.prototype.doIt = function (x) {
- var _this = this;
x.forEach(function (v) {
switch (v) {
- case "test": console.log(_this);
+ case "test": console.log(this);
}
});
};

This feels like a bug to me... but I might have missed something?

Thanks

message TS6029: Version 1.8.0-dev.20151110

{
"compilerOptions": {
"declaration": false,
"jsx": "react",
"module": "system",
"noImplicitAny": true,
"noLib": true,
"outDir": "../dist/",
"removeComments": false,
"rootDir": ".",
"sourceMap": true,
"target": "es5"
}
}
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke-serial/107/

Multiple broken tests:

Failed: DumpClusterLogs {e2e.go}

Terminate testing after 15m after 5h0m0s timeout during dump cluster logs

Issues about this test specifically: #33722 #37578

Failed: TearDown {e2e.go}

Terminate testing after 15m after 5h0m0s timeout during teardown

Issues about this test specifically: #34118 #34795

Failed: DiffResources {e2e.go}

Error: 19 leaked resources
+NAME MACHINE_TYPE PREEMPTIBLE CREATION_TIMESTAMP
+gke-bootstrap-e2e-default-pool-a39ba184 n1-standard-2 2016-12-06T06:49:38.059-08:00
+NAME LOCATION SCOPE NETWORK MANAGED INSTANCES
+gke-bootstrap-e2e-default-pool-a39ba184-grp us-central1-f zone bootstrap-e2e Yes 3
+NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
+gke-bootstrap-e2e-default-pool-a39ba184-8z7s us-central1-f n1-standard-2 10.240.0.3 130.211.228.182 RUNNING
+gke-bootstrap-e2e-default-pool-a39ba184-i3q8 us-central1-f n1-standard-2 10.240.0.5 104.154.166.164 RUNNING
+gke-bootstrap-e2e-default-pool-a39ba184-l691 us-central1-f n1-standard-2 10.240.0.2 104.154.180.28 RUNNING
+gke-bootstrap-e2e-default-pool-a39ba184-8z7s us-central1-f 100 pd-standard READY
+gke-bootstrap-e2e-default-pool-a39ba184-i3q8 us-central1-f 100 pd-standard READY
+gke-bootstrap-e2e-default-pool-a39ba184-l691 us-central1-f 100 pd-standard READY
+default-route-8abe11bc8b8276ff bootstrap-e2e 0.0.0.0/0 default-internet-gateway 1000
+default-route-8ff9f16630e0e354 bootstrap-e2e 10.240.0.0/16 1000
+gke-bootstrap-e2e-55bb9cb0-85e51399-bbc3-11e6-aa5b-42010af00051 bootstrap-e2e 10.72.1.0/24 us-central1-f/instances/gke-bootstrap-e2e-default-pool-a39ba184-8z7s 1000
+gke-bootstrap-e2e-55bb9cb0-b4c19733-bbcb-11e6-aa5b-42010af00051 bootstrap-e2e 10.72.3.0/24 us-central1-f/instances/gke-bootstrap-e2e-default-pool-a39ba184-l691 1000
+gke-bootstrap-e2e-55bb9cb0-e14db0ed-bbd0-11e6-aa5b-42010af00051 bootstrap-e2e 10.72.4.0/24 us-central1-f/instances/gke-bootstrap-e2e-default-pool-a39ba184-i3q8 1000
+gke-bootstrap-e2e-55bb9cb0-all bootstrap-e2e 10.72.0.0/14 tcp,udp,icmp,esp,ah,sctp
+gke-bootstrap-e2e-55bb9cb0-ssh bootstrap-e2e 130.211.233.111/32 tcp:22 gke-bootstrap-e2e-55bb9cb0-node
+gke-bootstrap-e2e-55bb9cb0-vms bootstrap-e2e 10.240.0.0/16 udp:1-65535,icmp,tcp:1-65535 gke-bootstrap-e2e-55bb9cb0-node

Issues about this test specifically: #33373 #33416

Failed: Deferred TearDown {e2e.go}

Terminate testing after 15m after 5h0m0s timeout during teardown

Previous issues for this suite: #37161

Issue 2:
Failed: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke-serial/93/

Run so broken it didn't make JUnit output!
Issue 1:
Issue description

Implement derivative for torch.eig(a, eigenvectors=True).

Code example

import torch
a = torch.tensor(1., requires_grad=True)
(a * torch.eye(3)).eig(eigenvectors=True)[1].sum().backward()

yields

RuntimeError: the derivative for 'eig' is not implemented

System Info

$ python collect_env.py
Collecting environment information...
PyTorch version: 0.4.1
Is debug build: No
CUDA used to build PyTorch: Could not collect

OS: Mac OSX 10.13.6
GCC version: Could not collect
CMake version: version 3.12.0

Python version: 3.6
Is CUDA available: No
CUDA runtime version: 9.2.148
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect

Versions of relevant libraries:
[pip] Could not collect
[conda] torch 0.4.1 <pip>
[conda] torchvision 0.2.1 <pip>
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ pip --version
pip 18.0 from /anaconda3/lib/python3.6/site-packages/pip (python 3.6)

Issue 2:
It seems that the derivative for 'eig' is not implemented in torch 0.3.1 .post2.

How could I use the derivate for 'eig'?
Issue 1:
I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[ ] 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

Basically I have 2 guards a child and a parent. The child guard navigates to a child route. The problem is the child guard is getting resolved before the parent.

Here is a plunker.

Also seems related to #11161 but from what the tests look like on that merge, it isn't doing what I describe here.

Expected behavior

I need a way to tell the child guard to wait until the parent has returned true before continuing.

Please tell us about your environment:

OSX, VIM/Sublime, Webpack

Angular version: 2.0.X

2.3.0

Language: [all | TypeScript X.X | ES6/7 | ES5] TS2

Issue 2:
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

CanActivate[Child] Guards run, parent-first, in parallel, meaning there is no way to resolve data in a parent that may be needed in child guards, unless managed explicitly elsewhere.

Expected behavior

A CanActivate[Child] guard's behavior could possibly be set to block children guards from.

Minimal reproduction of the problem with instructions

{
path: 'parent',
canActivateChild: [FiveSecondObservableGuard], // Takes a long time
children: [
{
path: 'child',
component: ChildComponent, // waits a long time, as expected
canActivate: [AuthGuard] // Runs immediately
}
]
}

What is the motivation / use case for changing the behavior?

Loading server information/flags that are required in all Guards can now be done in two ways:

in APP_INITIALIZER, which severely hinders UX choices/flexibility

Making all requests for server data asynchronous, making the whole codebase needlessly complex.

When a certain branch of routes is behind an AuthGuard that may need asynchronous loading, while the components respect the Guard the Guards themselves (which may require user identification to be complete) won't necessarily have access to that (unless all data is made asynchronous, as mentioned above)

Angular version: 2.0.X

Browser: all

Language: all
Issue 1:
The weekly build with nightly wheels from numpy and pandas

has failed. Check the logs for any updates that need to be

made in matplotlib.

https://github.com/matplotlib/matplotlib/actions/runs/3209069093

Issue 2:
The weekly build with nightly wheels from numpy and pandas

has failed. Check the logs for any updates that need to be

made in matplotlib.

https://github.com/matplotlib/matplotlib/actions/runs/3163174215
Issue 1:
~$ rustc | sh -c 'exec &0>-'
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. 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
task '<main>' failed at 'failed printing to stdout: broken pipe (Broken pipe)', /build/rust-git/src/rust/src/libstd/io/stdio.rs:215

Issue 2:
Attempting to run rustc --version with a closed stdout will ICE:

> rustc --version | false
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. 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
task '<main>' failed at 'failed printing to stdout: broken pipe (Broken pipe)', /Users/kevin/Dev/rust/rust/src/libstd/io/stdio.rs:245
Issue 1:
by slairf:

What steps will reproduce the problem?
1. compile a Go app (such as http://codepad.org/KFcgHcF6) in the usual manner
2. run 'strip' on the resulting binary: strip yourBinary
3. attempt to run the binary: ./yourBinary
4. experience a Segmentation fault

What is the expected output?
everything but a Segmentation fault

What do you see instead?
Segmentation fault

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g

Which operating system are you using?
Linux (Ubuntu 10.04)

Which revision are you using? (hg identify)
4d5b08163921+ tip

Please provide any additional information below.
version of strip: 2.20.1-system.20100303

Issue 2:
by rsc+personal@swtch.com:

What steps will reproduce the problem?
1. Run build on Ubuntu 9.10, which uses gcc 4.4.1

What is the expected output? What do you see instead?

Cgo fails with the following error:

{{{
go/misc/cgo/stdio$ make
cgo file.go
could not determine kind of name for C.CString
could not determine kind of name for C.puts
could not determine kind of name for C.fflushstdout
could not determine kind of name for C.free
throw: sys·mapaccess1: key not in map

panic PC=0x2b01c2b96a08
throw+0x33 /media/scratch/workspace/go/src/pkg/runtime/runtime.c:71
throw(0x4d2daf, 0x0)
sys·mapaccess1+0x74
/media/scratch/workspace/go/src/pkg/runtime/hashmap.c:769
sys·mapaccess1(0xc2b51930, 0x2b01)
main·*Prog·loadDebugInfo+0xa67
/media/scratch/workspace/go/src/cmd/cgo/gcc.go:164
main·*Prog·loadDebugInfo(0xc2bc0000, 0x2b01)
main·main+0x352
/media/scratch/workspace/go/src/cmd/cgo/main.go:68
main·main()
mainstart+0xf
/media/scratch/workspace/go/src/pkg/runtime/amd64/asm.s:55
mainstart()
goexit /media/scratch/workspace/go/src/pkg/runtime/proc.c:133
goexit()
make: *** [file.cgo1.go] Error 2
}}}

Please use labels and text to provide additional information.
Issue 1:
Google Chrome Version 29.0.1547.62 - OSX 10.8.4

Issue 2:
When launching the modal component (http://getbootstrap.com/javascript/#modals) the entire content will slightly move to the left on mac OS (haven't tried it on windows yet). With the active modal the scrollbar seem to disappear, while the content width still changes.

You can observer the problem on the bootstrap page