WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Bug report

The PDF logo doesn't look quite right, viewed in Adobe Acrobat, Preview, and Google Chrome (on macOS). If you look closely at the center, there are some extra features there that don't show up in, for instance, the svg.

https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/mpl-data/images/matplotlib.pdf

Maybe somebody should track down why the render of the PDF glitched? At least replace it with one that isn't glitchy?

Issue 2:
matplotlib.pyplot.spy does not work correctly for sparse matrices with a large number of entries (>= 2**32). I would guess it has something to do with the value range of int32.

An example that reproduces the bug is:

import numpy as np
import scipy.sparse
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
n = 16
s = 2**n
A = scipy.sparse.coo_matrix(np.ones((s,s), dtype=np.int8))
plt.spy(A)
file = '/tmp/spy_{}.png'.format(n)
plt.savefig(file)

For n = 16, spy shows only some entries.

For n = 15 it works correctly.

I have used Matplotlib 1.5.1 installed over pip with Python 3.5.1 on Linux.
Issue 1:
Using babel 6.1.2, the following js:

export default {}

is transpiled to:

"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {};

using the following command line

babel --presets es2015 --plugins transform-es2015-modules-commonjs test.js

However the output with the 5.x was:

"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = {};
module.exports = exports["default"];

looks like module.exports = exports["default"]; is missing although the transform-es2015-modules-commonjs is enabled.

Is it a bug or I'm missing something ?

Thank you !

Issue 2:
Let's say we have the following very simple code:

const a = 3;
export default a;

Pre babel 6, it would compile into this:

"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
var a = 3;
exports["default"] = a;
module.exports = exports["default"];

Note the last line.

Now in Babel 6, the default export isn't assigned properly. This may be related to: #2694

"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
var a = 3;
exports.default = a;
Issue 1:
For example, I have a playbook named remotesetup.yml and I run it from the command line like that:

ansible-playbook remotesetupp.yml -K

It will ask for the sudo password even if the file doesn't exist (I made a typo, two p at the end).

In the same way, if there's a yaml syntax error in the playbook it will still ask me for the sudo pass even though it can't run the playbook.

Thus, the parsing of the playbook should be done prior to asking for sudo or ssh pass.

Issue 2:
Let met present you the following example :

sandboxy.yml playbook

hosts: backup

sudo: True

sudo_user: david

gather_facts: False

hosts: main

sudo: True

sudo_user: foofoo

gather_facts: False

When I run ansible-playbook sandbox.yml -K

It correctly asks me for the first sudo password but then when it reaches the second playbook with the host main it hangs because it tries to apply the first specified sudo password to foofoo@main.

Thanks.
Issue 1:
Kerboriou christophe opened SPR-4534 and commented

the AxisBeanMappingServicePostProcessor don't support the array type. because it use only the BeanSerializatorFactory and BeanDeserializatorFactory.

Or for using array with axis, the good serializator is ArraySerializatorFactory and for deserializator is ArrayDeserializator.

please, add an arrayMapping like beanMapping.

Affects: 2.0 M1, 2.0 M2, 2.0 M3, 2.0 M4, 2.0 M5, 2.0 RC1, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 final, 2.0.1, 2.0.2, 1.2.9, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.1 M1, 2.1 M2, 2.1 M3, 2.1 M4, 2.5 RC1, 2.5 RC2, 2.5 final, 2.5.1, 2.5.2

Issue Links:

#9210 add Array support to AxisBeanMappingServicePostProcessor ("duplicates")

Issue 2:
Kerboriou christophe opened SPR-4534 and commented

the AxisBeanMappingServicePostProcessor don't support the array type. because it use only the BeanSerializatorFactory and BeanDeserializatorFactory.

Or for using array with axis, the good serializator is ArraySerializatorFactory and for deserializator is ArrayDeserializator.

please, add an arrayMapping like beanMapping.

