WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
A B-tree stores sorted arrays of a chosen size instead of lone nodes, so it can be much more cache-friendly than a red-black tree when used with small key/value types. The size will just have to be hardcoded for now since it can't be part of parametrizing it.

Issue 2:
Right now, resource destructors seem to always be inlined. This recently led to #2170 because the reachability map was incorrect. I fixed this the wrong way: by marking all resource bodies as reachable. The right fix seems to me to be not inlining resource bodies by default, but that change seemed a bit more involved. In particular, I wanted to check with @marijnh whether resources are being inlined intentionally? If so, is there a deep reason for that?

In general I'd like to be able to say that "no user-specified code is inlined unless either generic or marked #[inline]".
Issue 1:
Docker-compose error

Issue 2:
File

"/usr/local/lib/python3.6/urllib/request.py".py,line 1361,in https_open superset-init_1 | context=self._context,check_hostname=self._check_hostname) superset-init_1 | File "/usr/local/lib/python3.6/urllib/request.py", line 1283 , in do_open superset_init_1 | raise URLError('no host given') superset_init_1 | urllib.error.URLError:
Issue 1:
I'm getting a test failure on make test-backtrace. More detail:

julia> bt = backtrace()
22-element Array{Ptr{Void},1}:
Ptr{Void} @0x00007f695d467c85
Ptr{Void} @0x00007f695d467ce0
Ptr{Void} @0x00007f694d567010
Ptr{Void} @0x00007f694d567030
Ptr{Void} @0x00007f695d41aa66
Ptr{Void} @0x00007f695d461598
Ptr{Void} @0x00007f695d460b0f
Ptr{Void} @0x00007f695d460901
Ptr{Void} @0x00007f695d461b9a
Ptr{Void} @0x00007f695d4600e8
Ptr{Void} @0x00007f695d472567
Ptr{Void} @0x00007f695d4228a6
Ptr{Void} @0x00007f695ec314c6
Ptr{Void} @0x00007f695ec315f7
Ptr{Void} @0x00007f695d41a9da
Ptr{Void} @0x00007f695ec980cf
Ptr{Void} @0x00007f695d467b27
Ptr{Void} @0x00007f695d466abf
Ptr{Void} @0x00000000004014bd
Ptr{Void} @0x00007f695cd05ec5
Ptr{Void} @0x00000000004014f3
Ptr{Void} @0x0000000000000000

julia> for l in bt
lkup = ccall(:jl_lookup_code_address, Any, (Ptr{Void},), l)
@show lkup
end
lkup = (symbol("???"),symbol("???"),140090513194117,true,140090513194117)
lkup = (symbol("???"),symbol("???"),140090513194208,true,140090513194208)
lkup = (symbol("???"),symbol("???"),140090245804048,true,140090245804048)
lkup = (symbol("???"),symbol("???"),140090245804080,true,140090245804080)
lkup = (symbol("???"),symbol("???"),140090512878182,true,140090512878182)
lkup = (symbol("???"),symbol("???"),140090513167768,true,140090513167768)
lkup = (symbol("???"),symbol("???"),140090513165071,true,140090513165071)
lkup = (symbol("???"),symbol("???"),140090513164545,true,140090513164545)
lkup = (symbol("???"),symbol("???"),140090513169306,true,140090513169306)
lkup = (symbol("???"),symbol("???"),140090513162472,true,140090513162472)
lkup = (symbol("???"),symbol("???"),140090513237351,true,140090513237351)
lkup = (symbol("???"),symbol("???"),140090512910502,true,140090512910502)
lkup = (symbol("???"),symbol("???"),140090538136774,true,140090538136774)
lkup = (symbol("???"),symbol("???"),140090538137079,true,140090538137079)
lkup = (symbol("???"),symbol("???"),140090512878042,true,140090512878042)
lkup = (symbol("???"),symbol("???"),140090538557647,true,140090538557647)
lkup = (symbol("???"),symbol("???"),140090513193767,true,140090513193767)
lkup = (symbol("???"),symbol("???"),140090513189567,true,140090513189567)
lkup = (symbol("???"),symbol("???"),4199613,true,4199613)
lkup = (symbol("???"),symbol("???"),140090505453253,true,140090505453253)
lkup = (symbol("???"),symbol("???"),4199667,true,4199667)
lkup = (:println,symbol("./string.jl"),0,false,0)

This happened with builds for https://github.com/Keno/Cxx.jl.

