WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm trying to use react-datepicker in one of my react components. When I import the CSS file like mentioned below, I get an error.

import 'react-datepicker/dist/react-datepicker.css'

The error I get is,

Error in react-datepicker/dist/react-datepicker.css

Module parse failed: /path/to/my/project/folder/node_modules/react-datepicker/dist/react-datepicker.css
Unexpected token (1:0) You may need an appropriate loader to handle this file type. | .react-datepicker-popper[data-placement^="bottom"] .react-datepicker__triangle, .react-datepicker-popper[data-placement^="top"] .react-datepicker__triangle, .react-datepicker__year-read-view--down-arrow, | .react-datepicker__month-read-view--down-arrow { | margin-left: -8px;

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

Your Environment

Tech
Version

next
latest

node
8.4.0

OS
macOS High Sierra

browser
Google Chrome Version 61.0.3163.100

Issue 2:
The glamor style tag is always included regardless of use of glamor. This is in 2.0.0-beta.24.

<style type="text/css" data-glamor=""></style> is present within the DOM upon rendering dev or final build.

Take for example this _document.js fragment.

import Document, { Head, Main, NextScript } from 'next/document'

export default class MyDocument extends Document {
static async getInitialProps ({ renderPage }) {
const page = renderPage()
return { ...page }
}

render () {
return (
<html>
<Head>
<title>Site Title</title>
</Head>
<body>
<Main />
<NextScript />
</body>
<style jsx global>{`
html, body {
background-color: #f00;
font-size: 16px;
color: #fef;
}
p {
color: red;
}
`}</style>
</html>
)
}
}
Issue 1:
When using jax.numpy.histogram2d together with the range keyword argument, an error occurs.

import jax
import jax.numpy as jnp
import numpy as np

samples = jax.random.uniform(jax.random.PRNGKey(123), shape=(2, 30))
lims = [[-.5, .5], [-.5, .5]]

# numpy version works fine
hist = np.histogram2d(samples[0, :], samples[1, :], range=lims)
# jnp version fail with error below
hist = jnp.histogram2d(samples[0, :], samples[1, :], range=lims)

Error:

WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)
Traceback (most recent call last):
File "/home/jnphist2d.py", line 11, in <module>
hist = jnp.histogram2d(samples[0, :], samples[1, :], range=lims)
File "/home/usr/anaconda3/lib/python3.7/site-packages/jax/_src/numpy/lax_numpy.py", line 1005, in histogram2d
hist, edges = histogramdd(sample, bins, range, weights, density)
File "/home/usr/anaconda3/lib/python3.7/site-packages/jax/_src/numpy/lax_numpy.py", line 1031, in histogramdd
bin_idx = searchsorted(bin_edges, sample[:, i], side='right')
File "/home/usr/anaconda3/lib/python3.7/site-packages/jax/_src/numpy/lax_numpy.py", line 5717, in searchsorted
raise ValueError("a should be 1-dimensional")
ValueError: a should be 1-dimensional

Issue 2:
from jax import numpy as jnp
a = [-2,2]
b=jnp.array([a,a])
print(b)
jnp.histogram2d(jnp.ones(10), jnp.ones(10), bins=10, range=b)

Suggested fix from the user: this line should probably have range[i]. (That seems to fix it, but I didn't try writing tests!)

@jakevdp could you take a look?
Issue 1:
Why is that doubled?

.container:before,

.container:after {

display: table;

content: " ";

}

.container:after {

clear: both;

}

.container:before,

.container:after {

display: table;

content: " ";

}

.container:after {

clear: both;

}

.row:before,

.row:after {

display: table;

content: " ";

}

.row:after {

clear: both;

}

.row:before,

.row:after {

display: table;

content: " ";

}

.row:after {

clear: both;

}

Issue 2:
show on bootstrap.css

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L581

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L723

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L743

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2023

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2433

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2617

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2637

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3032

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3296

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3453
Issue 1:
For example, let us say, there is an already formed web page and for example there is a section with product description, that doesn't use any classes of the web page due to reset.css v 2.0 and for example it would be great to apply bootstrap.css to this section specifically.

Maybe it will be possible in future versions or there is a distinct no to that?

Issue 2:
To prevent random mixing of styles maybe we should use prefix?

For example, .tb-span6 or .tb-row instead .span6 or .row?

.menu, .navbar is so common class names so it may a little confusing without prefix
Issue 1:
Environment

Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Expected behavior

Actual behavior

Issue 2:
Your Windows build number: 10.0.18362.86

What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

open the terminal app;

add the tab by "ctrl+t" or "click the add tab button";

example step: add 1 cmd tab, add 1 PowerShell tab,add 2 cmd tab

scroll the tab bar by mouse scroll, it does not display all tabs.
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/.): No

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.): kubectl apply, kubectl apply label:kind/bug and apply error label:kind/bug

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

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:38:40Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:32:42Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Cloud provider or hardware configuration: Docker container

OS (e.g. from /etc/os-release): Debian GNU/Linux 8 (jessie)

Kernel (e.g. uname -a): Linux 37638c28ef33 4.8.4-1-ARCH #1 SMP PREEMPT Sat Oct 22 18:26:57 CEST 2016 x86_64 GNU/Linux (apparently uname -a shows the host system on containers?)

Install tools: gcloud

Others: Docker container running the deployment script on our CI (Codeship)

What happened: Our deploy script reads our yaml files and feeds them to kubectl apply -f. Today we didn't have a regular error like "this property can't be updated", it gave us a server error apparently applying a bad patch to the kubernetes resource.

Here is the stderr output: https://gist.github.com/Draiken/e189868555a53d7c0c5254c7eb04a4f8

What you expected to happen: kubectl apply either refuse to send the patch if we're doing some impossible update or successfully update the deployment.

How to reproduce it (as minimally and precisely as possible): Unfortunately, I wasn't able to reproduce it. After the error I took the same yaml file used when the error happened and kubectl apply worked without errors.

Here is the resource on kubernetes: https://gist.github.com/55145dc42d1e06ee625306247040fba3

Here is the resource we applied: https://gist.github.com/25932503e3b6d0dc8a810f8fb3682411

Issue 2:
I have a cluster with ~130 pods. Running back-to-back 'get pods' shows me wildly different understandings of their state, even though I can tell from docker that they have not crashed or anything.

thockin@freakshow kubernetes master /$ ./cluster/kubectl.sh get pods -l app=hostnames | awk '{print $(NF)}' | sort | uniq -c

Running: ./cluster/../cluster/gce/../../_output/dockerized/bin/linux/amd64/kubectl get pods -l app=hostnames

127 Running

1 STATUS

6 Unknown

thockin@freakshow kubernetes master /$ ./cluster/kubectl.sh get pods -l app=hostnames | awk '{print $(NF)}' | sort | uniq -c

Running: ./cluster/../cluster/gce/../../_output/dockerized/bin/linux/amd64/kubectl get pods -l app=hostnames

82 Running

1 STATUS

51 Unknown

Nothing changed in between these calls.
Issue 1:
export default class foo {

}

export default function bar() {

}

var x = 10;
export default x;

In the above example, the error messages are:

On foo: "Duplicate identifier 'foo'."

On bar: "Duplicate identifier 'bar'."

On export default x: "Duplicate identifier 'default'."

Then we have...

export default function foo() {

}

export default function bar() {

}

On foo: "Duplicate function implementation."

On bar: "Duplicate function implementation."

Issue 2:
I have decorator:

export function Document() {
return function(objectConstructor: Function) {
console.log(objectConstructor.name); // when targeting es5 it gives me what I want - the name of my class. When targeting es6 it does not give anything
}
}

Here is decorator usage:

@Document()
export class User {
}

Im using "User" class name to create a document called "User", I need information how class is called. I always used es5, but now when I switched to es6 compile target I dont have information about class name anymore. Is it a bug, or it by design? If second then what is the way to get the class name?
Issue 1:
From this http://jsbin.com/iDiZUf/6/edit?js,output snippet, you can reproduce by:

Load page: http://jsbin.com/iDiZUf/6/edit?js,output

Click glyphicon-question-sign next to "Preapplication"

Click "1. Type of Submission"

Click "1. Type of Submission" again.

Try to click glyphicon-question-sign next to "Changed/Corrected Application"

The behavior you find is that the click from 5. does not show the popover as expected. I suspected this was a z-index related issue and oniijin from IRC helped troubleshoot. Oniijin suggested modifying the javascript:

$('.easyPopover').on('click', function (e) {
$('.in').css('z-index','-1');
$('.easyPopover').not(this).popover('hide');
$(this).popover('toggle');
$('.in').css('z-index','10');
});

With the z-index handling in-place - popover starts behaving more like I expected. I suspect this is the way it should behave out of the box, but I am not certain. My goal in starting down this entire path, was to ensure that only one popover appeared to the user at a time. Thanks, L

Issue 2:
Using toggle popover hidden and ok. When using hide command, popover is hidden, but button inside popover still trigering mouse over.

http://jsfiddle.net/conx/n8FYQ/4/
Issue 1:
already baked into V8 (I think?) so hopefully not too big of a stretch.

(can get by on userland hacks but, for example, interacting with the AWS API requires hand rolling your own signing which is probably a big blocker for most folks)

Issue 2:
Some applications like handling password will require hashing and encryption. These operations could be implemented in js/ts, but It really needs to be handled from a trusted environment to be secure. It looks like there have been some attempts to get this one rolling before recently with #1461.
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 an issue that matches the one I want to file, without success.

Previous issues have been posted to VSCode GitHub. They encouraged people to post here, but based on searching user profiles, they never did. Links:

This may be a duplicate of Crash on macOS with Electron v3.1.6

But I don't know if the problem is the same as what they supposedly narrowed it down to. Plus they never followed up with more testing.

03/2020- vscode v 1.41.1 crashing on Mac OSX Catalina

04/2019-crash when closing vscode in macOS(10.14.5)

02/9/2019- VSCode doesn't boot properly on vscode 1.31

In the case of Catalina:

original issue beta- microsoft/vscode#80236

Apparent problem 08/2019- https://apple.stackexchange.com/questions/367283/apps-that-are-chromium-or-electron-base-crashes-on-catalina-beta-6-19a536g

Issue Details

Crash Reports Gist

Electron Version:

Where can I find electron version corresponding to VSCode?

Both errors on Mac OS X 10.14.6 - Mojave

Both errors VSCode version 1.43.0

Expected Behavior

Use VSCode regularly without crashing

Actual Behavior

Freezes up then crashes.

To Reproduce

The best way to reproduce is using VSCode to run SQL code while using the PostgreSQL Microsoft extension. Also need to install pgadmin (I use pgcli). I can also provide SQL files to setup and use.

Screenshots

None as of now

Additional Information

I have had it crash on the newest VSCode version, but currently don't have a saved bug report. I can try to get one if needed.

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 an issue that matches the one I want to file, without success.

Issue Details

window.print not work in a pdf view using 9.x version. printer doesn‘t give response. I try to open a pdf file from http service like http://xxxx/a.pdfusing webview, but get a 0kb blank pdf file ( save as pdf file) when I use window.print() or electron api webview.print()/webcontents.print(), it seems that the only way to print within a PDF viewer is to click the print icon.

Electron Version:

9.3.4

Operating System:

win 10

Last Known Working Electron version:

Expected Behavior

print correctly

Actual Behavior

not work

To Reproduce

Screenshots

Additional Information
Issue 1:
It would be convenient in many cases to be able to add a filtering condition to comprehensions, something like:

[ f(x) for x in 1:n if somecondition(x)]

where the resulting array only contains those x where somecondition(x) == true. This mirrors python's syntax.

Issue 2:
Quoting @rtzui in #547:

On the other hand more powerful:

x=[1,2,3,4,510,1,2,3,1,9]
y=[sqrt(a) | a ∈ x, x%2==0]

(Discussion from @pao)

There is an open syntactic question. The Haskell syntax (shown above) has guards as boolean expressions separated by commas and interspersed with membership assertions, which works as long as you can tell the difference between an expression evaluating to a boolean and a loop assignment statement. Python uses the keyword "if" to precede each guard. I'm sure there are other approaches as well.

(From @JeffBezanson)

It's maybe not ideal, but you can accomplish this as:

x=[1,2,3,4,510,1,2,3,1,9]
y=[sqrt(a) | a in x[x%2==0] ]
Issue 1:
Windows 10

TF Version: b'v1.11.0-rc2-4-gc19e29306c' 1.11.0

Anaconda Python 3.6.5

GPU: GeForce GTX 1070 Max-Q Design

Tensorflow 2.0 (gpu) preview installed via pip.

I'm building a reinforcement learning framework on top of TensorFlow 2.0 using the tf.keras API and I've come across the following issue.

The 2.0 API docs for tf.keras.losses shows many objects that are not actually available in the preview package. For example the loss classes such as Huber. Hinge, etc... are not accessible.

Why are those classes not included in the preview package?

Why are there both classes and functions for many of the same loss types? That seems like unnecessary duplication.

2a. Why is there a Huber class but no huber function?

I'd love to contribute PRs and help fix these issues. Would that be desired?

Edit: This has also been noticed here: #26007

Issue 2:
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10

TensorFlow installed from (source or binary): binary

TensorFlow version (or github SHA if from source): 1.12

Provide the text output from tflite_convert

Some of the operators in the model are not supported by the standard TensorFlow Lite runtime and are not recognized by TensorFlow. If you have a custom implementation for them you can disable this error with --allow_custom_ops, or by setting allow_custom_ops=True when calling tf.lite.TFLiteConverter(). Here is a list of builtin operators you are using: CONCATENATION, CONV_2D, MAXIMUM, MAX_POOL_2D, MUL, PAD. Here is a list of operators for which you will need custom implementations: ExtractImagePatches.

Also, please include a link to a GraphDef or the model if possible.

Any other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Issue 1:
What / Why

n/a

When

n/a

Where

n/a

How

Current Behavior

n/a

Steps to Reproduce

n/a

Expected Behavior

n/a

Who

n/a

References

n/a

Issue 2:
What / Why

n/a

When

n/a

Where

n/a

How

Current Behavior

n/a

Steps to Reproduce

n/a

Expected Behavior

n/a

Who

n/a

References

n/a
Issue 1:
TypeScript Version:

1.8.7

Code

