WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Expressions testing for strict (in)equality with undefined evaluate incorrectly, e.g.:

{{ undefinedVariable === undefined }}

^ "false" output to DOM

<p *ngIf="undefinedVariable !== undefined">Should not display</p>

^ "Should not display" output to DOM

Expected behavior

Expressions testing for strict (in)equality with undefined evaluate correctly

Reproduction of the problem

http://plnkr.co/edit/SdxObL

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Angular version: 2.0.X

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Language: [all | TypeScript X.X | ES6/7 | ES5]

Node (for AoT issues): node --version =

Issue 2:
I'm submitting a ...

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Here is the code I have for a component:

@Component({
selector: 'myComponent',
templateUrl: 'mycomponent.component.html',
styles: [`
chart {
display: block;
}
`],
styleUrls: ['mycomponent.component.scss'],
})

And here is the Typescript error I have:

ERROR in [default] /Users/max/Documents/workspace/admin/src/app/spots/spots-debug-graph.component.ts:19:4
An object literal cannot have multiple properties with the same name in strict mode.

ERROR in [default] /Users/max/Documents/workspace/admin/src/app/spots/spots-debug-graph.component.ts:19:4
Duplicate identifier 'styles'.

If I remove one of the two stylesor styleUrlsdeclarations I have no error.

Expected behavior

There should be no error as in the typing definition of the Componentdecorator there is those two attributes.

Reproduction of the problem

I don't seem to be able to create a plunkr to reproduct this error.

Maybe because I'm using angular-cli to build my project, so with Webpack and not SystemJs.

What is the motivation / use case for changing the behavior?

I need to change the style of the chart block to make it take all the place of its parent container.

Please tell us about your environment:

OS X El Captain 10.11.6

angular-cli: 1.0.0-beta.15

node: 6.1.0

os: darwin x64

Angular version: 2.0.0-rc.X

Last version, Angular 2.0.0.

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

I just checked in Chrome but I don't think this is related to the browser as I have the error in the CLI when using ng serve.

Language: [all | TypeScript X.X | ES6/7 | ES5]

Typescript 2.0.2

Node (for AoT issues): node --version = 6.1.0
Issue 1:
Should we add PathEscape and PathUnescape functions, similar to QueryEscape and QueryUnescape? The functionality is already present (see func (*URL) EscapedPath), but it is awkward to use.

See https://groups.google.com/forum/#!topic/golang-dev/UDUqvuKrq14 for golang-dev discussion

Issue 2:
Compile this file (loosely based on test/named1.go) with 6g:

package p

type Bool bool
type Int int
type String string

func B(Bool) {}
func I(Int) {}
func S(String) {}

func F() {
B(1 == 2)
I(1 + 2)
S("1" + "2")
}

I see this:

foo.go:12: cannot use false (type ideal bool) as type Bool in function argument

If the type of "1 == 2" is in fact "ideal bool", then it would seem
that the function call should be permitted, by analogy with the other two function
calls. However, the spec currently says "Comparison operators compare two operands
and yield a value of type bool". From that I conclude that the compiler is correct
to give an error, but that the error message should say "type bool", not
"type ideal bool".
Issue 1:
When encoding a large data structure (such as a tree representing a file-system), the Encode() methods first marshal the encoded data into a []byte buffer and then write the buffer to the writer. Similarly, the Decode() methods require a buffer to unmarshal from. These buffers must be allocated (and grown) and typically more than double the memory consumption of the process. This is limiting for applications which are sized to the machine/container.

I propose that the interfaces are extended to support streaming encoding/decoding of data. For each type (except slices and maps), the data would be separately marshaled and written. For slices and maps, each entry would be marshaled and written, rather the slice/map as a whole.

Some API suggestions/alternatives:

func Encode(w io.Writer, v interface{}) error

func NewStreamingEncoder(w io.Writer) *Encoder

func (enc *Encoder) StreamingEncode(v interface{}) error

Issue 2:
Gc correctly rejects the following program:

package n
func n(){_=string(0.)}

But gotype successfully compiles it. It must not. 0. is an fp constant.

on commit e9a746d
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report

[ ] feature request

[ ] support request

Current behavior

Define property named "click" as an @output().

