WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I know that there are several previously created issues regarding this. However, I still don't understand why warm_start is not supported for liblinear solver? Whether this feature is going to be added in future? Based on my experience (of liblinear in C++), using warm_start can speedup training 2-4x times.

Issue 2:
NCA checks its parameters to have a specific type, which can easily fail in a GridSearch due to how param grid is made.

Here is an example:

import numpy as np

from sklearn.pipeline import Pipeline
from sklearn.model_selection import GridSearchCV
from sklearn.neighbors import NeighborhoodComponentsAnalysis
from sklearn.neighbors import KNeighborsClassifier

X = np.random.random_sample((100, 10))
y = np.random.randint(2, size=100)

nca = NeighborhoodComponentsAnalysis()
knn = KNeighborsClassifier()

pipe = Pipeline([('nca', nca),
('knn', knn)])

params = {'nca__tol': [0.1, 0.5, 1],
'nca__n_components': np.arange(1, 10)}

gs = GridSearchCV(estimator=pipe, param_grid=params, error_score='raise')
gs.fit(X,y)

The issue is that for tol: 1 is not a float, and for n_components: np.int64 is not int

Before proposing a fix for this specific situation, I'd like to have your general opinion about parameter checking.

I like this idea of common parameter checking tool introduced with the NCA PR. What do you think about extending it across the code-base (or at least for new or recent estimators) ?

Currently parameter checking is not always done or often partially done, and is quite redundant. For instance, here is the input validation of lda:

def _check_params(self):
"""Check model parameters."""
if self.n_components <= 0:
raise ValueError("Invalid 'n_components' parameter: %r"
% self.n_components)

if self.total_samples <= 0:
raise ValueError("Invalid 'total_samples' parameter: %r"
% self.total_samples)

if self.learning_offset < 0:
raise ValueError("Invalid 'learning_offset' parameter: %r"
% self.learning_offset)

if self.learning_method not in ("batch", "online"):
raise ValueError("Invalid 'learning_method' parameter: %r"
% self.learning_method)

most params aren't checked and for those who are there's a lot of duplicated code.

A propose to be upgrade the new tool to be able to check open/closed intervals (currently only closed) and list membership.

The api would be something like that:

check_param(param, name, valid_options)

where valid_options would be a dict of type: constraint. e.g for the beta_loss param of NMF, it can be either a float or a string in a list, which would give

valid_options = {numbers.Real: None, # None for no constraint
str: ['frobenius', 'kullback-leibler', 'itakura-saito']}

Sometimes a parameter can only be positive or within a given interval, e.g. l1_ratio of LogisticRegression must be between 0 and 1, which would give

valid_options = {numbers.Real: Interval(0, 1, closed='both')}

positivity of e.g. max_iter would be numbers.Integral: Interval(left=1).
Issue 1:
I'm submitting a ... (check one with "x")

[ x] bug report => search github for a similar issue or PR before submitting
[ ] 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

using vs code the type of ElementRef.nativeElement is any.

Expected behavior

shouldn't the type be Element so we can get code completion and type checking?

Minimal reproduction of the problem with instructions

plnkr won't work because it doesn't do type checking (to my knowledge)

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

so we can get code completion and type checking

Please tell us about your environment:

windows 10 vs code

Angular version: 2.4.1

Browser: not a browser issue

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

typescript 2.1.5

Node (for AoT issues): node --version =

Issue 2:
The current DI system, when compared to something like Guice, has some limitations that large internal clients are finding lacking. Below, when I use the term module, I mean, for Dart at least, a const List of <Binding | Type | List<...>>

Requests from internal clients:

If two or more modules would resolve bindings differently, have an option to warn or throw.

This would be used to help detect when you may not intend for a binding to be overriden.

const serviceBindings = const [ const Binding(MapsService, toClass: DefaultMapsService) ];
const debugBindings = const [ const Binding(MapsService, toClass: DebugMapsService) ];

// We will (accidentally?) override DefaultMapsService with DebugMapsService.
// In some mode (debug?) we may want to print to console or throw something.
void main() {
bootstrap(..., [serviceBindings, debugBindings])
}

Have a required binding "marker" to remind developers to fill-in implementations or flags.