computeFunctionFromDBFieldName = (): any => {
if (this.dbFieldName) {
return function(object: any): string {
return argJsonObject[this.dbFieldName];
...
}

Expected behavior:

this.computeFunctionFromDBFieldName = function () {
if (_this.dbFieldName) {
return function (argJsonObject) {
return argJsonObject[_this.dbFieldName];
};

Actual behavior:

Generated js

this.computeFunctionFromDBFieldName = function () {
if (_this.dbFieldName) {
return function (argJsonObject) {
return argJsonObject[this.dbFieldName];
};

The expected difference would be that the _this would also be in the array referencing.

Issue 2:
Hi,

I just updated the typescript compiler from 1.0.1.0 to 1.1.0.1.

Then when I using the Webstorm Typescript Transpiling, it keeps reporting TS2300: Duplicate identifier.

I investigate a bit, it seems like the references is the problem.

In our current project, we include all the .ts files and external library .d.ts files in one references.d.ts file and include a single references.d.ts file for each .ts file we coded.

This reference mechanism works just fine on tsc 1.0.1.0

But on 1.1.0.1, it seems like it can not do self reference any more. Then I try to make specific reference for each .ts file. However it still get some TS2300: Duplicate identifier in some classes when the dependencies depend on another same dependency. It seems like it will reference the same dependency twice to cause Duplicate identifier error.

eg:

A.ts:
/// <reference path="D.ts" />

B.ts:
/// <reference path="D.ts" />

C.ts:
/// <reference path="A.ts" />
/// <reference path="B.ts" />

Because I am using AngularJS framework, so it is quite common that A and B are services to inject D service, C as controller to inject A and B services.

In this scenario, typescript compiler report TS2300: Duplicate identifier 'D' when it compile C.ts

PS: I know this references issue will not occurs in VS since it has some 'magic' implicant reference mechanism to reference all the .ts/ .d.ts files. I hope it is not the Webstorm issue, because it seems like compile issue more or less.

Also, it will be great if there is some standard Typescript coding style to do the proper dependencies reference when people are using Webstorm or other IDE than VS. Maybe some auto fixing dependencies reference as plugin would be better.
Issue 1:
I'm on Windows 7, using the Romanian (Programmers) keyboard arangement. Right-Alt + s is supposed to be ș (s with comma below), but in Atom it opens a Spec Suite window (which seems to be running some kind of tests). Maybe the issue is that you should differentiate between left and right Alt?

Issue 2:
Atom doesn't handle keyboards with Right Alt (i.e. AltGr). This is a very basic mistake. I have a Hungarian keyboard layout, I can only write specific keys like "|" (pipe) by pressing Right Alt (AltGr) and then W, which Atom doesn't recognize and treat like Alt-W or something?

The point is there are some layouts like greek, hungarian, czech with special keys, which an EDITOR should handle the right way!!

E.g. I can't write CTRL-", because it writes the number "2" instead. I think this key might be interpreted like CTRL-ALT sequence, but not sure either.

Anyway, without it, it's just not an editor.

Like Windows Media player; you can't pause a movie with it hitting space bar...

From: support/9f98abca9f4a11e3955c6445541b1a76
Issue 1:
by xuxinhua1984:

The code is:(test.go)
package main
import "fmt"
func main() {
fmt.Println("Hello, World")
}

Then, I build it: go build test.go. It is OK.

But when I delete $GOROOT/src/pkg/fmt directory, then build test.go, it failed:
cannot find package "fmt" in any of:
/usr/local/go/src/pkg/fmt (from $GOROOT)

However, I can build it by 6g and link it by 6l:
go tool 6g test.go
go tool 6l test.6
this will generate 6.out

Why "go build" depends on $GOROOT/src/pkg ?

Issue 2:
by dpsplunk:

See http://tip.golang.org/pkg/syscall/ and search in page for EPOLLET

Compare value against /usr/include/sys/epoll.h on Linux (or possibly
/usr/include/x86_64-linux-gnu/sys/epoll.h if on Ubuntu 12.04)

Go version has a negative value; whereas, Linux version is positive.

Value is positive on Linux Ubuntu 10.04 LTS and Ubuntu 12.04 LTS.
Issue 1:
Using the groupby().rolling() object seems to duplicate a level of the index.

In [9]: d.groupby(level='ticker').rolling(30).mean()
Out[9]:
ticker ticker date
BMO BMO 2006-01-02 NaN
2006-01-03 NaN

TD TD 2016-09-22 57.139340
2016-09-23 57.171864

In [10]: d.groupby(level='ticker').apply(pd.rolling_mean, 30)
Out[10]:
ticker date
BMO 2006-01-02 NaN
2006-01-03 NaN

TD 2016-09-22 57.139340
2016-09-23 57.171864

In [11]: d.groupby(level='ticker').apply(lambda x: x.rolling(30).mean())
Out[11]:
ticker date
BMO 2006-01-02 NaN
2006-01-03 NaN

TD 2016-09-22 57.139340
2016-09-23 57.171864

I would expect the output to be the same in all three cases.

Issue 2:
I found another oddity while digging through #13966.

Begin with the initial DataFrame in that issue:

df = pd.DataFrame({'A': [1] * 20 + [2] * 12 + [3] * 8,
'B': np.arange(40)})

Save the grouping:

In [215]: g = df.groupby('A')

Compute the rolling sum:

In [216]: r = g.rolling(4)

In [217]: r.sum()
Out[217]:
A B
A
1 0 NaN NaN
1 NaN NaN
2 NaN NaN
3 4.0 6.0
4 4.0 10.0
5 4.0 14.0
6 4.0 18.0
7 4.0 22.0
8 4.0 26.0
9 4.0 30.0
... ... ...
2 30 8.0 114.0
31 8.0 118.0
3 32 NaN NaN
33 NaN NaN
34 NaN NaN
35 12.0 134.0
36 12.0 138.0
37 12.0 142.0
38 12.0 146.0
39 12.0 150.0

[40 rows x 2 columns]

It maintains the by column (A)! That column should not be in the resulting DataFrame.

It gets weirder if I compute the sum over the entire grouping and then re-do the rolling calculation. Now by column is gone as expected:

In [218]: g.sum()
Out[218]:
B
A
1 190
2 306
3 284

In [219]: r.sum()
Out[219]:
B
A
1 0 NaN
1 NaN
2 NaN
3 6.0
4 10.0
5 14.0
6 18.0
7 22.0
8 26.0
9 30.0
... ...
2 30 114.0
31 118.0
3 32 NaN
33 NaN
34 NaN
35 134.0
36 138.0
37 142.0
38 146.0
39 150.0

[40 rows x 1 columns]

So the grouping summation has some sort of side effect.