WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

15.1.0

What operating system are you using?

Ubuntu

Operating System Version

ubuntu 18.04

What arch are you using?

x64

Last Known Working Electron version

15.0.0

Expected Behavior

When invoking a context-menu event on the webcontents of a webview in the renderer process, the function works and does not give an error.

Actual Behavior

Since #30831 frame is sent along with the params, but frame is not serializable so can not cross from the main process to the renderer process. This results in an error being shown to the user.

Testcase Gist URL

No response

Additional Information

I'm aware that getting the webContents in the renderer process (using @electron/remote) is an antipattern. Still, I feel this is something we should not break in a minor release.

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

15.1.0 / and all 16.0.0-alpha.x

What operating system are you using?

Other Linux

Operating System Version

kernel 5.14.7-2

What arch are you using?

x64

Last Known Working Electron version

15.0.0

Expected Behavior

No error occurs.

Actual Behavior

The Failed to serialize arguments error occurs on right mouse click on the webview's content.

Testcase Gist URL

No response

Additional Information

Notice there is no error when you do the right mouse click on the browserwindow's content but on webview's.

Notice that adding the "context-menu" handler is not even required.

The "input" controls were added to the snippet just for the convenience of testing. The right mouse click on any area of webview triggers the error.

To reproduce:

const {app, BrowserWindow} = require("electron")

app.whenReady().then(() => {
// app.on("web-contents-created", (...[/* event */, webContents]) => {
// webContents.on("context-menu", () => {/* NOOP */})
// })
new BrowserWindow({webPreferences: {webviewTag: true}}).loadURL(`data:text/html,
<html><body>
<input type='text' value='input'>
<webview src="data:text/html,<input type='text' value='webview input'>"></webview>
</body></html>`,
)
})
Issue 1:
The change to utils/template.py introduced in #5059 swallows errors about variable lookups. This causes unexpected issues later on. In my case a file is unexpectedly empty without an error.

I think AnsibleErrors should be passed on like this::

def lookup(name, *args, **kwargs):
from ansible import utils
instance = utils.plugins.lookup_loader.get(name.lower(), basedir=kwargs.get('basedir',None))
vars = kwargs.get('vars', None)

if instance is not None:
# safely catch run failures per #5059
try:
ran = instance.run(*args, inject=vars, **kwargs)
except errors.AnsibleError:
raise
except Exception, e:
ran = None
if ran:
ran = ",".join(ran)
return ran
else:
raise errors.AnsibleError("lookup plugin (%s) not found" % name)

That way typos in variable names or in the file name show up again.

Issue 2:
Issue Type:

Bug Report

Ansible Version:

ansible 1.7 (devel a6a1e24) last updated 2014/05/12 10:59:56 (GMT -400)

This happens in 1.6 as well.

Environment:

OSX 10.9.2

Summary:

Errors in templates are not propagated when using the template lookup plugin, which returns an empty string instead. Errors in these templates can be very difficult to debug as a result.

Steps To Reproduce:

ansible-playbook -vvv -i inventory/local pb_test.yml

https://gist.github.com/scottanderson42/c1d172aa56916a258ff1

Expected Results:

The first task should fail as the variable does_not_exist is not set.

Actual Results:

The lookup task returns an empty string when the variable is not set instead of failing.

(sp_devops)GoatRodeo:devops anderson (development)$ ansible-playbook -vvv -i inventory/local pb_test.yml

PLAY [127.0.0.1] **************************************************************

TASK: [debug msg=] ************************************************************

ok: [127.0.0.1] => {

"msg": ""

}

PLAY [127.0.0.1] **************************************************************

TASK: [debug msg=This does not exist: 42

] ************************************

ok: [127.0.0.1] => {

"msg": "This"

}

PLAY RECAP ********************************************************************

127.0.0.1 : ok=2 changed=0 unreachable=0 failed=0
Issue 1:
Promise<Derived> is assignable to Promise<Base> (good), but Promise<Base> is also assignable to Promise<Derived> (bad - should require a cast)

This weakens type checking, especially since it's so easy to accidentally create Promise<{}> which is assignable to any other Promise:

function f() {
return new Promise(resolve => { resolve(1); });
// oops, this has a return type of Promise<{}>
}
function g(p: Promise<string>) { /* ... */ }

g(f()); // Allowed due to contravariance!

It's possible to work around this by extending the Promise interface with a dummy property:

interface Promise<T> { _assignabilityHack: T }

Issue 2:
var as: ArrayLike<number | string> = <ArrayLike<string>>null;
var an: ArrayLike<number> = <ArrayLike<number | string>>as; // detect incompatibility

var ps: PromiseLike<number | string> = <PromiseLike<string>>null;
var pn: PromiseLike<number> = <PromiseLike<number | string>>ps; // cannot detect

We must add the following additional definition to detect the incompatibility of PromiseLike, like a ArrayLike.

interface PromiseLike<T> {
_?: T;
}

interface PromiseLike<T> {
_?: T;
}
var ps: PromiseLike<number | string> = <PromiseLike<string>>null;
var pn: PromiseLike<number> = <PromiseLike<number | string>>ps; // detect incompatibility

This behavior is the spec, but this incompleteness is unfavorable.
Issue 1:
Hi,

I used VS Code since it launched, one of the feature i loved so much is the intellisense while adding a file using require when coding for node js.

After the latest update (Version: 0.10.8, Shell: 0.35.6) require intellisense is not working at all, it always says 'No suggestions'

Can someone help me to get the intellisense for 'require' command.

Issue 2:
One of the features that I really liked with vscode was the folder path intellisense inside require('path') while doing NodeJs development. Now I just see a list of global variables. I don't use the new salsa, and I'm targeting ES5.

Something that might be worth mentioning is that the intellisense of the required modules is working as before.
Issue 1:
ProvidePlugin can only be used for default exports, the example in the doc is jQuery.

new webpack.ProvidePlugin({
$: "jquery"
})

However if you're using libraries with named exports, like preact you're out of luck

Hello world with preact:

import { h, render } from 'preact';

render(
<span>Hello, world!</span>,
document.body
);

The variable h is never used in the source file but it's needed because babel transpiles jsx into h() calls.

Ideally one would only write import { render } from 'preact'; and then use ProvidePlugin to inject the import for h.

Maybe something like

new webpack.ProvidePlugin({
h: ["preact", "h"] // <- module name becomes an array
})

The preact-boilerplate imports h in every file and then defines an eslint rule to disable the unused error "no-unused-vars": [0, { "varsIgnorePattern": "^h$" }].

rollup-plugin-inject allows named exports

Issue 2:
I think it will be suitable to provide version of expression to ProvidePlugin to import PROPERTY of module

For example:

new webpack.ProvidePlugin({
'variable': ["npm-module","variable"]
})

in this case it is resolved as require("npm-module")["variable"]

Webpack version:

2 latest NPM

Please tell us about your environment:

Windows 10
Issue 1:
Summary of the new feature/enhancement

In Windows Snap, when unsnapping the window, it returns to its previous size. Would like the same feature (maybe as an option) for zones when exiting a zone.

Issue 2:
Summary of the new feature/enhancement

User has a Surface PRO and Surface Dock for work. Often attends meetings and thus takes the Surface PRO with them. This means disconnecting and reconnecting to monitor(s) many times per day. Currently this requires moving windows back to desired position with every reconnect. On rare occasion, Windows has a bug where when you reconnect the monitor, windows are not visible but they are open. You have to press ALT+Space, Move and then use the arrow keys to get the window back into a visible portion of the screen so you can move it with the mouse again.

It would be immensely helpful if FancyZones would restore windows to their saved zone when monitors are connected to the computer. This would save time and it would be a great work-around for the Windows bug I mention above.

Proposed technical implementation details (optional)

User sets up FancyZones on Surface screen (e.g., 1 Grid Zone; let's call that Zone 0) and on other monitor (e.g., 2 Grid Zone; let's call these Zone 1 and 2).

User moves Slack app to Zone 0, Edge to Zone 1, Mail to Zone 2.

EXPECTED : If user restarts while still connected to the Surface Dock, upon reboot and opening of same apps, they will return to their assigned Zones.

User disconnects from Surface Dock. Now only Zone 0 exists so FancyZones moves all apps to Zone 0.

User connects to Surface Dock. External monitor comes back on. FancyZones detects the monitor is available again, and restores Zone 1 and Zone 2 to that monitor and then moves the apps that had been in Zone 1 and Zone 2 back into their position.
Issue 1:
I have post the issue to tensorflow,and they suggest I post the issue here.

Issue 2:
I have post the issue to tensorflow,and they suggest I post the issue here.