`@Output()

public click: EventEmitter = new EventEmitter();

public foo(item){

this.click.emit(item);

}use the component and bind the click property to handler<myComponent (click) = "myClickHandler($event)"/>`

When you debug all works fine.

When you work without debugging for some reason the DOM/JS click event is emitting.

Expected behavior

Override the DOM/JS click event and emit only the custom click.

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/vaKukOWH55Q8RTB4nZQD

The plunker doesnt run.

What is the motivation / use case for changing the behavior?

I want that the one that going to use my component will use it intuitively.

Angular version: 2.4.4

Browser: Chrome 46

Language: TypeScript

Issue 2:
@Component({
selector: 'my-component'
events: ['change']
})
@View({
template: '<input (change)="...">'
})
class MyComponent {
}

The above code creates an issue. It conflates the change event from the MyComponent with the bubbling change event from the <input>.

The correct behavior is that the change event which is part of the components should filter out the DOM change events. Otherwise

<my-component (change)="doSomething($event)">

will sometimes get the $event from the MyComponent and sometimes from the input event.
Issue 1:
Sometimes it happens so that some code logically belongs in one module, but there is just too much of it to put in one file. For example, here is my use case:

// base.ts
export interface SomeCoreType { ... }

export interface MyStandardAjaxResponse { ... }
export function doAjax( url: string, onSuccess: (r: MyStandardAjaxResponse) => void ) { ... }

export interface User { ... }
export function isUserOk( u: User ) { return ... }
// and so on

// customer.ts
import b = module( "./base.ts" );

export class Customer {
constructor( id: number, someArg: b.SomeCoreType ) {
b.doAjax( '/api/getCustomer', r => this.loadData( r ) );
}

loadData( r: b.MyStandardAjaxResponse ) { ... }
}
// and so on

Over time, that base.ts file tends to grow with all kinds of enums, utility functions, common types, etc. At some point, it becomes so large that I want to partition it across several files. For example, I'd like to extract SomeCoreType into its own module coreType.ts, then extract MyStandardAjaxResponse and doAjax into ajax.ts, and extract User and isUserOk into user.ts. Just for my sanity's sake. Makes sense?

But if I do that, I'll have to import a gazillion of modules every time.

So my next logical step - consolidate them all back into base.ts:

// base.ts
import _coreType = module("./coreType");
export var CoreType = _coreType;

import _ajax = module("./ajax");
export var Ajax = _ajax;

import _user = module("./user");
export var User = _user;
// and so on

That's better. Now I only have to import base.ts.

However, I still have to write b.Ajax.doAjax instead of just b.doAjax. That's inconvenient.

But an even bigger issue is that now I can't use interfaces declared in those modules. TypeScript just doesn't pick them up.

What I'd like to be able to do is something like this:

import Ajax = module("./ajax");
export Ajax.*;

Or, perhaps, the infamous export import:

export import Ajax = module("./ajax");

Or, maybe, something like:

reexport module("./ajax");

And the output code could look something like this:

define(['module', 'exports', './ajax'], function(module, exports, __ajax__) {
for( var k in __ajax__ ) exports[k] = __ajax__[k];
});

Issue 2:
Support compiling multiple input .ts files into one external module.

Need to determine exactly how the module boundaries are defined when doing this.
Issue 1:
From @jockjocko on April 12, 2016 9:39

VSCode Version: 0.10.15-insider

OS Version: Windows 10

Steps to Reproduce:

Create class and constructor.

Create a new instance of the newly created class

Shift + f12 or right click find all references

I would expect it to find all references of the class being constructed "new ExampleClass()".

Copied from original issue: microsoft/vscode#5185

Issue 2:
I dont find a way to "Find References" on a constructor of a class. Is this not supported?
Issue 1:
Bug report

Describe the bug

http://localhost:3000/_error reloads indefinitely.

To Reproduce

yarn create next-app test
cd test
yarn dev

And go to http://localhost:3000/_error.

Expected behavior

I expect to have a 404 error, similar to calling http://localhost:3000/_document, http://localhost:3000/_app or any other non-existing page.

System information

OS: Linux

Browser (if applies): Chrome

Version of Next.js: 9.0.5

