WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Currently, the DllPlugin and DllReferencePlugin allows loading external modules from separately generated bundles. The problem is that we need to provide a manifest with all the modules being bundled at the time of bundling. This is limiting in certain scenarios, where we would like to dynamically load modules which are not known at the time of build (user input, external files).

Example use case:

Imagine an docs-browser app, that dynamically loads the documentation text and executable examples, based on a JSON file that lists where they are contained. The documentation and examples are stored and built separately. They both can grow (more files are added) and we shouldn't need to republish the entire documentation website after every new addition to the documentation.

What I propose is that we delegate the manifest to the Dll bundle itself. This way the following could be possible:

require('https://domain.com/dll-bundle.js#jquery');

Assuming the dll-bundle.js file is a bundle that contains the module jquery, the above require would download the file (proper CORS required), load the manifest from it (listing all the mappings of modules and merging them with the preloaded ones) and finally load the code from the bundled module jquery.

This would require the module IDs to be long and random (e.g. UUIDs) so that collisions do not occur, but they could technically also be generated based on prefixed some seeded value.

This would solve questions like #1421 or #150.

EDIT:

A helper method for requiring from an external bundle might make more sense, something like:

require.ensureExternal('https://domain.com/dll-bundle.js', function(require) {
var $ = require('jquery');
})

// or even:
require.ensureExternal(dynamicallyGeneratedUrl, function(require) {
var someModule = require(totallyDynamicName);
})

Issue 2:
Bug report

What is the current behavior?

Progress message showing weird: percent building modules message show many space. maybe issue due to nextMessage lineCaretPosition computed incorrect.

If the current behavior is a bug, please provide the steps to reproduce.

Env: win10+vscode + vue-cli (with latest version of webpack )

1: vue create myapp

2. npm install

3. npm run serve

What is the expected behavior?

Progress message should output with correctly line cart start postion.

Other relevant information:

webpack version: 4.17.1

Node.js version: 8.11.3

Operating System: Windows 10

Additional tools: vscode + vue-cli 3.0.1
Issue 1:
TypeScript Version:

1.8.9

Code

interface I {
m: string | {a: string};
}
var x: I;
var y: string;
if (typeof x.m === 'string') {
y = x.m;
} else {
y = x.m.a;
}

Expected behavior:

no compile errors

Actual behavior:

test.ts(7,5): error TS2322: Type 'string | { a: string; }' is not assignable to type 'string'.

Type '{ a: string; }' is not assignable to type 'string'.

test.ts(9,13): error TS2339: Property 'a' does not exist on type 'string | { a: string; }'.

Pulling x.m out into a separate variable causes the type guard to work as expected.

Issue 2:
I just found out that property access expressions doesn't work on type predicate functions and instanceof type guards.

class A {
propA: number;
}

class B {
propB: number;
}
class C {
propC: A;
}

declare function isA(p1: any): p1 is D;

interface D {
a: A | B
b: A | C;
}

let d: D;
if (isA(d.b)) {
d.b.propA; //error
}

function foo(d: D) {
if (d.b instanceof A) {
d.b.propA // error
}
}

I'm not sure if there is an easy fix on this problem. We are provided just a symbol when narrowing. That symbol represent the left most expression and then we walk up the if statement. There is no easy way of controlling symbol by symbol on each namespace in a property access expression in the if-statement-body. Because there is no info about the property access expression provided in getTypeOfSymbolAtLocation(symbol: Symbol, node: Node).

I also found that type assertion expressions are also not working in type predicate functions. But I will land a fix on that.

if (isA(<A>union)) {
a = union;
}
if (isA(union as A)) {
a = union;
}
Issue 1:
Theano has supported multiple GPUs since v0.8.0.

(cf. Using multiple GPUs — Theano 0.8.0 documentation )

Does Keras also support using multiple GPUs?

For example, can I run the below task?

Learn a sequential model A on gpu0

Learn a sequential model B on gpu1

Merge A and B on gpu0

