WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
System info

Playwright Version: 1.33.0

Operating System: Windows 11

Browser: electron

Other info:

Before I update playwright today (May, 15), this error didn't happen. I tried to run the same script last week and was running ok. Didn't happen any update in my electron app that could possible break.

Test file (self-contained)

test.beforeEach(async ({ page }) => {
electronApp = await electron.launch({ executablePath: '< my electron path >' });
window = await electronApp.firstWindow();

Expected

Expect to open the electron app and run the test script.

Actual

Appears the error:

test_LoginNGMT.spec.js:26:5 › Try to Sign In › login field ────────────────────────────────────

Test timeout of 30000ms exceeded while running "beforeEach" hook.

Issue 2:
Playwright shows test.step in various reporters, but it isn't shown in traces. Showing them can help with dissecting larger traces from large tests.
Issue 1:
Environment

Windows build number: Version 1903 (OS Build 18362.295) in a Hyper-V VM
PowerToys version: v0.11.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

-Enable FancyZones

Override Windows Snap hotkeys (win+arrow) to move between zones

Expected behavior

Works on all my monitors (currently 2 attached as extended).

Actual behavior

I can move windows around on my main monitor. The second one is ignored.

Screenshots

Issue 2:
Summary of the new feature/enhancement

Currently the new FZ editor only comes up and applies zone layouts to the primary monitor. In order to get a layout on a different monitor, the original custom editor is needed. Bret and Jeff have a design for this change and now they need to implement it.

Proposed technical implementation details (optional)

Note that when this is done the original editor should be removed as well as the setting to toggle between editors.
Issue 1:
Roles would look cleaner if filenames were shortened from roles/foo/tasks/main.yml to roles/foo/tasks.yml. Counting a directory as a file, this would reduce the number of files inside role directories with 50%. Moreover, file lookup in editors such as sublime text would work better, because typing roles/foo/tasks is the shortest string that is guaranteed to give the correct file as the first hit.

Of course, the old structure should still be supported too, for backward compatibility.

ISSUE TYPE

Feature Idea

COMPONENT NAME

roles

ANSIBLE VERSION

ansible 2.2.1.0

config file =

configured module search path = Default w/o overrides

SUMMARY

Roles would look cleaner if filenames were shortened from roles/foo/tasks/main.yml to roles/foo/tasks.yml

Issue 2:
ISSUE TYPE

Feature Idea

ANSIBLE VERSION

ansible 2.1.0

OS / ENVIRONMENT

N/A

SUMMARY

The directory structure would me much more compact if a file roles/<X>/tasks.yml were included as roles/<X>/tasks/main.yml is right now.

When a project is organized in many, small(-ish) roles with only a few tasks/vars/etc each, the directory layout quickly becomes a nightmare to navigate. See the attached screenshot.

While the standard layout tries to encourage a modular, include-based structure, many roles require just 2 or 3 tasks, which are easier to work with in a single file.

Many editors and IDEs also support a go to file shortcut with fuzzy matching. These become somewhat useless when all files are named main.yml. The same is true for labels on tabs etc.

STEPS TO REPRODUCE

Create a file tasks.yml, meta.yml... in a role directory.

EXPECTED RESULTS

The tasks should be run, etc.

ACTUAL RESULTS

The tasks etc. are not run/included.
Issue 1:
Environment

Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Expected behavior

Actual behavior

When I resize the terminal in ubuntu overlay the text is duplicated.

Issue 2:
Environment

Windows build number: [Version 10.0.18362.175]
Windows Terminal version (0.2.1715.0):

Steps to reproduce

open any terminal (PowerShell/cmd/wsl). type any command (e.g. dir, ver, uname) and enter. resize the app window to the minimum and gradually enlarge the window.

Expected behavior

information should stay the same. shouldn't break and should render all the characters like below

Actual behavior

breaks apart and doesn't render properly
Issue 1:
feature request description

The NLP community is shifting from LSTMs to Transformers for a number of NLP tasks.

This would be great if we could have a packed standard Transformer implementation in the 'nn' package, i.e. a nn.Transformer, just like we have a nn.LSTM.

Code example

fairseq-py has a tested implementation of the Transformer encoder and decoder (for LM and NMT) https://github.com/pytorch/fairseq/blob/master/fairseq/models/transformer.py. Wrapping this up in 'nn' should be the most straightforward approach to reimplementing this model.

Thanks!

Issue 2:
🐛 Bug

The result of torch.max with dim is different on CPU and on CUDA. CPU version return the last element, while CUDA version returns first.

To Reproduce

Steps to reproduce the behavior:

In [1]: import torch

In [2]: torch.max(torch.ones(1, 4), dim=1)
Out[2]:
torch.return_types.max(
values=tensor([1.]),
indices=tensor([3]))

In [3]: torch.max(torch.ones(1, 4).cuda(), dim=1)
Out[3]:
torch.return_types.max(
values=tensor([1.], device='cuda:0'),
indices=tensor([0], device='cuda:0'))

Expected behavior

CPU and CUDA version should give the same result for sure.

In my opinion, cuda behavior is correct because it aligns with NumPy.

From the other hand current torch.argmax implementation follows the cpu behaviour.

upd. There is an open pull request that fixes this behavior for argmax #37864 .

Environment

In [4]: torch.__version__
Out[4]: '1.5.0a0+8f84ded'

Additional context
Issue 1:
Here's an example where Alpha and Beta both extend Axios and when you log instances of these classes you can see that this.defaults.headers are shared between the two classes.

The expected behavior would be that alpha would only contain the alpha header and beta would only contain beta.

Any idea why this is not the case and how a PR can be made to fix this?

import { Axios } from 'axios'

export class Alpha extends Axios {
constructor () {
super()
this.alpha = 'alpha'
this.defaults.headers.alpha = 'alpha'
}
}

export class Beta extends Axios {
constructor () {
super()
this.beta = 'beta'
this.defaults.headers.beta = 'beta'
}
}

let alpha = new Alpha()
let beta = new Beta()

console.log(alpha)
console.log(beta)

Alpha {
defaults:
{ transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
headers:
{ common: [Object],
patch: [Object],
post: [Object],
put: [Object],
alpha: 'alpha',
beta: 'beta' },
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus] },
interceptors:
{ request: InterceptorManager { handlers: [] },
response: InterceptorManager { handlers: [] } },
alpha: 'alpha' }
Beta {
defaults:
{ transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
headers:
{ common: [Object],
patch: [Object],
post: [Object],
put: [Object],
alpha: 'alpha',
beta: 'beta' },
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus] },
interceptors:
{ request: InterceptorManager { handlers: [] },
response: InterceptorManager { handlers: [] } },
beta: 'beta' }

