WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

template_module

ANSIBLE VERSION

ansible 2.2.1.0

SUMMARY

When Role Includes the Role, the template module browse the incorrect path looking for a template file

STEPS TO REPRODUCE

[run with -vvvvv to see the paths]

TASK [app_campaigns_manager : Ensure service configuration] ********************
task path: /home/me/ansible/etc/playbooks/roles/app_generic/tasks/service.yml:1
looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/roles/app_campaigns_manager/templates/upstart.conf"
looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/roles/app_campaigns_manager/upstart.conf"
looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/roles/app_generic/tasks/templates/upstart.conf" <<< TASKS?
looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/roles/app_generic/tasks/upstart.conf"
looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/templates/upstart.conf"
looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/upstart.conf"

The correct path is:

/home/me/ansible/etc/playbooks/roles/app_generic/templates/upstart.conf

Observation

The problem happen, because the playbook include the role that include the role:

playbook -> role: app_campaigns_manager -> role: app_generic

playbook.yml
(...)
roles: app_campaigns_manager

roles/app_campaigns_manager/tasks/main.yml
(...)
- include: ../../app_so1_generic/tasks/main.yml

EXPECTED RESULTS

Browse the proper files :)

I know the template_module has 'template_path' and 'template_fullpath', but still it would be nice it the roles would be aware of it's location independent of it's include/execution.

I may take a minute later, to prepare PR, but having rather busy time, so any help appreciated.

Issue 2:
Consider this command sequence to install the release candidate.

When I don't do the setup.py fix, I get the import error (see below), else I don't.

Any reason you have the version with the explicit package name?

$ ansible --version
Traceback (most recent call last):
File "…/.venv/ansible/bin/ansible", line 7, in <module>
execfile(__file__)
File "…/bin/ansible", line 36, in <module>
from ansible.runner import Runner
ImportError: No module named ansible.runner
$ sed -i~ -r -e "s~'ansible': 'lib/ansible'~'': 'lib'~" setup.py
$ python setup.py develop -U
…
$ ansible --version
ansible 1.9.0 (detached HEAD bce4bb2ce2) last updated 2015/03/11 23:41:25 (GMT +200)
…

Also, a test-requirements.txt for pip would be helpful. If you agree, I can do a PR for both.
Issue 1:
Please:

Check for duplicate issues.

Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

import jax.tools.colab_tpu
jax.tools.colab_tpu.setup_tpu()
jax.local_devices()

If applicable, include full error messages/tracebacks.

RuntimeError Traceback (most recent call last)
<ipython-input-2-abdb42bb8a9a> in <module>()
3 import jax.tools.colab_tpu
4 jax.tools.colab_tpu.setup_tpu()
----> 5 jax.local_devices()

2 frames
/usr/local/lib/python3.7/dist-packages/jax/_src/lib/xla_bridge.py in _get_backend_uncached(platform)
246 if backend is None:
247 if platform in _backends_errors:
--> 248 raise RuntimeError(f"Requested backend {platform}, but it failed "
249 f"to initialize: {_backends_errors[platform]}")
250 raise RuntimeError(f"Unknown backend {platform}")

RuntimeError: Requested backend tpu_driver, but it failed to initialize: DEADLINE_EXCEEDED: Failed to connect to remote server at address: grpc://10.91.25.74:8470. Error from gRPC: Deadline Exceeded. Details:

On the other hand, using an earlier version of driver in setup_tpu does work, e.g.,

def setup_tpu():
"""Sets up Colab to run on TPU.
Note: make sure the Colab Runtime is set to Accelerator: TPU.
"""
global TPU_DRIVER_MODE

if not TPU_DRIVER_MODE:
colab_tpu_addr = os.environ['COLAB_TPU_ADDR'].split(':')[0]
url = f'http://{colab_tpu_addr}:8475/requestversion/tpu_driver0.1-dev20211030'
requests.post(url)
TPU_DRIVER_MODE = 1

# The following is required to use TPU Driver as JAX's backend.
config.FLAGS.jax_xla_backend = "tpu_driver"
config.FLAGS.jax_backend_target = "grpc://" + os.environ['COLAB_TPU_ADDR']

Issue 2:
Hello,

After reviewing the following code

https://github.com/google/jax/blob/b4ec72deaefa1094891829cd0b78efb5cc19c28b/jax/_src/tree_util.py#LL545-L571C4

