WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Code Sample, a copy-pastable example if possible

Case 1

import pandas as pd
df = pd.DataFrame({
'a' : [1,1,1,2,2,2,3,3,3],
'b' : [1,2,3,4,5,6,7,8,9],
})
df.groupby('a', as_index=False).agg({'a': 'count'})

Case 2

import pandas as pd
df = pd.DataFrame({
'a' : [1,1,1,2,2,2,3,3,3],
'b' : [1,2,3,4,5,6,7,8,9],
})
df.groupby(['a']).agg({'a': 'count'}).reset_index(level=0)

It returns "ValueError: cannot insert a, already exists" for both caes.

Problem description

So far, I could found 2 functions which calls "insert" function without "allow_duplicates=True" option.

One is in "def _insert_inaxis_grouper_inplace" from "pandas/core/groupby.py"

result.insert(0, name, lev)

and another is in "def reset_index" from "pandas/core/frame.py"

new_obj.insert(0, name, level_values)

For both cases, it result in ValueError as I wrote in Code section.

Expected Output

I think for both cases it should at least return some kind of dataframe without returning ValueError.

It should add a new column even it was duplicated.

It should add a new column with renaming it (say a_1 or a_x as new column).

My concern is

Is this a bug?

Should we supposed to aggrecate for "as_index=False" dataframe or do "reset_index" to aggregated dataframe?

(i.e. Are there any other way to rename column before doing reset_index or agg?)

If this were a bug, how could I fix it?

I could add "allow_duplicate=True" option for both lines.

Or, I could rename column by adding "_x" or "_dup" or any kind of suffix.

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.4.final.0

python-bits: 64

OS: Linux

OS-release: 4.8.0-53-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: ja_JP.UTF-8

LOCALE: ja_JP.UTF-8

pandas: 0.22.0

pytest: 3.5.0

pip: 9.0.3

setuptools: 39.0.1

Cython: 0.28.1

numpy: 1.14.2

scipy: 1.0.1

pyarrow: None

xarray: None

IPython: 6.2.1

sphinx: 1.7.2

patsy: 0.5.0

dateutil: 2.7.2

pytz: 2018.3

blosc: None

bottleneck: 1.2.1

tables: 3.4.2

numexpr: 2.6.4

feather: None

matplotlib: 2.2.2

openpyxl: 2.5.1

xlrd: 1.1.0

xlwt: 1.3.0

xlsxwriter: 1.0.2

lxml: 4.2.1

bs4: 4.6.0

html5lib: 1.0.1

sqlalchemy: 1.2.5

pymysql: None

psycopg2: None

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
From this SO question.

The user had two dataframes and wanted to use the second as the values argument to isin.

We'd need to think about how to handle the other index. In this case the user only cared about the columns, not the index labels.

Previous issues/PRs: #4258 and #4211
Issue 1:
David Victor opened SPR-8016* and commented

I am working with an API which returns an empty response body on http status 200 (OK) & a body which is populated on http status 400 (Bad Request).

When using RestTemplate.getForEntity() this is fine for the case where the body is populated, however I get an exception for the 'null body' case.

My understanding is one should provide a class implementing the ResponseBody interface & make the call via the execute() method on the RestTemplate.

This task is a request to consider that the use case here is common & whether Spring should offer something out of the box for this situation.

Also See: http://stackoverflow.com/questions/3322381/spring-resttemplate-behavior-when-handling-responses-with-a-status-of-no-content/3648447#3648447

Affects: 3.1 M1

Issue Links:

#12566 Better handling of 204 No Content in RestTemplate ("duplicates")

#17560 Resttemplate with HttpComponentsClientHttpRequestFactory will make HttpMessageConverterExtractor.extractData return null if the header contains content-encoding gzip, the connection is closed and the response isn't chunked ("is duplicated by")

#17309 RestTemplate cannot handle GZIP response since 4.1.3 ("is duplicated by")

9 votes, 19 watchers

Issue 2:
Keith Donald opened SPR-6745 and commented

This means annotation-driven type conversion does not work when binding to JavaBean properties with SpEL. This can be worked around by defining annotations on the method parameter of a setter method, and the return value of a getter, but is not ideal.

SpEL should be consistent with BeanWrapper with its TypeDescriptor configuration when getting and setting JavaBean properties. This likely means use of a BeanTypeDescriptor in those cases.

