WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?

Symfony version
3.3.5

For the admin interface of eZ Platform 2.0, we are developing an application where the navigation happens with AJAX request. After an AJAX request corresponding to the navigation, the following is code is run:

Sfjs.load(
document.querySelector('.sf-toolbar').id,
`/_wdt/${debugTokenFromHttpHeader}`
);

so that the toolbar is updated as if the full page was generated (implementation of this feature request #15456)

Somehow, this is working (the toolbar is updated for instance the Route name, the timing or the memory usage are updated) but after calling load the toolbar is buggy in the following ways:

if it's was minimized, it becomes maximized

it's impossible to minimized it again, clicking on Close Toolbar link has no effect

if the page does others AJAX requests, the AJAX requests counter is correctly updated, but it keeps on blinking even after the end of those requests

Issue 2:
If, for example, a project consists of the following commands:

my-website:admin:do-something
my-website:admin:do-something-else
my-website:data:blah
my-website:data:blah-blah

calling app/console list my-website causes an exception:

The namespace "my-website" is ambiguous (my-website:admin, my-website:data).

This does not look like what would be expected. Adding a command into my-website namespace directly (e.g. my-website:test) helps to avoid the issue – command listing starts working fine.

Perhaps, the problem is in Symfony\Component\Console\Application::getNamespaces() – this method registers only one namespace per command, so parent namespaces remain unknown unless they contain any commands directly.
Issue 1:
Hello,

I am trying to use the tooltips on all my links, including the navbar. But as the navbar is fixed on top, I had to use the bottom position for the first rank links.

The problem is that the tooltip-arrow was not above the tooltip but a bit below, almost behind for the first links and way below for the links of the dropdown list. I put the tooltip back to top for the dropdownlists but I can get the arrow at the right position for the first links.

I found out that the .tooltip-arrow div got some css style="top:XXXpx;" (XXX depending of the link ranking)

Just now, I managed to force the css back to "top:0px" using the 'shown.bs.tooltip' event (nothing happened with the 'show.bs.tooltip' event) so that the arrow shows at the wrong position a few moments before going back in place... you can see the result here : www.theblacksmithshouse.be

Two questions :

why does nothing happen with the 'show.bs.tooltip' ?

who's messing with that 'top' position ??

Thanks for your help

OC

Issue 2:
When a tooltip/popover would appear slightly offscreen to the right or left, it's correctly shifted slightly however the arrow ends up appearing in the middle of the popover, rather than at the edge of it like it should.

In this case, getViewportAdjustedDelta always returns {top: 0, left: 0} because getCalculatedOffset already made the correction to fit the tip on the page, however there are subsequent "delta.left" tests in applyPlacement to deduce left/right vs top/bottom positioning that will break in top/bottom mode.

A fix would be to change the "delta.left" tests with a horizShift test, where horizShift is defined as:

var horizShift = !/right|left/.test(placement);

e.g.

var arrowPosition = horizShift ? 'left' : 'top'
Issue 1:
Describe the workflow you want to enable

I have been searching around for a Scikit-learn package which calculates the specificity score for multiclass problems but I can't seem to find one.

Would be helpful to have a package which calculates the specificity score, in particular for multiclass problems.

Would be helpful to also have a scorer call for the specificity score so that the scorer call could be used in other functions like cross_val_score() or GridSearchCV(). See here: https://scikit-learn.org/stable/modules/model_evaluation.html

Additional context

If Scikit-learn decided not to have a package to calculate the specificity score for multiclass problems, is there a reason why this was omitted?

Alternatively, if I really need to calculate the specificity score for multiclass problems at this point in time, what is the best way in doing so, in particular calculating the specificity score (for multiclass problems) together using GridSearchCV().

Issue 2:
It would be nice if these rates would be included in the metrics module:

False positive rate (Fall-out)

False negative rate (Miss rate)

True negative rate (specificity)
Issue 1:
The ec2.py script now creates host groups based on instance tags, but I think there might be two issues.

The order of your inventory file needs to go:

non-tag groups

tag groups

for the tag groups to work. For example:

[local]
127.0.0.1

[eh_web]
x.x.x.x

[tag_Class_web]
x.x.x.x

Is valid where x.x.x.x is a static IP. But:

[local]
127.0.0.1

[tag_Class_web]
x.x.x.x

[eh_web]
x.x.x.x

Only runs plays on x.x.x.x if you use the tag_Class_web group.

I'm not sure this is a bug, but I would imagine the hostgroup should be allowed to be empty in the inventory file. Should this not work? Neither this format nor leaving the host group out entirely causes the EC2.py script to run.

[local]
127.0.0.1

[tag_Class_web]

[eh_web]
x.x.x.x

Issue 2:
Since 1.4 ansible does not deduplicate hosts coming from multiple sources, which causes tasks to run multiple times on the same host in a single play.

$ tail test/* simple.yml
==> test/hosts1 <==
[group1]
localhost

==> test/hosts2 <==
[group2]
localhost

==> simple.yml <==
- hosts: localhost
gather_facts: no

$ (cd ~/opt/ansible ; git checkout v1.3.4)
Previous HEAD position was 2a58c2b... Update files for 1.4 release
HEAD is now at 8e3ba1f... Version bump for 1.3.4
$ ansible --version ; ansible-playbook -i test simple.yml --list-host
ansible 1.3.4

playbook: simple.yml

play #1 (localhost): host count=1
localhost

$ (cd ~/opt/ansible ; git checkout v1.4.0)
Previous HEAD position was 8e3ba1f... Version bump for 1.3.4
HEAD is now at 2a58c2b... Update files for 1.4 release
$ ansible --version ; ansible-playbook -i test simple.yml --list-host
ansible 1.4

playbook: simple.yml

play #1 (localhost): host count=2
localhost
localhost
Issue 1:
Apache Airflow version: 1.10.12

Kubernetes version: 1.18.6

What happened:

Airflow is running within a k8s with KubernetesExecutor

When trying to run task on demand within a DAG (f.e. "Ignore all deps") receiving following banner

Only works with the Celery or Kubernetes executors, sorry

What you expected to happen:

Task should be executed

How to reproduce it:

see above

Issue 2:
Apache Airflow version: 1.10.12

Kubernetes version (if you are using kubernetes) (use kubectl version): v1.16.13-gke.401

Environment: AWS EKS

Cloud provider or hardware configuration:

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

Kernel (e.g. uname -a):

Install tools:

Others:**

What happened:

Hi Airflow community ✋ I have detected bug on Airflow webserver. I have deployed Airflow cluster that uses Kubernetes executor, runs on production AWS EKS cluster. All configurations are correct and runs successfully tasks on DAGs. But when I want to run specific task on DAG, that throws error like that:

But, I have checked my KubernetesExecutor configurations all of them are correct. So, I have digged error on source code of Airflow webserver at tag 1.10.12 which I have deployed version of Airflow. And found that some import errors are ignored for KubernetesExecutor on file https://github.com/apache/airflow/blob/1.10.12/airflow/www/views.py at line 1152

executor = ExecutorLoader.get_default_executor()
valid_celery_config = False
valid_kubernetes_config = False

try:
from airflow.executors.celery_executor import CeleryExecutor # noqa

valid_celery_config = isinstance(executor, CeleryExecutor)
except ImportError:
pass

try:
from airflow.contrib.executors.kubernetes_executor import KubernetesExecutor # noqa

valid_kubernetes_config = isinstance(executor, KubernetesExecutor)
except ImportError:
pass

if not valid_celery_config and not valid_kubernetes_config:
flash("Only works with the Celery or Kubernetes executors, sorry", "error")
return redirect(origin)

In there, bug in this code snippet

try:
from airflow.contrib.executors.kubernetes_executor import KubernetesExecutor # BUG IS HERE !!!

valid_kubernetes_config = isinstance(executor, KubernetesExecutor)
except ImportError:
pass

Import statement raises error KubernetesExecutor not found in this module because when you look that module at tag 1.10.12 https://github.com/apache/airflow/blob/1.10.12/airflow/contrib/executors/kubernetes_executor.py, there is no KubernetesExecutor class, only includes kubernetes_executor module which it is KubernetesExecutor's location. But when you use that you need to change the code like that:

try:
from airflow.contrib.executors.kubernetes_executor import kubernetes_executor

valid_kubernetes_config = isinstance(executor, kubernetes_executor.KubernetesExecutor)
except ImportError:
pass

or:

try:
from airflow.executors.kubernetes_executor import KubernetesExecutor

valid_kubernetes_config = isinstance(executor, KubernetesExecutor)
except ImportError:
pass

What you expected:

Runs successfully single task with KubernetesExecutor. This error block user to run single task with KubernetesExecutor without run whole DAG.

Thanks, have a nice day 👍 😄
Issue 1:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Disabled radio button (and checkbox) fires onChange event from double click in IE11

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar.

http://jsfiddle.net/gttafz9t/2/

What is the expected behavior?

Disabled radio button (and checkbox) doesn't fire onChange event from double click in IE11

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

React 15.4.2, IE11 / Windows 8.1

Duplicate of:

#4457

Issue 2:
React version: Latest

Steps To Reproduce

import * as hooks from "bundle-o-hooks";

function MyComponent({x}) {
if (x > 1) {
const something = hooks.useAHook(); // not flagged
}
}

The current behavior

The current hook-matching rules only counts bare identifiers or member expressions where the target object is in Pascal case

https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/src/RulesOfHooks.js#L25-L44

The expected behavior

I'd like the pascal case restriction to be removed, or at least have the docs updated, as neither the existing docs nor the beta docs mention this additional rule for what gets considered a hook by the linter.
Issue 1:
Hi there,

Please see this example: http://jsbin.com/ulopaj/4

There is a link with a tooltip applied in the modal.

I set a 'shown' event handler function to the modal, it works when the modal is popped up, then try to hover the link inside the modal, the 'shown' event handler will be invoked again.

You can see the source code of this example here: http://jsbin.com/ulopaj/4/edit

Any help will be appreciated, thank you very much.

Issue 2:
The triggered show and hide event bubbles to the modal dialog when using tooltips in modal dialog. So, the show and hide of the modal dialog will also be triggered.

Following should work as workaround:

$('[rel="tooltip"','.modal').tooltip().on('show', function(e) {e.stopPropagation();}).on('hide', function(e) {e.stopPropagation();});

Possible fix:

Namespacing the triggered event to 'show.tooltip', to prevent bubbling to 'show.modal'.
Issue 1:
e.g. https://build.julialang.org/#/builders/65/builds/743/steps/5/logs/stdio

Error in testset mpfr:
Test Failed at C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\mpfr.jl:609
Expression: log2(x) == log2(42)
Evaluated: 5.3923174227787607 == 5.39231742277876

Issue 2:
From https://build.julialang.org/#/builders/65/builds/674/steps/5/logs/stdio

Error in testset mpfr:
Test Failed at C:\buildbot\worker-tabularasa\tester_win64\build\share\julia\test\mpfr.jl:609
Expression: log2(x) == log2(42)
Evaluated: 5.3923174227787607 == 5.39231742277876
Issue 1:
John Emmanuel opened SPR-6632 and commented

The first code snippet in section 3.11.1 of the spring documentation is as follows:

@Configuration

public class AppConfig {

@Bean

public void MyService myService() {

return new MyServiceImpl();

}

}

The method signature of the myService is incorrect. It should be

public MyService myService()...

Note: I did not check the forums to see if this issue has already been

resolved. If already resolved I am sorry for creating this issue.

Affects: 3.0 GA

Issue Links:

#11303 Error in JavaConfig sample code ("duplicates")

Issue 2:
Sean opened SPR-4249 and commented

Please see the following example:

@Service

@Transactional

public class AccountService {

@Autowired
private AccountDao accountDao;

public void updateLoginInfo(Account account) {
accountDao.updateLoginInfo(account);
someOtherStatementsMightThrowException();
}

}

And everything supports the annotation is configurated:

<context:annotation-config />

<context:component-scan base-package="com.xyz" />

<tx:annotation-driven transaction-manager="transactionManager" />

We use @Service annotation on service bean, that is, it could be autowired to any bean depends on it.

But the @Transactional annotation doesn't work, until I remove @Service annotation and explicit define the bean in context configuration xml:

<bean id="accountService" class="com.xyz.service.AccountService" />

I'm wondering if there is any step I missed, or it supposes to work like that? Thanks.

Affects: 2.5 final
Issue 1:
Hi,

I come from a java background and I love using flask. But there is some itch with flask GET/POST API (production code and test code) I would like to discuss about.

In a java servlet, it doesn't matter what http method you're using (GET, POST, PUT), you always do this to get a parameter from input :

String username = request.getParameter("username");
String password = request.getParameter("password");

In flask, this is inconsistent :

for a POST, flasks "assumes" data come from a form (wich is not mandatory, you can submit data without a form) :

username = request.form['username']

To me, in terms of API, form is wrong. But worse, if you do a GET, you can't use form, you'll have to user args :

GET :

username = request.args['username']

I would prefer to see, in POST/GET/PUT/whatever (I'm using parameter, as in java HttpServlet API) :

username = request.parameter['username']

As Im doing TDD, I observed the same inconsiancy in writing unit tests :

to test a POST, you can submit a dict (which is great and very pythonic) :

app.test_client().post('/login', data=dict(
username=username,
password=))

to test a GET, you can't pass a dict, you have to reconstruct the URL (which I don't find very pythonic) :

app.test_client().get('/agent/login?username=%s&password=%s' % (username, password))

I would love to be able to write this for a GET too :

app.test_client().get('/login', data=dict(
username=username,
password=))

Anyway, what do you think ?

Thanks for your feedback.

Issue 2:
Flask started to ship with a default, hardcoded logging handler. Unfortunately this setup makes it harder to install custom logging setups, because then you'll have to undo all the things Flask did to the app logger, or replace the app.logger entirely. A symptom of this is #1993, where Flask's own logger had to be tweaked yet again such that messages didn't get logged twice (once via Flask's setup, once via the custom one).

My question is: Do we even want Flask to do any logging setup? It appears that this sort of default logging is only useful during development, so maybe it makes sense to set up a default logging handler in the new Flask CLI instead of from within the application.
Issue 1:
As far I know, .once would fire only one time.

However, .once would fire multiple times, when the DOM is "not" the last binding DOM in template.

For example,

<button @click.once='doThis'>btn#1</button> <!-- BUG: fire multiuple times!! -->
<button @click='doThis'>btn#2</button>

while if I change the order of the two buttons, i.e.,

<button @click='doThis'>btn#1</button>
<button @click.once='doThis'>btn#2</button> <!-- fire only one time -->

.once would has the expected behavior.

For the same issue, I can't assign multiple .once listeners for multiple DOMs.

<button @click.once='doThis'>btn#1</button> <!-- BUG: fire multiuple times!! -->
<button @click.once='doThat'>btn#2</button> <!-- BUG: fire multiuple times!! -->
<button @click.once='doThis'>btn#3</button> <!-- fire only one time -->

I was wondering this is a feature or bug.

Thank you.

Vue.js version

2.1.8 (latest)

MAC OS 10.11 + Chrome 55

Reproduction Link

order cause .once fail

https://jsfiddle.net/ignoreswing/q90uox65/

Can't use multiple .once

https://jsfiddle.net/ignoreswing/t4y6nmzq/

What is Expected?

btn#1 should fire only one time

If hitting the buttons, fire alert only "once" for all of the three buttons!

What is actually happening?

btn#1 fire multiple time

btn#1 and btn#2 fire multiple times.

Issue 2:
Vue.js version

2.1.8

Reproduction Link

https://jsfiddle.net/bacft9s7/

Steps to reproduce

Clicks on the element more than once.

What is Expected?

The event handler should be removed after the first click.

What is actually happening?

The event handler except for the last one with .once modifier is not removed.
Issue 1:
We are seeing exceptions when transferring a TorchScripted Module via RPC. Can we add support for it?

cc @suo @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @xush6528 @jjlilley @osalpekar

Issue 2:
Right now there is no way to pass script module object over wrie in rpc layer.

When calling python myScriptModule constructor as follows, myScriptModule will be serialized by python pickler, but python pickler does not support scriptModule object serialization

ret = rpc_sync(work1, myScriptModule, args=())

or rref = remote(work1, myScriptModule, args=()), rref.to_here()

When calling torchscript function to construct myScriptModule as follows, myScriptModule will be serialized by JIT pickler internally when we wrap the data to Message, but JIT pickler complained scriptModule is not supported type

@torch.jit.script

def construct_my_script_module():

myScriptModule()

ret = rpc_sync(work1, construct_my_script_module, args=())

or rref = remote(work1, construct_my_script_module, args=()), rref.to_here()

Solution

We need to do special handling for script module object by calling torch.save() and torch.load() before dumping it to Message and pass it over wire

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @jjlilley @osalpekar @jiayisuse @mrzzd @gmagogsfm @suo @xush6528
Issue 1:
Challenge Show Relationships with a Force Directed Graph has an issue.

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

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

Issue 2:
Challenge Style Text Inputs as Form Controls has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; 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.

I am not able to navigate to the button tag of submit to add class there

It doesn't work when browser is initially loaded, and one try to navigate to the bottom. but if you delete any thing it can navigate to anywhere in the code. Even during this where ever the cursor is show when we type anything it gets typed at bottom.

The same problem is faced in next challenge too

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
h2 {
font-family: Lobster, Monospace;
}

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

</style>

<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
</div>
</div>
<img src="https://bit.ly/fcc-running-cats" class="img-responsive">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></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">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Crazy</label>
</div>
</div>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
Issue 1:
Doing something like

let object: HashMap<serde_v8::Value, serde_v8::Value> = serde_v8::from_v8(value).unwrap();

gives two compile time errors.

Expected behavior

serde_v8::Value should implement Hash and Eq so this can be performed.

Issue 2:
When I make yaml-wasm, I must open a web server to test it. If fetch can load local file, then a web server is no longer necessary, making automated testing much easier.

This would also help a static website development as well.
Issue 1:
📝 Synchroning configurations with the Microsoft/Github account.

With this feature, you could save and use your onetime PowerToys configuration within multiple desktops, just synchronizing your Microsoft account.

This prevents the necessity of reconfiguring all your replaced shortcuts between workspaces.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
Hello,

I just remapped Win+V to Ctrl+V using Keyboard Manager in PowerToys.

When I invoke clipboard with new shortcut (Ctrl + V), I can see it, but after picking one of the items from clipboard list, it doesn't paste it.

This happens only when I map to Ctrl+V; when I tried with - for example - Ctrl+Shift+V, everything worked fine.