Issue 2:
Backtraces are somewhat of a mess on 3.5 for a variety of reasons, including that we currently have no way to get the proper load address of a section. To verify, try e.g.:

julia> sqrt(-1)
ERROR: DomainError

and note the missing backtrace.
Issue 1:
We currently get two docs exported for Type Interface: one for core, and one for router. This is confusing -- and I think unnecessary duplication? Can we make Router depend on the Type exported from core?

Issue 2:
I would like to create extensions for some components already deployed in Angular 2, without having to rewrite them almost completely, as the base component could undergo changes and wish these changes were also reflected in its derived components.

Example

I created this simple example to try to explain better the problem:

With the following base component app/base-panel.component.ts:

import {Component, Input} from 'angular2/core';

@Component({
selector: 'base-panel',
template: '<div class="panel" [style.background-color]="color" (click)="onClick($event)">{{content}}</div>',
styles: [`
.panel{
padding: 50px;
}
`]
})
export class BasePanelComponent {

@Input() content: string;

color: string = "red";

onClick(event){
console.log("Click color: " + this.color);
}
}

Would you like to create another derivative component only alter, for example, a basic component behavior in the case of the example color, app/my-panel.component.ts:

import {Component} from 'angular2/core';
import {BasePanelComponent} from './base-panel.component'

@Component({
selector: 'my-panel',
template: '<div class="panel" [style.background-color]="color" (click)="onClick($event)">{{content}}</div>',
styles: [`
.panel{
padding: 50px;
}
`]
})
export class MyPanelComponent extends BasePanelComponent{

constructor(){
this.color = "blue";
}
}

Example in Plunker

Problem/Limitation

As you can see in the implementation of the derivative component app/my-panel.component.ts, much of the implementation was repeated, and the single part really inherited was the class BasePanelComponent, but the annotation @Component had to basically be completely repeated, not just the changed portions, as the selector: 'my-panel'.

Feature request

After a few days of research around this possible limitation (question on StackOverflow and StackOverflowPt (my native language)), concludes that even the current version there is no mechanism for the annotations inheritance. So I wonder if it is possible to be implemented this possibility/feature functionality for future versions of the angular library?
Issue 1:
I have just installed Atom 1.0.0 and it runs very slow. When I type it seems to lag every 5-10 characters for up to 2-3 seconds. The file I opened has around 3500 lines and 180 kB. I have tried using safe mode and disabling spellcheck, but it is still too slow. CPU usage peaks to 80-100% on one core as soon as I start typing.

When I press enter, editor lags for 3 seconds and CPU usage spikes to maybe 80% on one core.

When I open new file with only several lines, it works without the lag.

System info: Linux 3.13.0-40-generic #69-Ubuntu x86_64, Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz, 6 GB RAM, SSD.

I like this editor and I would like to help to diagnose this problem if someone tells me what to do.

Thank You.

Issue 2:
I know this probably won't be at the top of the list, but I like to be able to print form my editor. It would give Atom a feature that Sublime or Brackets don' t have.
Issue 1:
Summary of the new feature/enhancement

explorer.exe closes unexpectedly after the UPDATE is complete

Proposed technical implementation details (optional)

add a popup warning before the installation starts alerting that the Explorer.exe will be restarted, and give option to cancel installation to avoid closing Explorer.exe

Issue 2:
Summary of the new feature/enhancement

Set window always on top (pin window)

Proposed technical implementation details (optional)

An additional (4th) button on the titlebar to pin an application window on top of other windows.
Issue 1:
Checklist

I have verified that the issue exists against the master branch of Celery.

This has already been asked to the discussion group first.

I have read the relevant section in the

contribution guide

on reporting bugs.

I have checked the issues list

for similar or identical bug reports.

I have checked the pull requests list

for existing proposed fixes.

I have checked the commit log

to find out if the bug was already fixed in the master branch.

I have included all related issues and possible duplicate issues

in this issue (If there are none, check this box anyway).

Mandatory Debugging Information

I have included the output of celery -A proj report in the issue.

(if you are not able to do this, then at least specify the Celery

version affected).

I have verified that the issue exists against the master branch of Celery.

I have included the contents of pip freeze in the issue.

I have included all the versions of all the external dependencies required

to reproduce this bug.

Optional Debugging Information

I have tried reproducing the issue on more than one Python version

and/or implementation.

I have tried reproducing the issue on more than one message broker and/or

result backend.

I have tried reproducing the issue on more than one version of the message

broker and/or result backend.

I have tried reproducing the issue on more than one operating system.

