WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

Variable handling

ANSIBLE VERSION

ansible 2.3.1.0

CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

Ansible now insists on evaluating variables in group_vars even if overridden in hosts

STEPS TO REPRODUCE

In group_vars i have a file all (for all my environments), in which I have `testing_host: "{{ groups.loadbalancer_production[0] }}"

In my hosts directory, the stage hostfiles contains testing_host=127.0.0.1

Before upgrading to 2.3, this was working fine.

EXPECTED RESULTS

testing_host correctly contains 127.0.0.1

ACTUAL RESULTS

'dict object' has no attribute 'loadbalancer_production'

Issue 2:
From @ghost on 2016-01-29T10:37:14Z

ISSUE TYPE

Feature Idea

COMPONENT NAME

lineinfile module

ANSIBLE VERSION

N/A

SUMMARY

It is very common that you need to edit a file (with e.g. lineinfile, replace), but only if the file exists. To do this right now you need to combine stats module and register: var with the module which will do the actual edit:

- stats: path=/etc/foo.conf
register: foo

- lineinfile: dest=/etc/foo.conf regexp='find' line='replace'
when: register.stat.exists

or you could use a dirty hack which isn't documented by checking the return code:

- lineinfile: dest=/etc/foo.conf regexp='find' line='replace'
register: foo
failed_when: foo.rc not in [0, 257]

It would be much cleaner and simpler to just add an additional parameter called ignore_missing, which will be no by default, so you could just use plain and simple:

- lineinfile: dest=/etc/foo.conf regexp='find' line='replace' ignore_missing=yes

If you like this idea, I would be more than happy to add it to these modules (and probably some others).

Copied from original issue: ansible/ansible-modules-core#2914
Issue 1:
I had some plotting code running on seaborn 0.10:

def plot_oos(X_hat, oos_vertices, labels, oos_labels, title):
# Plot the in-sample latent positions
plot = pairplot(X_hat, labels=labels, title=title)

# generate out-of-sample dataframe
oos_vertices = np.atleast_2d(oos_vertices)
data = {'Type': oos_labels,
'Dimension 1': oos_vertices[:, 0],
'Dimension 2': oos_vertices[:, 1]}
oos_df = pd.DataFrame(data=data)

# update plot with out-of-sample latent positions,
# plotting out-of-sample latent positions as stars
plot.data = oos_df
plot.hue_vals = oos_df["Type"]
plot.map_offdiag(plt.scatter, s=500, marker="*", edgecolor="black")

Here, pairplot is a wrapper on seaborn's pairplot, which is why it has different arguments. The wrapper returns a seaborn PairGrid.

The last three lines are the most important. They essentially updated the data and hue-values inside a pairplot with new data, then mapped it onto the pairplot. This function was quite useful for me -- I use variations of it all the time to add stuff to PairGrid plots.

Using seaborn 11.0 broke this code -- the plot.map_offdiag line no longer does anything -- and I'm trying to understand why. Is this a bug, or a feature? I see that whatsnew talks about changing delegation of hue handling, but I don't fully understand what this changes.

See below for example. The top picture correctly has the added data (plotted large, with the star marker), and the bottom plot does not have the added data. Plots were generated with the same code on seaborn 0.10.0, and then 0.11.0.

Issue 2:
Hi,

I discovered that the map_* methods of PairGrid seem to be broken in version 0.11.0 for user defined functions. See reproducible example below with a corrfunc defined to plot the pearson correlation value on the lower plots. The function doesn't seem to get evaluated in version 0.11.0. When I pip install seaborn==0.10.1, I get the desired result. Plots from both cases also attached.

from scipy import stats
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
sns.set(style="white")

mean = np.zeros(3)
cov = np.random.uniform(.2, .4, (3, 3))
cov += cov.T
cov[np.diag_indices(3)] = 1
data = np.random.multivariate_normal(mean, cov, 100)
df = pd.DataFrame(data, columns=["X", "Y", "Z"])

def corrfunc(x, y,**kws):
r, _ = stats.pearsonr(x, y)
ax = plt.gca()
ax.annotate("r = {:.2f}".format(r),
xy=(.1, .9), xycoords=ax.transAxes)

g = sns.PairGrid(df, palette=["red"])
g.map_upper(plt.scatter, s=10)
g.map_diag(sns.distplot, kde=False)
g.map_lower(sns.kdeplot, cmap="Blues_d")
g.map_lower(corrfunc)
plt.show()
Issue 1:
Electron version: 1.2.1

Operating system: Windows 10 64-bit

Can't upload a screenshot right now. Steps to reproduce:

Create a frameless browser window

Set your windows taskbar location to be at top of screen

Maximize the window

You'll be able to see the effect I'm describing. If you move the window it becomes more apparent

Issue 2:
Electron version: 0.37.4

Operating system: Windows

When I maximize my frameless electron window a small part of the window in an unmaximized state is visible on a secondary monitor.

Screenshot

You can visibly see the "line between the monitors" and you can see some really strange overhanging content that is over that line.

Steps to reproduce

Open an electron app

Maximize the app on your secondary display

Look closely for the overflow onto your primary display

This might take a few times to trigger, it appears to do it about 70% of the time 😕
Issue 1:
Using toggle popover hidden and ok. When using hide command, popover is hidden, but button inside popover still trigering mouse over.

http://jsfiddle.net/conx/n8FYQ/4/

Issue 2:
If you use $().popover with no animation and show the popover with $().popover('toggle') (i.e. trigger: 'manual'), then it doesn't hide after $().popover('hide') is called.

Demo: http://jsfiddle.net/sJtrg/

The problem seems to be that inside the Tooltip.prototype.toggle function, enter and leave are called instead of show and hide:

self.tip().hasClass('in') ? self.leave(self) : self.enter(self)

This was changed as part #7163 (9257bdc).

Inside enter, the following property is set:

self.hoverState = 'in'

and inside hide, the popover is only removed if this property is not 'in':

function complete() {
if (that.hoverState != 'in') $tip.detach()
}

The same problem exists with animation of course, but since element was faded out, it's not visible (even though it doesn't get detached).

I would have changed the calls from leave and enter to hide and show again, but I didn't go through the other issue completely, so I don't know if that would reintroduce the other bug. There might be a different way to solve this problem.
Issue 1:
Alexander was having trouble on the mailing list doing this:

pub trait TupleVal<T> {
pub pure fn _1(&self) -> &self/T;
}

impl <T>(T, T): TupleVal<T> {
pure fn _1(&self) -> &self/T {
//match *self { (ref a, _) => a }
let &(ref a, _) = self;
a
}
}

fn main() {
let pair = (1, 2);
let left = *pair._1();
io::println(fmt!("pair left: %u", left));
}

This results in the following llvm error:

Assertion failed: (getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"), function AssertOK, file /Users/erickt/Projects/rust/rust/src/llvm/lib/VMCore/Instructions.cpp, line 1062

If instead we use the commented out llvm form, it compiles and runs perfectly fine, so the let destructuring mechanism is probably to blame. @catamorphism: You wrote that code, right? Can you take a look at this?

Also, I ran into a similar llvm assertion in #4759, so maybe it's the same bug.

Issue 2:
This program:

fn main() {
let &(ref x, _) = &(1, 1);
}

Produces the output:

$ rustc --test bug3.rs
bug3.rs:2:8: 2:14 warning: unused variable: `x`
bug3.rs:2 let &(ref x, _) = &(1, 1);
^~~~~~
Assertion failed: (getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer
to Val type!"), function AssertOK, file /Users/alex/code/rust2/src/llvm/lib/VMCore/Instructions.cpp, line 1062.
Issue 1:
How can you get the version of angular2 at runtime?

will help for debugging and stack capture, is it possible to get ng2 ver in runtime?

regards

Sean

Issue 2:
Hi.

In AngularJS 1.x, console.log(angular.version); to output the following.

{
full: "1.3.x",
major: 1,
minor: 3,
dot: x,
codeName: "codeName"
}

I want you to adopt also in Angular 2 this feature for utility development. For example,

import * as angular2 from 'angular2/angular2';
console.log(angular2.version);

{
full: "2.0.0-alpha.n",
major: 2,
minor: 0,
dot: 0,
codeName: "codeName"
}

Thanks.
Issue 1:
Electron version: 1.4.4

Operating system: Windows Server 2012 R2

I don't get any output with console.log() on windows server 2012 r2

I already reinstalled it. The Code works. Because I was first on Windows Server 2016 TP4 and and there i got output with the same code, and now i reinstalled windows and does not get any output.

Issue 2:
Electron version: 1.3.6 (Visual Studio Code 1.6.1)

Operating system: Windows 2012 R2 running on Hyper-V virtual machine

Both VS Code and Atom hang (CPU goes to 100%) after installing and restarting the editor. More info here.
Issue 1:
Code Sample, a copy-pastable example if possible

In [2]: pd.DataFrame(index=range(3), columns=[1, 2, float('nan'), 2])[float('nan')]
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-86ff82017f2a> in <module>()
----> 1 pd.DataFrame(index=range(3), columns=[1, 2, float('nan'), 2])[float('nan')]

/home/nobackup/repo/pandas/pandas/core/frame.py in __getitem__(self, key)
2685 return self._getitem_multilevel(key)
2686 else:
-> 2687 return self._getitem_column(key)
2688
2689 def _getitem_column(self, key):

/home/nobackup/repo/pandas/pandas/core/frame.py in _getitem_column(self, key)
2695
2696 # duplicate columns & possible reduce dimensionality
-> 2697 result = self._constructor(self._data.get(key))
2698 if result.columns.is_unique:
2699 result = result[key]

/home/nobackup/repo/pandas/pandas/core/internals.py in get(self, item, fastpath)
4128
4129 if isna(item):
-> 4130 raise TypeError("cannot label index with a null key")
4131
4132 indexer = self.items.get_indexer_for([item])

TypeError: cannot label index with a null key

In [3]: pd.DataFrame(index=range(3), columns=[1, 2, float('nan'), 4])[float('nan')]
Out[3]:
0 NaN
1 NaN
2 NaN
Name: nan, dtype: object

In [4]: pd.Series(index=[1, 2, float('nan'), 2])[float('nan')]
Out[4]: nan

Problem description

The behavior of DataFrame[np.nan] on non-unique columns makes no particular sense and deviates from the behavior of Series[np.nan].

This is mistakenly tested here:

pandas/pandas/tests/frame/test_constructors.py

Line 1665
in
636dd01

# multiple nans should fail

I will push a fix in few minutes.

Expected Output

Same as Out[3]:.

Output of pd.show_versions()

INSTALLED VERSIONS

commit: 415012f

python: 3.5.3.final.0

python-bits: 64

OS: Linux

OS-release: 4.9.0-6-amd64

machine: x86_64

processor:

byteorder: little

LC_ALL: None

LANG: it_IT.UTF-8

LOCALE: it_IT.UTF-8

pandas: 0.24.0.dev0+83.g415012f4f

pytest: 3.5.0

pip: 9.0.1

setuptools: 39.2.0

Cython: 0.25.2

numpy: 1.14.3

scipy: 0.19.0

pyarrow: None

xarray: None

IPython: 6.2.1

sphinx: 1.5.6

patsy: 0.5.0

dateutil: 2.7.3

pytz: 2018.4

blosc: None

bottleneck: 1.2.0dev

tables: 3.3.0

numexpr: 2.6.1

feather: 0.3.1

matplotlib: 2.2.2.post1153+gff6786446

openpyxl: 2.3.0

xlrd: 1.0.0

xlwt: 1.3.0

xlsxwriter: 0.9.6

lxml: 4.1.1

bs4: 4.5.3

html5lib: 0.999999999

sqlalchemy: 1.0.15

pymysql: None

psycopg2: None

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: 0.2.1

Issue 2:
When reading a table while specifying duplicate column names - let's say two different names - pandas 0.16.1 will copy the last two columns of the data over and over again.

I opened a thread on this here:

http://stackoverflow.com/questions/31207560/pandas-read-table-with-duplicate-names

Is this a bug or an intended behavior?
Issue 1:
💻

Would you like to work on a fix?

How are you using Babel?

Other (Next.js, Gatsby, vue-cli, ...)

Input code

var Icestore = /** @class */ (function () {
function Icestore(config) {
var _this = this;
// preStore: middleware, model hooks
this.forEachPlugin('middleware', function (middleware) {
_this.config.redux.middlewares.push(middleware);
});
}

return Icestore;
}());

Configuration file name

No response

Configuration

No response

Current and expected behavior

Current

var Icestore = /** @class */ (function () {
function Icestore(config) {

// preStore: middleware, model hooks
this.forEachPlugin('middleware', function (middleware) {
this.config.redux.middlewares.push(middleware);
});
}

return Icestore;
}());

Expected

var Icestore = /** @class */ (function () {
function Icestore(config) {
var _this = this;
// preStore: middleware, model hooks
this.forEachPlugin('middleware', function (middleware) {
_this.config.redux.middlewares.push(middleware);
});
}

return Icestore;
}());

Environment

@babel/traverse 7.17.10

I rollbacked to 7.17.9, it worked.

Possible solution

No response

Additional context

No response

Issue 2:
💻

Would you like to work on a fix?

How are you using Babel?

@babel/cli

Input code

Reproduced in Babel REPL.

Configuration file name

No response

Configuration

No response

Current and expected behavior

Enabling babel-plugin-minify-dead-code-elimination plugin destroys this scope for arrow functions inside classes.

The var _this = this workaround should not be eliminated as it is absolutely necessary for the this scope to work in locally defined arrow functions.

Environment

Babel version v7.17.11

Possible solution

No response

Additional context

I narrowed the problem down locally to @babel/traverse v7.17.10. By reverting that package to v7.17.9 this problem does not occur.
Issue 1:
Issue Description

Night Mode: map-aside

the close and expand buttons are the same color as the background.

Screenshot

Issue 2:
I think there's too much contrast between the table rows for the list of completed projects/challenges. Scrolling down hurts my eyes. I'd make white rows darker.

The text in the white rows is hard to read. A little more contrast here would be good.

I also suggest changing the white background for the heat map to match the page background color. It seems a bit out of place.

Other than that, I think the Night Mode looks pretty good.
Issue 1:
Challenge Use the Twitchtv JSON API has an issue.

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

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

https://wind-bow.hyperdev.space is down.

Issue 2:
Challenge Use the Twitchtv JSON API has an issue.

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

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

The API key workaround using https://wind-bow.hyperdev.space/twitch-api has went down. While this is down, there is no way to test or complete the challenge. I have been trying to implement the Twitch API key, but it is quite advanced and I have not been successful yet.
Issue 1:
ask@b36a0c3 forces CELERYD_LOG_COLOR to True, even when configured to be False. It also appears to duplicate some of the logic in celery.app.base.BaseApp.post_config_merge, so it seems like the line in question could just be removed.

Issue 2:
Checklist

I have checked the issues list

for similar or identical bug reports.

I have checked the pull requests list

for existing proposed fixes.

I have checked the commit log

to find out if the bug was already fixed in the master branch.

I have included all related issues and possible duplicate issues in this issue

(If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

Half of the docs were reverted here: #6240 #6303 but this does not fix entirely

Possible Duplicates

None

Description

https://github.com/celery/celery/blob/v4.4.7/docs/whatsnew-4.4.rst#configuration states that CELERY_TASK_RESULT_EXPIRES has changed to CELERY_RESULT_EXPIRES but the new setting is ignored. Note that this change is not mentioned in the changelog, it is on the what's new page and has been recently reverted on the configuration page.

The code also seems to still require CELERY_TASK_RESULT_EXPIRES - e.g. https://github.com/celery/celery/blob/v4.4.7/celery/app/defaults.py#L213

Suggestions

Change https://github.com/celery/celery/blob/v4.4.7/celery/app/defaults.py#L213 to celery_result_expires - I think this fixes the issue, or change both the "what's new" and configuration options pages to be the same.
Issue 1:
[x] bug report

Current behavior

The promise of whenStable does resolve in time when used in an async test with a reactive form and async validators. Code and unit tests within the whenStable block do not run.

However when using jasmines done callback instead of async the behavior is correct

Expected behavior

same as when using jasmines done callback

Minimal reproduction of the problem

http://embed.plnkr.co/OKNpXpeBBlQLUXJZidlS/

Issue 2:
I'm submitting a bug report

Current behavior

I am using Angular 2 for only the admin section and login section of my application. so I bootstrap my application for "/login" and "/admin/**" route. So inorder to protect the admin router I used AUTH Guard Service as explained in Routing and Navigation Doc of Angular 2. It was working till the RC 4 but since RC5 it is giving the Issue. It suggest to bootstrap atleast One Component but there is no other component than Login and Admin

Angular version: 2.0.0-RC-5 to 2.0.0

I have posted the issue in StackOverflow and Gitter but didn't the any solution as it is said to be the known bug

zone.js:344 Unhandled Promise rejection: Bootstrap at least one component before injecting Router. ; Zone: <root> ; Task: Promise.then ; Value: Error: Bootstrap at least one component before injecting Router.(…) Error: Bootstrap at least one component before injecting Router. at setupRouter (http://localhost:3000/scripts/@angular/router//bundles/router.umd.min.js:13:18707) at NgModuleInjector.get (AppModule.ngfactory.js:372:57) at NgModuleInjector.get (AppModule.ngfactory.js:377:118) at NgModuleInjector.get (AppModule.ngfactory.js:502:99) at NgModuleInjector.AppModuleInjector.createInternal (AppModule.ngfactory.js:561:64) at NgModuleInjector.create (http://localhost:3000/scripts/@angular/core//bundles/core.umd.min.js:30:1140) at NgModuleFactory.create (http://localhost:3000/scripts/@angular/core//bundles/core.umd.min.js:30:673) at eval (http://localhost:3000/scripts/@angular/core//bundles/core.umd.min.js:29:25106) at ZoneDelegate.invoke (http://localhost:3000/scripts/zone.js/dist/zone.js:192:28) at Object.onInvoke (http://localhost:3000/scripts/@angular/core//bundles/core.umd.min.js:29:16609)consoleError @ zone.js:344_loop_1 @ zone.js:371drainMicroTaskQueue @ zone.js:375ZoneTask.invoke @ zone.js:297 zone.js:346 Error: Uncaught (in promise): Error: Bootstrap at least one component before injecting Router.(…)consoleError @ zone.js:346_loop_1 @ zone.js:371drainMicroTaskQueue @ zone.js:375ZoneTask.invoke @ zone.js:297
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-use-comments-to-clarify-code has an issue:

When I open a comment block with '<!--', the numbered instructions disappear.

Issue 2:
Challenge http://beta.freecodecamp.com/challenges/waypoint-use-comments-to-clarify-code has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

See below for screen appearance prior to adding comments tag:

And then after the initial comments tag:
Issue 1:
Force a newly opened application to open up on the monitor from which it was started, regardless if it was started from the start menu or from the taskbar.

Three monitor setup with 3 taskbars and 3 start buttons.

Some applications always open on the primary monitor, some on monitor 3 and some on monitor 2. I have yet to find any logic behind where it opens.

When I click on the VS icon on the taskbar of monitor 2, that is where it should open.

Then if an application opens a pop up window it should open that on the same window as the application.

Issue 2:
By default new windows are opened on primary monitor (some application introduce their own special positioning). If we have zone history for some application on secondary monitor, and that monitor is active, application window will be opened there, otherwise we fallback to default windows behavior and that window is opened on primary monitor.

Even if we don't have app history for that application on active monitor, we should open it there, with respect of window width and height.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: master

Operating System version: xxx

Java version: 1.8

Steps to reproduce this issue

there have two provider on The machine A and The machine B

machine A is processing request very slowly ，i want b provider only receive a little bit of request

mostly request send to a

updated provider ， i ’am doing Service upgrade ,right now

update b provider then publish , but consume is old , need new provider b dont receive any request until consume is upgrade done

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

API DOC is generated with ./mvnw clean javadoc:aggregate -Dmaven.javadoc.skip=false

But there are something need improve for those docs.

demo should exclude from docs

doc title is using dubbo-parent, should be Apache Dubbo
Issue 1:
Mattias Severson opened SPR-9032 and commented

Step by step:

Go to http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#testcontext-tx

Scroll down to "Avoid false positives when testing ORM code"

Find how to include SessionFactory and flush() is used to avoid false positives if you are using Hibernate.

The information is good, but it is not applicable if you use JPA. To avoid false positives when using JPA (backed by Hibernate) I propose that you add a new snippet that the describes a different approach. Suggested implementation:

@PersistenceContext
EntityManager entityManager;

@Test(expected = GenericJDBCException.class)
public void updateWithSessionFlush() {
updateJpaEntity();
// Manual flush is required to avoid false positive in test
entityManager.unwrap(Session.class).flush();
}

Affects: 3.1 GA

Issue Links:

#18296 Doc: Flush in test with SessionFactory vs EntityManager ("is duplicated by")

Referenced from: commits 64c388d

Issue 2:
Stepan Koltsov opened SPR-4104 and commented

JdbcDaoSupport.setJdbcTemplate() accepts JdbcTemplate as argument. It would be better if argument was JdbcOperations.

Rationale: I have reflective proxy of JdbcTemplate that measures query execution times. Such proxy does not extend JdbcTemplate, but rather implement JdbcOperations. So I cannot inject this proxy into JdbcDaoSupport.

Affects: 2.5 RC1

Issue Links:

#8440 Alter JdbcDaoSupport to use JdbcOperations instead of JdbcTemplate ("duplicates")
Issue 1:
Having a flashing white page accompanied with the animation, whenever a tab is refreshed on Night Mode is contradictory.

This is Night Mode with animation:

Issue 2:
We're on a roll with improving the night mode! 👍

Issue Description

When the page has to load (when coming from a page that is not reactified, first opening the page or reloading), it takes a bit for the night mode to active. This flash of light can be a bit annoying I must say ⚡️ 😅

I'm not certain about the cause, or what a solution would be.

#12538 (comment)

/cc @Bouncey