WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi, below is the code I am using, POM along with fixtures. Please suggest the best way that I can change the viewport to fullscreen

//basepage.fixtures.ts

import MicrosoftLoginPage from '../pages/microsoftlogin.page'

import {test as basetest} from '@playwright/test'

import SBReactAppLoginPage from '../pages/SBReactApp/login.page';

import SBReactAppHomePage from '../pages/SBReactApp/Home.page';

const test = basetest.extend<{

microsoftLoginPage : MicrosoftLoginPage;

sbReactAppLoginPage : SBReactAppLoginPage;

sbReactAppHomePage :SBReactAppHomePage;

}>({

microsoftLoginPage:async ({page},use) => {

await use(new MicrosoftLoginPage(page));
},
sbReactAppLoginPage:async ({page},use) => {
await use(new SBReactAppLoginPage(page));
},
sbReactAppHomePage:async ({page},use) => {
await use(new SBReactAppHomePage(page));
}

})

export default test;

export const expect = test

//microsoftlogin.page.ts

import {expect, Locator, Page} from '@playwright/test'

export default class MicrosoftLoginPage{

private page: Page;

btnSBlogin: Locator ;

txtusername: Locator;

txtpassword: Locator;

btnnext: Locator;

btnsignin: Locator;

btnNo: Locator;

constructor(page: Page) {

this.page=page;

this.btnSBlogin= this.page.locator('[data-testid="loginbtn"]')

this.txtusername =this.page.locator('[aria-label="someone\@example\.com"]')

this.txtpassword = this.page.locator('[placeholder="Password"]')

this.btnnext = this.page.locator('text=Next')

this.btnsignin =this.page.locator('text=Sign in')

this.btnNo = this.page.locator('text=No')

}

public async PerformLogin(username: string, password: string){
//await this.btnSBlogin.click();
await this.txtusername.fill(username);
expect.soft(this.txtusername).toBeVisible();
await this.btnnext.click();
await this.txtpassword.click();
await this.txtpassword.fill(await password);
await this.btnsignin.click();
await this.btnNo.click()
}

}

//uivalidations.cons.spec.ts

import test, { expect } from "../../../fixtures/basepage.fixtures"

test.describe('Salesbeacon app UI validation2 with consolidated user',()=>{

test.beforeEach(async({microsoftLoginPage,page,sbReactAppLoginPage,sbReactAppHomePage})=>{

await sbReactAppLoginPage.login(microsoftLoginPage,page,sbReactAppLoginPage,sbReactAppHomePage);

})

test.only('Dashboard Validation @smoke',async ({page,sbReactAppHomePage})=>{

await test.step('Validation of landing page',async()=>{

expect.soft(page.url(),'Landing Page URL validation').toEqual('https://www.xyz.com/');

await sbReactAppHomePage.selectRollcall('Aug-FY21');

});

await test.step('validation of visual page',async ()=>{

expect.soft( await page.screenshot({fullPage:true}),'Visual comparision of Dashboard with full page').toMatchSnapshot('landingpage.png',{threshold:0.3});

});

})

});

Thanks in advance.

Issue 2:
How to launch browser.newContext() or browser.newPage() in fullscreen ? There is no way to pass full-screen via options while calling browser.newContext(options).
Issue 1:
An error is raised when making a numpy array consisting of numpy arrays with ndim > 1 with different sizes.

Reproducing code example:

import numpy as np
b = np.array([np.array([[1],
[1],
[1]]), np.array([[1, 2],
[1, 2],
[1, 2]]), np.array([[1, 2, 3],
[1, 2, 3],
[1, 2, 3]]), np.array([[1, 2, 3, 4],
[1, 2, 3, 4],
[1, 2, 3, 4]])], dtype=object)

Error message:

ValueError: could not broadcast input array from shape (3,1) into shape (3,)

NumPy/Python version information:

1.21.0 3.8.5 (default, Sep 4 2020, 07:30:14)
[GCC 7.3.0]

Issue 2:
This behavior is a little confusing:

>>> np.asarray([np.zeros((10, 3)), np.zeros(10)])
VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating
ValueError: could not broadcast input array from shape (10,3) into shape (10)

since I still get an error even if I provide dtype=object:

>>> np.asarray([np.zeros((10, 3)), np.zeros(10)], dtype=object)
ValueError: could not broadcast input array from shape (10,3) into shape (10)

In my mind, the behavior most consistent with other ragged arrrays here would be to return an array of shape (2, 10) of dtype object, where some element are np.float64 and others are objects arrays.

At any rate, it would be nice to skip the deprecation here and/or emit a more helpful message.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/648 on 2008-01-21 by @chanley, assigned to unknown.

The following will cause a bus error on a big endian machine (Solaris 10 Sun in this case):

> Python 2.5.1 (r251:54863, Jun 29 2007, 15:29:55) [C] on sunos5
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import numpy
>>>> o = numpy.ndarray(shape=3,dtype=[('SEGMENT', '|S4'), ('SPEC_FOUND', '|i1')])
>>>> o1 = o.getfield(numpy.dtype('|S4'),0)
>>>> print o1[0]
> UXÐ
>>>> print o1[1]
> 4
>>>> print o1[2]
> NT
>>>> print o1
> Bus error (core dumped)

There are no issues on Linux or Mac OS X Intel based systems.

This example was done on the latest svn version of numpy (r1.0.5.dev47360).

Issue 2:
np.percentile claims to function with the q argument (the percentiles to calculate) being either a scalar or an array_like. However, the initial lines of code do:

if q == 0:
return a.min(axis=axis, out=out)
elif q == 100:
return a.max(axis=axis, out=out)

which of course breaks with a "truth value of array undefined" exception if q is in fact an ndarray.

q isn't converted to an array before usage, so if it's passed as a list value, these checks don't cause an exception, but only because of the sketchiness of Python's built-in equality testing. I've gotten a report of a crash in the _compute_qth_percentile function that seems to be due to the lack of coercion.
Issue 1:
If you do make install with previous installed versions, multiple copies of all the libraries get left in (for me) /usr/local/lib/rustc/x86_64-apple-darwin/lib. Then the next time you try building something with the installed rustc, it'll promptly fail with error: multiple matching crates for core

Issue 2:
It was disabled in #19362. It'd be good to have it back one way or another.
Issue 1:
/Users/jra/bin/gomobile: type github.com/kellydunn/golang-geo.Point not defined in package package marshrutme ("github.com/jeffallen/marshrutme")

"in package package" is because the error is "in package %s", with %s filled by a types.Package, which has a String() method that puts "package" on the front.

There are several occurrences of "in package" in gengo.go that probably all need fixing.

Issue 2:
by fish@freigeist.org:

The example should be pretty self-explanatory: http://play.golang.org/p/u5_eyPkjNs

Happens on go1.1 installed via gvm on Ubuntu 12.04 as well as on play.golang.org
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.5.10

Operating System version: win7

Java version: 1.8

Steps to reproduce this issue

@configuration to construct three protocol use "dubbo", "rmi","coustom"

use @service to define a serviceImpl and set protocol={"dubbo"}

this service register for 3 times. it is different when use xml.

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

only dubbo protocol will effective

What do you expected from the above steps？

actual three protocol effective

What actually happens?

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

Just put your stack trace here!

Issue 2:
现在的版本能支持服务跨组调用吗？（2.6.0上试过不行）

provider group A

<dubbo:registry protocol="zookeeper" address="192.168.50.130:2181" check="false" group="A"/> <dubbo:service interface="com.alibaba.dubbo.demo.DemoService" ref="demoService"/>

consumer group B

<dubbo:registry protocol="zookeeper" address="192.168.50.130:2181" check="false" group="B"/> <dubbo:reference id="demoService" check="false" interface="com.alibaba.dubbo.demo.DemoService" group="A"/>
Issue 1:
You can only avoid having your constant call backs to google analytics or atom.io servers described as something other than spyware when you ask the user first if they would like you to turn on these features.

Your access to google analytics should only be enabled with the "send anonymous statistics to improve product" button, as most half decent non-spyware applications do.

Your access to atom.io to check for updates should only be enabled with the "automatically check for updates on startup" button, as is done by most reasonably sane applications.

Asking users to edit your coffee script in order to disable is not a valid response.

Issue 2:
You need to leave the metrics disabled by default and then at least ask users, first time they activate the editor, whether they would allow it to be enabled.

I for one will not allow spyware to run on my box, hence I disable or remove such applications, but Atom doesn't provide a clue in the application, so if someone haven't seen the FAQ, they don't know.

