WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Sorry if this is a duplicate. I searched and searched and I didn't find something quite the same, but it is similar and probably related to #14255 and a few other tickets all reporting broken events (all the tickets I found are different classes of events, none specific to key events) since OOPIF.

I'm also not certain if this is intended behavior with OOPIF.

Output of node_modules/.bin/electron --version: v3.0.2

Operating System (Platform and Version):

$ uname -a
Linux lyra 4.18.10-arch1-1-ARCH #1 SMP PREEMPT Wed Sep 26 09:48:22 UTC 2018 x86_64 GNU/Linux

Output of node_modules/.bin/electron --version on last known working Electron version (if applicable): v3.0.0-beta.5

Expected Behavior

keydown keypress, etc events are emitted when a webview is focused.

Actual behavior

No such events are emitted.

To Reproduce

Please see https://github.com/cprussin/electron-webview-key-event-bug, specifically the commit cprussin/electron-webview-key-event-bug@1cec1ec. Clone the repo and run the typical setup commands:

$ git clone https://github.com/cprussin/electron-webview-key-event-bug.git
$ cd electron-webview-key-event-bug
$ yarn
$ npx electron .

Note that when you press any keys, you get an alert indicating what key you pressed. Then, focus the webview and note that no longer do the alerts show. Note that there's a key down listener attached to both the webview itself, and the document element of the frame.

Additional Information

Everything inside the webview still works properly--e.g., if I add listeners to the document element in a preload script, they are fired properly.

EDIT: I did further testing, and I've noticed that the before-input-event event on the webContents instance for the window containing the webview is also not fired. Not that this is particularly unexpected, just figured it might be interesting or helpful.

EDIT 2: after more testing, this appears to work up to 3.0.0-beta.5, as with the related bug I linked (#14255) I've updated the header to this ticket accordingly.

Issue 2:
Electron version: 1.7.10

Operating system: Mac OS High Sierra and Mac OS Sierra

Expected behavior

shell.openExternal() should open the url in the chrome new tab.

Actual behavior

If you open a url using shell.openExternal() when my chrome had received a update in Mac and I didn't relaunch the chrome it will open a empty chrome tab.

How to reproduce

You can duplicate this issue by going back to older version of chrome in mac and check for update but don't relaunch it.

Now try opening a url using shell.openExternal() it will just give you a empty tab.
Issue 1:
[X] feature request

This is a feature I am proposing for a future Angular.

Current behavior

Both FormGroup and FormControl provide .valueChanges, and observable stream of changes to the control or group of controls' value. This is very helpful, but it seems to omit the first value (before the first "change") for no particularly good reason other than consistency with the name.

This is easily worked around by with something like this:

const x$ = this.aControl.valueChanges.startWith(this.aControl.value);

... which is effective, but verbose and repetitive.

Expected behavior

Programmatically, very often when handling a control or group as an observable stream, one wants access to the entire stream from the beginning.

Therefore, I request that .valueChanges be supplemented with .values, which would be an Observable that emits both the initial value and changes.

Minimal reproduction of the problem with instructions

A search of Github yields numerous cases in published Angular code where something similar to the above pattern appears.

https://github.com/search?q=valueChanges.startWith&ref=simplesearch&type=Code&utf8=%E2%9C%93

All of these, as well as similar code behind countless corporate firewalls, could be tightened up by this API improvement.

Issue 2:
I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

I need the ability to dynamic assign Input()'s to HostBinding's.

Use case is allowing a developer to pass a custom css class to attach to the host. Lets think about a modal, I might want the upload modal to look slightly different from my new user modal. I allow the developer to pass a custom css class via input. Currently, there is no clean way to apply that. You end up with code like this:

@Input() cssClass: string = '';

@HostBinding('class')
get cssClasses(): string {
let clz = 'drawer';
clz += ` ${this.cssClass}`;
return clz;
}

Expected behavior

Some way to accomplish this with the decorator, just spit balling but maybe something like:

@HostBinding(`class.${this.cssClass}`)
@Input() cssClass: string = '';

Minimal reproduction of the problem with instructions

NA

What is the motivation / use case for changing the behavior?

Dynamic css applying via decorators

Please tell us about your environment:

NA

Angular version: 2.0.X

2.3.x

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

NA

Language: [all | TypeScript X.X | ES6/7 | ES5]

TypeScript 2.1.x

Node (for AoT issues): node --version =

Node 7.x
Issue 1:
Extended from Stackoverflow question

Environment info

Operating System: Ubuntu 14.04 / OS X Yosemite

Installed version of CUDA and cuDNN:

CUDA Version : 7.5

cuDnn: 4

Tensorflow version: 0.8.0

When resizing image with variable dimension (output from decode_jpeg), image tend to get messed up. However, if reshape() is applied prior to resize(), image will get resized properly. This issue does not affect ResizeMethod.Nearest_Neighbour.

Steps to reproduce

import tensorflow as tf
import matplotlib.pyplot as plt

file_contents = tf.read_file('./2008_000002.jpg')
im = tf.image.decode_jpeg(file_contents)
im_bi = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.BILINEAR)
im_nn = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.NEAREST_NEIGHBOR)
im_bic = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.BICUBIC)
im_ar = tf.image.resize_images(im, 256, 256, method=tf.image.ResizeMethod.AREA)

