WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Environment

windows

Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Expected behavior

windows 10 Version	10.0.18362 Build 18362

v 0.2.1715.0

Actual behavior

the "alt gr" keys are not working on a danish keyboard. when presing "alt Gr" it just is like no "alt GR" the shift and normal keys are working.

Issue 2:
This is related to the #1000 - Deliverable: Add support for panes

Currently, when a new pane is opened by splitting the window, the default shell is opened instead of an instance of same shell already open in the side pane.

I would expect the window to be split using the same shell, maybe have a separate command to split using the default shell.

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.3.2171.0

Any other software?
WSL 1 (Ubuntu) (Default shell in Win Terminal)

Steps to reproduce

Open a non default shell (In my case CMD, because WSL is the default)

Press the shortcut for command splitVertical (ctrl+shift+\)

The pane will split and

Expected behavior

Open a new pane of same shell

Actual behavior

The default shell is opened in the new pane
Issue 1:
Hi,

I am trying to optimize a function using fmin_bfgs, and logistic regression algorithm. There's no problem in convergence using the older version (scipy 0.10). However when using newer version 0.15 the optimizer crashes with warning: "Desired error not necessarily achieved due to precision loss”.

I compared optimize.py code of older, and newer versions, and noticed initial stepsize is updated from old_old_fval = old_fval + 5000 to old_old_fval = None. (81474eb)

Then I tried changing the stepsize back to old_old_fval = old_fval + 5000, and this time fmin_bfgs worked perfectly. I am guessing there might be an issue with the initial stepsize (old_old_fval = None) for fmin_bfgs, and this stepsize may not be flexible for all gradient sizes. I see a similar issue still opened here: #3581.

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/1473 on 2011-07-07 by trac user collinstocks, assigned to unknown.

The qr function in the linear algebra library is lacking some of the functionality that exists in the matlab function of the same name. While the purpose of scipy is certainly not duplicate the functionality of matlab, qr decomposition with pivoting is a rather important feature, as it can be used, for example, to estimate the rank of a matrix.

I am not familiar enough with the scipy code to create a new lapack wrapper, but I have implemented the functionality described above by using cvxopt.lapack. Clearly, a production version should wrap lapack.geqp3 properly.

Unfortunately, the reference implementation I made is based off linalg.qr from scipy version 0.7.1. I can probably do the same for the current version without too much difficulty.
Issue 1:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

run npm version for workspaces with -w <workspace> args

see only changed package.json but not change lockfile

Expected Behavior

run npm version -w <workspace> need adjust new version of workspace package in package-lock.json

As it said in npm cli docs:

Run this(npm version) in a package directory to bump the version and write the new data back to package.json, package-lock.json, and, if present, npm-shrinkwrap.json.

Steps To Reproduce

run npm version for workspaces with -w <workspace> args

see only changed package.json but not change lockfile

for verify whether lockfile need update, I have run npm install

yes, lockfile changed

Environment

npm: 8.3.0

Node: 16.8.0

OS: macOS 11.15

platform: Mac

npm config:

audit = false
fund = false
if-present = true
ignore-scripts = false
yes = true

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

Current Behavior

The npm --no-git-tag-version --workspaces version <version> command doesn't update package devDependencies or dependencies with the new version. I'd expect that workspace dependencies would be updated to match the new versions that were set.

Expected Behavior

npm --no-git-tag-version --workspaces version "2.0.0-alpha1" should update all workspace package versions (currently does) and also update the package dependency versions

Steps To Reproduce

Setup a new npm workspace

Create /packages/packagea :

{
"name": "packagea",
"version": "2.0.0-dev"
}

