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

Periodically/frequently the PowerToy context menu periodically will not show or open when I right click the icon from the notification area or attempt to access it from search dialog. I must kill the process and restart in order to get into settings when this happens.

Environment

Windows 10 1909 April 2020 CU

Windows build number: [run "ver" at a command prompt]
PowerToys version: v0.17.0
PowerToy module for which you are reporting the bug (if applicable): Main UI control

Steps to reproduce

Not sure what causes this. At times, it does appear that PowerToys is hanging and I see an hour glass but that does not happen everytime. I do notice that that FZ zones are not work at a 100% when this occurs although it does seem to eventually work. I suspect some sort of hang situation underneath the covers. When FZ isn't working, I notice that the regular Windows Snap behavior will start to get mixed into the select zone layout so when I start to switch between zones the window will move between all regular windows snap and the select zones.

Expected behavior

I expect that when I want to access the "settings" from the context menu that it always comes up.

Actual behavior

Screenshots

Issue 2:
Environment

Windows build number: 10.0.18362.778
PowerToys version: 0.17.0
PowerToy module for which you are reporting the bug: FancyZones

Steps to reproduce

Uninstall previous version of PowerToys

Install 0.17.0

Open PowerToys, things work just fine

Wait for a while

Try to place a window inside a zone, it shows no zones, and acts as if the app no longer running

Can open settings window and interact with toggles and such, but cannot save

Can close settings window

Can sometimes right click > exit on the systray icon, other times i have to force close in task manager

Reopen PowerToys, repeat

Expected behavior

The ability to use FancyZones as long as the PowerToys app is running

Actual behavior

FanzyZones only being usable right after opening, and then no longer working after an undetermined amount of time when trying to snap a window
Issue 1:
I see there is help text in the online manual but it doesn't seem to be accessible from the REPL.

help?> include
include_from_node1 (generic function with 1 method)

I presume this is because the include symbol gets reassigned at some point.

julia> methods(include)
#1 method for generic function "include_from_node1":
include_from_node1(path::AbstractString) at loading.jl:119

Issue 2:
I think, help texts for keywords could be useful for beginners, help("using") comes to mind.
Issue 1:
VSCode Version: 0.10.11

OS Version: WIN10 x64 - Home Edition

Steps to Reproduce:

Just try to write a SASS / Scss stylesheet with an @at-root.

Issue 2:
VSCode Version: 1.3.1

OS Version: Windows 10

Steps to Reproduce:

create file withscss ext

copy the following code

.overlay {
position: fixed;
z-index: 200;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-sizing: border-box;
background-color: rgba(0,0,0,0.85);

@at-root .ios & {
padding-top: 15px;
}
}

You will see error remark on @at-root
Issue 1:
I have a growing bootstrap tasklist that sets up a common environment across all of my hosts -- things like ssh_authorized_keys, switching users' shells to their preferred, and most recently setting up a base set of monitoring rules in my Nagios infrastructure.

The last bit led me to exploring delegate_to to set up rules on the nagios host which reference the nrpe rules installed on each host. Simple stuff, really. nrpe has a configuration variable which is used to restrict who can connect to it, based on IP address: allowed_hosts=127.0.0.1,{{ hostvars['monitor.rix.si']['ansible_default_ipv4']['address'] }}

This fact doesn't exist because setup hasn't (necessarily) run on that host to populate hostvars, so let's grab it:

- name: Pull facts for monitor since we need them in nrpe config
action: setup
delegate_to: monitor.rix.si

Nope, this doesn't work, in fact:

TASK: [debug] *****************************************************************
failed: [web1.rix.si] => {"failed": true, "item": ""}
msg: {'inventory_hostname': 'monitor.rix.si', 'inventory_hostname_short': 'monitor', 'machine_type': 'server', 'group_names': ['nagios']}

If I was working at a playbook-level scope I could just do this:

- hosts: monitor.rix.si
- name: Pull facts for monitor since we need them in nrpe config
action: setup

