WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I've run into an issue where creating a RectangleSelector prevents ax.axis('tight') from working properly. I've discovered that when the selector is created, it creates new line objects near coordinate (0,0) on the plot. Though not visible, the axis('tight') respects their presence and will not collapse around the real data. This matters if the real data is far from the origin. This seems like a bug?

I could work around it if I could figure out how to set the initial location of the RS line objects.

Issue 2:
Bug report

Bug summary

RectangleSelector:

Modifies dataLim

This modification seemingly cannot be reverted by removing the patch, or by modifying the patch properties

Basically I want to be able to use RectangleSelector without it modifying ax.dataLim, because if it does it messes up autoscale.

Code for reproduction

import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle
from matplotlib.widgets import RectangleSelector

fig, ax = plt.subplots()
lim = ax.dataLim
ax.plot([-0.1, 0.1], [-0.1, 0.1])
assert lim.x0 == lim.y0 == -0.1
assert lim.width == lim.height == 0.2
for kind in ('rect', 'rs'):
if kind == 'rect':
rect = Rectangle((0, 0), 0, 1)
ax.add_patch(rect)
else:
rs = RectangleSelector(ax, lambda x: None)
rect = rs.to_draw
assert isinstance(rect, Rectangle)
ax.relim()
assert lim.x0 == lim.y0 == -0.1
assert lim.width == 0.2
assert lim.height == 1.1
ax.patches.remove(rect)
assert ax.patches == []
ax.relim()
assert lim.height == 0.2, (kind, lim.height)

The plain "Rectangle" version passes, but the "RectangleSelector" version does not:

assert lim.height == 0.2, (kind, lim.height)
AssertionError: ('rs', 1.1)

And the resulting plot is "stuck" with a minimum autolim y max of 1. I also tried setting properties of the Rectangle patch that's part of the RectangleSelector (xy, width, height) and calling ax.relim() but the bound of 1. never decreases.

Matplotlib version

Operating system: Linux x86_64

Matplotlib version: latest master

Matplotlib backend: Qt5Agg

Python version: 3.8
Issue 1:
Apologies if this is a duplicate - I was unable to find anything related after a few searches - if it is then please feel free to remove without any warning!

Description of the new feature/enhancement

Currently in Windows 10, the only way to open the program with a keyboard shortcut is by:

Opening a run prompt and running shell:AppsFolder

Dragging a shortcut to the desktop

Binding keys to this shortcut and leaving it on the desktop

This clutters the desktop unnecessarily and is brittle in that (I suspect) the folder changes upon update due to the version number in the path (e.g. C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.2.1831.0_x64__8wekyb3d8bbwe\...).

Technical considerations

It would be great if there was a way to bind a key as part of the install process or within the settings file, but I realise this may reasonably be regarded as an OS level concern. I'm stunned that Microsoft doesn't provide a simple way to do this within Windows, but this is not an issue for the Windows Terminal team.

I'm sure I could get around this by using something like AutoHotKey though, so I guess we just need a way to reliably derive the path of the application...

Issue 2:
Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]

`Microsoft Windows [Version 10.0.18999.1]`

Windows Terminal version (if applicable):
`0.5.2762.0`

Any other software?
`ssh`, `cmd`

Steps to reproduce

ssh to an Ubuntu 18.04 host; log in to bash session.

start byobu

run command

$ while :; do echo 'All work and no play makes Jack a dull boy.'; done

press F2 key to create new byobu window

press F3 and F4 to toggle screens back and forth several times

Expected behavior

Steps 4 and 5 respond quickly.

Actual behavior

Steps 4 and 5 can take very long times to process the keystroke and respond.

Sometimes 10, 20, 30 seconds, sometimes immediate.

Compare to doing the same process from cmd.exe (in its native window), which responds immediately as expected.

Ctrl-C also is sluggish.

[edited to correct EB and AB and add Ctrl-C comment]
Issue 1:
Summary of the new feature/enhancement

The ability to override the theme that is used for PowerToys Run. Currently it's only possible to do this in the OS settings.

Proposed technical implementation details (optional)

In terms of UX, very similar to what we have in the General and Shortcut Guide app:

Issue 2:
crutkas:

