WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
When I have a line in my test that fails when something doesn't go right with a page selector, I'd like to know exactly what selector failed. If my selector is composed using a template string, I want to know what the final string was, not the name of the variable I interpolated.

For example with this error message:

One question I have is, was something wrong with the duplicateName variable I interpolated ? If I could have the information about which selector failed above the failed line printout, then I could determine that much more quickly.

For example if my variable was duplicateName: 'My Duplicate' then I could receive the error message:

Expected locator "text=My Duplicate" to be visible.

Issue 2:
System info

Playwright Version: [v1.35.0]

Operating System: [All]

Browser: [All]

Source code

widgetLoadingContainer - Locator of an UI element (could be single or many)

public async waitLoadersHidden() {
try {
await this.widgetLoadingContainer.first().waitFor();
} catch (error) {}

for (const dot of await this.widgetLoadingContainer.all()) {
await dot.waitFor({ state: 'hidden' });
}
}

Here we wait for first element is visible (default action time = 5 seconds)

Once first element is 'visible' -> we take all of them and wait each one has 'hidden' state immediately

If element wasn't 'visible' during 5 seconds -> we take all of them and wait each one has 'hidden' state

Sometimes element(s) is not visible and it's ok.

But in this cases try is failed -> the step is also marked as 'failed' in the reporting (when by fact it's passed).

Steps

[Run a test with step that has failed action/verification surrounding with try/catch block]

Expected

The step is marked as passed

Actual

The step is marked as failed
Issue 1:
@babel/standalone update to 7.13.2 version will get this error:

Issue 2:
Bug Report

Current behavior

Simply including babel/standalone results in an error Module not found: Error: Can't resolve 'module' in 'project/node_modules/@babel/standalone'

Repo to reproduce: https://github.com/matyasf/babel-standalone-bug

Input Code

clone the repo, run yarn and then yarn run bundle The code that is causing error during compilation:

import { transform } from '@babel/standalone'
const tt = transform

The error is:

ERROR in ./node_modules/@babel/standalone/babel.js 92843:15-32
Module not found: Error: Can't resolve 'module' in '/Users/matyas.szabo/CODE/instructure-ui/node_modules/@babel/standalone'
resolve 'module' in '/Users/matyas.szabo/CODE/instructure-ui/node_modules/@babel/standalone'
Parsed request is a module
using description file: /Users/matyas.szabo/CODE/instructure-ui/node_modules/@babel/standalone/package.json (relative path: .)
Field 'browser' doesn't contain a valid alias configuration
...

Expected behavior

no error

Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)

Filename: babel.config.js: none

Webpack.config.js:

const path = require('path')
const outputPath = path.resolve(__dirname, '__build__')
console.info(`Building documentation`)

