WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
There is quite a number of duplicated code in different node status related test functions, such as mock cadvisor intialization, expected node status etc.

It should be cleaned up. :)

Issue 2:
Admittedly this one is an edge case, but we had an issue that nearly locked us out of our AWS account following data loss on the kubernetes master. Specifically:

We turned up a k8s cluster integrated with AWS

An issue in our infrastructure caused us to lose the master's etcd storage (since resolved)

The new master came up, we recreated some of the lost state (i.e. kubectl create -f service.yml) and the master tried to resync that partial state with AWS, failing on duplicate resources

Until those resources were manually removed, the controller retried each operation often enough that our account become API rate limited, degrading access to our infrastructure

The obvious solution is to not lose the master's data, and we have fixed our mistake there. That said, as the flow above nearly locked us out of our AWS account, it would be nice if the controller had responded a little better to the partial data scenario. Two changes that would have helped us:

Increasing backoffs (random, exponential, fibonacci, etc.) around AWS API retries especially when the previous call failed due to a "RequestLimitExceeded" – though this does have the downside of pushing out time to convergence when the underlying issue is fixed

A way for the AWS integration to self-heal: when it fails to create e.g. a route because that route already exists in the table, a nicer error handling strategy might simply say "Creation successful!" – the situation is more difficult with security groups that have some state that potentially requires diffing, but in our case the issue occurred in the degenerate case where the controller was trying to recreate the exact resource that already existed

For context, the log messages we saw from the controller (there was some variation depending on which exact request was throttled):

E0916 23:21:30.178529 1 servicecontroller.go:171] Failed to process service delta. Retrying: failed to create external load balancer for service default/hello-world: error listing AWS subnets: RequestLimitExceeded: Request limit exceeded.
status code: 503, request id: []

E0916 22:53:56.348372 1 routecontroller.go:91] Could not create route ROUTE_ID 10.244.0.0/24: error creating AWS route (10.244.0.0/24): RequestLimitExceeded: Request limit exceeded.

The underlying issues seemed to stem from:

E0916 23:35:37.607891 1 servicecontroller.go:171] Failed to process service delta. Retrying: failed to create external load balancer for service default/hello-world: InvalidGroup.Duplicate: The security group 'SECURITY_GROUP_ID' already exists for VPC 'VPC_ID'

E0916 22:52:56.239869 1 routecontroller.go:91] Could not create route ROUTE_ID 10.244.3.0/24: error creating AWS route (10.244.3.0/24): RouteAlreadyExists: The route identified by 10.244.3.0/24 already exists.

Deleting both of those resources did appear to resolve the problem. Thanks for reading my book!
Issue 1:
Migrated issue, originally created by Wichert Akkerman (@wichert)

I'm used to metadata.create_all() being very smart and creating everything as needed. I seem to have found a gap in its knowledge though: enum types that are only used in PostgreSQL ARRAY types are not created. The attached test case gives this output:

2015-05-29 14:40:08,477 INFO sqlalchemy.engine.base.Engine select version()
2015-05-29 14:40:08,477 INFO sqlalchemy.engine.base.Engine {}
2015-05-29 14:40:08,478 INFO sqlalchemy.engine.base.Engine select current_schema()
2015-05-29 14:40:08,478 INFO sqlalchemy.engine.base.Engine {}
2015-05-29 14:40:08,479 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
2015-05-29 14:40:08,479 INFO sqlalchemy.engine.base.Engine {}
2015-05-29 14:40:08,479 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
2015-05-29 14:40:08,479 INFO sqlalchemy.engine.base.Engine {}
2015-05-29 14:40:08,480 INFO sqlalchemy.engine.base.Engine show standard_conforming_strings
2015-05-29 14:40:08,480 INFO sqlalchemy.engine.base.Engine {}
2015-05-29 14:40:08,481 INFO sqlalchemy.engine.base.Engine select relname from pg_class c join pg_namespace n on n.oid=c.relnamespace where pg_catalog.pg_table_is_visible(c.oid) and relname=%(name)s
2015-05-29 14:40:08,481 INFO sqlalchemy.engine.base.Engine {'name': 'pizza'}
2015-05-29 14:40:08,482 INFO sqlalchemy.engine.base.Engine
CREATE TABLE pizza (
id SERIAL NOT NULL,
toppings topping[],
PRIMARY KEY (id)
)