Should have setting to force theme setting like we do for others.

📝 Provide a description of the new feature

What is the expected behavior of the proposed feature? What is the scenario this would be used?

Can theme selection be added to the power toys run?

Currently, it applies the default system theme. An option to switch between dark and light would be great.

But keeping it aside this application works great.

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Issue 1:
ISSUE TYPE

Bug Report

Feature Idea

Documentation Report

COMPONENT NAME

user module

SUMMARY

I have a playbook to create a local user, but when I ran this playbook for two servers, on is RHEL6, the other is RHEL7, why failed on RHEL7, show me the following:

fatal: [rht04]: FAILED! => {"changed": false, "failed": true, "msg": "usermod: user 'ansible' does not exist\n", "name": "ansible", "rc": 6}

- name: Add ansible local user to the server
user:
name: ansible
uid: 600
comment: "Ansible admin user"
home: /opt/staff/ansible
createhome: yes
state: present

TASK [ansiblelocaluser : Add ansible local user to the server] *****************
ok: [rht02] => {"append": false, "changed": false, "comment": "Ansible admin user", "group": 600, "home": "/opt/staff/ansible", "move_home": false, "name": "ansible", "shell": "/bin/bash", "state": "present", "uid": 600}
fatal: [rht04]: FAILED! => {"changed": false, "failed": true, "msg": "usermod: user 'ansible' does not exist\n", "name": "ansible", "rc": 6}
TASK [ansiblelocaluser : set up authorized_key for ansible local user] *********
ok: [rht02] => {"changed": false, "exclusive": false, "key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyAACMvkERvxgdrthtuK1gOmj88FV+Hr+gmvlMr13Kv+It+kqXF7KgfTzwD5RuZcABU30Hw+IzTe5D2IQQFx4vGOxfGPGhiadfelktLPXj2KaZSYVlfkEWtJ55VG5sEOKx8tMpMXjOMchggstTFe6+/5zCdSeb+29sAUulWHR+pom/eAmHuwO1PiW23hHWiQULzzDxwWVDnqTLvXC1qtjE4OFjmCnsiKTK7AuuU9mqvhS1bcw20hZ8o3lbkgXk0Sr9prwO39B5H8JjVwVssW2l+CqWs+qwGNOSk4Y1fTkrwAj6ZksWGs4br0+Nnyji+Y/V0NkrhVGZh0ybWkF2XFN9 ansible@ansible01", "key_options": null, "keyfile": "/opt/staff/ansible/.ssh/authorized_keys", "manage_dir": true, "path": null, "state": "present", "unique": false, "user": "ansible", "validate_certs": true}
TASK [ansiblelocaluser : make sure that ansible user are in the Unix_ADM group in /etc/sudoers] ***
ok: [rht02] => {"backup": "", "changed": false, "msg": ""}
NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @configure_ansible_env.retry
PLAY RECAP *********************************************************************
rht02 : ok=5 changed=0 unreachable=0 failed=0
rht04 : ok=2 changed=1 unreachable=0 failed=1

NOTE: AD and Centrify Direct Control as user authentication

ANSIBLE VERSION

CONFIGURATION

OS / ENVIRONMENT

STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS

Issue 2:
Issue Type:

Bug Report

Ansible Version:

master

Environment:

N/A

Summary:

If a role dependency is skipped, via:

---
dependencies:
- { role: foo, when: false }

Then it's children are also skipped, even if they are required by other roles.

Steps To Reproduce:

# roles/foo/meta/main.yml

---
dependencies:
- { role: child, when: false }

# roles/bar/meta/main.yml

---
dependencies:
- { role: child }

# roles/parent/meta/main.yml

---
dependencies:
- { role: foo }
- { role: bar }

If the parent role is used, then child will never be executed.

Expected Results:

Roles are re-run if required by subsequent roles, and have not been run already (under no-duplicate roles policy).

Actual Results:

Role is skipped for the rest of the play.
Issue 1:
I am using FireFox 22.0 and Chrome 27.0.1453.110.

For example, in this page, http://twitter.github.io/bootstrap/getting-started/