Affects: 2.0 M1, 2.0 M2, 2.0 M3, 2.0 M4, 2.0 M5, 2.0 RC1, 2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 final, 2.0.1, 2.0.2, 1.2.9, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.1 M1, 2.1 M2, 2.1 M3, 2.1 M4, 2.5 RC1, 2.5 RC2, 2.5 final, 2.5.1, 2.5.2

Issue Links:

#9210 add Array support to AxisBeanMappingServicePostProcessor ("duplicates")
Issue 1:
I think this 1rem=10px is the defacto standard in the industry by now? You operate with a different scale, 1 rem = 16px?

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

Expected Behavior

1 rem = 10 px when scaling the page

Current Behavior

1 rem =16px

This is the standard in browsers, but not defacto standard: https://www.sitepoint.com/understanding-and-using-rem-units-in-css/

Issue 2:
Summary

I would love to see cursor: 'not-allowed' for disabled button. http://www.material-ui.com/#/components/raised-button . It's not possible to make it work nicely with conditional inline react styles "style={cursor: 'disabled'}". I think it should be default behavior for disabled buttons

[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

For element

I would expect to see cursor "not-allowed" to be set.

Passing style={cursor: 'not-allowed'} does give not-allowed cursor BUT only on text hover (not the button itself)

Current Behavior

the normal cursor is displayed when hovering

Context

Your Environment

Tech
Version

Material-UI
0.18.0

React
15.5.4

browser
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

etc
redux-form-material-ui is included in "4.2.0" version
Issue 1:
When I am writing a declaration file, I found it really frustrating repeating the inherited method that returns the instance itself for a correct return type.

E.g. for animation library GSAP, many classes are inherited from class Animation, I have to repeat almost every method to update return type Animation to the current class.

class Animation {
chain(): Animation;
}

class TweenLite extends Animation {
ownProperty: any;
chain(): TweenLite;
}

It would be great if we may use some type like self to make this easier, like this:

class Animation {
chain(): self;
}

class TweenLite extends Animation {
ownProperty: any;
}

Issue 2:
The early discussions about generics had this feature outlined, but it never made it into the final version for some reason. Meanwhile, it would be extremely helpful in some cases. The use case that it most dear to my heart is Knockout:

interface Observable<T> {
<U>( this: U, value: T ): U;
}

var viewModel = {
Str: ko.observable( "abc" ),
Num: ko.observable( 5 )
};

viewModel.Str( "xyz" ).Num( 10 );
Issue 1:
Ported from internal gates failures:

The following five tests are failing on Core editions:

DimensionsTests::TestSetConsoleScreenBufferSize#metadataSet2
DimensionsTests::TestSetConsoleScreenBufferSize#metadataSet1
DimensionsTests::TestSetConsoleScreenBufferSize#metadataSet0

DimensionsTests::TestSetConsoleWindowInfo#metadataSet0
DimensionsTests::TestSetConsoleWindowInfo#metadataSet1

I've investigated the issue and root caused it to PR 3129098 (prior to GitHub).

The problem is that on Core editions, the proposed font preferences and committed font choice stored in SCREEN_INFORMATION do not get synchronized with the actual font usage inside the rendering engine.

The reason this was working previously is because SCREEN_INFORMATION::GetScreenFontSize() was querying the render engine directly for the current font size.

@zadjii-msft realized that this seemed a bit silly given that SCREEN_INFORMATION already had a _currentFont which is supposed to hold the font selected for that screen post synchronization with the renderer. He therefore removed the supposedly duplicate lookup and I signed off on it thinking that it was a sensible thing to do. Turns out, it's only true on Desktop editions.

The solutions here would be:

Return GetScreenFontSize() to look up the font sizing information from the renderer directly

Figure out why the synchronization isn't happening between SCREEN_INFORMATION and the active rendering engine for Core editions and make it happen again

And maybe also make it harder for this to be a problem in the future by adjusting the set-up phase to fail with an error if synchronization doesn't happen prior to the first paint calls.

I prefer option 2, of course. The de-duplication was righteous; it just had a pitfall.

Issue 2:
Two things I suggest to create in the feature of Windows Terminal V0.4:

1. Ctrl + Backspace: you know when you write the cmd's you can delete the cmd's (Word by Word), but your terminal can't do that, your terminal delete (Char by Char).

2. Ctrl + Space (Windows Powershell): if you write cmd's in the original windows powershell host, you also can show all snippets by hitting the ctrl + space. ex: get-pr[ctrl + space]

https://pbs.twimg.com/media/EBDf-dsWkAAq7Lm?format=png&name=large
Issue 1:
When using the Symfony Form Type "time", e.g.

$builder->->add('fromTime', 'time', [ 'widget' => 'choice', 'attr' => ['class' => 'form-control'], 'model_timezone' => "UTC", 'view_timezone' => "Europe/Berlin" ])

The "reverseTransform" in "DateTimeToArrayTransformer" converts the form input back to the model_timezone. Since there is only an "hour" and "minutes" input, the method uses the year 1970 as a helper to create the date object.

$dateTime = new \DateTime(sprintf( '%s-%s-%s %s:%s:%s %s', empty($value['year']) ? '1970' : $value['year'], empty($value['month']) ? '1' : $value['month'], empty($value['day']) ? '1' : $value['day'], empty($value['hour']) ? '0' : $value['hour'], empty($value['minute']) ? '0' : $value['minute'], empty($value['second']) ? '0' : $value['second'], $this->outputTimezone ))

And afterwards is converted to the inputTimezone (model_timezone). Unfortunately, it produces unexpected results:

E.g. "1970-01-01 12:45:00" is converting to "1970-01-01 11:45:00", which is wrong (and somehow right at the same time). And here is the reason - in 1970, there was no daylight saving time in this timezone, so there is only a +1 difference between "UTC" and "Europe/Berlin". Now, there should be a +2 hours difference.

This generally applies to dates out of the daylight saving times.

Proposed fix: Instead of 1970-01-01, the current year / month / day should be used in the transformer, if no input date was specified. But I must confess, that both versions lead to unexpected behavior which is not ideal.

Issue 2:
As discussed in #7187, these options don't make sense for these types.
Issue 1:
Bug report

Bug summary

Bar chart with Axes3d does not correctly set the log z scale. There is a note in the doc: here saying this was added in 1.1.0. (And also asks to report bugs :-) )