This is a problem because Atom is then collecting data WITHOUT consent, even if it is in the FAQ and even if the user has downloaded the application.

Besides, I find the whole concept of tracking users with the excuse of collecting useful data ridiculous!

In the entire history of Open Source this has never been needed and users are extremely helpful in sharing information, data, and reports about bugs, how they use the application, and other stuff.

The metrics package in Atom should to be removed from the default install, and then you can leave the package for anyone who want to install it by himself from the installation menu. Or as suggested, leave it OFF at first.

Another important point is that Atom is NOT simply collecting statistical data! If that where the case there certainly is no need to create a SHA1 of each installation MAC address. That is NOT collecting statistical data, that is specific and individual surveillance, which is unacceptable.
Issue 1:
Feels like when we are doing changes in std that a whole build of Deno plus the full test suite of Deno is unnecessary for validating a change to std and we should consider some mechanism to only test std potentially against a prebuilt version of Deno.

Issue 2:
for discussion and tracking, i'll put together a PR.

Currently, even for a small change in std the entire 20 minute long build process is run. This would enable fixes to std to be tested much quicker.

This is related to #5179 .
Issue 1:
Apache Airflow version

2.5.0

What happened

Prior to Azure provider 5.0.0, WasbHook.get_file only required three arguments (file_path, container_name, and blob_name), but now two additional parameters - length and offset - are required by the underlying WasbHook.download method. However the underlying BlobClient.download_blob method has length and offset as optional.

What you think should happen instead

length and offset should continue to be optional in WasbHook.download (and therefore WasbHook.get_file).

How to reproduce

Call WasbHook.get_file with only the initial three arguments (file_path, container_name, and blob_name).

Operating System

Debian Slim

Versions of Apache Airflow Providers

apache-airflow-providers-microsoft-azure==5.0.0

Deployment

Astronomer

Deployment details

No response

Anything else

Just wanted to say I really love your issue submission form.

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Apache Airflow version

2.5.0

What happened

The Azure WASB log task handler is no longer working.

What you think should happen instead

No response

How to reproduce

No response

Operating System

Linux

Versions of Apache Airflow Providers

apache-airflow-providers-microsoft-azure==5.0.0

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else

This is a regression from #25426:

The download method now requires offset and length arguments, but these are not provided from the task handler code.

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
I am using the Drawer component in the nav bar with the MenuIcon. In earlier releases, this worked as expected. When the MenuIcon was clicked, the Drawer would open, and clicking on any of the Drawer items, or outside the Drawer would close the Drawer. However, with the latest release, I notice that once the Drawer opens, if I click anywhere to close the drawer, the MenuIcon component gets highlighted. I have to click once again on the page to get it back to normal.

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

Steps to Reproduce (for bugs)

Live preview of my code is at here

Even though it is not appearing on the live demo, I see it on my machine.

Screenshots are present here

Your Environment

Tech
Version

Material-UI
1.0.0-beta.10

React
15.6.1

browser
Tested both on Chrome and Firefox

OS
Windows 2008 Server R2

Issue 2:
In some folders in the project there are places where there are different modules and their types/tests which reside in the same folder.

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

Context

I think that following the project-guidlines project's view on folder structure and naming will help with faster navigation of different modules. A good example is the styles folder where all the modules and their types and tests are in the same folder, making it hard to navigate through.
Issue 1:
While sitting with @stefanv last week we discussed (and then @stefanv started implementing) sparse array classes that use the same code as the existing matrix classes, but instead satisfy the ndarray interface (only up to two dimensions). For example slicing out rows would result in 1d arrays rather than 2d matrices, the * operator means elementwise multiply rather than matrix multiply, etc..

This would be valuable for a number of communities and, in particular, anyone trying to use sparse arrays and numpy arrays interchangably, as happens in Pandas, Scikit-Learn, and Dask.array.

I thought I'd raise this issue to track this work (and also to subtly prod @stefanv).

Also cc @NelleV and @njsmith

Issue 2:
>>> M = sp.csr_matrix((np.array([-2, 4]), np.array([0, 0]), np.array([0, 2])))
>>> M.A
array([[2]])
>>> (M > 1).A
array([[False]], dtype=bool)

I haven't analysed where the failure occurs, but there is apparently no test for this case at present, as TestCSRNonCanonical.test_gt passes.
Issue 1:
Binary Agents

