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

Playwright Version: v1.30.0

Operating System: Ubuntu 20

Browser: WebKit

Source code

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

Link to the GitHub repository with the repro

https://github.com/ta834n/playwright-webkit-demo

Steps

check out the repository

npm install

npx playwright install

npx playwright test // this will create the initial screenshots

npx playwright test // this will compare the screenshots

repeat the last step (1 out of 5 times the tests will fail)

Expected

I expect all tests made with toMatchSnapshot to pass no matter how often I execute them.

Actual

tests made with toMatchSnapshot fail irregularly

tests made with toHaveScreenshot pass all the time

Issue 2:
System info

Playwright Version: [v1.33.0]

Operating System: [All, Windows 10.]

Browser: [All]

Other info: React 18.2

Source code

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site"
/>
</head>
<body>
<div id="root1"></div>
<div id="root2"></div>
<script src="script-bellow.js"></script>
</body>
</html>

import {createRoot} from "react-dom/client";

function MyReactComponent() {
return <div></div>;
}

const container1 = document.getElementById("root1");
const root1 = createRoot(container1);
root1.render(<MyReactComponent />);

root1.unmount(); // important

const container2 = document.getElementById("root2");
const root2 = createRoot(container2);
root2.render(<MyReactComponent />);

test("mycase", async ({page}) => {
await page.goto("http://localhost:3000/");
await page.locator("_react=MyReactComponent").click();
})

Config file

default

Steps

[Run the test]

Expected

MyReactComponent of the root2 receives a click.

Actual

Test fails with error:

Error: locator.click: TypeError: null is not an object (evaluating 'node[rootKey].stateNode')
=========================== logs ===========================
waiting for locator('_react=MyReactComponent')

After React unmounts at a DOM element that DOM element still contains property with __reactContainer prefix but it's value becomes null. So findReactRoots fails here.

