WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
const printButton = document.getElementById('printButton');

printButton.addEventListener('click',(event) => {

const webview = document.querySelector('#printWebview')

alert(webview)

//webview.send('webview-print-render')

webview.print({ silent: true, printBackground: true, deviceName: 'XP-80C' },

(data) => {

console.log("webview success", data);

}

)

})

无论我 silent 是 true 还是 false 都会弹出打印机列表。是BUG吗？还是我哪里有问题？

Issue 2:
Just an idea. Looking at how powerful is Electron JS I came to this idea. Being daily using apps like Spotify, Github Desktop, etc. it's been noticed by everyone that they all use separate amounts of RAM on their own since each one run's it's own runtime.

Now why don't we create a common runtime default that act's as master runtime engine so that it can be used by all apps that depend on Electron JS. Like WebViews + Node.JS instance that are connected to a master Electron JS runtime.

Some efforts on just implementing native webviews have been made previously https://github.com/pojala/electrino & https://github.com/jscherer92/Quark (these are the things I found may be more)

So even can use MacOS's WebView / Windows's ChakraCore + the common NodeJS runtime I earlier mentioned ... are their any thing similar to https://github.com/nodejs/node-chakracore ???
Issue 1:
If you have multiple classes in the same module namespace but defined in different files (or even just different module blocks) TypeScript's tsc will wrap every one of them into its own nest of IIFEs; one for each level of namespace nesting.

For deep namespace hierarchies this produces large amounts of code that increases code size and hurts parsing / loading performance.

