WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
When I create a figure using bbox images, everything looks fine, but when I save the figure, the images move. Here is an example

import matplotlib.pyplot as plt
import numpy as np
from matplotlib.image import BboxImage
from matplotlib.transforms import Bbox, TransformedBbox

#Generate the image
im = np.random.rand(10, 10) * 255.0

#Set up figure
fig = plt.figure()
ax = fig.add_axes([0.1,0.1,0.8,0.8])
ax.set_xlim(-2,24)
ax.set_ylim(0,10)

#Create image that transforms automatically
bbox1 = Bbox.from_extents([0,0,10,10])
trans_bbox1 = TransformedBbox(bbox1, ax.transData)
bbox_image1 = BboxImage(trans_bbox1)
bbox_image1.set_data(im)
ax.add_image(bbox_image1)

#Create image that does not transform
bbox2 = Bbox.from_extents([12,0,22,10])
trans_bbox2 = bbox2.transformed(ax.transData)
bbox_image2 = BboxImage(trans_bbox2)
bbox_image2.set_data(im)
ax.add_image(bbox_image2)

#Save the result
fig.savefig('png_test.png')
fig.savefig('pdf_test.pdf')

If I take a screenshot of the figure window, it looks like this

which is what I expect. However, when I look at the 'png_test.png', the second image that did not use the TransformedBbox moves, as shown below

In the pdf, both images move, as shown below

In case it matters, I am using the Qt4Agg interactive backend with the Spyder IDE. My matplotlib version is 1.4.0.

Issue 2:
Bug report

Bug summary

I'm intermittently getting the warning font family ['serif'] not found. Falling back to DejaVu Sans when plotting with rc('text', usetex=True) enabled. If I delete ~\.cache\matplotlib the warning stops and the charts are rendered with the correct font. But a day or so later it starts again

Code for reproduction

Cannot reliably reproduce as intermittent, can reliably fix by deleting ~\.cache\matplotlib

Matplotlib version

Operating system: Ubuntu 18.04

Matplotlib version: 3.0.2

Matplotlib backend: module://ipykernel.pylab.backend_inline

Python version: 3.7.1 x64

Jupyter version (if applicable): 4.4.0

Other libraries:

installed from pip
Issue 1:
At the moment you can use hugging face's mask filling pipeline to predict 1 masked token in a sentence using the below:

!pip install -q transformers
from __future__ import print_function
import ipywidgets as widgets
from transformers import pipeline

nlp_fill = pipeline('fill-mask')
nlp_fill("I am going to guess <mask> in this sentence")

The request is that you also add the ability to predict N masked tokens rather than only 1 masked token. So that for example if the sentence is "I am going to make <mask> <mask> for breakfast" then the model might predict "fried eggs" for the 2 masked tokens

Issue 2:
I am able to use hugging face's mask filling pipeline to predict 1 masked token in a sentence using the below:

!pip install -q transformers
from __future__ import print_function
import ipywidgets as widgets
from transformers import pipeline

nlp_fill = pipeline('fill-mask')
nlp_fill("I am going to guess <mask> in this sentence")

But does anyone have an opinion on what is the best way to do this if I want to predict 2 masked tokens? e.g. if the sentence is instead "I am going to <mask> <mask> in this sentence"?

If i try and put this exact sentence into nlp_fill I get the error "ValueError: only one element tensors can be converted to Python scalars" so it doesn't work automatically.

Any help would be much appreciated!

Stack overflow question link
Issue 1:
The standalone Embedding Projector does not open the Load bookmarks window for me all of a sudden. Save bookmarks and everything else still works though.

I am on Windows 7 (Enterprise) using Chrome (Google Chrome	59.0.3071.115 (Official Build) (64-bit) (cohort: Stable)).

Issue 2:
When a PR is tested failed, Jenkins just reports failure and tells where to check log. However, at least for me, I don't know whether I have the permission, and where to find the logs. So I have to reproduce the failed test on my own machine, but maintaining all kinds of environment is an unnecessary burden for each developer (cpu, gpu, py2, py3, window...)