I have tried reproducing the issue on more than one workers pool.

I have tried reproducing the issue with autoscaling, retries,

ETA/Countdown & rate limits disabled.

I have tried reproducing the issue after downgrading

and/or upgrading Celery and its dependencies.

Related Issues and Possible Duplicates

Related Issues

None

Possible Duplicates

None

Environment & Settings

Celery version: 4.4.4

celery report Output:

Steps to Reproduce

Required Dependencies

Minimal Python Version: N/A or Unknown

Minimal Celery Version: N/A or Unknown

Minimal Kombu Version: N/A or Unknown

Minimal Broker Version: N/A or Unknown

Minimal Result Backend Version: N/A or Unknown

Minimal OS and/or Kernel Version: N/A or Unknown

Minimal Broker Client Version: N/A or Unknown

Minimal Result Backend Client Version: N/A or Unknown

Python Packages

pip freeze Output:

Other Dependencies

N/A

Minimally Reproducible Test Case

item = chain(*chords).apply_async(link_error=error_job, link=completed_job)

Expected Behavior

I don't know what i should expect. In eager mode that is legit(I don't get link/link_error executed), in normal mode i get: Cannot add link to group: use a chord

"

Actual Behavior

See Expected Behaviour

Issue 2:
Celery subtasks being retried as part of a chain are put behind the queue of tasks.

run_task1.s(args, kwargs).set(exchange='tb', routing_key='tb.q1')
run_task2.s(args, kwargs).set(exchange='tb', routing_key='tb.q1')

suite_chain = (run_task1, run_task2)
suite_result = suite_chain.apply_async()

If run_task1 fails and it retried, it gets put behind run_task2. I would expect that if run_task1 fails it is retried before run_task2 is started.
Issue 1:
Here's an example:

