WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
It's been brought up on the mailing list (citation needed) that some people want to run Go with heaps beyond the default limit (128 GB today).

Perhaps we should revise the limit at each Go release according to some metric. One possible metric would be to make sure that Go can address all the memory available on the largest VM you can rent from Amazon or from Google.

Issue 2:
In Go 1.4, the compiler still has a hardcoded 128GB memory limit. While this is much better than the 16GB limit from 1.0, it's presenting a real limitation to using Go for big-data scientific work, such as my research, such as https://github.com/ndaniels/cablastp2. While it's trivial for me to change the allocation limit in go's source and rebuild my own compiler, this presents a problem for other users using my work; if they find out that they need to patch the Go compiler just to build my source code, they're not going to like it. It's already enough of a barrier for some users to require they have the Go compiler. While I could provide statically compiled binaries for a variety of platforms, I can't target every OS and kernel version, and it becomes a nuisance to update those binaries whenever I update my source code.

I understand Go's memory allocation philosophy, and I realize that (for the time being) it needs to be hardcoded in a Go binary. But, it would be a huge improvement if a compiler flag could be used to alter the allocation limit for a particular package being compiled. Even better would be a runtime flag (much like Java's Xmx flag for the heap).
Issue 1:
TypeScript Version:

1.8.10

Code

declare function overload(param: number);
declare function overload(param: string);

let bar: number | string;
overload(bar); // Argument of type 'number' | 'string' is not assignable to parameter of type 'string'

Expected behavior:

Since the function 'overload' either accepts a 'number' or a 'string', the compiler should not complain.

Actual behavior:

The compiler complains with: "Argument of type 'number' | 'string' is not assignable to parameter of type 'string'".

Workaround:

Of course I could always rewrite the declaration of 'overload' as:

declare function overload(param: number | string);

But usually these declarations are from external *.d.ts files which I do not want to touch if I don't have to.

Issue 2:
I was just working with Big.js and tried to pass a union type into its constructor function. It seems that union types don't play nice with old-style overloaded constructors. Please consider the code below that errors with TypeScript 1.4. I would have expected this to work.

interface BigJS_Constructors {
new (value: number): BigJS;
new (value: string): BigJS;
new (value: BigJS): BigJS;
}

interface BigJS extends BigJS_Constructors {
abs(): BigJS;
/* more... */
}

var Big : BigJS;

class MyThing {
public value : BigJS;
constructor(value: number | string | BigJS) {
this.value = new Big(value); //This is an error in 1.4.
}
}

If I change the new signature under BigJS_Constructors to new (value: number | string | BigJS) : BigJS;, and eliminate the other two options, it works fine, but to me the two styles should be identical in this case.

My apologies if I'm doing something stupid here. Thanks!
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

In the description, /the+/gi is used to search for all "the" and "The" in a string. While stated differently, I would consider the + being part of the pattern. As I understand it, the + will only affect the character or group directly in front of it (as do *, ? and {}), so in the example e (will also match a "theeee"), which is probably not what the author wanted. Even worse, the assertions want me to write /and+/gi, where /and/gi would be sufficient and less misleading.

These extra plusses won't change anything if you just count matches, as these words cannot overlap (example if they did: "abaaba".match(/aba+/gi) will return only one match, "abaaba".match(/aba/gi) will return two), but might change results if you evaluate the whole matches for example for total length.

I also do not quite agree with the description of the "g" flag, though I would not call that false, just imprecise. I would describe it as "After finding a pattern match, continue search after that match, so that the found patterns cannot overlap" or similar, to make clear that without the "g" flag, only the first match is returned.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions has an issue.

The challenge is to search a string of text for occurrences of the word 'and'.

But currently the challenge requires the RegEx /and+/gi which is incorrect due to allowing 1 or more 'd's. This pattern would match and, anddddd, anddddddddd, etc.

The challenge currently rejects the correct RegEx /and/gi.
Issue 1:
Shortcut chords like ctrl+k ctrl+l resolve as ctrl+k (partial), ctrl-l, editor:select-line. I'm running v0.126.0-571ce5b built from source on Ubuntu 14.04.1 x64.

Issue 2:
I have this on Ubuntu 14.04.

When I use the following default keybindings '.workspace .editor': 'ctrl-k ctrl-u': 'editor:upper-case' and '.workspace .editor': 'ctrl-k ctrl-l': 'editor:lower-case', the second ctrl gets registered as a first key press. I have this with all bindings that have multiple ctrl's.

This is a recording of Keybinding resolver with atom --safe taken from ebbea64.

This is a recording of Keybinding resolver with atom --safe taken from b3c2417. (v0.120.0)