And that would work, but I don't think it's sane to have to add that to every playbook when I specifically have this bootstrap to not have to do that, and converting the bootstrap to a playbook with hosts: all sucks, since it would have to run for every host when I run a host-specific playbook.

From my POV, delegate_to should set up hostvars, but I don't know much of the architecture of Ansible enough to dig in to the code and figure out how to make this stick.

Is it possible that there is another way to tackle this?

Issue 2:
Consider a lookaside fact cache that can pull (and store) facts in a local sqlite3 database such that you do not have to always hit hosts to get their fact data each time

This would prevent the "need to talk to hosts previously" case and save some communication time in other cases.
Issue 1:
When Saving a Chart the option to ADD TO DASHBOARD is hidden.

Expected results

To show the dropdown list.

Actual results

Shows only 1 dashboard and need to use scroll bar to see more

Screenshots

In an instance with many dashboards available

Go to any chart

Click on save

Scroll down to ADD TO DASHBOARD

See error

Environment

superset version: 01/13/2021 release

Checklist

Make sure to follow these steps before submitting your issue - thank you!

[x ] I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Add any other context about the problem here.

Issue 2:
Jan-12-2021.11-29-35.mp4

related to #12310 issues in dashboard)

obviously this behavior is global in Superset. addressing in one modal is not enough

@adam-stasiak pls give a round of audit in the product and look for all areas that are being affected, and list those in comment. 🙏
Issue 1:
❓ Questions and Help

I tried to convert a PyTorch model that has a grid_sample operation to ONNX but it was not supported.

I'm using PyTorch version 1.6.0. Please help add support!

Issue was also described but not resolved in:

onnx/onnx#883

#27212

onnx/onnx#2383

microsoft/onnxruntime#2962

AliaksandrSiarohin/first-order-model#92

NVIDIA/TensorRT#130

cc @houseroad @spandantiwari @lara-hdr @BowenBao @neginraoof

Issue 2:
🚀 Feature

Add support for conversion of grid_sample layer into ONNX.

Motivation

It could be really hard to perform geometric deformations on image such as object stretch or horizontal flip with convolutional layers, especially using relatively small models.

Spatial Transformer Networks tutorial by PyTorch as one more instance of motivation for proposed feature.

Pitch

PyTorch supports grid_sample layer. It would be great to have an ability to convert models with this layer in ONNX for further usage.

Alternatives

Additional context

Minimal code:

import torch

import torch.nn.functional as F

class MyModel(torch.nn.Module):
def __init__(self):
super(MyModel,self).__init__()

def forward(self, x, m):
return F.grid_sample(x, m)

x = torch.rand(1, 1, 10, 10)
m = torch.Tensor([[[1, 0, 0], [0, 1, 0]]])
m = F.affine_grid(m, x.size()).type_as(x)

model = MyModel()

torch.onnx.export(
model,
(x, m),
"grid_sample.onnx",
verbose=True,
input_names=['input', 'grid'],
output_names=['output']
)

Reference to my issue in ONNX repository to add spatial transformer operator.
Issue 1:
I'm trying to remove the duplicates contained in this following text file:

https://www.dropbox.com/s/mx3zqot352gdrhq/hg19.txt?dl=0

After reading this into a dataframe, and calling drop_duplicates, the dataframe still has the same number of rows. Though clearly, there are many duplicates contained in the file.

I am using a Mac with 8 gigs of RAM. I'm not sure why this is occurring.

Issue 2:
Hello

I would like to contribute to pandas codebase as I've (hopefully) had some expectedly nice features ideas for it, but it is not easy to start;)

I am stuck at the time I have to compile my own pandas as Visual Studio 2017 refuses to install on my machine because of Net Framework 4.6.

It is unfortunate that MS assistance can't help here (their forums mark these topics as duplicate and send back to topics which have not been solved. Genius), so I tried to find some alternative

in Code::Blocks http://www.codeblocks.org/

Some compilers provided with the default Code::Blocks installation are GNU GCC (MinGW/Cygwin), MS Visual C++ Free Toolkit 2003, Borland's C++ Compiler 5.5, DigitalMars Free Compiler., OpenWatcom, Small Device C Compiler (SDCC) and others.