2015-05-29 14:40:08,482 INFO sqlalchemy.engine.base.Engine {}
2015-05-29 14:40:08,483 INFO sqlalchemy.engine.base.Engine ROLLBACK
Traceback (most recent call last):
File "/Users/wichert/Jzoo/backend/lib/python3.4/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
context)
File "/Users/wichert/Jzoo/backend/lib/python3.4/site-packages/sqlalchemy/engine/default.py", line 442, in do_execute
cursor.execute(statement, parameters)
psycopg2.ProgrammingError: type "topping[]" does not exist
LINE 4: toppings topping[],

Attachments: x.py

Issue 2:
Migrated issue, originally created by Anonymous

metadata.create_all do not create work_place_roles if Enum in sqlalchemy.dialects.postgresql.ARRAY

class WorkPlacement(Base):
__tablename__ = 'work_placement'

roles = Column(ARRAY(Enum('manager', 'place_admin', 'carwash_admin',
'parking_admin', 'service_admin', 'tire_admin',
'mechanic', 'carwasher', 'tire_mechanic', name="work_place_roles")))

i need do so:

class WorkPlacement(Base):
__tablename__ = 'work_placement'

tmp_role = Column(Enum('manager', 'place_admin', 'carwash_admin',
'parking_admin', 'service_admin', 'tire_admin',
'mechanic', 'carwasher', 'tire_mechanic', name="work_place_roles"))
roles = Column(ARRAY(Enum(name="work_place_roles")))
Issue 1:
The desire average would be 38/4 = 9.5.

POST /sports/athlete/13

{"name":"john","rating": ["8", "10"]}

POST /sports/athlete/14

{"name":"john","rating": ["10", "10"]}

POST /sports/athlete/_search

{

"size": 0,

"aggregations": {

"the_name": {

"terms": {

"field": "name",

"order": {

"rating_avg": "desc"

}

},

"aggregations": {

"rating_avg": {

"avg": {

"field": "rating"

}

}

}

}

}

}

However the query return a value of 9.3333, which is 28/3. The duplicated value in a doc has been ignored.

Issue 2:
Description of the problem including expected versus actual behavior:

On Elasticsearch 2.2.1, when loading some geojson shapes into a field indexed with:

"location": {"type": "geo_shape", "precision": "1600m"}

Throws the following error:

Provided shape has duplicate consecutive coordinates at: (180.0, -90.0, NaN)

I believe the geojson is valid and should load fine.

Steps to reproduce:

Load the 'geometry' field of this json blob of Antarctica into a geoshape index

This is a reprise of #14014 but with more details included. I agree with the analysis in that ticket by @danni that this is a artefact of the shape being simplified before being indexed - the 'duplicate consecutive coordinates' being referred to in the error quite simply don't appear even once in the original data.
Issue 1:
Issue Type:

Bug

Ansible Version:

Have encountered it in head, 1.5.2 and 1.5.3, according to discussions on irc it has been around for quite some time.

Environment:

Deploy os is Os X mavericks servers deployed to is debian 7.

Summary:

When using child groups to be able to override som variables, the variable from the parent group is the one that gets used.

All tough this bug is not explicitly described in the pull request #6379 it did solve the problem. Tested the PR when merging with 1.5.3 branch.

Steps To Reproduce:

small example snippet (I can add full files if needed).

Inventory file:

[devproxyservers]
10.0.40.83
10.0.40.84

[proxyservers:children]
devproxyservers

proxyservers group vars

cert_path: "{{ base_dir }}/certs/{{ cert_name }}"
key_path: "{{ base_dir }}/certs/{{ key_name }}"

