WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
https://mp.weixin.qq.com/s/j9ibj4ZYAqNZwwvSpIAtLA states a 64% simulator CPU usage which is plausible but also seems like a bug.

Could be related to #13203 and/or iOS simulator only too

Issue 2:
Steps to Reproduce

Create a widget below:

class Loading extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Column(mainAxisAlignment: MainAxisAlignment.center, children: [
new Center(child: const CupertinoActivityIndicator()),
const Padding(padding: const EdgeInsets.only(top: 8.0)),
new Center(child: new Text("Loading..."))
]);
}
}

Then run on a simulator, "top -o cpu"

PID COMMAND %CPU
13241 backboardd 128.3
13661 Runner 99.7

Then press 'q', the CPU drop to zero.

Flutter Doctor

[✓] Flutter (on Mac OS X 10.13.1 17B48, locale en-HK, channel master)
• Flutter at /Users/odd/wa/flutter/flutter
• Framework revision bdbe53be01 (2 days ago), 2017-11-24 19:13:18 -0800
• Engine revision 93b2179597
• Tools Dart version 1.25.0-dev.11.0

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.2)
• Android SDK at /Users/odd/Library/Android/sdk
• Unable to locate Android NDK.

• Unable to locate compiler in Android NDK.

• Platform android-26, build-tools 26.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.1, Build version 9B55
• ios-deploy 1.9.2
• CocoaPods version 1.3.1