Code for reproduction

from mpl_toolkits.mplot3d import Axes3D # noqa: F401 unused import
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np

fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')

# dumb dump of data
dx, dy = 0.5, 0.5
xpos = [0.25, 0.25, 0.25, 0.25,
1.25, 1.25, 1.25, 1.25,
2.25, 2.25, 2.25, 2.25]
ypos = [0.25, 1.25, 2.25, 3.25,
0.25, 1.25, 2.25, 3.25,
0.25, 1.25, 2.25, 3.25]
dz = [1., 0.517e6, 4.7e6, 2.2e6,
1., 105e6, 96e6, 1.28e9,
1., 1.776e9 , 4.18e9 ,173.1e9]

ax.set_zlabel("mass [eV]")
ax.set_ylabel("type")
ax.set_xlabel("generation")
ax.set_xticklabels(["", "1", "", "2", "", "3"])
ax.set_yticklabels(["", r"$\nu$", "", r"$\ell$", "", "d", "", "u"])
ax.set_zscale('log')
ax.bar3d(xpos, ypos, 0, dx, dy, dz)

plt.tight_layout()
plt.savefig('Desktop/brokenlog.png')
plt.show()

Actual outcome

Expected outcome

Log scale on z axis w/ ticks at orders of magnitude.

Matplotlib version

Operating system: ubuntu 18.04 LTS

Matplotlib version: 3.1.1

Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline

Python version: 3.6.8

Jupyter version (if applicable): 4.4.0

matplotlib installed/updated via pip3.

