WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Seen on rustc 0.12.0-pre-nightly (4d4eb1023 2014-08-02 23:36:09 +0000)

When compiling my irc message parsing library rustc uses as much CPU and memory as it can before crashing due to either an out of memory exception or an "illegal instruction" (stack overflow?).

The weird thing about this is that a single change didn't introduce the bug. As I worked on it, compile times got slower and slower until my machine could no longer even build the project.

Uninterestingly, I'm not using macros or any other rust features that might have explosive properties.

Issue 2:
Test Case

To reproduce, download the two files in this gist and attempt to build mkrust.rs:

https://gist.github.com/bkoropoff/537951c596ba24166f06

Analysis

The complex json.query(...) expression in mkrust.rs seems to be the culprit. Progressively simplifying the expression will eventually cause the bug to no longer reproduce.

Running rustc under massif yields the following (truncated for space) stack for the primary memory hog, which appears to be a hash map associated with region inference:

99.25% (522,819,638B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->68.00% (358,203,360B) 0x7E5562C: je_mallocx (in /home/bkoropoff/Software/rust/lib/librustrt-d8560cb2-0.11.0-pre.so)
| ->50.16% (264,241,152B) 0x57AF077: collections::hashmap::table::RawTable$LT$K$C$$x20V$GT$::new::h16071681466547729146::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so)
| | ->50.16% (264,241,152B) 0x57B1D51: collections::hashmap::HashMap$LT$K$C$$x20V$C$$x20H$GT$::resize::h9544924386944675449::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so)
| | | ->50.16% (264,241,152B) 0x57B81D1: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::add_constraint::he966b592d2e519c2Sxo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so)
| | | ->50.16% (264,241,152B) 0x57BA642: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::make_subregion::h5a25349bdfe40532sBo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so)
| | | | ->50.16% (264,241,152B) 0x57BC9F6: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::lub_regions::closure.93817 (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so)
| | | | | ->50.16% (264,241,152B) 0x57BC0D0: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::combine_vars::h5ec95b92851d887cDUo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so)
| | | | | | ->50.16% (264,241,152B) 0x57A23E6: middle::typeck::infer::region_inference::RegionVarBindings$LT$$x27a$GT$::lub_regions::hc2ef972d6db9d001eIo::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so)
| | | | | | ->50.16% (264,241,152B) 0x578A07A: middle::typeck::infer::lub::Lub$LT$$x27f$GT$.Combine::regions::h96b097927410ccd30sn::v0.11.0.pre (in /home/bkoropoff/Software/rust/lib/librustc-d252d482-0.11.0-pre.so)
Issue 1:
TypeScript Version:

1.8

Code

async function scanPorts() {
let result = await Promise.all(devices.map((device) => {
return getPortStatus(device)
}));
return result.indexOf("open");
^
}

Error

error TS2345: Argument of type 'string' is not assignable to parameter of type 'Promise<{}>'.

Issue 2:
TypeScript Version:

1.8.9

Code

Promise.all([Promise.resolve('')]); // has type Promise<Promise<string>[]>

Expected behavior:

The expression has type Promise<string[]> as in 1.8.7

Actual behavior:

The expression has type Promise<Promise<string>[]>
Issue 1:
Currenttf.data.datasetclass only support padded_batch method which would pad every component into same shape, but there are cases that some component may not be padable, e.g., in object detection input pipeline, the ground truth calsses and bounding boxes are different for different image, so they can not be padded to the same shape as images, so how to batch these data in this case?

Issue 2:
Current TF dataset class only support fixed size padding for batching different sized input elements, however there are cases like in object detection, we may need to batch images according to their aspect ratios, i.e., push images with similar aspect ratio into one batch and pad them with minimal extra paddings, is there any existing approach that does not use feed_dict approach but directly utilize TF operators and read TF record files for accomplish this ? Thanks!
Issue 1:
It could be cool that Image.network send an event when the image is ready to display.