I'm using MacBook Air with M1 chip. OS version is Big Sur 11.4.

which python

/Users/dmitry/Applications/Miniforge3/bin/python

I run the following code using tensorflow-macos and tensorflow_macos, respectively.

import tensorflow as tf

mnist = tf.keras.datasets.mnist

(x_train, y_train), (x_test, y_test) = mnist.load_data()

x_train, x_test = x_train / 255.0, x_test / 255.0

model = tf.keras.models.Sequential([

tf.keras.layers.Flatten(input_shape=(28, 28)),

tf.keras.layers.Dense(128, activation='relu'),

tf.keras.layers.Dropout(0.2),

tf.keras.layers.Dense(10)

])

predictions = model(x_train[:1]).numpy()

tf.nn.softmax(predictions).numpy()

loss_fn = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True)

loss_fn(y_train[:1], predictions).numpy()

model.compile(optimizer = 'sgd', loss = loss_fn)

model.fit(x_train, y_train, epochs=100)

I got this! with tensorflow-macos and python3.9:

1875/1875 [==============================] - 8s 4ms/step - loss: 0.7026

Epoch 2/100

1875/1875 [==============================] - 8s 4ms/step - loss: 0.3872

Epoch 3/100

1875/1875 [==============================] - 8s 4ms/step - loss: 0.3284

Epoch 4/100

1875/1875 [==============================] - 8s 4ms/step - loss: 0.2891

Epoch 5/100

1875/1875 [==============================] - 8s 4ms/step - loss: 0.2622

with tensorflow_macos and python3.8 env:

Epoch 1/100

1875/1875 [==============================] - 1s 276us/step - loss: 1.2181

Epoch 2/100

1875/1875 [==============================] - 1s 270us/step - loss: 0.4678

Epoch 3/100

1875/1875 [==============================] - 1s 269us/step - loss: 0.3935

Epoch 4/100

1875/1875 [==============================] - 1s 271us/step - loss: 0.3507

Epoch 5/100

1875/1875 [==============================] - 1s 270us/step - loss: 0.3231

Why tensorflow-macos is so slower than tensorflow_macos?Did I miss something?
Issue 1:
Using and example code from http://www.html5rocks.com/ in the body of my index.html. Don't show the bubble when i click the button (the input change the focus and the border glow but don't show the bubble).

<form>
<input type="text" required value="" />
<input type="submit" value="Submit" />
</form>

The buble that don't show with Electron:

I'm using the prebuild v0.209 from: https://github.com/atom/atom/releases/tag/v0.209.0

Issue 2:
Atom shell currently does not support HTML5 form validation notifications -- client side form validation is supported and you cannot submit invalid form entries, however, there is no visual cue or notification for invalid entries as there is in most browsers (see image below).

Is support for this planned?
Issue 1:
I'm using the v1.0.1 pre-release.

I've created a single machine cluster (v0.19.3) using the KUBERNETES_PROVIDER=ubuntu ./kube-up.sh command. It started normally.

Then I tried to start the Heapster on the "cluster":

wicked@w:~/docker/kubernetes $ kubectl create -f cluster/addons/cluster-monitoring/influxdb --namespace=kube-system
services/monitoring-grafana
replicationcontrollers/monitoring-heapster-v5
services/monitoring-heapster
replicationcontrollers/monitoring-influx-grafana-v1
services/monitoring-influxdb

It has created 5 docker containers running:

a8b397bb47d1 gcr.io/google_containers/heapster_grafana:v0.7 "/kuisp -p 8080 -c / 9 minutes ago Up 9 minutes k8s_grafana.7ff9ddef_monitoring-influx-grafana-v1-xumof_kube-system_efec7e43-2f69-11e5-9ca4-005056010186_d3fc3378
78ce40555bb7 gcr.io/google_containers/heapster_influxdb:v0.3 "/run.sh" 9 minutes ago Up 9 minutes k8s_influxdb.787acd0e_monitoring-influx-grafana-v1-xumof_kube-system_efec7e43-2f69-11e5-9ca4-005056010186_03ef2fc5
5bf518831100 gcr.io/google_containers/heapster:v0.16.0 "/heapster --source= 9 minutes ago Up 9 minutes k8s_heapster.8972800b_monitoring-heapster-v5-jy7o5_kube-system_efd4cc8c-2f69-11e5-9ca4-005056010186_4f1014d0
c5d90b64aca7 gcr.io/google_containers/pause:0.8.0 "/pause" 9 minutes ago Up 9 minutes 0.0.0.0:8083->8083/tcp, 0.0.0.0:8086->8086/tcp k8s_POD.fc880c63_monitoring-influx-grafana-v1-xumof_kube-system_efec7e43-2f69-11e5-9ca4-005056010186_46d51def
c63dbddfd38d gcr.io/google_containers/pause:0.8.0 "/pause" 9 minutes ago Up 9 minutes k8s_POD.e4cc795_monitoring-heapster-v5-jy7o5_kube-system_efd4cc8c-2f69-11e5-9ca4-005056010186_a34b8057