Issue 2:
Original report at SourceForge, opened Fri Jun 10 12:29:24 2011

If you enable a log scale when doing a 3D scatter plot, nothing is created and the program crashes. Attached is the error output.

You can easily reproduce this by taking the example scatter3d_demo.py and adding the line "ax.set_xscale('log')".

SourceForge History

On Fri Jun 10 12:29:40 2011, by qulogic: File Added: 414517: mpl-3d-log-error.txt
Issue 1:
go version:
go version devel +4971493b0e14 Tue Oct 01 23:44:20 2013 -0400 darwin/amd64

the code:
https://gist.github.com/mitchellh/3883097d9d57fccbfb88

(the code actually works fine on play.golang.org, I'm not sure what changed in Go 1.2
but on 1.2 this panics)

The panic looks like this. If you look, the line number of `net.(*TCPConn).Close` is on
line 1 in dial.go. Is this working as intended? It made debugging this trickier.

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x35077]

goroutine 1 [running]:
runtime.panic(0x74e40, 0x114e19)
/Users/mitchellh/go/src/pkg/runtime/panic.c:266 +0xb6
net.(*TCPConn).Close(0x0, 0x7b6a0, 0x117228)
/Users/mitchellh/go/src/pkg/net/dial.go:1 +0x17
main.main()
/tmp/test/test.go:10 +0x41
exit status 2

Issue 2:
Let foo.go be:

package main

// Foo does nothing.
func Foo() {}

Running gorename -offset foo.go:#40 -to Bar does update the function definition, but not the comment, as such:

package main

// Foo does nothing.
func Bar() {}

This would be the desired output:

package main

// Bar does nothing.
func Bar() {}
Issue 1:
Dave Syer opened SPR-6366 and commented

Cannot import bean definitions using classpath*: resource location. Somewhere between RC1 and RC2 the behaviour of <import resource="classpath*:..."/> changed so that it is now treated as a relative resource, where clearly it is not.

Affects: 3.0 RC2

Issue Links:

#10432 XML bean definition "import" directive doesn't work with custom resource loader ("duplicates")

#11046 Import of XML resources with 'classpath*:' URLs doesn't work ("is duplicated by")

#11077 Regression: Cannot import XML bean documents using classpath*: pseudo URLs ("is duplicated by")

#11017 classpath*: is no longer finding resources with ("is duplicated by")

#11076 Behavior of Bean loading changed in RC2 (Incompatible to Apache CXF)

Referenced from: commits 7ac0e2b, 66939de

Issue 2:
Stepan Koltsov opened SPR-8257 and commented

@Configuration
public class TmpConfig {

@PostConstruct
public void init() {
System.out.println("TmpConfig.init");
}

@Bean
public PropertyPlaceholderConfigurer propertyPlaceholderConfigurer() {
return new PropertyPlaceholderConfigurer();
}

}

new AnnotationConfigApplicationContext(TmpConfig.class);

nothing is printed. However, if propertyPlaceholderConfigurer bean removed:

@Configuration
public class TmpConfig {

@PostConstruct
public void init() {
System.out.println("TmpConfig.init");
}

}

new AnnotationConfigApplicationContext(TmpConfig.class);

"TmpConfig.init" is printed as expected.

Affects: 3.1 M1

Issue Links:

#12917 BeanFactoryPostProcessor breaks default post-processing of @Configuration classes ("duplicates")
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Dialog With Date Picker Example: if Date Picker is opened and on Esc clicked should close the Date Picker, not the Dialog.

Current Behavior

If Date Picker is opened and Esc button is clicked Date Picker and Dialog, both of them getting closed.

Steps to Reproduce (for bugs)

visit http://www.material-ui.com/#/components/dialog

go to section: Nested dialogs and click on button DIALOG WITH DATE PICKER

Open a Date Picker dialog by clicking on date picker input.

click Esc button.

Context

