WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm submitting a ...

bug report

feature request

support request => Please do not submit support request here, see note at the top of this template.

I'm using the following to update the document title when views change:

<nav>
<h1>Preamble BDD</h1>
<ul>
<li><a (click)="setTitle('Preamble BDD')" [routerLink]="['/']">Home</a></li>
<li><a (click)="setTitle('Preamble BDD Changelog')" [routerLink]="['/changelog']">Changelog</a></li>
<li><a (click)="setTitle('Preamble BDD API')" [routerLink]= "['/api']">API</a></li>
</ul>
</nav>
<router-outlet></router-outlet>

It works but only when the user actually clicks on one of the links. However, when navigating via history (i.e. the browser's nav buttons) the document title remains unchanged and doesn't accurately reflect the current view. I am currently using the following in my views to get around this issue but it feels like something the Title service should be able to do if it was watching push and pop state events:

import {Component} from "@angular/core";
import {Title} from "@angular/platform-browser";

@Component({
templateUrl: "app/home.component.html"
})

export class HomeComponent {
constructor(private titleService: Title) { }
ngOnInit() {
this.titleService.setTitle("Preamble BDD");
console.log("ngOnInit called");
}
}

Notice the implementation for ngOnInit in the component class. As I stated above, I think the Title service should be able to do this by listening to push and popstaate events.

Please consider adding this feature to the Title service.

Issue 2:
I'm submitting a ...

[ ] bug report

[x] feature request

[ ] support request.

No obvious way to influence the history title (see this background) that appears when you press-and-hold a browser's back/forward buttons.

We either need this as a router feature or have some reasonable technique available for devs to implement themselves.

This title should be dynamic as the displayed value is often constructed on the fly by the component (e.g, "Hero Detail: Magneta"). I'd like to see this option be part of the link parameters array and somehow involved in the navigateTo methods.

The A1 routers could do it. So can routers for other frameworks. We need it.
Issue 1:
Description

This maybe a possible bug or my assumption is wrong regarding the Incremental PCA's fit / partial_fit methods. For valid parameters, the error thrown is ValueError: Number of input features has changed from 10 to 100 between calls to partial_fit! Try setting n_components to a fixed value.

Steps/Code to Reproduce

Example:

I want to perform the pca on the below matrix with dimensions (n_samples, n_features) = (100, 1000).

I want to reduce it to a 100 dimension feature space and hence, I am setting the number of components to 100.

import numpy as np
input_matrix = np.random.randn(100, 1000)

ipca = IncrementalPCA(n_components=100, batch_size=10)
ipca.fit(input_matrix) # Error at this line
reduced_matrix = ipca.transform(input_matrix)

Expected Results

No error is thrown and the reduced matrix shape must be (n_samples, n_features) = (100, 100)

Actual Results

ValueError: Number of input features has changed from 10 to 100 between calls to partial_fit! Try setting n_components to a fixed value. Commenting out the condition check produces expected result.

if (self.components_ is not None) and (self.components_.shape[0] != self.n_components_):
raise ValueError("Number of input features has changed from %i "
"to %i between calls to partial_fit! Try "
"setting n_components to a fixed value." %
(self.components_.shape[0], self.n_components_))

Versions

Linux-3.10.0-514.26.2.el7.x86_64-x86_64-with-centos-7.3.1611-Core

('Python', '2.7.5 (default, Nov 6 2016, 00:28:07) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]')

('NumPy', '1.13.0')

('SciPy', '0.18.1')

('Scikit-Learn', '0.18.1')

Issue 2:
IncrementalPCA.partial_fit raises the following error when the number of samples is smaller than n_components:

File "___/sklearn/decomposition/incremental_pca.py", line 218, in partial_fit
(self.components_.shape[0], self.n_components_))
ValueError: Number of input features has changed from 10 to 20 between calls to partial_fit!
Try setting n_components to a fixed value.

This error can be generated via the following snippet as long as n_samples < n_components:

import numpy as np
from sklearn.decomposition import IncrementalPCA

n_samples, n_features = 10, 50
ipca = IncrementalPCA(n_components=20)

for i in range(5):
ipca.partial_fit(np.random.rand(n_samples, n_features))

The error message is not informative because the number of input features is constant (i.e., 50)

and n_components is fixed anyways.