Issue 2:
how can I use center loss in keras?
Issue 1:
There is one feature in Sublime Text 2 that I often use and it really makes my day. It has the option to save all of your open tabs and window setup as a 'Project'. This really comes in handy as a designer working on applications that have multiple views and scss files. It saves the project as 'project name.sublime-project. That way if I have to quickly change gears to work different files, I can easily return to a complex project with one action.

Also, consider adding functions/actions or default key commands to appropriate file menus in the application bar. I feel it would dramatically help feature/function discoverability. A lot of designers won't have experience with Vim, etc and may want to start with Atom as it is, out of the box before customizing keybindings.

I am really looking forward to moving over to Atom full-time and send mad props to your team. It's amazing to witness Atom coming to life.

Issue 2:
In Sublime I can have multiple folders in the side bar. If Atom already has this, I haven't been able to figure out how to do it.
Issue 1:
Julia 0.5 has removed all support for cloning private repos on Windows. In previous versions one could always clone private repos via SSH remote URLs, but support for the git protocol seems entirely removed. Cloning private repos via https also doesn't work on Windows, I get the following error:

ERROR: ccall: could not find function getpass
[inlined code] from .\c.jl:89
in #prompt#1(::ASCIIString, ::Bool, ::Any, ::ASCIIString) at .\libgit2\utils.jl:17
in credentials_callback(::Ptr{Ptr{Void}}, ::Cstring, ::Cstring, ::UInt32, ::Ptr{Void}) at .\libgit2\callbacks.jl:56
[inlined code] from .\refpointer.jl:32
in clone(::ASCIIString, ::SubString{UTF8String}, ::Base.LibGit2.CloneOptions) at .\libgit2\repository.jl:189
in #clone#98(::ASCIIString, ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractPayload}, ::Any, ::ASCIIString, ::SubString{UTF8String}) at .\libgit2.jl:310
[inlined code] from .\base.jl:111
in clone(::ASCIIString, ::SubString{UTF8String}) at .\pkg\entry.jl:195
in clone(::ASCIIString) at .\pkg\entry.jl:221
[inlined code] from .\promotion.jl:229
in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#clone,Tuple{ASCIIString}})() at .\pkg\dir.jl:31
in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#clone,Tuple{ASCIIString}}, ::ASCIIString) at .\file.jl:58
in #cd#1(::Array{Any,1}, ::Any, ::Any, ::ASCIIString, ::Vararg{ASCIIString}) at .\pkg\dir.jl:31
in clone(::ASCIIString) at .\pkg.jl:128
in eval(::Module, ::Any) at .\boot.jl:236

I think there are potentially two solutions:

Re-enable support for the git transport protocol

Fix the error with https connections on Windows (might be enough to fix #8228)

I believe that only having 2) would be very painful, because my understanding is that every Pkg.update would for example query for the username/password combo for private repos, i.e. as far as I know there is no support for credential storage in libgit2, right?

So I think if the git transport is not re-enabled, one would really also need integration with the git credential manager interface, so that https credentials that are stored in a registered git credential manager would be picked up by Pkg.clone and Pkg.update. My understanding is that libgit2 has no support for this, so it would probably have to be implemented manually...

I think this issue here should get the 0.5.0 milestone attached. Not being able to work with private repos is a major regression relative to 0.4 that would affect essentially anyone who has package work in private repos.

Issue 2:
#5252 #6668 added support for github two-factor authentication. However, the implementation is a bit ugly: in the worst case, the user has to enter her password 4 times(!).

The nicest way to handle this would probably be to implement a getpasswd (or getpass) function, which reads in a password without echoing, and then passes that onto curl via curl -K - (which reads a config file from stdin).
Issue 1:
rustdoc unusually repeats a doc comment twice when it is outside an external module. Check out alxgnon/docrepeat for an example of the bug in action.

I previously fixed this issue for Rust's documentation with #13812, by simply moving the problematic doc comments.

However, #13812 does not fix the issue with rustdoc itself. I am therefore opening this as a separate issue.