The user was trying to select the country in the form which is in Dialog, as the usual behavior of Exc button even if you are using any other form if Esc is clicked on the drop-down, date picker, it should lose focus.

Your Environment

Tech
Version

Material-UI
0.19.1

React
16.0.0

browser
chrome

etc

Issue 2:
TextField with type="datetime-local" doesn't fit in TableCell, if Table has a fixed layout. So, it isn't possible to open the date editor.

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

Expected Behavior

It should be possible to open a date editor.

Current Behavior

This sample shows the issue in action.

The first textfield looks quite good. I fixed it by using styles as follows:

<TextField
style={{
display: 'block'
}}
InputProps={{
style: {
display: 'block'
}
}}
// ...
/>

Your Environment

Tech
Version

Material-UI
1.0.0-beta.30

React
16.1.1

browser
Google Chrome v63
Issue 1:
The following code fails to compile due to the two adjacent <.

trait Test {
type X;

fn foo() -> Option<<Self as Test>::X>;
}

testcase.rs:4:23: 4:25 error: expected `;` or `{`, found `<<`
testcase.rs:4 fn foo() -> Option<<Self as Test>::X>;
^~

Issue 2:
STR

#![feature(associated_types)]

trait Trait {
type Type;

// OK
fn method() -> <Self as Trait>::Type;
// Can't parse
fn method() -> Box<<Self as Trait>::Type>;
}

fn main() {}

Output

ai.rs:9:23: 9:25 error: expected `;` or `{`, found `<<`
ai.rs:9 fn method() -> Box<<Self as Trait>::Type>;

Version

rustc 0.12.0-pre (9508faa22 2014-09-17 23:45:36 +0000)

cc @pcwalton
Issue 1:
Migrated issue, originally created by Michael Bayer (@zzzeek)

that is, all the functions in http://www.postgresql.org/docs/9.4/static/functions-json.html need to be possible without building subclasses of functions.

Issue 2:
Migrated issue, originally created by Frazer McLean (@RazerM)

As mentioned in #3746, Windows wheels on PyPI would be useful.

I quickly set up wheel building on AppVeyor as a proof of concept. It's using my GitHub repository but it supports Bitbucket too.

https://ci.appveyor.com/project/RazerM/sqlalchemy/build/1.0.3

I'd be willing to put the wheels on PyPI for new releases, but it's worth discussing user expectations. Once wheels are available, users expect them to be available. As such, it's good to have wheels on PyPI as soon as a new release goes live, and we'd have a delay if someone else is uploading.

AppVeyor has a REST API, so I could create a script that downloads the build artifacts (i.e. the wheels) so that whomever does the release can also upload the wheels at the same time.
Issue 1:
Dave Syer opened SPR-8252 and commented

Allow ref= as well as <bean/> for mvc:interceptor/. It's a nice feature (to get all handlers injected with the same interceptors), but it makes the interceptors hard to override.

Affects: 3.0.5

2 votes, 2 watchers

Issue 2:
Marten Deinum opened SPR-6996 and commented

Currently it is quite hard to reuse beans with the mvc:interceptors namespace. Interceptors must be specified as inner beans to mvc:interceptors or mvc:interceptor, it would be nice if mvc:interceptor would have a ref element to reference a HandlerInterceptor instead of defining it with an inner bean definition.

This would also allow for re-use of HandlerInterceptors.

Affects: 3.0.1

Reference URL: http://forum.springsource.org/showthread.php?p=289456

Referenced from: commits 1784df8

15 votes, 10 watchers
Issue 1:
Sorry I can't give more context as to how/when this happened, just got picked up by our crash tracker

Caused by: java.lang.NullPointerException

at com.bumptech.glide.manager.RequestTracker.clearRequests(RequestTracker.java:80)

at com.bumptech.glide.RequestManager.onDestroy(RequestManager.java:190)

at com.bumptech.glide.manager.ActivityFragmentLifecycle.onDestroy(ActivityFragmentLifecycle.java:62)