Issue 2:
If I have two instances of axios created with axios.create and I set a default header on one, it also changes it on all the other ones in existence.

var instance1 = this.oauthService = axios.create({});
var instance2 = this.oauthService = axios.create({});

instance2.defaults.headers.common['Authorization'] = 'askdjfaksdjf';

Both instance1 and 2 now have the Authorization header changed. I believe the problem is that the util.merge operation doesn't do deep merging, though as you see below, only if the result[key] and val are both objects, does it do a recursive merge, otherwise it assigns the value by reference.

function merge(/\* obj1, obj2, obj3, ... */) {
var result = {};
function assignValue(val, key) {
if (typeof result[key] === 'object' && typeof val === 'object') {
result[key] = merge(result[key], val);
} else {
result[key] = val;
}
}

for (var i = 0, l = arguments.length; i < l; i++) {
forEach(arguments[i], assignValue);
}
return result;
}
Issue 1:
Tensor split still works, but Variable split does not.

In [19]: v = Variable(torch.Tensor(5,1))

In [20]: v.split(1)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-20-f71aa3328821> in <module>()
----> 1 v.split(1)

/data/users/alerer/pytorch/pytorch/torch/autograd/variable.py in __getattr__(self, name)
84 if name in self._fallthrough_methods:
85 return getattr(self.data, name)
---> 86 raise AttributeError(name)
87
88 def __getitem__(self, key):

AttributeError: split

Issue 2:
High Priority:

repeat

split

std

var

renorm

eq

ge

gt

le

lt

ne

Mid Priority:

cross

cumsum

trace

unfold

cumprod

atan2

__and__

__bool__

__iand__

__ior__

__ixor__

__mod__

__nonzero__

__or__

__xor__

cauchy

exponential

fill

geometric

log_normal

normal

ones

random

uniform

zero

zeros

Wontfix (as in very very low priority, but PRs are welcome!):