This was noticed when attempting to use a SpEL-based data mapper to map String fields in a Map to a JavaBean, where annotation-driven parsing rules were specified on JavaBean fields. This works fine with a BeanWrapper since the BeanTypeDescriptor exposes annotations from the field, getter, and setter. Unfortunately, SpEl just uses the default TypeDescriptor in these cases which only exposes parameter annotations.

Affects: 3.0 GA

Issue Links:

#11493 Allow SpEl expressions to be evaluated from JSPs ("is depended on by")

#10748 Create a Unified EL implementation with Spring EL

Referenced from: commits 117b138
Issue 1:
http://getbootstrap.com/javascript/#carousel

Change .carousel-control width to 16px from devtools

The left one is too close to the edge / the right one is too far from the edge.

Issue 2:
When your popover has non-html content (for example jquery object) and you reopen popover - events on content (jquery object) doesn't work.

@stefanneculai added empty() call in setContent (so jquery removes events). Commit:

41628c9
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

When using FormBuilder, FormGroup, FormControl, and Validators.required, the "required" and "ng-reflect-required" attributes are missing from the input. After this guide:

I use

.ng-valid[required], .ng-valid.required {
...
}

for signing inputs that are OK or erroneous. It sounds wrong to maintain validators in two different places.

Expected behavior

When Validators.required is added to the FormControl's synchronous validators, the .ng-valid[required] or .ng-valid.required should fire.

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/dQTANsTnaFbwXXjC35gD?p=info

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

It sounds wrong to maintain validators in two different places, but having such a CSS selector is nice to have.

Please tell us about your environment:

Arch Linux i686, Apache

Angular version: 2.0.0

Browser: [all | Chrome XX | Firefox XX]

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

Node (for AoT issues): node --version = v6.7.0

Issue 2:
Steps to reproduce and a minimal demo of the problem

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

What steps should we try in your demo to see the problem?

put some input longer than 2 characters in the first input

try to put some input longer than 2 characters in the second input

Current behavior

HTML5 specifies a number of validation attributes for form elements that browsers are able to interpret to various effects. These are useful for things like restricting input length (maxLength) and for doing DOM queries (e.g. find all required input elements).

Currently, Angular2 applies validation for a number of these attributes if they are applied in the form template. However, when forms are built using FormBuilder, validation is defined in the ControlMeta object and not as attributes on the form elements. ngControl does not apply these validations as attributes to the host element, so when FormBuilder is used, either these attributes will not get defined and therefore the browser's HTML5 validation behavior will not be in effect or validation constraints must be duplicated in the form templates and ControlMeta.

Expected/desired behavior

I think it would be useful to have the ngControl directive manage HTML5 validation attributes on the host form element based on the validators applied to the Control object.

Other information
Issue 1:
ISSUE TYPE

bug report

COMPONENT NAME

ec2_lc module

ANSIBLE VERSION

1.9.2

CONFIGURATION

basic configuration

OS / ENVIRONMENT

N/A

SUMMARY

ec2_lc fail to create when no default vpc in region

STEPS TO REPRODUCE

:

delete default vpc in some region

create non-default vpc by hand or ec2_vpc module

try run

- ec2_lc:
name: launch config
state: present
image_id: any
region: "{{ region }}"
key_name: any
security_groups: ['any group doesnt matter' ]
instance_type: t1.micro

EXPECTED RESULTS

Launch configuration should be created .

like:

awscli create launch config without any errors.

aws web console show same error but anyway create config.

ACTUAL RESULTS

error happen

failed: [127.0.0.1] => {"failed": true}
msg: BotoServerError: 400 Bad Request
<ErrorResponse xmlns="http://autoscaling.amazonaws.com/doc/2011-01-01/">
<Error>
<Type>Sender</Type>
<Code>ValidationError</Code>
<Message>No default VPC for this user</Message>
</Error>
<RequestId>a95979d7-28d0-11e5-a457-7b851bc22db7</RequestId>
</ErrorResponse>

Copied from original issue: ansible/ansible-modules-core#1719

Issue 2:
Issue Type:

Bug Report

feature request

Ansible Version:

ansible 1.9.3

Also tried with the early 2.0.0 version.

Ansible Configuration:

Nothing special, just the inventory, sudo_user, remote_user and added additional roles_path.

Environment:

Ubuntu 14.04 for manager and managed

Summary:

I’m trying to auto-configure elb and asg, but when using the ec2_lc module for the preparation I get the error that I don’t have a default VPC

Steps To Reproduce:

Try to run the prepare launch task using ec2_lc module without a default VPC

Expected Results:

It should work even when no default VPC is used, or an option to declare the VPC would be helpful.

Actual Results:

failed: [localhost] => {"failed": true}
msg: BotoServerError: 400 Bad Request
<ErrorResponse xmlns="http://autoscaling.amazonaws.com/doc/2011-01-01/">
<Error>
<Type>Sender</Type>
<Code>ValidationError</Code>

▽
1 ---
<Message>No default VPC for this user</Message>
</Error>
<RequestId>b4f24941-9384-32-9bc2-ef8e4ec57f44</RequestId>
</ErrorResponse>
FATAL: all hosts have already failed -- aborting
Issue 1:
Apparently this works well in practice and it's pretty robust and can work on heterogeneous columns.

The idea is to univariately sample from the training set. The obvious downside is that you have to store the training set.

For few unique values we could store the counts, but that would require separately treating those with few unique values and standard continuous.

Though for the continuous case we could also use binning to get around storing the training set.... hm...

cc @thomasjpfan

Issue 2:
The purpose would be to provide an unbiased, stochastic, univariate imputer. The imputer would replace missing values by values sampled uniformly at random from the non-missing values of the sample column.

This would require to add additional random_state constructor parameter to the class.

As for #11208 this strategy should work both on numerical and non-numerical dtypes.
Issue 1:
We have been iterating on Dashboard native filer behind the feature flag after announcing phase 1 testing #12148

All bugs that are identified have been fixed, lots of new features have been added since then, based on request and feedback from the community. We are heavily testing this week and will make all features fully available in days.

Many thanks to all the contributors(phase 2) 🙏

Project lead: @villebro

@simcha90 @agatapst @zhaoyongjie @amitmiran137 @suddjian

Range filter!!

User now can set up a range filter by selecting a numeric column. filter detects min and max values as DEFAULT VALUE. Set filter range by sliding.

Native time column select- Support multiple time columns!!

Native time grain filter!!!

Native new time filter - support LAST, PREVIOUS, CUSTOM, free text and ADVANCED syntax!!

Sort value and multiple select by default

To test, set "DASHBOARD_NATIVE_FILTERS": True in config.py

Please comment in the thread if you find any issues. We will address reported issues(bug) ASAP!

New feature requests will be considered, and implemented for next iteration in the future. 🙏

Issue 2:
Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

Expected results

Actual results

Steps to reproduce
Issue 1:
Hey I know there are a lot of issue related but none on 4.6.1.

The gif is really slow. I get it from direct file not an Url.

Glide.with(context).asGif().load(R.raw.update_needed).into(imageView);

Some idea?

Issue 2:
Glide Version: 3.7.0

Device/Android Version: 6.0

Issue details / Repro steps / Use case background:

dump the image when resource ready and check the quality that decode from resource & cache

Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with(image.getContext()).load(uri).asBitmap().diskCacheStrategy(DiskCacheStrategy.RESULT)
.signature(key).listener(new GlideImageListener() {

@Override
public boolean onResourceReady(Bitmap resource, Uri uri,Target<Bitmap> target,boolean isFromMemoryCache, boolean isFirstResource) {
BitmapUtils.dumpBmp(resource, "res_" + System.currentTimeMillis());
return super.onResourceReady(resource, uri, target, isFromMemoryCache, isFirstResource);
}
}).into(new GlideImageTarget(image));

dump compressed bitmap to jpeg & quality 100 and save the file.

the resource bitmap and the cache are the same size(width&height) ,but different file length!!

and resource bitmap quality is better than cahce one , they are different !!!

I don't know which part changed the image quality

so I write new ImageDecoder&ImageEncoder to test the part different , and still the same that save to cache before and decode from cache , the image quality had been changed.

Glide.with(image.getContext()).load(uri).asBitmap().diskCacheStrategy(DiskCacheStrategy.RESULT).imageDecoder(new ImageDecoder(image.getContext())).encoder(new ImageEncoder())
.signature(key).listener(new GlideImageListener() {

@Override
public boolean onResourceReady(Bitmap resource, Uri uri,Target<Bitmap> target,boolean isFromMemoryCache, boolean isFirstResource) {
BitmapUtils.dumpBmp(resource, "res_" + System.currentTimeMillis());
return super.onResourceReady(resource, uri, target, isFromMemoryCache, isFirstResource);
}
}).into(new GlideImageTarget(image));

