WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Electron version: 2.0.0

Operating system: MacOS 10.13.4

Last known working Electron version: 1.8.4

Expected behavior

When a submenu item is initialized with visible: false, it should be retrievable with getMenuItemById or by iterating through menu.items.

Actual behavior

Those items can't be found

How to reproduce

{
label: 'View',
submenu: [
{
id: 'show-teammates-bar',
label: 'Show Teammates Sidebar',
type: 'checkbox',
visible: false,
checked: true,
click() {
...
},
},
{
type: 'separator',
},
{
label: 'Show All',
selector: 'unhideAllApplications:',
}
],
};

In this example, show-teammates-bar can't be retrieved, but if initialized with visible: true, and set to false once build, it works as expected.

Issue 2:
With Electron 1.8, it was possible to create an invisible menu item in the application menu and, assuming it was still enabled, it could be invoked via its accelerator key. This provided a mechanism for creating application-wide shortcut keys that were independent from content.

For example, this menu-item template worked just fine:

{
visible: false,
accelerator: "F12",
click: () => {
mainWindow.webContents.openDevTools({ mode: "detach" });
}
},

Since upgrading to Electron2.0.0-beta.1, this no longer works. Instead, I have to make the menu item visible and give it a name in order for it to be triggered by its accelerator key:

{
visible: true,
label: "Developer Tools",
accelerator: "F12",
click: () => {
mainWindow.webContents.openDevTools({ mode: "detach" });
}
},

Is this just a regression or is this by design? If it is by design, is there any way to achieve window-level shortcut keys without resorting to nasty keydown and keyup handlers on the content level?
Issue 1:
Issue originally made by @faiwer

Bug information

Babel version: 6

Node version: 5

npm version: 2.14.3

Options

transform-es2015-arrow-functions
transform-es2015-spread"
transform-es2015-literals"
transform-es2015-block-scoping
transform-es2015-classes"
transform-es2015-object-super

Input code

class A {
test()
{
let test = 1;
}
}

Description

Warning: % Duplicate declaration "test" Use --force to continue.

Issue 2:
Bug Report

Apologies for not using the template because your bug_report.yml is currently invalid so there’s no way to report a bug from the web page right now.

In short,

import { namespace } from 'test'

@namespace.test
@namespace.test
class Test {}

becomes

"use strict";

var _source = require("source");

@_source.namespace.test
@_namespace.test
class Test {}

Reproduction: https://github.com/proteriax/babel-bug

Please clone the repository and run yarn build. Observe the .babelrc.js because it contains a custom plugin.
Issue 1:
color theme 'D3 category 10' is duplicated in explore

How to reproduce the bug

Go to explore

Click on color theme

See error

Expected results

color theme is unique in the drop down menu

Actual results

D3 category 10 is duplicated in color theme

Screenshots

Environment

(please complete the following information):

browser type and version:

superset version: superset master

python version: python --version

node.js version: node -v

any feature flags active:

Checklist

Make sure to follow these steps before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are 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.

Additional context

Add any other context about the problem here.

Issue 2:
Is your feature request related to a problem? Please describe.

As a data analyst I need to be able to modify the column width in SQL-lab results, so that my results are more readable.

Currently it's fixed width, and if I want to analyze / read data returned by a query it's difficult / impossible in some cases.

Describe the solution you'd like

Ideally I am able to adjust the column width in the result of a SQL Lab query.
Issue 1:
Neo4j version: 4.4

Operating system: centos

API/Driver: neo4j-admin import

Hi,

After upgrading to neo4j 4.4 I noticed that my neo4j-admin import generated duplicate id's, about 15 on a total of 6M or so nodes.

After further investigation it looks like some of the records from the csv's were misinterpreted, whereby fields from different records were combined, causing these duplicate id's.

After downgrading to 4.3.7-1 these same csv files were correcly imported again

The vat field is the unique id here and as you can see it appears twice in neo4j after the import:

neo4j@graph.db> MATCH (c:Company) WHERE id(c) = 336488 OR id(c) = 3332 RETURN c.vat, c.nameNl, c.nameFr;
+----------------------------------------------------------------------------------------------------------------------------------------------+
| c.vat | c.nameNl | c.nameFr |
+----------------------------------------------------------------------------------------------------------------------------------------------+
| "A-LDN-36-FUNDASERIESOFAX-POAL-FUNDSLLC" | "A-LDN-36-Fund, a series of AX-PoAl-Funds, LLC" | "A-LDN-36-Fund, a series of AX-PoAl-Funds, LLC" |
| "A-LDN-36-FUNDASERIESOFAX-POAL-FUNDSLLC" | "SCHAFTFURINVESTMENTFONDSMBH" | "A-HKG-28-FUNDASERIESOFANGELLIST-BARS-FUNDSLLC" |
+----------------------------------------------------------------------------------------------------------------------------------------------+