Here the keybindings work correct.
Issue 1:
A number of users have asked how they can load type information from the export data section of a .a file produced by the Go compiler. Although you can use the standard go/importer package to find (relative to $GOPATH) and load a .a file, it provides no way to load a file that lives elsewhere. In contrast, the old API separated the operations of FindPkg and Import.

The new package should provide these features too, as users are currently forced to fork either the deprecated x/tools package or the standard go/internal/gcimporter package.

Issue 2:
Missing functionality. Required for clients that store packages outside the implied file system structure.
Issue 1:
Context:

Playwright Version: 0.15.0

Operating System: windows 10

Extra:

nodejs 14.0.0

npm 6.14.4

yarn 1.22.4

Describe the bug

install by npm/yarn both all failed, also try run node install.js for download but still lost files

file is missing

Error: Failed to launch browser: Error: spawn node_modules\playwright.local-browsers\chromium\chrome-win\chrome.exe ENOENT

Issue 2:
Context:

Playwright Version: 0.15.0

Operating System: Windows

Describe the bug

I just upgraded to the new Node 14 and with both npm and yarn the .local-browsers folder ends up empty on install. I was on Node 13 before and was fine. I just switched back to Node 12 and it works fine again.
Issue 1:
Bug Report

Current Behavior

When a class (B) extends another class (A) and includes a type definition to narrow the type of something specified in class A, it will set the narrowed property's value to undefined. This diverges from the TSC behavior.

The output from the below code under babel is a, undefined.

Input Code

class A {
value: any
constructor(value: any) {
this.value = value
}
}

class B extends A {
value: string
}

document.write(`${new A('a').value}, ${new B('b').value}`)

Expected behavior/code

The output from the code should be a, b.

Babel Configuration (.babelrc, package.json, cli command)

.babelrc:

{
"presets": [
"@babel/env",
"@babel/typescript"
],
"plugins": [
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread"
]
}

Environment

Babel version(s): 7.1.6

Node/npm version: Node 10 / NPM 6

OS: Any OS

Monorepo: doesn't matter

How you are using Babel: loader

Possible Solution

It seems like babel is setting value = undefined in the class property - it needs to check if that value is defined in the parent before overwriting it.

Issue 2:
TypeScript Version: 2.1.1

Code

class PartialPolicySearchIten {
public displayValue: string;
public oriNumber: string;
public parentName: string;
public sysNumber: string;
public systemCode: number;
public systemName: string;
}

Expected behavior:

class PartialPolicySearchIten {
constructor() {
this.displayValue = undefined;
this.oriNumber = undefined;
this.parentName = undefined;
this.sysNumber = undefined;
this.systemCode = undefined;
this. systemName = undefined;
}
}

Actual behavior:

class PartialPolicySearchIten { }

The problem comes when using Reflection it can't find the properties. I would expected that the properties exists as i'm redefining them. Otherwise their very little point is declaring properties of a class.
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1658 on 2010-11-02 by @FrancescAlted, assigned to unknown.

This reproduces the problem:

>>> pickle.loads(pickle.dumps(np.array(u'a'))) # 1-length works well

array(u'a',
dtype='<U1')

>>> pickle.loads(pickle.dumps(np.array(u''))) # 0-length does not work
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)

/tmp/tables-2.2/<ipython console> in <module>()

/usr/local/lib/python2.6/pickle.pyc in loads(str)
1372 def loads(str):
1373 file = StringIO(str)
-> 1374 return Unpickler(file).load()
1375
1376 # Doctest

/usr/local/lib/python2.6/pickle.pyc in load(self)
856 while 1:
857 key = read(1)
--> 858 dispatch[key](self)
859 except _Stop, stopinst:
860 return stopinst.value

/usr/local/lib/python2.6/pickle.pyc in load_reduce(self)
1131 args = stack.pop()
1132 func = stack[-1]
-> 1133 value = func(*args)
1134 stack[-1] = value
1135 dispatch[REDUCE] = load_reduce

TypeError: data type not understood

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1037 on 2009-03-04 by @FrancescAlted, assigned to @cournape.

This shows the problem:

In [18]: cp = cPickle.dumps(numpy.array([u'']), 0)

In [19]: cPickle.loads(cp)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)

/home/faltet/PyTables/pytables/PyTablesPro/trunk/<ipython console> in <module>()

TypeError: ('data type not understood', <type 'numpy.dtype'>, ('U0', 0, 1))

However, plain strings does work:

In [20]: cp = cPickle.dumps(numpy.array(['']), 0)

In [21]: cPickle.loads(cp)
Out[21]:
array([''],
dtype='|S1')
Issue 1:
Version

2.5.7

Reproduction link

https://jsfiddle.net/3s9sem0m/