Also, I don't see any fundamental reason why this shouldn't work. In regular PCA, number of components after transformation can be larger than the number of samples.

Is this a limitation of the incremental PCA algorithm or the implementation?
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.3.3 / 3.3.2

Since this morning, we can't use the command :

php symfony.phar new Symfony

to create a project. It generates the error UndefinedMethodException (see the 2 first attached files)

The only way to make it works is to type :

php symfony.phar new Symfony 3.3.2

With the command

php symfony.phar new Symfony 3.3.3

we have these error : RunTimeException and ContextErrorException (see the 2 others attached files)

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.3.3

I have this error when scaffolding new symfony project (3.3.3):

Thank you for help !
Issue 1:
This is a very useful feature provided by Kate editor which I miss when I open I file on Atom.

Any chance it could be implemented?

Here is an example of how it works on Kate: suppose a file contains this

foo bar baz
baz foo bar
bar baz foo

If I double click on "foo", it gets selected and then all 3 occurrences of "foo" are highlighted. If I unselect "foo", the highlight disappears. If then I select "bar baz", its two occurrences (on lines 1 and 3) get selected.

Issue 2:
Yet another Sublime Text feature (YASTF).

This should act as a preview of what Cmd-d will select.

http://discuss.atom.io/t/highlight-occurrences-of-selected-word/2080
Issue 1:
Version

2.6.11

Reproduction link

https://jsfiddle.net/n8bkg4pw/

Steps to reproduce

When clicking on the inc button, the displays of nb_foo.value will change of value but one out of the three won't change of value because of the bug.

What is expected?

All of the display of nb_foo.value to change of value

What is actually happening?

One out of the three display of nb_foo.value won't change of value because of the bug.

It's only happening when in a v-else itself in the slot of the fake component. When inverting the condition (putting the second fake in a v-if instead of a v-else) it's properly working.

I encountered this error with a much more complex example with two components nested in a similar way.

Issue 2:
Version

2.6.11

Reproduction link

https://codepen.io/mesqueeb/pen/eYZGode

Steps to reproduce

<h6>works with v-model</h6>
<input v-model="message" />

<h6>does not work with v-model</h6>
<component :is="'input'" v-model="message" />

What is expected?

<component :is="'input'" />

should give the same result as

<input /> and it does.

They render the same, they also each emit the same events you can capture with @input.

Yet somehow, the one with component is="input" does not work with v-model.

What is actually happening?

the one with component is="input" does not work with v-model.
Issue 1:
Issue Id: 70b9c65b-9ccd-16b5-73e0-508ddd36a5cc
Versions
- 0.10.9
- db71ac6
Stack
TypeError: Cannot read property 'detail' of undefined
at t.e.onErrorEvent (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:12:31088)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:7:11352
at Array.forEach (native)
at e.emit (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:7:11332)
at e.onUnexpectedError (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:7:11696)
at Object.u [as onUnexpectedError](/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:7:9137)
at null._onTimeout (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/pluginHostProcess.js:20:26789)
at Timer.listOnTimeout (timers.js:89:15)

Issue 2:
Issue Id: 70b9c65b-9ccd-16b5-73e0-508ddd36a5cc
Versions
- 0.10.9
- db71ac6
Stack

/vs/platform/telemetry/common/abstractTelemetryService.ts#73:7 (AbstractTelemetryService.onErrorEvent)
/vs/base/common/errors.ts#55:3 (ErrorHandler.emit)
/vs/base/common/errors.ts#54:17 (ErrorHandler.emit)
/vs/base/common/errors.ts#73:7 (ErrorHandler.onUnexpectedError)
/vs/base/common/errors.ts#87:15 (onUnexpectedError)
/vs/workbench/node/pluginHostProcess.ts#56:6 (connectToRenderer)
Issue 1:
Environment

Microsoft Windows [Version 10.0.18362.388]

Windows Terminal (Preview) Version: 0.5.2762.0

https://github.com/ms-iot/iot-adk-addonkit/

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Clone IoT Core ADK Add-ons to local machine

Create IOT ADK entry in settings:

{

"guid": "{255BF760-7EE8-4346-B260-494BBBE234A6}",

"name": "IOT ADK",

"commandline": "C:\Users\Tony\source\repos\iot-adk-addonkit\IoTCorePShell.cmd",

"hidden": false

},

Select "IOT ADK" from new window drop down

Click yes on elevation prompt

Expected behavior

IoTPShell script/window opens as part of Terminal

Actual behavior

IoTPShell script/window opens a new PShell window on the desktop

Issue 2:
Environment

Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Steps to reproduce

if i run the command: colortool SolarizedDarkHigherContrast > $null ,it does not work.

but the command colortool SolarizedDarkHigherContrast works well,i dont want to print the theme information

Expected behavior

Actual behavior
Issue 1:
Currently (TS v.1.5.2) the compiler does not do inference correctly for certain cases:

#3038

Although it is by design, reflected in the spec and there is no viable way for doing it correctly, I think the compiler has to be honest to the developer and instead of generating faulty code, it has to break with an error message that would say that the inferred types cannot be resolved.

Issue 2:
export function keyOf<a>(value: { key: a; }): a {
return value.key;
}
export interface Data {
key: number;
value: Date;
}

var data: Data[] = [];

export function toKeys<a>(values: a[], toKey: (value: a) => string): string[] {
return undefined;
}

toKeys(data, keyOf); // <-- actual ok, expected error, since `keyOf` should be inferred as `number` rather than `string`

Reproduced at playground: http://www.typescriptlang.org/Playground#src=export%20function%20keyOf%3Ca%3E(value%3A%20%7B%20key%3A%20a%3B%20%7D)%3A%20a%20%7B%0A%09return%20value.key%3B%0A%7D%0Aexport%20interface%20Data%20%7B%0A%09key%3A%20number%3B%0A%09value%3A%20Date%3B%0A%7D%0A%0Avar%20data%3A%20Data%5B%5D%20%3D%20%5B%5D%3B%0A%0Aexport%20function%20toKeys%3Ca%3E(values%3A%20a%5B%5D%2C%20toKey%3A%20(value%3A%20a)%20%3D%3E%20string)%3A%20string%5B%5D%20%7B%0A%09return%20undefined%3B%0A%7D%0A%0AtoKeys(data%2C%20keyOf)%3B%20%2F%2F%20%3C--%20expected%20compile%20error%2C%20since%20keyOf%20should%20have%20inferred%20a%20as%20%60number%60%20rather%20than%20%60string%60%0A
Issue 1:
I always wondered why the route name itself is not stored as part of the route object ... This would make it easier in some places.

Would you be open for a PR to add this?

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
4.0.6

Hi, guys

I have a problem following.

Could you please give me an advice?

###> symfony/framework-bundle ###
APP_ENV=prod

$ composer install --no-dev --optimize-autoloader
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating optimized autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 255
!! PHP Fatal error: Uncaught Error: Class 'Symfony\Bundle\TwigBundle\TwigBundle' not found in C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\src\Ker
nel.php:32
!! Stack trace:
!! #0 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\http-kernel\Kernel.php(403): App\Kernel->registerBundles()
!! #1 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\http-kernel\Kernel.php(122): Symfony\Component\HttpKernel\Kernel->initializeBundl
es()
!! #2 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\framework-bundle\Console\Application.php(64): Symfony\Component\HttpKernel\Kernel
->boot()
!! #3 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\vendor\symfony\console\Application.php(143): Symfony\Bundle\FrameworkBundle\Console\Application-
>doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
!! #4 C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\bin\console(39): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Inp
ut\ArgvInput))
!! #5 {main}
!! thrown in C:\Users\xsunt\PhpstormProjects\xsun\tv\4.0\src\Kernel.php on line 32
!!
Issue 1:
In my humble opinion, atom > sublime.

Though, in sublime a view only stays open if you make edits. Otherwise, it disappears. Simple UI, but this is immensely helpful keeping the tab bar uncluttered.

Thanks!

Issue 2:
Support sublime-like preview mode when opening files from the tree view, fuzzy finder, find and replace, etc.

The main issue being tracked is here: atom/tree-view#3
Issue 1:
Hello,

There is an issue with printing using bootstrap.min.css. The form auto resizes to the smallest resolution which causes all of the controls to be full screen (like it would look on a small screen). Is there a way to set the size for printing to a larger resolution so more controls fit on the same line?

Here is a screeshot:

Here is my HTML:

Gord

Issue 2:
When printing in Safari 7 and Firefox 25 the grid carries over to the print style, but in Chrome 34 and IE 11 everything stacks when printed. Any insights here?
Issue 1:
Hello,

in order to duplicate an object with all its children, I had to use a jQuery function, please is there a better way in Vue? I am using Vue 0.12.1

duplicateThis: function (field) {
var currentField = this.fields[field.index];

var insertField = {
name: currentField.name,
type: currentField.type,
description: currentField.description,
options: $.extend(true, {}, currentField.options),
required: currentField.required
};

this.fields.splice(field.index + 1, 0, insertField);
}

Thank you

Issue 2:
Version

2.6.11

Reproduction link

https://jsfiddle.net/yrqt02kj/1/

Steps to reproduce

transition-group renders the component twice (and the second rendering is done without parsed "{{variable}}").

If we just remove transition-group parent at all, it works as expected and there is no duplicated content.

What is expected?

there should not be the duplicated content (with unrendered variable tag)

What is actually happening?

it shows the content twice
Issue 1:
Hey there,

I recommend to add a new size "extra large" (xl) for desktops larger than 1600px. The reason is, the number of people using very large monitors (24", 26", TV) is strongly increasing.

Maybe because of TVs an xxl-design would be also good :D

Issue 2:
Hi everybody. I use so much bootstrap that I have few problems at few moments.

In this moment, I work on a dashboard for my client. I use all of my screen because I have many informations to show. So, I use col-xs, col-sm, col-md and col-lg for a responsive design. It's awesome except that my dashboard own few items which are too fat when my screen is superior at 1500/1600px.

I would can develop a new custom col-xlg class for my app but I don't know if other people have this problem.

In the future, our displays will be most large and I ask me if that it's necessary to develope a feature like this.