To solve this problem, we use a post processing tool (https://github.com/tschneidereit/typescript-module-merger) to merge subsequent modules that appear in the same namespace. This is not a sound optimization but works well in practice. Such a feature should be part of the TypeScript compiler, perhaps under a compiler flag.

Issue 2:
We have a typescript application and a use a file per class. There are lots of benefits to this the major one being source control conflict reduction.

We compile our app using the --out compiler flag but I think there is room for some serious optimization of the compilers output for modules.

Currently if you have two classes defined in separate files the compile generates the following JavaScript.

var Example;
(function (Example) {
(function (Nested) {
(function (Issue) {
var bar = (function () {
function bar() {
}
return bar;
})();
Issue.bar = bar;
})(Nested.Issue || (Nested.Issue = {}));
var Issue = Nested.Issue;
})(Example.Nested || (Example.Nested = {}));
var Nested = Example.Nested;
})(Example || (Example = {}));

var Example;
(function (Example) {
(function (Nested) {
(function (Issue) {
var foo = (function () {
function foo() {
}
return foo;
})();
Issue.foo = foo;
})(Nested.Issue || (Nested.Issue = {}));
var Issue = Nested.Issue;
})(Example.Nested || (Example.Nested = {}));
var Nested = Example.Nested;
})(Example || (Example = {}));

I suggest a compiler flag that composes all classes/ functions etc under a single module declaration? So the output code would be like the example below. This would dramatically reduce the size of the JavaScript the compiler outputs. I estimate that our app which currently compiles to around 15,000 lines of probably be only be 2000 lines if this were available.

var Example;
(function (Example) {
(function (Nested) {
(function (Issue) {
var bar = (function () {
function bar() {
}
return bar;
})();
Issue.bar = bar;
var foo = (function () {
function foo() {
}
return foo;
})();
Issue.foo = foo;
})(Nested.Issue || (Nested.Issue = {}));
var Issue = Nested.Issue;
})(Example.Nested || (Example.Nested = {}));
var Nested = Example.Nested;
})(Example || (Example = {}));
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-style-text-inputs-as-form-controls has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The cursor will not go all the way down to the bottom of the blackboard.

The arrow keys on the keyboard are trying to operate the instruction scroll and the cursor on blackboard at the same time.

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-create-a-set-of-checkboxes has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Issue: adding a new line at the bottom of the text editor does not scroll the editor to make the new line visible

reproduce: move the cursor to the bottom line of the text editor. press enter to add a new line. the cursor will now be on that new line but will not be visible without scrolling the text editor window to see it
Issue 1:
"VIEW SAMPLES" shows 0 rows when it should show rows

Expected results

it should show some samples from the table

Actual results

it shows zero rows

Screenshots

How to reproduce the bug

open the example chart titled "Boys"

click "VIEW SAMPLES" in the south/data pane

Environment

latest master 3e22668

Issue 2:
this is not a regression introduced by any recent PRs.

see gif, View Samples tab should show sample data of the underlying dataset in any data visualizations
Issue 1:
Since TypeScript is a superset of JavaScript it should be possible to compile ES6 code without errors.

This valid ES6 snippets throws the following error:

Error:(3, 14) TS2339: Property 'weight' does not exist on type 'Car'.

class Car {
constructor(weight) {
this.weight = weight;
}
}

Is this a bug or a 'feature'?

Issue 2:
The following snippet is valid ES6, but does not compile due to the undeclared property thing. Since TypeScript is aiming to be a superset of ES6, how will this situation be approached?

class Thing {
constructor() {
this.thing = 12;
}
}
Issue 1:
Given its role in ternary expressions (and perhaps in more upcoming syntactic constructs?), isn't letting ? be used as a variable name allowing too much room for potential confusion?

julia> ? = true
true

julia> ??!?:?
false

julia> !??!?:!??!?:?
true

julia> !???:!?:?
false:true

julia> (x->(?->?(?))(?->x(x->?(?)(x))))(x->(?->(?==0?1:(?*x(?-1))))).(?:?<<?<<?)
4-element Array{Int64,1}:
1
2
6
24

(also isn't it amazing that these even parse?) Anyway, I suppose, unless one really wants to use ? as a function or macro name, that this possibility could be deprecated?

Issue 2:
I have a composite type which has a single Dict property that I thought would be interesting to access with an overloaded ? operator

type J9Type
propDict::Dict
end
function ?(obj::J9Type,field::Union(Symbol,String))
return get(obj.propDict,field,Nothing())
end
A = J9Type([:p1=>1,:p2=>2,:p3=>7])

I found that I could only use my overloaded ? operator if I mention it before hand, even with a comment. Otherwise it says that ? is not a generic function.

#?
?(A,:p1)
Issue 1:
Description of the problem

When using webpack and babel in compiled code I see a lot of duplicated code mostly because of inconsistent import paths, so some modules are imported more than once.

For eg. Matrix4 is imported twice and it takes a lot of space. I'll investigate it further, it may be mainly problem with loaders I took from examples. Because some of them import directly modules (how it should be done to minify output bundle) and some import the modules from src/three.js what causes importing everything.

These are all three imports in my project:

Three.js version

Dev

r117

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Issue 2:
This is an interest query for a PR.

Basic idea: The program specifies the data of interest and the renderer feeds it - no exceptions.

Consequences: -1000 LOC or more, easier to maintain/extend renderer, no more obscure updating bugs in the (then no longer) hard to trace interna, more good stuff (I leave it an exercise to the attentive reader).

Program inputs would specify a data source and a property name.

Examples for data sources are:

material

object

camera

renderState (I invented this one for all the free-floating stuff currently in local variables)

Typical properties for each of them:

map

receiveShadow

projectionMatrix

fog

These bindings exist right now - they are hard-coded in the renderer.

Moving them into the program description, the renderer can process these bindings in a loop. More importantly, the data dependencies can be resolved on a by-case basis (there are eight, as detailed below), instead by hard-coded binding (there are dozens, and piling up with every new feature that is being added).

There exist two fundamental kinds of inputs: Compile time inputs, currently implemented via #defines emitted into the GLSL source, and run time inputs; uniforms in case of GLSL (note that a software renderer may very well create and parametrize JavaScript functions by the same mechanism).

A distinct case exists for every input type per data source = 8 cases. Some of them are currently not handled correctly, but I'm confident that I can make it happen.

There is currently a large amount of redundant code that just pumps data through the renderer. So how about teaching the renderer how to pump data (in general, once and for all) and have it scale?! Since built-in materials have a fixed program, which then knows exactly what it wants from the material (and the other data sources), all built-in stuff can also be removed - it would live on in very much condensed form in the descriptions of the built-in programs.

I have an implementation sketched out, but I wouldn't want to waste my time coding it down without sufficient interest in merging it. Please let me know what you think!
Issue 1:
Pulling bug from original location in the google issue tracker: https://issuetracker.google.com/issues/72938960

Steps to Reproduce

When creating a new Flutter project in the opening screen of Android Studio, for example my_flutter_app, the following identifiers are generated (see attached image android_studio_flutter_project.jpg):

PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.my_flutter_app.myFlutterApp; (ios/Runner.xcodeproj/project.pbxproj)
package com.mycompany.myflutterapp.myflutterapp; (MainActivity.java)
applicationId "com.mycompany.myflutterapp.myflutterapp" (app/build.gradle)
package="com.mycompany.myflutterapp.myflutterapp"> (AndroidManifest.xml)

In IntelliJ IDEA CE, however (see attached image intellij_idea_ce_flutter_project.jpg):

PRODUCT_BUNDLE_IDENTIFIER = com.mycompany.myFlutterApp; (ios/Runner.xcodeproj/project.pbxproj)
package com.mycompany.myflutterapp; (MainActivity.java)
applicationId "com.mycompany.myflutterapp" (app/build.gradle)
package="com.mycompany.myflutterapp"> (AndroidManifest.xml)

Also, flutter create --org com.mycompany works correctly.

Build: 3.0.1, AI-171.4443003, 201711091821,

AI-171.4443003, JRE 1.8.0_152-release-915-b08x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.13.3 unknown, screens 1920x1080, 1920x1080, 1440x900; Retina

Issue 2:
@dnfield, am having another issue with building apk release, but this time coming from fluttertoast,

this is the result..Execution failed for task ':app:lintVitalRelease'.

Could not resolve all artifacts for configuration ':app:dynamicProfileRuntimeClasspath'.

Could not resolve project :fluttertoast.

Required by:

project :app

java.lang.NullPointerException (no error message),

most interesting thing is the app does run fully in emulator
Issue 1:
I found browserWindow support progressBar but it is show on taskbar. Any chance that electron can be able to support native progress bar like this:

In my understanding, the difficult thing might be: How to update the progress when we call showProgressBar? because it might block the process in executing the next block of the code.

Issue 2:
It would be great to have native modal progress dialogs, for example, this small screenshot I found on Google:

My use case would be for copying a file and showing progress while blocking the application UI.
Issue 1:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.): kubeadm init hang

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Kubernetes version (use kubectl version): 1.4.4

Environment:

Cloud provider or hardware configuration: x86_64

OS (e.g. from /etc/os-release): Ubuntu 16.04.1 LTS

Kernel (e.g. uname -a): 4.4.0-21-generic

Install tools: Installing Kubernetes on Linux with kubeadm

Others:

What happened:

We installed k8s by using kubeadm a week ago without problem.

Here is output form kubectl version:

Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.3", GitCommit:"4957b090e9a4f6a68b4a40375408fdc74a212260", GitTreeState:"clean", BuildDate:"2016-10-16T06:36:33Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:10:32Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

Yesterday kicked off another installation and "kubeadm init" hang when"waiting for the control plane to become ready".

Here is the output from kubectl version:

Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.4", GitCommit:"3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56", GitTreeState:"clean", BuildDate:"2016-10-21T02:48:38Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.4", GitCommit:"3b417cc4ccd1b8f38ff9ec96bb50a81ca0ea9d56", GitTreeState:"clean", BuildDate:"2016-10-21T02:42:39Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

It seemed only difference is to have a higher version 1.4.4 now.

What you expected to happen:

kubeadm init waiting less than 1 minute to resume the setup.

How to reproduce it (as minimally and precisely as possible):

following the step described on "Installing Kubernetes on Linux with kubeadm"

http://kubernetes.io/docs/getting-started-guides/kubeadm/

Anything else do we need to know:

Do you have another way to describe how to install/setup kubenetes other than kubeadm?

Thanks

WY

Issue 2:
In pkg/kubelet/kubelet,go in getClusterDNS(...), it appends cluster DNS nameserver and search paths to the ones in the host resolv.conf.

A user reported trying to add skydns nameserver address and kubernetes search paths to the host resolv.conf. Not what the instructions say to do, but a reasonable thing to do. Very reasonable if you want to be able to resolve service names while debugging from the root UTS namespace.

This wasn't working for the user. One thing I think would go wrong here is that if the node has 1 or 2 search paths, and then the user added the 3 for kubernetes, that is 5. Then when kubelet adds 3 more (duplicate) entries, you get 8, which exceeds the limit of 6.

Would it be better if the code filtered duplicate search entries?
Issue 1:
📝 Provide a description of the new feature

Perhaps this is already available, but I've not been able to find it.

I love the new feature that allows me to hold Shift + Ctrl to snap a window to multiple zones, but what would make it perfect is if we didn't have to use the mouse. Is there a modifier key we can use while snapping windows with Win + Arrow that will allow us to expand the window to cover the next zone? Something like Win + Shift + Arrow would be fairly intuitive.

A simple example:

[A][B][ ]

If I have a window B in the middle zone selected, and I press Win + Shift + Right, I would end up with this:

[A][B][B]

Where window B expands to fill the next zone.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
Summary of the new feature/enhancement

using a hotkey + arrow combination for the direction, it should be possible to make a window grow or shrink

When you want to grow a window that you have snapped to a smaller zone, and you want to make it temporarily larger, you have to manually make it longer or wider. It would be easier if you could use a key+arrow combo to grow the window with the zone the arrow points to.

Of course, this should be restricted to zones that combine to rectangles.

I don't know if this matches your vision of the product, but this is what I miss in the current version. Or maybe this functionality already exists and I have missed it.
Issue 1:
I tried using the @types/react package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @morcerf @tkrotoff @DovydasNavickas @onigoetz @richseviora

React 16 components can have multiple root elements.

const Items = ({ items }: MyProps) => items.map(item => <div key={item.id}>{item.name}</div>)

However, TypeScript will break with:

error TS2605: JSX element type 'Element[]' is not a constructor function for JSX elements. Property 'render' is missing in type 'Element[]'.

Issue 2:
I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @gaspard @vbfox

As mentioned in React documentation, a stateless component can return false for empty content. Currently StatelessComponent is defined as:

interface StatelessComponent<P = {}> {
(props: P & { children?: ReactNode }, context?: any): ReactElement<any> | null;

whereas Component has

class Component<P, S> {
constructor(props?: P, context?: any);
// ...snip...
render(): JSX.Element | null | false;

Shouldn't these types be the same (including eliminating the ReactElement vs JSX.Element difference)? And to avoid future such issues (#14064, this one) it should probably be a named type, e.g. RenderResult.

A search for | null also comes up with ComponentSpec.render which probably should also have the same result type.
Issue 1:
@nathansobo the Markdown Preview Buffer is awesome...now that I know I can use it. However, it would be the most awesomest if I could resize it. By that I mean make the line between the two adjustable, so I could reduce the percentage of the screen it takes up. Even better would be to have the option to hide it behind my working tab, so I can just flip back and forth between the two. One "easy" change would be to make the background of the preview tab more yellow. The black/white contrast is pretty hard on the old peepers. ❤️

Atom Version: 0.50.0

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.50.0 Atom-Shell/0.9.1 Safari/537.36

User: @foggybtmgirl

Screenshot:

Issue 2:
launchpad.net

would you please release atom for ubuntu , as a launchpad ppa repository?
Issue 1:
Reproducing code example:

Write a demo.py:

from __future__ import print_function

import time

import numpy as np
import six

if six.PY3:
timer_func = time.process_time
else:
timer_func = time.clock

n = 1000

start = timer_func()
precise = 2
for i in range(n):
np.round(np.array(range(i)), precise)
end = timer_func()
print(end-start)

Then run it like this:

# Py2
python -m cProfile -o demo-py2.prof demo.py

# Py3
python -m cProfile -o demo-py3.prof demo.py

And view the profiles with snakeviz pip install snakeviz:

# Under Python2's virtual env:
snakeviz demo-py2.prof

# Under Python3's virtual env:
snakeviz demo-py2.prof

Get web page:

And the purple part it time cost on loading packages.

Error message:

Numpy/Python version information:

>>> import sys, numpy; print(numpy.__version__, sys.version)
1.16.4 2.7.16 (default, Apr 12 2019, 15:32:40)
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.3)]

>>> import sys, numpy; print(numpy.__version__, sys.version)
1.16.4 3.7.4 (default, Jul 9 2019, 18:13:23)
[Clang 10.0.1 (clang-1001.0.46.4)]

Issue 2:
I just ran the brand new python -X importtime -c "import numpy". Turns out that numpy.testing takes rougly 29 % (23 ms) of the total import time (80 ms), most of which (62 %, 14 ms) is the unittest module (no nose in my environment). In view of #10856, this is only going to get worse -- pytest weighs in with about 35 ms on my machine.

So there's an opportunity for an easy win in import time by making the import of numpy.testing lazy. That is, if such a change doesn't cause huge amounts of downstream breakage.

Alternatively, the main culprits could be imported lazily, with a much smaller downstream impact (likely none).
Issue 1:
I'm on commit 9f6d389 (master) to check out the folding stuff and I really like it! :)

I noticed it isn't possible to fold empty regions like the interface below and the empty function. The fold arrow doesn't appear. Is this by design? There isn't that much to fold, only some newlines so it isn't a big issue though.

ps. I'm using TypeScript

interface test {

}

function name(params:type) {

}

edit If it is by design, feel free to close

Issue 2:
Issue 1:
$ cat incorrect_init.go
package main

var (
a = p("a") + c + b
b = p("b") + f()
c = p("c") + f()
d = p("d") + 3
)

func f() int {
d++
return d
}

func p(s string) int {
println(s)
return 0
}

func main() {
println(a, b, c, d)
}

compiling and executing produces:

$ go run incorrect_init.go
d
c
b
a
9 5 4 5

But the correct order per the spec should be: d, b, c, a, with values 9, 4, 5, 5.

See: http://tip.golang.org/ref/spec#Package_initialization

Issue 2:
http://play.golang.org/p/icbjgkx71B

got:
gc produces the initialization order: c b a .

want:
The variables b and c are independent of each other, and b is declared before c, so the
order should be: b c a .

gccgo reports the order: b c a .

Based on spec clarification https://golang.org/cl/99020043 (issue #6703).
Issue 1:
While VS Code uses the same css.plist for CSS syntax highlighting as TextMate, Atom has this own forked version that is way more up to date:

https://github.com/atom/language-css/blob/01146c2eac7d47455d5c964dd65eaeb209cfa778/grammars/css.cson

Would be nice to find a way to keep all three in sync.

Not all parts of css.plist are used in VSCode. For example some features such as the Media Query media features are highlighted from css.plist, but CSS properties that are not included in the file such as the flex box properties get highlighted anyway. I’m not 100% sure which ones need to always be up to date, and which ones don't matter for VSCode yet.

Issue 2:
I have set up my corporate proxy as explained on the documentation.

But every time that I try to download an extension with ext install extensionname, it fails with this error: