WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I might have found an issue with the junit reporting that especially appears when the report gets imported to xray.

I actually create a screenshot manually with a filename and type and also via the automatic mode for the after hook.

the result ist that actually one file gets imported as screenshots.png(the manual one) that can be opened within jira since at treats as an png file.

The screenshots that get created automaticly via the pw config just gets imported as screenshot without the file ending and can not be opened then. Also if I download them and set the file type i can not open them.

System info

Playwright Version: [v1.32.2]

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

Browser: [All, Chromium, Firefox, WebKit]

Other info:

Source code

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

Config file

// playwright.config.ts
// JUnit reporter config for Xray
const xrayOptions = {
// Whether to add <properties> with all annotations; default is false
embedAnnotationsAsProperties: true,

// By default, annotation is reported as <property name='' value=''>.
// These annotations are reported as <property name=''>value</property>.
textContentAnnotations: ['test_description'],

// This will create a "testrun_evidence" property that contains all attachments. Each attachment is added as an inner <item> element.
// Disables [[ATTACHMENT|path]] in the <system-out>.
embedAttachmentsAsProperty: 'testrun_evidence',

// Where to put the report.
outputFile: './xray-report.xml',
};

use: {
screenshot: {mode: 'only-on-failure', fullPage: true},
}

Test file (self-contained)

it('do stuff', async ({ page }) => {
await overviewPage.goto();
const path = testInfo.outputPath('tmp_screenshot.png');
await page.screenshot({path});

testInfo.attachments.push({name: 'screenshot.png', path, contentType: 'image/png'});
await overviewPage.selectSomething.click();
});

Steps

[Run the test]

[...]

Expected

screenshots should be saved as "screenshot.png" since this is the default filetype for screenshots

Actual

Only screenshots that are saved with the correct file ending will be converted as an png by xray

automatic screenshots get saved as "screenshot" and then can not be opened (broken file)

(see attached screenshot)

Issue 2:
System info

Playwright Version: v1.31.2

Operating System: Windows 10

I configured my test system as described here; https://docs.getxray.app/display/XRAYCLOUD/Testing+web+applications+using+Playwright

I noticed that in the xray xml-report the data types are not provided (e.g. ".png", ".webm"). So I have to edit the xml content beforehand to be able to open the evidence in the browser.

In the default junit reports on the other hand the data types are apparently provided.
Issue 1:
Not a major issue, but the animation gets shown twice on all of the iPhones I've tested on.

iPhone 5, 5s and 6, all running iOS8

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

Expected Behavior

I think there should be only 1 MuiTextarea element

Current Behavior

There are 2 MuiTextarea elements

Steps to Reproduce (for bugs)

Add TextField to your application

View the rendered TextField in the DevTools

https://codesandbox.io/s/lxl8145nl7

Context

It doesn't affect me at all - but I just wanted to show you this because it doesn't look like it's intended and I don't have time right now to dig into Material-UI for pull request

Your Environment

Tech
Version

Material-UI
1.0.0-beta.13

React
15.6.1 & 16.0.0

browser
Version 61.0.3163.100 (Official Build) (64-bit)

etc
Windows 10
Issue 1:
Issue originally made by Арсен С (NuArsen)

Bug information

Babel version: Babel 6.9.1 (https://babeljs.io/repl/)

Node version: https://babeljs.io/repl/

npm version: https://babeljs.io/repl/

Input code

Not working:

export default ({ onClick }) => {
return <div onClick={() => onClick()}></div>;
}

Working:

export default ({ onClick }) => {
return <div onClick={onClick}></div>;
}

Description

Code with arrow function inside react component attribute not exporting component. Issue repeats in https://babeljs.io/repl/

Issue 2:
Issue originally made by @jprichardson

Bug information

Babel version: 6.x

Node version: 5.3.0

npm version: 3.7.1

Input code

export default (onClick) => (<div onClick={ () => onClick(text) } ></div>);

Description

You'll notice an export at the bottom that didn't get transpiled.

Sorry, regarding Babel "version", wasn't sure which version to put since there are so many libraries. I'm using babel-plugin-transform-es2015-arrow-functions@6.5.2.
Issue 1:
See a jsFiddle example here: http://jsfiddle.net/h8XWv/

I'd assume that changing the ordering would fix this but as this change appears to have been made after RC1, it could well break something else.

EDIT: It seems to behave the same on navbar-default and navbar-inverse so perhaps it was when the styling was extracted from navbar that this change occured.

Issue 2:
the problem happens on mobile, tablet in ios everything is working, but using firefox on a tablet with android by clicking the submenu instead of open it all closes, the bug was partly solved in version 2.3.1 before or since in ios worked, now working in firefox was missing and perhaps other browser used in tablets.
Issue 1:
System information

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

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): debian 9 (stretch)

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): binary