But the heapster container repeatedly reports an error:

E0721 05:48:45.733960 1 reflector.go:136] Failed to list *api.Node: Get https://192.168.0.2:443/api/v1/nodes: x509: failed to load system roots and no roots provided
E0721 05:48:45.954969 1 reflector.go:136] Failed to list *api.Pod: Get https://192.168.0.2:443/api/v1/pods?fieldSelector=spec.nodeName%21%3D: x509: failed to load system roots and no roots provided
E0721 05:48:46.385188 1 reflector.go:136] Failed to list *api.Namespace: Get https://192.168.0.2:443/api/v1/namespaces: x509: failed to load system roots and no roots provided

Issue 2:
heapster is not able to connect to kube-apimaster in case of self signed certificate and there is no way to provide ca.crt file as parameter no disable ssl check.

I'm using:

I0720 10:50:47.268679 1 heapster.go:52] /heapster --source=kubernetes:'' --sink=influxdb:http://monitoring-influxdb:8086 --poll_duration=2m --stats_resolution=1m
I0720 10:50:47.268713 1 heapster.go:53] Heapster version 0.16.0

with kubernetes 1.0.1
Issue 1:
Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.18.5

Meta database

MySQL

Expected results

No error

Actual results

Has an error

Steps to reproduce

The error is:

_OperationalError: (mysql_exceptions.OperationalError) (1054, "Unknown column 'created_by' in 'order clause'") [SQL: u'SELECT dashboards.created_on AS dashboards_created_on, dashboards.changed_on AS dashboards_changed_on, dashboards.id AS dashboards_id, dashboards.dashboard_title AS dashboards_dashboard_title, dashboards.position_json AS dashboards_position_json, dashboards.description AS dashboards_description, dashboards.css AS dashboards_css, dashboards.json_metadata AS dashboards_json_metadata, dashboards.slug AS dashboards_slug, dashboards.changed_by_fk AS dashboards_changed_by_fk, dashboards.created_by_fk AS dashboards_created_by_fk \nFROM dashboards ORDER BY created_by asc \n LIMIT %s'] [parameters: (100,)]

My tested result :

"ORDER BY created_on" is work。

“dbs” table has “created_on” field instead of “created_by”.

Issue 2:
Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

superset 0.18.5

python 3.4

mysql: 5.7.18

Expected results

Can be sorted by "Database" successfully

Actual results

Throw Error:

sqlalchemy.exc.ProgrammingError: (_mysql_exceptions.ProgrammingError) (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asc \n LIMIT 100' at line 2") [SQL: 'SELECT tables.created_on AS tables_created_on, tables.changed_on AS tables_changed_on, tables.id AS tables_id, tables.description AS tables_description, tables.default_endpoint AS tables_default_endpoint, tables.is_featured AS tables_is_featured, tables.filter_select_enabled AS tables_filter_select_enabled, tables.offset AS tables_offset, tables.cache_timeout AS tables_cache_timeout, tables.params AS tables_params, tables.perm AS tables_perm, tables.table_name AS tables_table_name, tables.main_dttm_col AS tables_main_dttm_col, tables.database_id AS tables_database_id, tables.fetch_values_predicate AS tables_fetch_values_predicate, tables.user_id AS tables_user_id, tables.schema AS tables_schema, tables.sql AS tables_sql, tables.created_by_fk AS tables_created_by_fk, tables.changed_by_fk AS tables_changed_by_fk \nFROM tables ORDER BY database asc \n LIMIT %s'] [parameters: (100,)]

Steps to reproduce

Use admin user to login Superset

Click navigation menu "Sources", then click sub menu "Tables"

Click table header "Database"
Issue 1:
In order to support understanding (rare, but possible) SEGFAULT, OOM, etc, in AOT Dart code we will likely to want to support symbol generation for gen_snapshot, etc.

I don't know what the contract is for AOT dart code (is it supposed to be able to crash this way?) but it seems like this may be useful?

@a-siva may already have a bug on file for this, but I didn't find it in a quick search so here is one.

Issue 2:
This request comes from customer:fast. They're getting crash logs from their production app (via package:logging) but no line numbers in --release builds. If possible, they would like line numbers.

Possible? @a-siva @zanderso?
Issue 1:
Summary of the new feature/enhancement

Add an option to enter a custom window resolution in the FancyZones editor.

So users (who use FancyZones for resizing windows) can add their preferred zone resolution Like (1024x576) or (1080x720) in a Text-box for example.

Proposed technical implementation details (optional)

When edit my custom FancyZones layout. A text-box appears on the zone that allow me to enter a preferred zone size. (or maybe add it as a right click option)

A screenshot concept: https://imgur.com/a/3o0L7am

Issue 2:
Summary of the new feature/enhancement

Sizing of custom zones in editor by dragging mouse is a little bit coarse (hit and miss) in terms of getting close to edges of screen symmetrically and allowing window edges of multiple zones to line up neatly. Some possible solutions are suggested for consideration.

Proposed technical implementation details (optional)

Perhaps have an option for the editor to snap to a grid of user specified n pixels.

Perhaps have optional ability to input window dimension and position directly in both absolute terms (n x n pixels) and in terms of percentage of screen width and height.
Issue 1:
NOTE: Only file GitHub issues for bugs and feature requests. All other topics will be closed.

For general support from the community, see StackOverflow.

To make bugs and feature requests more easy to find and organize, we close issues that are deemed

out of scope for GitHub Issues and point people to StackOverflow.

For bugs or installation issues, please provide the following information.

The more information you provide, the more easily we will be able to offer

help and advice.

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?

Environment info

Operating System:

Installed version of CUDA and cuDNN:

(please attach the output of ls -l /path/to/cuda/lib/libcud*):

If installed from binary pip package, provide:

A link to the pip package you installed:

The output from python -c "import tensorflow; print(tensorflow.__version__)".

If installed from source, provide

The commit hash (git rev-parse HEAD)

The output of bazel version

If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)

What other attempted solutions have you tried?

Logs or other output that would be helpful

(If logs are large, please upload as attachment or provide link).

Issue 2:
I am not able to install CUDA 8.0 with Xcode 8.0 version. Everywhere i found the solution to downgrade the version of Xcode. Is there any other solution without downgrading the version of Xcode.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Visiting material-ui.com on the stock/default android browser running android 5.0.2 the drawer shouldn't be stuck open.

Current Behavior

The drawer is stuck open. The rest of the page is clickable/scrollable and there's no overlay, but the drawer displays over the page.

Steps to Reproduce (for bugs)

Navigate to material-ui.com on the stock/default browser of an android phone OS <= ~5

Your Environment

Tech
Version

Material-UI
0.19.4

browser
Android 5.0.2 Stock/Default

Issue 2:
Hi!

I am trying to override styles for BottomNavigationButton. Specifically the label. This is my code.

const styles = {
selected: {
color: "#353535"
},
label: {
color: "#e2e2e2",
},
};

class CustomBottomNavButton extends React.Component {

static propTypes = {
classes: PropTypes.object.isRequired,
};

render() {
console.log(Theme.typography.caption);
const props = this.props;

return <BottomNavigationButton {...props}
classes={{selected: props.classes.selected, label: props.classes.label, icon: props.classes.icon}}
icon={props.icon}
label={props.label}>
</BottomNavigationButton>;
}
}

export default withStyles(styles)(CustomBottomNavButton);

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

Expected Behavior

When Button is selected, it should have "selected" style, and when is not selected should have "label" style.

Current Behavior

When Button is selected it should have "selected" style but it remains with "label". If I remove the color in label, then applies "selected". So, looks like selection it's not overriding the styles.

Same happen for any icon included. If "stroke" was defined before (in any part, svg itself, via another css..) selected styling won't work.

Steps to Reproduce (for bugs)

Tech
Version

Material-UI
^1.0.0-beta.23

React
^16.2.0

browser
Mozilla, Chrome