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

[ ] bug report => search github for a similar issue or PR before submitting
[x] 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

This is more a stylistic thing, but

this.renderer.setElementAttribute(this.el.nativeElement, 'data-some-param', undefined);

is a legal usage as it deletes data-some-param attribute from element, but this code shows typescript error when using strictNullChecks because setElementAttribute is described as:

abstract setElementAttribute(renderElement: any, attributeName: string, attributeValue: string): void;

attributeValue is just string and not string | undefined

Expected behavior

attributeValue to have type string | undefined

Minimal reproduction of the problem with instructions

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

Please tell us about your environment:

Angular version: 2.2.4

https://github.com/angular/angular/blob/master/modules/%40angular/core/src/render/api.ts

still the same in latest Angular

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 ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting

Current behavior

When trying to compile an ng2 application with typescript 2.0 strictNullChecks turned on the compiler runs into errors.

Expected behavior

Expect that ng2 would support use with strictNullChecks.

Reproduction of the problem

Reproduced by taking the quick start application and setting the strictNullChecks option true in tsconfig.json. (see: https://github.com/abierbaum/quickstart)

When doing this and running npm run tsc the following error is shown:

> angular-quickstart@1.0.0 tsc /home/allenb/Source/quickstart
> tsc

node_modules/@angular/core/src/util/decorators.d.ts(11,5): error TS2411: Property 'extends' of type 'Type<any> | undefined' is not assignable to string index type 'Function | any[] | Type<any>'.
node_modules/@angular/platform-browser/src/dom/dom_renderer.d.ts(25,22): error TS2420: Class 'DomRenderer' incorrectly implements interface 'Renderer'.
Types of property 'animate' are incompatible.
Type '(element: any, startingStyles: AnimationStyles | undefined, keyframes: (AnimationKeyframe | undef...' is not assignable to type '(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number,...'.
Type 'AnimationPlayer | undefined' is not assignable to type 'AnimationPlayer'.
Type 'undefined' is not assignable to type 'AnimationPlayer'.

Other similar errors occur with larger projects.

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

strictNullChecks is a recommended best practices for new typescript code and it would be great if we could use this with ng2 applications.
Issue 1:
🚀 Feature

Hi,

I wonder if there can be a script for fine-tuning BertAbs on new dataset?

Or if you have some hint to provide about this task? Not sure how to access loss from modeling_bertabs.py.

Thanks

Issue 2:
Hi all,

Is there any way to do transfer learning on the Text Summarization model (bertabs-finetuned-cnndm)? I would like to continue training it on my dataset.

The code run_summarization.py only does prediction. Thanks!
Issue 1:
If you know how to fix the issue, make a pull request instead.

I tried using the the latest "npm install --save @types/react-redux" having this issue when run the npm start

Issue 2:
If you know how to fix the issue, make a pull request instead.

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: @alloy @huhuanming @iRoachie @Skn0tt @timwangdev @kamal @nelyousfi @alexdunne @swissmanu @bm-software @tkrotoff @a-tarasyuk @mvdam @Esemesek

Using valid style created by StyleSheet.create on imaghe results in following typescript error

[ts]

Type 'RegisteredStyle<ViewStyle | TextStyle | ImageStyle>' is not assignable to type 'StyleProp'.

Type 'RegisteredStyle<ViewStyle | TextStyle | ImageStyle>' is not assignable to type 'RecursiveArray<false | ImageStyle | RegisteredStyle | null | undefined>'.

Property 'length' is missing in type 'Number & { __registeredStyleBrand: ViewStyle | TextStyle | ImageStyle; }'.

index.d.ts(3750, 5): The expected type comes from property 'style' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly<{ children?: ReactNode; }> & Readonly'

(JSX attribute) style?: StyleProp

Style

Can be reproduced via

import * as React from 'react';
import { Image, StyleSheet } from 'react-native';

/**
* Component
*/
class GameHeaderBar extends React.Component<{}> {
render() {
return <Image style={styles.barImg} source={{ uri: 'game_header_bar' }} />;
}
}

export default GameHeaderBar;

/**
* Styles
*/
const styles = StyleSheet.create({
barImg: {
position: 'relative',
zIndex: 2
}
});

I started getting this issue after upgrading @types/react-native@0.56.24 to @types/react-native@0.57.4
Issue 1:
Electron version: all

Operating system: OSX

Example repo is here.

If you embed an <iframe> and then within that <iframe> you do this:

// child returns undefined
var child = window.open(...)

child will be undefined, instead of the BrowserWindowProxy.

Changing the code to this works by returning the proxy:

var child = window.top.open(...)

In my case I am embedding guest content in an <iframe> and cannot force the users to update their code.

Issue 2:
Electron version: 1.3.0

Operating system: Windows 10

x.js

const app = require('electron').app;
const BW = require('electron').BrowserWindow;
const path = require('path');

app.once('ready', () => {

const win = new BW({});

win.loadURL('file://' + path.join(__dirname, 'x.html'));
});

x.html

<html>
<head>
<title></title>
</head>
<body>
<iframe width="100%" height="200" src="y.html"></iframe>
XXXX
<script type="text/javascript">
function fn() {
const w = window.open('http://electron.atom.io/');
console.log(w);
w.focus();
}
</script>
<button onclick="fn()">Open Window</button>
</body>
</html>

y.html

YYYY
<script type="text/javascript">
function fn() {
const w = window.open('http://electron.atom.io/');
console.log(w);
w.focus();
}
</script>
<button onclick="fn()">Open Window</button>

w is undefined when called from y.html, but not x.html. In both cases, a new BrowserWindow is created for the popup.
Issue 1:
Filter Currently Running Applications

Since the merge with Wox, the Window Walker aspect of PTRun has become much less efficient, as opening new applications and other search results often take priority over applications that are currently running. For instance, I used to use Window Walker to search through open browser tabs, but this isn't really feasible anymore as PTRun returns too many results upon search to be easy or efficient.

To that end, would it be possible to somehow set an option so that PTRun only displays currently running applications? Perhaps with a specific shortcut that opens PTRun to only look at open applications? Or a character in the search to set as a filter (like ">" is a terminal run, maybe ":" only returns running applications)?

I think a lot of previous users of Window Walker would benefit.

Many Thanks for your consideration!

Issue 2:
Summary of the new feature/enhancement

Currently PowerToys Run operates as a universal search. The original implementation (as Window Walker) appears to be an alt-tab system for those with many many many windows open.

Proposed technical implementation details (optional)

Can we have an option to limit searches to open windows/tabs? Or should I just install Window Walker?
Issue 1:
such as:

[TOC]

task list - [x]

flowchart [http://adrai.github.io/flowchart.js/]

sequence-diagrams [http://bramp.github.io/js-sequence-diagrams/]

Issue 2:
In the Common Questions section of https://code.visualstudio.com/docs/languages/markdown it says "Code supports GitHub Flavored Markdown".

This support is incomplete as at least Code's internal preview does not render task lists correctly. They are described as part of GFM here: https://help.github.com/articles/writing-on-github/

Please add this to Code's previewer.
Issue 1:
When a multiple import fails, the error message does not specify which ident was not found. The squiggly arrow seems to always point to the beginning of the thing being imported, whether or not that was the unresolved part.

Examples (from rust-http-client)

Multi-line multiple import: (no line at all!)

/Users/burg/repos/servo/src/rust-http-client/http_client.rs:5:7: 8:2 error: failed to resolve import
/Users/burg/repos/servo/src/rust-http-client/http_client.rs:5 import std::net::ip::{
/Users/burg/repos/servo/src/rust-http-client/http_client.rs:6 get_addr, format_addr, ipv4, ipv6, IpAddr,
/Users/burg/repos/servo/src/rust-http-client/http_client.rs:7 ip_get_addr_err
/Users/burg/repos/servo/src/rust-http-client/http_client.rs:8 };

Single-line multiple import: (points to std::)

/Users/burg/repos/servo/src/rust-http-client/connection.rs:2:7: 2:59 error: failed to resolve import
/Users/burg/repos/servo/src/rust-http-client/connection.rs:2 import std::net::tcp::{tcp_err_data, tcp_connect_err_data};
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Single-line single import: (points to std::)

/Users/burg/repos/servo/src/rust-http-client/connection.rs:25:15: 25:41 error: failed to resolve import
/Users/burg/repos/servo/src/rust-http-client/connection.rs:25 import std::net::tcp::tcp_socket;
^~~~~~~~~~~~~~~~~~~~~~~~~~

Issue 2:
struct Foo<T> {
value: T
}

impl<T: Owned> Foo<T> {
fn from_owned(value: T) -> Foo<T> {
Foo{value: value}
}
}

impl<T: Const> Foo<T> {
fn from_const(value: T) -> Foo<T> {
Foo{value: value}
}
}

fn main() {
}

foo.rs:11:0: 15:1 error: duplicate definition of type `Foo`
foo.rs:11 impl<T: Const> Foo<T> {
foo.rs:12 fn from_const(value: T) -> Foo<T> {
foo.rs:13 Foo{value: value}
foo.rs:14 }
foo.rs:15 }
foo.rs:5:0: 9:1 note: first definition of type Foo here:
foo.rs:5 impl<T: Owned> Foo<T> {
foo.rs:6 fn from_owned(value: T) -> Foo<T> {
foo.rs:7 Foo{value: value}
foo.rs:8 }
foo.rs:9 }
error: aborting due to previous error
zsh: exit 101 rustc foo.rs
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Working dateTimePicker in Firefox on demo page.

https://material-ui.com/demos/pickers/#pickers

Current Behavior

Steps to Reproduce (for bugs)

open https://material-ui.com/demos/pickers/#pickers in Firefox

Your Environment

Tech
Version

Material-UI
^1.0.0-beta.27

React
^16.2.0

browser
firefox 57.0.4 (64-bit) +

OS
OSX

Issue 2:
onBlur() is being called on a TextField with event parameter as undefined

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

Expected Behavior

onBlur() should always be called with an event.

Current Behavior

In some situations, onBlur() is being called with an undefined event.

Steps to Reproduce (for bugs)

I am not able to reproduce this in a small example, but I can tell you which code path is making this spurious call to onBlur. The culprit is essentially the componentWillUpdate() method in Input.js. See here.

On line 395, there is a call to muiFormControl.onBlur(), without passing an event!!!

This calls FormControl.handleBlur(), which expects an event.

This in turn calls this.props.onBlur(event), which is my event handler that gets an undefined event.

Context

This issue is requiring me to check for an undefined event in the beginning of my event handler.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.20

React
16.0.0

browser
Chrome

etc
Issue 1:
Do you want to request a feature or report a bug?

I want to request a feature.

What is the current behavior?

Warning code is hardcoded to call fbjs/lib/warning. This makes it hard to integrate warnings with tools.

As a workaround we could use webpack’s resolve.alias to alias fbjs/lib/warning into our fork which displays it on-screen.

This use case is similar to #7360.

Another use case is to integrate React warnings with our testing infrastructure. This helps us to better see which warning belongs to which test.

What is the expected behavior?

React allows library user to override the default warnings behavior.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

The workaround works in React 15 and should still work in React 16, as the flat bundles does var warning = require('fbjs/lib/warning') which means we can still hook into it for now.

This probably breaks when the flat bundles stopped doing var warning = require('fbjs/lib/warning').

Issue 2:
I'd like to configure my testsuite to fail if there are any react warnings triggered.

I'm currently using a variant on this SO answer http://stackoverflow.com/questions/29651950/karma-and-react-have-warnings-to-cause-errors

console.warn = (function(warn) {
return function(msg) {

// Detect react warnings & error
if (/^Warning: /.test(msg)) {
throw new Error("React " + msg);
}

return warn.apply(this, arguments);
};
})(console.warn);

This basically works, but has a problem because there's some global-state memoisation in the code which triggers warning to try not to trigger too often:

react/src/isomorphic/classic/element/ReactElementValidator.js

Line 46
in
500d4c3

var ownerHasKeyUseWarning = {};

Could we provide a way to clear this state, or even better a supported API for opt-in erroring on warnings?
Issue 1:
Hello,

Recently I have been struggling with weird and unexpected behavior of numpy, and would like to have some help.

Here is my code:

import numpy as np
vec = np.random.uniform(-0.5, 0.5, size=(100)).astype(np.float32)
print(np.linalg.norm(vec))

This code returns very differently every run including

0.0

nan along with RuntimeWarning: invalid value encountered in sqrt

Very large value, i.e. 6074001000.0

Good value, i.e. 1.4142135

Further I confirmed that it works fine if I don't have .astype, but I need vec to be float32 for following process.

My environment is

OS: macOS High Sierra
numpy version: 1.14.0
python version: anaconda3-5.1.0 (install with pyenv)

Thank you

Issue 2:
I am getting a different and incorrect value for the first element comparison when using the "assume_unique" option in numpy.in1d when comparing two 1D arrays.

mask = np.in1d(sum_array1, sum_array2)

mask

array([False, False, False, ..., True, False, False], dtype=bool)

mask = np.in1d(sum_array1, sum_array2, assume_unique=True)

mask

array([ True, False, False, ..., True, False, False], dtype=bool)

NOTE: The first value in mask is incorrect when I used the "assume_unique" option. As far as I can tell the other values are ok.

sum_array1.shape

(10000,)

sum_array2.shape

(200000,)

sum_array1

array([ 166.25097656, -131. , -72.66274261, ..., -153.37646484,

-154.26272583, -248.20391846], dtype=float32)

sum_array2

array([ -67.80783844, -155.38824463, -6.23921967, ..., -290.447052 ,

179.6862793 , 205.69413757], dtype=float32)

np.version.version

'1.10.1'

print(sys.version)

2.7.6 (default, Jun 22 2015, 17:58:13)

[GCC 4.8.2]

lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 14.04.2 LTS

Release: 14.04

Codename: trusty
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3

Operating System version: mac

Java version: 1.8

Steps to reproduce this issue

服务提供者项目为A【里面接一个接口】，2个项目消费A，分别为 项目B 和项目C。

服务注册到nacos 将项目名没有放在服务名上，而是放在了元数据中。导致3个项目启动 只有2个服务。分别一个提供者、一个消费者【应该是2个消费者】。

2个消费者调用没有影响。列表bug

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

Issue 2:
Environment

Dubbo version: 2.7.3

Nacos version: 1.1.3

Java version: 1.8

Steps to reproduce this issue

注册一个provider，nacos控制台里面有1个provider

再注册一个consumer，nacos控制台里面有1个consumer

再注册一个consumer，nacos控制台里面还是1个consumer，但是这个consumer已经被更新了，里面的应用名变了。
Issue 1:
I'm not sure if this is a bug or not but the behavior doesn't make sense. I'm using a model driven form on my page and one of the controls has two synchronous validators (required and minlength) and a custom asyncValidator. When the page initially loads the form control is empty so it should be failing the required and minlength validations. The custom validator will return valid when the field is empty. However, the state of the control is being set Valid on form initialization. Previously my custom async validator had been a synchronous validator and it worked as expected, i.e. the custom validator is initially valid but the form control is still invalid due to the other validations being invalid.

The following plnkr illustrates the behavior:

http://plnkr.co/edit/VJlg1Q1EXs9mQ8Bx2YTQ?p=preview

Also, note that the after form initialization the async validator only runs after satisfying the minlength requirement (in this case upon typing the 6th character) while the sync validator runs on every key press and the sync validator is run twice on form initialization while the async validator only runs once. Another thing is that the form control with the async validator will report invalid if you type some characters then delete them all making the field empty.

Issue 2:
I'm submitting a ...

[X] bug report

Current behavior

If I have a sync and a async validation on a formControl the async validation overwrites the sync validation when it comes back even if the value has changed. So if I put in something in a field that passes the sync validation the async validation triggers. However when I then change the value of the field before the last async validation have come back to something that doesn't pass the sync validation the last value async validation becomes the winning one.

Expected behavior

Probably that the async validation should be ignored if the value has changed since the request?

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/MrY2Gq03dNjp8hvET3cn?p=preview

Fill in whatever@whatever.com in the input field.

Within 5 seconds, change the value of the field to asdf.

Wait a second or two and now the Control is valid, but asdf is not valid according to the sync validation.

Angular version: 2.1.12

Browser:: Tested in latest Chrome and Safari

Language:: Typescript
Issue 1:
[ 82%] Built target opencv_python2

[ 82%] Generating pyopencv_generated_include.h, pyopencv_generated_funcs.h, pyopencv_generated_types.h, pyopencv_generated_type_reg.h, pyopencv_generated_ns_reg.h

Note: Class l has more than 1 base class (not supported by Python C extensions)

Bases: cv::a, cv::s, cv::s, cv::A, cv::l, cv::g, cv::o, cv::r, cv::i, cv::t, cv::h, cv::m

Only the first base class will be used

Generator error: constant l_MAGIC_VAL (cname=cv::l::MAGIC_VAL) already exists

make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:269: modules/python3/pyopencv_generated_include.h] Error 255

make[1]: *** [CMakeFiles/Makefile2:13602: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2

make: *** [Makefile:163: all] Error 2

I used python 3.7

cmake -D CMAKE_BUILD_TYPE=RELEASE

-D CMAKE_INSTALL_PREFIX=/usr/local

-D INSTALL_PYTHON_EXAMPLES=ON

-D INSTALL_C_EXAMPLES=OFF

-D ENABLE_PRECOMPILED_HEADERS=OFF

-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.1.0/modules

-D BUILD_EXAMPLES=ON ..

and followed these steps https://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/

please help!!!!!

Issue 2:
System information (version)

Detailed description

[ 98%] Built target pch_Generate_opencv_videostab

[ 98%] Built target opencv_videostab

[ 98%] Built target opencv_python2

[ 98%] Generating pyopencv_generated_include.h, pyopencv_generated_funcs.h, pyopencv_generated_types.h, pyopencv_generated_type_reg.h, pyopencv_generated_ns_reg.h

Note: Class l has more than 1 base class (not supported by Python C extensions)

Bases: cv::a, cv::s, cv::s, cv::A, cv::l, cv::g, cv::o, cv::r, cv::i, cv::t, cv::h, cv::m

Only the first base class will be used

Generator error: constant l_MAGIC_VAL (cname=cv::l::MAGIC_VAL) already exists

modules/python3/CMakeFiles/opencv_python3.dir/build.make:158: recipe for target 'modules/python3/pyopencv_generated_include.h' failed

make[2]: *** [modules/python3/pyopencv_generated_include.h] Error 255

CMakeFiles/Makefile2:11977: recipe for target 'modules/python3/CMakeFiles/opencv_python3.dir/all' failed

make[1]: *** [modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2

Makefile:162: recipe for target 'all' failed

make: *** [all] Error 2
Issue 1:
Challenge Return a Value from a Function with Return has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

// Example
function minusSeven(num) {
return num - 7;
}

// Only change code below this line
function timesFive(num) {
return num * 5;
}

The code above passes the test, but the console output shows the function in lower case only: timesfive(5) === 25 instead of timesFive(5) === 25 like it should.

Issue 2:
Challenge Return a Value from a Function with Return has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

function timesFive(num){

return num * 5;

}

var answer = timesFive(5);

// Example

function minusSeven(num) {

return num - 7;

}

var answer = minusSeven(7);

// Only change code below this line

**The console deck won't change no matter what you type in. Always showing "timesFive(5)===25".**

People who have this kind of problem could go to this link and test:
https://jsbin.com/daxoyifabe/edit?html,css,output
Issue 1:
When you create an index it would be good to be able to specify a date that it could be auto-deleted on. Either a fixed, hard coded date or a parameter in how many days before deleting. We are using ELK for monitoring of a lot of production actiivity and the indices can get very big. Auto-deletion is a very attractive possible feature.

Issue 2:
Allow setting ttl to index, so the whole index gets deleted when expired