TensorFlow version (use command below): 1.9.0

Python version: 3.6

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: see below (short version: N=int(1e4); assert len(tf.unique(tf.distributions.Uniform().sample(N)).y.eval()) == N)

Describe the problem

Traced subtle bug in my code back to the fact that the TF Uniform distribution (maybe others?) does not produce unique samples.. This is bad.

N = int(1e4)

len(np.unique(np.random.rand(N))) # 10000

tf.InteractiveSession()
len(tf.unique(tf.distributions.Uniform().sample(N)).y.eval()) # 9993

Issue 2:
bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

Warning: ignoring LD_PRELOAD in environment.

ERROR: /home/wenjian/pkgs/tensorflow/tensorflow/core/distributed_runtime/rpc/BUILD:87:1: no such package '@grpc//': Error cloning repository: https://boringssl.googlesource.com/boringssl: cannot open git-upload-pack caused by https://boringssl.googlesource.com/boringssl: cannot open git-upload-pack caused by https://boringssl.googlesource.com/boringssl: cannot open git-upload-pack and referenced by '//tensorflow/core/distributed_runtime/rpc:grpc_channel'.

ERROR: Loading failed; build aborted.

INFO: Elapsed time: 342.460s
Issue 1:
Electron version: 1.4.4

Operating system: elementary OS Loki (basically Ubuntu 16.04)

app.on('ready', () => {

const powerMonitor = require('electron').powerMonitor;

powerMonitor.on('suspend', () => {
console.log('SUSPEND');
});
});

does not output anything. Works fine on Windows.

Issue 2:
So I have a very simple code on a working app, but in no way does the event ever get trigged.

app.on('ready', function() {
require('power-monitor').on('on-battery', function () {
console.log('battery time');
});
});