so can you help me to check this issue ?
Issue 1:
Colin Yates opened SPR-1993 and commented

IIRC calling RequestUtils.getStringParameter() for a request parameter which had no value would return "". In Spring 2.0M4 it throws a BindingException. This is wrong IMHO :) because there is an explicit getRequiredStringParameter, the implication being that getStringParameter will handle empty parameters as well as missing parameters.

Stack trace:

org.springframework.web.bind.ServletRequestBindingException: Required string parameter 'password' contains no value

at org.springframework.web.bind.ServletRequestUtils$ParameterParser.validateRequiredParameter(ServletRequestUtils.java:530)

at org.springframework.web.bind.ServletRequestUtils$StringParser.validateRequiredString(ServletRequestUtils.java:678)

at org.springframework.web.bind.ServletRequestUtils.getRequiredStringParameter(ServletRequestUtils.java:492)

at org.springframework.web.bind.ServletRequestUtils.getStringParameter(ServletRequestUtils.java:449)

Use case: I have a form which allows a user to enter a password, that password may be null, or it may be empty, it seems acceptable to me that I should be able to do:

String password = ServletRequestUtils.getStringParameter(request, PASSWORD_PARAM);

if (!StringUtils.hasLength(password)) {

}

Thanks.

Affects: 2.0 M4

Issue Links:

#6695 Unexpected results from ServletRequestUtils.getStringParameters when parameter has empty String ("is duplicated by")

#8212 Bug in ServletRequestUtils getStringParameter

2 votes, 3 watchers

Issue 2:
Paul Benedict opened SPR-6162 and commented

Our team had two different context files with two bean definitions named the same. Truth be told, one developer didn't know another his other teammate already defined it elsewhere. Because bean definition classes weren't identical, the auto-wiring was failing (for apparently confounding reasons), and it took a while to track down what was going on.

Now <beans> already has @default-merge, but what about a new @default-override to stop this kind of "gotcha"? A duplicate should fail the context load. We found the override message in our log file eventually, but it was at INFO (we think it should be WARN). In any event, the default of @default-override should be "true" to retain backwards compatibility.

Affects: 2.5.6

1 votes, 1 watchers
Issue 1:
Hi, I'm new to github and still trying to find my feet. So if this comment is in the wrong place then please let me know.