Issue 2:
This should generate at least a warning. warn(type_limits) might be appropriate.

pub fn main() {
let x: u64 = -1;
println!("x = {}", x);
}
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-slow/6632/

Failed: [k8s.io] Pod Disks should schedule a pod w/ a readonly PD on two hosts, then remove both. [Slow] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:179
Expected error:
<*errors.errorString | 0xc8200e00c0>: {
s: "timed out waiting for the condition",
}
timed out waiting for the condition
not to have occurred

Issue 2:
12500 might be too large for, say, an n1-standard-4 master which has 3G of ram (i.e I don't think the estimate of: an object+metadata needed by etcd + duplication in apiserver cache = 256k is always going to be accurate). I think we came across a case where just 10,000 failed pods were enough to oom master components. Obviously 10,000 non-terminated pods can still oom it, but that's a DOS issue (#22679).
Issue 1:
Bug summary

If you contour a uniform field i.e. ax.contour(z=[[1, 1], [1,1]])) it works fine, although the output is not very interesting. If you add a colorbar to this, you receive an error. Without the colorbar call there is no error.

Code for reproduction

import matplotlib.pyplot as plt

fig, ax = plt.subplots()
cs = ax.contour([[1, 1], [1, 1]])
fig.colorbar(cs, ax=ax)
plt.show()

Actual outcome

bug.py:18: UserWarning: No contour levels were found within the data range.

cs = ax.contour([[1, 1], [1, 1]])

/home/iant/github/matplotlib/lib/matplotlib/colorbar.py:1224: RuntimeWarning: invalid value encountered in divide

y = y / (self._boundaries[self._inside][-1] -

Traceback (most recent call last):

File "bug.py", line 19, in

fig.colorbar(cs, ax=ax)

File "/home/iant/github/matplotlib/lib/matplotlib/figure.py", line 1276, in colorbar

cb = cbar.Colorbar(cax, mappable, **cb_kw)

File "/home/iant/github/matplotlib/lib/matplotlib/_api/deprecation.py", line 384, in wrapper

return func(*inner_args, **inner_kwargs)

File "/home/iant/github/matplotlib/lib/matplotlib/colorbar.py", line 396, in init

self._draw_all()

File "/home/iant/github/matplotlib/lib/matplotlib/colorbar.py", line 535, in _draw_all

X, Y = self._mesh()

File "/home/iant/github/matplotlib/lib/matplotlib/colorbar.py", line 1110, in _mesh

y, _ = self._proportional_y()

File "/home/iant/github/matplotlib/lib/matplotlib/colorbar.py", line 1246, in _proportional_y

automin = yscaled[1] - yscaled[0]

IndexError: index 1 is out of bounds for axis 0 with size 1

Expected outcome

Colorbar should be displayed as normal.

Additional information

Essentially the colorbar data range is zero, so when trying to determine the y-position of a particular contour level there is a divide by zero.

This has probably been a problem for years. It is a silly test case as who wants to contour a uniform field, but we should handle it more gracefully.

Operating system

N/A

Matplotlib Version

3.6.0.dev3132+gf8cf0ee5e7

Matplotlib Backend

N/A

Python version

3.8.10

Jupyter version

N/A

Installation

from source (.tar.gz)

Issue 2:
It would be great if you could copy the functionality as it exists in Matlab:

In the toolbar there is a 'Data Cursor' button.

This allows you to click on data points on the plot and it shows values.

It also allows you to move around the plot by using the arrow keys.

This is really helpful for scanning sample values quickly.
Issue 1:
When element on which the tooltip is created is removed from the DOM. Html for the corresponding tooltip is not remove from DOM and it remains on the page.

Possible solution (quick and dirty :) ) :

I added the following code to init of the plugin and it worked for my situation

this.$element.on('remove', this, function (e) { e.data.hide(); })

Issue 2:
Example:

http://jsfiddle.net/eduardojribeiro/fScua/297/
Issue 1:
I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors

@tkqubo @thasner @kenzierocks @clayne11 @tansongyang @NicholasBoll @mDibyo @pdeva

Currently types packages do not allow peerDependencies while the actual packages can have peerDependencies. In this case react-redux allows redux to match ^2.x.x || ^3.x.x || ^4.x.x. The typings for redux v4 however have changed so typescript is throwing All declarations of 'Dispatch' must have identical type parameters.

Adding "paths": { "redux": ["node_modules/redux"] } to my tsconfig did not solve this problem so I'm wondering what the current approach is to typings for peerDependencies that have their own typings.

Issue 2:
Can we move @types/react from dependency to peerDependency?

I'm experiencing a issue where I have react@16 and it's typings, but types/react-redux installs react@15 typings as dependency which results many compiler errors and red underlines in VS Code.

I think that we can solve the issue using @types/react as peerDependency.

@tkqubo @thasner @kenzierocks @clayne11 @tansongyang @NicholasBoll @mDibyo @pdeva
Issue 1:
In the ES 5 alphas we have some awesome bootstrap checks. However when you start ES as a service, eg service elasticsearch start and haven't completed those, it gives;

* Starting Elasticsearch Server [ OK ]

And in the logs it complains because not all of the checks passed.

We shouldn't really be returning an OK from the service if it doesn't start at all.

Issue 2:
Hi.

I would like not to get some of the fields from the response of an API request, since it's killing my CPU time at deserialization of the JSON in the client, I commented the fields that I don't want to receive, Is it possible?

First aggregation is date_histogram, inner aggregation is top_hits, What i've tried to do is to take the last value from every 30 minutes within a date range.

{
"took" : 21,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 1715,
"max_score" : 0.0,
"hits" : [ ]
},
"aggregations" : {
"my_agg" : {
"buckets" : [ {
//"key_as_string" : "2014-08-20T12:00:00.000Z",
"key" : 1408536000000,
//"doc_count" : 64,
"found_hits" : {
"hits" : {
// "total" : 64,
// "max_score" : null,
"hits" : [ {
//"_index" : "feed_history",
// "_type" : "feed_history",
// "_id" : "de1ea495-13d1-422d-ad44-a96fb0c36af8",
// "_score" : null,
"_source":{"value":1.30655,"relatedId":2,"serverTime":"2014-08-20T12:29:59.4410307Z"},
// "sort" : [ 1408537799441 ]
} ]
}
}
}, ... ]
}
}
}
Issue 1:
When I execute a command like