If I understood correctly, if the user defines flatten_func_with_keys , register_pytree_with_keys will generate flatten_func registered with the non-key jax registry.

I think, In some scenarios, the overhead from the list comprehension required for conversion from flatten_func_with_keys to flatten_func can not be justified by the usability of registering the tree once.

Is it possible to decouple registering the flatten_func_with_keys from flatten_func inside register_pytree_with_keys

def flatten_func(tree):
key_children, treedef = flatten_with_keys(tree)
return [c for _, c in key_children], treedef
Issue 1:
texture-test.zip

Description of the problem

In the attached project, there are a set of sprites created using the same texture.

The first texture is created and it has an image object inside it. More textures are created from this image.

If I don't set needsUpdate = true in the loop, none of the textures display.

If I do set needsUpdate = true, it uploads each copy of the same texture separately to the GPU and with enough copies runs out of memory.

Why doesn't it display copied textures without setting needsUpdate = true and why does it keep uploading copies when needsUpdate is true?

I would expect the first texture displaying would mean subsequent copies would display ok without needsUpdate.

Once a base image is uploaded to the GPU, it doesn't need to be uploaded again. Can there be an internal method for tracking which webgl textures have already been created, perhaps based on the source URL so that it checks if it's already on the GPU and if it is, reuse that instead of uploading another copy.

In this example, the texture creation can be taken outside of the loop but the reason I want it to work inside is that I need to be able to change the parameters for each copy.

Three.js version

r106

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
I use the Texture.clone() function a lot in my code, because I need to set the UV coordinates differently on every model, and this slows down the initiation of the page considerably. If I don't clone the texture, then the scene renders instantly. So something is not optimal in the rendering pipeline.

It seems that the Texture.clone() function indeed creates a shallow clone that reuses the image, but then when data is sent to the graphics card these two textures are seen as having two separate images, sending the same image twice. Is this correct? Perhaps this is where the bottleneck is.

Coming from XNA and DirectX, where textures are not much more than containers for bitmap data, I wonder why Three.js also includes UV data in them, instead of specifying UV once the texture is applied to a mesh?
Issue 1:
VSCode Version: 0.10.11

OS Version: Win 7

Steps to Reproduce:

Write some code with an 'if' statement, and a variable compared with an smaller-as '<' operator (without separating space).

Add a code block bracket on the same line.

Write more code in the block

Minimal example:

var j;

if(j<2){

var i=123;

}

Result in the dark+ standard scheme:

btw. what should the color of the jbe? It is different in the second example.

Issue 2:
Ported from microsoft/TypeScript-Sublime-Plugin#285

Related to microsoft/TypeScript-Sublime-Plugin#265.

Issue:

Correct:
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version: 11.0.3

Operating System: MacOS catalina 10.15.7

Last Known Working Electron version: 10.1.3

The TouchBarPopover item does not work anymore, creating a popover and clicking on it shows an empty touch bar.

Expected Behavior

The TouchBarPopover defined TouchBar should be displayed.

Actual Behavior

The TouchBarPopover is not showing the TouchBar specified in his items field.

To Reproduce

Here is a minimal example, this is the main process script, the test does not need renderer code at all.

const { app, BrowserWindow,TouchBar } = require('electron');
const { TouchBarButton, TouchBarPopover } = TouchBar;

const touchBar = new TouchBar({
items: [
new TouchBarPopover({
label: "2D",
items: new TouchBar({
items: [
new TouchBarButton({ label:"Disc", click: ()=> console.log("new", "Disc")}),
new TouchBarButton({ label:"Beam", click: ()=> console.log("new", "Beam")}),
]
})
})
]
});

function createWindow () {
const win = new BrowserWindow({ width: 800, height: 600, webPreferences: { nodeIntegration: true } });
win.setTouchBar(touchBar);
}

app.whenReady().then(createWindow);

... it needs a mac to be tested!

Screenshots

Wanted behaviour (as with electron 10.1.6):

Actual behaviour (electron 11.0.2 and electron 11.0.3):

Additional Information

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

11.0.2

Operating System:

macOS 10.15.5 (19F101)

Last Known Working Electron version:

10.1.6

Expected Behavior

Items inside a TouchBarGroup or TouchBarPopover should be rendered.

Actual Behavior

Items inside a TouchBarGroup or TouchBarPopover don't show up.

To Reproduce