I have noticed a change in the mixins.less which causes my code to break. It seems that there is a mistake (starting at line 388) where the @ and the { have been swapped around. This happens again in multiple places further down the file.

The error being returned is "parse error: failed at { .span(@index); } ../less/lib/bootstrap/mixins.less on line 578"

Issue 2:
With latest version of mixins.less lessphp (version 0.3.8) if showing error:

Fatal error: Uncaught exception 'Exception' with message 'parse error: failed at { .span(@index); } ../less/mixins.less on line 578'

There are no problems with previous versions with

(~".span@{index}") { .span(@Index); }
Issue 1:
Have this exception during indexation documents for suggest completion:

suggest_top_products:
client: default
index_name: my_index_suggest_top_products
use_alias: true
settings:
number_of_shards: 6
number_of_replicas: 0
index:
analysis:
analyzer:
completion:
type: custom
tokenizer: whitespace
filter: [short_word_delimiter, lowercase, asciifolding, apostrophe, op_synonyms, snow_english]
char_filter: html_strip

filter:
snow_english:
type: snowball
language: English

short_word_delimiter:
type: word_delimiter
generate_word_parts: true
generate_number_parts: true
catenate_words: true
catenate_numbers: true
catenate_all: true
split_on_case_change: true
preserve_original: true

op_synonyms:
type: synonym
ignore_case: true
expand: true
synonyms:
- "riflescopes, rifle scopes"
- "riflescope, rifle scope"

types:
auto_suggest:
mappings:
text: {type: string, index: not_analyzed}
top_products:
type: completion
index_analyzer: completion
search_analyzer: completion
payloads: true
preserve_position_increments: false
preserve_separators: false

Document is:

{"text":"Sure-Fire Z59 Click-On Lock-Out Tailcap for C2 / C3 / D2 / D3 / G3 / M2 / M3 / M3T / M4 Flashlights","top_products":{"input":["Sure-Fire Z59 Click-On Lock-Out Tailcap for C2 C3 D2 D3 G3 M2 M3 M3T M4 Flashlights","C2 C3 D2 D3 G3 M2 M3 M3T M4 Flashlights"],"output":"Sure-Fire Z59 Click-On Lock-Out Tailcap for C2 / C3 / D2 / D3 / G3 / M2 / M3 / M3T / M4 Flashlights","weight":"144","payload":{"type":"top_product","product_id":"32378","weight":"144","primary_image":"opplanet-surefire-tailcaps-switches-z59","rating":"0.00","review_count":"0","url":"surefire-tailcaps-switches-z59"}}}

Issue 2:
I use the context suggester for, well, suggestions, and I have more than 256 different categories.

When I try to index a document with 257 categories, I get the following error:

{
"error":"IllegalArgumentException[TokenStream expanded to 257 finite strings. Only <= 256 finite strings are supported]",
"status":500
}

I have uploaded a simple curl example here: https://gist.github.com/goldmar/2c3f64575df420a5413a
Issue 1:
I know this looks like a duplicate of #1636, but even with pandas 0.8.1, I don't get the expected plotting behaviour:

In [1]: from numpy import arange

In [2]: import matplotlib.pyplot as plt

In [3]: import pandas

In [4]: pandas.__version__
Out[4]: '0.8.1'

In [5]: plt.figure()
Out[5]: <matplotlib.figure.Figure at 0x33afd50>

In [6]: plt.plot(arange(12), arange(12), color='green') # this line is green
Out[6]: [<matplotlib.lines.Line2D at 0x337c150>]

In [7]: pandas.Series(arange(12) + 1).plot(color='green') # this line is blue
Out[7]: <matplotlib.axes.AxesSubplot at 0x33c80d0>

Issue 2:
This bug is easy to reproduce:

def printA(group):
print group.A.values[0]
return 0
pandas.DataFrame({'A': [0,0,1,1], 'B': [0,1,0,1]}).groupby('A').apply(printA)

This should print

0
1

and return a Series containing two zeroes. Although it does return the expected Series, it prints

0
0
1

So, the function printA is being applied to the first group twice. This doesn't seem to affect the eventual returned result of apply, but it duplicates any side effects, and if printA performed some expensive computation, it would increased the time to completion.
Issue 1:
Flutter Doctor

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> flutter doctor
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine ead227f118077d1f2b57842a32abaf105b573b8a...
Unzipping Dart SDK...
Updating flutter tool...
Downloading Material fonts... 2.7s
Downloading package sky_engine... 1.7s
Downloading common tools... 4.1s
Downloading windows-x64 tools... 17.7s
Downloading android-arm-profile/windows-x64 tools... 2.2s
Downloading android-arm-release/windows-x64 tools... 2.2s
Downloading android-arm64-profile/windows-x64 tools... 2.5s
Downloading android-arm64-release/windows-x64 tools... 2.4s
Downloading android-x86 tools... 10.4s
Downloading android-x64 tools... 10.9s
Downloading android-arm tools... 9.2s
Downloading android-arm-profile tools... 6.7s
Downloading android-arm-release tools... 7.2s
Downloading android-arm64 tools... 6.5s
Downloading android-arm64-profile tools... 6.1s
Downloading android-arm64-release tools... 6.0s
Downloading Gradle Wrapper... 1.0s
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.1.5, on Microsoft Windows [Version 10.0.16299.248], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK 19.1.0)
[√] Android Studio (version 3.0)
[!] IntelliJ IDEA Community Edition (version 2017.3)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[!] VS Code (version 1.21.0)
CreateProcessW failed 193

Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 14e926ccf48bfd1a)
CreateProcessW failed 193
Crash report written to C:\Windows\System32\flutter_02.log;
please let us know at https://github.com/flutter/flutter/issues.

> For more information about diagnosing and reporting Flutter bugs, please see [https://flutter.io/bug-reports/](https://flutter.io/bug-reports/).

Issue 2:
Steps to Reproduce

Trying to install Flutter in Windows 10 Machine. Clone the repo and added path and

run flutter doctor it downloaded sdk and getting error. deleted the cache folder in bin and retried but same error.

Logs

same as flutter doctor -V

Flutter Doctor

Updating flutter tool....
CreateProcessW failed 193
CreateProcessW failed 193
CreateProcessW failed 193
%1 is not a valid Win32 application.

Command: C:\Users\KD\Desktop\flutter\bin\cache\dart-sdk\lib\_internal\pub\asset\7zip\7za.exe e data.tar.gz
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...

Waiting for 0 seconds, press CTRL+C to quit ...

For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.