WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
ℹ Computer information

PowerToys version: v0.23.0

PowerToy Utility:

Running PowerToys as Admin: Yes

Windows build number: [run "winver"] 18363.1082

✔️ Expected result

FancyZones should save my layout when I switch virtual desktops.

❌ Actual result

FancyZones is confusing the layout of Desktop A with Desktop B. If I reset it, it eventually flips them around again. This started in the most recent update. I think I updated PowerToys twice 2 days ago, so it was either this version or the version immediately prior.

What is the actual result of the above steps?

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

Issue 2:
I use two 4k monitors in portrait mode; works great when coding or writing documents.

I would like to see the Windows+Left/Right shortcuts altered when Windows detects the monitor is in portrait mode, and snap the windows to the top half, or bottom half, of the screen, similar to how it works in landscape mode.
Issue 1:
I work with a byte stream (from Azure DataLake https://pypi.python.org/pypi/azure-datalake-store/0.0.19 which only supports byte stream) that has a UTF-8 byte order mark, and want to read it into a data frame.

pandas.read_json fails.

For comparison, pd.read_csv(file, lines=True, encoding='utf-8-sig') works fine with a similar file

import pandas as pd

def skip_utf_8_bom(file):
bom = file.read(3)
# print(bom)
if bom != b'\xef\xbb\xbf': # undo read
file.seek(len(bom), 1)

path = 'sample-utf-8-sig.txt'

#works
with open(path, 'rb') as file:
skip_utf_8_bom(file)
df = pd.read_json(file, lines=True, encoding='utf-8-sig')
df

#fails
with open(path, 'rb') as file:
df = pd.read_json(file, lines=True, encoding='utf-8-sig')
df

Problem description

pd.read_json seems not to be able to process the encoding='utf-8-sig' parameter.

Expected behavior is that it allows to work with byte streams with an utf-8 byte order mark

sample-utf-8-sig.txt

Issue 2:
xref #13351

Here's the test, currently skipped
Issue 1:
Hi, sorry but i couldn't find the language-yml repository, so i will post it here. Since the version 0.107.0 the yml syntax highlighting is not working anymore for me.

The first line seems to be ok, the rest is just green.

Editor: React

Issue 2:
I've just updated to 0.10.0 and I think it broke the highlighting even in very simple files. 😕

Maybe something from 5b4def5 is not quite right?

I'll try to take a better look at it tomorrow.
Issue 1:
Hi,

Not a huge deal, but row_colors/col_colors are generally useful when plotting a heatmap. They are also undocumented in the API of clustermap:

http://web.stanford.edu/~mwaskom/software/seaborn/generated/seaborn.clustermap.html

I can work on a PR if @olgabot is ok with it, since it was her (awesome) work originally.

Issue 2:
As an example see the docu about FacetGrid. There you don't see wich class it is inherited.

It is Grid.

That infos should be added somehow.
Issue 1:
Electron Version:

4.x, 3.x

Operating System:

macOS 10.13.5

Last Known Working Electron version::

unknown

Expected Behavior

Top area is always clickable no matter what window state is.

Actual Behavior

Top area is not clickable after BrowserWindow is maximized then restored when titleBar set to "hiddenInset"

To Reproduce

Create a simple electron app.

Set titleBarStyle of BrowserWindow to "hiddenInset"

put a button in the top area of the Window, give it a click handler

maximize then restored the Window, you will find the button is not clickable.

Or

git clone https://github.com/circleapps/electron-quick-start

npm install

npm start

Click the button in the middle of the top area of the Window, it is clickable

Maximize the Window.

Restore the Window to its normal size

Click the button again, the button is not clickable.

Issue 2:
Output of node_modules/.bin/electron --version: v4.0.1

Operating System (Platform and Version): macOS 10.14.2

Expected Behavior

The top of the window should continue responding to clicks after exiting from fullscreen.

Actual behavior

The top ~40px stops responding to clicks after exiting from fullscreen.

To Reproduce

Clone and run https://github.com/javan/electron-quick-start/tree/hidden-inset-mojave

Click the black bar at the top of the window. It should turn purple while the mouse is down.

Enter and exit fullscreen.

Click the top of the window and note that it no longer turns purple.

$ git clone https://github.com/javan/electron-quick-start.git -b hidden-inset-mojave
$ npm install
$ npm start

Screenshots

Additional Information

This issue is quite similar to #14529.
Issue 1:
🌟 New model addition

Funnel-Transformer

Model description

Funnel-Transformer is a new self-attention model that gradually compresses the sequence of hidden states to a shorter one and hence reduces the computation cost. More importantly, by re-investing the saved FLOPs from length reduction in constructing a deeper or wider model, Funnel-Transformer usually has a higher capacity given the same FLOPs. In addition, with a decoder, Funnel-Transformer is able to recover the token-level deep representation for each token from the reduced hidden sequence, which enables standard pretraining.

Open source status

Released.

the model implementation is available: (give details)

https://github.com/laiguokun/Funnel-Transformer

the model weights are available: (give details)

https://github.com/laiguokun/Funnel-Transformer

who are the authors: (mention them, if possible by @gh-username)

Zihang Dai*, Guokun Lai*, Yiming Yang, Quoc V. Le

Issue 2:
🌟 New model addition

Model description

The recently introduced Funnel-Transformer architecture and models would be a great feature for Transformers:

Funnel-Transformer is a new self-attention model that gradually compresses the sequence of hidden states to a shorter one and hence reduces the computation cost. More importantly, by re-investing the saved FLOPs from length reduction in constructing a deeper or wider model, Funnel-Transformer usually has a higher capacity given the same FLOPs. In addition, with a decoder, Funnel-Transformer is able to recover the token-level deep representation for each token from the reduced hidden sequence, which enables standard pretraining.

The paper can be found here.

Open source status

the model implementation is available: official GitHub repo

the model weights are available: Google Cloud Bucket

who are the authors: @zihangdai and @laiguokun
Issue 1:
Environment

Windows build number: 10.0.18363.448
Windows Terminal version (if applicable): 0.6.2951.0

Any other software? None

Steps to reproduce

Run sudo apt update.

Expected behavior

The line with ‘apt list --upgradable’ should display with the correct text size, as in Windows Console:

I'm using the Simplified Chinese language edition of Windows, and Windows Console uses SimSun, 12pt as default font.

Actual behavior

The same line in Windows Terminal displays with the wrong text size:

The font I use is Noto Sans Mono CJK SC, 12pt.

Issue 2:
Right now I use cmder and I have a keyboard shortcut that can launch multiple tabs, like, one will start and run the local proxy, the other one for development and one for database

I couldnt do that in current Windows Terminal, it would be nice to have that setup.
Issue 1:
Andreas Schildbach opened SPR-2299 and commented

Please consider this code:

<spring:bind path="command.rules">
<form:select path="rules">
<c:forEach var="rule" items="${rules}">
<spring:transform var="key" value="${rule}"/>
<fmt:message var="label" key="rules.${key}"/>
<form:option value="${rule}" label="${label}"/>
</c:forEach>
</form:select>
</spring:bind>

As you can see, I need to duplicate the reference to the "rules" property in my command, just to be able to use the (very convenient) new form tags and still be able to convert my form objects to strings using the registered property editors with spring:transform. Spring:transform needs its own context, which is defined with spring:bind.

I propose to add a form:transform tag with similar syntax to spring:transform, which uses the context of form:select (and similar) tags instead. This would reduce the code to something like

<form:select path="rules">
<c:forEach var="rule" items="${rules}">
<form:transform var="key" value="${rule}"/>
<fmt:message var="label" key="rules.${key}"/>
<form:option value="${rule}" label="${label}"/>
</c:forEach>
</form:select>

which is much more readable and only has got one reference to the command property.

Affects: 2.0 RC2

Issue Links:

#8144 form:form should work like spring:nestedPath

Issue 2:
Johnathon opened SPR-8355 and commented

When sorting the following array: [/a/b/{c}/, /a/b/{c}//, /, //] with the current implementation of AntPathMatcher.AntPatternComparator, the sort order results in: [//, /, /a/b/{c}//, /a/b/{c}/] . In our case, this results in the wrong controller picking up the request.

I believe the problem lies in this block:

if (totalCount1 != totalCount2) {

return totalCount1 - totalCount2;

}

and would be correct if instead it returned "totalCount2 - totalCount1;". However, I can't speak to how this may affect other use cases.

Affects: 3.0.4, 3.0.5

Issue Links:

#15181 Assign lowest priority to "/" in AntPathMatcher (_"duplicates"**_)

#13325 AntPathMatcher.AntPatternComparator algorithm wrong for hierarchical matches

3 votes, 3 watchers
Issue 1:
Matlab has a function called complexrandn which generates a 2D complex matrix from uniform distribution. I need to use 2D complex number random matrix sometimes. Here is the code which I made to deal with it. It would be great if I could have it built in. You may like to also scale up to N dimensions as per the inputs given. Also, my code takes RandomState as an argument whereas you may like to do it like np.random.RandomState(513).conplexrandn()

Thanks for your services to open source

Reproducing code example:

import numpy as np
def complexrandn(M,N,randomGen = np.random):
data = randomGen.randn(M,N,2).view(complex)
return np.array([ np.array([ complex(data[i][j]) for j in range(N) ]) for i in range(M) ] )

randomGen = p.random.RandomState(513)
x = complexrandn(2,2,randomGen) # To use a particular random stream
y = complexrandn(2,2) # To use global random stream
# You may like to do it as randomGen.complexrandn (It would be better for all)

Numpy/Python version information:

1.16.3 3.6.7 (default, Oct 22 2018, 11:32:17)

[GCC 8.2.0]

Issue 2:
What's the need?

random.multivariate_normal works great for but is limited to sampling real vectors. Today, if ones would like to generate from complex multivariate distribution from (mu, Omega), sampling would need these steps:

get Omega^1/2 by cholesky decomposition (or svd)

generate a serie z of random complex gaussian numbers whose elements are in Nc(0, 1)

get the sample mu + Omega^1/2 * z

Featuring it? How?

Would it be possible to extend today's function to complex numbers? I imagine two possibilites

for implementing that:

in the case where the given input mean array and covariance matrix are complex type, get the dtype of mu and Omega, and infer the right distribution to sample

add a kwarg or dtype in function to enforce if resulting sampling is real or complex
Issue 1:
Steps to reproduce

ctrl + w sometimes crash unnormally, ctrl + , is also

Expected behavior

shortcut keyboard run proper

Actual behavior

Issue 2:
The windows will stay like this for a few seconds.It should close immediately.

What'more , I have found a closed issue which says that this bug should have been fixed.

I'm now using 10.0.18362.175 ,and my copy of Terminal is from the Store.
Issue 1:
A common pattern with signals like SIGHUP, SIGINT, and SIGTERM is to perform some cleanup and then invoke the default handler. For example, in C:

static void signal_handler(int signum) {
do_cleanup();
signal(signum, SIG_DFL);
raise(signum);
}

This is different from calling exit yourself. For one thing, exit is not async-signal-safe, so you'd actually need to call _exit or abort. But more importantly, the parent process (e.g. the shell) can tell from wait if a child was killed by a signal or exited normally. So even if you mimic the exit code:

await Deno.signal(sig);
Deno.exit(128 + sig);

it will not be the same as invoking the default handler.

You can call Deno.kill(Deno.pid, sig), but this requires the very broad permission --allow-run. It would be better if there was a Deno.raise(sig) function that did not require any permission.

Issue 2:
If this has already been discussed in another issue I'm sorry, I haven't found one.

I'am working on cliffy and we are trying to improve the sigint handling of the prompt module, if a user hit's ctrl+c. The problem is, deno doesn't trigger the sigint signal automaticly, because we need to enable the raw mode with Deno.setRaw.

Currently, the prompt module just exits if the user hit's ctrl+c by calling Deno.exit. But instead of just exiting the programm, we want to use the Deno.kill method to rise a sigint, so it's possible to run some cleanup operations if the user hit's ctrl+c.

But currently it's not possible to rise a signal without the --allow-run permissions flag. And i don't want the prompt module to depend on the --allow-run flag.

One option to improve this could be to allow a script to kill itself without the --allow-run flag. This could be done by checking the pid of the running script. If the pid passed to Deno.kill matches the pid of the running script, the --allow-run flag is not required.
Issue 1:
Nodes Network when a minion node becomes unreachable [replication controller] recreates pods scheduled on the unreachable minion node AND allows scheduling of pods on a minion after it rejoins the cluster(Failed 17 times in the last 30 runs. Stability: 43 %)Failed with 0 retries

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

No

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):

Docker privileged securitycontext

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

BUG REPORT

Kubernetes version (use kubectl version):

1.4.1

Environment:

Cloud provider or hardware configuration:

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

Kernel (e.g. uname -a):

Install tools:

Others:

Linux m15 4.4.24-hypriotos-v7+ #1 SMP PREEMPT Tue Oct 11 17:15:58 UTC 2016 armv7l GNU/Linux

What happened:

I have a Docker image that accesses /sys/devices. When I run the container by hand on that box using the following cmd, the application works as expected.

docker run -it --privileged fred

However is I set up the same image under kubernetes using the following yaml, the application fail on the very same box.

kind: Deployment

apiVersion: extensions/v1beta1

metadata:

name: fred

spec:

replicas: 1

template:

spec:

containers:

- name: fred

securityContext:

privileged: true

image: fred

What you expected to happen:

Setting the podSecurityContext privilege option works as if I ran the container with docker directly.

Perhaps I am missing the intent here, but I was expecting this to work and if not what else do I need to specify to allow the container to access system level resources on the host machine. I have tried setting the runAsUser to root but to no avail.

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

Sadly not short way to repro + using private docker image

Anything else do we need to know:

I need to tell kubernetes that this container needs to run with the docker --privileged argument. How does one achieve this behavior.
Issue 1:
Feature request

webpack 5 currently makes output.ecmaVersion default to 6. This can create issues for projects needing to support older browsers like IE 11.

Many projects (including Babel's preset-env) have moved in the direction of relying on a shared browserslist config to avoid duplicating the browser support info. It would be great if webpack could rely this info as well, to select the output.ecmaVersion automatically by default

Initially suggested in the beta feedback at #9802 (comment)

What is the expected behavior?

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

Devs will get a working build by default without even having to know that the output.ecmaVersion config setting exists. This goes in the direction of 0-config.

How should this be implemented in your opinion?

@vankop and @evilebottnawi have discussed some implementation suggestions in comments following the one I linked above.

Are you willing to work on this yourself?

I don't really have time right now, so no guarantee.

Issue 2:
Feature request

Infer output.ecmaVersion from browserlist

What is the expected behavior?

By default, output.ecmaVersion should be getting by browserlist

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

Automatization

How should this be implemented in your opinion?

Add browserlist and use it when webpack starts

Are you willing to work on this yourself?

yes
Issue 1:
Environment

Windows build number: Version 10.0.18363.449
Windows Terminal version (if applicable): Version: 0.6.2951.0

Any other software? Git for Windows 2.24.0
Powershell core 6.2.3

Steps to reproduce

I am using WT with PSC. Inside it, I issue git push command. It require me to input account and password. Instead of typing them manually, I tried to paste the password.

I tried two things:

using the right mouse button

using Ctrl-V

Expected behavior

I expect that the password text would be pasted and accepted by git command

Actual behavior

Nothing happens. git does not receive the pasted text.

Please note, I verified that I can paste text inside WT itself. Both right mouse button and Ctrl-V options worked. The issue is somewhere in the interaction of WT, PSC, and git. If I am using CMD only or PSC only, I can successfully paste the text and git accepts the input.

Issue 2:
Environment

Windows build number: 10.0.18362.418
Windows Terminal version (if applicable): 0.6.2951.0

Steps to reproduce

I didn't do anything specific, left terminal running, when I tried to use it, the content of the tabs were gone and the minimize/maximize/close buttons on the terminal window were also gone.

Potential things that did happen on the machine:

I have terminal running on Virtual Desktop 2

I have remoted in from another PC which has caused DPI changes

I have unplugged/plugged in a monitor multiple times

Expected behavior

Show a display

Actual behavior

No display for tabs
Issue 1:
MSVC has a max length of 260 chars for input/output paths, which is exceeded when using weave. A possible solution (which I tested and seems to work) is to modify the unique name generation algorithm by making it use md5 hex checksums instead of sha256 (which are 64 characters long). The places where I made the modifications are in catalog.expr_to_filename (https://github.com/scipy/scipy/blob/master/scipy/weave/catalog.py#L93) and platform_info.check_sum (https://github.com/scipy/scipy/blob/master/scipy/weave/platform_info.py#L99). This is also caused by the fact that the path to the output obj also replicates the whole path of the cpp.

Issue 2:
The function inline() from scipy.weave store temporarily the compiled files with a filename consisting mainly of a sha256 hash. However Microsoft Visual C++ supports only filename of less than 258 characters including the extension for compilation. Hence the compilation fail. ( https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2156195-fix-260-character-file-name-length-limitation ).

I can think of two easy solutions to fix the problem:

Trunk the hash by changin the line

catalog.py:95: return base + sha256(expr).hexdigest()

to: return base + sha256(expr).hexdigest()[:100]

Use another hash (md5?sha-1?sha-224?sha-3 224bits?)
Issue 1:
As of https://golang.org/cl/6454150/ (rev a14ef77ab98c), this program no longer
parses correctly:
package x
import "time"
const μs = time.Microsecond

The "μs" is not present in the AST.

I'll have a quick dig into it, and punt to gri if I can't figure it out soon.

Issue 2:
What steps will reproduce the problem?
1. Run the simple echo server here: http://pastie.org/783355
2. On a separate console, run the simple program that creates a new
throwaway connection to the server every second: http://pastie.org/783368

What is the expected output? What do you see instead?
The server will continue to print "client connected", but they are never
closed by the garbage collector. If this program keeps running, the system
will eventually run out of sockets.

I believe the garbage collector should call close() on sockets which are
garbage collected

What is your $GOOS? $GOARCH?
darwin/386

Which revision are you using? (hg identify)
7df3be16abbf tip

Please provide any additional information below.
Issue 1:
Issue Type:

Bug Report

Ansible Version:

ansible 1.5

Environment:

N/A

Summary:

npm module won't install a package if it is installed as another package's dependency

Steps To Reproduce:

- name: Install less compiler, css minifier
npm: name={{ item }}
with_items:
- less
- clean-css

Expected Results:

clean-css should be installed, as it will be if you run:

# npm install less clean-css

Actual Results:

clean-css is not installed.

This is because the npm module is misinterpreting the results of npm list. If the less package is installed, npm list --json clean-css returns:

{
"dependencies": {
"less": {
"version": "1.7.0",
"from": "less@",
"dependencies": {
"clean-css": {
"version": "2.1.6",
"from": "clean-css@2.1.x"
}
}
}
}
}

The npm module interprets this to mean that clean-css is installed.

Issue 2:
Scenario:

Trying to install uglify-js (globally) because I need the uglifyjs executable. Unfortunately the npm Ansible module won't install it because it's already listed as a dependency of another nodejs package (this other package is installed earlier in my playbook and I can't really move it). But when installed as dependency, it didn't get installed with the executable.

Possible solutions:

A 'force' option to install regardless. But that's against idempotency I suppose.

Make the npm Ansible module aware if a package is installed at top-level or not and allow installation is the package to be installed is strictly a dependency.