sns.pairplot(x, hue = 'species', diag_kind='kde')

The following error is raised:

TypeError: slice indices must be integers or None or have an index method

This happens after upgrading to matplotlib 2.0. If I remove the diag_kind argument, the function executes.

Issue 2:
when I run the demo Example:

>>> import numpy as np; np.random.seed(10)
>>> import seaborn as sns; sns.set(color_codes=True)
>>> mean, cov = [0, 2], [(1, .5), (.5, 1)]
>>> x, y = np.random.multivariate_normal(mean, cov, size=50).T
>>> ax = sns.kdeplot(x)

it report an error as below:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Python\Python35\lib\site-packages\seaborn\distributions.py", line 604, in kdeplot
cumulative=cumulative, **kwargs)
File "D:\Python\Python35\lib\site-packages\seaborn\distributions.py", line 270, in _univariate_kdeplot
cumulative=cumulative)
File "D:\Python\Python35\lib\site-packages\seaborn\distributions.py", line 328, in _statsmodels_univariate_kde
kde.fit(kernel, bw, fft, gridsize=gridsize, cut=cut, clip=clip)
File "D:\Python\Python35\lib\site-packages\statsmodels\nonparametric\kde.py", line 146, in fit
clip=clip, cut=cut)
File "D:\Python\Python35\lib\site-packages\statsmodels\nonparametric\kde.py", line 506, in kdensityfft
f = revrt(zstar)
File "D:\Python\Python35\lib\site-packages\statsmodels\nonparametric\kdetools.py", line 20, in revrt
y = X[:m/2+1] + np.r_[0,X[m/2+1:],0]*1j
TypeError: slice indices must be integers or None or have an __index__ method