Steps to reproduce

I am using laravel-admin.org and I have incorporated vuejs into that system. The problem is that there are some functionalities that use the tag template, to then duplicate it using jquery, and vuejs are rendering those tags (even if you add the v-pre directive) and breaking all that functionality.

What is expected?

The directive v-pre should prevent render the tag template

What is actually happening?

The tag template is rendered and disappears, preventing the later use of the js script and breaking all the functionality

Issue 2:
Version

2.6.10

Steps to reproduce

Suppose we have a component:

export default {
data(){
return { foo: null}
}
async serverPrefetch(){
this.foo = 'serverPrefetch'
},
created(){
this.foo = 'created'
},
}

foo is initially null, then created() updates it to created and this reflects in the html interpolitatiion, but when serverPrefetch() updates this.foo it is not reflected on the rendered html, despite being called afterwards.

What is expected?

serverPrefetch() should reflect rendered and updated data variables when rendered on SSR

What is actually happening?

serverPrefetch() doesn't update the rendered view with new data after being called
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

Only xlf file are supported

Expected behavior

Having a simple JSON file support

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

I generally don't use extract / merge capabilities for i18n and having to manually right xml in a JS world is painful ^^. I'm use to have my JSON file with key/translation and go for it :)

Something like ng2-translate would be awesome (talking about file definitions only because the way they do it is very resourceful).

Issue 2:
[x] bug report
[ ] feature request
[ ] support request

Current behavior

Many (all?) observable properties are actually Subjects. route.params is one such example.

Yes, these propertes are cast as Observable in TypeScript. But they are actually Subjects and that invites abuse. Because these are also Observers, a developer ... especially a JavaScript developer ... is invited to call next, error, complete. This is improper.

The implementation should call subject.asObservable(). That's why that method exists.

This only seem picayune until someone starts calling next "because I have a really good use cast for that."

Fixing the API as recommended would not be a breaking change; the intent is clear by the TypeScript cast and anyone who treats route.params as an Observer deserves what s/he gets.

Expected behavior

Every observable property based on a Subject should be based on Subject.asObservable(). This prevents attempts to call next, error, complete or any other Observer method.

Minimal reproduction of the problem with instructions

Load https://angular.io/resources/live-examples/router/ts/eplnkr.html

Add hero-detail.component.ts#ngOnInit ..

let x = this.route.params.asObservable();
debugger;

Run and click a hero.

Inspect x and this.route.params and note the real JavaScript types

> x
Observable {_isScalar: false, source: BehaviorSubject}
> this.route.params
BehaviorSubject {_isScalar: false, observers: Array[0], closed: false, isStopped: false, hasError: false…}

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web

all

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

TS
Issue 1:
Challenge [Target the Children of an Element Using jQuery]

Hi I can't seem to pass the challenge. Tried searching for other related posts on the bug issue but to no avail.

My code:

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");

});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

Issue 2:
Challenge Waypoint: Clone an Element Using jQuery has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36.

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

Issue

I believe I've found bug in the phone simulation in Waypoint: Clone an Element Using jQuery:

I entered the code to clone target5 and append it to left-well, and now I see three target5 buttons in the phone simulator. FCC says my code is correct and advances me to the next challenge. The following challenges also show three target5 buttons:

Waypoint: Target the Parent of an Element Using jQuery

Waypoint: Target the Children of an Element Using jQuery

@qualitymanifest confirms this issue on his Linux box.

My code:

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
Issue 1:
Current Behavior:

npm uninstall --save <package> doesn't remove the package version listed in package.json from package-lock.json when another version exists.

Expected Behavior:

For the package version listed in package.json to be removed from package-lock.json. Essentially running npm install --save <package> && npm uninstall --save <package> should leave package-lock.json unchanged.

Steps To Reproduce:

npm init --yes
npm i --save-dev rollpkg
# rollpkg has a dependency of jest ^26.6.3, which is now in the top level node_modules
npm i --save-dev jest@26.0.0
# jest is added to package.json and
# jest 26.0.0 is now in top level node_modules, 26.6.3 is moved to node_mod/rollpkg/node_mod
npm uninstall --save-dev jest
# jest is removed from package.json
# but node_modules is unchanged

Environment:

OS: MacOS 10.15.7

Node: 14.15.0

npm: 7.3.0

Thanks for all the great work on npm v7, I'm really enjoying using it!

Issue 2:
reporting error as suggested by error information .

