WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Attempting to ts.transpile this async generator

async function*(f) { yield f; }

throws

TypeError: Cannot read property 'members' of undefined
at resolveDeclaredMembers (D:\repos\TypeScript\built\local\typescript.js:15456:65)
at resolveTypeReferenceMembers (D:\repos\TypeScript\built\local\typescript.js:15486:26)
at resolveStructuredTypeMembers (D:\repos\TypeScript\built\local\typescript.js:15705:21)
at getPropertiesOfObjectType (D:\repos\TypeScript\built\local\typescript.js:15713:24)
at propertiesRelatedTo (D:\repos\TypeScript\built\local\typescript.js:17272:34)
at objectTypeRelatedTo (D:\repos\TypeScript\built\local\typescript.js:17238:30)
at isRelatedTo (D:\repos\TypeScript\built\local\typescript.js:17062:34)
at checkTypeRelatedTo (D:\repos\TypeScript\built\local\typescript.js:16929:26)
at checkTypeAssignableTo (D:\repos\TypeScript\built\local\typescript.js:16902:20)
at isTypeAssignableTo (D:\repos\TypeScript\built\local\typescript.js:16896:20)

annotating the generator return value in any way causes the exception to not be thrown. This also only happens when the async generator is anonymous.

I know that async generators aren't technically valid JS, but attempting to transpile one probably shouldn't throw.

Issue 2:
when compiling this code for ES5 (not ES6)

async function f() {
return { };
}

instead of giving the "only available in ES6" warning, it throws this exception:

throw e;
^
TypeError: Cannot read property 'members' of undefined
at resolveDeclaredMembers (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:15429:65)
at resolveTypeReferenceMembers (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:15459:26)
at resolveStructuredTypeMembers (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:15665:21)
at getPropertiesOfObjectType (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:15673:24)
at propertiesRelatedTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:17141:34)
at objectTypeRelatedTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:17107:30)
at isRelatedTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:16935:34)
at checkTypeRelatedTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:16824:26)
at checkTypeAssignableTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:16797:20)
at isTypeAssignableTo (C:\Users\Nino\AppData\Roaming\npm\node_modules\typescript\bin\tsc.js:16791:20)

using tsc 1.5.3
Issue 1:
https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/cluster/routing/allocation/decider/ShardsLimitAllocationDecider.java

method canAllocate() and canRemain() have so many duplicate code. better refacory it.

Issue 2:
Follow up for https://github.com/elastic/elasticsearch-analysis-kuromoji/issues/61

We don't shade anymore elasticsearch dependencies, so plugins might include jars in the distribution ZIP file which might not be needed anymore.

For example, elasticsearch-cloud-aws comes with:

Archive: cloud-aws/target/releases/elasticsearch-cloud-aws-2.0.0-SNAPSHOT.zip
Length Date Time Name
-------- ---- ---- ----
1920788 05-18-15 09:42 aws-java-sdk-ec2-1.9.34.jar
503963 05-18-15 09:42 aws-java-sdk-core-1.9.34.jar
232771 01-19-15 09:24 commons-codec-1.6.jar
915096 01-19-15 09:24 jackson-databind-2.3.2.jar
252288 05-18-15 09:42 aws-java-sdk-kms-1.9.34.jar
62050 01-19-15 09:24 commons-logging-1.1.3.jar
282269 10-31-14 13:19 httpcore-4.3.2.jar
35058 01-19-15 09:24 jackson-annotations-2.3.0.jar
229998 05-29-15 12:28 jackson-core-2.5.3.jar
589289 01-19-15 09:24 joda-time-2.7.jar
562858 05-18-15 09:42 aws-java-sdk-s3-1.9.34.jar
590533 10-31-14 13:19 httpclient-4.3.5.jar
44854 06-12-15 19:22 elasticsearch-cloud-aws-2.0.0-SNAPSHOT.jar
-------- -------
6221815 13 files

A lot of those files are already distributed with elasticsearch itself so classes are available within the classloader.

That's leading me to another question. We might now hit incompatibility issues. Let say we upgrade jackson to 3.0.0 in elasticsearch but aws sdk requires 2.x version. We might have a clash. @s1monw @rmuir WDYT?

That might not happen though.
Issue 1:
QR update, QR insert, and QR delete

It would be nice to be able to update a QR factorization. The library that octave uses is here:

https://sourceforge.net/projects/qrupdate/

for reference. This will allow stuff like quickly updating a LM or GLM model when adding more observations.