devproxyservers group vars

cert_path: "{{ base_dir }}/certs/fake_cert.crt"
key_path: "{{ base_dir }}/certs/fake_key.key"

Expected Results:

according to docs http://docs.ansible.com/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable the cild group vars should be used.

Actual Results:

The variables of proxyservers group is the variable that gets used

Issue 2:
Allow for nesting of groups within groups in the /etc/ansible/hosts Inventory File. A comparative (but not exact match) feature would be LUMPs in dsh.

Examples would be something like:

[datacenters]

east-coast-dc

west-coast-dc

[east-coast-dc]

eastcoast-webservers

eastcoast-appservers

[west-coast-dc]

westcoast-webservers

westcoast-appservers

[east-coast-webservers]

web1

web2

[west-coast-webservers]

web3

web4

[site-webservers]

east-coast-webservers

west-coast-webservers

There may be some better ways to accomplish some of the nesting via something like tagging classes/roles/location of host defs, but I haven't thought that completely through yet. Could be of the form:

host: location:class/role, i.e

web1:east-coast:webserver

app3:west-coast:appserver

webapp2:east-coast:appserver,webserver

Need to balance extensibility against simplicity here, but limiting the amount of duplication in the configuration will help out tremendously for inheritance and reduce errors and mistakes in forgetting to add hosts to multiple groups.
Issue 1:
Looks like the os.geteuid() is not available in windows. which is causing celery not start. Please do help with some fix.

Issue 2:
Traceback (most recent call last):
File "C:\Python27\Scripts\celery-script.py", line 9, in <module>
load_entry_point('celery==3.1.5', 'console_scripts', 'celery')()
File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\__main__.py", line 29, in main
main()
File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py", line 80, in main
cmd.execute_from_commandline(argv)
File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py", line 725, in execute_from_commandline
super(CeleryCommand, self).execute_from_commandline(argv)))
File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\base.py", line 300, in execute_from_commandline
return self.handle_argv(self.prog_name, argv[1:])
File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py", line 717, in handle_argv
return self.execute(command, argv)
File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\celery.py", line 671, in execute
).run_from_argv(self.prog_name, argv[1:], command=argv[0])
File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\worker.py", line 174, in run_from_argv
return self(*args, **options)
File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\base.py", line 263, in __call__
ret = self.run(*args, **kwargs)
File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\bin\worker.py", line 185, in run
maybe_drop_privileges(uid=uid, gid=gid)
File "C:\Python27\lib\site-packages\celery-3.1.5-py2.7.egg\celery\platforms.py", line 496, in maybe_drop_privileges
if os.geteuid():
AttributeError: 'module' object has no attribute 'geteuid'
Issue 1:
hi,

i have update to 0.14 version because i want to use a premade component which requires it. i've spent an hour more trying to debug why nothing renders, then i tried other components that worked, but they didn't render either.

then i googled and found that i need to require react-dom and ReactDOM.render

but this didn't help either. the render methods of all my components are not being called at all

how is that possible?

Issue 2:
Describe what you were doing when the bug occurred:

Scrolling through the components tree after inspecting a DOM element and selecting the "Components" tab.

Please do not remove the text below this line

DevTools version: 4.11.0-39713716aa

Call stack: at store_Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22171:35)

at store_Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22187:26)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29770:63

at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23893:18)

at Ii (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:14002:76)

at Hi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13993:10)

at uk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16728:86)

at tk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16245:11)

at qk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16237:23)

at jk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16221:5)

Component stack: at List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23588:30)

at div

at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:3111:5)

at div

at div

at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29531:47)

at div

at div

at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28680:3)

at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29121:3)

at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34645:52)

at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30035:5)

at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30157:5)

at div

at div

at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34264:3)

at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25356:3)

at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25963:3)

at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30300:3)

at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37639:3)
Issue 1:
This kind of crap is unacceptable. Python3.7 team should remove their collective head from their collective butt. (keyword mismatch)

jA$ scrapy shell