const mapsServicePrefixToken = const OpaqueToken('mapsServicePrefix');

const serviceBindings = const [
const Binding(MapsService, toClass: DefaultMapsService),
const RequireBinding(mapsServicePrefixToken, reason: 'Define an API prefix to use MapsService')
];

Allow optional typing of token-type bindings to throw earlier

const mapsServicePrefixToken = const OpaqueToken<String>('mapsServicePrefix');

const serviceBindings = const [
const Binding(mapsServicePrefixToken, 5); // Should throw fast in dev-mode
];

Reduce the cost of duplicate/re-binding by resolving bindings, when possible, at build time

This is already done.

const serviceBindings = const [
const Binding(MapsService, toClass: DefaultMapsService)
];

const mapsRenderingBindings = const [
serviceBindings,
otherBindings
];

// We are binding two identical `const Binding(MapsService)` at runtime, even though they will resolve
// exactly the same. We could detect this at build time.
void main() {
bootstrap(..., [serviceBindings, mapsRenderingBindings])
}

Other related issues (will add to if I create sub-issues):

#3251 (Makes the current system easier to digest)

Requires some input by @TedSander, @yjbanov if possible before pushing to Misko and Victor :)
Issue 1:
The following code snippet takes coordinates for a hand, and clips it to a rectangular window. Of the returned polygon, the endpoints are duplicated.

from matplotlib import path, transforms
import matplotlib.pyplot as plt
import numpy as np

hand = np.array(
[[ 1.64516129, 1.16145833 ],
[ 1.64516129, 1.59375 ],
[ 1.35080645, 1.921875 ],
[ 1.375 , 2.18229167 ],
[ 1.68548387, 1.9375 ],
[ 1.60887097, 2.55208333 ],
[ 1.68548387, 2.69791667 ],
[ 1.76209677, 2.56770833 ],
[ 1.83064516, 1.97395833 ],
[ 1.89516129, 2.75 ],
[ 1.9516129 , 2.84895833 ],
[ 2.01209677, 2.76041667 ],
[ 1.99193548, 1.99479167 ],
[ 2.11290323, 2.63020833 ],
[ 2.2016129 , 2.734375 ],
[ 2.25403226, 2.60416667 ],
[ 2.14919355, 1.953125 ],
[ 2.30645161, 2.36979167 ],
[ 2.39112903, 2.36979167 ],
[ 2.41532258, 2.1875 ],
[ 2.1733871 , 1.703125 ],
[ 2.07782258, 1.16666667 ]])

(r0, c0, r1, c1) = (1.0, 1.5, 2.1, 2.5)

poly = path.Path(np.vstack((hand[:, 1], hand[:, 0])).T, closed=True)
clip_rect = transforms.Bbox([[r0, c0], [r1, c1]])
poly_clipped = poly.clip_to_bbox(clip_rect).to_polygons()[0]

print(len(poly_clipped[:, 0]), len(poly_clipped[:, 1]))

plt.plot(hand[:, 0], hand[:, 1], 'r-')
plt.plot(poly_clipped[:, 1], poly_clipped[:, 0], 'go-')
plt.show()

print(poly_clipped[-2:, :])

Issue 2:
Problem