Issue 2:
Matlab has cholupdate for rank 1 updates and downdates to Cholesky factorizations. It would be nice to have something similar, but perhaps with better syntax.

LINPACK had these, but LAPACK left out the Cholesky update/downdate capabilities.

http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=2&t=2646

For the dense case, perhaps these should be implemented in julia. For the sparse case, I believe that CHOLMOD does provide these capabilities.

Updated by @andreasnoack:

Dense Cholesky

Sparse Cholesky

Dense QR (actually there are three different storage schemes)
Issue 1:
The es6.forOf transformer is enabled by default, yet code containing for (x of y) ... will not function unless the "polyfill" runtime library is enabled. This is due to the fact that for-of code generates use of Symbol, which is not provided by babel helpers, thus is undefined. The documentation does not mention this fact (http://babeljs.io/docs/learn-es6/#iterators-for-of) (no "Support via polyfill" note.)

Suggestion: Make forOf optional and add "Support via polyfill" note to documentation, or introduce "Symbol" inline helper to remove dependency on "polyfill."

Note: es6-transpiler does support for-of via inline helpers.

Example:

for (x of y) {}

Generated: (note use of Symbol.iterator)

"use strict";

var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

try {
for (var _iterator = y[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
x = _step.value;
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator["return"]) {
_iterator["return"]();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}

Babel v 4.7.8

Tested with Nodejs v0.10.36

Issue 2:
It seems that

let a = [1, 2, 3, 4, 5];
for (let i of a) {
console.log(i);
}

produces

"use strict";

var a = [1, 2, 3, 4, 5];
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

try {
for (var _iterator = a[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var i = _step.value;

console.log(i);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator["return"]) {
_iterator["return"]();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}

It states in the documentation that for..of loops do not require the polyfill, however in this case it appears they either do, or are transpiling to ES6 code, given the var _iterator = a[Symbol.iterator]() in the produced for loop.

Is the polyfill actually required for this? If so, the documentation should be updated. If not, then something is wrong.
Issue 1:
The expected behavior (like other browser behave) is

Reloading does not creates history items

redirects does not creates history items

In atom shell:

<webview id="foo" src="http://www.github.com/" style="width:640px; height:480px"></webview>
<script>
var webview = document.getElementById("foo");
// wait for page being loaded
webview.canGoBack(); // returns false
webview.reload();
// wait for page being loaded
webview.canGoBack(); // returns true but should returns false
</script>

Issue 2:
When atom-shell is initially loaded window.history.back() works correctly doing nothing. After a refresh, problems arise calling window.history.back(). It appears that history for a BrowserWindow is not persisted across a refresh as is the case in the Chrome browser and other issues come into play.

So steps to repro are, refresh and window.history.back(), if the browser is navigated anywhere several calls to window.history.back() will cause the same behavior after a refresh.

I am using the v0.21.1 release version of atom-shell.
Issue 1:
Now that universal Webpack (#3578) is released, there's a great opportunity to streamline custom servers using Next. Having the ability to write in a consistent syntax (whether ES6+ or TypeScript) between client and server code would greatly benefit the developer experience. I find it sort of awkward that a custom server entry point has to remain compatible with whatever your current version of Node is. I created a work-around as a Next plugin, but I find it hacky and awkward. I can't imagine it would be too much work to build a server bundle separately from the client bundle. What can I do to help this along?

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

Expected Behavior

When I run next dev or next start, my custom server is bundled via Webpack and served, enabling consistent syntax across the client and custom server code.

Current Behavior

A custom server is started using node ./path/to/server.js, so Webpack never touches it.

Context

I usually write in TypeScript, so bundling Next custom server code through Webpack would enforce consistent syntax in my code base and eliminate my dependency on ESLint or Babel.

Your Environment

Tech
Version

next
^5.0.0

node
8.7.0

OS
macOS 10.13.3

browser
Firefox 58.0.2

etc
N/A

Issue 2:
Examples bug report

Example name

with-next-css

Describe the bug

Impossible to go from one page which doesn't contain an imported css file to a one containing an imported css file

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository: https://github.com/MarchWorks/with-next-css-issue

Go to 'index page'

Click on 'About'

See error

System information

Version of Next.js: 8.1.0
Issue 1:
Environment

Windows build number: 10.0.18363
PowerToys version: 0.18.0
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Steps to reproduce

Open PT Run

Type an application name

Expected behavior

Only correct and working result were shown.

Actual behavior

A not working result of the type "search:" will be shown.

Screenshots

Issue 2:
Hi all

For some reason Launcher duplicates items on the list. It shows the application in the search list but also it duplicates that same application by showing .lnk file from the menu start folder for the same app. Please see the screenshot below:

Do you think it is a bug. Perhaps we could exlude .lnk file in future updates as an option?
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

ansible-vault

ANSIBLE VERSION

$ ansible --version
ansible 2.3.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Feb 11 2017, 12:22:40) [GCC 6.3.1 20170109]

CONFIGURATION

None

OS / ENVIRONMENT

N/A

SUMMARY

Ansible vault no longer writes to stdout correctly.

STEPS TO REPRODUCE

$ echo secret | ansible-vault encrypt --vault-password-file=~/.vault_password_file --output=-

EXPECTED RESULTS

$ANSIBLE_VAULT;1.1;AES256
37633461343236623465393564643231623135316432653433333663653262336633356261393433
6135343866303138623931303030343635616331393664650a663233383839356430623338376332
61666238356539323562373538376133626265363234343264633565666332646331366130363766
6533353966343463340a623562366464383334663066376461366536633764393761643635656261
3736
Encryption successful

ACTUAL RESULTS

ERROR! [Errno 2] No such file or directory: '/home/notroot/-'

Issue 2:
I have this in my task file:

- name: Check if we already have an openvpn key file
stat: "path='/etc/openvpn/{{ vpn_domain }}.conf'"
register: openvpn_config

- include: "openvpn-genkey.yml"
when: openvpn_config.stat.exists == False

However, I see this output:

time ansible-playbook --forks=20 timeboxes.yml --limit guardhome1 --tag timeagent

PLAY ***************************************************************************

TASK [setup] *******************************************************************
ok: [guardhome1 -> localhost]

TASK [common : include] ********************************************************
included: user.yml for guardhome1

TASK [common : include] ********************************************************
included: apt.yml for guardhome1

... MORE OUTPUT HERE ...

TASK [timebox : include] *******************************************************
fatal: [guardhome1]: FAILED! => {"failed": true, "msg": "ERROR! The conditional check 'openvpn_config.stat.exists == False' failed. The error was: ERROR! error while evaluating conditional: openvpn_config.stat.exists == False ({% if openvpn_config.stat.exists == False %} True {% else %} False {% endif %})"}

PLAY RECAP *********************************************************************
guardhome1 : ok=19 changed=0 unreachable=0 failed=1

I'm using latest Ansible from git.
Issue 1:
Proposed new feature or change:

Currently we can use median() and nanmedian() to calculate the median of an array along an axis, and we can compute other basic statistical metrics similarly. However, there are no methods to calculate the modes of an array directly.

I would suggest adding the method mode(), which returns an array of modes, and nanmode(), which does the same but ignoring NaNs. They would work in the same fashion as median() and nanmedian(), and I reckon that they would be useful even to applications that are not related to statistics.

I would appreciate any suggestions or constructive criticism

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/681 on 2008-03-10 by trac user eilifmuller, assigned to unknown.

numpy.random performance is weak compared to matlab.

The AMD Core Math Library (ACML) provides fast random number generator functions for use with AMD64 architectures, and it would be nice to somehow incorporate these into numpy.random.

Attached is a simple implementation of some of the basic functions of numpy.random using ACML. The performance is superior to matlab rand,randn.
Issue 1:
Challenge Style Text Inputs as Form Controls has an issue.

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

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

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
h2 {
font-family: Lobster, Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

</style>

<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>
</div>
</div>
<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Crazy</label>
</div>
</div>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
Julia 0.5 will ship with a versioned libjulia.so.0.5 that is installed system-wide for embedding by other programs. The standard library however is still installed to an unversioned path, which is inconsistent and creates a conflict when different versions of libjulia.so.$(SOMAJOR) are installed on a system, since these will depend on different versions of the standard library.

Therefore base and test should be installed to a versioned path $(prefix)/share/julia/$(SOMAJOR).

Likewise, juliarc.jl should be installed to $(prefix)/etc/julia/$(SOMAJOR).

This also affects the private libdir, $(prefix)/lib/$(MULTIARCH)/julia/$(SOMAJOR).

Issue 2:
Most people seemed to agree with the basic improvements I suggested on the mailing list in order for Julia to play nicely with the Unix FHS as well as with external (non-Pkg) packagers like Linux distributions. See also #1692.

The main changes that are needed are:

Put standard places in the LOAD_PATH for non-Pkg code. Done in issue #2550

On Unix, there should be places for code installation under both /usr/share and /usr/local/share according to the FHS (the former for system packagers, i.e. distros, and the latter for local installations from source etc.) Done in issue #2550

The Julia version (major.minor only) should be a part of the path so that different Julia versions can co-exist. That is, install everything under /usr/share/julia/0.1, not under /usr/share/julia directly.

These kinds of path choices need to be made ASAP, in my opinion; the longer you wait, the more disruptive it gets to make this kind of change.

The first two points require only a trivial patch (#2296): modify base/client.jl to define LOAD_PATH as:

global const LOAD_PATH = ByteString[
".", # TODO: should we really look here?
abspath(Pkg.dir()),
abspath(JULIA_HOME,"..","share","julia","extras"),
abspath(JULIA_HOME,"..","local","share","julia","lib"),
abspath(JULIA_HOME,"..","share","julia","lib"),
]

Change (update: changed from nonpkg) lib to whatever directory name you prefer. (external, site, ...?)

The third point requires a bit more invasive patch to the Makefile etcetera in order to update the installation paths. (You might also consider installing julia as juliamajor.minor, e.g. julia0.1, with julia being a symlink, similar to Python.) I looked through the src/ directory, but I couldn't find where jl_load("boot.jl") looks to find boot.jl, but that would need to be changed too.

(Possibly the /usr/local/share path should be @unix_only, but it seems harmless to include it on Windows too.)
Issue 1:
Environment

Windows build number: Microsoft Windows [版本 10.0.18362.418]
Windows Terminal version (if applicable): 0.5.2762.0

Any other software?

Steps to reproduce

Unclear, but I unlocked the screen and switched to terminal from another application to find this happening.

Update:

When I resize the window from maximized to normal the body is shown.

Expected behavior

A full window is shown.

Actual behavior

Only the tab bar is shown and the main body is transparent.

When focused:

Application switcher view:

Issue 2:
Environment

I don't have sure. My cmd is not opening.

Windows build number: [run [Environment]::OSVersion for powershell, or ver for cmd]

Windows Terminal version (if applicable):

Any other software?

# Steps to reproduce

<!-- A description of how to trigger this bug. -->

# Expected behavior

<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->
I've tried to activate the bash into Windows. I followed some instructions to activate the Windows feature "Windows Subsystem for Linux" (https://www.laptopmag.com/articles/use-bash-shell-windows-10). After that, when I tried to run bash, my terminal window quickly opened and just after closed, without ask me nothing.

# Actual behavior

<!-- What's actually happening? -->
My bash installation was not conclude, and now neither my terminal is working. When I try to open CMD, my terminal is completely on back screen..

![image](https://user-images.githubusercontent.com/52045440/67972503-952bb000-fbed-11e9-9205-2a901abcac31.png)
Issue 1:
With the beta releases 3rd party modules either needs always to be updated otherwise developer will end up with obscure errors when instanceof doesn't work. For example, the angular2-jwt had this problem when it's dependency was beta.0 and devs would use beta.1 so two versions of angular2 would bundle together when using browserify or webpack. Developers will also have this problem if they revert to beta.0 for the minification problems and these 3rd party modules didn't specify compatibility correctly in package.json

proposal

Provide a way to determine the angular2 version

Warn developers if there are two versions bundled (only during the beta releases and in development)

Issue 2:
Trying to implement a custom Exceptionhandler fails. The docs suggest:

import { ExceptionHandler } from 'angular2/core';

class MyExceptionHandler implements ExceptionHandler {
call(error, stackTrace = null, reason = null) {
// do something with the exception
}
}

https://angular.io/docs/ts/latest/api/core/ExceptionHandler-class.html

But this fails with:

error TS2420: Class 'MyExceptionHandler' incorrectly implements interface 'ExceptionHandler'.

Property '_logger' is missing in type 'MyExceptionHandler'.

Trying to add a _logger causes:

error TS2420: Class 'MyExceptionHandler' incorrectly implements interface 'ExceptionHandler'.

Types have separate declarations of a private property '_logger'.

Trying to extend ExceptionHandler instead gives various other errors about _logger being duplicated.
Issue 1:
I can import seaborn in termimal.

But it can't in ipython terminal or jupyter

Issue 2:
seaborn.lineplot makes it easy to plot either a confidence intervals around the estimator, or the standard deviation of the data. It would be nice to directly support plotting quantiles of the data distribution instead, rather than only the standard deviation.

Maybe it would make sense to have a separate key-word argument for controlling whether ci refers to the estimator or data distribution? e.g., ci_source='estimator' vs ci_source='data'? Then ci would only indicate how large of a confidence interval to plot, not the source.