If I hit "License FAQs" on the sidebar in Chrome, the page will directly scroll to the corresponding section for me, just like in the previous version of Bootstrap.

However if I do this in FireFox, the click on the menu has no effect and the page won't scroll to the "License FAQs" section.

Is this an issue of the documentation page only or the library itself?

Issue 2:
You cannot access on any left-side menu link with Firefox.

Tested with Firefox 22.0 on Mac
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-override-styles-in-subsequent-css has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

When I loaded the page for this lesson, the 'Hello World" text on the right side of the screen is displayed twice for some reason. If I reset the page, or even start editing the code, the second copy of the text disappears. It's more of a weird error than a bug, but I thought I'd report it since I took a screenshot of it.

Issue 2:
Symmetric Differences

https://www.freecodecamp.com/challenges/symmetric-difference

Issue Description

Test 5, 7, 9 pass but 6, 8, and 10 do not.

It is impossible to return an array of the exact 3 elements the test was expecting and the array also not have a length of 3. I'm assuming there's something wrong in the test cases. Is there not a solution run against these tests to make sure they all pass together?
Issue 1:
What happened

When entering a conn_id in the Connections section, there is currently no form validation in place. This allows users to input a conn_id with a space at the end for example, which results in errors when running tasks. The error message displayed states that the connection doesn't exist, which can be misleading and time-consuming to debug.

What you think should happen instead

Form validation should be added to the Connections section to prevent conn_id inputs with trailing spaces from being saved and instead save the conn_id without the trailing spaces.

How to reproduce

Go to the Connections section of the application.

Enter a conn_id with a space at the end.

Save the form or attempt to run a task with the conn_id.

Operating System

Linux - Ubuntu 20.04

Versions of Apache Airflow Providers

2.5.1

Deployment

Docker-Compose

Deployment details

No response

Anything else

No response

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:
Description

I bumped into a bug where a connection id was suffixed with a whitespace e.g. "myconn ". When referencing the connection id "myconn" (without whitespace), you get a connection not found error.

To avoid such human errors, I suggest restricting the characters allowed for connection ids.

Some suggestions:

There's an airflow.utils.helpers.validate_key function for validating the DAG id. Probably a good idea to reuse this.

I believe variable ids are also not validated, would be good to check those too.

Use case/motivation

No response

Related issues

No response

Are you willing to submit a PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
Update to v6.1.4, require("babel-core/register") is not work:

Error: Cannot find module 'babel-runtime/helpers/interop-require-default'

at Function.Module._resolveFilename (module.js:337:15)

at Function.Module._load (module.js:287:25)

at Module.require (module.js:366:17)

at require (module.js:385:17)

at Object. (xxxx\koa_test\node_modules\babel-register\lib\node.js:5:30)

at Module._compile (module.js:425:26)

at Object.Module._extensions..js (module.js:432:10)

at Module.load (module.js:356:32)

at Function.Module._load (module.js:311:12)

at Module.require (module.js:366:17)

Issue 2:
I'm using the latest everything:

NodeJS 5.0.0

NPM 3.3.12

babel-runtime 6.1.4

babel-register 6.1.4

when running anything with babel-node I get the following errors:

Error: Cannot find module 'babel-runtime/helpers/interop-require-default'
at Object.<anonymous> (babel-register/lib/node.js:5:30)

Error: Cannot find module 'babel-runtime/helpers/interop-require-wildcard'
at Object.<anonymous> (babel-register/lib/node.js:7:31)

The reason this happens is that the files are actually named interopRequireDefault.js and interopRequireWildcard.js respectively.

If I rename them to interop-require-default.js and interop-require-wildcard.js the errors go away.

Other than that everything seems to work just fine.
Issue 1:
System info

Playwright Version: [v1.33]

Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]

Browser: [All, Chromium, Firefox, WebKit]

Other info: Typo in Documentation

Source code

The code for use Serial Mode has a typo

Actual: let page: Page;

Expected: let page = Page;

import { test, Page } from '@playwright/test';

// Annotate entire file as serial.
test.describe.configure({ mode: 'serial' });

let page: Page; // <--- here is the typo use = instead of :

test.beforeAll(async ({ browser }) => {
page = await browser.newPage();
});