Issue 2:
[00036.034] 02660.02697> EXCEPTION CAUGHT BY SERVICES
[00036.038] 02660.02697> The following SocketException was thrown resolving a single-frame image stream:
[00036.038] 02660.02697> Failed host lookup: 'static.pexels.com' (OS Error: Name does not resolve, errno = -2)
[00036.052] 02660.02697>
[00036.052] 02660.02697> When the exception was thrown, this was the stack:
[00036.061] 02660.02697> #0 IOClient.send (package:http/src/io_client.dart:30)
[00036.061] 02660.02697> <asynchronous suspension>
[00036.061] 02660.02697> #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:171)
[00036.061] 02660.02697> <asynchronous suspension>
[00036.061] 02660.02697> #2 BaseClient.get (package:http/src/base_client.dart:34)
[00036.061] 02660.02697> #3 NetworkImage._loadAsync (package:flutter/src/services/image_provider.dart:344)
[00036.061] 02660.02697> <asynchronous suspension>
[00036.061] 02660.02697> #4 NetworkImage.load (package:flutter/src/services/image_provider.dart:330)
[00036.061] 02660.02697> #5 ImageProvider.resolve.<anonymous closure>.<anonymous closure> (package:flutter/src/services/image_provider.dart:170)
[00036.061] 02660.02697> #6 ImageCache.putIfAbsent (package:flutter/src/services/image_cache.dart:82)
[00036.062] 02660.02697> #7 ImageProvider.resolve.<anonymous closure> (package:flutter/src/services/image_provider.dart:170)
[00036.062] 02660.02697> #8 SynchronousFuture.then (package:flutter/src/foundation/synchronous_future.dart:38)
[00036.062] 02660.02697> #9 ImageProvider.resolve (package:flutter/src/services/image_provider.dart:168)
[00036.062] 02660.02697> #10 _ImageState._resolveImage (package:flutter/src/widgets/image.dart:276)
[00036.062] 02660.02697> #11 _ImageState.didChangeDependencies (package:flutter/src/widgets/image.dart:257)
[00036.062] 02660.02697> #12 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3260)
Issue 1:
use .gitignore to know which files and folders not to search into (think node_modules or packages)

Issue 2:
VSCode Version: 1.0.0 (1.0.0)

OS Version: OSX 10.11.4 (15E65)

Steps to Reproduce:

Create a new project with git repository initialised.

Create a folder /foo/bar

Add a symlink from /foo/bar to /bar ln -s /foo/bar .

Go to Git tab on vscode, and stage /bar folder.

If now you click on staged /bar folder, you'll get an error Warn: Can't open this git resource.
Issue 1:
TypeScript Version:

1.8.9

Code

With the following function

function foo(a) {
return a + 'hello';
}

I'd expect that typeChecker.typeToString of foo's type should yield (a: string) => string.

Instead, it returns (a: any) => string.

Is this an issue of typeToString, or is the underlying Type object really marks a as any?

If it's the former, how can I walk the Type object to generate the right signature? A quick glance shows that a procedure type is "anonymous", and holds an opaque reference of target and mapper, which doesn't shed light on how to traverse the type objects. Is there a guide somewhere about the types?

I'm trying to generate the type signature for run time contract checking, so I need an accurate representation of the resolved type info.

Issue 2:
Consider,

function isString(obj: any): obj is string {
return typeof typeof obj === "string";
}

function foo(value: (string|number)): number {
if (isString(value)) {
return value.indexOf('foo')
} else
return value;
}

function bar(value: (string|number)): number {
if (isString(value)) {
return value.indexOf('foo')
}
return value;
}

Expected: Both foo and bar type-check correctly.

Received: bar reports that value is not assignable to number.

Flow analysis could be used here to determine value can only be number in all the code paths that arrive at the final return.
Issue 1:
This week Chrome announced their intent to ship WebGL 2.0 so I guess it's about time to start adding support!

There are already some PRs that add support to WebGLRenderer for some of the new features but, somehow, it didn't feel it was good idea to make WebGLRenderer support both webgl and webgl2.

Say hello to WebGL2Renderer! 2ff9d41 👋

A new renderer not only will save us from tons of conditionals but also will give us the chance of cleaning things up; starting with only supporting BufferGeometry ✌️

Sorry for all the people which PRs didn't got merged because of my indecision! 😔

Issue 2:
This is about the way you manage smoothing groups in OBJLoader (your remark about it) and more generally about BufferGeometry Groups rendering.

@todo Handle files that have varying smooth values for a set of faces inside one geometry but does not define a usemtl for each face set

IMO :

1- This case is a 'standart' case and g/s/usemtl should generate bufferGeometry groups (BTW can we add a name to a group ?)

2- Actually this parameter set the material.flatShading (true/false), but it does not do the job

In 3DSMax the smoothing group integer is a kind of faces group index which indicates that the faces are not 'merged' with neighbour faces with a different index.

An example here (look at the bottom teapot) :

I don't know how that could be reproduced ... but, if I come back to bufferGeometry Groups, I think that the result could be approached if the limit between group stays visible even if material.flatShading = false, ie by displaying the edges between non-coplanar faces of a different group.

For example this cube contains groups referencing the same material :

groups: […]
0: Object { start: 0, count: 6, materialIndex: 0 }
1: Object { start: 6, count: 6, materialIndex: 0 }
2: Object { start: 12, count: 6, materialIndex: 0 }
3: Object { start: 18, count: 6, materialIndex: 0 }
4: Object { start: 24, count: 6, materialIndex: 0 }
5: Object { start: 30, count: 6, materialIndex: 0 }

For me it reproduces the Cube with group names example of obj specs (middle of page) :

