WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Describe the feature:

currently term aggregation execute below: the node coordinating the search process will request each shard to provide its own top size term buckets and once all shards respond, it will reduce the results to the final list that will then be returned to the client.

if try to get all terms agg, it will cause memory issue.

this request is below:

not based on top size term but top term on each shard's term dictionary and return the agg. maintain a context for iteration to traverse all terms and get exact results.

Issue 2:
Terms aggregation does not support a way to page through the buckets returned.

To work around this, I've been trying to set 'min_doc_count' to limit the buckets returned and using a 'exclude' filter, to exclude already 'seen' pages.

Will this result in better running time performance on the ES cluster as compared to getting all the buckets and then doing my own paging logic client side ?
Issue 1:
Easy:

in test_common, check that the ValueError raise has a useful error message. (see sparse test for an example)

put as many of the "specific" tests in test_clustering, test_transformers, ... into test_non_meta_estimators.

Not so easy:

calling fit forgets the previous model if any

check how classifiers handle only one class being present

test how models handle non-float input (does uint8 cause overflows?)

Things done

We should factorize common tests in a new file test_common.py (or maybe test_input.py?). Things to check:

can pickle the object

raise an exception when data contains nans

raise an exception for invalid input (e.g., np.matrix or sp.csr_matrix if dense only implementation)

raise an exception if n_features is not the same in fit and predict or transform

__repr__ and clone work

check that we can pickle and unpickle estimators.

check that all classifiers have a classes_ attribute (needs some fixes)

Edit by @amueller!

Edit by @GaelVaroquaux on Aug 13th 2014 to reflect progress in the codebase.

Issue 2:
I hope this is not a duplicate issue, but it's something I've been thinking about for a while. It would be nice to create a utility function to generate learning curves: both for hyperparameter value vs. score/error, and for number of training samples vs. score/error. It's something I do by-hand very often. I think an interface similar to grid search would work well, with an interface that looks like this:

Some setup code:

from sklearn.linear_model import RidgeClassifier
clf = RidgeClassifier()

from sklearn.datasets import load_digits
digits = load_digits()
X, y = digits.data, digits.target

Here's the first function we should create (arguments have the same meaning as in GridSearchCV)

alpha_range = np.logspace(-2, 2, 50)
train_score, test_score = validation_curve(clf,
param_grid={'alpha':alpha_range},
scoring='accuracy', cv=10)

import matplotlib.pyplot as plt
plt.semilogx(alpha_range, train_score, label='train')
plt.semilogx(alpha_range, test_score, label='test')

Here's the second function we should create (same argument meanings):

N_range = np.arange(10, int(0.8 * X.shape[0]), 10)
train_score, test_score = learning_curve(clf, N_range,
scoring='accuracy', cv=10)

plt.plot(N_range, train_score, label='train')
plt.plot(N_range, test_score, label='test')

I use this sort of thing all the time both in tutorials and in practice; it would be nice to have this functionality available in a convenience routine. Any thoughts on this?
Issue 1:
In the following example, julia fails to elide the view of the array if the view thinks the underlying array is a matrix rather than a vector.

function matrix_view(a)
@views a[:,1]
0
end

a = randn(3)
A = randn(3,1)
@btime matrix_view($a)
@btime matrix_view($A)

julia> @btime matrix_view($a)
48.592 ns (2 allocations: 96 bytes)

julia> @btime matrix_view($A)
1.541 ns (0 allocations: 0 bytes)

The problem might be related to the fact that the view thinks the parent is a matrix based on the appearance of the indexing expression, which can not be guaranteed.

view(a, :, 1)
3-element view(::Matrix{Float64}, :, 1) with eltype Float64:

Issue 2:
Taking out the new immutable out for a spin it behaves initially as expected.

immutable Foo
bar::Int
baz::String
end

qux = Foo(1, "hi")

julia> qux.bar = 2
ERROR: type Foo is immutable

Yeah. But when I use arrays I get a different unexpected behavior ....

immutable Timeseries
timestamp::Vector{CalendarTime}
values::Array
end

bing = Timeseries([now()], [1])

bing.values[1] = 2

julia> bing
Timeseries([2013-03-14],[2])
Issue 1:
Description

Setting the train_size to 50 does not result in the correct size of the train indices.

Steps/Code to Reproduce

Example:

from sklearn.datasets import fetch_mldata
from sklearn.cross_validation import StratifiedShuffleSplit

def get_dataset():
from sklearn.datasets import fetch_mldata
mnist = fetch_mldata('MNIST original')
# rescale the data, use the traditional train/test split
X, y = mnist.data / 255., mnist.target
test_size = 60000
X_train, X_test = X[:test_size], X[60000:]
y_train, y_test = y[:test_size], y[60000:]
return (X_train, y_train, X_test, y_test)