Trying to combine subplot_mosaic with axes using various different projections (e.g. one rectilinear axes and one polar axes and one 3d axes) has been requested a few times (once in the original subplot_mosaic thread IIRC, and in #20392 too), and it's something I would recently have been happy to have, too.

Pushing projections directly into subplot_mosaic seems ripe for API bloat, but perhaps another solution would be to add figure.gridspec_mosaic(...) which takes the same arguments as subplot_mosaic, but returns a dict of subplotspecs, such that one can do something like

specs = fig.gridspec_mosaic(...)
d = {
"foo": fig.add_subplot(specs["foo"], projection=...),
"bar": fig.add_subplot(specs["bar"], projection=...),
...
}

As a side point, I do find the repetition of fig in each call to add_subplot a bit jarring (as the underlying gridspec is bound to the figure, so that information is actually redundant). Back in #13280 I had proposed to add SubplotSpec.add_subplot() (adding to the figure to which the gridspec is bound), which would allow one to write, here,

specs = fig.gridspec_mosaic(...)
d = {
"foo": specs["foo"].add_subplot(projection=...),
"bar": specs["bar"].add_subplot(projection=...),
...
}

but that idea got shot down back then and even if we decide not to revisit it, even the first form would be nice to have.

Thoughts?

Proposed solution

No response
Issue 1:
Hello,

similar to caffe, keras should have model zoo so that people can replicate results of others. does anyone agree on that?

Issue 2:
Mentioned in the "mega-issue" #100, though it would be worth having a separate one.

The simplest model zoo is a github wiki page, another option it to have it as a page in the documentation and receive updates via push requests.

I think model zoo matters most for models that take "more 6 hours to train" (i.e. a large fraction of 24h).
Issue 1:
As discussed with @JeffBezanson in the Slack, @threads still uses a static schedule. However, there are some cases where we are using it as a simple way to express a lot of similar computations to be done on threads, each of which is actually quite expensive and not the same size. Thus for our purposes it would make sense to utilize @par to get the dynamic scheduling, but it makes sense "aesthetics-wise" to just put @threads on the loop. Thus it would make sense to have something like @threads dynamic for i in ... where

macro par(expr)
thunk = esc(:(()->($expr)))
quote
local task = Task($thunk)
task.sticky = false
schedule(task)
task
end
end

it turns the loop

_f = (i) -> # inner expression of the loop
for i in 1:100
@par _f(i)
end

If I'm not mistaken that's all that's necessary?

Issue 2:
Apologies if this is a duplicate - did a quick search, couldn't find any issues related to this. Just started learning Julia. When learning a language I prefer to download documentation and read it off-line during commutes.

There is a minor annoyance with the downloadable html version of the documentation as is: the in-document hyperlinks end with a forward slash (for example "julia-latest/manual/parallel-computing/") but to be valid they should end with the "index.html" document ("julia-latest/manual/parallel-computing/index.html").
Issue 1:
I am trying to use a decorator with an anonymous class (class expression) on TypeScript 1.8.9 and am receiving the error: "error TS1206: Decorators are not valid here."

const decorator: MethodDecorator = function (target: Object, propertyKey: string,
descriptor: TypedPropertyDescriptor<any>): TypedPropertyDescriptor<any> {
return descriptor;
};
const C = class {
@decorator method() {}
};

I didn't see anything addressing decorating anonymous classes in the roadmap, so I am filing this issue to either provide clarification to other people in my situation or to mark a bug.

Issue 2:
Not sure if this is by design or not, but the following gives a compile error of "Decorators are not valid here" with TypeScript 1.8:

let testClass = new class {
testMethod(@myDecorator date: Date): any {
return date;
}
}();
Issue 1:
Hi, has the .divider-vertical for navbars been dropped from bootstrap 3, or is it just a feature overlook? I don't see it in neither docs nor code.

Issue 2:
In Bootstrap, all components are defined using classes.

But if someone wants to use BS with less, without any classes in markup, it is possible, but the classes will still be defined in the CSS file, adding useless cluter to the CSS file.

Another problem caused by this is in the case we just want to quickly override a component. Since they all are classes, we have to either make a copy of the component less file, change it, and include it instead of the original one, or negate already defined properties.

If components were defined as mixins, and then in a separate file affected to a class, we could just use the mixin and not import the file in which the class is defined.

For example, one might want to use panel for its own markup :

<div id="my-panel">...</div>

@import "panels.less";

#my-panel {
.panel;
}

That works, but in the final CSS, we would end with 2 rule sets, one for .panel, and one for #my-panel.

The less file for the panel component, "panels.less" contains :

.panel {
margin-bottom: @line-height-computed;
background-color: @panel-bg;
border: 1px solid transparent;
border-radius: @panel-border-radius;
.box-shadow(0 1px 1px rgba(0,0,0,.05));
}

To make this possible, we could split components in 2 files. One containing the mixin, named e.g. "panels.mixins.less" :

.panel() {
margin-bottom: @line-height-computed;
background-color: @panel-bg;
border: 1px solid transparent;
border-radius: @panel-border-radius;
.box-shadow(0 1px 1px rgba(0,0,0,.05));
}

