WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Using the following file in the current directory:

### MATPLOTLIBRC FORMAT

# See https://matplotlib.org/users/customizing.html

#### CONFIGURATION BEGINS HERE

# Custom math font settings (always use LaTeX "Computer Modern")
mathtext.fontset : cm
mathtext.rm : serif

results in

>>> import matplotlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../python3.7/site-packages/matplotlib/__init__.py", line 1111, in <module>
rcParamsOrig = RcParams(rcParams.copy())
File ".../python3.7/site-packages/matplotlib/__init__.py", line 891, in __getitem__
from matplotlib import pyplot as plt
File ".../python3.7/site-packages/matplotlib/pyplot.py", line 32, in <module>
import matplotlib.colorbar
File ".../python3.7/site-packages/matplotlib/colorbar.py", line 40, in <module>
import matplotlib._constrained_layout as constrained_layout
File ".../python3.7/site-packages/matplotlib/_constrained_layout.py", line 52, in <module>
from matplotlib.legend import Legend
File ".../python3.7/site-packages/matplotlib/legend.py", line 43, in <module>
from matplotlib.offsetbox import HPacker, VPacker, TextArea, DrawingArea
File ".../python3.7/site-packages/matplotlib/offsetbox.py", line 33, in <module>
from matplotlib.image import BboxImage
File ".../python3.7/site-packages/matplotlib/image.py", line 19, in <module>
from matplotlib.backend_bases import FigureCanvasBase
File ".../python3.7/site-packages/matplotlib/backend_bases.py", line 46, in <module>
from matplotlib import (
ImportError: cannot import name 'get_backend' from 'matplotlib' (.../python3.7/site-packages/matplotlib/__init__.py)

Issue 2:
Bug report

Bug summary

Importing matplotlib fails with ImportError: cannot import name 'get_backend' from 'matplotlib'.

Code for reproduction

import matplotlib

Actual outcome

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.7/site-packages/matplotlib/__init__.py", line 1080, in <module>
rcParamsOrig = RcParams(rcParams.copy())
File "/usr/lib/python3.7/site-packages/matplotlib/__init__.py", line 870, in __getitem__
from matplotlib import pyplot as plt
File "/usr/lib/python3.7/site-packages/matplotlib/pyplot.py", line 33, in <module>
import matplotlib.image
File "/usr/lib/python3.7/site-packages/matplotlib/image.py", line 18, in <module>
from matplotlib.backend_bases import FigureCanvasBase
File "/usr/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 46, in <module>
from matplotlib import (
ImportError: cannot import name 'get_backend' from 'matplotlib' (/usr/lib/python3.7/site-packages/matplotlib/__init__.py)

Expected outcome

Matplotlib is imported

Matplotlib version

Operating system: GNU/Linux

Matplotlib version: 3.0 git master

Python version: 3.7.1

Python from Arch repo, matplotlib from git master.
Issue 1:
I just did a yarn upgrade in order to get access to the Select component. Material UI updated, but it appears there's a bug in the release version; I keep getting a build error:

ERROR in ./node_modules/material-ui/Chip/Chip.js
Module not found: Error: Can't resolve '../svg-icons/Cancel' in '<my-repo>\node_modules\material-ui\Chip'
@ ./node_modules/material-ui/Chip/Chip.js 58:14-44
@ ./node_modules/material-ui/Chip/index.js
@ ./node_modules/material-ui/index.es.js
@ ./src/views/downloads/index.js
@ ./src/app/container/content.js
@ ./src/app/container/index.js
@ ./src/app/index.js
@ ./src/index.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/index.js

I've tried restarting the server to make sure it's not just a fluke, but I can't get rid of the issue.

Issue 2:
The latest release of Material-UI (v1.0.0-beta.9) doesn't render correctly.

Error in ./node_modules/material-ui/Chip/Chip.js

Module not found: Can't resolve '../svg-icons/Cancel'

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

Expected Behavior

The material-ui page should compile correctly.

Current Behavior

Compiling a component using Chip throws and error.

Error in ./node_modules/material-ui/Chip/Chip.js

Module not found: Can't resolve '../svg-icons/Cancel'

Steps to Reproduce (for bugs)

Add Chip component to page

Start app

Exception is thrown

Context

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.9

React
15.4.2

browser
Chrome
Issue 1:
It's not possible to find which version of TLS was used, or indeed any of the SSL parameters, after a transfer.

Could some of this metadata be made available, perhaps only if specified in the request.

Is there any indication that TLS was used at all ?

Issue 2:
When requests answer is from (atleast) ISO-8859-1, the module take so long for process the response.

Expected Result

Similar time than curl or browser time around 1 sec

Actual Result

The answer takes more than 2 minutes

Reproduction Steps

url = 'https://geoportal.minetur.gob.es/VCTEL/infoantenasGeoJSON.do?idCapa=null&bbox=-1.5525697885398,39.26519497205,-1.549179476345,39.273649294864&zoom=4'
r = requests.get(url, headers=headers)
print(r.json())

System Information

$ python -m requests.help

{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "2.10"
},
"implementation": {
"name": "CPython",
"version": "3.8.5"
},
"platform": {
"release": "5.4.64-1-MANJARO",
"system": "Linux"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.24.0"
},
"system_ssl": {
"version": "1010107f"
},
"urllib3": {
"version": "1.25.10"
},
"using_pyopenssl": false
}

Thoughts

This looks like a problem with encoding as requests needs to guess the encoding, maybe adding a parameter or a way for specify the answer encoding would speed it up
Issue 1:
Bug report

Describe the bug

I have a next.js app which uses exclusively static rendering. I recently upgraded it to 9.2.0 and released it to production. Everything worked.

After several more commits, we started to see our script just not start executing. That's how it looks. No console errors, no network errors, but none of the script seems to run. We have ajax loading spinners that are baked into the static html of the site by the build process, and that's all we see. The ajax loads never happen. Apparently we are getting no script running.

"yarn dev" / localhost:3000 works fine. It's only when building production.

So I have a specific commit based on 9.2.0 that works, and a subsequent one that does not. However, nothing about the commit where it broke has anything I would ever suspect to be related to this. And if I go to our latest commit and revert the one where the break starts, it is still broken.

It's as if it has more to do with the quantity of code than what the code is??

Taking all our changes but reverting to 9.1.7 resolves the issue. I tested 9.2.1 and it does NOT resolve the issue.

To Reproduce

My challenge is how to give you a reproducible test case. I can't share my code obviously and I don't know how to boil this down to something minimal quite yet.

Expected behavior

I'd like the benefits of 9.2.x and have my script keep working.

Screenshots

Not sure these would help

System information

OS: Win 10

Browser: Brave, Chrome, and IE11. We originally conflated this with an IE issue we were working on... we don't normally look at IE :)

Version of Next.js: 9.2.0

Additional context

Issue 2:
Bug report

Describe the bug

If a module used in a polyfill becomes a separate chunk, any page that doesn't import the same module will break in production, because the chunk is added to main.js webpack dependencies but isn't added as a script tag.

To Reproduce

I've created a repo which reproduces the bug: https://github.com/jmswrnr/next-9.2.0-chunk-bug

The bug only occurs in a production build, so: npm run build and npm run start

http://localhost:3000/ - Simple page - fails mount

http://localhost:3000/dynamic - Dynamic import with { ssr: false } - fails mount

http://localhost:3000/import - Import polyfill dependency - successfully mounts

Expected behavior

All pages should trigger useEffect and display Mounted: true

System information

OS: Windows

Browser: chrome

Version of Next.js: 9.2.0 and 9.2.1-canary.2

Additional context

Using polyfill method from example: https://github.com/zeit/next.js/blob/master/examples/with-polyfills/next.config.js
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.19008.1000]
Windows Terminal version : 0.6.2951
Lenovo Thinkpad P1 :
Intel Xeon E-2176M
Hybrid Graphics with Intel P630 and Nvidia Quadro P2000
64GB RAM
Any other software?

Steps to reproduce

Very easy to reproduce. Have the performance monitor open and bring terminal to foreground. The GPU usage spikes.

I noticed this issue because, mouse becomes laggy and UI is almost unusable.

I am pasting two screen shots when the terminal goes foreground and when the terminal goes background

High GPU usage when the terminal is foreground

Low GPU usage when the terminal goes background

Expected behavior

A relatively idle terminal should not be consuming 100% GPU and there by freezing the UI

Actual behavior

UI lockups due to 100% GPU

Issue 2:
Description of the new feature/enhancement

Possibility of being able to elevate to administrator privileges through a command in the terminal, as it works in the linux systems for example. It is counterproductive to have to open new instances to gain access to administrator privilege.
Issue 1:
I have the following file:

file.js

import $ from 'jquery';

I transform it as such:

babel --retainLines=true file.js

and the output is:

'use strict';

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

var _jquery = require('jquery');

var _jquery2 = _interopRequireDefault(_jquery);

Issue 2:
I'm using gulp-babel and it's showing me error

Unknown option: retainLines
Issue 1:
I can't input any character of Chinese language.

Issue 2:
Summary of the new feature/enhancement

You have to have good precision with your mouse to drag resize the window because the resize area is only a couple of pixels wide. This makes for a frustrating experience when you attempt to drag resize the window.

Proposed technical implementation details (optional)

Do what the current conshost window does. It provides somewhere between a 6-8 pixel width drag resize area.
Issue 1:
angular 2.0.0-beta.0

loader.html and loader.css are located in directory /admin-angular-two/components/loader/

This code doesn't work:

@component({

selector: 'loader',

templateUrl: '/admin-angular-two/components/loader/loader.html',

styleUrls: ['/admin-angular-two/components/loader/loader.css']

})

but this works:

@component({

selector: 'loader',

templateUrl: '/admin-angular-two/components/loader/loader.html',

styleUrls: ['../../../admin-angular-two/components/loader/loader.css']

})

base url is setted:

<script>document.write('');</script>

Issue 2:
styleUrls: ["dist/stylesheet/App.css"] // this works perfectly
styleUrls: ["/dist/stylesheet/App.css"] // this does not work

any idea?
Issue 1:
It would be great if we could export all settings, shortcuts, snippets, extensions in one step and import them in another machine.

Issue 2:
Implement indent rulers similar to what's used in other editors (see this screenshot).

This should be a setting that is on by default but that can be disabled in settings.json.

Perhaps we can call it "editor.indentGuides:" true

Vertical tab rulers should show for each tab level in (also include position 0 within nested section of code, such as classes, functions, Html tag nesting etc...)

Addresses issue #3803. Some users have trouble not knowing where the left edge of the code editor is. This is partly because the code editor and the glyph margin is not visually separated. This is particularly a problem for users who use small tab sizes (such as 2 spaces).
Issue 1:
Currently both deno itself and executable generated from deno compile are not static executable, but generating static executable will help a lot since some Linux distributes doesn't have glibc (like Alpine Linux, which is used widely in Docker).

Issue 2:
When trying to run deno on Centos 7, it fails:

[maxim@maxim deno] $ target/release/deno tests/worker.js
target/release/deno: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by target/release/deno)

Additional information:

First things first, Centos 7 is based on RHEL 7, as one may know. And, according to redhat.com:

In Red Hat Enterprise Linux 7, the glibc libraries (libc, libm, libpthread, NSS plug-ins, and others) are based on the glibc 2.17 release

Replacing system glibc is a very bad idea, basically because all binaries on the system are compatible with specific glibc version. So, that's not an option.

However, the RHEL 8 Beta is using glibc 2.28 (source), but Centos 8 will only be released when the stable version of RHEL 8 will be released (source), so updating Centos is not an option right now.

I have also tried installing glibc in a nonstandard location as described here. Unfortunately, when I try to run deno with that custom glibc, I'm getting:

[maxim@maxim deno]$ LD_LIBRARY_PATH=/opt/glibc-2.18/lib target/release/deno tests/worker.js
Segmentation fault (core dumped)

I've tried to debug it with lldb, gdb, abrt, but neither option worked for me. Probably, because I'm doing something wrong.

lldb:

[maxim@maxim deno]$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib lldb -- target/debug/deno tests/worker.js
lldb: relocation error: /opt/glibc-2.18/lib/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference

gdb:

[maxim@maxim deno]$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib gdb target/release/deno tests/worker.js
gdb: relocation error: /opt/glibc-2.18/lib/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference

And abrt won't detect any crashes, even though I've set OpenGPGCheck = no and ProcessUnpackaged = yes in /etc/abrt/abrt-action-save-package-data.conf, restarted abrtd and abrt-ccpp, and finally tried rebooting, nothing helped.

I hope, that I'm doing something wrong, because right now I think using custom glibc is the only option, if I don't want to containerize deno.

Also, as far as I understand, GLIBC_2.18 isn't a direct requirement of deno, but rather a requirement of some third-party.

I've found Chromium bug glibc dependency creeped up to 2.18 in M61, breaking EL7 support which seems relevant, but it was fixed a while ago.

I'm not really good in C or library symbols to find which dependency requires 2.18, so any help here would be really appreciated.

I hope that @ry also would agree that we should support Centos, and probably when this issue got fixed, we can run travis not only for Ubuntu 14.04 LTS (trusty) but also for Centos. Many thanks for your attention!
Issue 1:
Code Sample, a copy-pastable example if possible

# Your code here
import pandas as pd
df = pd.read_excel('Financial Sample.xlsx')
print df

Problem description

My excel sheet has a column in which people can enter number of words but when i am reading it through pandas it is only taking up to 45 characters and the rest of it is printed as ". . ."

[this should explain why the current behaviour is a problem and why the expected output is a better solution.]

Note: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!

Note: Many problems can be resolved by simply upgrading pandas to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if master addresses this issue, but that is not necessary.

For documentation-related issues, you can check the latest versions of the docs on master here:

https://pandas-docs.github.io/pandas-docs-travis/

If the issue has not been resolved there, go ahead and file it in the issue tracker.

Expected Output

The pandas ecel reader should read the whole cell in the excel file

Output of pd.show_versions()

the output is like follows:

[paste the output of pd.show_versions() here below this line]

3 https://www.crowdfundinsider.com/2017/12/12589...

where the dot's represent more data but it is not getting printed.

Issue 2:
This can be shunted into the tslibs todo list after it has been seen.

tslibs.conversion.tz_localize_to_utc has a comment # Vectorized version of DstTzInfo.localize. Two of the places where tz_localize_to_utc are called are for a singleton np.array([self.value], dtype='i8'). If there is a scalar version available, we can avoid array creation and iteration overhead.
Issue 1:
When using the following notation for extending a layout:

{% extends "@FOSUser/layout.html.twig" %}

the view from the actual FOSUserBundle is used, even when it's overriden by a bundle that implements:

public function getParent()
{
return 'FOSUserBundle';
}

Issue 2:
Url validator accept as valid an url like the following:

http://testsub+domanin.domanin.com:8080/test

but does not accept

http://test_sub_domanin.domanin.com:8080/test

The problem seems to be here:

symfony / src / Symfony / Component / Validator / Constraints / UrlValidator.php

Line 28: ([\pL\pN\pS-]+.)+[\pL]+ # a domain name

The fix can be as simple as replacing \pS (mathematical symbol) with \pP (punctuation character) or even better i think \pPc (Connector Punctuation character)
Issue 1:
Description

Hello! I recently was struggling to find a bug in my code, when I realized the problem came from some weird behavior from Jax. Below, note the inconsistency in evaluation when mutliplying jnp.array(False) with arrays of length >1:

import jax.numpy as jnp

f = jnp.array(False)
t = jnp.array(True)

inf=jnp.inf
a = jnp.array([inf])
b = jnp.array([inf, inf])

# Scalar multiplication (what I used as a baseline for 'normal')
print( t * inf ) # -> Array(inf, dtype=float32)
print( f * inf ) # -> Array(0., dtype=float32)

# Array multiplication
print( t * a ) # normal behavior -> Array([inf], dtype=float32)
print( f * a ) # normal behavior -> Array([0.], dtype=float32)
print( t * b ) # normal behavior -> Array([inf, inf], dtype=float32)
print( f * b ) # unexpected behavior! -> Array([nan, nan], dtype=float32)

It seems like there is a low probability that this behavior is intentional, so I decided to open this issue. Thanks in advance for any help!

What jax/jaxlib version are you using?

jax 0.4.8, jaxlib 0.4.7

Which accelerator(s) are you using?

GPU

Additional system info

Python 3.9.12, using Ubuntu on WSL2

NVIDIA GPU info

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.65 Driver Version: 527.37 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 Off | N/A |
| N/A 53C P8 2W / N/A | 3850MiB / 4096MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 11014 C /python3.9 N/A |
+-----------------------------------------------------------------------------+

Issue 2:
Description

Multiplying a NaN by False in jax gives a 0. See example below:

nan = jnp.array(float('nan'), dtype=jnp.float32)
print(nan)
print(nan * jnp.array(0., dtype=jnp.float32))
print(nan * jnp.array(False, dtype=jnp.bool_))

Output:

nan
nan
0.0

What jax/jaxlib version are you using?

No response

Which accelerator(s) are you using?

CPU

Additional System Info

Linux
Issue 1:
package main

func main() {
i := 0
go func() {
i = 1
}()
}

This compiles without errors.
I would expect this to give an "i declared and not used" error.

Issue 2:
What steps will reproduce the problem?
1. Launch godoc -path=/home/user/user_go_dir/ -http=:3000
2. Visit 127.0.0.1:3000 in a browser.
3. Try to find the package documentation for the user's custom packages.

What is the expected output?
There should be a link somewhere on the page which links to the package documentation
for /home/user/user_go_dir/

What do you see instead?
No such link (altho it did exist in an older version of godoc).

Which revision are you using? (hg identify)
weekly.2012-02-14 +43cf9b39b647
Issue 1:
Challenge Waypoint: Target the Parent of an Element Using jQuery has an issue.

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

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

My code:

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");

});
</script>

<!-- Only change code above this line. -->

<body>
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
</body>

Issue 2:
A bug seems to be present: Chrome 46.0.2490.86 m; Windows 8.1 with respect to appendTo() function.

$("#target2").appendTo($("#right-well")); does work, but not the $("#target2").appendTo("#right-well");, the latter being suggested in the tutorial.

Hard reload and cache clearing did not seem to solve the problem.