https://www.freecodecamp.com/challenges/binary-agents

Issue Description

One of the help links that's suppose to direct to Mozilla documentation on String.charCodeAt() instead points to https://www.freecodecamp.com/challenges/undefined

Browser Information

Browser Name, Version: Chrome

Operating System: OS X

Mobile, Desktop, or Tablet: Desktop

Issue 2:
Challenge Caesars Cipher has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0.

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

My code:

function rot13(str) { // LBH QVQ VG!

return str;
}

// Change the inputs below to test
rot13("SERR PBQR PNZC");

The issue is not within the code, actually... It is on the challenge's explanation page.

It seems that the link to "String.charCodeAt()" is broken.

I think it should be the following:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt

Stay well

DR
Issue 1:
Bug report

Describe the bug

My import dependency tree looks like this:

- main app
- components library
- antd

The components library is built with next/babel. When running a production build, I get the following error:

I used this as a reference to build my next config: https://github.com/zeit/next.js/tree/canary/examples/with-ant-design-less

Everything works fine until I include the components repo (I can use antd in the main app without a problem). Any idea how to work around this issue?

I imagine directly including the components library in the next config would work, but I'm not sure how exactly to do this with the next/babel preset.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Clone https://github.com/zeit/next.js/tree/canary/examples/with-ant-design-less

Include any library that has a dependency on antd

Run next build

Expected behavior

The build works.

Issue 2:
Bug report

Describe the bug

I'm trying to add wix-style-react plugin inside my NextJS project but I'm unable to build. Inside their documentation, they say they use Stylable, SASS and CSS Modules.

When I install the plugin and build, I get the following error :

Module parse failed: Unexpected character '@' (1:0)

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

@import '../common';

I tried both following methods :

Using next-sass inside my next.config.js

// next.config.js
const withSass = require('@zeit/next-sass')

module.exports = withSass({
cssModules: true
})

This way I got another error warning me about a .css file

Module parse failed: Unexpected token (1:0)

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