//tensorflow/tools/test:check_futures_test PASSED in 1.3s
//tensorflow/user_ops:ackermann_test PASSED in 2.3s
//tensorflow/user_ops:duplicate_op_test PASSED in 2.2s
//tensorflow/user_ops:invalid_op_test PASSED in 2.1s
//tensorflow/python/kernel_tests:matrix_solve_ls_op_test TIMEOUT in 65.0s
/var/lib/jenkins/workspace/tensorflow-pull-requests-cpu/bazel-ci_build-cache/.cache/bazel/_bazel_jenkins/eab0d61a99b6696edb3d2aff87b585e8/execroot/workspace/bazel-out/local-opt/testlogs/tensorflow/python/kernel_tests/matrix_solve_ls_op_test/test.log

Executed 1205 out of 1205 tests: 1204 tests pass and 1 fails locally.

It will be more convenient to attach total failure content at the end for developers to debug, like reports of py.test:

$ pytest
======= test session starts ========
platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y
rootdir: $REGENDOC_TMPDIR, inifile:
collected 1 item

test_sample.py F

======= FAILURES ========
_______ test_answer ________

def test_answer():
> assert inc(3) == 5
E assert 4 == 5
E + where 4 = inc(3)

test_sample.py:5: AssertionError
======= 1 failed in 0.12 seconds ========
Issue 1:
When I console.log(), the Chrome console gives the log but instead of showing the file and line number it just says react_devtools_backend.js:4049. How do I get the console to show the file and line number when I console.log()?

Issue 2:
in my browser console, log info go wrong, it should show real console.log file and correct line info, but now it always show "react_devtools_backend.js: 4049", link to source code show warning:

"Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

Move data fetching code or side effects to componentDidUpdate.

If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state

Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run npx react-codemod rename-unsafe-lifecycles in your project source folder.

Please update the following components: %s"

when i disable react developer tools, it goes correctly. but it goes wrong in 4.18.0 react developer tools. and my colleagues' chrome with react developer tools 4.17.0 is right

Note from maintainers: #22257 (comment) is a workaround until this is fixed in React DevTools
Issue 1:
Version

2.5.17-beta.0

Reproduction link

https://codesandbox.io/s/m7q5pmyy1x

Steps to reproduce

click show one by one button three times

click Switch a & b

click show one by one button

What is expected?

Show b first

What is actually happening?

Show b2 first

Issue 2:
here example: https://jsfiddle.net/alekzonder/1zcLkuwq/

vue.js 2.1.10

steps in example:

press "unshift new" button

then press "set bold" with 0 index in input

problem: item with index 1 is bold after Array.unshift in data

if remove :key=item.id in template with v-for, all works right

bug or feature?
Issue 1:
Could we extend roles to support scripts?

So

- script: myscript.sh

Gets automagically sucked up from, roles/myrole/scripts/myscript.sh

?

Issue 2:
From @rfwekker on 2016-12-05T14:38:56Z

ISSUE TYPE

Bug Report

COMPONENT NAME

lineinfile module

http://docs.ansible.com/ansible/lineinfile_module.html

ANSIBLE VERSION

ansible 2.1.0.0

ENVIRONMENT

Ansible Configuration: default

CentOS Linux release 7.2.1511 (Core) 3.10.0-327.36.1.el7.x86_64

SUMMARY

BUG: The lastline is deleted and replaced, with lineinfile insertafter=EOF

Want to add a new string to the end of the file, but the result is that the lastline is deleted and replaced. Replace last line instead of insert after last line.

STEPS TO REPRODUCE

/etc/crontab

*/45 * * * * root /sbin/blabla
*/45 * * * * root /sbin/tratra

Playbook section:

- name: add at the end of the file /etc/crontab rhn_check
lineinfile: dest=/etc/crontab
regexp=''
insertafter=EOF
line='*/60 * * * * root /sbin/rhn_chk'

EXPECTED RESULTS

Line added to the crontab

*/45 * * * * root /sbin/blabla
*/45 * * * * root /sbin/tratra
*/60 * * * * root /sbin/rhn_chk

ACTUAL RESULTS

/etc/crontab

*/45 * * * * root /sbin/blabla
*/60 * * * * root /sbin/rhn_chk

Last line in the file deleted and replaced

Copied from original issue: ansible/ansible-modules-core#5825
Issue 1:
Bug report

After setting alpha to legend Patch, the color of edited patch resets to default(blue).

Code for reproduction

"""
========
Barchart
========

A bar plot with errorbars and height labels on individual bars
"""
import matplotlib.pyplot as plt
import numpy as np

N = 5
men_means = (20, 35, 30, 35, 27)
men_std = (2, 3, 4, 1, 2)

ind = np.arange(N) # the x locations for the groups
width = 0.35 # the width of the bars