X_train, y_train, X_test, y_test = get_dataset()
seed = 1337
n_iter = 1
train_size = 100

sss = StratifiedShuffleSplit(y_train.reshape(-1), n_iter,
train_size=train_size, random_state=seed)

for train_indices, test_indices in sss:
print "Train indices:", len(train_indices)
print "Test indices:", len(test_indices)
assert(train_size == len(train_indices))

Expected Results

Train indices: 50
Test indices: 6000

Actual Results

Train indices: 54000
Test indices: 6000
Traceback (most recent call last):
File "stratisfied_shuffle_split_bug.py", line 23, in <module>
assert(50 == len(train_indices))
AssertionError

Additional Information

train_size = 50 seems to be a magic line. All other options I tested, like train_size = 25 and train_size = 100 result in the expected output.

Setting test_size results in a 1 off error

Setting test_size = 50 instead of the train_size results in:

Train indices: 59949
Test indices: 51

Versions

>>> import platform; print(platform.platform())
Darwin-15.6.0-x86_64-i386-64bit
>>> import sys; print("Python", sys.version)
('Python', '2.7.12 (default, Jun 29 2016, 14:05:02) \n[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)]')
>>> import numpy; print("NumPy", numpy.__version__)
('NumPy', '1.11.1')
>>> import scipy; print("SciPy", scipy.__version__)
('SciPy', '0.18.0')
>>> import sklearn; print("Scikit-Learn", sklearn.__version__)
('Scikit-Learn', '0.17.1')

Issue 2:
y = [0, 1, 2, 3] * 3 + [4, 5] * 5
X = np.ones_like(y)

splits = StratifiedShuffleSplit(n_iter=1, train_size=11, test_size=11, random_state=0)

train, test = next(iter(splits.split(X=X, y=y)))

assert_array_equal(np.intersect1d(train, test), [])
assert_equal(len(train), 11)
assert_equal(len(test), 11)

raise self.failureException('12 != 11')

this is a follow-up on #6379 and a sign that the logic is too complex. I'm doing a rewrite to fix this bug but it is not as clean as I'd like.
Issue 1:
Do you plan to add Typescript definition file?

Issue 2:
I have a small problem; I'm in love with two things at the same time: Typescript and Vue.

I tried a handfull different approaches to make them work together; using TS modules and/or classes with public/private/static properties to shim vue components is the best i got.

I love the intelisense, autocompletion and error hints i get by doing so!

But after all it is kind of hacky.

I wanted to ask you what you think about Typescript? Do you think it is possible to bring them togeher in a more natural way?

Maybe refactoring some parts of your extend routine (to make some of its internals reachable from a typescript construtor) could make a huge difference.
Issue 1:
It seems that the scikit-learn test job that runs against numpy master found a breaking change in numpy:

scikit-learn/scikit-learn#12467

Minimal reproduction case:

>>> import numpy as np
>>> np.__version__
'1.16.0.dev0+8aa1214'
>>> np.vstack([0] for _ in range(3))
Traceback (most recent call last):
File "<ipython-input-5-842ad8069d40>", line 1, in <module>
np.vstack([0] for _ in range(3))
File "/opt/venvs/py37/lib/python3.7/site-packages/numpy/core/overrides.py", line 151, in public_api
implementation, public_api, relevant_args, args, kwargs)
File "/opt/venvs/py37/lib/python3.7/site-packages/numpy/core/overrides.py", line 96, in array_function_implementation_or_override
return implementation(*args, **kwargs)
File "/opt/venvs/py37/lib/python3.7/site-packages/numpy/core/shape_base.py", line 260, in vstack
return _nx.concatenate([atleast_2d(_m) for _m in tup], 0)
File "/opt/venvs/py37/lib/python3.7/site-packages/numpy/core/overrides.py", line 151, in public_api
implementation, public_api, relevant_args, args, kwargs)
File "/opt/venvs/py37/lib/python3.7/site-packages/numpy/core/overrides.py", line 96, in array_function_implementation_or_override
return implementation(*args, **kwargs)
File "/opt/venvs/py37/lib/python3.7/site-packages/numpy/core/multiarray.py", line 193, in concatenate
return _multiarray_umath.concatenate(arrays, axis, out)
ValueError: need at least one array to concatenate

This used to work in past versions of numpy:

>>> import numpy as np
>>> np.__version__
'1.14.5'
>>> np.vstack([0] for _ in range(3))
array([[0],
[0],
[0]])

Issue 2:
As reported by @ilayn over in #12262:

There are other backwards incompatible changes for hstack and column_stack which were explicitly accepting generator expressions but now they don't.

Xref : scipy/scipy#9405
Issue 1:
What / Why

ERR! cb() never called!

When

n/a

Where

n/a

How

Current Behavior

*npm install jQuery -S

Steps to Reproduce

n/a

Expected Behavior

n/a

Who

n/a

References

n/a

Issue 2:
*Updated* as of 01/15/2021

Note: Please read this doc before filing a new issue.
Issue 1:
I noticed that compound assignment won't work with certain operators, like |> and ∘.

For example, the following code gives the error "ERROR: syntax: unexpected "="" on line 2:

a = 2
a |>= exp

But if I say, redefine the * operator as |>, it works perfectly:

import Base.*
* = |>
a = 2
a *= exp

outputs 7.389, as it should. The same thing happens with the function composition operator. So clearly the language is able to do this, the parser just doesn't handle it properly with all operators. I tried this in both 0.6.4 and 0.7 and got the same results. Is there some deeper reason why this doesn't currently work?

Issue 2:
Only a subset of available operators allow the shorthand OPERATOR= notation. I think the current situation is that only ASCII operators are covered.

e.g.

julia> a ×= b
ERROR: syntax: unexpected "="
in eval(::Module, ::Any) at ./boot.jl:236

I think it would be reasonable if all operators which allow binary infix syntax would also allow the shorthand. (This came up when I defined a custom ⊗ operator.)
Issue 1:
Hello there !

On any golang version (1.5 or 1.6 ).

# http://play.golang.org/p/71ZtR0mX9K
package main

import (
"encoding/json"
"fmt"
)

type FooBar struct {
Foo int `json:"Foo,omitempty"`
Bar int `json:"Bar,omitempty"`
}

var (
foo1 = `{"Foo": 1}`
bar1 = `{"Bar": 1}`
)

func main() {
fb := FooBar{}

json.Unmarshal([]byte(foo1), &fb)
fmt.Printf("%+v\n", fb)

json.Unmarshal([]byte(bar1), &fb)
fmt.Printf("%+v\n", fb)
}

outputs

{Foo:1 Bar:0}
{Foo:1 Bar:0}

I assume it's because as its not set it's considered empty and omitted.

But this can provoque weird behaviours when you reuse structs twice or have an unmarshal loop that read a file. Or worse, when you rewrite a that file with a loop in a different format.

Possible solutions:

add a reset() builtin, the one that's called just after allocation ? How would that work with pointers ?

make the encoding pkgs reset unset fields in Unmarshal using reflection ?

just tell people to be careful

cheers !

Issue 2:
I have a program that listens on tcp port 8080, gets its *net.TCPListener's File()
*os.File, and passes that to a child process via exec.Command.ExtraFiles. The idea is
for the child to then use that listener with net.FileListener.

As a test, I wanted to verify that the child would fail to re-listen on that port.

On Linux, as expected, the child gets an error trying to re-listen on port 8080.

