WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
ℹ Computer information

📝 Provide detailed reproduction steps (if any)

Run "Power Toys (Preview)" from start menu.

✔️ Expected result

Launch the Power Toys application

❌ Actual result

Get an error message

📷 Screenshots

2020-08-09.txt

Issue 2:
Popup tells me to give y'all this.

2020-07-31.txt

Version: 1.0.0

OS Version: Microsoft Windows NT 10.0.19041.0

IntPtr Length: 8

x64: True

Date: 07/31/2020 17:29:59

Exception:

System.ObjectDisposedException: Cannot access a disposed object.

Object name: 'Timer'.

at System.Timers.Timer.set_Enabled(Boolean value)

at System.Timers.Timer.Start()

at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)

at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)

at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

at System.Windows.UIElement.UpdateIsVisibleCache()

at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)

at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)

at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)

at System.Windows.Window.SetRootVisual()

at System.Windows.Window.SetRootVisualAndUpdateSTC()

at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)

at System.Windows.Window.CreateSourceWindow(Boolean duringShow)

at System.Windows.Window.CreateSourceWindowDuringShow()

at System.Windows.Window.SafeCreateWindowDuringShow()

at System.Windows.Window.ShowHelper(Object booleanBox)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Issue 1:
VSCode Version: 0.10.11

OS Version: Windows 10 pro

In HTML document the functions in JavaScript are not displayed when using operator "." inside of <script> </script> label. For example, in version 0.10.6 I can use:

<script>

var myVar = document.(all functions appear listed here);

</script>

However, in the current version, the functions are not shown. I have tried to install extensions to try to mitigate it, but the problem persists.

Any of you have the same problem?

Update:

When working in HTML within the <script> tag functions do not appear, but. if the language is changed to JavaScript on the bottom right, the functions appear correctly, but marks syntax errors throughout the document, the solution to this is to set the language HTML and restart VS Code.

Issue 2:
I build vscode from the master branch.(0.10.10)

Found that intellisense doesn't work,no auto completion with inline js code in the .html file.

The previous version(0.10.8) support
Issue 1:
Related to: #9910

If you use JSON string as the query and set it by calling setSource() method, before executing the query if you call requestBuilder.toString() and then execute the query, you will get incorrect response, because toString() modified the internal state of SearchRequestBuilder object.

Try this code:

@GrabResolver(name='maven', root='http://repo1.maven.org/maven2/')
@Grab(group='org.elasticsearch', module='elasticsearch', version='1.4.4')
import org.elasticsearch.common.settings.Settings
import org.elasticsearch.common.settings.ImmutableSettings
import org.elasticsearch.common.transport.InetSocketTransportAddress
import org.elasticsearch.client.Client
import org.elasticsearch.client.transport.TransportClient
import org.elasticsearch.action.index.IndexRequestBuilder
import org.elasticsearch.action.index.IndexResponse
import org.elasticsearch.action.search.SearchRequestBuilder
import org.elasticsearch.action.search.SearchResponse

Settings settings = ImmutableSettings.settingsBuilder().put("cluster.name", "elasticsearch").build();
Client client = new TransportClient(settings).addTransportAddress(new InetSocketTransportAddress("localhost", 9300));

[1,2,3,4].each() {
String body = """{"name":"Hello world ${it}"}"""
IndexRequestBuilder indexRequestBuilder = new IndexRequestBuilder(client, "twitter")
.setType("data")
.setId(it.toString())
.setSource(body)
.setRefresh(true)
IndexResponse indexResponse = indexRequestBuilder.execute().actionGet()
}

String jsonQuery = """{"query":{"filtered":{"filter":{"term":{"_id":"1"}}}}}"""
SearchRequestBuilder requestBuilder = client.prepareSearch("twitter")
.setTypes("data")
.setSource(jsonQuery)

// This is the bug
println requestBuilder.toString()

SearchResponse response = requestBuilder.execute().actionGet()
println response.toString()

The expected response is one document with id=1, however, the actual response is all documents inside the index.

But if you remove the bug line, the response will be correct.

Issue 2:
Using the Java API, If one sets the content of a search request through SearchRequestBuilder#setSource methods and then calls toString to see the result, not only the content of the request is not returned as it wasn't set through sourceBuilder(), the content of the request gets also reset due to the internalBuilder() call in toString.

Here is a small failing test that demontrates it:

SearchRequestBuilder searchRequestBuilder = new SearchRequestBuilder(client()).setSource("{\n" +
" \"query\" : {\n" +
" \"match\" : {\n" +
" \"field\" : {\n" +
" \"query\" : \"value\"" +
" }\n" +
" }\n" +
" }\n" +
" }");
String preToString = searchRequestBuilder.request().source().toUtf8();
searchRequestBuilder.toString();
String postToString = searchRequestBuilder.request().source().toUtf8();
assertThat(preToString, equalTo(postToString));
Issue 1:
Currently if you set node.data=false and node.master=false you can set up a load-balancer-ish node that just routes queries to other boxes, but the problem for some setups is that those nodes do the aggregation phase as well.

I'd like to have the ability to set up a local ES node that only does proxying to other nodes in the cluster. I.e. it would pick some node, run a query on it, and then that node would ask other machines for data if needed, do the aggregation, and only return results.

This would enable me to use ElasticSearch as a daemon on webserving boxes that keeps track of what nodes are currently active / OK, I could make queries to it on localhost:9200, but because it wouldn't do any aggregation the resources it would eat would be very predictable.

Issue 2:
We would like an option to have client nodes only do the smart load balancing, not reduce/gathering.

We run client nodes on each app server so app servers only talk to ES via the client node on localhost, so we avoid having to use a HTTP load balancer (since it's a single point of failure), and also avoid the extra hop.

An option to be able to turn off the reduce/gather phase for a client node would let us decrease memory usage and CPU burn.

Thanks!
Issue 1:
See #7241 (comment)

Issue 2:
After #19272, Elasticsearch instances will now die after hitting a fatal error (e.g., out of memory error). The breaking changes documentation associated with this change includes the note:

Operators should consider configuring their Elasticsearch services so that they respawn automatically in the case of such a fatal crash.

The question put forth here is: should the Elasticsearch packages attempt to configure this? The challenge here is that this is not straightforward on System V init-based systems (/etc/inittab) but it is straightforward on systemd-based systems.

Marking this as discuss.
Issue 1:
• Failure [1033.846 seconds]

Pod Disks

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:267

should schedule a pod w/ a readonly PD on two hosts, then remove both. [It]

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:164

Expected error:

<*errors.errorString | 0xc209d73110>: {

s: "gave up waiting for pod 'pd-test-a830c21c-da6b-11e5-8b3e-7831c1b8a4a8' to be 'running' after 15m0s",

}

gave up waiting for pod 'pd-test-a830c21c-da6b-11e5-8b3e-7831c1b8a4a8' to be 'running' after 15m0s

not to have occurred

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:157

Issue 2:
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.):

Kubernetes version (use kubectl version):

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"}

Environment:

Azure:

Ubuntu 14.04

What happened:

When I try to kubectl apply -f servicefile.yaml I get this error

metadata.resourceVersion: Invalid value: "": must be specified for an update
spec.clusterIP: Invalid value: "": field is immutable

What you expected to happen:

Update the service

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

Name the service to have a dash in it e.g "foo-bar"

and kubectl apply -f <filename>

yaml configs:

apiVersion: v1
kind: Service
metadata:
name: api-testing
labels:
app: api-testing

spec:
type: NodePort
ports:
- port: 80
targetPort: 5000
nodePort : 30092
selector:
app: api-testing
Issue 1:
TypeScript Version:

1.8.10

Code

class ClassWithStaticProp {
static prop = {};
}

const instance = new ClassWithStaticProp();

// instance.constructor has no type information

Expected behavior:

instance.constructor should have the same type as the ClassWithStaticProp constructor function.

Actual behavior:

instance.constructor has no type information

Issue 2:
TypeScript allows to return this from instance methods, which is to say the least, is great. It would be even better if it allowed doing the same with static methods. The rationale is consistency and feature.

Line public static construct():this below will report error TS2526: A 'this' type is available only in a non-static member of a class or interface., the line below uses this inside static method to create a new instance of the class, the line below that also uses this to return static property. The error message is misleading, this can be and should be used inside static methods whenever appropriate.

class Foo {
public static x:any;
protected y:any;
public static construct():this {
return new this();
}
public static getX():any {
return this.x;
}
public getY():any{
return this.y;
}
public setY(value:any):this{
this.y = value;
return this;
}
}

I'd like to inherit Foo and use construct on child classes, the only way I can do this by specifying Foo as return type, however, this will require to cast the result to Bar and Baz whenever called from those classes – inconvenient and inconsistent with instance method behaviour.

This seems to be common sense, since this already done for instance methods, shouldn't be much pain doing this for static methods either? What are your thoughts?
Issue 1:
[ x] I have searched the issues of this repository and believe that this is not a duplicate.

I cannot install the latest beta version (20) via npm.

Issue 2:
Hi,

start off saying that i really respect the work done here. great job!

Now i've to say :) that the inline style approach used here might be something you should re-think or at least add a little tweak. Well, i say this because It slows down all the UI loading when you start to place elements all over the place that have be render a lot of times. And in my case, the amount of html to send via server to the browser (isomorphic approach) it's an overload of data not really necessary.

So my suggestion would be, adding a config param for whether the developer wants or not inline styles. This way, if i choose not to use i can simply add the materials assets files on the page.

I know that probably the assets files could be even bigger than the generated html, but we all know too that those are cached and we can live with that.

Well, hope you'll not respond me that their is a way to achieve this and i was to lazy too get that info ;).

Does this make sense to you?

thanks
Issue 1:
Bug report

Bug summary

I plotted a 3D curve on Jupyter Notebook. I rotated the produced image using my mouse, and I wanted to use the Home button to reset it, because Home's comment says Reset the original view. However, after clicking Home button, there was nothing happened.

Code for reproduction

# Paste your code here
#
#
%matplotlib notebook
# %matplotlib inline

import matplotlib.pyplot as plt
import numpy as np
from sklearn.linear_model import Ridge
from mpl_toolkits.mplot3d import Axes3D

fig = plt.figure()
ax = fig.gca(projection='3d')
# 如果不加这句话，图形就无法显示

model = Ridge(alpha=0.3)
model.fit([[0,0],[0,0],[1,1],[2,2]],[0,0.1,1,2])
print(model.coef_)
print(model.intercept_)

x = np.linspace(-10, 10, 1000)
y = np.linspace(-10, 10, 1000)
z = np.add(x, y)

ax.plot(x, y, z)
plt.show()

(Please ignore the comment in Chinese, because I am a Chinese student)

Actual outcome

# If applicable, paste the console output here
#
#

(I have rotated the image with my mouse)

Expected outcome

I want to use Home button to reset the image to the initial view, but Home button did not work.

Matplotlib version

Operating system: Win10

Matplotlib version: 3.0.0

Matplotlib backend (print(matplotlib.get_backend())): nbAgg

Python version: 3.7.3

Jupyter version (if applicable): 5.7.8

Other libraries:

I installed matplotlib by Anaconda.

Issue 2:
Bug report

Bug summary

The home, backward, and forward buttons in the UI do nothing when the plot is three dimensional. Also the zoom button does not work at all. It simply rotates the plot.

Code for reproduction

From the examples,

from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
from matplotlib import cm

fig = plt.figure()
ax = fig.gca(projection='3d')
X, Y, Z = axes3d.get_test_data(0.05)

cset = ax.contourf(X, Y, Z, cmap=cm.coolwarm)
ax.clabel(cset, fontsize=9, inline=1)

plt.show()

Actual outcome

Buttons don't work.

Expected outcome

Buttons would work.

Matplotlib version

Operating system: macOS 10.13.4

Matplotlib version: 2.2.2

Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg

Python version: 3.6

Jupyter version (if applicable): n/a

Other libraries: n/a

Python and matplotlib installed via pip in a virtualenv.
Issue 1:
This is happening after a fresh install:

I am running Debian 8

[Enter steps to reproduce below:]

Installed deb file atom-amd64.deb v0.186.0

Run the Program

Atom Version: 0.184.0

System: linux 3.12-1-amd64

Thrown From: Atom Core

Stack Trace

Uncaught Error: spawn /usr/share/atom/atom (deleted) ENOENT

At events.js:94

Error: spawn /usr/share/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:753:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:364:11)

Commands

Config

{
"core": {
"disabledPackages": [
"autocomplete-clang",
"web-browser",
"deprecation-cop"
]
},
"editor": {
"invisibles": {}
}
}

Installed Packages

# User
html2haml, v0.6.0
language-haml, v0.15.0
linter, v0.12.0
linter-clang, v2.25.1

# Dev
No dev packages

Issue 2:
TEMPORARY WORKAROUND: ln -s /usr/share/atom/atom "/usr/share/atom/atom (deleted)"

Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT

Atom Version: 0.152.0

System: linux 3.13.0-40-generic

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At events.js:85

Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
Issue 1:
Let us know what functionality you'd like to see in Playwright and what your use case is.

Do you think others might benefit from this as well?

Issue 2:
can you add more features to html reporter in playwright. eg: allure report over view page. and send report as a email functionality. Most of top management like to see consolidate report.

allure report is good but it is not a inbuild report due to that we need face data sync issues most of the time
Issue 1:
Hi guys, when i remove neo4j 2.2.3 and installed 3.0.1 neo4j server is failing to start.

here is my log

tail -l /var/log/neo4j/neo4j.log

at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:207)

at org.neo4j.bolt.BoltKernelExtension.createSslContext(BoltKernelExtension.java:200)

... 32 more

Caused by: java.security.KeyException: found no private key: /var/lib/neo4j/certificates/neo4j.key

at io.netty.handler.ssl.PemReader.readPrivateKey(PemReader.java:99)

at io.netty.handler.ssl.SslContext.buildKeyStore(SslContext.java:890)

at io.netty.handler.ssl.JdkSslContext.buildKeyManagerFactory(JdkSslContext.java:313)

at io.netty.handler.ssl.JdkSslContext.buildKeyManagerFactory(JdkSslContext.java:291)

at io.netty.handler.ssl.JdkSslServerContext.(JdkSslServerContext.java:205)

... 36 more

Issue 2:
Hi guys, when i remove neo4j 2.2.3 and installed 3.0.1 neo4j server is failing to start.

here is my log

tail -l /var/log/neo4j/neo4j.log

at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:207)

at org.neo4j.bolt.BoltKernelExtension.createSslContext(BoltKernelExtension.java:200)

... 32 more

Caused by: java.security.KeyException: found no private key: /var/lib/neo4j/certificates/neo4j.key

at io.netty.handler.ssl.PemReader.readPrivateKey(PemReader.java:99)

at io.netty.handler.ssl.SslContext.buildKeyStore(SslContext.java:890)

at io.netty.handler.ssl.JdkSslContext.buildKeyManagerFactory(JdkSslContext.java:313)

at io.netty.handler.ssl.JdkSslContext.buildKeyManagerFactory(JdkSslContext.java:291)

at io.netty.handler.ssl.JdkSslServerContext.(JdkSslServerContext.java:205)

... 36 more
Issue 1:
Environment info

transformers version: 4.1.1

Python version: 3.8.5

PyTorch version (GPU?): 1.7.1

tokenizers: 0.9.4

Using GPU in script?: No

Using distributed or parallel set-up in script?: No

Information

Hi @patrickvonplaten

I am trying to train a "t5-base" model and I directly use from_pretrained tokenizer, config and model. However, I found the vocabulary size given by the tokenizer and config is different (see to reproduce). Does this is expected?

If I use the model T5ForConditionalGeneration.from_pretrained('t5-base', config=config) to do predictions, this will result in the last dimension of lm_logits is different from tokenizer.vocab_size.

To reproduce

Steps to reproduce the behavior:

>>> from transformers import T5Tokenizer, T5Config
>>> tokenizer = T5Tokenizer.from_pretrained("t5-base")
>>> config = T5Config.from_pretrained("t5-base")
>>> print(tokenizer.vocab_size)
32100
>>> print(config.vocab_size)
32128

Expected behavior

>>> print(tokenizer.vocab_size)
32128
>>> print(config.vocab_size)
32128

Issue 2:
❓ Questions & Help

Pretrained T5Tokenizer has vocab size of 32100 (32000 tokens plus 100 extra_ids) but the shared embedding layer of T5ForConditionalGeneration has size of (32128, 768). I checked the google-research implementation of T5 and also found that they have vocab size of 32100 also.

Where did the extra 28 embeddings come from and how can we map it to the tokenizer?

To reproduce

from transformers import (
T5Tokenizer,
T5ForConditionalGeneration,
)

tokenizer_pretrained = T5Tokenizer.from_pretrained('t5-base')
model_pretrained = T5ForConditionalGeneration.from_pretrained('t5-base')
len(tokenizer_pretrained.get_vocab()), model_pretrained.state_dict()['shared.weight'].shape

Output:

(32100, torch.Size([32128, 768]))
Issue 1:
So I have this in my app/config/routing.yml:

acme_store_dev:

resource: "@AcmeStoreBundle/Resources/config/routing.yml"

host: acme.{tld}

requirements:

tld: dev|org

and something like this in the bundles routing.yml:

acme_store_homepage:

pattern: /hello/{name}

defaults: { _controller: AcmeStoreBundle:Default:index }

acme_store_product:

resource: "@AcmeStoreBundle/Resources/config/routing/product.yml"

prefix: /product

and the product.yml contains several auto generated routes like that:

product_show:

pattern: /{id}/show

defaults: { _controller: "AcmeStoreBundle:Product:show" }

The problem is within the first configuration. If I only use one host and no tld matching (and any other form of regex matching in hosts) itll lead to this kind of error:

An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("tld") to generate a URL for route "category_new".") in AcmeStoreBundle:Category:index.html.twig at line 36.

I could now start rewriting all that the crud generator made for me or stop using that form of host matching, but Id really like to use those two features - any suggestions? is this a bug that can be fixed? from what I understand the /prefix is supposed to map route extensions dynamically, and independent of any prior routes, which is also quite nifty to have.

Issue 2:
Currently running into an issue with the new host matching when I'm trying to generate urls that requires me to pass in a host parameter.

InternalUserController:
resource: "@ApiBundle/Controller/Internal/UserController.php"
type: annotation
host: "api.{domain}"

DashboardController:
resource: "@DashboardBundle/Controller/DashboardController.php"
type: annotation
host: "{domain}"

The examples above work perfectly with the url matcher, but when needing to generate the url, it will require me to provide the domain parameter each time. I know this is how it's suppose to function, but it seems a bit annoying to require putting in the domain each time.
Issue 1:
Feature request

This one is simple, expose 'createElement' on the Vue object, so that h can be omitted from the render function. So that when JSX is typed, we can lower the error margin, by excluding one step.

Issue 2:
What problem does this feature solve?

Hello Vue community,

I searched the issues but couldn't find anything related to this, hope it's not a duplicate.

Recently Realworld.io is collecting a real world example of a blogging app written in different frameworks. There are already projects for react, angular, elm etc. It would be nice if the vue community helped to make the vue example.

Please take a look:

gothinkster/realworld#7

What does the proposed API look like?

A full example of creating a blog using Vuejs, based on the spec of realworld.io