fig, ax = plt.subplots()
rects1 = ax.bar(ind, men_means, width, color='r', yerr=men_std)

women_means = (25, 32, 34, 20, 25)
women_std = (3, 5, 2, 3, 3)
rects2 = ax.bar(ind + width, women_means, width, color='y', yerr=women_std)

# add some text for labels, title and axes ticks
ax.set_ylabel('Scores')
ax.set_title('Scores by group and gender')
ax.set_xticks(ind + width / 2)
ax.set_xticklabels(('G1', 'G2', 'G3', 'G4', 'G5'))

leg = ax.legend((rects1[0], rects2[0]), ('Men', 'Women'))

#this line causes bug - reset to default color(blue)
leg.get_patches()[0].set_alpha(0.854321)

plt.show()

Actual outcome

Expected outcome

Matplotlib version

Matplotlib version: 2.1.2

Python version: 2.7

Issue 2:
Bug report

Bug summary

I occasionally want the alpha value of the patch in a histogram's legend to be different than the alpha value used to plot the legend. However, when I call set_alpha on a legend handle, the color of the patch in the legend changes.

Code for reproduction

import matplotlib.pyplot as plt

plt.hist([1, 2, 3], alpha = 0.25, label = 'data', color = 'red')
legend = plt.legend()
for lh in legend.legendHandles:
lh.set_alpha(1.0)

Actual outcome

Work-around

I can get the result I desire if I call set_edgecolor() and set_facecolor():

plt.hist([1, 2, 3], alpha = 0.25, label = 'data', color = 'red')
legend = plt.legend()
for lh in legend.legendHandles:
lh.set_facecolor(lh.get_facecolor())
lh.set_edgecolor(lh.get_edgecolor())
lh.set_alpha(1.0)

Expected outcome

Matplotlib version

Matplotlib v2.2.2

Installed from Anaconda (default channel)

Backend: module://ipykernel.pylab.backend_inline

Jupyter version: 5.5.0
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version (if applicable): 0.5.2762.0 (Preview from MS Store)
Device: Huawei Matebook X Pro

Steps to reproduce

This just happens when in full Power Saving mode.

Make sure you are not running "More Battery efficiency".

Expected behavior

The appearance of the terminal should be completely normal with the acrylic background.

Actual behavior

In Power Saving mode the terminal Background turns completely black while other acrylic effects in windows work as they should (like the taskbar).

Issue 2:
Set default WSL path to distro $HOME

The default path for WSL distros is currently the Windows user path (%USERPROFILE%) but it's may be better to set it to the distro $HOME.

Proposed technical implementation details (optional)

I don't know if it's possible, but ideally in the WslDistroGenerator.cpp the command line should be conditionally set to "wsl.exe -d " + distName if startingDirectory is set in profile.json, "wsl.exe ~ -d " + distName otherwise.

Another possibility is to add a boolean setting UseWSLHome on the wsl profile.json

Thank you.
Issue 1:
Electron Version: 2.0.1

Operating System (Platform and Version): Windows 10 build 1803 x64

Last known working Electron version: 2.0.0

Expected Behavior

The Window should open properly with 'transparent: true'.

Actual behavior

With 'transparent: true' enable the Windows opens very small and is not resizable or maximizable.

To Reproduce

Add 'transparent: true' to your main.js.

Screenshots

Without 'transparent: true'

With 'transparent: true'

Issue 2:
Electron Version: v2.0.1

Operating System (Platform and Version): windows10

Last known working Electron version: 1.7.9

Allow frameless transparent windows to be sized smaller than 64x64 on Windows #12923

but，now, it can't bigger than 64x64 on Windows

my height/width don't work

when i set frame: true, it can't resize

remove transparent: true, all work right
Issue 1:
Electron version: 1.7.9

Operating system: macOS 10.13.1

Expected behavior

user can only choose audio files

Actual behavior

the accept field doesn't work at all, user can choose any files

How to reproduce

use electron-with-create-react-app to build a mvp:

git clone https://github.com/csepulv/electron-with-create-react-app.git
cd electron-with-create-react-app/
npm install
npm run dev

and then just add a file input to the App.js:

<input type="file" accept="audio/*" />

Issue 2:
Electron version:

^1.7.9

Operating system:

macOS 10.13.1

Expected behavior

the accept prop of <input type:"file"> should reject the files which are not under the accept prop,