test.afterAll(async () => {
await page.close();
});

test('runs first', async () => {
await page.goto('https://playwright.dev/');
});

test('runs second', async () => {
await page.getByText('Get Started').click();
});

Issue 2:
We are in the process of converting our tests from TestCafe to Playwright. We have a test the uses an api to get a password rest email. The response is an html page for the password reset. The api works properly in TestCafe and Postman but returns <Buffer 5b 5d> in Playwright. I tried .body(), .text(), .json() for the response and no luck with any.

System info

Playwright Version: [v1.34.3]

Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]

Browser: [All, Chromium, Firefox, WebKit]

Other info:

Source code

const getApiForgotPasswordEmail = await this.apiContext.get(process.env.MAILTRAP_API+'/messages/'+resetEmailId+'/body.html',
{
headers:{
'Accept': 'text/html, application/json',
'Authorization': process.env.MAILTRAP_TOKEN,
},
})

expect(getApiForgotPasswordEmail.ok()).toBeTruthy();
const forgotPasswordEmailResponseCode = await getApiForgotPasswordEmail.status();
console.log(forgotPasswordEmailResponseCode);
const forgotPasswordEmailBody = await getApiForgotPasswordEmail.body();
console.log('email body:');
console.log(forgotPasswordEmailBody);

[X ] I provided exact source code that allows reproducing the issue locally.

Test file (self-contained)

await apiUtils.getForgotPasswordEmail(newPatientNumber);

Steps

[Run the test]

Expected

The html for an email will be returned.

This is an example what is returned when the test is ran with TestCafe

Actual

Receive the response <Buffer 5b 5d>
Issue 1:
When the example from the docs http://penguinwebdevelopment.com/bootstrap-3-docs/components.html#navbar-responsive is collapsed (i.e. minimizing window width) to the size for phones (when the toggle collapse button appears). If the navbar contains dropdown menu buttons, clicking the dropdown buttons results in a normal dropdown popup vs. the collapse div expanding with more options below the button like in 2.3.2.

Compare functionality to the collapse version of the responsive navbar from http://twitter.github.io/bootstrap/components.html#navbar

Issue 2:
http://bootply.com/render/64786

When you collapse the navbar at the above example link then the bottom most dropdown sub-menu is hidden when clicked to view the dropdown. Tested on Google Chrome desktop and Ios Safari mobile.
Issue 1:
Environment

Windows build number: 10.0.18363.836
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Open a new window, observe the window size

Snap the window to a FancyZone (like the lower priority zone in the Priority Grid template)

Drag the window to unsnap it

Expected behavior

On drag/unsnap, the window reverts back to its original size before it was snapped, and subsequent new instances of the app open to the original size.

Actual behavior

The window retains the size of the FancyZone. At least for Win32 apps like Edge and Teams, new instances of the app also open to the FancyZone size unless you manually resize the window to the desired size (effectively the original size). UWP apps tend to set a preferred size I guess so new instances don't seem to be as impacted by the sizes of earlier windows. This is different from how Windows Snap works which does preserve the original window size when unsnapping.

Additional Notes

When using FancyZones, I find myself needing to resize windows where I never needed to before. This is effectively a regression from Windows Snap.

Issue 2:
If I have vertical taskbar setup, fancy zones sometimes gets the edge of the screen wrong so that my zones don't take up the full screen. Even if I edit the zone after changing taskbar status.

Thanks folks. Chris
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

ansible-vault

ansible-playbook

ANSIBLE VERSION

ansible 2.2.0.0
config file =
configured module search path = Default w/o overrides

CONFIGURATION

N/A

OS / ENVIRONMENT

Darwin junction.local 16.1.0 Darwin Kernel Version 16.1.0: Wed Oct 19 20:31:56 PDT 2016; root:xnu-3789.21.4~4/RELEASE_X86_64 x86_64

SUMMARY

In ansible 2.1 we were using an encrypted inventory to do deployments, see the project here: https://github.com/MindLeaps/tracker/tree/master/deploy

In ansible 2.2 with the same command, ansible appears to no longer decrypt the inventory. The playbook doesn't match any hosts. If we change the playbook to match all we get an error:

fatal: [38303030316563383161373464373362663333376565313664316663336337316131]: UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ControlPath too long\r\n",
"unreachable": true
}

It appears to be treating the inventory in its encrypted form as a list of hosts.

STEPS TO REPRODUCE

Use an encrypted inventory to deploy.

EXPECTED RESULTS

Expect 2.2 to work as 2.1 did. Encrypted inventories should be decrypted when supplied with the correct password.

ACTUAL RESULTS

No config file found; using defaults
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default).
This feature will be removed in a future release. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.

PLAYBOOK: playbook.yml *********************************************************
1 plays in playbook.yml

PLAY RECAP *********************************************************************

Playbook does not match expected hosts, ignores inventory.

Issue 2:
Bug Report

COMPONENT NAME

Ansible Version: ansible 2.2.0.0

Cofiguration: ansible.cfg(in present directory)

OS: Ubuntu 14.04 LTS

ansible-playbook not able to decrypt the files which encrypted with ansible 2.1.0.0 & below.

Steps to reproduce:

Install ansible 2.1.0.0 or below

Encrypt an inventory file

Add vault_password_file in ansible.cfg

Run, ansible-playbook -i inventory/qa site.yml which works fine.

Now install ansible 2.2.0.0

Run, ansible-playbook -i inventory/qa site.yml which gives below error.

fatal: [$ANSIBLE_VAULT;1.1;AES256]: UNREACHABLE! => {

"changed": false,

"msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname $ansible_vault;1.1;aes256: Name or service not known\r\n",

"unreachable": true

}

EXPECTED RESULTS

Plays has to start executing.

ACTUAL RESULTS

Get below error:

fatal: [$ANSIBLE_VAULT;1.1;AES256]: UNREACHABLE! => {

"changed": false,

"msg": "Failed to connect to the host via ssh: ssh: Could not resolve hostname $ansible_vault;1.1;aes256: Name or service not known\r\n",

"unreachable": true

}
Issue 1:
Challenge Factorialize a Number has an issue.

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

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

My code:

var total = 1;
function factorialize(num) {
for (var i=0; i<num; i++){
total = total * (num - i);
}
return total;
}

factorialize(5);

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

"Regular expressions are usually surrounded by / symbols."

In JavaScript, when are regular expressions not surrounded by forward slashes?

"We can do this by replacing the .+ part of our regular expression with the current regular expression with the word and."

... may be more clear as:

"We can do this by replacing the .+ part of our regular expression with the word and+."
Issue 1:
After installing matplotlib I tried importing pyplot but got the error message below:

**RuntimeError**: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends.

So I followed this solution: http://stackoverflow.com/questions/21784641/installation-issue-with-matplotlib-python

However, now I'm getting this error

ImportError: No module named '_tkinter'

Here is the entire stacktrace:

▶ python
Python 3.5.0 (default, Sep 24 2015, 19:45:12)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/pyplot.py", line 114, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/backends/__init__.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/backends/backend_tkagg.py", line 6, in <module>
from matplotlib.externals.six.moves import tkinter as Tk
File "/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/externals/six.py", line 90, in __get__
result = self._resolve()
File "/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/externals/six.py", line 113, in _resolve
return _import_module(self.mod)
File "/Users/bhaarat/.virtualenvs/cv3/lib/python3.5/site-packages/matplotlib-1.5.0rc1+83.g39f0136-py3.5-macosx-10.10-x86_64.egg/matplotlib/externals/six.py", line 80, in _import_module
__import__(name)
File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 35, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named '_tkinter'

Issue 2:
As reported on the mailing list thread "missing ticks in inverted log axis", it seems that the setup.py script favors the Framework Tcl/Tk when building the tkagg extension.

elif sys.platform == 'darwin':
# this config section lifted directly from Imaging - thanks to
# the effbot!

# First test for a MacOSX/darwin framework install
from os.path import join, exists
framework_dirs = [
join(os.getenv('HOME'), '/Library/Frameworks'),
'/Library/Frameworks',
'/System/Library/Frameworks/',
]

I assume this was in here for a reason -- it's been like that for ages. Do any Mac users have any thoughts/solutions?

Cc: @pelson, @r-owen