And another one, "panels.less", affecting the mixin to the default class assumed by bootstrap :

.panel {
.panel;
}

That would make the whole thing more modular and flexible.

Makes sense ?
Issue 1:
Hi, sometimes the shortcuts for PowerToys do not work - I doubt this is because we close the 'Settings' window of PowerToys. So instead of closing the app, I think it would be good if the app minimizes itself to the System Tray. I think this minor tweak will be a value addition to PowerToys. Thanks!

Issue 2:
Environment

Windows build number: [19041.330]
PowerToys version: v0.19.1
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Steps to reproduce

The cursor is not placed on the search box if there is some text.

For example, after using PT Run once, the search box will be filled of the text that was entered last time if you open it again.

Meanwhile the cursor will not be placed on the search box.

Expected behavior

The cursor would be placed on the search box automatically whenever it opened.
Issue 1:
Not sure if this behavior is expected, there is an easy workaround. After I press to clear a form, bound model is not updated with new/reset values, while form resets as expected. Using angular 2 beta 0

Issue 2:
When click the reset button, the form's value is still unchanged. See http://plnkr.co/edit/oBpDZRRUH7mmZct2hmDH?p=preview.
Issue 1:
Not challenge specific, but when you start a new challenge, where you click in the text interpreter doesn't align where the cursor appears. You may click in one spot to begin typing, but end up a few rows down and mess up your code until you click again.

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

Update:

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

The fix can be confirmed on the beta website.

The workaround currently on production website is:

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

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3

Operating System version: windows7

Java version: 1.8

Steps to reproduce this issue

Register services into two different groups

<dubbo:registry address="nacos://localhost:8848" group="group-dev-1"/>

<dubbo:registry address="nacos://localhost:8848" group="group-dev-2"/>

Groups are invalid and services are transferred to each other.

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

I want the same service to be registered in different groupings, and service invocations are isolated, rather than invoking each other.

Actual Result

Different groupings, Dubbo consumption call or the same service, did not achieve service grouping isolation

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.4-SNAPSHOT

Operating System version: MacOS

Java version: java11

Problems

1.When we create a application level condition router, we must set the application with the provider application's name, because dubbo-admin will query if the application have exported service.

2.But the router is used by consumer application, so the consumer application will use its application name to query router rules. So the rules will not be queried and executed.

I think the solution can be:

When we configure config-center in consumer application, can add a parameter called 'router.apps' or any other.

the value of router.apps should be several provider application names. When get different provider application router rules, we need to split the router.apps value add query each other's router rules.
Issue 1:
still cant write any "@"

what is so dificult to change that? i know 2 types of keyboards... the ones with the @ on the number key "2" and the one with the "@" on the "Q"

you just have to remove the shortcut on alt(right) + "Q"

you CANT work with atom in EUROPE!!! the keyboards in europe have the @ on the "Q"-key

Issue 2:
Original issue: atom/atom#1625

Use https://atom.io/packages/keyboard-localization until this issue gets fixed (should be in the Blink upstream).
Issue 1:
The browserplugin object width expands as expected when is used within a flexbox layout, but the height stays fixed at 150px - the height of the browserplugin object should also expand to the height of the parent .

Electron version: 0.36.9

Operating system: Windows 7 x64, Windows 10 x64

Issue 2:
A webview's object node doesn't get stretched vertically when the webview is part of a flexbox.

(the images show a different bug also: the webview is obviously being cut off at the bottom. this fixes itself upon resizing the window.)

I was able to fix this by adding display: flex to the webview and disabling the height: 100%; of the object node, except that was using dev tools. I can't find a way to style the object node (neither JS nor CSS seem to be ways to get to it) so this isn't a real solution.

That given, the only solution I can think of is being able to access the object node via JS. Even if it is annoying to have to set styling w/ JS, it'd still be a fair workaround.

I'm using v0.36.1 on WIndows 7, for any help that could (somehow) be.

It's not hard to replicate, and nothing else affects it outside of the html document and styling, so here's a document (just setup the quick start app using this for the page) that showcases this.

