WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/2169 on 2012-06-19 by trac user knopfra, assigned to unknown.

The array provided in attachment as a pickle file can be used to detect the following issue (64 bit Linux system, python 2.7.3, numpy 1.6.1). The array has 15606478 elements.

In [1]: import numpy as np

In [2]: a = np.load('data.pkl')

In [3]: np.nanmin(a)[[BR]]

Out[3]: 4.715836

In [4]: np.nanmax(a)[[BR]]

Out[4]: 4.7189121

In [5]: idx = np.where(np.isfinite(a))

In [6]: a[idx].mean()[[BR]]

Out[6]: 4.1792714738680736

In [7]: from scipy.stats import nanmean

In [8]: nanmean(a)[[BR]]

Out[8]: 4.1792714738680727

The mean value obtained is clearly wrong.

On a 32 bit system the result is the following:

In [1]: import numpy as np

In [2]: a = np.load('data.pkl')

In [3]: idx = np.where(np.isfinite(a))

In [4]: a[idx].mean()[[BR]]

Out[4]: 4.7184738182116019

and this time the mean value is correct.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/2170 on 2012-06-19 by trac user knopfra, assigned to unknown.

The array provided as a pickle file at the following link [http://dl.dropbox.com/u/30592272/data.pkl.gz] can be used to detect the following issue (64 bit Linux system, python 2.7.3, numpy 1.6.1). The array has 15606478 elements.

In [1]: import numpy as np

In [2]: a = np.load('data.pkl')

In [3]: np.nanmin(a)[[BR]]

Out[3]: 4.715836

In [4]: np.nanmax(a)[[BR]]

Out[4]: 4.7189121

In [5]: idx = np.where(np.isfinite(a))

In [6]: a[idx].mean()[[BR]]

Out[6]: 4.1792714738680736

In [7]: from scipy.stats import nanmean

In [8]: nanmean(a)[[BR]]

Out[8]: 4.1792714738680727

The mean value obtained is clearly wrong.

On a 32 bit system the result is the following:

In [1]: import numpy as np

In [2]: a = np.load('data.pkl')

In [3]: idx = np.where(np.isfinite(a))

In [4]: a[idx].mean()[[BR]]

Out[4]: 4.7184738182116019

and this time the mean value is correct.
Issue 1:
Andy Piper opened SPR-2533 and commented

JavaBeans support the management of listeners via the addX() methods (see section 6 of the JavaBeans specification, titled "Events"). It would be extremely useful to support this in spring so that event listeners could be added to a bean using standard IoC. This could be done either by overloading the meaning of "property" or introducing a new "listener" tag. For instance given the addX() method on a bean you would like to be able to do the following:

<bean id="eventBean">

<property name="X" ref="listener1"/>

<property name="X" ref="listener2"/>

</bean>

<bean id="listener1/>

<bean id="listener2/>

Affects: 2.0 RC3

Issue Links:

#4961 Please improve BeanFactory support for containers & collections ("duplicates")

4 votes, 3 watchers

Issue 2:
Tomasz Nurkiewicz opened SPR-8808 and commented

I am using AnnotationConfigWebApplicationContext and XML-free testing support with @ContextConfiguration(classes=...). When pointed @Configuration class contains @ComponentScan with a package containing that class:

package com.example.foo;

@Configuration
@ComponentScan(basePackages = "com.example.foo")
public class Config { }

I get unexpected exception:

org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'config' for bean class [com.example.foo.Config] conflicts with existing, non-compatible bean definition of same name and class [com.example.foo.Config]

While I understand why it happens, IMHO Spring should handle this case and simply ignore @Configuration found in scanned package if it has already been provided in AnnotationConfigWebApplicationContext.

Test case attached. On branch master you'll find a test case failing, branch fix fixes the problem by simply @Config to another package.

Affects: 3.1 RC1

Attachments:

testcase2.zip (25.13 kB)

testcase3.zip (29.18 kB)

Issue Links:

#13521 Default @ComponentScan's exclude filter to exclude @Configuration annotated classes ("is duplicated by")

#12956 Allow recursive use of @ComponentScan

Referenced from: commits ca4eafd, 6991cd9
Issue 1:
While creating a distplot on 'Tips' dataset on 'Total_Bills' column the Y axis values in the chart appear in decimal while I am expecting it to provide the counts.

I am using the following code:

import seaborn as sns %matplotlib inline tips = sns.load_dataset('tips') sns.distplot(tips['total_bill'],bins=10,norm_hist=False)

which gives following output:

while I am expecting the y axis to show the values as per below.

Following Troubleshooting steps were performed:

Restart Kernel and Run All Cells

Copy the entire code in One Cell

Open a new Jupyter Notebook to wrote the code again.

Explicitly mentioned norm_hist = False in the argument

But none of these work. Why by default does it show values like 0.01, 0.02, 0.03 .... 0.06 on the y-axis?

Issue 2:
Hi all,

(first of all: awesome library, I love it)

I am wondering about the default behavior of distplot when norm_hist is False.

At least on 0.8.0, when

sns.distplot(x, norm_hist=False)

produces a figure that is 1) normalized and 2) still has the KDE, which is a bit of a gotcha (i.e. unless you carefully read the docs for norm_hist and kde and infer if kde is default-True, and it might override norm_hist=False.

If you run:

sns.distplot(x, norm_hist=False, kde=False)

This will give you an unnormed, sans-KDE distribution.

Which itself is a little disappointing since the KDE is actually super nice for understanding the structure of the data.

I can think of two potential ways to address this mild annoyance:

default kde=None and have it infer if it should compute a KDE from the value of norm_hist, or

if norm_hist=False, compute the KDE of the normalized figure, but then multiply it by the integration value of the distribution to put it on the plot. (I am not a statistician, so this seems fine to me, but perhaps isn't kosher for some reason?)

I'd be open to doing this myself (esp 2), as long as I know you'll accept the PR 😅 .

Cheers!
Issue 1:
Sorry in advance if this is the wrong place or way to ask this. I would like to add a hook to the trackball mouse controls so that a user can specify a handler they would like called first if needed. Doing it is not difficult but I'd like to contribute it back to the community if it has value. How do I go about doing that? Is there an example of other code that I can look at that would be consistent stylistically?

Issue 2:
My goal is to have the camera looking perpendicularly at one face of a cube, no matter how the cube rotates. I'm using FirstPersonControls to control the cube. I'm using the pointer lock API so the cube rotates with my mouse movements as a character would in a 3rd person shooter.

I'm having problems keeping the camera a fixed distance behind the cube and always looking at the cube at the same angle.

To set the position of the camera, I'm doing something like this:

camera.position.x = mesh.position.x + Math.sin(mesh.rotation.y) * 400;

camera.position.y = 450;

camera.position.z = mesh.position.z + Math.cos(mesh.rotation.y) * 400;

camera.lookAt(mesh.position);

There's two problems with this: One is I'm able to keep aligned behind the cube for a rotation of only 180 degrees, then the cube will do a full spin before the camera re-aligns again. I suspect this is because, when controlled by FirstPersonControls, mesh.rotation.y takes on values from -Pi/2 to Pi/2 and then starts returning to -Pi/2 even though I keep turning in the same direction. So the camera is not able to do a full spin as it would if mesh.rotation.y kept increasing indefinitely as I kept moving the mouse right.

The other problem is I'm not sure how to calculate camera.position.y with respect to the mesh rotation. I also want the camera to move on the y-axis while looking at the cube, rather than being hard-coded at 450. But that is a problem I think I should solve after fixing the first issue.

Would anyone be able to offer some advice?
Issue 1:
Hi,

Version: VS 2015/TS 1.5.4

I have the following settings.

On the "Build" settings page I have

On the "TypeScript Build" settings page I have

When I build the whole project, things work correctly and the output is written to bin.

However, compile-on-save writes the output to a folder called $(OutDir).

Issue 2:
A function can choose to omit parameters defined in a signature, as shown by function a below. Callers of a must still supply arguments, but the function does not need to use them.

Despite this, if the same function is assigned later in the program, this no longer applies and the identical function is now not compatible, as shown with function b.

interface X {
(source: number): boolean;
}

var a: X = function() { return true; }

var b: X;
// Why is this an error?
var b = function() { return true; }

Shouldn't both of these cases follow the same rules?
Issue 1:
OS: Windows 8.1

Atom version: 0.132.0

Whenever I have multiple monitors connected, and atom is on a monitor that is not the primary monitor, the menu bar drop downs don't show up in the correct position in some situations. The drop downs show up with the correct vertical offset, but are horizontally pinned to the right side of the primary monitor.

Strangely enough, the occurrence of this bug appears to be dependent on the drop down's expected (as in, where the drop down SHOULD be) distance from the primary monitor. Drop down's too close to the primary monitor get pulled onto the primary monitor, while drop down's far enough away show up with the correct positioning. I tried to show this in the screenshots below.

My guess is that this has something to do with DPI scaling in Windows 8.1. My primary display has a high DPI, so it's set to 125% scaling in Windows. My secondary monitor has normal 100% scaling. And it does look like the 'cut off' distance where the drop downs switch between monitors is exactly 25% from the edge of the other monitor. I'm just guessing though.

Issue 2:
I have a 3 monitor setup, when atom is maximized on any monitor but the left most one the file menu opens up one monitor to the left.

Windows 7

Atom vs 0.124.0
Issue 1:
Introduce Mutable<T> to implement a dynamic mutable slot, with dynamic borrow check, in once place. Obsolete Cell<T> and RcMut<T> (and what about @mut T? See #7140)

For Mutable<T> use an implementation with wrapped borrowed pointers to allow for both closured-bracketed and "roaming" borrowed pointers.

A working test is https://gist.github.com/anonymous/f007d9b907509c03c17f

Updated, WIP: https://github.com/blake2-ppc/rust/compare/mutable-t

Issue 2:
I'm not sure if this is a bug or not, needs further investigation. It appears that by reusing the fulfillment_cx here we incur more obligations and later trip an assertion.

The two possibilities I see is:

- normalization is not actually fully happening and we have a bug else where

- we are adding a duplicate bound into the list causing its size to change.
Issue 1:
Alexander Schäl opened SPR-6481 and commented

When started via Java6 WebStart, the Spring PathMatchingResourcePatternResolver tries to handle the URLConnection (wich is in a WebStart context actually an JNLPCachedJarURLConnection) just like a normal file URL. The PathMatchingResourcePatternResolver checks the resources only for a JarURLConnection, any other is handled as a path on the local file system.

So the resource request for "http://service.ACME.com:42/webstart/ressources.jar" (which would be propperly handled by the com.sun.jnlp.JNLPClassLoader) is crippled to "http:\service.ACME.com:42\webstart\ressources.jar", which of course can't be handled by any class loader and logically ends up in an FileNotFoundException due to the destroyed URL syntax.

A solution COULD be to extend the URLConnection type checking at the method doFindPathMatchingJarResources of org.springframework.core.io.support.PathMatchingResourcePatternResolver from JarURLConnection to an JNLPCachedJarURLConnection in order to treat this connection not as a "file:"

Java WebStart 5 used to cache all resources (especially the JAR files listed as resources in the JNLP file) on the local file system and the PathMatchingResourcePatternResolver could access these JAR files using a local path like "file://path/on/local/system". Java WebStart 6 has got another (obfuscated) cache structure - there are no longer any plain JAR files. That's why the JNLPClassLoader returns JNLPCachedJarURLConnection for any JAR resource instead of JarURLConnection like WebStart 5 did.

Affects: 2.5.4

Issue Links:

#11146 Spring fails to load ressources via Java Network Launching Protocol (WebStart) since Java6 ("duplicates")

2 votes, 2 watchers

Issue 2:
Todd Nine opened SPR-792 and commented

I have added support for the Hibernate event listener interceptors. It is not the prettiest, since the only way to add the property in the Hibernate configuration is by the event name, then the intercepting class. This simply uses a Properties object for the name value pair.

Affects: 1.2 RC1

Attachments:

LocalSessionFactory.zip (10.77 kB)

LocalSessionFactory2.zip (10.80 kB)

Issue Links:

#5560 No way to set listeners on the SessionFactory ("duplicates")
Issue 1:
Apache Airflow version

2.2.0

Operating System

Centos 7

Versions of Apache Airflow Providers

No response

Deployment

Other 3rd-party Helm chart

Deployment details

No response

What happened

I could not see full task name, when task name is too long.

What you expected to happen

Needs to space between task name and task run history

Or, limit redered task name length and see full name when hover on task name

How to reproduce

No response

Anything else

sqaureX is independent of task name.

https://github.com/apache/airflow/blob/2.2.0/airflow/www/static/js/tree.js#L78

Calculating squareX with pre-rendered task name length by using below code looks good for me.

https://stackoverflow.com/a/35373030

var BrowserText = (function () {
var canvas = document.createElement('canvas'),
context = canvas.getContext('2d');

/**
* Measures the rendered width of arbitrary text given the font size and font face
* @param {string} text The text to measure
* @param {number} fontSize The font size in pixels
* @param {string} fontFace The font face ("Arial", "Helvetica", etc.)
* @returns {number} The width of the text
**/
function getWidth(text, fontSize, fontFace) {
context.font = fontSize + 'px ' + fontFace;
return context.measureText(text).width;
}

return {
getWidth: getWidth
};
})();

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Apache Airflow version: 2.1.2

OS: Ubuntu 18.04.5

Apache Airflow Provider versions:

apache-airflow-providers-amazon==2.1.0

apache-airflow-providers-celery==2.0.0

apache-airflow-providers-ftp==2.0.0

apache-airflow-providers-imap==2.0.0

apache-airflow-providers-jdbc==2.0.0

apache-airflow-providers-postgres==2.0.0

apache-airflow-providers-sqlite==2.0.0

Deployment: Helm + K8s

What happened: In tree view, when the names of the tasks are long, they get behind the tree.

What you expected to happen: Tree moves to the right not blocking the names of the tasks.

How to reproduce it: Just create a Dag with task names that are long enough.

Also depends on the dependencies, but around 60 chars do it.

Anything else we need to know: It's not a blocker, but it was easier to follow the execution of some of our bigger DAGs in v2.1.0, it becomes a problem when sharing screen on videocalls or explaining something on screen. Adding a picture of how it looks like.

Are you willing to submit a PR?: I'm not an expert in front end, so I'll pass this time.
Issue 1:
From @westfood on 2016-06-05T18:53:40Z

ISSUE TYPE

Bug Report

COMPONENT NAME

django_manage

ANSIBLE VERSION

ansible 2.0.0.2

OS / ENVIRONMENT

OSX El Captain / 10.11.5, managing CentOS 7.1

SUMMARY

Issuing command createsuperuser ends up in error after second invocation.

STEPS TO REPRODUCE

Using this task, hard coding username/mail does not yeald in better effect

- name: Django add superusers
django_manage:
app_path: "{{ seeder_home }}/Seeder"
virtualenv: "{{ seeder_virtualenv }}"
command: "createsuperuser --noinput --username={{ item.name }} --email={{ item.mail }}" # Not idempotent, probably bug in django_manage module
with_items: "{{ seeder_admins }}"
tags: django
ignore_errors: yes

EXPECTED RESULTS

It should not try to create user again

ACTUAL RESULTS

stderr: Traceback (most recent call last):\n File \"/opt/virtualenv/seeder/lib/python3.4/site-packages/django/db/backends/utils.py\", line 64, in execute\n return self.cursor.execute(sql, params)\npsycopg2.IntegrityError: duplicate key value violates unique constraint \"auth_user_username_key\"\nDETAIL:
Key (username)=(rudolf) already exists.

Copied from original issue: ansible/ansible-modules-core#3871

Issue 2:
Issue Type: Bug introduced by commit 8d53ef2

Ansible Version: stable-1.9 branch is affected, version 1.8.4 works ok

Environment: Ubuntu-14.04 LTS with php5-fpm 5.5.9+dfsg-1ubuntu4.7 and upstart 1.12.1

Steps To Reproduce:

Install Ubuntu-14.04 LTS with the php5-fpm package

Get ansible to do a restart of the php5-fpm service

MODULE_ARGS = 'name=php5-fpm state=restarted'

Expected Results:

Ansible should be able to restart the service (assuming the config is ok) using upstart

Actual Results:

Ansible uses /etc/init.d/php5-fpm to perform the restart and it fails

Comments:

We are using ansible from a git clone, not from the apt package. I found this problem was introduced by commit 8d53ef2 in service.py. Reverting this small changed makes it work for me. I tested by making the change in the temporary file on the target server in ~/.ansible/tmp/
Issue 1:
Problem

After upgrading the DependencyInjection component from 2.0.14 to 2.0.15 the file services-1.0.xsd is missing. That generates a xml error:

[WARNING 1549] failed to load external entity "file:////usr/local/zend/share/pear/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd" (in n/a - line 0, column 0)
[WARNING 3084] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at location 'file:////usr/local/zend/share/pear/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd'. Skipping the import. (in in_memory_buffer - line 8, column 0)
[ERROR 1845] Element '{http://symfony.com/schema/dic/services}container': No matching global declaration available for the validation root. (in /home/luis/Zend/workspaces/luis/pleno-integra/config/dic.xml - line 4, column 0)

Possible cause

Looking at the package.xml of both versions, I saw that the role of that file was changed from php to doc:

2.0.14

<file md5sum="856f676b9025b64587bf4b38286d85af" name="Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd" role="php"/>

2.0.15

<file md5sum="856f676b9025b64587bf4b38286d85af" name="Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd" role="doc"/>

Issue 2:
*.xsd files in the v2.0.15 package.xml files for the DependencyInjection, Routing, Translation, and Validator components are defined as role="doc" (instead of role="php" like v2.0.14-), but the code expects these files to be in the install directory instead of the doc directory [1][2][3][4][5]. Please update the package.xml for these components to use role="php" for *.xsd files.

*.res files in the v2.0.15 package.xml file for the Locale component are defined as role="doc" (instead of role="php" like v2.0.14-), but the code expects these files to be in the install directory instead of the doc directory [6][7][8]. Please update the package.xml for this component to use role="php" for *.res files.

[1] https://github.com/symfony/symfony/blob/v2.0.15/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php#L310

[2] https://github.com/symfony/symfony/blob/v2.0.15/src/Symfony/Component/Routing/Loader/XmlFileLoader.php#L175

[3] https://github.com/symfony/symfony/blob/v2.0.15/src/Symfony/Component/Translation/Loader/XliffFileLoader.php#L64

[4] https://github.com/symfony/symfony/blob/v2.0.15/src/Symfony/Component/Translation/Loader/XliffFileLoader.php#L76

[5] https://github.com/symfony/symfony/blob/v2.0.15/src/Symfony/Component/Validator/Mapping/Loader/XmlFileLoader.php#L182

[6] https://github.com/symfony/symfony/blob/v2.0.15/src/Symfony/Component/Locale/Locale.php#L46

[7] https://github.com/symfony/symfony/blob/v2.0.15/src/Symfony/Component/Locale/Locale.php#L101

[8] https://github.com/symfony/symfony/blob/v2.0.15/src/Symfony/Component/Locale/Locale.php#L152
Issue 1:
http://stackoverflow.com/questions/14511752/pandas-3x3-scatter-matrix-missing-labels

Issue 2:
I create a pandas scatter-matrix usng the following code:

import numpy as np
import pandas as pd

a = np.random.normal(1, 3, 100)
b = np.random.normal(3, 1, 100)
c = np.random.normal(2, 2, 100)

df = pd.DataFrame({'A':a,'B':b,'C':c})
pd.scatter_matrix(df, diagonal='kde')

This result in the following scatter-matrix:

The first row has no ytick labels, the 3th column no xtick labels, the 3th item 'C' is not labeled.

Any idea how to complete this plot with the missing labels ?
Issue 1:
Background

Every week axios receives lots of new issues, and most of them are problems about how to get the expected response. Some of them are simple or duplicated, some are similar but with tricky differences, and some are complex without enough and clear information.

Possible actions

maintain a F.A.Q page or tutorial

something like #1195 (comment), to help users try to solve the issue by themselves first

or better website page with interactions or something I don't know

update issue templates to collect enough information and reject offenders

if users thought they really need to open an issue, make sure others can help them easier

if an issue didn't follow the template, or without potential suggestions for axios, it will be closed directly

It may be a little rude for users seeking for help. But please understand the differences between Github issues and stackoverflow questions. Issue readers are same developers like you. The best debugger is yourself, because only you know everything about the problem. You may not familiar with axios codes, but it is simple to read and easy to get familiar with.

About pulls

By the way, call help for more reviewers to handle the accumulated pull requests. Anyone in the community can leave comments for them. The main strategy is conservative and do not introduce bugs and too much breaking changes.

Everything above is my personal thoughts, which doesn't stand for axios official decisions. Forgive my non-native English, and I just wish this project can be better with the community's help.

Issue 2:
Describe the issue

I am trying to access a route in the API that checks whether an access token is valid or not. If it is not valid, jwt returns jwt expired error.

In my axios response interceptor I verify I get that error. However, I would like to make an automatic request to the server to get a new access token if I get this error.

Can this be done in axios?

axios interceptor

Example Code

service.interceptors.response.use(
response => {

return response.data
},
error => {
console.log('error', error)
if (error.response.data.error === 'TokenExpiredError') {
// make new request here to refresh token
}
return Promise.reject({ ...error })
},
)

Expected behavior, if applicable

A new request is made to the API instead of returning an error

Environment

Axios Version ^0.19.2]

Adapter [HTTP]

Browser [Chrome]

Browser Version [84.0.4147.105 (Official Build) (64-bit)]

Node.js Version [13.0.1]

OS: [Ubuntu 18.04]

Additional Library Versions [React ^16.13.1]

Additional context/Screenshots

Add any other context about the problem here. If applicable, add screenshots to help explain.