WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Context:

Playwright Version: [1.19]

Describe the bug

In this below POM demonstration example, visibility check element is duplicated. This is misleading in POM context. So documentation needs to updated.

https://playwright.dev/docs/test-pom

Expected:

await expect(this.coreConceptsLink).toBeVisible();

As "this.coreConceptsLink = page.locator('text=Core concepts');"

is already defined in PlaywrightDevPage constructor

Actual

await expect(this.page.locator('h1').locator("text=Core concepts")).toBeVisible();

Add any other details about the problem here.

Issue 2:
System info

Playwright Version: 1.36.0

Operating System: OSX

Browser: N/A

Other info:

package.json config file

"devDependencies": {
"@playwright/test": "^1.36.0",
}

We do not have playwright as a dependency anywhere.

Steps

Add "@playwright/test": "^1.36.0", to dev dependencies

Run npx playwright install --with-deps

Expected

We get playwright 1.36.0 installed; I can see it's a new release only recently available

Actual

╔════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ Playwright Test integrity check failed: ║
║ You have @playwright/test version '1.36.0' and 'playwright' version '1.33.0' installed! ║
║ You probably added 'playwright' into your package.json by accident, remove it and re-run 'npm install' ║
╚════════════════════════════════════════════════════════════════════════════════════════════════════════╝

cc @aslushnikov
Issue 1:
Before 3.0.3 it was possible to setup a table with table-striped and use the contextual. Now the styling by table-striped overrules contextual classes.

Issue 2:
i have table with class .table-striped. it has 3 rows with tr.danger. only the middle one is red, the other two are default color.

when i remove .table-striped, it works correctly
Issue 1:
When using the (unofficial) babel-plugin-transform-for-of-as-array on a for..of loop that iterates over an imported array variable, the AMD (and CommonJS) modules transform fail to rewrite all of the array references.

Repro: https://github.com/MattiasBuelens/babel-for-of-modules-regression

Input Code

import {array} from 'foo';

for (let elem of array) {
console.log(elem);
}

Babel Configuration (.babelrc, package.json, cli command)

{
"plugins": [
"transform-for-of-as-array",
"transform-es2015-modules-amd"
]
}

Expected Behavior

Babel version 7.0.0-beta.0 generates this code:

define(["foo"], function (_foo) {
"use strict";

for (let _i = 0; _i < _foo.array.length; _i++) {
let elem = _foo.array[_i];
console.log(elem);
}
});

Current Behavior

Babel version 7.0.0-beta.2 generates this code instead:

define(["foo"], function (_foo) {
"use strict";

for (let _i = 0; _i < _foo.array.length; _i++) {
let elem = array[_i];
console.log(elem);
}
});

Note the let elem = array[_i]; inside the loop.

The same problem also occurs with the CommonJS modules transform, which generates:

"use strict";

var _foo = require("foo");

for (let _i = 0; _i < _foo.array.length; _i++) {
let elem = array[_i];
console.log(elem);
}

Context

Our code base only uses for..of on arrays (or array-like objects), so we'd like to keep using the optimized transformation provided by this unofficial plugin.

I've tried to reproduce this issue with the standard for..of transform, but that plugin always creates a temporarily variable for the imported array.

Your Environment

software
version(s)

Babel
7.0.0-beta.2

node
7.10.0

npm
5.4.2

Operating System
Windows 10

Issue 2:
Thanks for Babel. I'd love for Babel to be a superset of defs.js so I can deprecate defs eventually. For that reason, I'm going through the defs test suite and will open up issues (for bugs and improvement) as I find them.

~/projects/defs.js/tests % cat var-inside-let.js
"use strict";

// all three var x|y|z = 4 should be errors I believe so we error on all
// v8 --harmony allows the first but not the second and last (2015-08-24: this has now been fixed in v8 so all errors)

if (true) {
let x = 3;
if (true) {
var x = 4;
}
}

let y = 3;
if (true) {
var y = 4;
}

(function() {
if (true) {
let z = 3;
if (true) {
var z = 4;
}
}
})();

Babel should error on all three redeclaration, here you can see the output from defs.js.

~/projects/defs.js/tests % cat var-inside-let-stderr
line 9: x is already declared
line 15: y is already declared
line 22: z is already declared

However, Babel only errors on the middle one TypeError: var-inside-let-copy.js: Line 15: Duplicate declaration "y"
Issue 1:
If a playbook is written to include a dependency role explicitly, that role can be loaded more than once if another role depends on it. Consider this example. base is a role with no dependencies. feature is a role with a meta/main.yml file specifying the base role as a dependency. base will be run twice by default here.

- name: name
roles:
- base
- feature