# im = tf.reshape(im, shape=[256, 256, 3])

sess = tf.Session()
sess.run(tf.initialize_all_variables())

img_bi, img_nn, img_bic, img_ar = sess.run([im_bi, im_nn, im_bic, im_ar])

plt.imshow(img_bi)
plt.title("BILINEAR")
plt.figure()

plt.imshow(img_nn)
plt.title("NEAREST_NEIGHBOR")
plt.figure()

plt.imshow(img_bic)
plt.title("BICUBIC")
plt.figure()

plt.imshow(img_ar)
plt.title('AREA')
plt.show()

Original image

Result

Issue 2:
It looks like the op tf.image.resize_images() has no effect on the image shape when the parameters new_height and new_width are dynamically computed (this is possible since the fix of issue #1001).

For example, this piece of code

shape = tf.shape(image)
height = shape[0]
width = shape[1]
new_shorter_edge = tf.constant(400, dtype=tf.int32)

height_smaller_than_width = tf.less_equal(height, width)
new_height_and_width = tf.cond(
height_smaller_than_width,
lambda: (new_shorter_edge, _compute_longer_edge(height, width, new_shorter_edge)),
lambda: (_compute_longer_edge(width, height, new_shorter_edge), new_shorter_edge)
)

image = tf.image.resize_images(image, new_height_and_width[0], new_height_and_width[1])
image = tf.Print(image, [tf.shape(image), height, width, new_height_and_width[0], new_height_and_width[1]])
return tf.image.random_crop(image, [224, 224])

throws the following exception:

I tensorflow/core/kernels/logging_ops.cc:79] [122 160 3][122][160][400][524]
W tensorflow/core/common_runtime/executor.cc:1096] 0x7f9c08008490 Compute status: Failed precondition: width must be >= target_width: width = 160, target_width = 224

So as you can see in the first line of the printout, the shape of the image is not affected by tf.image.resize_images. Is this a bug or am I doing something wrong?

I also made up a workaround for this:

image = tf.expand_dims(image, 0)
image = tf.image.resize_bilinear(image, tf.pack(new_height_and_width))
image = tf.squeeze(image, [0])
image = tf.Print(image, [tf.shape(image), height, width, new_height_and_width[0], new_height_and_width[1]])
return tf.image.random_crop(image, [224, 224])

for example prints

I tensorflow/core/kernels/logging_ops.cc:79] [400 711 3][281][500][400][711]
Issue 1:
I seem to be getting setFunctionBreakpoints requests after the launch request whereas setBreakpoints requests come in before the launch request. Should I be using the configurationDone request or something here? BTW the extension is configured to send the initialized event in the processing of the initialize request but before the initialize response is sent. Could that be causing this?

Issue 2:
VSCode Version: 0.10.12-alpha

OS Version: Windows10

Steps to Reproduce:

Launch app and open a folder for "Blank Node.js TypeScript" project.

Click on debug icon from the view bar and set node debugger.

It will generate a launch.json file with some default settings.

Try to debug and verify error messages.

5 try to generate few more errors by updating invalid entries in launch.json.

Now fix all the error by updating launch.json and start debugging.

Verify command prompt and make sure it should not generate any error message.

Actual:

Error message pop-up remains forever and user needs to click on close button to get rid from error popup.

Debugger started and command prompt displaying message like below with error pop-up.

node --debug-brk=29322 --nolazy BlankNodeJSTypeScriptApp\server.js

Debugger listening on port 29322

Debug control action hidden behind the error pop-up.

Expected: Once user fixed the errors and start debugging then error pop-up should not be displayed.
Issue 1:
Setting up https://github.com/SphinxKnight/Twitter-Assistant, at the npm run build, a TS1005 error was thrown. This is due to the signature of the isArray method in lib.es6.d.ts which is incorrect.

This typo also occurs in signatures for isView with ArrayBuffer.

Note: This wasn't detected by running the tests.

Issue 2:
This interface contains:

isArray(arg: any): arg is Array;

but I think it should be:

isArray(arg: any): boolean;

It doesn't compile as it is.
Issue 1:
React version: 18.0.x, 18.1.x, 18.2.x

Steps To Reproduce

Visit provided sandbox

Open console and observe logs displayed twice.

Click the button and observe the rendering log happens twice, the effect log happens once.