Issue 2:
Bug report

Describe the bug

When you visit /_error in development the page reloads non-stop and the error page is rendered with a status of 200 and text of An unexpected error occurred.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Create minimal Next.js project yarn create next-app error-loop

Visit /_error in your browser

See the error

Expected behavior

Still being discussed, most likely to render 404 similar to _app and _document

Screenshots

System information

OS: [e.g. macOS, Windows] any

Browser (if applies) [e.g. chrome, safari] any

Version of Next.js: [e.g. 6.0.2] latest (9.0.2)

Additional context

Related PR here
Issue 1:
🐛 Bug

To Reproduce

Steps to reproduce the behavior:

Execute conda install pytorch torchvision cudatoolkit=10.0 -c pytorch to intall pytorch1.1 and torchvision0.3.0

Execute conda install pytorch-nightly -c pytorch to install pytorch1.2

Import torchvision then get the following error.

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda/lib/python3.7/site-packages/torchvision/__init__.py", line 1, in <module>
from torchvision import models
File "/opt/anaconda/lib/python3.7/site-packages/torchvision/models/__init__.py", line 11, in <module>
from . import detection
File "/opt/anaconda/lib/python3.7/site-packages/torchvision/models/detection/__init__.py", line 1, in <module>
from .faster_rcnn import *
File "/opt/anaconda/lib/python3.7/site-packages/torchvision/models/detection/faster_rcnn.py", line 7, in <module>
from torchvision.ops import misc as misc_nn_ops
File "/opt/anaconda/lib/python3.7/site-packages/torchvision/ops/__init__.py", line 1, in <module>
from .boxes import nms, box_iou
File "/opt/anaconda/lib/python3.7/site-packages/torchvision/ops/boxes.py", line 2, in <module>
from torchvision import _C
ImportError: /opt/anaconda/lib/python3.7/site-packages/torchvision/_C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN2at7getTypeERKNS_6TensorE

Environment

Versions of relevant libraries:

[pip] numpy==1.16.2

[pip] numpydoc==0.8.0

[pip] torch==1.2.0.dev20190730+cu100

[pip] torchvision==0.3.0

[conda] blas 1.0 mkl

[conda] mkl 2019.3 199

[conda] mkl-service 1.1.2 py37he904b0f_5

[conda] mkl_fft 1.0.10 py37ha843d7b_0

[conda] mkl_random 1.0.2 py37hd81dba3_0

[conda] pytorch 1.1.0 py3.7_cuda10.0.130_cudnn7.5.1_0

[conda] pytorch-nightly 1.2.0.dev20190730+cu100 py3.7_cuda10.0.130_cudnn7.6.1_0 pytorch

[conda] torchvision 0.3.0 py37_cu10.0.130_1

Additional context

This import error only happens with pytorch1.2 and torchvision0.3, while pytorch1.2 and torchvision0.2 are ok. So there may be some incompatible problem between torchvision0.3 and pytorch1.2.

Issue 2:
The official website does not provide the torchvison version installation method.

Here is the error message when torchvison 0.3.0 is used.

torchvision/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at7getTypeERKNS_6TensorE

That should be caused by the mismatch version between pytorch-nightly and torchvision 0.3.0.
Issue 1:
Consider the following code:

const path = "./404.txt";
await Deno.readTextFile(path);

I get the following error when I run the script.

error: Uncaught (in promise) NotFound: No such file or directory (os error 2)
const text = await Deno.readTextFile(path);
^
at deno:core/core.js:86:46
at unwrapOpResult (deno:core/core.js:106:13)
at async open (deno:runtime/js/40_files.js:46:17)
at async Object.readTextFile (deno:runtime/js/40_read_file.js:40:18)
at async file:///Users/sr/deno_issues/io_error.ts:2:14

It isn't easy to debug when you've hundreds of files with the above information.

One thing I'm not sure about is if we should delegate the responsibility to scripts or if we should include the path in Deno's built-in error itself.

I favor including the path in the default error message as most scripts usually won't take the extra effort to display additional information when they encounter the error.

Issue 2:
Currently the error message of the exception, thrown from the Deno.stat/statSync, when the file is missing, does not include the file name:

nickolay@frontier:~/workspace/Bryntum/siesta-monorepo/siesta$ deno
Deno 1.9.2
exit using ctrl+d or close()
> Deno.statSync('/home/nickolay/not_existing_file')
Uncaught NotFound: No such file or directory (os error 2)
at unwrapOpResult (deno:core/core.js:99:13)
at Object.opSync (deno:core/core.js:113:12)
at Object.statSync (deno:runtime/js/30_fs.js:224:22)
at <anonymous>:2:6
>

Is this intentional with some rationale behind, or just an oversight? From usability perspective the filename should be included in the message of course.
Issue 1:
When compiling a TypeScript project that references @types/node, the compiler (TSC) will report an error regarding duplicate assert identifiers.

node_modules/@types/node/assert.d.ts:56:14 - error TS2300: Duplicate identifier 'assert'.
56 export = assert;
~~~~~~
node_modules/@types/node/ts3.7/assert.d.ts:56:14
56 export = assert;
~~~~~~
'assert' was also declared here.

Rolling @types/node back to version 12.12.6 resolves the issue.

@G-Rath (mentioned due to the latest activity in the ts3.* directories)

Issue 2:
After adding the NuGet package Handlebars.TypeScript.DefinitelyTyped, it's throwing a lot of "Duplicate Identifier" errors because there are two handlebars files. My project will not compile with it installed.
Issue 1:
cmd + click adds an extra cursor in the editor.

cmd + shift + click currently behaves in a weird way that does not appear to be intended. My expectation was for cmd + shift + click to add multiple cursors on the lines between the last added cursor and the click position (on the same column as the click).

Does this sound like a good idea? I know I would find it rather useful.

Issue 2:
In plenty editors, doing left-alt (left option) and selecting text will take a slice of that text:

Notice that only characters are selected, empty lines are ignored. Also, after selecting with left-alt, there should be multi-cursors at the end of each selection:

The GIF are from Sublime, the same behavior is observed in TextMate, IntelliJ, vim (visual selection).

The current behavior in Atom is to perform a normal text selection:
Issue 1:
Hi there. First of all, thanks a lot for making JAX such a great framework. It's awesome.

Actually it's only awesome when we only do training on a single node. To my knowledge, the multi-node support is still missing for now. 10 months ago, @hawkinsp and @gnecula mentioned that there's already some experimental support for multi-GPU training across multiple devices in #2731 and #2837 respectively. However, there's no description how we can achieve that, in a hacky way or not. I understand that experimental support could be brittle and/or rough. Just feeling adventurous and want to try out. Could someone share some idea on the multi-node training recipe with JAX?

Also what is the priority and roadmap of fully supporting multi-node training with JAX? From the fact that no one's responding to #2731 any more, I assume it's not of high priority and not likely coming in the near future? Thanks again!

Issue 2:
I don't have a node with 8 gpus. I have two nodes each with 4 gpus. So is it possible to train a model on multiple nodes?
Issue 1:
Summary of the new feature/enhancement

I realize this would be a whole new feature and not necessarily improvements to the existing toys, but I have long waited for Microsoft to implement the old Mac feature "hot corners" where by simply moving the mouse to any of the 4 corners of the screen would do things like prevent sleep, or launch a screen saver, or any program for that matter. It sounds like a power user function to me, so power toys sounds like a good place for it. In the event of multiple screens, it would still be just 4 corners two on each extreme end of double wide screen or one on each corner of a quadruple double stacked screen. There were some improvements to the Mac version I hoped one day to see on a Microsoft version, but one thing at a time I guess. First, let's see if the feature makes the proverbial "cut".

Proposed technical implementation details (optional)

Issue 2:
Summary of the new feature/enhancement

Operating systems such as macOS or some Linux distributions have hot corners option in their functionality. It would be great to have something like that in Windows. Although there are third party applications that provide such functionality (e.g. WinX Corners), they are sometimes limited.

Proposed technical implementation details (optional)

For example, you can set one of the default options:

Opening the task view

Opening the start menu

Opening of the action centre

Opening Cortana (?)

Opening the Alt-tab interface

Execution of own powershell / cmd command
Issue 1:
Challenge Name