v 0.000000 2.000000 2.000000
...
# 8 vertices

g front cube
f 1 2 3 4
g back cube
f 8 7 6 5
g right cube
f 4 3 7 8
g top cube
f 5 1 4 8
g left cube
f 5 6 2 1
g bottom cube
f 2 6 7 3
# 6 elements

But I expected the render below (which is flatShading = true) ..

OR

The following obj should be rendered as flatShading = true material even if it's false ?

v 0.000000 2.000000 2.000000
...
# 8 vertices

s 1
f 1 2 3 4
s 2
f 8 7 6 5
s 3
f 4 3 7 8
s 4
f 5 1 4 8
s 5
f 5 6 2 1
s 6
f 2 6 7 3
# 6 elements

This way we could manage smoothed portions of the mesh and 'flat' limit between faces groups ?
Issue 1:
A min or max aggregation of a date field returns a floating point number, epoch milliseconds, despite it being internally stored as a long. Should it really return an long? In some rare cases, will floating point not return an entirely accurate answer?

Issue 2:
I store 64-Bit-Twitter-IDs in a long field in Elasticsearch documents:

"tweetId": {
"type": "long"
}

I want to use Max aggregation to get the maximum id. Unfortunately I only get Double values (f.ex. 5.6253962514387763E17) instead of my Long Id and I loose the last digits.

It would be perfect when I can also get the max value as Long instead of Double.

See also my Stackoverflow question about this issue.
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

I'm hitting the 'run code' button and it does nothing. I've tried refreshing the page and same response. I can't progress past this challenge because of this.If in fact I have a syntax error, there needs to be some pop up telling me so, otherwise I have no idea.

Issue 2:
Challenge Name

http://beta.freecodecamp.com/en/map

Issue Description

If you collapse or expand the "Responsive Web Design" sub-list from the map list, it expands or collapses the whole Responsive Web Design List. Because it is targeting the same id.

Screenshot
Issue 1:
OptionsResolve::resolve method produces Options::all call before validating option values. Options::all call then executes normalizers with options that have not been validated yet. This makes it impossible to constrain options that are passed to normalizers in form types, like ChoiceType, CollectionType, CountryType, LanguageType, LocaleType, TimezoneType, TimeType and CurrencyType.

This issue was discovered while fixing #11694 with PR #11696

Issue 2:
<?php
/** @Route */
class Controller
{
/** @Route */
method action()
}

The annotation class loader does a bad job at merging class level settings with method level settings.

IE if the methods are [get, post] at class level and [post] at method level, the resulting methods will be [post, post].

This could easily be fixed but how:

Should the class level params take precedence,

Should the method level params take precedence,

Should we do what other loader do for when merging collections - which has my pref.

If we pick the last choice, we might want to delegate the params merging to an exterbal service so that all loaders use the same services and code duplication stop causing troubles.

One last thing is where this should be merge ? This is obviously a bug fix but it also breaks BC and so I would recommend not to merge this to 2.0 and 2.1 but add this issue to a list of known issues for those realeses and fix from 2.2 onwards.
Issue 1:
I was viewing the testing docs and found that the create_app function imported for the fixture is not used. Also flaskr is not imported directly, only the create_app function is. I don't think this is how it should be or am I missing something?

Issue 2:
Hello everybody.

Please, forgive my poor english, and do not get me wrong, my question is not malicious.

Actually, are any plans to reach version 1.0? Or at least reach a new version?

1.0, or a more fluid release versions can be a way to attract more users and developers.

Greetings, and thanks for the work you do in Flask.
Issue 1:
Describe what you were doing when the bug occurred:

In React Profiler, under bar chart, clicked one of the components

Please do not remove the text below this line

DevTools version: 4.0.6-a39d9c3

Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16722)

at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293893)

at Al (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:294128)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55891)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62940)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99536)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84256)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81286)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25364

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)

Component stack: in Al

in div

in div

in Ir

in Unknown

in n

in Unknown

in div

in div

in Wa

in ce

in be

in So

in Vl

Issue 2:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

Please do not remove the text below this line

DevTools version: 4.0.4-3c6a219

Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:16721)

at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293207)

at pl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:293442)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)

Component stack: in pl

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ha

in le

in ve

in ko

in Ul
Issue 1:
Looking for a way to get a parsed deno info object in user.land. Is there a way to avoid implementing it?

Issue 2:
JavaScript in the browser does not check imports for environmental (ex: dom use in workers) errors. Deno, however, by default does. This creates problems for browser based code running in deno. We need a flag to skip this checking so that deno behaves like the browser.

Example: I have a large utilities file which includes both vanilla JS exports and dom exports. Many of the"apps" using this run in both workers and in the main thread even tho the utilities library uses the dom. This is possible because imports are not error-checked at load time, but naturally fail at run-time if a worker asks for a dom utility.