https://gist.github.com/390d885b1cf4209a81583b0ee1e0d9aa
Issue 1:
ax.inset_axes does not allow set_position or set_transform if the user wants to change the position of an inset axes. This s probably easy to add, but I think means that inset_axes would need to have a new axes subclass that overloads those methods.

Issue 2:
Bug report

Bug summary

Axes added using Axes.inset_axes() in matplotlib 3.0.2 don't respond visually to Axes.set_position().

Code for reproduction

import matplotlib.pyplot as plt

# an example using regular axes
fig, ax = plt.subplots()
ax2 = fig.add_axes([.7,.7,.2,.2])
ax2.set_position([.1,.1,.2,.2])
print(ax2.get_position())
plt.show()
# plt.show() shows axes that match the ax2.get_position() output

# an example using Axes.inset_axes
fig, ax = plt.subplots()
ax2 = ax.inset_axes([.7,.7,.2,.2])
ax2.set_position([.1,.1,.2,.2])
print(ax2.get_position())
plt.show()
# plt.show() shows axes at the position set when ax.inset_axes was called, but ax2.get_position() shows the values from set_position

Actual outcome

Bbox(x0=0.1, y0=0.1, x1=0.30000000000000004, y1=0.30000000000000004)
Bbox(x0=0.1, y0=0.1, x1=0.30000000000000004, y1=0.30000000000000004)

Expected outcome

I believe the outcome should match the regular Axes use case:

Matplotlib version

Operating system: Windows 10 x64

Matplotlib version: 3.0.2

Matplotlib backend: TkAgg

Python version: 3.7.0

Other libraries:

altgraph==0.16.1

bleach==3.0.2

certifi==2018.11.29

chardet==3.0.4

Click==7.0

cx-Freeze==5.1.1

cycler==0.10.0

docutils==0.14

future==0.17.1

idna==2.7

kiwisolver==1.0.1

macholib==1.11

matplotlib==3.0.2

numpy==1.15.1+mkl

pefile==2018.8.8

Pillow==5.3.0

pkginfo==1.4.2

Pygments==2.3.0

PyInstaller==3.4

pyjanssen==0.1

pyparsing==2.3.0

PyQt5==5.11.3

PyQt5-sip==4.19.13

pyqt5-tools==5.11.2.1.3

python-dateutil==2.7.5

python-dotenv==0.9.1

pytz==2018.7

pywin32-ctypes==0.2.0

readme-renderer==24.0

requests==2.20.1

requests-toolbelt==0.8.0

scipy==1.1.0

six==1.11.0

tqdm==4.28.1

twine==1.12.1

urllib3==1.24.1

virtualenv==16.1.0

webencodings==0.5.1

websockets==7.0
Issue 1:
Electron version: v0.36.9

Operating system: Windows 10

Unlike on OS X, clicking a web notification triggered on Windows 10 doesn't focus the app, even with a window.focus() in the click handler. The click handler is called, but the focus call does nothing.

Issue 2:
I am hitting an issue where a window (in Windows 10) is not being put to the front when I call focus() on it. The same code brings the window to the front on Windows 8 and below, so something must have changed in Windows 10 with regards to window management.

What I see happening is that the task bar is flashing in orange, so there is some indication. Just the window does not get focussed properly.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-remove-classes-from-an-element-with-jquery has an issue.

The Challenge is marked as complete even if the required tasks are not completed successfully.

Refer to the screenshot:

Just adding the removeClass(without any parameters) on the jQuery selector marks the task as complete.

Thank you. 😄

Issue 2:
If you're authenticated, this notice shows up at the top of the map:

If you aren't unauthenticated, this notice is hidden for some reason. It shouldn't be.
Issue 1:
If I use a SPAN tag with class="visible-xs" then I expect to get the element visible only on extra small screens. This happens, but the problem is that it is visible using display=block, thus if I put two SPAN tags like this next to each other, they are on separate lines, instead of on one line. I probably need it to remain display=inline, since it is a span, not div. Any chance to workaround this? Any chance to get this fixed in bootstrap? Thank you

Issue 2:
related to issues #8500 , #7808 , #4929 ; using .hidden-sm to hide span within .nav > li > a . Because class is display: block above -sm then text wraps to new line. Would you consider .hidden-* classes to be display: inline-block instead ?

Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... http://jsfiddle.net/jholl/P86yf/
Issue 1:
System information (version)