Actual behavior

I test the plain HTML with accept prop bound to which worked properly as expected on safari firefox and chrome, HOWEVER, on electron app, it never worked! , as the accept prop does not exist.

How to reproduce

Create a basic electron app with HTML <input type:"file" accept:"*"> and you would get this issue, however, I only have Mac, so this may not happen on win machines. And I assume that was because of the new macOS update with APFS? By the way, the accept prop won't work with some React file selector components either.
Issue 1:
Challenge Caesars Cipher has an issue.

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

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

The link for "String.charCodeAt()" in the instruction is broken....

My code:

function rot13(str) { // LBH QVQ VG!

return str;
}

// Change the inputs below to test
rot13("SERR PBQR PNZC");

Issue 2:
Challenge Caesars Cipher has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0.

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

My code:

function rot13(str) { // LBH QVQ VG!

return str;
}

// Change the inputs below to test
rot13("SERR PBQR PNZC");

The issue is not within the code, actually... It is on the challenge's explanation page.

It seems that the link to "String.charCodeAt()" is broken.

I think it should be the following:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt

Stay well

DR
Issue 1:
Let's say I have andpoint GET https://example.com/foo

When I use:

$app->match('/foo', function...)

-> OK, it doesn't redirect to https://example.com/foo/

BUT when I use:

$app->mount('/foo', new SomeRouteController());

and then in route controller:

$controllers->get('/', function...)

OR

$controllers->get('', function...)

it automatically redirects to https://example.com/foo/ (with trailing slash).

It's very annoying. It makes run my middleware twice without need and generating redundant requests.

Can you fix it or provide a way to disable this new redirects at all?

Issue 2:
Description

The automatic 301 redirection from /foo/ to /foo was introduced in Symfony 4.1. In previous Symfony versions this results in a 404 response.

This is a "magic" behaviour which can be unwanted in certain cases. For example it can break AJAX calls via HTTPS.

There should be an option to disable this behaviour and enforcing strict URL matching on the route, without any magic redirects behind.
Issue 1:
[This isn't actually a 1.10 blocker, but hopefully it will be resolved trivially before that so sticking the tag on so it doesn't get lost.]

http://thread.gmane.org/gmane.comp.python.numeric.general/60520

Issue 2:
the function argsort() returns a wrong indice that would sort an array.

for example:

from numpy import *

a=array([4,2,3,1])

argsort(a)

array([3, 1, 2, 0], dtype=int64)

so this is right, it returned the sorted index. but the follow example is wrong:

a=array([4,2,3])

argsort(a)

array([1, 2, 0], dtype=int64)

the right index should be array([2,0,1]),and the follow example is also wrong:

a=array([5,1,4,3,2])

argsort(a)

array([1, 4, 3, 2, 0], dtype=int64)

the right index should be array([4,0,3,2,1]),and the follow example is also wrong:

a=array([7,1,5,2,4,6,3])

argsort(a)

array([1, 3, 6, 4, 2, 5, 0], dtype=int64)

the right index should be array([6,0,4,1,3,5,2]),so I find a error rule that function argsort() will display the wrong index when an array that starts with a maximum and has an odd number of elements.

Reproducing code example:

>>>from numpy import *
>>> a=array([4,2,3,1])
>>> argsort(a)
array([3, 1, 2, 0], dtype=int64)
### so this is right, it returned the sorted index. but the follow example is wrong:
>>> a=array([4,2,3])
>>> argsort(a)
array([1, 2, 0], dtype=int64)
### the right index should be array([2,0,1]),and the follow example is also wrong:

>>> a=array([5,1,4,3,2])
>>> argsort(a)
array([1, 4, 3, 2, 0], dtype=int64)
### the right index should be array([4,0,3,2,1]),and the follow example is also wrong:
>>> a=array([7,1,5,2,4,6,3])
>>> argsort(a)
array([1, 3, 6, 4, 2, 5, 0], dtype=int64)

Error message:

Numpy/Python version information:

Numpy 1.13.3/Python 3.5.2

1.13.3 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)]
Issue 1:
>>> np.full_like(np.array([1,0]), np.nan)
array([-9223372036854775808, -9223372036854775808])

Normally, conversion of an NaN to an int fails:

>>> np.int(np.nan)
ValueError: cannot convert float NaN to integer

I suspect the full_like behaviour should similarly raise an error. I'm not sure how common this behaviour is.