at com.bumptech.glide.manager.RequestManagerFragment.onDestroy(RequestManagerFragment.java:69)

at android.app.Fragment.performDestroy(Fragment.java:1913)

Issue 2:
Hi !

use v3.5

e.manager.RequestTracker.pauseRequests (SourceFile:57)

com.bumptech.glide.RequestManager.pauseRequests (SourceFile:151)

com.bumptech.glide.RequestManager.onStop (SourceFile:181)

com.bumptech.glide.manager.ActivityFragmentLifecycle.onStop (SourceFile:55)

com.bumptech.glide.manager.SupportRequestManagerFragment.onStop (SourceFile:60)
Issue 1:
Hello to all,

on my Windows 10, I installed tensorflow 1.5 and it works, but if I try to upgrade to tensorflow 1.7 it don't works, appeare the error:

ImportError: DLL load failed

ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'

Microsoft C++ Runtime is updated

If I downgrade to the version 1.5 it works again

How can I solve it ?

Thanks

Sergio

Issue 2:
As announced in release notes, TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. This means on any CPU that do not have these instruction sets either CPU or GPU version of TF will fail to load with any of the following errors:

ImportError: DLL load failed:

A crash with return code 132

Our recommendation is to build TF from sources on these systems.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu/windows/macos

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): 1.6 and up

Python version: 2.7, 3.3, 3.4, 3.5, 3.6 and any newer

Bazel version (if compiling from source): n/a

GCC/Compiler version (if compiling from source): n/a

CUDA/cuDNN version: any

GPU model and memory: any

Exact command to reproduce: python -c "import tensorflow as tf"
Issue 1:
Example: http://getbootstrap.com/javascript/#modals

Click "launch demo modal"

Close window by clicking X

Click "launch demo modal" again

Close window by clicking at black page area

Click "launch demo modal" again

Close window by clicking X and see bug

Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0

Issue 2:
Hi,

The code used on last Thursday worked fine. But after updated to latest code on Monday (GMT+8), the modal dialog when clicks to dismiss for seconds onward cannot be close.

I am checking on source code line 932, if I commented out this line then it is working again.

this.$element

.removeClass('in')

.attr('aria-hidden', true)

//.off('click.dismiss.modal')

Am I missing anything...?

Sorry for the grammar. Thanks.
Issue 1:
VSCode Version: 1.1.1

OS Version: Windows 10

Steps to Reproduce:

Open the attached file markdown.txt in VSCode.

Enable word wrap to be able to view the entire paragraph.

Rename the file to have the '.md' extension identifying it as Markdown

Observe syntax coloring of the markdown text. The entire sentence starting with the phrase "One set of encoded values" is inappropriately colored blue because the syntax highlighting code in VSCode is confused by the example.

Note: results from processing this markdown using grunt-markdown results in HTML producing the desired effect, the flaw seems to be in the markdown highlighting logic.

Issue 2:
VSCode Version: 1.1.1

OS Version: Linux Mint LMDE 2

Steps to Reproduce:

Create new markdown file. Type in:

The TeX command `\TeX` is fun! So is `\LaTeX`!

Problem:

In markdown ``` doesn't appear to be registered as an opening code literal for syntax highlighting.

Code will highlight this as shown:

I was looking into possibly fixing this, but I found this statement

some of VS Code's built-in colorizers (e.g. Markdown) are integrated differently and cannot be overridden.

here https://code.visualstudio.com/Docs/customization/colorizer. So I didn't know where to look really.
Issue 1:
Hi,

When the anchor which open the popover is on two lines (first word at the end of the first line and second word at the beginning of the second line) the popover is centered at the middle of the page.

How can I fix it to display it hover the first or second word ?

Issue 2:
Hey, I was checking out your examples and saw the following picture:

http://pic.twitter.com/dvLhWTre

When hovering over the "really ironic" link which has a tool tip. Looks like it's location is being calculated wrongly due to text wrapping.