As a result usage of any React locator throws an error.
Issue 1:
VSCode Version: Latest as at this post (can't check since it will not run)

OS Version: Windows 10

Steps to Reproduce:

Open VS Code and wait for a update

Ask it to update

Error pops up. The file is askpass.sh

Try deleting the file causing the problem (didn't work on my machine)

Click ignore (VS Code Insider no longer runs

This is from the insider channel. When updating the main version, I got the same message, asked it to ignore. Currently, that instance crashes every few minutes. Not sure if the ignore was the cause.

Running from the command line gives the error below

{ errorCode: 'load', moduleId: 'https-proxy-agent', neededBy: [ 'vs/base/node/proxy' ], detail: { [Error: Cannot find module 'https-proxy-agent'] code: 'MODULE_NOT_FOUND' } }

Issue 2:
I am getting an error trying to update to the new 0.10.10 release on Windows.

I received the notification, clicked on "update and restart" and it showed this error:

Pressing "start again" shows the same error, cancel roll backs the install.
Issue 1:
The standard library will require very carefully arranged bindings to libuv (https://github.com/joyent/libuv), the async IO library we're going to be using. The current rust IO system is synchronous and stdio-based, which is not really ideal long term.

Issue 2:
The mechanics should be easy because exported macros are just stored as strings in crate metadata. But it won't be very useful unless names mentioned by macros can change to follow the re-export. If we can find a pleasing solution to this problem, we can eliminate a lot of duplicated code e.g. between libcore/macros.rs and libstd/macros.rs.
Issue 1:
final String url = "http://materialdesign.qiniudn.com/videos/animation-authenticmotion-massandweight-asymmetric.mp4";
ImageView img = (ImageView) findViewById(R.id.img_test);
Glide.with(context).load(url).into(img);

I hope load the video cover by using the above code.

Now I load the cover in the way as follows.

Bitmap bitmap;
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
int kind = MediaStore.Video.Thumbnails.MINI_KIND;
try {
if ("http".equalsIgnoreCase(url.substring(0,4))) {
retriever.setDataSource(url, new HashMap<String, String>());
} else {
retriever.setDataSource(url);
}
bitmap = retriever.getFrameAtTime(500);
} catch (Exception ex) {
ex.printStackTrace();
// Assume this is a corrupt video file.
} finally {
try {
retriever.release();
} catch (RuntimeException ex) {
// Ignore failures while cleaning up.
}
}
if (kind == Images.Thumbnails.MICRO_KIND && bitmap != null) {
bitmap = ThumbnailUtils.extractThumbnail(bitmap, width, height, ThumbnailUtils.OPTIONS_RECYCLE_INPUT);
}

Issue 2:
How can I load Thumbnail from a video url.

for now I use "MediaMetadataRetriever" to get the bitmap but I want to load it with glide.

is this possible ?
Issue 1:
We want to enable the ability to have more than 1 tsconfig.json file in an asp.net v5 project, this will make the compilation of ts files more flexible.

/Common.Classes
- tsconfig.json {out: "../Outputs/Common.Classes.js"}
- Class1.ts
- Class2.ts

/Common.Plugins
- tsconfig.json {out: "../Outputs/Common.Plugins.js"}
- Class3.ts
- Class4.ts

/Outputs
- Common.Classes.js
- Common.Plugins.js

See these comments:

#4161 (comment)

#4161 (comment)

Issue 2:
Hi,

Version: VS 2015/TS 1.8

This is an obvious bug so may have been reported earlier, but I couldn't find anything.

Add a new TS project in Visual Studio and add the following (erroneous) code:

class Greeter {

constructor(element: HTMLElement) {
this.foo = 'foo';
}
}

Compiling this results in the following build output:

1>------ Rebuild All started: Project: TypeScriptHTMLApp1, Configuration: Debug Any CPU ------
1>C:\TypeScriptHTMLApp1\app.ts(4,14): error TS2339: Build: Property 'foo' does not exist on type 'Greeter'.
1>C:\TypeScriptHTMLApp1\app.ts(4,14): error TS2339: Build: Property 'foo' does not exist on type 'Greeter'.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

The error is printed in duplicate. This can be a significant nuisance in a solution with a large number of projects.
Issue 1:
Migrated issue, originally created by Anonymous

If you define a default ordering in a relation and do a query on that relation using a different ordering the result is not what you would expect. In my code I define a mapper like this:

orm.mapper(Desktop, desktop_table, properties=dict(
status_history = orm.relation(DesktopStatus,
backref="desktop",
order_by=DesktopStatus.updated,
lazy="dynamic"),
))

In one method of the Desktop class I need use the last entry in that list. A slice results in all entries being fixed, so I did this:

status=self.status_history.order_by(DesktopStatus.updated.desc()).limit(1).first().updated

which resulted in this SQL query:

10:55:38,427 INFO [sqlalchemy.engine.base.Engine.0x..ec](sqlalchemy.engine.base.Engine.0x..ec) SELECT desktop_status.id AS desktop_status_id, desktop_status.desktop_id AS desktop_status_desktop_id, desktop_status.old_status AS desktop_status_old_status, desktop_status.new_status AS desktop_status_new_status, desktop_status.updated AS desktop_status_updated
FROM desktop_status
WHERE %(param_1)s = desktop_status.desktop_id ORDER BY desktop_status.updated, desktop_status.updated DESC
LIMIT 1 OFFSET 0

notice how desktop_status.updated appears twice in the ORDER BY clause. The first one takes precedence, so the explicit ordering from my query is ignored.

This is somewhat related to #1079. I felt that this specific issue is different enough to warrant a separate bugreport.

Issue 2:
Migrated issue, originally created by Anonymous

When trying to reflect a table with a column with the unsigned keyword this exception is thrown:

Using SQLAlchemy 0.2.6 installed via easy_install and mysql 4.

$ python bug.py
Traceback (most recent call last):
File "bug.py", line 5, in ?
bug_table = Table("bug", meta, autoload=True)
File "build/bdist.darwin-8.7.1-i386/egg/sqlalchemy/schema.py", line 97, in __call__
File "build/bdist.darwin-8.7.1-i386/egg/sqlalchemy/engine/base.py", line 488, in reflecttable
File "build/bdist.darwin-8.7.1-i386/egg/sqlalchemy/databases/mysql.py", line 337, in reflecttable
TypeError: __init__() got an unexpected keyword argument 'unsigned'

The SQL used to create this:

CREATE TABLE `bug` (
`bug_id` mediumint(8) unsigned NOT NULL default '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

And my bug.py:

from sqlalchemy import *
meta = meta = BoundMetaData("mysql://localhost/bug")
bug_table = Table("bug", meta, autoload=True)

(I was trying to reflect a phpBB table in case you were curious)
Issue 1:
I am trying to create a polar plot with a log scale on the radial axis but I keep getting an error or I get a missed up plot.

This is the code that I use:

import pandas as pd

import numpy as np

import matplotlib.pyplot as plt

metabolites = data[["metabolite"]]

intercepts = data[["intercept"]]

amplitudes= data[["amplitude"]]

acrophases = data[["acrophase"]]

ind = data[["Unnamed: 0"]]

N = metabolites.count()

N = N.values

N = N[0]

metabolites = metabolites.values

acrophases = acrophases.values

amplitudes = amplitudes.values

ind = ind.values

colors = plt.cm.gist_rainbow(ind[:,0]/len(acrophases))

width = np.zeros((N,1)) + 0.3

for i in range(len(acrophases)):

if acrophases[i] <0:

acrophases[i] = acrophases[i]+ np.pi

acrophases = acrophases[:,0]

amplitudes = amplitudes[:,0]

width1 = width[:,0]

metabolites = metabolites[:,0]

fig = plt.figure()

ax = plt.subplot(111, projection='polar')

for j in range(len(acrophases)):

ax.bar(acrophases[j], amplitudes[j], width=0.3, bottom=0.0, align='center', color=colors[j], label=metabolites[j])

handles, labels = ax.get_legend_handles_labels()

ax.set_xticklabels(['0', '3', '6', '9', '12', '15', '18', '21'])

ax.set_rlim((1.0, 10000.0))

ax.set_rscale('log')

fig.savefig('plot.tiff', dpi=600)

plt.show()

Issue 2:
I have been using the API example for creating radar charts: http://matplotlib.org/examples/api/radar_chart.html

In the previous version you could make the radial grid logarithmic simply by adding ax.set_yscale('log') here:

ax = fig.add_subplot(2, 2, n + 1, projection='radar')
ax.set_yscale('log')
plt.rgrids([0.1, 0.2, 0.4, 0.6, 0.8])
ax.set_title(title, weight='bold', size='medium', position=(0.5, 1.1),
horizontalalignment='center', verticalalignment='center')
for d, color in zip(case_data, colors):
ax.plot(theta, d, color=color)
ax.fill(theta, d, facecolor=color, alpha=0.25)
ax.set_varlabels(spoke_labels)

This seems to be broken in rc2, with no data being plotted.
Issue 1:
Feature Request

Add the Enhanced Scrollbar feature from VS 2013 and VS 2015 into VS Code. It's an extremely efficient way to move around within a file and would be a great feature to have in VS Code.

If this is already an extension or an option, I could not find it.

Issue 2:
i report many times about this, but not fixed yet... so sad.

i recored my screen

https://youtu.be/Hb4tLqiyuNs

i use unikey ( simple and popular vietnamese language tool ) + vscode.

but it not work.

i try to many other language tool but still not working...

and other editor: sublimetext, atom it good work.. (sorry about this compare )
Issue 1:
What

As it stands, there doesn't seem to be a way to generate typings for a file, or files, using Deno. It might be possible with Deno.emit, using the 2nd argument (CompilerOptions), but i haven't checked this and I'm not too confident it can.

It also seems like deno types could be expanded upon, ie there's a great opportunity to expand upon this subcommand.

But what I propose is for deno types (and ideally a programatic way as well) to create the typings for the given file or directory that outputs to a single file

How

$ deno types src/mod.ts >> dist/mod.d.ts

await Deno.emit("./src/mod.ts", { typings: true })

Why

Well say I have a project that uses typescript. I plan to move over from Node to Deno, but I need typings. It seems impossible to do this with Deno, halting on that projects progress to make the beautiful journey of moving to Deno. This issue. is specifically with emitting a bundled .d.ts file.

Whilst I can use Deno.emit(file, { compilerOptions: { declaration: true }}), it still doesn't provide the bundled typings

Example

Here is an example, of me wanting to create a single bundled .d.ts file using the emit method, but it not actually providing typings:

// src/mod.ts
export * from "./something.ts"
export * from "./test.ts"

// compile.ts
const stuff = await Deno.emit("./src/mod.ts", {
compilerOptions: {
"declaration": true,
"emitDeclarationOnly": true,
}
})
const keys = Object.keys(stuff.files)
const key = keys.find(k => k.includes("mod.ts.d.ts")) as string
console.log(stuff.files[key])

/// <amd-module name="file:///.../.../tmp/src/mod.ts" />
export * from "./something.ts";
export * from "./test.ts";

As you can see, it doesn't provide any typings

Issue 2:
With #3352, bundles are going to be a mechanism to distribute "libraries" in Deno. It is logical that someone might want to use a distribution bundle in another Deno workload (or consume it in other runtimes) and would want to have type safe consumption of those files, therefore we should generate the declarations along with a bundle.

Related to #2475.
Issue 1:
For this function

package main

func f(fn func() error) error {
return fn()
}

func main() {
called := false
f(func() error {
called = true
return nil
})

}

gc considers called to be both set and used although nowhere in the scope is the value of called ever consulted.

gccgo-5.0 on the other hand considers this code to be faulty

% env LD_LIBRARY_PATH=/opt/gccgo/lib64 PATH=$PATH:/opt/gccgo/bin go build -compiler=gccgo /tmp/x.go
# command-line-arguments
/tmp/x.go:8:2: error: ‘called’ declared and not used
called := false
^

gccgo version

% env LD_LIBRARY_PATH=/opt/gccgo/lib64 PATH=$PATH:/opt/gccgo/bin gccgo -v
Using built-in specs.
COLLECT_GCC=gccgo
COLLECT_LTO_WRAPPER=/opt/gccgo/libexec/gcc/x86_64-unknown-linux-gnu/5.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/trunk/configure --prefix=/opt/gccgo --enable-languages=c,c++,go --disable-bootstrap
Thread model: posix
gcc version 5.0.0 20150324 (experimental) (GCC)

Issue 2:
by scott+ctt@pakin.org:

> What steps will reproduce the problem?

Build and run the attached Go program with GOMAXPROCS=2 or greater. I
used 6g/6l and ran on a dual-socket, quad-core, dual-thread Nehalem EP
system.

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

Expected: No output.

See instead: No output with GOMAXPROCS=1 or undefined. No output if
maxGoroutines is reduced from 10000 to 1000. With GOMAXPROCS=2 or
greater, I get the following:

free 0x7f1ec5b52000: not an allocated block
throw: free mlookup

panic PC=0x7f1ec57cf200
throw: malloc/free - deadlock
double panic

> What is your $GOOS? $GOARCH?

GOOS=linux
GOARCH=amd64

> Which revision are you using? (hg identify)

53fec18b83e2+ release/release.2010-02-17

> Please provide any additional information below.

My larger code (of which the attached is merely a small reproducer) worked
with the previous version of Go.

Attachments:

broken.go (617 bytes)
Issue 1:
https://codesandbox.io/s/vqk87kvj1y. List contains 10000 items, I move one item from bottom to top and react performs 9999 insertBefore operations. It sucks. Take a look at infernojs example https://jsbin.com/qeqatiruko/1/edit?html,js,output - it will perform only one insertBefore operation for one move in all cases.

Issue 2:
Do you want to request a feature or report a bug?

Not sure if it's a bug or an 'accepted' behavior. But this can affect performance in some situations or even 'break the expectations' in others (e.g. animating moved elements [i.e. simple moves])

What is the current behavior?

When a child element moves from the end of the list to the front React actually moves all the other elements after the moved/last element instead of simply inserting the moved element at the front of the list.

This also can be stated more generally for an element or a block of elements moving backward with a significant shift.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/84v837e9/).

Here is a demo that shows the DOM operations performed on DOM nodes (moves & insertions) during reconciliation. To reproduce the issue

type '0123456789x' in the input field then click Patch!

now type 'x0123456789' (move the last 'x' to the front) then click Patch! again

Here's the output

Instead of moving the 'x' to the front. React actually moves all the other elements after the 'x'

Note: the demo uses MutationObserver api to find out the operations. But you can also verify this behavior directly by commenting out the code that activates the dom observer (in componentDidMount) and watch the dom operations manually in the devtools element inspector

What is the expected behavior?

React should perform the minimal number of operations. I know that the 'minimum' will vary for each situation and not trivial to infer for the general case. But for some common cases like this one it should be feasible.

For info this use case is handled in most of the other virtual dom libs like preact, snabbdom. Inferno is a remarkable case as it will always infer the minimum number of operations (it uses an algorithm to find the longest increasing subsequence on an array containing the indexes of the old elements).

I found this behavior while working on a demo to find out how vdom libs rearrange nodes during children reconciliation. For example here is the same output for other libs (demo)

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

The demo uses the 0.16 version. But I tried with 0.15 and it has the same behavior
Issue 1:
Migrated issue, originally created by Anonymous

(original reporter: rtl) Currently the child rows in a parent-child relationship defined using mapper are returned in oid order (in postgres at least). It would be very useful to be able to specify the sort column using the order_by keyword arg when the relation is defined.

Issue 2:
Migrated issue, originally created by Anonymous

Hi!

We're using this in several internal drizzle projects and would love to get it merged. Here's an hg repo with the patch all merged up with latest trunk:

hg clone http://bitbucket.org/mordred/sqlalchemy

Also going to attach it in patch version.

Attachments: updated-drizzle.patch | drizzle_dialect.patch | drizzle_with_connector.patch | new_add_drizzle.patch
Issue 1:
[PowerToys Run -Utility - PowerToys Run Window]

User Experience:

All users especially keyboard users pressing Shift tab key from power launcher edit field will be effected as PowerToys rin window is getting closed.

Test Environment:

OS Version: 20221.1000

App Name: Power Toy Preview

App Version: v0.23.0

Screen Reader: Narrator

Pre-Requisite:

Define any shortcut key to open PowerToys Run

(for e.g. 'Ctrl + Shift + V')

Repro Steps:

Open Power Toys App

Navigate to PowerToys Run Button present on the left side and activate it.

Now press "Ctrl + Shift + V" to open PowerToys Run window.

PowerToys Run utility window will get open.

Focus will land on power launcher edit field.

Now press "Shift+Tab" key.

Observe the issue.

Actual Result:

Pressing "shift + tab" in power launcher edit field PowerToys run is getting closed.

Expected Result:

Pressing "shift + tab" in power launcher edit field PowerToys run window should not get closed.

Functional_Pressing shift tab in power launcher edit field PowerToys run is getting closed.zip

Issue 2:
ℹ Computer information

PowerToys version: 0.21.1.0

PowerToy Utility: PowerToys Run

Running PowerToys as Admin: No

Windows build number: 20211.1000

📝 Provide detailed reproduction steps (if any)

Set PowerToys Run shortcut to ctrl+shift+space

ctrl+shift+space

ctrl+shift+tab will crash PTRun

✔️ Expected result

Key combo is ignored.

❌ Actual result

PowerToys Run crashes and dumps trace log.

📷 Screenshots

Logs

##Error Message

Version: 0.21.1.0
OS Version: Microsoft Windows NT 10.0.20211.0
IntPtr Length: 8
x64: True
Date: 10/05/2020 18:09:57
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at PowerLauncher.ViewModel.ResultsViewModel.SelectPrevTabItem()
at PowerLauncher.ViewModel.MainViewModel.<InitializeKeyCommands>b__24_5(Object _)
at PowerLauncher.ViewModel.RelayCommand.Execute(Object parameter)
at PowerLauncher.MainWindow.Launcher_KeyDown(Object sender, KeyEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

##Log File

2020-10-05.txt
Issue 1:
Electron version: 1.1.0 & 1.2.0

Operating system: OSX El Capitan

When creating a BrowserWindow and enabling DevTools, -webkit-app-region is not working. If you close the DevTools, drag works as expected.

For info, it works great with 1.0.0...

Here's a small exemple :

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
#top {
-webkit-app-region: drag;
position: fixed;
top:0;
right: 0;
left: 0;
bottom: 0;
background: red;
}
</style>
</head>
<body>
<div id="top"></div>
</body>
</html>

const electron = require('electron')
const BrowserWindow = electron.BrowserWindow

electron.app.on('ready',() => {
const win = new BrowserWindow({
minWidth: 1024,
minHeight: 600,
frameLess: true,
titleBarStyle: 'hidden-inset',
show: true
})

win.loadURL(`file://${__dirname}/bug.html`)
win.openDevTools()
})

Not a big bug, but it's annoying to have to close DevTools to move the windows...

EDIT :

Probably related to option : "titleBarStyle", as this code is working on Windows...

Issue 2:
This is a regression—in Electron 0.35.1, draggable regions of the window stop working when the developer tools are opened. This means that the window effectively can't be moved while the developer tools are open. It doesn't matter if the developer tools are docked or in a separate window.

I think this might be a side effect of an intentional change? In previous versions, you couldn't use the "Inspect Element" feature to click and select part of the DOM that was in a draggable region (since it was still draggable.) That now works (I can hover over and click on my title bar), but I can't move the window.

Here's a sample app to reproduce. Open the app, enable "top toolbar" and then open the developer tools:

https://dl.dropboxusercontent.com/u/4803975/frameless-window.zip
Issue 1:
Just before the 3.1 release, having div class="visible-sm visible-xs" together on a div would show the div when it hit both breakpoints. Now, it only works on one breakpoint. They both work individually, but when there's more than one declared on a div, only one class gets triggered. Does the same for hidden.

I checked the issues log and didn't notice this. Hopefully i am not the only one finding this.

Issue 2:
https://dl.dropboxusercontent.com/u/37682778/error/index.html