Link to code example: https://codesandbox.io/s/react-18-use-effect-bug-iqn1fx

The current behavior

The useEffect callback runs twice for initial render, probably because the component renders twice. After state change the component renders twice but the effect runs once.

The expected behavior

I should not see different number of renders in dev and prod modes.

Extras

The code to reproduce:

import { useEffect, useReducer } from "react";
import "./styles.css";

export default function App() {
const [enabled, toggle] = useReducer((x) => !x, false);

useEffect(() => {
console.log(
"You will see this log twice for dev mode, once after state change - double effect call"
);
}, [enabled]);

console.log("You will see this log twice for dev mode - double rendering");

return (
<div className="App">
<h1>Hello CodeSandbox</h1>
<h2>Start editing to see some magic happen!</h2>
<button onClick={() => toggle()}>
Toggle me: {enabled ? "on" : "off"}
</button>
</div>
);
}

Issue 2:
When trying to use react-addons-perf@15.1.0 in Google Chrome, it is found that after Perf.start(), error messages displayed

Warning: There is an internal error in the React performance measurement code. Did not expect ctor timer to start while componentDidMount timer is still in progress for another instance.

Warning: There is an internal error in the React performance measurement code. We did not expect componentDidMount timer to stop while no timer is still in progress for another instance. Please report this as a bug in React.

After I typed Perf.stop() and try to use getWasted - this error message displayed

ReactPerf.js:239 Uncaught TypeError: Cannot read property 'updateCount' of undefined(…)
Issue 1:
When working in a CSS file (or presumably any type of file), if the file is updated from an outside source, the position of the page will reset causing you to have to scroll back down to where you were.

Case: When working in CSS, I often work both directly in the CSS and via Chrome Dev Tools (changes are autosaved to the local CSS). Every time the file changes via Chrome Dev Tools, Atom resets the scroll position.

Sublime Text handles this perfectly. Any changes are just updated but your position is never lost. This can probably be solved by just capturing the current line number before the file resets, then going back to that number.

Issue 2:
steps to reproduce

open a log file in atom

scroll part way down the file

add new line to end of log file with an external tool/editor and save

go back and view the log file in atom

expected

log file is reloaded

log file scroll position is still part way down (same as in step 2 above)

actual

log file is reloaded (PASS)

log file scroll position goes back to top (FAIL)

Every time a new line is added externally the editor reloads it (as it should) but it jumps to the top which makes it impossible to read log files while they're been written because atom constantly jump back to the top.
Issue 1:
Guidelines

Please note that GitHub issues are only meant for bug reports/feature requests.

If you have questions on how to use Neo4j, please ask on StackOverflow instead of creating an issue here.

To help us understand your issue, please specify important details, primarily:

Neo4j version: X.Y.Z

Operating system: (for example Windows 95/Ubuntu 16.04)

API/Driver: (for example Cypher/Java API/Python driver vX.Y.Z)

Steps to reproduce

Expected behavior

Actual behavior

Additionally, include (as appropriate) log-files, stacktraces, and other debug output.

Example bug report

I discovered that when I mount data/ to a volume on my host, and then stop the container, the write.lock is not removed as well as a number of other files not being cleaned up properly.

Neo4j Version: 3.0M03

Operating System: Ubuntu 15.10

API: Docker

Steps to reproduce

Pull the image: docker pull neo4j/neo4j:3.0.0-M03

Create a directory on the host that will be a mount for the data: mkdir /home/neo4j-data

Start a new container that mounts to this directory: docker run -d --name neo4j-test -p 7474:7474 -v /home/neo4j:/data neo4j/neo4j:3.0.0-M03

Navigate to the write.lock file located in the directory: /data/databases/graph.db/schema/label/lucene/labelStore/1/

Stop the container: docker stop neo4j-test

Expected behavior

write.lock should be removed now.

Actual behavior

write.lock is still present and preventing access by other programs.

Issue 2:
The Neo4j server was starting just fine... Then I uninstalled and re-installed Java (to deal with another issue), and now the Neo4j server cannot even start!

Neo4j version: Community Edition 3.4.9

Operating system: Windows 10

Steps to reproduce

Start the Windows10 Power Shell

Issue the command D:\neo4j\bin\neo4j console ( D:\neo4j is my Neo4j install directory)

Expected behavior : start the Neo4j server

Actual behavior: error message

`

Invoke-Neo4j : Could not find java at C:\Program Files (x86)\Java\jdk1.8.0_181\bin\java.exe

At line:1 char:163

... ule 'D:\neo4j\bin\Neo4j-Management.psd1'; Exit (Invoke-Neo4j console)
~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j

`

I don't even know where it's dreaming up the C:\Program Files (x86)\Java part - Java is installed on C:\Program Files\Java (as expected for a 64-bit version)