julia> A = sprand(5,5,1/5);
julia> A = max.(A,A');
julia> A = spones(A);
julia> full(A)
5×5 Array{Float64,2}:
0.0 1.0 0.0 0.0 1.0
1.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 1.0 1.0
0.0 0.0 1.0 0.0 0.0
1.0 0.0 1.0 0.0 0.0
julia> issymmetric(A)
true
julia> B = A[5:-1:1,5:-1:1];
julia> full(B)
5×5 Array{Float64,2}:
0.0 0.0 1.0 0.0 1.0
0.0 0.0 1.0 0.0 0.0
1.0 1.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 1.0
1.0 0.0 0.0 1.0 0.0
julia> issymmetric(B)
false

Here, issymmetric(B) should return true but it returns false. The issue is not with the issymmetric function. Take a look at the following:

julia> isequal(A,A')
true
julia> isequal(B,B')
false
julia> issymmetric(full(B))
true
julia> issymmetric(sparse(full(B)))
true
julia> for i = 1:5
for j = 1:5
if B[i,j] != 0
println("[i,j] = [$i,$j] and B[i,j] is $(B[i,j])")
end
end
end
[i,j] = [2,3] and B[i,j] is 1.0
[i,j] = [3,2] and B[i,j] is 1.0
[i,j] = [4,5] and B[i,j] is 1.0
[i,j] = [5,1] and B[i,j] is 1.0
[i,j] = [5,4] and B[i,j] is 1.0
julia> nnz(B)
8
julia> B[1,5]
0.0
julia> full(B)[1,5]
1.0

if we use collect(5:-1:1) instead, everything seems to work fine.

julia> B = A[collect(5:-1:1),collect(5:-1:1)];
julia> full(B)
5×5 Array{Float64,2}:
0.0 0.0 1.0 0.0 1.0
0.0 0.0 1.0 0.0 0.0
1.0 1.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 1.0
1.0 0.0 0.0 1.0 0.0
julia> issymmetric(B)
true

julia> for i = 1:5
for j = 1:5
if B[i,j] != 0
println("[i,j] = [$i,$j] and B[i,j] is $(B[i,j])")
end
end
end
[i,j] = [1,3] and B[i,j] is 1.0
[i,j] = [1,5] and B[i,j] is 1.0
[i,j] = [2,3] and B[i,j] is 1.0
[i,j] = [3,1] and B[i,j] is 1.0
[i,j] = [3,2] and B[i,j] is 1.0
[i,j] = [4,5] and B[i,j] is 1.0
[i,j] = [5,1] and B[i,j] is 1.0
[i,j] = [5,4] and B[i,j] is 1.0
julia> nnz(B)
8

versioninfo for reference:

julia> versioninfo()
Julia Version 0.6.0-pre.alpha.146
Commit c399558 (2017-03-15 15:20 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i5-2435M CPU @ 2.40GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, sandybridge)

P.S. I looked for this bug elsewhere -- didn't find anything, I hope it's not a duplicate bug

Issue 2:
For user written short functions that have a huge overhead from bounds checking, it would be nice if it was possible to hook into the boundscheck system with @inbounds in order to let the user be able to disable manual bounds checking inside the function.

This might be beneficial for SubString, SubArray, and many wrapping types that have to check bounds before forwarding to the internal storage.

One suggestion is to have a @bounds macro that you can wrap the optional checking code in, but that seems somewhat brittle.
Issue 1:
when some multipart/form-data request is parsed via a reqparse.RequestParser(), the parsing fails with

werkzeug.exceptions.BadRequest: 400 Bad Request: Did not attempt to load JSON data because the request Content-Type was not 'application/json'.

To replicate create some endpoint, which parses the request with a reqparse.RequestParser and send the requested data as multipart/form-data for example with curl.

With flask version 2.0.2 (and a corresponding older werkzeug version m(i.e. <2.1.1) ), this worked as expected, i.e. the request gets parsed correctly, with flask version 2.1.1 and werkzeug 2.1.1 (or newer) it fails.

This happens, because with werkzeug version 2.1.1, werkzeug the behaviour of request.get_json() was changes:

"Request.get_json() will raise a 400 BadRequest error if the Content-Type header is not application/json. This makes a very common source of confusion more visible. #2339"

(c.f. https://werkzeug.palletsprojects.com/en/2.1.x/changes/ or pallets/werkzeug#2339)

requparse.Argument now loads its location as default with

location=('json', 'values',)

in line 77 of the __init__ function and then iterates over self.location (in line 125f):

for l in self.location:
value = getattr(request, l, None)

which access request.json (first) and then fails due to the new exception in/from werkzeug.

Capturing that exception or accessing json only if the application type matches json would prevent that error and would allow to continue to use the reqparse with application types not being json.

Issue 2:
Werkzeug 2.1.0 makes Request.get_json() raise if request is not JSON, which causes reqparse to raise when it attempts to access Request.json, which it does by default for all arguments without a specified location.
Issue 1:
Keith Donald opened SPR-7141 and commented

As a user, I would like support for resource versioning so it is possible to get the benefits of caching with the ability to refresh changes.

Implementation option #1

Automatic versioning with file timestamps e.g. /resources/main.123456789.css

Implementation option #2

Manual versioning with version number e.g. /resources/version-1.0.0/main.css

Both options would require ResourceHttpRequestHandler to strip out the version number from the request URI to obtain the "real" resource path. In addition, a view helper function or tag would be needed to generate versioned URLs e.g. <spring:resource name="main.css"/> might generate http://localhost:8080/app/resources/main.123456789.css.

Resources:

http://stackoverflow.com/questions/118884/what-is-an-elegant-way-to-force-browsers-to-reload-cached-css-js-files

http://particletree.com/notebook/automatically-version-your-css-and-javascript-files/

Affects: 3.0.2

This issue is a sub-task of #12058

Issue Links:

#12401 Support for generating links to static resources such as CSS and JS files hosted at a CDN such as Amazon Cloudfront

2 votes, 4 watchers

Issue 2:
Keith Donald opened SPR-7745 and commented

Would be nice extension of the resource handler work in Spring 3 in the cases where the resource handling is performed off-site with the help of a CDN such as Amazon Cloudfront. The best practice in this environment is to upload two versions of each static resource: a uncompressed version, and a compressed version. In development you would want to work with a local, uncompressed version, but in production you'd expect the gzipped version to be used and be served from the CDN.

See: http://internetmarketingbyme.com/74/gzip-compression-using-amazon-s3-cloudfront-cdn/

See: http://lanyrd.com/blog/2010/ical

Affects: 3.0.5

Issue Links:

#16488 Create ResourceResolver for changing URL domain ("duplicates")

#11800 Add support for versioning resources

#16488 Create ResourceResolver for changing URL domain

1 votes, 2 watchers
Issue 1:
When I get an error (that red warning that shows on the upper right side of Atom) and I try to interact with it by either clicking on the "Copy to clipboard" or the "Create issue on the xyz package" buttons, nothing happens.

Issue 2:
This may have definitely has something to do with #64:

Clicking on the copy button from a test error notification triggered with Cmd-Alt-T throws an Unhandled Promise rejection with the following error and stack trace:

TypeError: undefined is not a function
at /usr/share/atom/resources/app.asar/node_modules/notifications/lib/user-utilities.js:83:21
at Object.module.exports.linuxVersionText (/usr/share/atom/resources/app.asar/node_modules/notifications/lib/user-utilities.js:82:14)
at /usr/share/atom/resources/app.asar/node_modules/notifications/lib/user-utilities.js:39:36
at Object.module.exports.getOSVersion (/usr/share/atom/resources/app.asar/node_modules/notifications/lib/user-utilities.js:31:14)
at /usr/share/atom/resources/app.asar/node_modules/notifications/lib/notification-issue.js:109:41
at NotificationIssue.module.exports.NotificationIssue.getIssueBody (/usr/share/atom/resources/app.asar/node_modules/notifications/lib/notification-issue.js:103:14)
at HTMLAnchorElement.<anonymous> (/usr/share/atom/resources/app.asar/node_modules/notifications/lib/notification-element.js:180:30)

Also clicking on the "Create issue" button does nothing.

OS: Ubuntu 14.10

Atom 0.204.0
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-within-a-range has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

"// Make myFunction return a random number between zero and nine instead of a decimal"

The above comment does not belong in this waypoint.

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-within-a-range has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Comment on line 4 of editor reads Make myFunction return a random number between zero and nine instead of a decimal

Should read Make myFunction return a random number between min and max values instead of a decimal
Issue 1:
Hello everybody,

I have downloaded a wav file from the web, this is the link:

http://freesound.org/people/RHumphries/sounds/980/

Since I have not found out how to attach this file to the bug report anybody who tries to reproduce the problem will have to download the sound. If I am trying to read this file using the function 'scipy.io.wavfile.read' I get an error message. Here is the minimal code example:

In [1]: import scipy.io.wavfile as wav

In [2]: rate,f=wav.read('980__rhumphries__rbh-glass-break-04.wav')

This gives me the following error: "ValueError: string size must be a multiple of element size"

Since the function is working fine with all the other wav files that I have I suspect that this is a bug.

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/881 on 2009-03-06 by @pv, assigned to unknown.

scipy.interpolate contains two sets of functions for making and representing splines:

>>> from scipy import arange, interpolate, float_
>>> x = arange(6).astype(float_)
>>> spl1 = interpolate.splmake(x, x, order=2)
>>> interpolate.spleval(spl1, x)
array([ -4.99600361e-16, 1.00000000e-00, 2.00000000e+00,
3.00000000e+00, 4.00000000e+00, 5.00000000e+00])
>>> spl2 = interpolate.splrep(x, x, k=2)
>>> interpolate.splev(x, spl2)
array([ -6.89645379e-18, 1.00000000e+00, 2.00000000e+00,
3.00000000e+00, 4.00000000e+00, 5.00000000e+00])

But these are not interoperable and using them wrong can silently give bogus results!

>>> interpolate.splev(x, spl1)
array([ -2.00000000e+00, -1.00000000e+00, -4.99600361e-16,
1.00000000e-00, 2.00000000e+00, 3.00000000e+00])
>>> interpolate.spleval(spl2, x)
Traceback (most recent call last):
File "<ipython console>", line 1, in <module>
File ".../scipy/interpolate/interpolate.py", line 772, in spleval
res[sl] = _fitpack._bspleval(xx,xj,cvals[sl],k,deriv)
ValueError: too few coefficients (have 9 need at least 10)

Some cleanup seems to be required. The current situation is confusing, especially as the documentation is lacking, too.

Also, if the two sets of spline functions are functionally equivalent, one of them should be scrapped, or at least removed from scipy.interpolate namespace.
Issue 1:
http://plnkr.co/edit/5ZlYKh?p=preview

If you look at the provided example you will see that it attempts to make use of ng-content and that it does not work. The reason it does not work seems to be that it is attempting to use the contents of the root component which appears in the index.html. However, as soon as an intermediary component is introduced, as in this example:

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

Then the ng-content works correctly.

Also, and this is basically lumping two things together into one, shouldn't ng-content have become ngContent just as ngIf, ngFor, etc. did?

Issue 2:
http://plnkr.co/edit/5731Z9N6tQ391gQtfZrA?p=preview

I've been over the documentation 10 times, I've read through the source code, tutorials, the works... and I still can't wrap my head around what I'm doing wrong.

all I want to do is:

<app myTitle='my awesome title'>

and access myTitle from inside the constructor.

Is that possible in NG2?