2018-07-08 14:42:44 [scrapy.utils.log] INFO: Scrapy 1.5.0 started (bot: scrapybot)

2018-07-08 14:42:44 [scrapy.utils.log] INFO: Versions: lxml 4.2.3.0, libxml2 2.9.2, cssselect 1.0.3, parsel 1.4.0, w3lib 1.19.0, Twisted 18.4.0, Python 3.7.0 (default, Jun 29 2018, 20:13:53) - [Clang 8.0.0 (clang-800.0.42.1)], pyOpenSSL 18.0.0 (OpenSSL 1.1.0h 27 Mar 2018), cryptography 2.2.2, Platform Darwin-15.6.0-x86_64-i386-64bit

2018-07-08 14:42:44 [scrapy.crawler] INFO: Overridden settings: {'DUPEFILTER_CLASS': 'scrapy.dupefilters.BaseDupeFilter', 'LOGSTATS_INTERVAL': 0}

Traceback (most recent call last):

File "/usr/local/bin/scrapy", line 11, in

sys.exit(execute())

File "/usr/local/lib/python3.7/site-packages/scrapy/cmdline.py", line 150, in execute

_run_print_help(parser, _run_command, cmd, args, opts)

File "/usr/local/lib/python3.7/site-packages/scrapy/cmdline.py", line 90, in _run_print_help

func(*a, **kw)

File "/usr/local/lib/python3.7/site-packages/scrapy/cmdline.py", line 157, in _run_command

cmd.run(args, opts)

File "/usr/local/lib/python3.7/site-packages/scrapy/commands/shell.py", line 65, in run

crawler = self.crawler_process._create_crawler(spidercls)

File "/usr/local/lib/python3.7/site-packages/scrapy/crawler.py", line 203, in _create_crawler

return Crawler(spidercls, self.settings)

File "/usr/local/lib/python3.7/site-packages/scrapy/crawler.py", line 55, in init

self.extensions = ExtensionManager.from_crawler(self)

File "/usr/local/lib/python3.7/site-packages/scrapy/middleware.py", line 58, in from_crawler

return cls.from_settings(crawler.settings, crawler)

File "/usr/local/lib/python3.7/site-packages/scrapy/middleware.py", line 34, in from_settings

mwcls = load_object(clspath)

File "/usr/local/lib/python3.7/site-packages/scrapy/utils/misc.py", line 44, in load_object

mod = import_module(module)

File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/init.py", line 127, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

File "", line 1006, in _gcd_import

File "", line 983, in _find_and_load

File "", line 967, in _find_and_load_unlocked

File "", line 677, in _load_unlocked

File "", line 728, in exec_module

File "", line 219, in _call_with_frames_removed

File "/usr/local/lib/python3.7/site-packages/scrapy/extensions/telnet.py", line 12, in

from twisted.conch import manhole, telnet

File "/usr/local/lib/python3.7/site-packages/twisted/conch/manhole.py", line 154

def write(self, data, async=False):

^

SyntaxError: invalid syntax

Issue 2:
The goal is to add python 3.7 to travis and pass all tests, the first beta was already released at the end of January.
Issue 1:
Steps to Reproduce

I would like to show the hintText of a textField until the user touches somewhere else.

The touchpoint could be deep in the widget tree and I dont know how to obtain the current focused node somewhere in the widget tree to call unfocused, to show the textField inactive and hide the keyboard. This might be just an issue with my understanding of flutter or the documentation which lacks example and does not explain how to use the patterns.

The code example shows the GestureDetector which is calling unfocus on the node. This is simple here because the focusNode is easily accessible in the same widget. The question here is how to do the same in a nested widget tree. What is the recommended pattern to do so?

@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text(widget.title),
),
body: new Stack(children: <Widget>[
new GestureDetector(
excludeFromSemantics: true,
onTapDown: (_) {
_focusNode.unfocus();
}),
new Column(children: <Widget>[
new TextField(
focusNode: _focusNode,
decoration: new InputDecoration(
border: null,
hintText: _focusNode.hasFocus ? 'FOCUS' : 'no focus')),
new RaisedButton(
child: new Text('Remove Focus'),
onPressed: () => _focusNode.unfocus())
])
]));
}