It only appears once in the csv files:

cat organizations.csv/* | grep "A-LDN-36-FUNDASERIESOFAX-POAL-FUNDSLLC"
A-LDN-36-FUNDASERIESOFAX-POAL-FUNDSLLC,,,,,"A-LDN-36-Fund, a series of AX-PoAl-Funds, LLC","A-LDN-36-Fund, a series of AX-PoAl-Funds, LLC",,,,,,,,,,,,,,,,,US,001,,,,,,,,,,,,,true,false,NBB,0,0,0,0,0,false,false,false,false,true,true,false,,,,,,,,,,,,,,false,,,0,,,

This means that the first appearance in the neo4j result (where nameNl = "A-LDN-36-Fund, a series of AX-PoAl-Funds, LLC") is the correct one.

I tried to find a trace of where that second record came from but it seems to have been resembled from multiple records:

cat organizations.csv/* | grep "A-HKG-28-FUNDASERIESOFANGELLIST-BARS-FUNDSLLC"
A-HKG-28-FUNDASERIESOFANGELLIST-BARS-FUNDSLLC,,,,,"A-HKG-28-Fund, a series of AngelList-BaRs-Funds, LLC","A-HKG-28-Fund, a series of AngelList-BaRs-Funds, LLC",,,,,,,,,,,,,,,,,US,001,,,,,,,,,,,,,true,false,NBB,0,0,0,0,0,false,false,false,false,true,true,false,,,,,,,,,,,,,,false,,,0,,,

cat organizations.csv/* | grep SCHAFTFURINVESTMENTFONDSMBH
WESTINVESTGESELLSCHAFTFURINVESTMENTFONDSMBH,Düsseldorf,Konigshof Hamborner Strasse,55,40472,Westinvest Gesellschaft für Investmentfonds mbH,Westinvest Gesellschaft für Investmentfonds mbH,,,,,,,,,,,,,,,,,DE,001,,,,,,,,,,,,,true,false,NBB,0,0,0,0,0,false,false,false,false,true,true,false,,,,,,,,,,,,,,false,,,0,,,

Issue 2:
As I was building and re-building my 4Gb csv, I was thinking: Why not have the possibility to skip errors ? I am going to get some small errors anyway and I don't care about loosing 0.1% of my data.

So I propose adding a --skip-errors flag to ne4j-import.
Issue 1:
Expected Behavior

If I active debug mode the program fails as is shown below. However with deactivated debug mode the program runs fine.

from flask import Flask

app = Flask(__name__)

@app.route('/')
def hello_world():
return 'Hello World!'

if __name__ == '__main__':
app.run()

Actual Behavior

* Serving Flask app "flask_hello_world"
* Forcing debug mode on
* Restarting with stat
File "C:\Users\Tim\Anaconda3\envs\flaskr\Scripts\flask.exe", line 1
SyntaxError: Non-UTF-8 code starting with '\x90' in file C:\Users\Tim\Anaconda3\envs\flaskr\Scripts\flask.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Environment

I am running it on Windows 10. Python and packages are installed through Anaconda.

Python version: 3.6

Flask version: 0.12.2

Werkzeug version: 12.2

Issue 2:
I am running apistar on python 3 and encountering an issue that has lead me to the werkzeug reloader.

(fresh) C:\Users\uskaxb07\PycharmProjects\testapi>apistar run
Starting up...
* Restarting with stat
File "C:\Users\uskaxb07\env\fresh\Scripts\apistar.exe", line 1
SyntaxError: Non-UTF-8 code starting with '\x90' in file C:\Users\uskaxb07\env\fresh\Scripts\apistar.exe on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Removing the use_reloader from the call to run_simple() works. After digging into a couple of comments I found that https://github.com/pallets/werkzeug/blob/master/werkzeug/_reloader.py#L118 is doing some encoding to latin1 but only when the os is windows and the python version is 2. Could this be causing the Non-UTF-8 Syntax Error that I am recieving in python3?
Issue 1:
Go's standard library doesn't provide any API to access a monotonic clock source, which means one can't reliably time how long an operation takes without copy-pasting or importing some low-level platform-dependent code such as the clock package at https://github.com/davecheney/junk.

This API doesn't necessarily need to return a time.Time, just returning a number of nanoseconds as a uint64 would be enough, kinda like Java's System.nanoTime().

Issue 2:
by viriketo:

I have a go program that fails rarely, and the backtrace isn't enough information for
me. I'd like a way to get core dumps generated for later analysis with gdb, using some
go call.

Something similar to what a null pointer resolution would do in a C program; running
that program in a proper environment will dump a core file for analysis.

Thread related to this: https://groups.google.com/forum/#!topic/golang-nuts/ZK720ICum8E
Issue 1:
The with-sw-precache example is broken. The generated service-worker tries to fetch files that aren't there:

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

Expected Behavior

Generated service-worker should fetch the assets app.js, _error.js and index.js in the with-sw-precache example.

Current Behavior

Generated service-worker should only try to fetch the above ressources.

Steps to Reproduce (for bugs)

Clone with-sw-precache

npm install

npm run build

npm start

Check the network tab

Issue 2:
Next.js fails to compile whenever a module is linked locally using yarn link. This is a reissue of #1244.

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

Expected Behavior

Next.js successfully imports dependencies that are linked via yarn/npm.

Current Behavior

Next.js fails to import linked dependencies and fails to compile.

yarn run v1.3.2
$ next
Error: Cannot find module 'lodash'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/username/Sites/oss/nextjs-linked-module/node_modules/write-file-webpack-plugin/src/index.js:6:1)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/username/Sites/oss/nextjs-linked-module/node_modules/next/dist/server/build/webpack.js:55:31)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Steps to Reproduce (for bugs)

Clone lodash.

Link lodash via cd path/to/lodash && yarn link.

Clone linked module test case in a separate location.

Link lodash for the test case via cd path/to/nextjs-linked-module && yarn install && yarn link lodash.

yarn start

Context

I need to have a local module linked so that I may actively develop it and have a Next.js project utilize the local module.

Your Environment

Tech
Version

next
5.0.1-canary.2

node
8.9.4

OS
macOS 10.13.1

browser
Chrome 64.0.3282.167
Issue 1:
Hi,

It looks like a bug while Deno doing its import statements parsing or regexp, below is the reproduction code:

import { parse } from "https://www.unpkg.com/@babel/parser@7.7.5/lib/index.js";
console.log(parse);

results:

Compile file:///Users/hsy/ws/deno-js/js.ts
error: Uncaught ImportPrefixMissing: relative import path "a.js" not prefixed with / or ./ or ../ Imported from "https://www.unpkg.com/@babel/parser@7.7.5/lib/index.js"
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
at unwrapResponse ($deno$/dispatch_json.ts:40:11)
at sendAsync ($deno$/dispatch_json.ts:91:10)

here is the potential being misrecognized statement in that js file:

this.raise(id.start, `Dynamic imports require a parameter: import('a.js')`);

Does Deno use regexp to match the dynamic import expressions? I think it's is a pretty unlikely scenario if a syntax parser is applied.

please correct me if something wrong

Issue 2:
v0.20.0

Parser doesn't find declarations correctly?

[EDITED]

Previous example has unrelated mistake but I don' know which code can reproduce error I met.

I met this error when I ran -> https://raw.githubusercontent.com/keroxp/dink/v0.5.1/main.ts

That can be compiled with deno@v0.19.0. But got error below with v0.20.0:

error: Uncaught ImportPrefixMissing: relative import path "${resp.url}" not prefixed with / or ./ or ../
► $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
at unwrapResponse ($deno$/dispatch_json.ts:40:11)
at sendAsync ($deno$/dispatch_json.ts:85:10)
Issue 1:
Hi, I'm going to the Dialog docs page (https://material-ui.com/demos/dialogs/) and it's not working (none of the clicks, see code card expanders, etc.) - I'm using the latest Chrome to view.

All the other component docs seem to be working fine though.

Issue 2:
Problem description

When i run command npm start in docs directory, i get error.

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

- configuration.entry should be one of these:
object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function
The entry point(s) of the compilation.
Details:
* configuration.entry['lib'] should be a string.
* configuration.entry['lib'] should NOT have duplicate items (items ## 9 and 26 are identical) ({
"keyword": "uniqueItems",
"dataPath": ".entry['lib']",
"schemaPath": "#/definitions/common.nonEmptyArrayOfUniqueStringValues/uniqueItems",
"params": {
"i": 26,
"j": 9
},
"message": "should NOT have duplicate items (items ## 9 and 26 are identical)",
"schema": true,
"parentSchema": {
"items": {
"minLength": 1,
"type": "string"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"data": [
"react-hot-loader/index",
"react-hot-loader/patch",
"eventsource-polyfill",
"webpack-dev-server/client",
"react-addons-perf",
"webpack/hot/log-apply-result",
"webpack-dev-server/client/index",
"marked",
"prismjs",
"react",
"react-redux",
"react-router",
"react-router-scroll",
"react-swipeable-views",
"redux",
"classnames",
"dom-helpers",
"jss-preset-default",
"jss-theme-reactor",
"keycode",
"prop-types",
"react-event-listener",
"react-transition-group",
"react-scrollbar-size",
"scroll",
"warning",
"react",
"react-dom"
]
}).
[non-empty string]
* configuration.entry['lib'] should be one of these:
non-empty string | [non-empty string]
* configuration.entry should be a string.
* configuration.entry should be an array:
[non-empty string]
* configuration.entry should be an instance of function
function returning an entry object or a promise..
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! material-ui-docs@0.16.0 start:dll: `webpack --config webpack.dll

Link to minimal working code that reproduces the issue

Versions

Material-UI: next

React:

Browser:

Description

Images & references

-->
Issue 1:
It appears to only close the current tab. If you close all the tabs, command-W doesn't close the window.

Issue 2:
When I have multiple buffers open in tabs and a tree view, my past editors (TextMate, Sublime) have conditioned me to expect that a repeated ⌘+w close each buffer's tab, then close the frame and its tree list after the last buffer has been closed. Atom does not behave this way, and I'm curious if this is by design.

It is worth noting that Brackets does also hold the frame open after repeated ⌘+w presses. Is this similarly by design in Atom? Must I switch fingers to ⌘+⇧+w to close the frame?
Issue 1:
I'm on OS X and I've been having an issue that drives me crazy regularly. I open a terminal, cd into a directory, run "atom .", which I know takes a few seconds to fully start up, so I continue doing other things in the terminal while it does. At some point, Atom's window appears and steals focus from the terminal. I expect that to happen once, and I click the terminal to re-focus it so I can continue doing terminal stuff. But then over the next few seconds, Atom steals focus again several times. Happens even if I pass atom the --safe flag.

Issue 2:
Here's a GIF: http://g.recordit.co/XVdFRbpFRV.gif

After launching Atom from terminal, I clicked on the terminal window to maintain focus, but while Atom was starting, it stole focus (as in the current active window) many times.

It's specially annoying since Atom is slow and I want to use the time it takes to be ready in other activities.

Atom is 0.199.0 on OS X Yosemite.
Issue 1:
Suggestion:

Why is the default accordion behavior (open a single toggle and close all others) dependent on '.panel' class

Couldn't this be decoupled into a data-attribute?

e.g. data-toggle-option="single" (opens the clicked toggle, closes all others)

data-toggle-option="individual" (opens each toggle independently, leaves opened toggles open)

Source ref: https://github.com/twbs/bootstrap/blob/master/js/collapse.js#L43

Issue 2:
Hi, i found this pull request: #7600

In the latest version i see that the parent option is now dependent on the .panel class, i.e.:

var actives = this.$parent && this.$parent.find('> .panel > .in')

Why don't you just leave it like it was (.collapse.in) or better yet, just:

var actives = this.$parent && this.$parent.find('.in')

Or, i get it if the parent must have a class, to avoid conflicts with other libraries, but can you please explain what's up with depending on dom structure? (the double > in the selector really don't look good to me)

Oh and, the docs are way behind on this one. There's an .accordion-group class mentioned, but not saying how it should be used, and the example doesn't have one at all (yet it works, probably on an old bootstrap version).

So basically, please decide on a structure and update the docs & examples accordingly. If you want i could help you with some of the workload, as you see fit.

Thank you.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1136 on 2009-06-10 by @b45ch1, assigned to unknown.

This is best explained by the following example:

class adouble:
def __init__(self,x):
self.x = x
def __mul__(self,rhs):
if isinstance(rhs,adouble):
return adouble(self.x * rhs.x)
else:
return adouble(self.x * rhs)
def __str__(self):
return str(self.x)

x = adouble(3.)
y = adouble(2.)
u = array([adouble(3.), adouble(5.)])
v = array([adouble(2.), adouble(7.)])
z = array([2.,3.])

print 'numpy.__version__=',numpy.__version__
print x * y # ok
print u * v # ok
print u * z # ok
print u * 3. # ok
print u * z[0] # _NOT_ OK!
print u * float64(3.) # _NOT_ OK!

Output:

basti@shlp:~/tmp$ python numpy_float64_issue.py
numpy.__version__= 1.4.0.dev7039
6.0
[6.0 35.0]
[6.0 15.0]
[9.0 15.0]
Traceback (most recent call last):
File "numpy_float64_issue.py", line 26, in <module>
print u * z[0] # _NOT_ OK!
TypeError: unsupported operand type(s) for *: 'numpy.ndarray' and
'numpy.float64'

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1150 on 2009-06-25 by @inducer, assigned to unknown.

Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.__version__
'1.3.0'
>>> numpy.zeros(5, dtype=object)*5.
array([0.0, 0.0, 0.0, 0.0, 0.0], dtype=object)
>>> numpy.zeros(5, dtype=object)*numpy.float64(5)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for *: 'numpy.ndarray' and 'numpy.float64'
Issue 1:
TypeScript Version:

1.8.9

This is from microsoft/vscode#5699 but the essence is that setting allowJS: true in jsconfig.json breaks the projectInfo call in tsserver.

Steps and sources to repo can be found in microsoft/vscode#5699.

Issue 2:
Knockout models, which are very concise in javascript, are obnoxious to define in typescript (one of the few things that gets longer in typescript). I'm suggesting the following syntax to make it much cleaner. (Perhaps this is a duplicate?)

This syntax adds a constructor signature with parameters which can be referenced in the field initializers. This is to replace javascript's easy this.someNewProperty = '...' legitimacy while retaining the strong typing information of typescript (that is, not resorting to a cast as any, etc)

class koSubModel(node: any = {}) {
public a = ko.observable<number>(node.a || 0);
public b = ko.observable<string>(node.b);
}

class koModel(node: any = {}) {
public one = ko.observable<number>(node.one || 0);
public two = ko.observable<string>(node.two || '[missing data]');
public three = ko.observableArray<number>(node.three || []);
public four = ko.observableArray<koSubModel>((node.four || []).map(e => new koSubModel(e)));
}

// example usage
$.getJSON('...', data => ko.applyBindings(new koModel(data)));

The generated model seems pretty much what you'd write by hand:

var koSubModel = (function () {
function koSubModel(node) {
if (typeof node === "undefined") { node = {}; }
this.a = ko.observable(node.a || 0);
this.b = ko.observable(node.b);
};
return koSubModel;
})();

var koModel = (function () {
function koModel(node) {
if (typeof node === "undefined") { node = {}; }
this.one = ko.observable(node.one || 0);
this.two = ko.observable(node.two || '[missing data]');
this.three = ko.observableArray((node.three || []));
this.four = ko.observableArray((node.four || []).map(function (e) { return new koSubModel(e); }));
};
return koModel;
})();

The alternative (current way) is that all the fields have to be declared and separately assigned in a constructor:

class koSubModel_ {
public a : KnockoutObservable<number>;
public b : KnockoutObservable<string>;

constructor(node : any = {}) {
this.a = ko.observable<number>(node.a || 0);
this.b = ko.observable<string>(node.b);
}
}

class koModel_ {
public one : KnockoutObservable<number>;
public two : KnockoutObservable<string>;
public three : KnockoutObservableArray<number>;
public four : KnockoutObservableArray<koSubModel_>;

constructor(node: any = {}) {
this.one = ko.observable<number>(node.one || 0);
this.two = ko.observable<string>(node.two || '[missing data]');
this.three = ko.observableArray<number>(node.three || []);
this.four = ko.observableArray<koSubModel_>((node.four || []).map(e => new koSubModel_(e)));
}
}
Issue 1:
A small app to demonstrate the problem:

fn test(val: u8) {
match val {
256 => print!("0b1110\n"),
512 => print!("0b1111\n"),
_ => print!("fail\n"),
}
}

fn main() {
test(1);
}

Compilation fails in llvm:

% rustc test.rs
test.rs:3:5: 3:11 warning: literal out of range for its type, #[warn(type_overflow)] on by default
test.rs:3 256 => print!("0b1110\n"),
^~~~~~
test.rs:4:5: 4:11 warning: literal out of range for its type, #[warn(type_overflow)] on by default
test.rs:4 512 => print!("0b1111\n"),
^~~~~~
Duplicate integer as switch case
switch i8 %1, label %match_else [
i8 0, label %match_case
i8 0, label %match_case3
]
i8 0
LLVM ERROR: Broken function found, compilation aborted!

Rustc should detect the double label due to overflow.

Issue 2:
fail is becoming a macro as per #3627, but first all uses of the fail keyword must be removed. There's a new macro named die! that can do the job of fail. Make the switch, then remove the fail keyword from the parser and mass-rename die! to fail!.