module.exports = {
mode: "development",
module: {
rules: [
{
test: /\.m?js$/,
exclude: [/node_modules/, /\/lib\//, /\/es\//, /\.examples\.js$/],
use: [
{
loader: 'babel-loader'
}
]
}
]
},
entry: {
globals: './globals.js'
},
output: {
path: outputPath,
filename: '[name].js'
}
}

Environment

System:
OS: macOS 10.15.7
Binaries:
Node: 15.2.1 - ~/.nvm/versions/node/v15.2.1/bin/node
Yarn: 1.22.10 - ~/CODE/instructure-ui/node_modules/.bin/yarn
npm: 7.5.3 - ~/.nvm/versions/node/v15.2.1/bin/npm
npmPackages:
@babel/core: ^7.13.1 => 7.13.1
@babel/standalone: ^7.13.7 => 7.13.7
babel-loader: ^8.2.2 => 8.2.2
webpack: ^5.24.2 => 5.24.2

Additional context
Issue 1:
Describe the issue:

In the context of array API spec I observed that np.add(np.array([0]), np.array([])) outputs an empty array, while np.add(np.array([1,2]), np.array([])) raises a ValueError which seems questionable.

I would have expected both inputs to raise an exception.

Reproduce the code example:

import numpy as np

print(np.add(np.array([1]), np.array([]))) # outputs empty array

print(np.add(np.array([1, 2]), np.array([]))) # raises ValueError

Error message:

$ python -c "import numpy as np; print(np.add(np.array([1]), np.array([]))); print(np.add(np.array([1, 2]), np.array([])))"
[]
Traceback (most recent call last):
File "<string>", line 1, in <module>
ValueError: operands could not be broadcast together with shapes (2,) (0,)

NumPy/Python version information:

In [7]: (np.__version__, sys.version)

Out[7]: ('1.21.2', '3.9.7 (default, Oct 27 2021, 01:23:21) \n[GCC 9.3.0]')

Issue 2:
Hello, I am not entirely sure if this is a bug or an intended feature. If the behaviour is intended I can't work out what reason it is there for.

First noticed in Numpy 1.19.1 and reproduced in 1.20.1

Reproducing code example:

import numpy as np
print(np.array([0]) + [])
print(np.array([0]) + np.array([]))

Output

array([], dtype=float64)
array([], dtype=float64)

Expected behaviour

I was expecting an error like you would get if you added two arrays together of different sizes.

numpy.array([0,0]) + numpy.array([])
numpy.array([0,0]) + []
ValueError: operands could not be broadcast together with shapes (2,) (0,)

NumPy/Python version information:

1.20.1 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
Issue 1:
I'm use data fixtures to register a user on database.

For the password, i use the service "security.password_encoder" to encode the password. I use pbkdf2 algorythm.

On action, i use the service security.authentication_utils.

But, i have the same error message "bad credentials".

Issue 2:
In one of our environments prod, we encounter a strange duplication of the version part of asset urls.

I can't see, where the difference lies - the dev environment, which has no difference in this configuration, works just fine.

Templating configuration:

framework:
templating:
engines: ['twig']
assets_version: cd546ad6
assets_version_format: %%s?version=%%s

Twig asset call

{% javascripts
filter="?yui_js"
output="js/backbone.js"
'../vendor/documentcloud/underscore/underscore.js'
'../vendor/documentcloud/backbone/backbone.js'
%}
<script src="{{ asset(asset_url) }}"></script>
{% endjavascripts %}

HTML result:

<script src="/js/backbone.js?version=cd546ad6?version=cd546ad6"></script>
Issue 1:
As you can see in the attached image, the syntax highlighting for TypeScript doesn't work correct anymore. Neither the module nor the type definitions are highlighted. This is a complete new installation I did two days ago. Current version is 0.10.6

Issue 2:
I've upgraded from 0.10.3 to 0.10.5, and the javascript syntax highlighting doesn't work as well as before (OSX El Capitan):

from this:

to this:

I also removed any extension I've installed, but it didn't fix it...
Issue 1:
Would it be possible to allow calling any function on Any so that the value is passed to the function as the first parameter and the parameters passed to the function call on the value is added afterwards?

ex.

sum(a::Int, b::Int) -> a + b

a = 1
sum(1, 2) # = 3
a.sum(2) # = 3 or
1.sum(2) # = 3

Is it possible to indicate in a deterministic way what a function will return in order to avoid run time exceptions?

Issue 2:
| | |_| | | | (_| | | Version 1.6.0-DEV.1653 (2020-12-04)
_/ |\__'_|_|_|\__'_| | Commit 0db72ee7d2* (1 day old master)
|__/ |

julia> MyType{K, T} = Set{T}
Set

Not mentioned in https://docs.julialang.org/en/v1/manual/types/#UnionAll-Types

Sorry in advance if this is a duplicate issue.
Issue 1:
Environment

Windows build number: 18362.449 - Win 10 Pro 1903
PowerToys version: v0.12.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Open editor with Win + ~ and create custom zones. Add new zone. Try and Move zone to second monitor. Or move editor to second monitor and create new zone on second monitor.

Expected behavior

Zone should move to second monitor or open on second monitor.

Actual behavior

Existing and new zone windows are confined to Primary Monitor only.

Screenshots

Issue 2:
As of version 0.11.0 Fancy Zones Feature only seems to work on the Primary Display, this feature would be much more useful if zones could be configured for each display.

I use a laptop (soon a Surface Pro) for my consulting business, but when I am back in one of my offices I extend to multiple displays (one with 2 additional displays and one with a 49" ultra wide). Fancy Zones would be much more useful with this additional displays.

Since a laptop can be plugged into different display configurations (size and location relative to the primary display), it should recall the Fancy Zones per the current Windows multiple display profile being used.

Great start! Lots of promise!
Issue 1:
LOAD CSV WITH HEADERS FROM
"https://gist.githubusercontent.com/timmytofu/ba39ae1bf3669bd36ba3/raw/3be7510f487c50b64259bb3e0c1e68ace9f6af69/bad-neo-import.csv"
AS csv
CREATE (:Foo {fid: toInt(csv.id), thetext: csv.thetext});

Strangely, if I add 0xD (the carriage return Windows puts before newlines) to the line above that starting with "" it works:

LOAD CSV WITH HEADERS FROM
"https://s3.amazonaws.com/vfiles-sandbox/good-neo.csv"
AS csv
CREATE (:Foo {fid: toInt(csv.id), thetext: csv.thetext});

(I had to put that on S3, gist scrubs the carriage return)

This happens on 2.2.1, but not 2.2.0. Tested on Ubuntu 14.04.

Issue 2:
Related to issue #1879, but I'd like to ask for more holistic and general support for post-UNION processing, not just limiting/skipping/ordering.

One way to look at it is very much like a WITH clause. Perhaps UNION WITH would thus be a good name for it, or maybe UNION RESULT to convey that you're now acting on the entire union'ed result.

Our major use case is aggregating a stream of content, where that content is queried in different ways. The important point is: we want to process the content after aggregation, not before. Without this ability with today's UNION, we're less efficient in some cases, and outright buggy in others.

To avoid making this description too long, I'll post an example of the problem in a comment, as well as a proposed syntax in another comment.
Issue 1:
System information (version)

OpenCV => 4.1.0

python 3.7.3

Operating System / Platform => Ubuntu 64 Bit

PyTorch => 1.1.0

onnx => 1.5.0

conda => 4.6.14

Detailed description

I'm trying to export a model from PyTorch to ONNX to be run in OpenCV, but am getting an error when running cv2.dnn.readNetFromONNX. I've isolated the cause of the error to slicing a tensor. As an example, I've attached a file that attempts to follow these steps for a simple model. The model slices the last dimension of the input and returns.

Script:

import torch
import torch.nn as nn
import onnx
import cv2

class Net(nn.Module):

def __init__(self):
super(Net, self).__init__()

def forward(self, x):
return x[...,2:5]

dummy = torch.rand((4,3,10,10))
net = Net()
torch.onnx.export(net, dummy, 'test.onnx', verbose=True)

model_cv2 = cv2.dnn.readNetFromONNX('test.onnx')

I get the following error:

cv2.error: OpenCV(4.1.0) /io/opencv/modules/dnn/src/layers/slice_layer.cpp:147: error: (-215:Assertion failed) requiredOutputs > 0 && inpShape[axis] % requiredOutputs == 0 in function 'getMemoryShapes'

The ONNX graph:

graph(%0 : Float(4, 3, 10, 10)):
%1 : Float(4, 3, 10!, 3) = onnx::Slice[axes=[3], ends=[5], starts=[2]](%0), scope: Net
return (%1)

Steps to reproduce

I've attached a python script to reproduce.

I've also attached the ONNX model.

files.zip

Issue 2:
Transferred from http://code.opencv.org/issues/1682

|| Andrey Kamaev on 2012-03-13 12:37
|| Priority: Low
|| Affected: None
|| Category: highgui-images
|| Tracker: Feature
|| Difficulty: None
|| PR: None
|| Platform: None / None

Utility functions from highgui duplicate functionality of cvtColor function

See http://code.opencv.org/projects/opencv/repository/revisions/7485/entry/trunk/opencv/modules/highgui/src/utils.cpp

History

Alexander Shishkov on 2012-03-20 12:21

- Target version deleted ()

Alexander Shishkov on 2012-03-25 20:14

- Priority changed from Normal to Low

Alexander Shishkov on 2012-03-25 20:48

- Assignee deleted (Alexander Reshetnikov)

Alexander Shishkov on 2012-04-05 12:47

- Target version deleted ()

Vadim Pisarevsky on 2012-10-04 14:48

looks like this is a feature request
- Tracker changed from Bug to Feature
Issue 1:
Just noticed with #7350, we're making a bunch of very long string arrays. What's more, they're (mostly) duplicated between the strings and raw.

tag`some template`;
// "some template" "some template"
_taggedTemplateLiteral(["some template"], ["some template"]);

The only (I think) time that string arrays aren't duplicated is when an "invalid" escape sequence comes up (which are now valid, due to template literal revision).

tag`test${1}\xhello`;
// "invalid" string becomes undefined
_taggedTemplateLiteral(["test", void 0], ["test", "\\xhello"]);

At worst, we could optimize the "all valid strings" case using slice:

// default raw value to a slice of strings
function _taggedTemplateLiteral(strings, raw = strings.slice()) {
return Object.freeze(Object.defineProperties(strings, {
raw: { value: Object.freeze(raw) }
}));
}

// all valid
tag`some template`;
_taggedTemplateLiteral(["some template"]);

// some invalid
tag`\xhello`;
// "invalid" string becomes undefined
_taggedTemplateLiteral([void 0], ["\\xhello"]);

But, realistically, we could just reuse the same string array (it's being frozen, anyways):

function _taggedTemplateLiteral(strings, raw) {
return Object.freeze(Object.defineProperties(strings, {
raw: { value: raw ? Object.freeze(raw) : strings }
}));
}

Issue 2:
💻

Would you like to work on a fix?

How are you using Babel?

Programmatic API (babel.transform, babel.parse)

Input code

//@flow

declare module 'test' {
import type { JSONSchema7 } from 'json-schema';
}

declare module 'test/submodule' {
import type { JSONSchema7 } from 'json-schema';
}

REPL

Configuration file name

No response

Configuration

No response

Current and expected behavior

There is an error about duplicate declaration:

Duplicate declaration "JSONSchema7"
6 |
7 | declare module 'test/submodule' {
> 8 | import type { JSONSchema7 } from 'json-schema';
| ^^^^^^^^^^^
9 | }
10 |
11 |

But, it should be allowed to have same imports in different modules

Environment

not specific to the environment

Possible solution

No response

Additional context

Found this when trying traverse an ATS from parsing flow definitions file (code where it happens).
Issue 1:
In new docs v3.1.0 on page "customize" Google Chrome says:

"Uncaught SyntaxError: Unexpected token / /assets/js/customize.min.js:35".

Also not working button "toggle all"

Issue 2:
I'm opening the issue so we can track its upstream progress.

The customizer fails for me today...

Firefox SyntaxError: invalid regular expression flag s customize.min.js:35

Chrome Uncaught SyntaxError: Unexpected token ILLEGAL customize.min.js:35

which is an uglifyjsweb line. I tried updating uglifyjsweb to the latest uglifyjs 1.x but still the same.

What fixes the issue for me is if I skip the file from being minified. So it led me to think it's a regression in uglifyjs 2.4.9 which was released today. I replaced the uglify used in grunt-contrib-uglify with v2.4.8 and voila, everything works fine.

So someone should report this upstream to uglify-js2.
Issue 1:
i.e:

a=[2,0,-1,3]

np.argsort(a)

output is right:

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

but:

a=[2,-1,0,3]

np.argsort(a)

output has soemthing wrong:

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

The correct outpus should be:

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

Issue 2:
Something very strange happens when you try adding a transposed array to itself:

>>> import numpy as np
>>> arr = np.ones((100, 100))
>>> arr+=arr.T
>>> arr
array([[ 2., 2., 2., ..., 2., 2., 2.],
[ 2., 2., 2., ..., 2., 2., 2.],
[ 2., 2., 2., ..., 2., 2., 2.],
...,
[ 3., 3., 3., ..., 2., 2., 2.],
[ 3., 3., 3., ..., 2., 2., 2.],
[ 3., 3., 3., ..., 2., 2., 2.]])
>>> np.sum(arr==2)
8532
>>> np.sum(arr==3)
1468

arr = arr + arr.T works fine of course.

It looks like because arr.T is a view of arr, while reading values out of arr.T it reads elements of arr that have already been written to. This could lead to some really sneaky bugs. Even just detecting the situation and raising an exception would be an acceptable solution.
Issue 1:
When you use the EntityType without a form builder option, then when you bind it, the whole collection is read from the database. In my case, this means hydrating a table of thousands of records, which of course is both time and memory consuming.

Standard usage of the form would prevent this behaviour, because it'd also mean rendering a select with the same thousands of options when you do a createView call, however, in my case I'm not using the FormView. I use the Form component to deserialize a JSON request. I was able to fix this issue with the following change in my Type:

$builder->add('worker'); // automatically turned into an entity type

to

$builder->add('worker', null, array('query_builder' => function ($er) {
return $er->createQueryBuilder('w');
})));

However, adding this query builder just to prevent the ChoiceList from loading all the entities looks hackish to me.

Issue 2:
The PR #1951 "[Form] Added form type "entity_identifier" has been open for ages now. The number of supporters alone justifies its existence, but I think the requested functionality should be solved in a more generic way.

I think that we should add two new options widget and delimiter to ChoiceType.

widget can be one of the values select, checkbox, radio and text

delimiter can be any single character

The option expanded would be deprecated. I think having a widget and an expanded option at the same time is inconsistent.

Behavior:

widget = 'select': This is equivalent to expanded = false right now.

widget = 'checkbox': multiple must not be set to false. Otherwise equivalent to expanded = true.

widget = 'radio': multiple must not be set to true. Otherwise equivalent to expanded = true.

widget = 'text': A text input is shown.

if multiple is false, the input must equal one of the predefined choices.

if multiple is true, the input is split by the character defined in delimiter (a comma by default), then each value is trimmed (unless trim is false). Each resulting input must equal one of the predefined choices.
Issue 1:
Is your feature request related to a problem? Please describe.

It's currently very inconvenient to create (dynamic) MenuItem's that change based on some condition. Most apps need this, but it requires recreating and replacing the whole menu.

Describe the solution you'd like

If MenuItem accepted a function that returns the options, and called that function before showing the menu, it would solve most problems with creating dynamic MenuItem's.

Example:

new MenuItem(() => ({
label: 'Foo',
checked: someCondition === true
}));

Describe alternatives you've considered

This could be narrowed to just the label, checked, enabled, visible options, as that would cover most use-cases.

new MenuItem({
label: 'Foo',
checked: () => someCondition === true
});

Additional context

This is a slight duplicate of #528, but that issue has gone unanswered for years and doesn't seem to be going anywhere. This issue includes a concrete proposal to solve the main use-cases.

Issue 2:
Can I use the chrome kernel of the local browser? Otherwise, exe volumes are always large after compilation.
Issue 1:
If an application(internet browser in youtube for example) is contained within a fancy zone, and one hits full screen on the video being played, I would like the option added for the fullscreen command to only expand to the size of the fancyzone.

Issue 2:
hi powertoys

i realy hate that we dont have tabs in the file explorer and i dont realy want to download a random 3rd party software

could you please add a explorer tabs feature like we have in microsoft edge
Issue 1:
Suppose I want to make a class with tons of chainable methods, like setters. This works fine.

class Chainable {
public set1(arg) {
this.arg1 = arg;
return this;
}

public set2(arg) {
this.arg2 = arg;
return this;
}

public set3(arg) {
this.arg3 = arg;
return this;
}
}

This allows us to create and setup a new Chainable much more concisely than would otherwise be possible.

a = new Chainable().set1(foo).set2(bar).set3(baz);
// vs
a = new Chainable();
a.set1(foo);
a.set2(bar);
a.set3(baz);

The problem occurs when we want to extend our Chainable class and maintain the chainability of the function calls.

class SuperChainable extends Chainable {
public set4(arg) {
this.arg4 = arg;
return this;
}

public set5(arg) {
this.arg5 = arg;
return this;
}

public set6(arg) {
this.arg6 = arg;
return this;
}
}

a = new SuperChainable().set4(foo).set1(baz);
// this is fine, because set4 returns a SuperChainable

a = new SuperChainable().set1(baz).set4(foo);
// this breaks, because set1 is returning a Chainable, not SuperChainable

var a: SuperChainable;
a = new SuperChainable.set1(baz); // typeError, set1 returns a Chainable, not SuperChainable

There is a workaround, but it is verbose and boiler-platey:

class SuperChainable extends Chainable {
public set4(arg) {
this.arg4 = arg;
return this;
}

public set5(arg) {
this.arg5 = arg;
return this;
}

public set6(arg) {
this.arg6 = arg;
return this;
}

public set1(arg) {
super.set1(arg);
return this;
}

public set2(arg) {
super.set2(arg);
return this;
}

public set3(arg) {
super.set3(arg);
return this;
}
}

When set1 is called on a SuperChainable and returns this, the this really is a SuperChainable and not a Chainable. So it seems to me that the typescript compiler is in error in treating the return value as a Chainable. If this error were fixed, it would be much easier to create inherited objects that support method chaining.

(copied over from now-closed issue on codeplex: https://typescript.codeplex.com/workitem/2332)

Issue 2:
The early discussions about generics had this feature outlined, but it never made it into the final version for some reason. Meanwhile, it would be extremely helpful in some cases. The use case that it most dear to my heart is Knockout:

interface Observable<T> {
<U>( this: U, value: T ): U;
}

var viewModel = {
Str: ko.observable( "abc" ),
Num: ko.observable( 5 )
};

viewModel.Str( "xyz" ).Num( 10 );
Issue 1:
Challenge Waypoint: Constructing Strings with Variables has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36.

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

My code:

// Example
var ourName = "Free Code Camp";
var ourStr = "Hello, our name is " + ourName + ", how are you?";

// Only change code below this line
var myName = 'Michael';
var myStr = 'My name is' + myName + ' and I am swell!';

This waypoint only works with double quotes. Should be both double and single quotes.

Issue 2:
In the waypoint, a solution with single quotes returns an error.

The same answer with double quotes returns a correct submission.

The code for the waypoint currently:

"solutions": [

"var ourStr = "I come first. " + "I come second.";\nvar myStr = "This is the start. " + "This is the end.";"

Maybe a solution:

"solutions": [

"var ourStr = "I come first. " + "I come second.";\nvar myStr = "This is the start. " + "This is the end.";\nvar myStr = 'This is the start. ' + 'This is the end';\nvar myStr = "This is the start. " + 'This is the end';\nvar myStr = 'This is the start. ' + "This is the end";"
Issue 1:
Column ordering viz. .col-push-* and .col-pull-* modifier classes behave weird when on a tablet view, viewports of size, "Small tablet landscape (800x600)" and "Tablet portrait (768x1024)", The push element seems to overflow outside the screen, as an example on http://getbootstrap.com/css/#grid-column-ordering

Issue 2:
<div class="container">
<div id="teaser" class="row">
adsffdasdf
</div>

<div id="main" class="row">

<div class="col-lg-9 col-push-3">
asdfsdaf

</div>

<div class="col-lg-3 col-pull-9">
asdffaf

</div>
</div>
</div>

output on smaller resolution, see attached screenshot