[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Connected devices
• iPhone X • 2B869FE0-C8D2-4755-9C69-D0F91CED8588 • ios • iOS 11.1 (simulator)
Issue 1:
Hello,

I try to upgrade my vue app to 1.0 and get the following error over 200 times for each for loop:

[Vue warn]: Duplicate value found in v-for="book in books": "\"". Use track-by="$index" if you are expecting duplicate values.

This is my template code with 2 loops:

<select name="relation[books][]" multiple="" tabindex="-1" style="display:none;">
<template v-for="book in books">
<option :value="book.id" selected>
{{book.title}}
</option>
</template>
</select>

<div id="sortable-books" class="extended-relation-select__list --entries">
<template v-for="book in books">
<div>
<i class="fa fa-bars"></i>

{{book.title}}

<div class="pull-right">
<span class="buttons">
<i class="fa fa-times" @click="removeEntry($index)"></i>
</span>
</div>
</div>
</template>
</div>

And this is my array with the entries:

"books": [
{
"id": "55",
"title": "Wir nennen es Politik"
},
{
"id": "1",
"title": "Die Bienen"
},
{
"id": "2",
"title": "Finnisches Feuer"
},
{
"id": "3",
"title": "Träume Digitaler Schläfer"
}
]

Can someone explain me the issue here?

Issue 2:
Version

2.5.2

Reproduction link

https://codepen.io/spenspazmer/pen/aLXGGY?editors=1011

Steps to reproduce

1.Create a v-for list with items

2.Inspect and observe the item elements

3.Trigger an action that shifts and pops the list

4.Observe

What is expected?

The items should be removed without re-rendering the item list.

What is actually happening?

The whole list is re-rendered.

Adding new elements works just as expected, just as triggering several pop or shift operations, doing a single list splice from the end or start. Performing a splice from the beginning and the end respectively triggers the same re-rendering problem.
Issue 1:
Steps to reproduce and a minimal demo of the problem

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

What steps should we try in your demo to see the problem?

Should see right away

Current behavior

when using a method along with [ngClass], debugging shows that the classes get applied correctly, but are then un-applied before the user can see them.

Expected/desired behavior

Returning an object to ngClass via a method should be the same as passing the object in directly from the template

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

[x] feature request

Problem

Inspired by #13757

The template provided by an ancestor component is not useful to a descendant component since its content cannot be reference nor can it be used to build the descendant (even with #13764). This limits the usefulness of inheritance as a model for building components.

Proposal

Add a pseudo-element called ng-descendant that can be used analogously to ng-content except that the content is from the descendant class' template instead of instantiating template.

Descendant components are required to use an ng-extend elements that contains the content that is projected into the ancestor template. If the descendant does not use an ng-extend element as the root element of its template then its template will replace the ancestor template instead of extending it.

Example

@Component({
template: `
<h1><ng-descendant select=".header"></ng-descendant></h1>
<ng-descendant select=".body"></ng-descendant>
<div>
<ng-descendant select=".footer"></ng-descendant>
</div>`
})
class BaseClass {
}

@Component({
template: `
<ng-extend>
<span class="header">My Component</span>
<span class="body">Body of the component</span>
<span class="footer">Footer of the component</span>
</ng-extend>`
})
class MyComponent extends BaseClass {
}

This would be interpreted as if MyComponent had been written as:

@Component({
template: `
<h1><span class="header">My Component</span></h1>
<span class="body">Body of the component</span>
<div>
<span class="footer">Footer of the component</span>
</div>`
})
class MyComponent extends BaseClass {
}
Issue 1:
🐛 Bug

import torch crashed segmentation fault

To Reproduce

Steps to reproduce the behavior:

1. docker run -it python:3.6.9 bash
2. pip install scikit-learn torch
3. python -c "import sklearn, torch"

segmentation fault

at first import torch and then import sklearn

it works well.

3. python -c "import torch, sklearn"

Expected behavior

not happen the segmentation fault

Environment

Please copy and paste the output from our

environment collection script

(or fill out the checklist below manually).

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py

PyTorch Version 1.4.0:

scikit-learn Version 0.22:

OS (Linux (docker python image)):

How you installed PyTorch (pip):

Additional context

Issue 2:
🐛 Bug

Import torch after sklearn causes a segfault.

To Reproduce

import sklearn
import torch
print(torch.__version__)
print(sklearn.__version__)

In reverse order:

import torch
import sklearn
print(torch.__version__)
print(sklearn.__version__)

Environment

PyTorch version: 1.3.1
Is debug build: No
CUDA used to build PyTorch: 10.1.243

OS: Manjaro Linux
GCC version: (GCC) 9.2.0
CMake version: version 3.16.0

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.2.89
GPU models and configuration: GPU 0: GeForce RTX 2080 Ti
Nvidia driver version: 430.64
cuDNN version: /usr/lib/libcudnn.so.7.6.5

Versions of relevant libraries:
[pip3] numpy==1.17.4
[pip3] torch==1.3.1
[pip3] torchvision==0.4.2
[conda] Could not collect

Additional context

Related closed issues:

#2143

#786

cc @ezyang @gchanan @zou3519
Issue 1:
TypeScript Version:

1.8.10

Code

function f(a: { b?: string; c?: number; }){
// something else
}
f({b: ""}); // no error as intended
f({b: 1}); // error as intended
f(1); // expected: error, actually: no error
f(""); // expected: error, actually: no error

Expected behavior:

see comments in the code.

Actual behavior:

see comments in the code.

Issue 2:
This does not work. This is expected since I have "noImplicitAny": true:

function test({ x, y }) {
console.log(x, y);
}

test({
x: 1,
y: 2
});

src\main.ts(15,17): error TS7005: Variable 'x' implicitly has an 'any' type.

src\main.ts(15,20): error TS7005: Variable 'y' implicitly has an 'any' type.

However, function test({ x:number, y:number }) { does not works too, while function test({ x = 0, y = 0 }) { works fine, but I do not want default params here. Is there a solution for it?
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1165 on 2009-07-10 by trac user dgoldsmith, assigned to @pv.

Proposal regarding modification of the NumPy Docstring Standard

Under the heading "Method docstrings" in the section "Documenting classes"

Reword as follows:

Do not include "self" in the list of parameters. Otherwise, follow

the docstring standard for an ordinary function, except when the

method duplicates a function in the package namespace. In such

cases, simply provide the brief summary and the See Also section, whose content should simply be ..

On those rare occasions when a method does some additional, significant processing (e.g., parameter manipulation) before (or after) handing off to a nominally equivalent function, then document only the added functionality in the method, using only the sections needed to do so, and for the rest refer to the function. In general, the guiding principle is to document behavior where it is implemented in the source code, with ufuncs considered to "live" in their function implementation rather than any method implementation they may have.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/2139 on 2012-05-22 by trac user bmu, assigned to unknown.

I came across a question on stackoverflow (http://stackoverflow.com/q/9470604) and I am wondering if this is a bug

import numpy as np
dt = np.dtype([('tuple', (int, 2))])
a = np.zeros(3, dt)
type(a['tuple'][0]) # ndarray
type(a[0]['tuple']) # ndarray

a['tuple'][0] = (1,2) # ok
a[0]['tuple'] = (1,2) # ValueError: shape-mismatch on array construction

Travis wrote that this something like a "design" bug in a post at numpy-discussion:

http://permalink.gmane.org/gmane.comp.python.numeric.general/50058
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/13654/

Failed: [k8s.io] V1Job should scale a job down {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:127
Aug 19 14:20:01.776: Couldn't delete ns "e2e-tests-v1job-ykaur": namespace e2e-tests-v1job-ykaur was not deleted within limit: timed out waiting for the condition, pods remaining: []
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:265

Previous issues for this test: #30216

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

Failed: [k8s.io] V1Job should scale a job up {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:127
Aug 16 08:11:16.645: Couldn't delete ns "e2e-tests-v1job-gmj3l": namespace e2e-tests-v1job-gmj3l was not deleted within limit: timed out waiting for the condition, pods remaining: []
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:265

Previous issues for this test: #29976 #30464
Issue 1:
It looks like the Windows 7 build instructions don't include something to run the Chromium content gyp generator as all I'm getting is getting the below and I can't find a way to resolve the issue when bootstrap threw no errors.

IEUser@IE9Win7 ~/atom-shell
$ /cygdrive/c/Python27/python.exe script/build.py -c Release
ninja: fatal: chdir to 'out\Release' - No such file or directory
ninja: Entering directory `out\Release'

Issue 2:
E:\atom-shell>python script\bootstrap.py

E:\atom-shell>python script\build.py
ninja: error: unknown target 'atom'
ninja: Entering directory `out\Release'
ninja: error: unknown target 'atom'
ninja: Entering directory `out\Debug'

Any idea? This happens before v0.12.5
Issue 1:
I'm submitting a proposal.

Please consider the proposal, maybe you introduce something like that https://www.npmjs.com/package/angular2-cache

Current behavior

Is absent, therefore I have reinvented the wheel

Expected behavior

`export class Service {

private id:string;
private expiration:string;

@ZoneCached() // The result will be cached within working zone
public getExpirationDate():Date {
return this.expiration
? new Date(this.expiration)
: null;
}

}

@Injectable()

export class NgZoneGlobalCache extends MemoryCache<any, any> {

constructor(@Inject(NgZone) ngZone:NgZone) {
super();

ngZone.onStable.subscribe(() => {
this.clear(); // Clear the memory cache when ngZone completed its work
});

GlobalCachesInstances.ZONE_INSTANCE = this;
}

}`

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

I wanna get a solution out of the box.

Angular version: 2.0.X

Browser: all

Language: TypeScript 1.x, 2.x

Issue 2:
Couldn't get custom event (ping) bubble up to the root component. DOM event (click) works just fine:

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

Using alpha.25
Issue 1:
Transferred from http://code.opencv.org/issues/3363

|| caroline parcq on 2013-11-07 15:07
|| Priority: Normal
|| Affected: 2.4.6 (latest release)
|| Category: imgproc, video
|| Tracker: Bug
|| Difficulty: Medium
|| PR:
|| Platform: x86 / Windows

Sorted circles by accumulator values

It would be nice to get, as output of the HoughCircles function, the circles sorted in order of importance, using the accumulator value.
Because actually, we do not have any idea in the circles list, which one is the most valuable circle.

History

Dinar Ahmatnurov on 2013-11-08 07:43

Hi Caroline! thank you for your ticket!
As you may or may not be aware, OpenCV is opensource library, we don't have as many developers as we need, so if really want something urgent you have to implement it yourself and add to Opencv :) http://code.opencv.org/projects/opencv/wiki/How_to_contribute
- Difficulty changed from Easy to Medium
- Priority changed from High to Normal
- Assignee deleted (Vadim Pisarevsky)

Dinar Ahmatnurov on 2013-11-08 08:32

- Status changed from New to Open

Hui Tay on 2013-11-28 08:40

Hi, I'm new to openCV but was looking at hough.cpp recently. The icvHoughCirclesGradient function (and hence the output of the HoughCircles function) *already* returns circles sorted according to highest accumulated values based on circle centers with the highest vote from surrounding non-neg edge pixels (line 865). I believe the confusion may come about in the 2nd phase of the function when trying to find the best supported radius (around line 945), you can sort the circles according to 'max_count' of supporting radius pixels, but I think that makes less sense and didn't give such good results when I tried it out (since bigger circles then tend to have more support).

Perhaps best ask someone who understands the houghcircle algorithm better :)
I'm glad to help if anyone finds other issues.

Helen Wong on 2014-10-17 17:51

I wish to work on this bug and have this bug assigned to me on this platform?

Issue 2:
Transferred from http://code.opencv.org/issues/1409

|| ivansorokin - on 2011-10-07 15:02
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty: None
|| PR: None
|| Platform: None / None

ability to get Hough accumulator value

Currently it is not possible to get Hough accumulator value (after stage 1 in icvHoughLinesStandard).

http://stackoverflow.com/questions/3265987/opencv-get-hough-accumulator-value

I also need this value. Currently I've just copy-paste this part of function from OpenCV, but I think it can be extracted in separate function.

History

Alexander Shishkov on 2012-02-12 20:26

- Description changed from Currently it is not possible to get Hough
accumulator value (after stage 1 in... to Currently it is not
possible to get Hough accumulator value (after stage 1 in... More
Issue 1:
Description of the problem

Hi Mr. Doob,

I want to play an animation like the pump.dae backwards, is there any code out there that does this or do I have to write it myself, I believe I have to make modifications to the Animation.js, AnimationHandler.js, and the KeyFrameAnimation.js to do this. Please help me as I would like to be able to do this as quick as possible and would like some good advice.

Thanks!

-Chunlin

Three.js version

Dev

r77

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

Linux

Android

IOS

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

Issue 2:
Description of the problem

In r72 verstion I can play reverse animation with negative timeScale, is very helpful to me,

But now I update to r76 it not work. So how can I play reverse animation in r76? Thanks.

Three.js version

r76

Browser

Chrome

OS

Windows
Issue 1:
Bram Smeets opened SPR-772 and commented

There is a problem with multiple schedulers. It is impossible to get two schedulers using the SchedulerFactoryBean. The main problem is that a NullPointerException occurs while initializing the SchedulerFactoryBean when the schedulerName property has been set.

More information:

http://forum.springframework.org/viewtopic.php?t=3089

Affects: 1.1.5

Issue Links:

#5569 quartz scheduler factory cannot produce multiple schedulers ("is duplicated by")

#21423 SchedulerFactoryBean should not override explicit "org.quartz.scheduler.instanceName" setting with bean name

Issue 2:
Taras Tielkes opened SPR-3995 and commented

Since code is quite similar/duplicate, the issue is quite similar to #8543

At the moment handler mappings are loader eagerly (see DefaultNamespaceHandlerResolver).

A lazy loading implementation would perform just as well in the scenario when mappings are actually consulted.

In the scenario where mappings are never used (eg. only "beans" namespace elements) this should provide a noticeable performance increase.

Affects: 2.0.7, 2.1 M4

Issue Links:

#8669 Lazy loading of NamespaceHandlers when a namespace is actually accessed
Issue 1:
Challenge adjust-the-width-of-an-element-using-the-width-property has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36.

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

<style>
h4 {
text-align: center;
}
p {
text-align: justify;
}
.links {
margin-right: 20px;
text-align: left; */
}
.fullCard {
width: 245px;
border: 1px solid #ccc;
border-radius: 5px;
margin: 10px 5px;
padding: 4px;
}
.cardContent {
padding: 10px;
}
</style>
<div class="fullCard">
<div class="cardContent">
<div class="cardText">
<h4>Google</h4>
<p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p>
</div>
<div class="cardLinks">
<a href="https://en.wikipedia.org/wiki/Larry_Page" class="links">Larry Page</a>
<a href="https://en.wikipedia.org/wiki/Sergey_Brin" class="links">Sergey Brin</a>
</div>
</div>
</div>

```

When you press check tests it fails because the call to verify test of
$('.fullCard').css('width')
is returning a floating point number instead of the decimal value entered:
"244.98295020214843px"

Issue 2:
Challenge Name

Applied Visual Design: Adjust the Width of an Element Using the Width Property

Issue Description

When the instructions are done, test doesn't recognise it.

Browser Information

Browser Name: Chrome,

Operating System: Windows 10
Issue 1:
For the VS Code API tests I have a clean up function that signals that it is done when all editors are closed. Currently the solution is hacky, it needs to install a setInterval to periodically check on the vscode.window.visibleTextEditors property to eventually become 0 (see https://github.com/Microsoft/vscode/blob/master/extensions/vscode-api-tests/src/utils.ts#L52).

The issue is that the window.onDidChangeActiveTextEditor event is not good enough for testing on the visible text editors as shown by the following test:

test('visibleTextEditors', () => {
return workspace.openTextDocument(join(workspace.rootPath, './far.js')).then(doc => {
return window.showTextDocument(doc).then((editor) => {
return new Promise((c, e) => {
const listener = window.onDidChangeActiveTextEditor(d => {
console.log('editor is null?: ' + !d);
if (window.visibleTextEditors.length > 0) {
console.log('visibleTextEditors count is: ' + window.visibleTextEditors.length);
return;
}

listener.dispose();
c();
});

commands.executeCommand('workbench.action.closeAllEditors').then(null, e);
});
});
});
});

The value passed in from the event is null as expected because I am running the close all editors action. However, window.visibleTextEditors.length is still 1 at that point.

Issue 2:
VSCode Version: 0.10.11

OS Version: Windows Server 2008 R2

Steps to Reproduce:

Log in as a unprivileged user

Run the VS Code installer as Administrator and enter password

Tap both "Open with Code" checkboxes in the wizard

Right-click on a file or folder

The "Open with Code" option is missing. I have not investigated this more than the reproduce steps above so it may be unrelated to the user being unprivileged.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

<TextField
select
SelectProps={{ autoWidth: true }}
>
<MenuItem value=""><em>None</em></MenuItem>
<MenuItem value={10}>Short</MenuItem>
<MenuItem value={20}>A bit longer</MenuItem>
<MenuItem value={30}>Very, very, very long</MenuItem>
</TextField>

Should display a long textField, as long as the "Very, very, very long" option.

Current Behavior

The TextField is very short, it uses the width of the selected option. When nothing is selected, it is just not usable.

Besides, having the width of the field change according to the selected element is disturbing.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/mj7zw8plx8

Context

I'm trying to migrate admin-on-rest to material-ui 1.0

Your Environment

Tech
Version

Material-UI
1.0.0-beta.17

React
15.6

browser
Chrome

etc

Issue 2:
Setting palette.types.light.background.default and palette.types.dark.background.default has no effect on background colors.

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

Expected Behavior

Setting these palette values should change background colors appropriately.

Current Behavior

The supplied background color values are ignored. Background color toggles only between #fafafa and #303030 - the default values.

Steps to Reproduce (for bugs)

Create custom theme:

const palette = {
types: {
dark: {
background: {
default: "#000000"
}
},
light: {
background: {
default: "#ffffff"
}
}
}
};

const theme = createMuiTheme({ palette });

Use this theme to set body background:

const styles = theme => ({
'@global': {
...
body: {
background: theme.palette.background.default,
...
}
}
});

This will have no effect on the body background because the palette values are ignored. Background color can only toggle between #fafafa and #303030 based on the value of theme.palette.type.

I am currently using the following workaround, but this seems completely unnecessary:

const styles = theme => ({
'@global': {
...
body: {
background: (theme.palette.type === 'light')
? theme.palette.types.light.background.default
: theme.palette.types.dark.background.default,
...
}
}
});

Context

The reason I want to change the default background colors is to be able to embed the react app in an iframe. The hosting page has a white background and the default of #fafafa is clashing with it.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.28

React
16.x

browser
N/A

etc