Tried uploading log file but it won't let me.. Here's whats was in the log:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'i',
1 verbose cli '-g',
1 verbose cli 'powerbi-visuals-tools'
1 verbose cli ]
2 info using npm@6.14.7
3 info using node@v14.8.0
4 verbose npm-session fb296c27df366263
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 500 https://registry.npmjs.org/powerbi-visuals-tools 79252ms attempt #3
8 timing npm Completed in 80146ms
9 error cb() never called!
10 error This is an error with npm itself. Please report this error at:
11 error <https://npm.community>
Issue 1:
Current Scenario :

Currently powerrun just return a list of apps/links/docs/.. matched to the entered text.

Proposed :

Allow result to be shown in split panes (Like shown by Cerebro App)

One with matched text like currently shown and

Other with possibly preview or more detail link like windows search context menu over search.

I feel the result set would be solid productivity boost if this is merged with one earlier request mentioned under this thread

#4568 (comment)

Issue 2:
There are some functions in PowerRenameLib/Helpers.h that can be reused for other projects(ImageResizer), such as CreateBitmapFromIcon. These functions should be moved to the common project so that it can be referenced in the other projects. This would make the code cleaner, and avoid the requirement of duplicating the function definition in other projects.
Issue 1:
Pairplot breaks when adding hue argument

sns.pairplot(features_df, hue='size_box') # error

sns.pairplot(features_df) # no error

Why does adding hue throw an error? This seems a regression either in seaborn or a dependency as this was known good code that used to work. Re-running my notebook I see it breaks here.

Thanks! :)

scipy/linalg/basic.py in inv(a, overwrite_a, check_finite)
972 inv_a, info = getri(lu, piv, lwork=lwork, overwrite_lu=1)
973 if info > 0:
--> 974 raise LinAlgError("singular matrix")
975 if info < 0:
976 raise ValueError('illegal value in %d-th argument of internal '

LinAlgError: singular matrix

Issue 2:
https://seaborn.pydata.org/examples/scatter_bubbles.html

import seaborn as sns
sns.set_theme(style="white")

mpg = sns.load_dataset("mpg")

sns.relplot(x="horsepower", y="mpg", hue="origin", size="weight",
sizes=(40, 400), alpha=.5, palette="muted",
height=6, data=mpg)

In the version 0.10.0, I could assign size=1, in the sns.relplot(), there is no error.

In the version 0.10.1, I will gain an error "TypeError: object of type 'int' has no len()".

I must assign size be "size=[1] * len(mpg)".
Issue 1:
I'd love it if the power toys run search bar had transparency similar to the rest of windows for more visual consistency.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
Environment

Windows build number: 10.0.18362.836

PowerToys version: 0.8.1

PowerToy module for which you are reporting the bug (if applicable): run

Steps to reproduce

Install Evernote. Search for Evernote.

Expected behavior

Evernote app should be in the list.

Actual behavior

Searching for Evernote shows only the EvernoteClipper in the list.

Screenshots

Search bar/box shows the app in results:
Issue 1:
I would like sklearn to support Poisson, gamma and other Tweedie family loss functions. These loss distributions are widely used in industry for count and other long tailed data. Additionally, they are implemented in other libraries such as R: GLM, GLMNET, GBM ext. Part of implementing these distributions would be to include a way for offsets to be passed to the loss functions. This is a common way to handle exposure when using a log link function with these distributions.

Would the sklearn community be open to adding these loss functions. If so I or (hopefully others) would be willing to research the feasibility of implementing these loss functions and offsets into the sklearn API. Thanks

Issue 2:
Towards #17010.

Like the one we did for 0.22, to highlight the main changes/improvements.

@NicolasHug would you be maybe interested in/available for this one?
Issue 1:
Give an option to maximise a window to the zone it is currently in (see DisplayFusion's handling of their version of zones). So rather than holding shift and dragging a window to fill a zone, maximising the window via the title bar button or a double clicking on the title bar would fill the zone.

A hotkey to press to maximise as normal while disregarding zones would go well with this feature.

Issue 2:
Maximize window within the zone

Maximizing the window currently maximizing it to the whole desktop. It would be useful if it has the ability to maximize within the zone
Issue 1:
In this code a div is taking up space with no contents. I understand that if there are siblings with a label you want to align them. But often you have either no labels at all or everything has a label. Some logic could be introduced here to look at siblings.

Issue 2:
I've got a bootstrap-form issue I can’t figure out if it's a real issue or not.

I’m having a form type with a nested form type and are rendering it with {{ form_widget(form) }}. The nested type will get a wrapping form-group and an extra col-sm-2-class making the form look ugly.

An easy solution would be to render the type with {{ form_widget(form.foo) }} but I think there should be a way to render the whole form with just passing the form to form_widget.

Modifying the block form_row to only render the bootstrap markup and label if form.children is empty solves it but it's kinda dramatic and might not be the wanted solution. Please give me advice before I eventually open a pr for it.