gesv

inverse

potrf

svd

trtrs

orgqr

ormqr

potri

potrs

pstrf [NOW DEFUNCT]

qr

symeig

eig

gels

geqrf
Issue 1:
Steps to Reproduce

As of a few days ago, hot reload (by typing little-r) consistently crashes the Android Flutter application.

@apwilson is also seeing this.

Flutter Doctor

[✓] Flutter (on Mac OS, channel master)

• Flutter at /Users/dayang/fuchsia/lib/flutter

• Framework revision 0533ffc (64 minutes ago), 2017-02-28 18:25:28

• Engine revision 0edcbb7

• Tools Dart version 1.23.0-dev.0.0

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.2)

• Android SDK at /Users/dayang/Library/Android/sdk

• Platform android-25, build-tools 25.0.2

• Java(TM) SE Runtime Environment (build 1.8.0_111-b14)

[-] iOS toolchain - develop for iOS devices (Xcode 8.2.1)

• Xcode at /Applications/Xcode.app/Contents/Developer

• Xcode 8.2.1, Build version 8C1002

✗ ideviceinstaller not available; this is used to discover connected iOS devices.

Install via 'brew install ideviceinstaller'.

✗ ios-deploy not installed: install via 'brew install ios-deploy'.

[✓] Android Studio (version 2.2)

• Android Studio at /Applications/Android Studio.app/Contents

• Gradle version 2.14.1

[✓] IntelliJ IDEA Community Edition (version 2016.3.3)

• Dart plugin version 163.11306

• Flutter plugin version 0.1.8.1

[✓] Connected devices

• Pixel C • 6119001907 • android-arm • Android 7.0 (API 24)

Issue 2:
If you alter a file and then click the Hot Reload button in IntelliJ then you will be presented with an error that looks like:

error: Unable to read Dart source '
error: Unable to read Dart source 'package:<some file in your project>.dart'.
Application finished.
Issue 1:
Q
A

Bug report?
no

Feature request?
no

BC Break report?
no

RFC?
yes

Symfony version
3.4

While the Symfony DI component is a really awesome tool to help build high quality apps, I was thinking there could be ways to improve its DX in terms of autocompletion in IDEs.

When interacting with service locators, we are used to do things like $this->get('my_service'), or more recently $this->get(MyService::class). Without a Symfony plugin, IDEs are not able to autocomplete what comes after $this->get('my_service') as the type of the returned element is not known until runtime.

After some dicussions with @nicolas-grekas, we came up with the idea of a ServiceSubscriberTrait that could be used to improve DX on this level. Here is an example of usage (the class would be userland, the trait would be in Symfony):

https://gist.github.com/tgalopin/46e2be955762d6d68360dd455afeab70

The idea is to detect in getSubscribedServices all the current class methods and inject automatically the right services in the service locator using the typehints. This would mean developers could autocomplete usages of services by implementing tiny helper methods, relying on the trait to detect what they need based on these methods.

I would like to get opinions about this before trying to work on an implementation. WDYT?

Issue 2:
I would like to use the Validator component to validate objects against a set of rules I need to create programatically.

This validation needs to be applied „stand-alone“ (for example, when populating objects with data provided as JSON). If it could also transparently be used when working with Forms that would be even better.

Basically, it would be great if I could write something similar to

$validator->validate($someObject, array(
new ThisConstraint(…some property path, options ...),
new ThatConstraint(… some other property path, options ...)
));

One example that shows some of the problems I see is a simple DateTime object that I would like to validate as a „FutureDate“ or „PastDate“.

Obviously, I cannot use annotations to define these constraints on the DateTime.

The „PHP“ way of defining annotations via a method on the class (see here) in question also does not work unless I'm subclassing.

Defining two validation groups in YAML or XML for the DateTime class might work, but I think would abuse the idea of validation groups. Additionally, how could I validate an object containing two DateTimes and applying FutureDate and PastDate respectively?

And how could I define the constraints if they need to be based on user input?

I really hope that I am overlooking some (maybe little or undocumented) flex points in the API and would be glad if someone could give me starting pointers.

Will improve docs in return if it works out :-)!
Issue 1:
It's a small problem. Now in "/etc/hosts" of master in vagrant cluster, there are duplicate "127.0.0.1 localhost". Though it doesn't make any error, I think it's better to remove duplicate content.