<!DOCTYPE html>
<html>
<head>
<style>
html, body {
margin: 0;
width: 100%;
height: 100%;
}
.container {
height: 100%;
display: flex;
flex-flow: column;
}
webview {
flex: 1 1 auto;
}
</style>
</head>
<body>
<div class='container'>
<webview src='https://www.google.com/'></webview>
</div>
</body>
</html>
Issue 1:
Given the typescript:

let impl: I = {
a: 12,
explicitVoid2: () => this.a, // ok, this: any because it refers to some outer object (window?)
explicitVoid1() { return 12; },
explicitStructural() {
return this.a;
},
explicitInterface() {
return this.a;
},
explicitThis() {
return this.a;
},
}

Expected:

var impl = {
a: 12,
explicitVoid2: function () { return _this.a; },
explicitVoid1: function () { return 12; },
explicitStructural: function () {
return this.a;
},
explicitInterface: function () {
return this.a;
},
explicitThis: function () {
return this.a;
}
};

Actual:

var impl = {
a: 12,
explicitVoid2: function () { return _this.a; },
explicitVoid1: // ok, this: any because it refers to some outer object (window?)
function () { return 12; },
explicitStructural: function () {
return this.a;
},
explicitInterface: function () {
return this.a;
},
explicitThis: function () {
return this.a;
}
};

Test failures:

thisTypeInFunctions

others?

Issue 2:
TypeScript Version:

1.8.0

Code

create project. create ASP.NET Web Application. create asp.net 5 empty website. create scripts folder in solution. create app folder in wwwroot. create typescript file. create tsconfig.json in scripts folder and build:

{
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"module": "commonjs",
"outDir": "../wwwroot/app/",
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"exclude": [
"node_modules",
"wwwroot"
]
}

Expected behavior:

I expect this to build with no errors. What is strange is that this works in Windows 10 but not on my Windows 7 machine with the same set up (Visual studio 2015, update 1, update 2 rc). When you look at the error it is displaying an incorrect path: tsconfig.json/tsconfig.json. It seems to think there is a folder tsconfig.json when there is not. I have ran the tsconfig contents through a json validator to make sure it is correct.

Actual behavior:

Error TS5014 Build: Failed to parse file 'C:/Users/Documents/Visual Studio 2015/Projects/CNAClient/src/CNAClient/scripts/tsconfig.json/tsconfig.json': Invalid character. CNAClient C:\Users\Documents\Visual Studio 2015\Projects\CNAClient\src\CNAClient\VSTSC 1
Issue 1:
Chapman opened SPR-9454 and commented

Spring version 3.1.0.RELEASE.

A page display 2 dropdown boxes, each of them contained over 100 values. There are two problems:

Render JSP is slow, over 2 seconds to display a simple page.

After running for a few days, the response time is slower, over 5 seconds to display the same page.

Verify GC log in Tomcat, there is no memory leak.

Is there any problem in OptionTag.renderOption method?

From other forumn, it also mentioned form:select has performance issue.

http://stackoverflow.com/questions/5246685/spring-web-mvc-huge-performance-issues-when-rendering-view

Affects: 3.1 GA

Issue Links:

#17078 SelectedValueComparator triggering a lot of database lookups with DomainClassConverter ("duplicates")

Issue 2:
Derek Beauregard opened SPR-9602 and commented

The javadoc for BeanFactory.getType(<bean_name>) specifies that it will "Determine the type of the bean with the given name. More specifically, determine the type of object that getBean(java.lang.String) would return for the given name."

However, when using AOP, there are cases where this will not hold true. We have demonstrated two cases: 1) when using the lazy-init="true" attribute on a bean which will have an AOP proxy, and 2) when a bean using ApplicationContextAware calls getType(), for a bean which will have an AOP proxy, in it's init-method.

In both cases getType(<name>) can return a different type than getBean(<name>).class(). More specifically getType() will return the base class of the bean and not the proxy, which getBean().class() will return. After calling getBean(), future calls to getType() will return the correct type, the proxy.

We have ran into issues with the second case when using Mule + Spring.

I have attached a sample Maven project demonstrating the first case, with lazy-init.

-Derek

Affects: 3.1 GA

Attachments:

SpringLifecycle.zip (9.18 kB)

Issue Links:

#14272 BeanFactory.getType(String) may not return a Proxy class depending on the order of bean declarations ("duplicates")