On OS X, the listen succeeds (and lsof shows two entries with identical contents), but
the accept hangs forever on the second dup listener (which in itself isn't surprising).
What's surprising is that the dup Listen even succeeded.

I'd like to know if OS X just sucks, or we have some portability problem here.

I can refine this to a test case, but filing this bug before I forget.
Issue 1:
Two FIXMEs in simpleext: "/* FIXME: handle embedded types and blocks, at least */" in p_t_s_rec and "FIXME: check duplicates (or just simplify the macro arg situation)" in add_new_extension. I don't pretend to have any understanding of this code, so that's all I'll say.

The first one at least seems to have been added by @marijnh , so assigning to him.

Issue 2:
Given these two files:

// foo.rs
#[link(name="foo",vers="0.0")];
#[crate_type = "lib"];
use std::hashmap::HashMap;

pub type map = @mut HashMap<uint, uint>;

// end of foo.rs

// bar.rs
extern mod foo;

fn foo(a: foo::map) {
if false {
fail!();
} else {
let _b = a.get(&2); // error may for this line; doesn't happen if "let _b" is omitted
}
}

fn main() {}

// end of bar.rs

Yield this result:

$ rustc foo.rs && rustc -L . bar.rs
warning: no debug symbols in executable (-arch x86_64)
error: internal compiler error: no enclosing scope with id 18
Issue 1:
by claudiu.garba:

When trying to parse a huge csv file(450MB) the memory increase at 1.2GB, with a spike
at 1.6GB. The amount of time to finish the program is ~ 1,30 minutes.
OS: mac osx
go version :1.2, 64biti
code here: http://play.golang.org/p/jrVSqCcMpQ

The csv file has 450MB and ~ 1 milion rows. The code just print in terminal the current
row.
The csv has some errors inside, like missing comma, or spaces.
When I run the program, it stops for 10 seconds and then the memory increase from 600MB
to 1.6GB then, remain at 1.2GB.

Attachments:

small.txt (2993 bytes)

Issue 2:
I'm attempting to wrap libusb so I can interface with my kinect. I have basic control
working and have written the bulk and interrupt code, but isochronous requires using the
asynchronous API, which cgo seems to be having trouble with.

Consider the following code:

/* iso.go */
package usb

// #include <libusb-1.0/libusb.h>
import "C"

type Transfer C.struct_libusb_transfer
/* end */

The struct is documented here:
http://libusb.sourceforge.net/api-1.0/structlibusb__transfer.html

and defined here (see line 765):
http://libusb.sourceforge.net/api-1.0/libusb_8h_source.html

notably:
{...
struct libusb_iso_packet_descriptor iso_packet_desc[0];
...}

and cgo reports:
iso.go:7:15: struct size calculation error off=72 bytesize=64

$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM
build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ go version
go version go1

$ go env
GOROOT="/opt/go"
GOBIN=""
GOARCH="amd64"
GOCHAR="6"
GOOS="darwin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOTOOLDIR="/opt/go/pkg/tool/darwin_amd64"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread -fno-common"
CGO_ENABLED="1"
Issue 1:
Basically most times I want to make a dialog that instead of having a defined size takes all the available size (up to maxSize=xs/md...) instead of adapting to the content size. To do this I had to make my own style around it:

import { default as Dialog, DialogProps } from 'material-ui/Dialog';
import withStyles from 'material-ui/styles/withStyles';
import * as React from 'react';

export const FullWidthDialog = withStyles<DialogProps>(
{
paper: {
width: '100%'
}
}
)(
(props: DialogProps) => {
const { children, ...others } = props;
return (
<Dialog
{...others}
>
{children}
</Dialog>
);
}
);

Would it be sensible to add a "fullWidth" to the dialog property that does that for you?

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

Expected Behavior

N/A

Current Behavior

N/A

Context

See the description above

Your Environment

Tech
Version

Material-UI
latest beta

React
15

browser
Chrome 61

TS
2.5.2

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

Expected Behavior

The popover should show a default animation when it pops in.

Current Behavior

The popover animation is not showing a default animation when it pops in.

Steps to Reproduce (for bugs)

Open a popover using open={true}

Context

Just fyi, the animation appears to be working with v0.18.7

Your Environment

Tech
Version

Material-UI
0.19.0

React
15.4.2

browser
Chrome

etc
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-label-bootstrap-wells has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Hi,

The Task: Add an h4 element to each of your

elements.

is correct but it is marked as incomplete / incorrect. I am unable to progress forward.

I have attached a screenshot for visual clarification.

Thanks,

J

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-comment-your-javascript-code has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

In the second part of the challenge, where you're required to create a multi-line comment, if you were to spread that comment across multiple lines, the challenge would not allow you to pass even though the answer is technically correct.

Eg:

/*

This is a multi-line comment

*/
Issue 1:
Currently there are 2 options:

get all the columns, but without knowledge which one is the target one

get 2 columns splitted, again without knowledge of target column name.

Issue 2:
As far as I know, Sklearn does not provide a way to get the names of the "columns" corresponding to the target. It would be useful to choose an standard name for this data, so that Sklearn-compatible datasets can provide this information.

This has been asked before in StackOverflow:

https://stackoverflow.com/questions/50877785/how-to-obtain-target-feature-name-from-a-sklearn-bunch

but I have not seen any issue here. However in PR #2865 it was hinted that it could be useful. Also, I think that if in the future Sklearn provides multi-output datasets it will be necessary.

I propose that this data will be made available as "target_feature_names", as it seems clear what that means.
Issue 1:
VSCode Version: 1.0.0

OS Version: Mac 10.11.4

Steps to Reproduce:

Change the theme to Solarized Dark.

The SideBar still black.

Issue 2:
VSCode Version: 0.10.11 Commit f291f4a

OS Version: Linux 4.2.0-34-generic #39~14.04.1 (Ubuntu)

Steps to Reproduce:

Open known good partial (dust template), e.g, the menuItem.toggle.dust.emacs attached

Add and delete a space, then save.

Re-run dust rendering

The output will be missing several elements. Given the dust template I'm using, I believe it may be a failure in the eq test. BUT I know this isn't a Dust.js problem because it works if I save it from emacs:

Steps to fix:

Open partial saved above, e.g., the menuItem.toggle.dust.code attached, in a good editor, e.g., emacs.

Add and delete a space, then save

Re-run dust rendering.

The output will be as expected. I was able to toggle back & forth between the two editors and consistently reproduce the results. What emacs saved worked fine. What code saved did not.

I've attached the two partials. I'm guessing it's a unicode/text format issue. None of my diff tools showed any difference, but CLEARLY dust.js is treating one differently from the other.

menuItem.toggle.dust.zip

FWIW, here is the template in those attached files:

{@eq key=widget value="true"}
{:else}
<div class="text"><span>{text}</span></div>
<div class="toggleBox">
<div class="toggleRight">
<div class="text"><span>{true.text}</span></div>
<img class="toggle" src="../../images/menu/toggle_right.png">
</div>
<div class="toggleLeft">
<div class="text"><span>{false.text}</span></div>
<img class="toggle" src="../../images/menu/toggle_left.png">
</div>
</div>
{/eq}
Issue 1:
Elements that trigger tooltips/popovers, as well as child elements in popovers, seem to be incorrectly affected by the input-append class. These elements lose their top-right and bottom-right border-radius when their associated tooltip/popover displays.

Here is a jsFiddle that shows the issue: http://jsfiddle.net/gb2YN/

Reproducible with Bootstrap 2.2.2 in Chrome 24, Firefox 18.0.2, and IE9.

Doesn't appear to have been fixed in 2.3.0-wip yet.

Issue 2:
<div class="input-append">
<select class="input-medium required">
<option value="">--Select--</option>
</select>
<span class="add-on">Test</span>
</div>

$('span.add-on').tooltip({
placement: 'bottom',
title: 'Test'
});​

Using this code, the tooltip will work fine, but the rounded-corners will be removed from the span.addon due to this selector:

.input-append .last-child, .input-append .btn:last-child {
-webkit-border-radius: 0 3px 3px 0;
-moz-border-radius: 0 3px 3px 0;
border-radius: 0 3px 3px 0;
}

When the span.addon is hovered over, it is no longer the last child and thus the selector is instead applied to the tooltip div. My suggested fix for this (IE8+, FF3.5+, CH2+) is below:

.input-append .add-on:last-of-type, .input-append .btn:last-child {
-webkit-border-radius: 0 3px 3px 0;
-moz-border-radius: 0 3px 3px 0;
border-radius: 0 3px 3px 0;
}

JSFiddle
Issue 1:
After upgrading to VSCode 0.10.6 I've been getting IntelliSense suggestions when writing a line comment (starting the line with //) in C# projects. I use VScode for developing Unity3D projects on OSX 10.11.2.

It's an understatement to call it annoying when I write e.g. "will do" and "do" auto completes to a full do...while loop.

Issue 2:
I'm trying to fix microsoft/vscode-go#103, but as far as I can tell this isn't possible currently without tokenizing the whole file again in my extension and manually checking whether I'm in a comment to suprress providing results.

It would be nice if the CompletionItemProvider provided a setting to suppress it's results when in certain tokens/scopes.

The implementation of the TypeScript completion provider has an excludeTokens which seems to play this role but I can't get that to work in my own extension.
Issue 1:
Eugene Kuleshov opened SPR-1415 and commented

When implementing session or message-driven EJB's using Spring's convenience EJB classes it would be nice if you can actually define special bean in Spring application context, then when this bean will be requested, it would inject all the dependencies declared in it into the caller. Then user would just add bunch of set* methods and they will be automatically called upon context resolution from the super class (from ejbCreate() method).

Issue Links:

#5053 EJB's that reference other beans cannot use Dependency Injection ("duplicates")

Issue 2:
Mike Youngstrom opened SPR-7967 and commented

mvc:annotation-driven is not very configurable. I understand the desire for simplicity here but occationally I have the desire to customize a small aspect of what mvn:annotation-driven does and I end up having to rip out the use of mvc:annotation-driven entirely. So I'm hoping that this feature request can make it into mvc:annotation-driven.

My situation is that I'm exposing some services in both XML and Json. It would be great if I could use JaxB annotations on my model objects to expose both.

Jackson provides an the JaxbAnnotationIntrospector that supports this but it is not configured by default.

It would be great if the mvc:annotation-driven handler could be extended to support some way of setting this introspector on the MappingJacksonHttpMessageConverter.class it creates.

Documentation for this Introspector can be found here. http://wiki.fasterxml.com/JacksonJAXBAnnotations

I'm thinking perhaps just the ability to specify a custom ObjectMapper would suffice.

<mvc:annotation-driven jackson-object-mapper="someObjectMapper"/>

Affects: 3.0.5