Issue 2:
Issue with current documentation:

I wanted to test the PDF build of documentation for 1.24, and the build ended with this report:

Latexmk: ====List of undefined refs and citations:
Missing character: There is no 琴 (U+7434) in font [FreeSerif.otf]/OT:script=latn;language=dflt;mapping=tex-text;!
Missing character: There is no 春 (U+6625) in font [FreeSerif.otf]/OT:script=latn;language=dflt;mapping=tex-text;!
Missing character: There is no 鈴 (U+9234) in font [FreeSerif.otf]/OT:script=latn;language=dflt;mapping=tex-text;!
Missing character: There is no 猫 (U+732B) in font [FreeSerif.otf]/OT:script=latn;language=dflt;mapping=tex-text;!
Missing character: There is no 傅 (U+5085) in font [FreeSerif.otf]/OT:script=latn;language=dflt;mapping=tex-text;!
Missing character: There is no 立 (U+7ACB) in font [FreeSerif.otf]/OT:script=latn;language=dflt;mapping=tex-text;!
Missing character: There is no 业 (U+4E1A) in font [FreeSerif.otf]/OT:script=latn;language=dflt;mapping=tex-text;!
And 2 more --- see log file.

Then I checked log file where the page numbers are indicated (339 and 363 for my build but my virtual environment was lacking some stuff so warnings were reported about doxygen and scipy, perhaps I am missing pages in my build) and this actually maps to the Release notes for 1.23.3 and 1.21.4.

Indeed here is a screenshot for the 1.21.4 Release pages in the PDF for 1.23 release

By the way according to Google translate 傅立业 indicated missing in this screenshot (page 363 in my build of 1.24.1 documentation) means Fourier...

Idea or request for content:

Unfortunately I personally am very little familiar with xelatex but I think it should be possible to configure it to switch to another font for CJK ideograms, I can not help currently though, but surely others will.

By the way, with recent LaTeX (since 2021) one can (via \tracinglostchars3 in the preamble) let such missing characters cause a LaTeX build error... if one really really wishes this.

Completely unrelated note: I wanted to test how the PDF looked with Sphinx development tip (future 6.1.0). It does look fine (code-blocks with rounded corners and background gray, tables with rows of alternating grayish colors). I had to install sphinx_design and then reinstall Sphinx as sphinx_design pins it to <6.
Issue 1:
Version

2.6.11

Reproduction link

https://codesandbox.io/s/unruffled-night-t32t2?file=/src/router.js:253-257

code

<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>
<title>input momery leak</title>

Go to input page

Go to empty page

<script>
const Inp = {
data: function () {
return {
v: '',
test: []
}
},
mounted() {
for (let i = 2000000; i > 0; i--) {
this.test.push(i)
}
},
template: `<input v-model="v"></input>`
},
Empty = { template: '<div>empty</div>' },
routes = [
{ path: '/input', component: Inp },
{ path: '/empty', component: Empty }
],
router = new VueRouter({
routes
}),
app = new Vue({
el: '#app',
router
})
</script>

Steps to reproduce

1.Click Go to input page link,collect garbage and take a snapshot with devtools

2.Enter any value in the input box,collect garbage and take a snapshot with devtools

3.Click Go to empty page link,collect garbage and take a snapshot with devtools

What is expected?

Data memory release in component data

What is actually happening?

Not released,variables test are still in memory

If the input box does nothing and leaves the page, the component data can be freed normally

Issue 2:
Version

2.6.11

Reproduction link

https://github.com/nicolanilomartinoph/skillTree_nonSPA

Steps to reproduce

Create a state and add some variables

change one of the variable( delete, change spelling, add a variable)

Save file

npm run watch

CTRL F5 your browser

Go to Chrome vue extension and click Switch to vuex

You'll notice that your changes doesn't reflect

Few things can happen:

delete variables still show

A change in spelling/letter case will result in 2 variable of both old and new spelling/case difference

What is expected?

For all changes to reflect on chrome vue extension

What is actually happening?

Changes to the state can result in old and changed variables names.

In the source file, the code is no longer there but if you go to the chrome extension, it still shows there.

I was simply changing the variable in the state so it would make more sense then the bug stated to happen. I notice in the vuex chrome extension that I have duplicate of the old variable and new variable name.

I am also using plugins: [createPersistedState()] if that helps.

I cannot debug properly because I'm not use if the new variable name takes effect or that old one is still out there.

To be