Thanks for your response.
Issue 1:
Basically the idea here is to support shuffling for SIMD types in a way that can be easily lowered to IR (LLVM's shufflevector requires the mask be a vector of constants, so an intrinsic function is out of the question), however I image this sugar could extend to tuples with multiple types.

Some examples:

let vec = (1.0f32, 2.0f32, 3.0f32, 4.0f32);
let all_x = vec -> (0, 0, 0, 0);
assert_eq!(all_x, (1.0f32, 1.0f32, 1.0f32, 1.0f32));
let single_x = vec -> (0);
assert_eq!(single_x, (1.0f32));

let mut vec = vec;
vec <- (0) = 5.0f32; // set x only
vec <- (1, 2) = (6.0f32, 7.0f32) // set y & z
assert_eq!(vec, (5.0f32, 6.0f32, 7.0f32, 4.0f32));

let vec = vec;
// the mask may be arbitrarily long:
assert_eq!(vec -> (0, 1, 2, 3, 0), (5.0f32, 6.0f32, 7.0f32, 4.0f32, 5.0f32));

// leaves vec unchanged
let functional_update = vec -> (0, 1, 3) .. (0.5f32, 1.0f32, 10.0f32);
// functional_update would take it's type from vec
assert_eq!(vec, (5.0f32, 6.0f32, 7.0f32, 4.0f32));
assert_eq!(functional_update, (0.5f32, 1.0f32, 7.0f32, 10.0f32));

A couple of things would need to be disallowed, however:

// continuing from above
let mut vec = vec;
// 1. no duplicate assignments/functional updates:
vec <- (0, 0) = (..);
let _ = vec -> (0, 1, 2, 3, 0) .. (..);
// 2. no out-of-bounds:
vec <- (5, 9000) = (..);
let _ = vec -> (5, 9001);
let _ = vec -> (5, 9002) .. (..);
let _ = vec -> (0, 1, 2, 3, 4) .. (..);
// 3. all mask values must be a const expr:
let mut non_const_expr = 15;
vec <- (non_const_expr) = (..);
let _ = vec -> (non_const_expr) .. (..);
let _ = vec -> (non_const_expr);
// 4. mismatched tuple sizes:
vec <- (0, 1) = (0.0f32, 0.0f32, 0.0f32);
let _ = vec -> (0) .. (0.0f32, 0.0f32);

AIUI, the notation would be:

tuple_mask : '(' integer [ ',' integer ] * ')' ;
tuple_expr : '(' expr [ ',' expr ] * ')' |
tuple_expr "->" tuple_mask [ ".." tuple_expr ] ? ;

I'm willing to write this myself, but I'd like some consensus/feedback regarding ze sugar I've used.

Issue 2:
cc @alexcrichton. It looks like we have a lot of duplicated code with libcore/fmt/float.rs and std::num::strconv::float_to_str_bytes_common. Can this code be merged?
Issue 1:
1. Problem

I implenmented a layer with reference to the tutorial_dnn_custom_layers， I want to get the type of output is np.long, but the default type is np.float32, Can I set the output type?

2. some key code

class ALayer(object):
def __init__(self, params, blobs):
...

# Our layer receives one inputs. We need to find the max
def getMemoryShapes(self, inputs):
...

def forward(self, inputs):
data = inputs[0]
# find max ids on axis
res = np.argmax(data, axis=self.axis).astype(np.float32)
print(res, res.shape, res.dtype)
return [res]

This code is run after registered the ALayer.

type error

I droped the astype(np.float32) in forward function, I got the type error like below after registered the ALayer.

pyopencv_dnn.hpp:175: error: (-215:Assertion failed) pyOutputs[i].type() == outputs[i].type() in function 'pycvLayer::forward'

Issue 2:
System information (version)

OpenCV => 4.2.0

Detailed description

The CUDA backend can support mixed-precision inference with various types: FP32, FP16, INT32, (U)INT8 and possibly INT4 and INT1. It's fairly easy to implement as cuDNN already has convolution primitives for many of these types and the existing CUDA backend codebase is fully template-based.

Before this can be implemented, some issues need to be sorted out:

Is it required?

APIs to configure mixed-precision

APIs to allow the user to control the mixed-precision configuration

ability to import quantized models and use the quantized weights during inference

Other ideas:

Default Mixed-precision policies

example: fp16 for convolutions and fp32 for the rest?

Automatic Mixed-Precision

the user provides a representative dataset and the AMP system automatically figures out a good configuration

a similar thing would be required to implement in-house quantization

IE supports mixed-precision inference. A generic cv::dnn API for mixed-precision could be used for all the backends that support it.
Issue 1:
Summary of the new feature/enhancement

When choosing 'Edit selected layout' there should be an option to change the zone spacing - ie the buffer between the zones which when not zero includes a transparent grid around a window locked to the zone. This option only appears when creating a new layout.

Proposed technical implementation details (optional)

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.535]
PowerToys version: 0.14.1.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Description

When creating a new Zone in FancyZones, the editor initially seems to suggest that Space (margins) are part of the zone itself.

However, once the Zone is created there is no place to edit the Space settings again.

More importantly, these settings are stored in the registry in a way that is tied to both the Display and one single Virtual Desktop.

The moment the same Zone is used on another Display or another Virtual Desktop, the Space settings are lost.

Please consider fixing this as part of the move to .json (Issue #368).

Here are other issues that are likely related to this one:

#807

#752

#368
Issue 1:
Context:

Playwright Version: [1.10.0]

Operating System: [Windows]

Node.js version: [v14.15.3]

Browser: [All]

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and

that we can run and debug locally. For example:

npx playwright codegen wikipedia.org

Describe the bug

Playwright inspector is not opening. I see a new tab in the tool bar at the bottom but when I click and try to open it, it does not do anything. Also the ode generated cannot be viewed. So in a nutshell cannot open, view the PW inspector.

Issue 2:
Context:

Playwright Version: 1.9.0

Operating System: Windows10

Node.js version: v12.18.2

Browser: Chromium

Extra: laptop with 13,3" screen, 1920 x 1080 (FullHD) resolution, scaled to 150%, setup with external monitor placed above laptop screen

Example script

const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
})().then(() => console.log('finished'));

When trying to debug script (set PWDEBUG=1) Playwright Inspector window is opened by Playwright outside of visible screen space - it is opened past the right border of the screen.

in

src\server\supplements\recorder\recorderApp.ts RecorderApp.open

there is a definitions of arguments for opening the window

const args = [

'--app=data:text/html,',

'--window-size=600,600',

'--window-position=1280,10',

];

when 1280 is changed to say 700 then Playwright Inspector windows is visible after it is first opened by Playwright.