My platform is win10 and seaborn version is (0.7.1) and statsmodels version is (0.6.1).
Issue 1:
I would love to see a live preview of the changes i make to the configuration, so i don't have to go to each components page edit in the color via dev tools and copy them and then paste them into the customizer.

If a live preview might not be possible, maybe provide a preview button so you can preview your design without downloading it and tsting it on your own demo site.

Issue 2:
Is possible include an official bootstrap theme maker tool (updated) like http://www.stylebootstrap.info/index.php or http://fancyboot.designspebam.com/ or http://pikock.github.io/bootstrap-magic/app/index.html on the official web site?

This would be an amazing tool for everyone!
Issue 1:
When setting url_prefix in app.register_blueprint it does not update the blueprints url_prefix property.

Not sure if this is a bug or intentional but seems odd.

Example:

app.py

from flask import Flask
import bp

def create_app():
app = Flask(__name__)

with app.app_context():
app.register_blueprint(bp.v, url_prefix="/custom-prefix")

return app

bp.py

from flask import Blueprint

v = Blueprint('the_blueprint', __name__, url_prefix='/default-prefix')

@v.route('/')
def index():
return f"url_prefix: {v.url_prefix}"

run

$ FLASK_DEBUG=1 FLASK_APP=app flask run --host 0.0.0.0 --port 5001

$ curl 0.0.0.0:5001/custom-prefix/
url_prefix: /default-prefix

I would expect bp.url_prefix to be '/custom-prefix'

Environment:

Python version: 3.8.5

Flask version: 2.0.0 and 1.1.0

Issue 2:
Nested blueprints should be able to have the same name. Currently all blueprints are registered under their own name, however for a nested blueprint id expected it to use the <parent_name>.<child_name>

from pprint import pprint
import flask

app = flask.Flask(__name__)
view_bp = flask.Blueprint("home", __name__)
api_bp = flask.Blueprint("api", __name__, url_prefix="/api")
home_api_bp = flask.Blueprint("home", __name__)

@view_bp.route("/")
@home_api_bp.route("/")
def view():
print(flask.request, flask.request.endpoint)

api_bp.register_blueprint(home_api_bp)

app.register_blueprint(view_bp)
app.register_blueprint(api_bp)
pprint(app.url_map)