http://codepen.io/Lihkinrian/pen/evOgVr?editors=0010

Issue Description

When i use http://codepen.io i am getting an error "getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details." i am using http for both the request url and request origin url. But when i use https for the request origin url i.e the https://codepen.io//Lihkinrian/pen/evOgVr?editors=0010 and http for the api i get "Mixed Content: The page at 'https://codepen.io/Lihkinrian/pen/evOgVr?editors=0010' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://api.openweathermap.org/data/2.5/weather?lat=10.0090639&lon=76.3614448&&appid=39809327b8276ac16891fe71210a0291'. This request has been blocked; the content must be served over HTTPS.".

Browser Information

Browser Name, Version: Chrome v56

Operating System: windows 10

Mobile, Desktop, or Tablet: laptop

Your Code

function getWeatherData() { navigator.geolocation.getCurrentPosition(function(position) {
var lat = position.coords.latitude,
lon = position.coords.longitude,
url = 'http://api.openweathermap.org/data/2.5/weather?lat=' + lat + '&lon=' + lon + '&&appid=39809327b8276ac16891fe71210a0291';
$.getJSON(url, function(data) {
console.log(data);
});
});
}

$(document).ready(function() {
getWeatherData();
});

Screenshot

Issue 2:
Show the Local Weather

https://www.freecodecamp.com/challenges/show-the-local-weather

Weather App Location issue

I am currently using Google chrome and I have been trying to figure out why my location could not be found when I copied the exact code from FCC and placed it in Codepen.io. After a week of fighting I asked for help and I learn that I had to use https:// so I can find my location. The second issue is that when I tried to pass this location to the Weather API it would not work, so I asked the community again and I learn that the FCC given locator will not work when we pass the location to the weather API. Could you please add a side note to the other codes as a heads up so that they don't end up beating their computer with a baseball bat?

Browser Information

Browser Name, Version: Google Chrome Version 51.0.2704.84 m

Operating System: Windows 10

Mobile, Desktop, or Tablet: Desktop

Your Code

// If relevant, paste all of your challenge code in here

Screenshot
Issue 1:
I have a Paper element containing a grid system (24 columns) that contains a Paper, that contains a typography

(schematic)
<Paper>
<Grid container spacing={24}>
<Grid item xs={12} sm={6}>
<Paper>
<Typography>

I would like to change the Typography's font color to white, but it gets overriden by the Typography component. I can make it change if use the style attribute or the classes, but I would like to use some "normal" CSS for these kind of things

I have searched the issues of this repository and believe that this is not a duplicate. (Note: Also search on Google in general)

Expected Behavior

expected result:

Current Behavior

This is what I can see from the developer's console:

Steps to Reproduce (for bugs)

<Paper elevation={4} className="dashboard-paper">
<Grid container spacing={24}>
<Grid item xs={12} sm={6}>
<Paper
elevation={8}
>
<Typography // This is the component that causes me some troubles
variant="headline"
component="h3"
className="dashboard-typography"
>
This is a sheet of paper.
</Typography>
<Typography component="p">
Paper can be used to build surface or other elements for your application.
</Typography>
</Paper>
</Grid>
</Grid>
</Paper

.dashboard-typography {
padding: 2%;
background-color: #3f51b5;
color: #ffffff;
}

Context

Even though I can use css by creating const and putting some css in it, I would like to avoid it because I don't know React and Material UI well enough to "allow me" this. The problem is it seems that I don't have a choice, or maybe I did something wrong

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.33

React
16.0.36

browser
Chrome 64.0

Issue 2:
I'm having an issue with RaisedButton only when used inside of the Toolbar component. Here is the code in question:

<Toolbar>
<ToolbarGroup float='right'>
<RaisedButton label='Continue' primary={true} onTouchTap={callNextPage} />
</ToolbarGroup>
</Toolbar>

The result: as you can see, the button is no longer styled.

What does work:

Changing the RaisedButton component to FlatButton works fine.

Other RaisedButton components in the app work fine

What the isn't the problem:

There is no CSS effecting the particular RaisedButton

The path to the component is correct

Versions

Material-UI: 0.15.0.alpha-2

React: 15.0.1

Browser: Chrome 45 (inside of Atom Editor)