Load-time checking would require duplicating the apps, one for workers, another for main thread browser apps.

I believe run-time failure is the standard, thus making this worker/main-thread sharing possible.

So when I run an app in deno that uses no dom utility, I still get:

error: Uncaught ReferenceError: document is not defined
const can = document.createElement('canvas')

.. i.e. is a load-time error rather than a run-time error.

I believe this may be common for devs wishing to run their modern JS apps in places other than the browser such as node, deno, bun and others.

Thus the need for an option for run-time errors rather than load-time pre-checking.
Issue 1:
!TypeError: Path must be a string. Received null! when trying to debug in Node using VSC Insiders. Works fine in regular VSC.

Issue 2:
Using VSCode 0.10.10-insider on Windows 7

I can no longer debug my JavaScript in this build. It just throws this error

Falling back to the 0.10.8 release on the "stable" channel, I can debug this project again. I could also debug this project with the previous insiders build.

To reproduce:

Clone my repo https://github.com/jumpinjackie/jsdoc-typescript-plugin

npm install

npm run-script tsc

Open this clone dir in VSCode 0.10.10-insider

Start debugging with the provided launch.json

As an aside, it would be nice for such errors to present an option to show the stack trace as well, because I have no clue where to even look to determine the cause of this problem.
Issue 1:
import require = require('collisionExportsRequireAndAlias_file1'); // Error
//!!! Duplicate identifier 'require'. Compiler reserves name 'require' in top level scope of an external module.
import exports = require('collisionExportsRequireAndAlias_file11'); // Error
//!!! Duplicate identifier 'exports'. Compiler reserves name 'exports' in top level scope of an external module.

Expected: errors above

Actual: no errors

See related testcases for other examples of where this is an error linked in TC ID field:

collisionExportsRequireAndClass.errors.txt

collisionExportsRequireAndEnum.errors.txt

collisionExportsRequireAndFunction.errors.txt

collisionExportsRequireAndModule.errors.txt

collisionExportsRequireAndVar.errors.txt

collisionRestParameterArrowFunctions.errors.txt

Issue 2:
TypeScript Version:

1.8.x

Code

// A self-contained demonstration of the problem follows...
function createDefaultProperties(): { [name: string]: any } {

const startTime = Date.now();
let eventCounter = 0;

return {
get ['common.sequenceId']() { return eventCounter++; },
get timestamp() { return new Date(); },
get ['common.timesincesessionstart']() { return Date.now() - startTime; }
};
}

open playground website

paste code above

it crashes like so:

Object {stack: "TypeError: Cannot read property 'declarations' of …script/common/lib/typescriptServices.js:19:13310)", message: "TypeError: Cannot read property 'declarations' of undefined"}
message
:
"TypeError: Cannot read property 'declarations' of undefined"
stack
:
"TypeError: Cannot read property 'declarations' of undefined↵ at e.checkNode (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:1:30909)↵ at t.e._checkNodeOrToken (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:2107)↵ at t.e._visit (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1801)↵ at https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1853↵ at r (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:10966)↵ at Object.i [as forEachChild] (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:14002)↵ at t.e._visit (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1824)↵ at https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/typescriptWorker2.js:2:1853↵ at a (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:11081)↵ at Object.i [as forEachChild] (https://www.typescriptlang.org/play/Script/vs/languages/typescript/common/lib/typescriptServices.js:19:13310)"
__proto__
:
Object
Issue 1:
Describe the workflow you want to enable

As a user who specify weighted metrics/scoring such as balanced accuracy, I would like the scoring GridSearchCV uses for optimising and best_score_ to be weighted as well. Based on current documentation, I think it is currently simply a mean, so I do not aware if this has been tackled/asked before.

I am thinking about this since my data is imbalanced, and saw this post in SO too.

The mean seems to work fine when StratifiedKFold with minority class is multiple of K. If not (where the number minority class in each fold can be different) the scoring could be different with the 'combined scoring'. However, this is not as severe as doing this in LeaveOneOut.

Describe your proposed solution

When the user specify built-in weighted scoring, record the validation results for all folds and calculate scoring from combined validation result.

This can be default behavior or an option to turn this on/off. However, I couldn't see why people who specify weighted metrics want to turn this off.

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Issue 2:
Description

GridSearchCV and RandomizedSearchCV do not allow for passing parameters to the scorer function. This could be made possible by adding an extra scorer_params, similar to the fit_params argument.

For consistency with fit_params, special care would have to be paid to sample weights. Weights fed through fit_params are currently well-distributed across training folds. Similarly, weights fed through scorer_params would have to be distributed across validation folds.

Is adding this feature under consideration?

If not, should I give it a try?

(Nota: follow-up issue to the closed #8156. I believed the change in focus required a new thread.)