Would it be fitting for working with Python and Pandas codebase?

What are alternative solutions?

I really want to contribute, but being stuck on the first steps is pitiful (but doesn't reflect my coding ability, I hope:)).

Do you know if there is a lighter /friendlier user contribution roadmap?

The document https://github.com/pandas-dev/pandas/blob/master/doc/source/contributing.rst#working-with-the-code is very complete but quite harsh to approach.

It is not very clear what should be installed from the start (I read about cpplint, clang, flake8, asv and pytest but I wonder why they don't come as an addition to pandas dependencies so you really create an environment with the complete tools).

Thanks by advance
Issue 1:
Chris Beams opened SPR-8164 and commented

This issue is a sub-task of #12694

Issue Links:

#12399 o.s.http.client.SimpleClientHttpRequestFactory should allow to specify HttpURLConnection properties ("is duplicated by")

Issue 2:
Jonas Kilian opened SPR-369 and commented

I'd like to have the possiblity, not to make lowlevel spring beans like "dataSource", "hibernateSessionFactory" etc. visible to /any/ application code.

Of course, they should be accessible by other beans via <ref bean..> but right now, one can always access every single bean using

MyAppContext.getBean(..)

This is also an issue for my DAOs, which in turn should not just be usable by "anybody" but rather only by my BusinessLogicBeans etc.

The goal is to ensure some kind of proper design and layers just by

keeping an eye on my (ideally visualized) application context descriptors and how <ref bean..> constructs are used.

somehow related to

#5069

#4906

Affects: 1.1 final

Issue Links:

#8410 Add visibility to beans ("is duplicated by")

11 votes, 7 watchers
Issue 1:
I'm using the following code to resize the label images of semantic segmentation task [PASCAL VOC] ( images with values in range 0 to n_classes with n_classes = 21).

lbl = m.imread(lbl_path)
lbl = np.array(lbl, dtype=np.int32)
lbl = self.encode_segmap(lbl)
print 'Unique: ', np.unique(lbl)
plt.imshow(lbl)
plt.show()
lbl = m.imresize(lbl, (self.img_size, self.img_size), 'nearest')
print 'Unique after resize: ', np.unique(lbl)
plt.imshow(lbl)
plt.show()

When I run this, I get this output:

Unique: [ 0 1 15]
Unique after resize: [ 0 17 255]

Shouldn't the values after resize ( using nearest) only belong to the set ( 0, 1, 15 )?

The images I get as output are :

Original

Resized

Issue 2:
scipy.misc.imresize changes minimum, mean and maximum values of image. That is not what user can expect.

Following code (EDIT: updated for removal of lena, so doesn't quite match the opencv version below):

import numpy as np
from scipy import misc

img = np.random.randint(25, 246, 400*400).reshape(400, 400)
print(img.min(), img.mean(), img.max())
img2 = misc.imresize(img.astype('uint8'), [1000, 1000])
print(img2.min(), img2.mean(), img2.max())
img2 = misc.imresize(img.astype('float32'), [1000, 1000])
print(img2.min(), img2.mean(), img2.max())

produces following output:

(25, 134.83063125000001, 245)
(26, 134.33983000000001, 245)
(1, 126.824645, 255)

The changes are very significant. cv2 (opencv) library has better situation:

import cv2
import scipy.misc
import numpy

img = scipy.misc.ascent()
print(img.min(), img.mean(), img.max())
img2 = cv2.resize(img.astype('uint8'), dsize=(1000,1000))
print(img2.min(), img2.mean(), img2.max())
img2 = cv2.resize(img.astype('float32'), dsize=(1000,1000))
print(img2.min(), img2.mean(), img2.max())

Output:

25 124.046783447 245
26 123.920154 244
25.8968 124.044 243.705

scipy.version.full_version, scipy.version.git_revision, scipy.version.release is ('0.14.0', 'f2ec91c4908f9d67b5445fbfacce7f47518b35d1', True)
Issue 1:
I have a quasar/vue3 app but upgrading all realease after the 0.21.1 infinite cycle of request start

I made two simple codepen where you can see the problem

1.21.1

1.21.2

I can't figure out what's is the root cause of that , maybe related to other "similar" bug

Sorry if is a sort of duplicate

Issue 2:
Describe the bug

I updated from axios 0.21.1 to 0.22.0 but typescript started giving me strange errors

I then noticed that the types declarations changed and they do not make much sense.

I can see that the post signature is:

post<T = never, R = AxiosResponse<T>>(url: string, data?: T | undefined, config?: AxiosRequestConfig<T> | undefined): Promise<R>

I don't really get why the response data object should be, by default, equal to the object passed as body, there is really no sense for that as a default behaviour. It should be AxiosResponse instead.

For the axios function, the returned object is even a never, in axios(config: AxiosRequestConfig<any>): AxiosPromise<never>.

Of course I can just put the types specifications, but it makes the code longer and ugly when there would be many times no reason for that.

To Reproduce

To reproduce it, just try to make a post request

const response = await axios.post(
CONFIG.API_UNITN.CLESIUS.SECURITY.AUTH_SERVICE_URL,
data.toString()
); // the response has AxiosResponse<string> type

Expected behavior

There should not be types assumptions such as the one made

Environment

Axios Version 0.22.0

Adapter http

Browser any

Browser Version any

Node.js Version any

OS: Linux Ubuntu 20

Additional Library Versions none

Additional context/Screenshots

Add any other context about the problem here. If applicable, add screenshots to help explain.
Issue 1:
Challenge Override Class Declarations with Inline Styles has an issue.

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

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

My code:

<style>
body {
background-color: black;
font-family: Monospace;
color: green; }
.pink-text {color: pink;}
.blue-text {color: blue;}
</style>
<h1 id="orange-text" class="pink-text blue-text">
<h1 style="color: white;">
Hello World!
</h1>

Issue 2:
Challenge Name

Sift through Text with Regular Expressions

https://www.freecodecamp.com/challenges/sift-through-text-with-regular-expressions

Issue Description

The instructions clearly state

Select all the occurrences of the word and in testString.

Hence i think the following regex /\band\b/gi or /(?:\b)and(?:\b)/gi where one actually considers the word boundaries in the expression should also be a valid answer, not just /and/gi.

Sorry if this a duplicate (and it probably is), but definitely should be fixed IMHO. Could turn down some dedicated beginners.

Code

var expression = /\band\b/gi;
var andCount = testString.match(expression).length;
Issue 1:
Issue Description

We frequently get emails from campers complaining that their name doesn't show up on their certificates. I respond to them with the following instructions:

"We pull all your biographical information directly from GitHub. So you just need to add your name to your GitHub account. Then go back to your Free Code Camp code portfolio and click the "update my profile from GitHub" button. Then your name will appear on your certificate.

Instead of having to answer these emails, if a camper doesn't have a name, we could just put a short message like this right on their certificate where there name would normally go. I propose the following copy for this, which is short enough to avoid an ugly line wrap:

"Add name on GitHub then update FCC"

You'll do this in boot/user.js in the showCert function.

Screenshot

Issue 2:
Challenge Waypoint: Create a Set of Radio Buttons has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0.

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

The Page elements as they will appear on the browser are getting displayed twice.

Eg. If I write the html as

<p> Hello, world</p>

Hello, world
Hello, world

gets displayed instead of a single line of

Hello, world

My code:

![g2](https://cloud.githubusercontent.com/assets/9304050/10104315/c6511152-63c6-11e5-9633-1275a5cf40c2.PNG)
![g1](https://cloud.githubusercontent.com/assets/9304050/10104314/c641a262-63c6-11e5-9d6d-0c7d679b2b73.PNG)

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
Issue 1:
MRE:

julia> function f(_::T; s) where T
0
end
ERROR: syntax: all-underscore identifier used as rvalue around REPL[12]:2```

julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i7-8557U CPU @ 1.70GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)

Issue 2:
MWE:

julia> function fun(_::Int; s)
end
ERROR: syntax: all-underscore identifier used as rvalue around REPL[4]:2
Stacktrace:
[1] top-level scope at REPL[4]:1

I can Meta.@dump this, so I think parsing is working fine. I can't Meta.@lower, so I think the problem happens during lowering.

Removing either the _ or the keyword makes it work:

julia> function fun(::Int; s)
end
fun (generic function with 1 method)

julia> function fun2(_::Int)
end
fun2 (generic function with 1 method)
Issue 1:
What problem does this feature solve?

I have bind some style properties, like this:

position = {left: 40, top: 50}

so my first thought is this:

<div class={`basic-tooltip ${className}`} style={position}>

the result is style is not show at all。

I have to change to this:

// this really sucks~
const positionStyle = {}
if (style.left) {
positionStyle.left = `${style.left || 0}px`
}
if (style.right) {
positionStyle.left = `${style.right || 0}px`
}
if (style.top) {
positionStyle.left = `${style.top || 0}px`
}
if (style.bottom) {
positionStyle.bottom = `${style.bottom || 0}px`
}

<div class={`basic-tooltip ${className}`} style={positionStyle}>

so why don't the first way be supported, this is much more elegant than the second way。

What does the proposed API look like?

render(){
const position = {left: 40, top: 50}
return <div class={`basic-tooltip ${className}`} style={position} />
}

Issue 2:
What problem does this feature solve?

When managing components it is important to have all the information you can interact with at a glance.

In general, a component has two primary interactions props it takes and events it emits.

We have the ability to know at a glance for Props as you can go to the props section of the component and you know with 100% certainty which props are available, the types of the props if they are required, and so on.

We do not have this same ease when it comes to what events a component can emit.

We have $emit for a component but this can be anywhere in the component and it is not a streamlined process. With this being the nature of $emits we lose the ability to know at a glance.

It would be nice to extend the component structure to include an emits section that if included Vue throws an error if an $emit event happens that has not been listed. This can also we extended to include types.

What does the proposed API look like?

Vue.component('addOne',{
template: `<button v-on:click="add()">Add One</button>`,
props: {
num: {
type: Number,
required: true
}
},
emits: {
result: {
type: Number
}
},
methods: {
add () {
this.$emit('result', this.num + 1)
}
}
})
Issue 1:
As discuss in #2752, it would be nice to test sample weight in common tests.

Issue 2:
The main advantage would be to be able to say on a per-PR basis "this PR can be merged when CI is green". See the doc for more details. cc @scikit-learn/core-devs @scikit-learn/contributor-experience-team for visibility.

Currently we need to remember to come back in one hour and we sometimes forget. As a maintainer with many different things to track, it would be very nice to have this sense of quicker completion and the peace of mind of not having to remember to come back to merge the PR.

Here is a screenshot from sphinx-gallery which has set this up:

You can see this is a per-PR thing ("Enable automerge" button) and there is even a way to bypass branch protection, which can be nice in some rare cases (for example we know for a fact that the CI error is not related to the PR).

Things we would need to do:

set-up branch branch protection rules

define required checks: probably azure + github doc build, maybe others. We probably want to leave aside other more noisy checks like codecov?

require 1 approval rather than 2 (to allow DOC PRs to be merged with only one approval)

set-up auto-merge

make sure we check the require required checks (Thomas' comment at the meeting)

reset auto-merge when a commit is pushed after auto-merge is set, just to be on the safe side. This link says that it is done automatically, unclear whether this is the same thing as "Dismiss stale pull request approvals when new commits are pushed" setting in branch protection rules.

Other items from discussions at the meeting:

Q: does a human have to click "auto merge" on a PR for it to happen, or does it automatically happen for all PRs that match the approval requirements?

A: a per PR manual action is required to allow automerge, see screenshot above

Q: is "merge when CI is green" functionality of "Refined GitHub" a solution?

A: you need to keep the tab open for it to work, and in my limited experience it does not work reliably. Also it is not public information that the PR will be merged when CI is green.