OpenCV => 3.4.3

Operating System / Platform => Android ARMv7

Compiler => Using official binaries

Detailed description

I previously used OpenCV 3.1 that I manually compiled to use libjpeg-turbo. When I switched to OpenCV 3.4.3, I saw that libjpeg-turbo was now used instead of libjpeg so I used the official Android binaries for both OpenCV and 3rd party libraries.

However, reading a JPEG image from disk went from 360ms to 800ms (with IMREAD_COLOR) and from 160ms to 300ms (with IMREAD_GRAYSCALE). These images don't have any exif orientation.

Steps to reproduce

cv::imread(path, IMREAD_COLOR)

Issue 2:
System information (version)

OpenCV => 3.4.2

Operating System / Platform => Windows 10

Compiler => Visual Studio 2017

Detailed description

Hello there! I'm experiencing some memory leak on OpenCV when working with C++ threads. I've seen some similar problems around but not quite the same. Also, the ones I've found were not solved.

I've reduced my code down to the simplest test one can make in which the problem persists.

What it does: 1000 threads are spawned and each one of them will:

Create a 300x300 Mat image filled with zeros;

Add the image with itself and store in a new Mat. This is done 100 times within the each thread.

Memory leaks as shown below:

Steps to reproduce

void static thread_call(int id, int n_threads) {
cv::Mat teste = cv::Mat(300, 300, CV_32FC1, cv::Scalar(0));
for (int i = 0; i < 100; i++) {
cv::Mat result;
cv::add(teste, teste, result);
}
}

void static test() {
int n_threads = 1000;
for (int i = 0; i < 1000; i++) {
//Fork
std::thread *t = new std::thread[n_threads];
for (int i = 0; i < n_threads; ++i)
t[i] = std::thread(thread_call, i, n_threads);
//Join
for (int i = 0; i < n_threads; ++i)
t[i].join();
delete[] t;
}
return;
}

int main()
{
test();
return 0;
}

Any insights are welcome :)
Issue 1:
I'm fairly often finding old versions of Rust docs from other sites when I Google things. For instance, searching for 'rust macro_rules' finds me http://web.mit.edu/rust-lang_v0.9/doc/guide-macros.html (as the second result, after the Rust by Example page), and the rust-lang.org page is nowhere to be found. Googling 'ContravariantLifetime' finds me http://www.contrib.andrew.cmu.edu/~acrichto/doc/std/kinds/marker/struct.ContravariantLifetime.html .

One way to avoid this going forward would be for the documentation included in release tarballs to use a <link rel="canonical"> tag pointing to the corresponding doc.rust-lang.org URL for that documentation page. This would allow the pages to be viewed directly without redirects (preserving local use), but any search engine juice would be repointed at the official URL.

See the following pages for discussion on canonical links:

https://support.google.com/webmasters/answer/139066#2

https://developer.mozilla.org/en-US/docs/Web/HTTP/www_and_non-www_URLs#Using_link_with_the_attirbute_rel.3D.22canonical.22

https://www.mattcutts.com/blog/canonical-link-tag/

http://moz.com/blog/complete-guide-to-rel-canonical-how-to-and-why-not

The other option would be to include <meta name="robots" content="noindex"> in the documentation in tarballs, which would completely prevent them from getting indexed. This tag would of course need to not be in the doc.rust-lang.org version; I don't know if this would be difficult.

I could probably create a PR if that would be helpful, but I'm not at all familiar with the doc generation and release tarball creation process.

Issue 2:
When multiple versions of the documentation are available, it tends to pollute google results. As a way to prevent that, it would be good to always have the latest stable release available under /current/, and have all previous versions + the master docs contain canonical links to the current docs like:

<link rel="canonical" href="http://.../current/..." />

That way it consolidates all results under the current URL which will always be correct, and it also encourages people linking to docs in blog posts and such to use links that will not rot.

/cc @alexcrichton
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.19613.1005]
PowerToys version: 0.19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Use the SHIFT feature of Fancy Zones and place window in any position that's next to the taskbar.

Expected behavior

The window does not clip into the taskbar area.

Actual behavior

The window goes below the taskbar where I cant click it anymore.

Screenshots

https://imgur.com/a/0uGRHWQ

Issue 2:
Environment

Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%)

Steps to reproduce

Set Windows taskbar location to Top

Snap a window to a FancyZone (2 priority grid zones in my case)