Issue 2:
Looking at the examples in guestbook and guestbook-go, there are some properties that appear more than once inside the json file - this is redundant and creates overhead for the api users.

Example:

version and id attributes appear twice.

https://github.com/GoogleCloudPlatform/kubernetes/blob/9c8ba8495d1d581808f707d728c6bdd99203e055/examples/guestbook-go/redis-master-pod.json
Issue 1:
System information

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

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): N/A

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A

TensorFlow installed from (source or binary): N/A

TensorFlow version (use command below): N/A

Python version: N/A

Bazel version (if compiling from source): N/A

GCC/Compiler version (if compiling from source): N/A

CUDA/cuDNN version: N/A

GPU model and memory: N/A

Exact command to reproduce: N/A

Describe the problem

Currently, the TensorFlow Python library is released in two flavours: CPU-only and CPU/GPU. The latter is dynamically linked with CUDA libraries and fails to load if they are not available in the linker path.

ImportError: dlopen([...]/tensorflow/python/_pywrap_tensorflow_internal.so, 10): Library not loaded: @rpath/libcublas.8.0.dylib
Referenced from: [...]/tensorflow/python/_pywrap_tensorflow_internal.so
Reason: image not found

I suspect that it might be possible to load CUDA libraries dynamically at runtime. This would allow having a single TensorFlow build which attempts to load CUDA, and if it is not available, falls back to CPU-only ops.

It hard for me to estimate the feasibility of the proposal for the current TensorFlow runtime implementation, so it might as well be the case, that the proposed change is too big/intrusive to be practical.

Issue 2:
I did not find a PR for this patch. Maybe this discussion belongs to that particular commit page. If so, I will move it there.

Can somebody explain the rationale behind this patch? Current contrib/verbs uses exactly this flag to transfer tensors. Note it is set true here. Removing it totally breaks verbs. I am asking if this patch is absolutely needed since there is no simple workaround for contrib/verbs without this flag.
Issue 1:
System info

Playwright Version: [v1.32]

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

Browser: [Chromium]

Source code

@pytest.fixture(scope="session")
def browser_context_args(browser_context_args):
current_test = os.environ.get("PYTEST_CURRENT_TEST").split(":")[-1].split(" ")[0]
tc_id = current_test.split("_")[1]
path = f"results/{tc_id}.har"
return {
**browser_context_args,
"viewport": {
"width": 1920,
"height": 1080,
},
"record_har_path": path,
"record_har_omit_content": False,
}

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

Steps

I'm using the attached fixture within the tests

At the end the HAR is created with all the requests done in Browser, except the OPTIONS method requests

I also tried creating the HAR file 'manually' by using page.on("requestfinished") but it looks like OPTIONS requests are not intercepted 🤔

Is there some extra configuration I'm missing to 'force' the OPTIONS request to be present?

Expected

OPTIONS requests to be present

Actual

OPTIONS requests are missing

Issue 2:
Playwright currently offers the LocatorAssertions.toHaveCount function, that allows to expect -with wait- for a locator to have an exact count.

await expect(someLocator).toHaveCount(1);

However, it doesn't provide an out of the box way for asserting on non-exact counts.

The proposal here is to add the following additional functions:

await expect(todoLocator).toHaveCountGreaterThan(2);
await expect(recentTodoLocator).toHaveCountLessThan(4);

See related: #14278 (comment)
Issue 1:
tooltips are always positioned on top wherever they were configured to be, this even affects the main demo: http://twitter.github.com/bootstrap/javascript.html#tooltips

Issue 2:
congrats on releasing 2.3.0!

I was checking out some of the docs and saw that tooltips data-placement is not working correctly. I think its because of the one pull request that makes options set in javascript override the options that were set in the html but I'm not sure..
Issue 1:
Julia's ease of use and speed advantages over other languages makes it a very good candidate for general purpose programming in addition to scientific analysis. There have been a few interesting issues that have come up that indicate that a deeper exploration of Julia in a potentially untrusted/multi-user environment is warranted (cf. #9147 and the recent discussion on julia-users about include_string() here: https://groups.google.com/d/msg/julia-users/fcB3z2shu1M/5gojVAbeUk8J).

I think several questions need to be answered prior to engaging in an exploration of Julian security:

Is Julia explicitly designed to be used in a multi-user / untrusted environment? Alternately, is there any design goal for Julia that would preclude its use in such environments?

Are there known issues with Julia that would expose data or systems to inadvertent code execution, disclosure, or alteration of data?

Has data integrity and confidentiality in Julia been the subject of prior analysis?

As a followon to 2), what mechanisms exist in Julia that could be considered security-centric?

There are likely other questions that need addressing as well. Is there interest in examining this topic?

Issue 2:
A typo in one area of my codebase trigged illegal instructions at another, making it hard to debug. Here is my minimal example:

struct sparse_t
val::Vector{Float64}
sub::Vector{Int64}
end

# BUGGY SPARSE TO DENSE
# Should have been
# Base.convert(::Type{Vector}, v::sparse_t) = copy(v.val)
#
Base.convert(Vector, v::sparse_t) = copy(v.val)

spvec = sparse_t(zeros(Float64,5), Vector{Int64}())
println(spvec) # <-- Illegal instruction (core dumped)

I am aware that this might be a duplicate of #24499, but also note that this issue was closed without resolution. Is it possible to get proper errors at the print statement, or alternatively errors/warning about Base.convert definitions without explicit type information? Core dumps are scary..

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2470 v2 @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, ivybridge)
Issue 1:
I'd like to implement an alternative jump to file that uses a custom matching algorithm. Is this possible, or is the extension API too limited to do this?

The closest thing seems to be the quickpick api, and it falls short. Perhaps QuickPickItem could be allowed to implement a matches(input:string):boolean method?

Issue 2:
If I accept input using

window.showInputBox();

Is there any way I can listen to key change events? I am writing an extension and I want to accept an input from the user and I want to autocomplete when the user hits tab like most terminals. If this is not possible inside the inputbox is there any other control I can use to achieve this?
Issue 1:
TypeScript Version:

1.8.7

Code

type StringOrNumberKeys: { [key: string | number]: number };

Expected behavior:

Should work

Actual behavior:

Error: an index signature parameter must be 'string' or 'number'

Issue 2:
This syntax :

var map: { [index: string|number ]: number };

results in compiler error :

An index signature parameter type must be 'string' or 'number'.
Issue 1:
requests/requests/utils.py

Line 497
in
1431502

if 'text' in content_type:

From RFC 2616:

When no explicit charset parameter is provided by the sender, media subtypes of the "text"

type are defined to have a default charset value of "ISO-8859-1" when received via HTTP.

However, from RFC7231:

The default charset of ISO-8859-1 for text media types has been removed;

Actually, if requests uses the default charset of ISO-8859-1, the property text of response will always lose the efficiency of chardet and cause messy code problem.

I think these lines should be deleted.

Issue 2:
Referring to these lines: https://github.com/kennethreitz/requests/blob/master/requests/sessions.py#L457-L458

attrs is not defined and hence pickling of the session fails.
Issue 1:
System information (version)

OpenCV => 4.1.1

Operating System / Platform => ubuntu 18.4 jetson nano xavier vx jetpack 4.4 DP[l4T 32.4.2]

Compiler => g++

Detailed description

The code to set the windows fullscreen is not work when in jetson nano xavier vx.

And the code to freeratio the windows is also not work in this platform.

It is aarch64 frame.

Steps to reproduce

Issue 2:
System information (version)

OpenCV => 3.1

Operating System / Platform => Linux Ubuntu 16.04

Compiler => gcc

Detailed description

On GTK, calling cv::setWindowProperty(name, WND_PROP_FULLSCREEN, WINDOW_FULLSCREEN) will only enforce the window to go fullscreen if the current property value on that window is WINDOW_NORMAL). This is can also be observed in the highgui GTK source code here.

I discovered this after trying to force a window to fullscreen with setWindowProperty, since cv::namedWindow(name, WINDOW_FULLSCREEN) was not making a fullscreen window.

Steps to reproduce

The following lines will not produce a fullscreen window:

namedWindow(name, WINDOW_FULLSCREEN);
setWindowProperty(name, WND_PROP_FULLSCREEN, WINDOW_FULLSCREEN);
imshow(name, frame);

The following lines will produce the desired fullscreen result:

namedWindow(name, WINDOW_NORMAL);
setWindowProperty(name, WND_PROP_FULLSCREEN, WINDOW_FULLSCREEN);
imshow(name, frame);