Traceback (most recent call last):
File "/home/maico/test.py", line 18, in <module>
app.register_blueprint(api_bp)
File "/home/maico/.local/lib/python3.9/site-packages/flask/scaffold.py", line 54, in wrapper_func
return f(self, *args, **kwargs)
File "/home/maico/.local/lib/python3.9/site-packages/flask/app.py", line 1023, in register_blueprint
blueprint.register(self, options)
File "/home/maico/.local/lib/python3.9/site-packages/flask/blueprints.py", line 359, in register
blueprint.register(app, bp_options)
File "/home/maico/.local/lib/python3.9/site-packages/flask/blueprints.py", line 275, in register
assert app.blueprints[self.name] is self, (
AssertionError: A name collision occurred between blueprints <Blueprint 'home'> and <Blueprint 'home'>. Both share the same name 'home'. Blueprints that are created on the fly need unique names.

Environment:

Python version: 3.9.1

Flask version: 2.1.0dev0: 9039534
Issue 1:
This issue is carried over from JuliaLang/IJulia.jl#116.

It would be useful at times to have a means of suppressing warnings such as the example below without suppressing errors.

@staticfloat has expressed interest in this issue, as has @StefanKarpinski. /base/util.jl lines 418:446 contains what looks like the seed of a lightweight logging approach along the lines @StefanKarpinski mentioned in the IJulia discussion

julia> using Winston
Warning: New definition
|(SynchronousStepCollection,Any) at C:\Users\keithc\.julia\BinDeps\src\BinDe
ps.jl:283
is ambiguous with:
|(Any,NAtype) at C:\Users\keithc\.julia\DataArrays\src\operators.jl:502.
To fix, define
|(SynchronousStepCollection,NAtype)
before the new definition.
Warning: New definition
|(Any,SynchronousStepCollection) at C:\Users\keithc\.julia\BinDeps\src\BinDe
ps.jl:286
is ambiguous with:
|(NAtype,Any) at C:\Users\keithc\.julia\DataArrays\src\operators.jl:502.
To fix, define
|(NAtype,SynchronousStepCollection)
before the new definition.

Issue 2:
I got the above error locally with #40996, which I have never seen before.

CI sees it too, here: https://build.julialang.org/#/builders/7/builds/5932/steps/5/logs/stdio (17f851b)

arrayops (5) | failed at 2021-11-13T02:50:50.671
Error During Test at /buildworker/worker/tester_linuxaarch64/build/share/julia/test/arrayops.jl:1149
Got exception outside of a @test
fatal error in type inference (type bound)
Stacktrace:
[1] mapslices(f::Main.Test99Main_arrayops.var"#18#31", A::Matrix{Int64}; dims::Int64)
@ Base ./abstractarray.jl:2803
[2] macro expansion
@ /buildworker/worker/tester_linuxaarch64/build/share/julia/test/arrayops.jl:1196 [inlined]
Issue 1:
Bug report

Describe the bug

Upgrading to Next 9.0 from 8.1 breaks any Jest tests for components that use dynamic imports syntax (not using next/dynamic) :

● OurComponent › test

Not supported

78 | public componentDidMount(): void {
79 | if (this.ref.current) {
> 80 | import('./some-other-file').then(
| ^

This appears to be due to babel-plugin-dynamic-import-node being removed from the next/babel preset to fix another issue in this Spectrum post.

In my use case, I'm not importing another component, so it seemed unnecessary to use next/dynamic here. However, looking at the documentation, I would have suspected that usage like the documentation suggests should also break Jest tests due to it using dynamic import syntax as well:

const DynamicComponent = dynamic(() => import('../components/hello'));

To Reproduce

Use next/babel preset in .babelrc.

Create a component that uses a dynamic import (e.g. in componentDidMount).

Create a test that renders the component.

Expected behavior

Tests should not fail.

System information

OS: Ubuntu 18.04

Version of Next.js: 9.0

Issue 2:
Bug report

Since upgrading to v9 I've run into several issues that stop the deployment, the app runs fine with now dev . This includes

can't load grpc

self register bug

both avoided when setting grpc to external in custom webpack config as mentioned

can't use latest firebase - produces pages/about.js:29:31) code: 'MODULE_NOT_FOUND' } when that page clearly exists, (downgrading to 5.11.1 "solves" this)

Seems to relate to #7894 #7758 #6655

Working around the above I now get the following as mentioned here #7894 (comment)

running "yarn run now-build"
Jul 22 2019 14:05:48:345 | ...next.config.js | yarn run v1.16.0
Jul 22 2019 14:05:48:403 | ...next.config.js | $ next build
Jul 22 2019 14:05:49:159 | ...next.config.js | Creating an optimized production build ...
Jul 22 2019 14:05:49:824 | ...next.config.js | > Using external babel configuration
Jul 22 2019 14:05:49:824 | ...next.config.js | > Location: "/tmp/bc0fa1c/babel.config.js"
Jul 22 2019 14:07:52:235 | ...next.config.js | Failed to compile.
Jul 22 2019 14:07:52:235 | ...next.config.js | ./node_modules/amp-toolbox-optimizer/lib/transformers/AddBlurryImagePlaceholders.js
Jul 22 2019 14:07:52:235 | ...next.config.js | Module not found: Can't resolve 'jimp' in '/tmp/bc0fa1c/node_modules/amp-toolbox-optimizer/lib/transformers'
Jul 22 2019 14:07:52:235 | ...next.config.js |

To Reproduce

Attempt to deploy nextjs v9 with firebase

Expected behavior

Can deploy next js v9 to Now 2.0