Expected behavior

The window should snap to the full-height of the FancyZone below the task bar

Actual behavior

The window snaps behind the task bar (as shown with the green arrows)

The window leaves a gap underneath each window (as shown with the red arrows), which exposes the desktop background underneath

Screenshots
Issue 1:
How hard would it be to hash incoming string values, or use the LabelEncoder internally?

I'd be willing to contribute some code for this if there are no outstanding design blockers.

/cc @jnothman

Issue 2:
The following loop is embarrassingly parallel:

https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/ensemble/gradient_boosting.py#L552

Edit: I (@ogrisel) removed the Easy tag and put a Moderate tag instead. Based on the discussion below the most beneficial way to add n_jobs support for GBRT would be deep inside the Cython tree code (to benefit GB regression and adaboost models as wells instead of just GB classification).
Issue 1:
Currently it is impossible to access owner's fields from a nested aggregation. So it is not possible to do following:

Bucket aggregations on them (a very common use case) as a sub aggregation of the nested one. For example If multiple lawyers are assigned to cases of different types and each assignment captures his/her hours spent and report needs to be total hours by lawyer by case type. It is impossible to do so. Using reverse_nested and back will not produce desired results

Filter on owner's fields within aggregations.

Metrics aggregations on owner's fields are a little less useful as there will be double-counting but often are necessary as well

Issue 2:
Currently it is impossible to access owner's fields from a nested aggregation. So it is not possible to do following:

Bucket aggregations on them (a very common use case) as a sub aggregation of the nested one. For example If multiple lawyers are assigned to cases of different types and each assignment captures his/her hours spent and report needs to be total hours by lawyer by case type. It is impossible to do so. Using reverse_nested and back will not produce desired results

Filter on owner's fields within aggregations.

Metrics aggregations on owner's fields are a little less useful as there will be double-counting but often are necessary as well
Issue 1:
Running @timholy 's test case from #13350:

commit 7dcc01b:

Without parentheses:
0.567878 seconds (16.01 M allocations: 488.552 MB, 5.03% gc time)
With parentheses:
0.421889 seconds (11 allocations: 480 bytes)

commit 8ce7a02

Without parentheses:
2.149215 seconds (70.01 M allocations: 1.654 GB, 5.22% gc time)
With parentheses:
2.251477 seconds (74.00 M allocations: 1.773 GB, 5.45% gc time)

cc @vtjnash

Issue 2:
Using the ForwardDiff package it seems that type inference can figure out the result of an operation fine on 0.4.1 but not on 0.5.

As an example:

On 0.4.1:

julia> Base.return_types(*, (ForwardDiff.GradientNumber{2,Float64,Tuple{Float64,Float64}},Float64))
1-element Array{Any,1}:
ForwardDiff.GradientNumber{2,Float64,Tuple{Float64,Float64}}

On latest 0.5:

julia> Base.return_types(*, (ForwardDiff.GradientNumber{2,Float64,Tuple{Float64,Float64}},Float64))
1-element Array{Any,1}:
ForwardDiff.GradientNumber{N,T,C}

A (low res) screenshot of warntype where the colors are visible:

http://i.imgur.com/u17xqPI.png
Issue 1:
Context:

Playwright Version: Latest

Operating System: Mac

Node.js version: Latest

Browser: Chromnium

Extra: Playwright Test for VSCode v0.2.10

Describe the bug

Whenever I start using Playwright Inspector, it keeps opening Google Search webpage after I close and open the window.

Video is attached.

Screen.Recording.2022-09-16.at.15.40.25.mov

Please have a look at it. Thanks!

Issue 2:
Good Morning Playwright Team. I face an issue on Playwright where my green arrow button cannot be found. Could you assist me on this matter? (Shown in the photo below this sentence) Thank you so much for your assistance. I really appreciate it.

System info

Playwright Version: [v1.XX]

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

Browser: [All, Chromium, Firefox, WebKit]

Other info:

Source code

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

Link to the GitHub repository with the repro

[https://github.com/your_profile/playwright_issue_title]

or

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], },
},
});

Test file (self-contained)

it('should check the box using setChecked', async ({ page }) => {
await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
await page.getByRole('checkbox').check();
await expect(page.getByRole('checkbox')).toBeChecked();
});

Steps

[Run the test]

[...]

Expected

[Describe expected behavior]

Actual

[Describe actual behavior]