The Windows 10 control panel is showing "Java SE Development Kit 8 Update 181" and "**Java SE Development Kit 8 Update 181 (64-bit)

**". Note: I just uninstalled and re-installed Java, but it didn't help

PS: I took a peek at the Windows registry, and didn't notice anything immediately looking abnormal. For example, it shows JavaHome to be set to C:\Program Files\Java\jre1.8.0_181 , which looks good. And none of the registry entries under JavaSoft show that mysterious C:\Program Files (x86) folder that shouldn't be there...
Issue 1:
I am working on an app with messaging capability. When the app has been force closed or is running in the background the user receives a push notification. Clicking on the notification opens the app and ideally brings them to the thread of the message they just received. However, currently I am pushing three separate pages onto the stack and therefore one of the pages is shown for a split second before loading the thread. It would be ideal to be able to push a tree of pages onto the stack so that only the last page loads and is shown to the user rather than briefly showing all three.

Issue 2:
We should document how to add deep links to an app. This is the first

use case mentioned in the larger discussion mentioned in bug 10975, quoted here for easy access:

External URLs: A movie database app wants to register to take over handling URLs for its website. Now when the user clicks on the URL the details for that movie are shown in the app instead of the browser.

Android and iOS have mechanisms that allow an app to register as a handler for external URLs. Android uses App Links, and iOS uses URL Schemes. These mechanisms allow the app to register as a handler for URLs that can be invoked by other applications.

From a customer:

"We need a URL that will 1) take the user to a specific part in our app (a chat, for example) if they have the app installed or 2) take a user to the device specific app store and then do 1) after they install the app. I think this is called Google Play Referrer on Android "

#10452 added engine support for setting an initial route in a Flutter app, which is "deep" in the app (i.e., not the start page of the app) so this should be possible now, we just need some docs.
Issue 1:
Hello,

I follow the installation steps to use stocks examples which is in examples/stocks folder.

There, I executed pub get command and it was ok. Then, I tried to launch the sky_tool like said in the steps by steps instructions.

On examples/stocks folder :

C:\Users\sylsau\MyDocuments\Android\dart\sky_sdk\examples\stocks>.\packages\sky\sky_tool start --install '.\packages\sky\sky_tool' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.

Sorry, message is in french but problem is that sky_tool is not known as an executable. Is it normal ? sky_tool is not supported on Windows 8 ?

Thanks for your help.

Sylvain

Issue 2:
Rough TODO list:

Make //flutter/snapshotter work on Windows.

Make the flutter command line tool work on Windows.

Teach the flutter.ps1 where to get the Dart SDK and how to bootstrap into Dart.

Teach the tool about Windows as a host platform (e.g., where to find the snapshotter)

Teach the tool how to control Android devices via adb on Windows.

Infrastructure for continuously building and testing the Windows toolchain.

Issue by Scorpiion

Sunday Aug 23, 2015 at 18:18 GMT

Originally opened as https://github.com/flutter/engine/issues/771

I understand that Windows support is not prio 1 atm, but in the future, as a platform for developing Android apps (and maybe iOS apps), would it be possible to add Windows support? I understand that it would be some work, but basically what I'm asking is if it's part of the long term plan or simply ignored on purpose for some reason (other than maybe no devs on the team are using Windows..).

Even if I myself only use Linux (close to 10 years Linux only) I think it can be good for the project to support Windows in the long run, at Stackoverflow's latest developer survey Windows developers was still a little bit more that 50% (Mac and Linux at ~21% each):

http://stackoverflow.com/research/developer-survey-2015#tech-os

The only reference of Windows I could find was this old comment in an old readme:

https://github.com/domokit/sky_engine/pull/165/files#r35055666

And just to be extra clear and avoid any confusion, this issue is about developing Android and iOS apps on Windows, not deploying Sky to Windows Phone.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18363.657]
PowerToys version: v0.17.0
PowerToy module: Markdown-Preview

Steps to reproduce

Open a markdown-file in the preview and try to copy with CTRL+C

Expected behavior

Copied text is in clipboard

Actual behavior

nothing is in the clipboard

Issue 2:
As often Markdown files contain technical instructions, it would be nice if the text in Markdown files could be selected and copied.

Note: I am the author of MarkdownPreview, a Windows Explorer preview pane extension looking forward to drop support, already announcing people to switch to Powertoys
Issue 1:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

Please do not remove the text below this line

DevTools version: 4.0.5-5441b09

Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16721)

at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:293849)

at Al (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:294084)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:4368)

Component stack: in Al

in div

in div

in Ir

in Unknown

in n

in Unknown

in div

in div

in Wa

in ce

in be

in So

in Vl

Issue 2:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

Please do not remove the text below this line

DevTools version: 4.0.4-3c6a219

Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16721)

at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293207)

at pl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293442)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)

Component stack: in pl

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ha

in le

in ve

in ko

in Ul