The docs say "by default, roles can also only be added as a dependency once" and technically that is true, base is loaded once as an explicit module and once as a dependency module. Still, I argue that this behavior should be improved to "by default, roles are added only once" to be more consistent with typical dependency management systems and associated expectations. When feature is run, it should be known that the base dependency has already run.

Issue 2:
As a system administrator I want to install build dependency packages for developer and buildhost machines using the same syntax I install normal packages with.

It would be useful if one could install build-deps via the apt module instead of mixing and matching apt module and commands for "apt-get build-dep "
Issue 1:
As a Haskell programmer, I like the ability to use Unicode character in names. However, I've noticed that the character "𝒢" with the default font causes Atom to place the cursor too far to the right, creating a gap.

Issue 2:
Halp ticket:

support/e61e5074bc3011e396a434cf997499c3

Support for Unicode is incomplete. Unicode characters are shown, but the cursor get stuck, and the navigation with the keyboard arrows stop working.

The user was using this string as an example ג׳ג׳ג׳dwdwdww

Here's a GIF of me pressing just the right arrow key to get from the beginning of the string to the end:
Issue 1:
Challenge Use Spans for Inline Elements has an issue.

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

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

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>

h2 {
font-family: Lobster, Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

</style>

<div class="container-fluid">
<h2 class="text-primary text-center">CatPhotoApp</h2>

<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>

<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary">Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info">Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger">Delete</button>
</div>
</div>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-unshift has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

In the description

Let's take the code we had last time and unshiftthis value to the end: "Paul"

it should read "start" instead of "end"

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-unshift has an issue.

Just a little detail that may lead to confusion: in the description of the Waypoint it's written "to the end", when the unshift function adds the new value to the beginning of the array:

"Let's take the code we had last time and unshift this value to the 'END': "Paul"". (I've written it in uppercase so you can see it better).

That's all. Thanks for the work you're doing! ;)
Issue 1:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.165.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Stack Trace

Uncaught Error: EEXIST, file already exists '/Users/BernzAir/.atom/storage'

At /Applications/Atom.app/Contents/Resources/app/node_modules/mkdirp/index.js:74

undefined

Commands

Config

{
"core": {
"themes": [
"seti-ui",
"seti-syntax"
]
},
"editor": {
"auto-indent": true,
"softWrap": true,
"showIndentGuide": true
}
}

Installed Packages

# User
atom-runner, v2.2.0
auto-update-packages, v0.2.1
autocomplete-paths, v0.7.0
autocomplete-plus, v0.22.3
autocomplete-snippets, v0.2.0
color-picker, v1.2.6
linter, v0.9.0
seti-syntax, v0.2.1
seti-ui, v0.5.1
trailing-spaces, v0.2.3

# Dev
No dev packages

Issue 2:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.165.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Stack Trace

Uncaught Error: EEXIST, file already exists '/Users/812studio/.atom/storage'

At /Applications/Atom.app/Contents/Resources/app/node_modules/mkdirp/index.js:74

undefined

Commands

-0:02.4 project-manager:toggle (input.hidden-input)
-0:00.0 core:confirm (input.hidden-input)

Config

{
"core": {
"themes": [
"brownerd-ui",
"brownerd-syntax"
],
"ignoredNames": [
".git",
".svn",
".DS_Store"
],
"disabledPackages": [
"term",
"linter-scss-lint",
"linter-tidy",
"linter-jshint",
"autocomplete-plus",
"linter-csslint"
]
},
"editor": {
"showIndentGuide": true,
"fontFamily": "Source Code Pro",
"lineHeight": 1.5,
"fontSize": 14,
"softWrap": true
}
}

Installed Packages

# User
ScssBundle, v0.4.0
Stylus, v0.4.0
auto-update-packages, v0.2.1
brownerd-syntax, v0.1.0
brownerd-ui, v0.1.0
color-picker, v1.2.6
editorconfig, v0.2.2
emmet, v2.3.0
less-autocompile, v0.3.3
linter, v0.9.0
linter-js-yaml, v0.1.3
minimap, v3.4.9
project-manager, v1.14.1
tabs-to-spaces, v0.8.0
terminal, v0.28.0

# Dev
No dev packages
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3

Operating System version: macOs Sierra

Java version: JDK 1.7

Steps to reproduce this issue

sleep 1 second for the provider.

@Override
public String sayHello(String msg) {
try {
TimeUnit.SECONDS.sleep(1);
} catch (Exception e) {
e.printStackTrace();
}
return "welcome";
}

set 1 millisecond to trigger the timeout exception.

<dubbo:reference id="demoService" interface="xxx" timeout="1">

</dubbo:reference>

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

The log exception should be short and without extra sensitive data.

Actual Result

The log exception contains the whole RpcInvocation, maybe caused sensitive data's leakage.

Issue 2:
Add missing UT for RedisRegistry which got identified as part of PR review

I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Issue 1:
see http://docs.scipy.org/doc/scipy/reference/special.html

in the Bessel Functions section.

the description of jn() and jv() are identical, however jn() should be "integer order n" while jv() should be "real order v". (c.f. the entries for yn() and yv() )

in the Bessel Functions section, note that the arguments in the function list (typically x1, x2) do not match the arguments in the description (typically n(or v), z)

the optional "out" parameter is not described

Issue 2:
>>> scipy.info(scipy.special.jn)
jv(x1, x2[, out])

y=jv(v,z) returns the Bessel function of real order v at complex z.

Could it be related to https://github.com/scipy/scipy/blob/master/scipy/special/generate_ufuncs.py#L372 where jn is aliased to jv in the ufunc generation code?
Issue 1:
After completing a video challenge, I first see my brownie points increment by 1 and I am directed to the next challenge, but when I havigate away and come back, my recently gained brownie point(s) has/have disappeared and the recently completed challenge(s) is/are not marked as complete.

Issue 2:
I answer all of the quiz questions correctly and the box pops up saying "Congratulations!

Hike completed. Saving..." but then when I go back to the map or my account page there is no record of me having completed the challenge. No green checkbox, no mark on the calendar, and no point.

I did the first video challenge yesterday and everything worked like it's supposed to, but upon logging back in today no progress is being after I complete each subsequent challenge.
Issue 1:
After recent changes to Process (seems like today's changes), getting the following error when firing off a Process command that runs php composer.phar dump-autoload --optimize

proc_close(): 219 is not a valid process resource

Issue 2:
Hello,

after the recent merge to 2.3 of symfony/process all my servers are returning this error:

proc_close(): 356 is not a valid process resource

Note: the number changes depending on the environment.

Any idea? I'm pretty sure that every Laravel 4 installation is broken right now
Issue 1:
Based on the documentation here tf.nn.in_top_k treats ties as positive, which is almost never what you'd want. This is a major flaw, which leads to misleading metrics. An all zero predictions would give you 0 error with any targets. I think the default behavior should be to not count ties,

Issue 2:
This is a feature request related to #10489 (tie handling in function in_top_k)

Would it be possible to add an option/argument specifying whether ties should be included or excluded?

In other words, make it possible for ties to return False instead of True.

Thanks!
Issue 1:
In NumPy 1.13, numpy.diff() no longer works with Bool-Arrays:

>>> import numpy as np
>>> np.diff([True, False, False])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../lib/python3.6/site-packages/numpy/lib/function_base.py", line 1926
, in diff
return a[slice1]-a[slice2]
TypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logi
cal_xor function instead.

It worked in NumPy 1.12.1 and the documentation says that it should still work:

>>> import numpy as np
>>> np.diff([True, False, False])
array([ True, False], dtype=bool)

Issue 2:
Should modify the docstring accordingly, raise a meaningful error, or (preferably) make it work by hidding some logic under the hood.

Traceback:

In [11]: x = np.array([[True, True], [False, False]])

In [12]: np.diff(x)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-12-59225436601c> in <module>()
----> 1 np.diff(x)

/usr/lib/python3.6/site-packages/numpy/lib/function_base.py in diff(a, n, axis)
1924 return diff(a[slice1]-a[slice2], n-1, axis=axis)
1925 else:
-> 1926 return a[slice1]-a[slice2]
1927
1928

TypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead.

In [13]: np.__version__
Out[13]: '1.13.0'

xref scikit-image/scikit-image#2681
Issue 1:
The change introduced in a108445 causes fields that were valid in 2.6.4 to be invalid in 2.6.5.

When I revert that one commit in 2.6.5 the problem is fixed.

The error I get:

Symfony\Component\Validator\ConstraintViolation
Object(Symfony\Component\Form\Form).children[bundle] = 550fe15080c7e16f5b8b4da0

Caused by:

Symfony\Component\Form\Exception\TransformationFailedException
Unable to reverse value for property path "bundle": The choice "550fe15080c7e16f5b8b4da0" does not exist or is not unique

Caused by:

Symfony\Component\Form\Exception\TransformationFailedException
The choice "550fe15080c7e16f5b8b4da0" does not exist or is not unique

The following line does not convert multiple values into an $in query:

$this->em->getRepository($this->class)->findBy(array($this->idField => $values));

Issue 2:
After updating Symfony from 2.6.4 to 2.6.5 handling (MongoDB) document as Field is broken.

Example FormType:

public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('terminal', 'document', array('label' => 'terminal', 'required' => false, 'class' => 'company\ExampleBundle\Document\Terminal'));
}

Submitted Form is not valid, Profiler told me:

Symfony\Component\Validator\ConstraintViolation
Object(Symfony\Component\Form\Form).children[terminal] = 546e4a2d46139fca3b413051

Caused by:

Symfony\Component\Form\Exception\TransformationFailedException
Unable to reverse value for property path "terminal": The choice "546e4a2d46139fca3b413051" does not exist or is not unique

Caused by:

Symfony\Component\Form\Exception\TransformationFailedException
The choice "546e4a2d46139fca3b413051" does not exist or is not unique

But document 546e4a2d46139fca3b413051 exists and is unique. Reverting symfony back to 2.6.4 does not lead to this issue and submitted form is valid.
Issue 1:
TypeScript Version:

nightly (1.9.0-dev.20160217)

Code

function wrap<T, U>(wrapper: (arg: T) => U) {
return function(target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor<(...args: any[]) => T>) {
var originalMethod = descriptor.value; // save a reference to the original method

// NOTE: Do not use arrow syntax here. Use a function expression in
// order to use the correct value of `this` in this method (see notes below)
const newDescriptor = {
value: function(...args: any[]) {
console.log("The method args are: " + JSON.stringify(args)); // pre
var result = wrapper(<T> originalMethod.apply(this, args)); // run and store the result
console.log("The return value is: " + result); // post
return result; // return the result of the original method
}
};

return newDescriptor;
}
}

function len(val: string): number {
return val.length;
}

class MyClass {
@wrap<string, number>(len)
myMethod(arg: string) {
return "Message -- " + arg;
}
}

const t: number = new MyClass().myMethod("testing");

Expected behavior:

I expect this to compile, and modify the return type of MyClass#myMethod.

Actual behavior:

tsc decorators-broken.ts --experimentalDecorators --target es5
decorators-broken.ts(25,5): error TS1241: Unable to resolve signature of method decorator when called as an expression.
Type '{ value: (...args: any[]) => number; }' is not assignable to type 'void'.
decorators-broken.ts(31,7): error TS2322: Type 'string' is not assignable to type 'number'.

I'm trying to create a decorator that wraps methods, potentially altering the wrapped method's return type, making function composition possible through decoration. I initially thought this was a bug, but upon inspecting MethodDecorator's type signature, this is probably intentional:

type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T> | void;

Can we add something like the following?

type MutatingMethodDecorator = <T, U>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<U> | void;

Issue 2:
If we can get this to type check properly, we would have perfect support for boilerplate-free mixins:

declare function Blah<T>(target: T): T & {foo: number}

@Blah
class Foo {
bar() {
return this.foo; // Property 'foo' does not exist on type 'Foo'
}
}

new Foo().foo; // Property 'foo' does not exist on type 'Foo'
Issue 1:
The customize feature (http://twitter.github.io/bootstrap/customize.html) seems to be broken. I tried a few different configurations (even the default) and received the following in an error.txt:

A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type":"Parse","message":"Syntax Error on line 1","index":0,"filename":"bootstrap.css","line":1,"column":0,"extract":[null,"<!DOCTYPE html>","<!--"]}

Issue 2:
Tried to download a customised setup but css files are empty once downloaded, the same is true for IE,Safari,FireFox and Chrome. Received a error file with the downloaded zip, message as follows:

A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type":"Parse","message":"Syntax Error on line 1","index":0,"filename":"bootstrap.css","line":1,"column":0,"extract":[null,"","<!--"]}

Thanks
Issue 1:
Logged from file retry.py, line 68

Traceback (most recent call last):

File "c:\python27\lib\logging__init__.py", line 884, in emit

stream.write(fs % msg.encode("UTF-8"))

UnicodeDecodeError: 'utf8' codec can't decode byte 0xd3 in position 234: invalid continuation byte

Logged from file retry.py, line 68

Traceback (most recent call last):

File "c:\python27\lib\logging__init__.py", line 884, in emit

stream.write(fs % msg.encode("UTF-8"))

UnicodeDecodeError: 'utf8' codec can't decode byte 0xd3 in position 234: invalid continuation byte

Issue 2:
Some error message as:

2015-07-01 16:03:46+0800 [Launcher,7500/stderr] Traceback (most recent call last

):

File "D:\Python27\lib\logging__init__.py", line 882, in emit

stream.write(fs % msg.encode("UTF-8"))

UnicodeDecodeError: 'utf8' codec can't decode byte 0xd3 in position 267:

invalid continuation byte

Logged from file retry.py, line 73

Traceback (most recent call last):

File "D:\Python27\lib\logging__init__.py", line 882, in emit

stream.write(fs % msg.encode("UTF-8"))

UnicodeDecodeError: 'utf8' codec can't decode byte 0xd3 in position 267:

invalid continuation byte

Logged from file retry.py, line 73

Traceback (most recent call last):

File "D:\Python27\lib\logging__init__.py", line 882, in emit

stream.write(fs % msg.encode("UTF-8"))