.root {

| display: inline-block;

| text-overflow: ellipsis;

Using next-css in combination with next-sass

// next.config.js
const withSass = require('@zeit/next-sass')
const withCss = require('@zeit/next-css')

module.exports = withCss(
withSass({
cssModules: true,
})
)

With this config, I get again the same error as with no config

To Reproduce

Create a new blank project with create-next-app

Install the module yarn add wix-style-react

Build yarn build

System information

OS: macOS

Version of Next.js: 9.1.4
Issue 1:
Issue Type:

Fancy Corner Case Bug

Ansible Version:

Introduced in current devel as well as 1.8.2 and up.

In the 1.8 tree, the bug was introduced by 4cd87ec

Note that while the bug is unrelated, this "faulty" commit is the same as for #9753

Environment:

N/A (tested on Ubuntu 14.04)

Summary:

Using a key pointing to a variable, that itself is defined as another variable construct, in combination with group_by, the resulting key (probably that subvar) is onlky calculated once for the first host, so all hosts are put in the same group.

Steps To Reproduce:

Create an inventory hosts file with some hosts where the first three chars point to a datacenter:

dc1-ch1-bl1
dc2-ch1-bl2
dc1-ch1-bl3
dc2-ch1-bl4
dc2-ch1-bl5

and provide this variable in group_vars/all.yml:

datacenter: '{{ inventory_hostname[:3] }}'

Test with the commmand

ansible all -i hosts -c local -m group_by -a key={{datacenter}}

Also change the first host in the inventory file from dc1-ch1-bl1 to dc2-ch1-bl1 and observe the difference.

Expected Results:

Works with ansible release1.8.1 ad67523 last updated 2014/12/02 10:53:48 (GMT +200):

$ ansible all -i hosts -c local -m group_by -a key={{datacenter}}
dc1-ch1-bl1 | success >> {
"changed": true,
"groups": {
"dc1": [
"dc1-ch1-bl1",
"dc1-ch1-bl3"
],
"dc2": [
"dc2-ch1-bl2",
"dc2-ch1-bl4",
"dc2-ch1-bl5"
]
}
}

Actual Results:

dc1-ch1-bl1 | success >> {
"changed": true,
"groups": {
"dc1": [
"dc1-ch1-bl1",
"dc2-ch1-bl2",
"dc1-ch1-bl3",
"dc2-ch1-bl4",
"dc2-ch1-bl5"
]
}
}

or after changing the first host in the inventory file from dc1-ch1-bl1 to dc2-ch1-bl1:

dc2-ch1-bl1 | success >> {
"changed": true,
"groups": {
"dc2": [
"dc2-ch1-bl1",
"dc2-ch1-bl2",
"dc1-ch1-bl3",
"dc2-ch1-bl4",
"dc2-ch1-bl5"
]
}
}

Issue 2:
Issue Type:

Bug Report

Ansible Version:

ansible 1.5.4

Environment:

Ubuntu 12.04 x64 running Ansible, managing 13.10 x64 hosts

Summary:

Attempting to use 'group_by:' with 'when:'.

Two hosts; one in group dbnodes, one in group webnodes, both also a member of ec2_hosts.

One host satisfies the when clause, one does not.

Flipping group membership doesn't flip which host is grouped...just skips the task altogether.

Steps To Reproduce:

See gist: https://gist.github.com/mark-casey/11386608

One provided inventory works for me, one doesn't.

Expected Results:

The host which is a member of 'dbnodes' should be added to the 'Debian' group, for either of the two inventory files provided.

Actual Results:

One of the inventory files sees no hosts added to the 'Debian' group.

Also interesting, either of the two inventories will work if you entirely remove the ec2_hosts group and change site.yml's play to use this host selector instead:

hosts: dbnodes:webnodes
Issue 1:
by vivaneon:

What is the expected output? What do you see instead?

--- cd ../misc/cgo/stdio
rm -rf *.[568vqo] *.a [568vq].out *.cgo[12].go *.cgo[34].c *.so _obj _test
_testmain.go hello fib chain run.out
cgo file.go
could not determine kind of name for C.CString
could not determine kind of name for C.puts
could not determine kind of name for C.fflushstdout
could not determine kind of name for C.free
failed to interpret gcc output:
cc1: warnings being treated as errors
cgo-test: In function ‘f’:
cgo-test:0: erreur: déclaration sans effet
cgo-test:1: erreur: déclaration sans effet
cgo-test:2: erreur: déclaration sans effet
cgo-test:3: erreur: déclaration sans effet

What is your $GOOS? $GOARCH?

Linux and amd64

Which revision are you sync'ed to? (hg log -l 1)

hg log -l 1
changeset: 4015:cb140bac9ab0
tag: tip
user: Russ Cox <rsc@golang.org>
date: Thu Nov 12 14:55:26 2009 -0800
summary: test/run: unset GREP_OPTIONS

Please provide any additional information below.

Even if i get this compilation error, binaries have been compiled, but i
thought some items are missing.

Issue 2:
by robert.hencke:

This is peculiar, but I was able to get someone else to reproduce this.

What steps will reproduce the problem?
1. Open the cgo life example ($GOROOT/misc/cgo/life)
2. Open life.go
a. Change //export GoStart to //export Aaa
b. Change //export GoWait to //export Bb
3. Open c-life.c
a. Change GoStart_return to Aaa_return
b. Change calls to GoStart to Aaa
c. Change calls to GoWait to Bb
4. make life && ./life

What's really strange is that if you change 'Aaa' to 'Aa', above, everything works
perfectly.

What is the expected output?
life game board, as usual

What do you see instead?
dyld: Symbol not found: __cgoexp_Bb
Referenced from: /Users/roberthencke/go/pkg/darwin_amd64/cgo_life.so
Expected in: flat namespace
in /Users/roberthencke/go/pkg/darwin_amd64/cgo_life.so
Trace/BPT trap

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g (cgo)

Which operating system are you using?
Mac OS X 10.6 (amd64)

Which revision are you using? (hg identify)
de6031d05339+ tip
Issue 1:
The folder test_plugin/, while showing an example, is not mentioned anywhere in the manual, and is not easy to find (since the name does not indicate it also being an example)

This could be a good first issue.

Issue 2:
Currently the runtime API would support the compiler option of lib, but it would fail in most scenarios where if a lib is included that isn't inlined into the TypeScript compiler. For example lib: [ "esnext", "dom" ] would fail, because lib.dom.d.ts is not inlined into the compiler.

We should support attempting to externally fetch libs when requested by the runtime compiler APIs, so we don't have to bake these in, but end users would be able to compile against a different set of libs.