Create ``/packages/packageb`:

{
"name": "packageb",
"version": "2.0.0-dev",
"dependencies": {
"packagea": "2.0.0-dev"
}
}

Run npm --no-git-tag-version --workspaces version "2.0.0-alpha1"

notice the package versions are updated but the dependencies are not.

I have an existing setup located here: https://github.com/exceptionless/Exceptionless.JavaScript/tree/feature/workspaces that reproduces it (but package names are changed...)

I noticed this after getting the following error:

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @exceptionless/core@2.0.0-dev.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

Environment

OS: Windows 10 latest

Node: v16.1.0

npm: 7.17.0
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

In typing this suggested code to solve the challenge, the automatic closing of parentheses leads the student to type

$($)

which immediately causes the script to become unresponsive. This is on Firefox for Mac v39.0.3

Issue 2:
Challenge Record Collection has an issue.

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

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

Instructions in description text:

For the given id in collection:

If prop does not contain the key "tracks", then update or set the value for that incomplete prop.

If prop does not contain the key "tracks" before you update it, create an empty array before pushing a track to it.

If prop does contain the key "tracks" and its value is non-blank, then push the value onto the end of its existing tracks array.

If value is blank, delete that prop.

Its just a sugesstion because your instructions (specially 3rd line) are confusing a lot of people .

So I think you should change it .

Your third line should be something like If the concerned object does not contain the key "tracks" ,then update it by creating an empty array before pushing a track to it.

because you only want to update when prop contains the value key but the concerned object doesn't have the tracks property.
Issue 1:
I'm trying to test controllers using functional tests. But I can not create a test client, which would be authorized as specified user. This can be done through the form, but it is not convenient. I found a way that allows to do this, but in version 2.1 it does not work.

Test code

Is there a way to manually authorize the user or the only way to use a form or stateless basic authorization like descibed in symfony book?

Issue 2:
Something that used to work before I upgraded to 2.7 doesn't anymore: setting a NULL value in a dropdown field. I've created a test bundle demonstrating the problem:

https://github.com/userfriendly/form-field-null-test-bundle

Have a look at the README and the code, and if you're not seeing anything obvious, install the bundle in a test project using Symfony 2.7 - I'm hoping it's something I'm doing wrong, but I think the code is correct according to the documentation, and it worked in earlier Symfony versions.

Add an employee with a vendor. Then add an employee without a vendor. If all works as intended (or rather, as not intended) you should get an error message for the latter, saying "This value is not valid."

The idea here is that I want to be able to create an employee instance without a vendor, i.e. the form should allow setting that field to NULL.

The mapping explicitly allows the entity property to be nullable, the setter accepts NULL as a parameter, and the form field is configured as 'required' => false. Is there something more needed to get this working in 2.7, or is this a bug?

Tested on Symfony 2.7.0-BETA1
Issue 1:
Please do not remove the text below this line

DevTools version: 4.0.2-2bcc6c6

Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16552)

at pl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293513)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)

at kt (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25092)

Component stack: in pl

in div

in ml

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ua

in le

in ve

in ko

in Fl

Issue 2:
Chrome, Firefox, Safari, IE and other modern browsers support the notion of a checkbox in an indeterminate state which can be set or cleared using the indeterminate property of a checkbox input node. (It cannot be set using attributes.)

This state is most commonly used at the top of a list or tree of checkboxes to indicate that some but not all of the checkboxes underneath are checked.

This behavior seems reasonably well-defined in modern Chrome, Firefox, Safari, and IE. If the checkbox's indeterminate property is set, the checkbox renders its indeterminate state regardless of what its checked state is (or if its checked state is programmatically toggled) and clicking on a checkbox clears its indeterminate state.

Unfortunately there is a little bit of inconsistency. In Chrome, Firefox, and Safari clicking an indeterminate checkbox clears the indeterminate state and also toggles the checked state (triggering both a change and click event) while in IE it just clears the indeterminate state and leaves the checked state alone (triggering only a click event).

Should React support an indeterminate prop for checkbox inputs?

Should it be supported for uncontrolled checkboxes (via an defaultIndeterminate or similar prop)?

Should clicking an indeterminate checkbox follow the browser's checked-toggling behavior?

[Claims above come from playing with this jsFiddle in Chrome 40, Firefox 35, Safari 7, and IE 11]
Issue 1:
When all windows are closed and only the atom header is visible on OSX you can't open the preferences directly. When you press ⌘ , or select the Preferences item from the dropdown menu Atom will only open a new window with a new untitled tab.

Atom 0.199.0

Issue 2:
Atom: 0.198.0

OSX: 10.10.3

Steps to reproduce:

Open atom

Close all atom windows (shift+cmd+w)

Open preferences (cmd+,)

Expected behavior: new window opened with settings view

Actual behavior: new window opened with new empty file
Issue 1:
Electron version: 1.7.x

Operating system: Windows 10 (1703 OS Build 15063.540)

Expected behavior

Setting a windows position and asking for it should return the same value.

Actual behavior

The Y-Position is always wrong when the window is on a secondary monitor.

How to reproduce

connect a secondary monitor that is larger to the right of the primary monitor

run below code

notice how the Y-Position as returned by win.getPosition() is not the same that was set when creating the window

My monitor setup is like the following (secondary monitor is larger):

Code:

const { app, BrowserWindow } = require('electron')
const path = require('path')
const url = require('url')

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win

function createWindow() {

// Create the browser window.
let y = 184;
console.log("Setting Y: " + y)
win = new BrowserWindow({ width: 800, height: 600, x: 1600, y: y })

setInterval(function () {
console.log("Y is: " + win.getPosition()[1])
}, 2000);

// and load the index.html of the app.
win.loadURL(url.format({
pathname: path.join(__dirname, 'index.html'),
protocol: 'file:',
slashes: true
}))

// Open the DevTools.
win.webContents.openDevTools()

// Emitted when the window is closed.
win.on('closed', () => {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
win = null
})
}

// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.on('ready', createWindow)

// Quit when all windows are closed.
app.on('window-all-closed', () => {
// On macOS it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') {
app.quit()
}
})

app.on('activate', () => {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (win === null) {
createWindow()
}
})

// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.

Note: in this example I am setting Y to 184 and the output I get is 146.

Maybe related to #10768

Issue 2:
We are seeing an issue in VS Code on Ubuntu 15 where top level menu items show up duplicate or are even missing. This seems to be caused by updating the menu via setApplicationMenu() after it has already been set. Since that is the only way to update a menu, we need to do it that way (I guess Atom has to too).

We are sitting on Electron 0.28.3. Have you guys heard of this issue before?
Issue 1:
Describe your issue.

Docs for scipy.stats.multivariate_normal here: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.multivariate_normal.html

Render the method signatures with two backticks at the beginning and at the end, which they should not have. The docs from other distributions do not have this issue - e.g.: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.norm.html

Reproducing Code Example

-

Error message

-

SciPy/NumPy/Python version information

1.7.1

Issue 2:
As noted in gh-12839, there are a few issues that affect the documentation of several multivariate distributions.

Class documentation defines a parameter x, but x is not a parameter of the initializer.

Class documentation defines a parameter random_state instead of seed.

The text in the class documentation about returning a frozen distribution appears in bold like parameter names, and there is an unnecessary bullet point before "Frozen"

The Methods sections renders with double backticks around each method signature.

Some parameters of the methods (e.g. size, abseps, releps) are not defined

Related to the problems above, and true of univariate distributions, too: method names do not link to any documentation. Perhaps this is intended, but I think it would be useful to at least link to the rv_continuous method documentation. In any case, it looks like the author of multinomial intended for the documentation to be rendered somewhere, e.g.

def logpmf(self, x, n, p):
"""
Log of the Multinomial probability mass function.

Parameters
----------
x : array_like
Quantiles, with the last axis of `x` denoting the components.
%(_doc_default_callparams)s

Returns
-------
logpmf : ndarray or scalar
Log of the probability mass function evaluated at `x`

Notes
-----
%(_doc_callparams_note)s
"""

Also, not sure how closely related gh-11578 is, but it is worth mentioning here.
Issue 1:
Hi, I'd like to know if is there a feature which is able to detect changes of whatever element attributes. For instance, if I'm in google Maps and I drag and drop the mouse from one location to another, it causes different transformations in some divs of the map page. Is there a way/function to test and detect such changes? Thanks :)

Issue 2:
Hi!

I'm trying watch for changes in a certain div that keeps getting new elements added to it.

I couldn't seem to find a proper way of listening to such "change" event via the API, am I missing something?

Thanks in advance.

P.S: I though about using MutationObserver but page.$$('.someClass') isn't returning a Node type object (not to mention the workaround of using window in a nodejs environment just to be able to use MutationObserver).
Issue 1:
Hey,

The current architecture for the repo does not really scale well for the number of typings there is now.

How about a a-z-other structure to clean it up a bit ?

I think I remember reading something about it but couldn't find the issue again

Issue 2:
It seems that as more and more definition files are placed, loading the repository's main page is taking longer.

I was wondering if the repository could be restructured so that the main page just shows a list of directories which are named with a single character (a, b, c, 4, etc...), with all definitions placed in their appropriate directory.

This should provided a cleaner view and is still usable with tsd (for those that use it, excluding me :D), all while being mush faster in loading.

NOTE: This is just a suggestion
Issue 1:
See title. Given a matrix A, this works:

aslinearoperator(A).H

but this not:

aslinearoperator(A).T

This seems like a basic oversight; is there a reason?

Issue 2:
As far as I understand, sparse.LinearOperator creates some instance of CustomLinearOperator when it is called by aslinearoperator() or when passed matvec=.

But neither CustomLinearOperator, nor, e.g., SumLinearOperator have transpose().

And the docs do not say much about how transpose() should be used or implemented.

Reproducing code example:

import numpy as np
import scipy as sp
import scipy.sparse.linalg as sla

dim = 8
shp = (dim, dim)

I = np.eye(*shp)

x0 = -sp.pi
xf = sp.pi
x = np.linspace(x0, xf, dim, endpoint=False)
# this is a vector representation of an operator with diagonal matrix
ref = (1-np.exp(-x))**2

def mv(y):
# multiply this diag matrix by vector
vv = ref
return vv*y

LO = sla.LinearOperator(shp, matvec=mv)
(LO+LO).T

# not ever if a matrix was passed
M = sla.aslinearoperator(I)
M.transpose()

Error message:

'_CustomLinearOperator' object has no attribute '_transpose'

Scipy/Numpy/Python version information:

1.0.0 1.14.0 sys.version_info(major=3, minor=6, micro=4, releaselevel='final', serial=0)
Issue 1:
I'm trying to work out how to compile all of my TypeScript components to one JavaScript file. My app will have 50-100 components, so it's obviously not feasible to load them individually using System.import().

Concatenating compiled JavaScript files doesn't work because of the duplicate code. Concatenating the TypeScript files almost works, except for all the duplicate import symbols.

How to do this?

Issue 2:
Hello,

i want to send an event from ngOnDestroy but that is not possible.

The Problem is shown in the following demo.

https://plnkr.co/edit/4XVaVWJ97SYnpIjwQG82?p=preview

Is it possible to send an event from "ngOnDestroy" in context with the dynamic component loader?

Thanks
Issue 1:
Environment

Using two monitors, one widescreen monitor and one vertically oriented monitor. The widescreen monitor is using a custom fancy zone layout while the vertical monitor is using the

"Rows" layout (see all monitor screenshot below).

Windows build number: Microsoft Windows [Version 10.0.18362.778]
PowerToys version: v0.16.1
PowerToy module for which you are reporting the bug (if applicable): Fancy Zones

Steps to reproduce

Enable 'Show zones on all monitors while dragging a window' option

Drag window with secondary mouse button or shift key pressed and ~3 overlapping fancy zones appear on primary monitor, causing a few second delay before any zones become droppable

Disable 'Show zones on all monitors while dragging a window' option

Only one zone appears per fancy zone (expected behavior)

Expected behavior

Fancy zone droppable areas will only appear once per zone

Actual behavior

Multiple overlapping fancy zones appear on screen and none are selectable for several seconds

Screenshots

Issue 2:
Summary of the new feature/enhancement

In the Power Toy Run you should provide a feature that can help to select the folders for search not the whole computer. In which it can select the directory or drive through which it search only . It reduce time and slow process problems in many computers .

Proposed technical implementation details (optional)
Issue 1:
is there a better way to express this, without explicitly listing out every member of the interface?

interface Foo {
a: string
}

// ok
class Bar implements Foo {
constructor (public a: string) {}
}

// Error: Class 'Baz' incorrectly implements interface 'Foo'.
// Property 'a' is missing in type 'Baz'
class Baz implements Foo {
constructor (a: Foo) {
Object.assign(this, a)
}
}

demo: http://www.typescriptlang.org/Playground#src=interface%20Foo%20%7B%0A%09a%3A%20string%0A%7D%0A%0A%2F%2F%20ok%0Aclass%20Bar%20implements%20Foo%20%7B%0A%09constructor%20(public%20a%3A%20string)%20%7B%7D%0A%7D%0A%0A%2F%2F%20Error%3A%20Class%20'Baz'%20incorrectly%20implements%20interface%20'Foo'.%0A%2F%2F%20%20%20%20%20%20%20%20Property%20'a'%20is%20missing%20in%20type%20'Baz'%0Aclass%20Baz%20implements%20Foo%20%7B%0A%09constructor%20(a%3A%20Foo)%20%7B%0A%09%09Object.assign(this%2C%20a)%0A%09%7D%0A%7D

Issue 2:
TypeScript Version:

1.8.9

Code

interface CanDevelop {
developSomethingAmazing();
}
class Person {
age: number;
name: string;
}

class Developer extends Person implements CanDevelop {
developSomethingAmazing() {}
}

function canDevelop(arg: any): arg is CanDevelop {
return arg.developSomethingAmazing !== undefined;
}

let john: Object = new Developer();

if (canDevelop(john)) {
john.developSomethingAmazing(); // OK
}

let peter: Person = new Developer();

if (canDevelop(peter)) {
peter.developSomethingAmazing(); // ERROR
}

Expected behaviour:

It should allow to use the CanDevelop interface methods.

Actual behaviour:

Error "Property 'developSomethingAmazing' does not exist on type 'Person'".
Issue 1:
why not sign the exe？

Issue 2:
Currently, deno allows disk read access without a flag. The idea behind this is that although programs may be able to access secret info (e.g. your ssh key) without network access or disk write access, there isn't anyway they could exploit that knowledge. It's meant as a connivance.

Environmental variable access is quite similar to disk read access. If you can access the environ without having write or network access - there is no way to exploit that.

This seems to be a double standard. Thus I propose we either remove --allow-env and treat it as read access to the disk. Or we get more constrained and bundle and add --allow-read for disk access.