final FocusNode _focusNode = new FocusNode();

@override
void initState() {
super.initState();
_focusNode.addListener(() {
setState(() {});
print('Has focus: $_focusNode.hasFocus');
});
}

Flutter Doctor

[√] Flutter (on Microsoft Windows [Version 10.0.16299.192], locale en-US, channel dev)
• Flutter version 0.0.21 at c:\sdks\flutter
• Framework revision 2e449f06f0 (2 days ago), 2018-01-29 14:26:51 -0800
• Engine revision 6921873c71
• Tools Dart version 2.0.0-dev.16.0
• Engine Dart version 2.0.0-edge.da1f52592ef73fe3afa485385cb995b9aec0181a

[√] Android toolchain - develop for Android devices (Android SDK 27.0.2)
• Android SDK at C:\Users\ride4\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] Android Studio (version 3.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)

[√] IntelliJ IDEA Community Edition (version 2017.2)
• Flutter plugin version 19.1
• Dart plugin version 172.4343.25

[√] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)

Issue 2:
It's not clear how to accomplish this.
Issue 1:
Hi!

I use CELERYD_STATE_DB to persist revoked tasks.

Flower reports hundreds of duplicated lines in that file ...

Indeed, when I read the file, I get :

# in a celery shell
>>> from celery.worker import state
>>> p = state.Persistent(state, CELERYD_STATE_DB)
>>> p._revoked_tasks
LimitedSet(1861)
>>> len(p._revoked_tasks.as_dict())
6

So, when merging revoked task lists, there should be some attempt at de-duplicating them, no ?

Issue 2:
I think that it would be a good idea to release a new version that includes all bug fixes so far. @thedrow @auvipy thoughts?

I can help with the changelog.
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

azure_rm_deployment

ANSIBLE VERSION

ansible 2.4.0.0
config file = /home/boss/automation/ansible.cfg
configured module search path = [u'/home/boss/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/boss/.local/lib/python2.7/site-packages/ansible
executable location = /home/boss/.local/bin/ansible
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

CONFIGURATION

RETRY_FILES_ENABLED(/home/boss/automation/ansible.cfg) = False

OS / ENVIRONMENT

Ubuntu 14

SUMMARY

I created a resourcegroup in Azure and gave it 3 tags.

Running a playbook with a azure_rm_deployment, did correctly deploy the VM in this case but removed the tags from the resourcegroup.

STEPS TO REPRODUCE

See summary

EXPECTED RESULTS

The resourcegroup tags should not touched

ACTUAL RESULTS

Issue 2:
the man pages contain two AUTHOR sections, e.g. in ansible(1):

AUTHOR

Ansible was originally written by Michael DeHaan. See the AUTHORS file

for a complete list of contributors.

[...]

AUTHOR

:doctype:manpage

Author.

the second one seems unnecessary

Regards,

Markus
Issue 1:
Related to #1578, nan's are still converted to -maxint when it is assigned by slicing.

>>> np.__version__
'1.9.0.dev-6857173'
>>> i = np.array([1, 2, 3, 4, 5])
>>> i[3] = np.nan
ValueError: cannot convert float NaN to integer
>>> i[0:2] = np.nan
array([-9223372036854775808, -9223372036854775808, 3,
4, 5])

Issue 2:
This seems inconsistent:

In [38]: x = np.array([np.nan, 1, 2, 3])

In [39]: x
Out[39]: array([ nan, 1., 2., 3.])

In [40]: x.astype(np.int16)
Out[40]: array([0, 1, 2, 3], dtype=int16)

In [41]: x.astype(np.int32)
Out[41]: array([-2147483648, 1, 2, 3], dtype=int32)

In [42]: x.astype(np.int64)
Out[42]:
array([-9223372036854775808, 1, 2,
3])