(The app itself is larger than that, ofc, I just cropped he useful part.
Issue 1:
Here is the message that i get when i try to execute deno :

https://gateway.ipfs.io/ipfs/QmWs8zeuka9ZRfdDpbZLo7Smi2wKYPi95ruVyuCN52eBaR/deno.png

translation 👍

"The version of this file is incompatible with the version of windows you're using. Consult the system information of the computer to know if you need an x86(32 bits) or x64 (64bits) then contact the software editor."

I've installed it with powershell and i've tried also by downloading it.

I have the same message.

I'am on windows seven 32 bit.

regards and thanks

Issue 2:
Could you please support windows 32 bit machines for the build.

I'm using Windows NT 10 15063

Building the app is quite a sassle for me (as win32 users) because:

My windows version does not support symlinks even though I enabled developer options.

Installing MSVC is quite a sassle (I tried 5 times; the download can't finish)

By the way, I have very limited resources; RAM, CPU even Storage

Needed requirements

Updated Windows version with Dev Options enabled (.symlinks not working for me)

Cargo or Rust in general (not installable for me since it needs MSVC)

MSVC (not installable for me)

Python version 2, not 3 (working for me)

I think anyone with the listed above resources .

can build it NOW and send it because I think it is not a difficult task and

I'm not even trying to go into node and I NEED it desperately. PLEASE HELP.
Issue 1:
It would be great if there was a way to relax the current constraint of requiring get/set accessors to have the same type. this would be helpful in a situation like this:

class MyClass {

private _myDate: moment.Moment;

get myDate(): moment.Moment {
return this._myDate;
}

set myDate(value: Date | moment.Moment) {
this._myDate = moment(value);
}
}

Currently, this does not seems to be possible, and I have to resort to something like this:

class MyClass {

private _myDate: moment.Moment;

get myDate(): moment.Moment {
return this._myDate;
}

set myDate(value: moment.Moment) {
assert.fail('Setter for myDate is not available. Please use: setMyDate() instead');
}

setMyDate(value: Date | moment.Moment) {
this._myDate = moment(value);
}
}

This is far from ideal, and the code would be much cleaner if different types would be allowed.

Thanks!

Issue 2:
Expected behavior

This function should compile succesfully

function testFunction(a: string | Object) {
if (typeof a === "string") {
if (a.indexOf(".") >= 0)
a = a.substr(a.indexOf(".") + 1);
...
}
}

Actual behavior

The function gives error about indexOf does not exist on type string | Object. If I omit the assignment to a then it works fine. I think the compiler should notice that I'm safely assigning another string to the string type-guarded variable. However, I understand that this behavior would be expected if I assigned a value which is not guaranteed to be a string.

TypeScript environment

Visual Studio 2015

TypeScript 1.8.4
Issue 1:
These might be symptomatic of having two implementations, where the one that is actually used is determined by the import order (not good).

>>> import collections
>>> {k: v for k, v in collections.Counter(np.__all__).items() if v > 1}
{'alen': 2,
'all': 2,
'alltrue': 2,
'amax': 2,
'amin': 2,
'any': 2,
'argmax': 2,
'argmin': 2,
'argpartition': 2,
'argsort': 2,
'around': 2,
'choose': 2,
'clip': 2,
'compress': 2,
'cumprod': 2,
'cumproduct': 2,
'cumsum': 2,
'diagonal': 2,
'mean': 2,
'ndim': 2,
'nonzero': 2,
'partition': 2,
'prod': 2,
'product': 2,
'ptp': 2,
'put': 2,
'ravel': 2,
'repeat': 2,
'reshape': 2,
'resize': 2,
'round_': 2,
'searchsorted': 2,
'shape': 2,
'size': 2,
'sometrue': 2,
'sort': 2,
'squeeze': 2,
'std': 2,
'sum': 2,
'swapaxes': 2,
'take': 2,
'trace': 2,
'transpose': 2,
'var': 2,
'issubdtype': 2}

Issue 2:
Error popped up while trying to import numpy on Jupyter notebooks

Reproducing code example:

Upgraded to Mac OX 10.15, and everything was fine for a while, and pandas_profiling disappeared, so I reinstalled it. Then it said NumPy had duplicates so I uninstalled NumPy (via Conda) until Conda could not detect any NumPy package. And then I encountered this error.

Here are my current paths:

which -a python
/usr/bin/python

jupyter kernelspec list
Available kernels:
ir /Users/choikwunyu/Library/Jupyter/kernels/ir
python3 /Users/choikwunyu/anaconda3/share/jupyter/kernels/python3

echo $PATH
/anaconda3/bin:~/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Library/Apple/bin:/Library/TeX/texbin

Error message:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
1. Check that you expected to use Python3.6 from "/Users/choikwunyu/anaconda3/bin/python",
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy version "1.17.2" you're trying to use.
2. If (1) looks fine, you can open a new issue at
https://github.com/numpy/numpy/issues. Please include details on:
- how you installed Python
- how you installed numpy
- your operating system
- whether or not you have multiple versions of Python installed
- if you built from source, your compiler versions and ideally a build log

- If you're working with a numpy git repository, try `git clean -xdf`
(removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.

Original error was: dlopen(/Users/choikwunyu/anaconda3/lib/python3.6/site-packages/numpy/core/_multiarray_umath.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libopenblas.dylib
Referenced from: /Users/choikwunyu/anaconda3/lib/python3.6/site-packages/numpy/core/_multiarray_umath.cpython-36m-darwin.so
Reason: image not found

Numpy/Python version information:

-bash: syntax error near unexpected token `numpy.__version__,'-
Issue 1:
After updating the version, I found that the previous highlighting render function had disappeared! Is there an alternative function? And how to use it！

Issue 2:
using react PropTypes is awesome, and can help catching errors at the early stage,

but sometimes, when the application is pretty large, there is always a flow of data

structures of a big size. Like in the web email client application, there can be a Message

type that is passed all over the place, and multiple components can accept it in props.

so the solution to that is usually creating a type file. e.g.

// types/message.js

import React from 'react';

export default React.PropTypes.shape({
id: React.PropTypes.string.isRequired,
subject: React.PropTypes.string
}).isRequired;

and then reusing this type in components that get messages in props

import messageType from './types/message';

MessagePreview.PropTypes = {
message: messageType
}

but sometimes this data flows in some other than components elements. for example flux stores, or action creators. And that usually requires duplication of types (using immutable.js records or similar)

That would we really nice if we could use this type checks in other parts of the application.

for example

// stores/message.js

import messageType from './types/message';
import checkTypes from 'react/check-types';

/**
* @param {Array<Object>} payload.messages the array of message objects received from the API
*/
onDataReceived = (payload) => {
payload.messages.forEach((message) => {
checkTypes(message, messageType);
addToStore(message);
});
}

will this be any good? I guess architectually it means making propTypes.js more independent, and creating an adapter for prop/context validating
Issue 1:
Data Visualization with D3: Work with Data in D3

http://beta.freecodecamp.com/en/challenges/data-visualization-with-d3/work-with-data-in-d3

Issue Description

Complete a previous challenge, go to the next challenge in the flow. You'll see the previous output of the challenge you completed before.

Browser Information

Browser Name, Version: Chrome

Operating System: Mac

Mobile, Desktop, or Tablet: Desktop

Issue 2:
Challenge use-the-css-transform-scale-property-to-change-the-size-of-an-element has an issue.

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

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

No image in the phone view upon initial load when not following the map linearly. (I selected a lesson based on what I could use a refresher on. I know the surrounding material.)

<style>
.ball {
width: 40px;
height: 40px;
margin: 50 auto;
position: fixed;
background: linear-gradient(
35deg,
#ccffff,
#ffcccc
);
border-radius: 50%;
}
#ball1 {
left:20%;
}
#ball2 {
left:65%;

}

</style>

<div class="ball" id= "ball1"></div>
<div class="ball" id= "ball2"></div>

```
Issue 1:
If a navbar dropdown is left open during collapsed (mobile) mode, then resized to horizontal (desktop) mode, it wont work straight.

http://getbootstrap.com/examples/navbar/

Maybe the navbar should auto-close all dropdowns on collapsed mode to horizontal mode switch.

Issue 2:
Steps to reproduce:

Open, for example, bootstrap-3.0.2\examples\theme\index.html.

Make screen smaller to get collapsed nav bar

Click on one of menu for drop-down list in nav bar

Maximize screen again

Go to Drop-down - drop-down and click again - list will be in scroll area.

Did the same on tablet Nexus - 7'' : Landscape and Portrait, the same effect. After refresh everything is fine again.
Issue 1:
Hello! See example

type lang = "en" | "ru";
function getDict(lng: lang): any {
switch (lng) {
case 'ru':
return ru;
case 'stringNotInLangType':
return en;
}
}

compiler should throw error, cause

case 'stringNotInLangType':
return en;

is unreachable

Issue 2:
type foo = 'hey' | 'nay';

switch (<foo>undefined) {
case 'boom': console.log('never the case'); break; // expected unreachable code, actual no problem
}
Issue 1:
I'm using Firefox ESR 45.1.1 on GNU / Linux Debian 64-bit, testing.

I cannot place my cursor wherever I want to and not only that; if I press "Enter" key, instead of taking me on the next line, it skips 1 extra line.

Also, when this issue happens, the tab key stops working properly; it moves only at a single tab click and nothing more.

UPDATE: I have also noticed that Ctrl - arrow-left or arrow-right does not nagivate beyond two or three columns before it jumps to the immediate next line.

Is it something that has to do with code-completion mechanism?

END_OF_UPDATE

It happens on each test and at first I thought it was my idea.

Any suggestions?

Cheers.

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:
No known steps to reproduce and unclear whether this actually affects users (since the Flutter app seems to be dead already).

The crash collector reported the following stack trace in logcat:

java.lang.AssertionError
at io.flutter.view.FlutterView.assertAttached(FlutterView.java:537)
at io.flutter.view.FlutterView$3.reply(FlutterView.java:679)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:194)
at io.flutter.plugins.googlesignin.GoogleSignInPlugin$Delegate$3.run(GoogleSignInPlugin.java:264)

Issue 2:
https://github.com/flutter/engine/blob/51f12604f7aec7e425be41f56ce8637a948dfa3d/shell/common/engine.cc#L517

-> https://github.com/flutter/engine/blob/51f12604f7aec7e425be41f56ce8637a948dfa3d/shell/platform/android/platform_view_android.cc#L358

-> https://github.com/flutter/engine/blob/51f12604f7aec7e425be41f56ce8637a948dfa3d/shell/platform/android/io/flutter/view/FlutterView.java#L683

That code path can trigger when the flutter view has been detached, which in turn implies that the flutter view has been destroyed by Android. This was observed in the GoogleSignIn plugin, where the plugin triggers an OEM-widget-based sign-in flow. The Android OS reserves the right to destroy your view whenever it needs to to free up resources (and will re-create it as necessary), so it's valid for a full-screen sign-in flow to trigger the disposal of your FlutterView (followed by a re-creation when the sign-in completes).
Issue 1:
It seems the debug! code isn't properly pushing a span onto the macro expansion span stack. This code:

fn main() {
let a = ~"";
debug!("foo: %s %s", a);
}

Only reports the error inside the macro, but not where that macro is getting used:

<core-macros>:33:24: 33:42 error: not enough arguments to fmt! for the given format string
<core-macros>:33 __log(4u32, fmt!( $($arg),+ ))
^~~~~~~~~~~~~~~~~~

Issue 2:
If you pass an immutable reference through two structs, one of which is a trait, you can take an immutable reference to a variable that will be mutated later, and the compiler will compile. For a proof of concept, see here, and if you want to see it in an actual use case, see here (look in the main file).

I don't know if this is an issue or not, it didn't cause any safety issues when I used it. Is there a rust-ier way of doing the type of thing I did in the second example (allow an immutable reference to a value that will be mutated, in order to see the new value).
Issue 1:
My issue is about test_constant_cost_matrix located in scipy/optimize/tests/test_linear_assignment.py

Reproducing code example:

python3 runtests.py -v

Error message:

scipy/optimize/tests/test_linear_assignment.py:102: in test_constant_cost_matrix
assert_array_equal(col_ind, np.arange(n))
E AssertionError:
E Arrays are not equal
E
E Mismatched elements: 8 / 8 (100%)
E Max absolute difference: 7
E Max relative difference: 5.
E x: array([7, 6, 5, 4, 3, 2, 1, 0])
E y: array([0, 1, 2, 3, 4, 5, 6, 7])

Scipy/Numpy/Python version information:

python version: 3.8.1

numpy version: 1.18.1

scipy version: 1.5.0.dev0+2774bec

Issue 2:
Since many people are working on different parts of this I think we better take out the actual work out of the discussions scattered around.

Currently Travis matrix is as follows

ARM - Test Group 1

ARM - Test Group 2

Pre-release Dependencies, Source Dist (-> In Azure now)

Coverage, Full test suite (--> In Azure now)

Python 3.7 Debug (--> In GitHub Actions #13136 )

Python 3.7 PowerPc

Pre-release Deps, 64-bit BLAS (--> In Azure now)

Refguide-check, Latest NumPy (--> In Azure now)

Source Distribution (--> In Azure now)

Wheel, Optimised, GCC 4.8 (--> In Azure now)

Could you please edit, cross and put where the new location is so we don't get conflicts?

Pinging @tylerjereddy @mattip for heads up
Issue 1:
Bug report

I find a bug about browser back didn't work, and when i import the css ,it work.

I provided a demo to reproduce the problem。

Describe the bug

click "link about" link to /about/123 page

refresh the page, then click browser back, you will find it stop in current page.

if you import '../styles/global.css ' in about page and reload page, browser back it work ok.

Issue 2:
This is bug report

Link does not work with css-module imported. That happens when page with Link has no css, and linked page has. No errors in console, so im not sure about reasons, but there is minimal repo to reproduce:

https://github.com/standy/next-css-error

Bug appears in next@7.0.0 + next-css@1.0.1,

Older next@6.1.2 + next-css@0.2.0 works fine