WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
ISSUE TYPE

Bug Report

ANSIBLE VERSION

ansible 2.2.0 (devel f9c4fdab40) last updated 2016/05/24 13:16:23 (GMT +200)
lib/ansible/modules/core: (detached HEAD a64d72d7bc) last updated 2016/05/24 13:16:41 (GMT +200)
lib/ansible/modules/extras: (detached HEAD d2900e856b) last updated 2016/05/24 13:16:48 (GMT +200)
config file =
configured module search path = Default w/o overrides

CONFIGURATION

none

OS / ENVIRONMENT

Ubuntu 16.04

SUMMARY

If a handler is notified, then even if the handler is missing the playbook completes successfully without errors or warnings.

STEPS TO REPRODUCE

- debug: msg="test handler"
changed_when: true
notify:
- nonexistent_handler

then run the playbook.

EXPECTED RESULTS

PLAY RECAP , failed=1

ACTUAL RESULTS

NOTIFIED HANDLER nonexistent_handler
ok: [localhost] => {
"msg": "test handler"
}

PLAY RECAP *********************************************************************
localhost : ok=12 changed=1 unreachable=0 failed=0

Issue 2:
Issue Type:

Bug Report

Ansible Version:

v2.0.1.0

Ansible Configuration:

Nothing in particular.

Summary:

When you run ansible-playbook on a set of tasks with handlers, the existence of the handler is not checked, but those handlers are silently ignored. Even when the task induced a change.

Because of this, people may make mistakes in handlers but won't ever know that things aren't as they would expect. Ansible could test the existence of handler references and warn about them (when there's no change) and fail (when they are being called).

Silently ignoring notification handlers that should/could be run is problematic.

Steps To Reproduce:

- hosts: localhost
gather_facts: no
handlers:
- name: foo-bar
debug: msg='Handler foo-bar ran'
tasks:
- name: 'Use an incorrect handler name, ansible-playbook does not care'
command: 'true'
changed_when: no
notify:
- foo_bar

- command: 'true'
notify:
- bar-foo

- command: 'true'
notify:
- foo-bar

Expected Results:

Failure report about notification handlers that do not exist.

This failure should happen also for handlers that are not to be used (i.e. because there was no change).

Actual Results:

PLAY ***************************************************************************

TASK [Use an incorrect handler name, ansible-playbook does not care] ***********
ok: [localhost]

TASK [command] *****************************************************************
changed: [localhost]

TASK [command] *****************************************************************
changed: [localhost]

RUNNING HANDLER [foo-bar] ******************************************************
ok: [localhost] => {
"msg": "Handler foo-bar ran"
}

PLAY RECAP *********************************************************************
localhost : ok=4 changed=2 unreachable=0 failed=0

The first task (no change) and second task (change) should both report some failure because the notification handler does not exist. Silently ignoring this is a recipe for disaster !
Issue 1:
Steps to reproduce and a minimal demo of the problem

See: http://plnkr.co/edit/2ecdHTFEZiG3Q4ig8xga?p=preview

Open dev tools console to see the following error:

EXCEPTION: No provider for e! (e -> e)

If you remove the [ngClass] or the *ngIf it will work fine. Also, if you change from the .min.js version to the .js or .dev.js version it will work.

Current behavior

Throws EXCEPTION: No provider for e! (e -> e)

Expected/desired behavior

To work as it does with the full bundled version.

Other information

Issue 2:
When using minified bundles with SystemJS, and a simple snippet like this

<template ngFor #item [ngForOf]="items" #i="index">
<li>{{i}}</li>
<li *ngIf="i % 2 == 0">number is even</li>
</template>

Will throw

TypeError: this.directive_0_0.ngDoCheck is not a function

This is only reproducible with minified bundles, non-minified work correctly.

As an example check this plnkr (took it from #6304 (comment)). To reproduce switch between minified and unminified bundles.

This is also reproducible with Webpack using this line in the config

plugins : [
new webpack.optimize.UglifyJsPlugin()
],

Am I missing something?
Issue 1:
setup a new project with

mkdir hello-next
cd hello-next
npm init -y
npm install --save react react-dom next
mkdir pages

add a new index.js page

export default () =>
<div>
Hello world
<p>scoped!</p>
<style jsx>{`
p {
color: blue;
}
div {
background: red;
}
@media (max-width: 600px) {
div {
background: blue;
}
}
`}</style>
<style global jsx>{`
body {
background: black;
}
`}</style>
</div>

change the style and save.

you will then be greeted by style remove / update errors

StyleSheetRegistry: styleId: `jsx-803111306` not found.
Error: StyleSheetRegistry: styleId: `jsx-803111306` not found.
at invariant (node_modules/styled-jsx/dist/stylesheet-registry.js:267:0)
at StyleSheetRegistry.remove (node_modules/styled-jsx/dist/stylesheet-registry.js:118:0)
at StyleSheetRegistry.update (node_modules/styled-jsx/dist/stylesheet-registry.js:139:0)

Issue 2:
I'm using next 6.0. I'm having this problem with style jsx. It say styleId not found everytime I changed style.

I have folder called 'themes' under src folder which is same level with pages folder.

I use a custom .babelrc to have it resolved as absolute path.

Here is my .babelrc

{ "presets": ["next/babel"], "plugins": [ ["module-resolver", { "root": ["./src"], alias: { "data": "./src/data", "modules": "./src/modules", "store": "./src/store", "themes": "./src/themes", "utils": "./src//utils", "svgs": "./svgs" } }], ["inline-react-svg"] ] }

When I write new component I did something like:

import {color, fontSize} from 'themes'; export default () => (<div><style jsx> div { color: ${color.green} } </style></div>)

And I'm using withRedux to wrap my page.

I'm using classnames too.

It happen on next 6.0 not 5.x.
Issue 1:
There seems to be a bug when plotting dataframes that has duplicates in a DatetimeIndex. It seems to only be triggered when there is at least one more non-duplicate item in the index as in the first two cases below. These result in a:

ValueError: Shape of passed values is (1, 3), indices imply (1, 2)

While the last case seems to be fine.

# Case 1: fails
df = pandas.DataFrame(
index = pandas.to_datetime([
"2002-07-18 13:49:49",
"2002-07-18 13:49:49",
"2002-07-18 10:38:58"
]),
data = [1, 1, 1]
)
df.plot()

# Case 2: fails
df = pandas.DataFrame(
index = pandas.to_datetime([
"2002-07-19 10:51:29",
"2002-07-18 13:49:49",
"2002-07-18 13:49:49",
]),
data = [1, 1, 1]
)
df.plot()

# Case 3: works
df = pandas.DataFrame(
index = pandas.to_datetime([
"2002-07-18 13:49:49",
"2002-07-18 13:49:49",
]),
data = [1, 1]
)
df.plot()

This is with a recent master checkout: 52a82ef

Issue 2:
Code Sample, a copy-pastable example if possible

import pandas

a = pandas.DataFrame({'a': ['0'], 'b': ['str']})

print(a.dtypes)

b = pandas.concat([a, pandas.DataFrame({'b': ['str2']})], axis=1)

print(b.dtypes)

b.iloc[:, 0] = [int(v) for v in a.iloc[:, 0]]

print(b.dtypes)

Problem description

The issue seems to be that if there is a DataFrame with duplicate column names, I cannot modify an (unrelated) column and convert its dtype from object to int.

Expected Output

The final print should be:

a int64
b object
b object
dtype: object

And not:

a object
b object
b object
dtype: object

It is interesting that if I change concat line to (see renaming of column b to c):

b = pandas.concat([a, pandas.DataFrame({'c': ['str2']})], axis=1)

Then the output is correctly:

a int64
b object
c object
dtype: object

So it seems it has something with the fact that there are duplicate column names on other two columns, not the one being changed.

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.3.final.0

python-bits: 64

OS: Linux

OS-release: 4.13.0-46-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

LOCALE: en_US.UTF-8

pandas: 0.23.3

pytest: None

pip: 18.0

setuptools: 40.0.0

Cython: None

numpy: 1.15.0

scipy: None

pyarrow: None

xarray: None

IPython: None

sphinx: None

patsy: None

dateutil: 2.7.3

pytz: 2018.5

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: None

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: None

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None
Issue 1:
I am very sorry for making dupl of #2753. But after closing this issue on 2 Jul 2015, there are a lot of compelling arguments from community for allowing this feature.

I read this article with statement: It is no longer possible to implement ng-include....

I only want to make sure that:

angular team is really not interested in supporting any "html template as data or as parameter" scenario (for incoming angular2 release candidate)

there cannot be provided any official workaround, avoiding to have single angular2 component for every product in catalogue, for every web page, for every eLearning exercise etc.?

Issue 2:
Because the Formbuilder controls collection is typed as an AbstractControl and AbstractControl does not have an updateValue method, it requires a cast to a Control which does have an updateValue method. Only Control has an updateValue method.

Preferred and shorter which is better:

this.myForm.controls['goal_weight'].updateValue("5");

With the cast as required by Angular2 currently:

( this.myForm.controls['goal_weight']).updateValue("5");

(this.myForm.controls['goal_weight'] as Control).updateValue("5");

Could you consider using types that would not require a cast here to update the value?

Perhaps by making the the controls collection contain actually the Controls class items rather than AbstractControl items?

Or perhaps you could move the updateValue method into the AbstractControl class?

Example Template using myForm:

Weight Goal
Issue 1:
deno run [OPTIONS] <SCRIPT_ARG>... doesn't use import maps to resolve <SCRIPT_ARG>. For example, consider:

$ deno run https://deno.land/std@0.148.0/examples/welcome.ts
Welcome to Deno!

This could be rewritten to use an import map but that's unsupported:

$ cat > mods.json <<eof
{
"imports": {
"std/": "https://deno.land/std@0.148.0/"
}
}
eof

$ deno run --import-map=mods.json std/examples/welcome.ts
error: Module not found "file:///home/stephen/tmp/sdfoiunouiwsf/std/examples/welcome.ts".

Allowing <SCRIPT_ARG> to use the import map resolution like the rest of a Deno project is useful for users wishing to keep all their dependency versions in one file. For example, I have a repo with an import map pinned to a specific standard library version:

{
"imports": {
// many other imports
"std/": "https://deno.land/std@0.148.0/"
}
}

And a deno.json with tasks that try to duplicate that version but they often get out of sync and I lose that nice view into seeing all my dependencies in one place:

{
"tasks": {
"dev:serve": "deno -q run --allow-read=. --allow-net https://deno.land/std@0.149.0/http/file_server.ts dist",
}
}

I'd like it to be:

{
"tasks": {
"dev:serve": "deno -q run --allow-read=. --allow-net std/http/file_server.ts dist",
}
}

Issue 2:
First of all, thank you very much. I think deno with built-in typescript support is a great idea.

But I don't think that package.json was a bad idea.

You could improve it, for:

repetitive workflows and scripts

application configuration for different environments

linter, prettify rules

maintainer information, licensing, etc

even for docker building

and so on. It could be the single point of truth without any polling configuration files lying around wild.
Issue 1:
The "top margin" check description is indicating the wrong value "20px" while the correct to complete the challenge is "40px":

Your green-box class should give the left of elements 40px of margin.

Your green-box class should give the bottom of elements 20px of margin.

Your green-box class should give the top of elements 20px of margin.

Your green-box class should give the right of elements 20px of margin.

Issue 2:
In the instructions for the margin, you have the pixel setting for "Top" to 20px instead of 40px.
Issue 1:
example: https://www.wakari.io/sharing/bundle/adamgreenhall/test-scatter

I think this happens specifically for pandas scatter plots with colorbars in ipython. The xticks are still working for:

non-colorbar pandas scatter plots

the same scatter plot using matplotlib

standard python scripts using plt.savefig

related problem with %matplotlib inline?: ipython/ipython#1443

Issue 2:
The exception handling code in _get_concatenated_data() relies on the exception not being generated in self._prepare_blocks() and can generate an exception with this non-informative error message:

Traceback (most recent call last):
File "<pyshell#5>", line 12, in <module>
df = pd.concat([activedf,closeddf])
File "C:\Python27\lib\site-packages\pandas\tools\merge.py", line 873, in concat
return op.get_result()
File "C:\Python27\lib\site-packages\pandas\tools\merge.py", line 957, in get_result
new_data = self._get_concatenated_data()
File "C:\Python27\lib\site-packages\pandas\tools\merge.py", line 1001, in _get_concatenated_data
new_data[item] = self._concat_single_item(rdata, item)
UnboundLocalError: local variable 'rdata' referenced before assignment
Issue 1:
but list of emulator are displayed, i tried reinstall flutter on android studio, tried flutter doctor many times, tried flutter upgrade does nothing to solve the issue, tried invalidate and restart Andrd Studio.

I tried another project yet it tells the same thing, i searched on the internet tried someone says to run administrator, still doesn't work.

what's the thing i should do?

I'm using windows 10, android studio 3.2

Issue 2:
Flutter apps seem to cache the sky dart libraries in the build directory, which causes them to not be updated when new changes are made and built.

Currently, the build directory should be cleared anytime dart changes are made in the engine when testing on real apps.
Issue 1:
Take this parameters.yml:

router.request_context.host: my.domain.com
domain: my.domain.com

When using %domain% it in security.yml, i.e. in the access control section:

firewalls:
admin:
host: ^admin\.
# ...
access_control:
- { host: admin.%domain%, path: ^/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { host: admin.%domain%, path: ^/, roles: IS_AUTHENTICATED_REMEMBERED }

All works as expected. Relevant section in generated appProdProjectContainer.php (returns added for redability):

protected function getSecurity_Firewall_Map_Context_AdminService()
{
// ...
$h = new \Symfony\Component\HttpFoundation\RequestMatcher(
'^/login$', 'admin.my.domain.com' // correct
);
$i = new \Symfony\Component\HttpFoundation\RequestMatcher(
'^/', 'admin.my.domain.com' // correct
);
$j = new \Symfony\Component\Security\Http\AccessMap();
// ...
}

However using %router.request_context.host%, for some reason, it get's translated into localhost, that is your firewall would not apply to production sites (doesn't match):

protected function getSecurity_Firewall_Map_Context_AdminService()
{
// ...
$h = new \Symfony\Component\HttpFoundation\RequestMatcher(
'^/login$', 'admin.localhost' // wrong
);
$i = new \Symfony\Component\HttpFoundation\RequestMatcher(
'^/', 'admin.localhost' // everyone accessing admin in prod!
);
$j = new \Symfony\Component\Security\Http\AccessMap();
// ...
}

As %router.request_context.host% is the suggested method for configuring the request context globally (i.e sending mails with generated URLs) I think this could lead to insecure applications.

A solution:

domain: my.domain.com
router.request_context.host: %domain%

Issue 2:
I trying to use third-party bundle. (http://knpbundles.com/ornicar/ApcBundle). This bundle requires me to provide ornicar_apc.host config value. I am trying to re-use existing configuration value router.request_context.host, which is overrided in my parameters.yml, but third-party bundle always compiled with default configuration value localhost. After some time of debugging I found:

1st step: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php#L50 loading configuration for the framework extension. Keep in mind: $container already have loaded valid value for router.request_context.host.

2nd step: This line: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L306 loads default config value for router.request_context.host parameter value and rewriting existing "normal" value.

3rd step: Thrd-party bundle uses overwriten value of router.request_context.host parameter.

Could you help me with resolving this bug?
Issue 1:
i used the following statement in typescript source file as below referred from angular.io documentation

declare var angular:angular.IAngularStatic;

But it giving me error -

Cannot find namespace angular.

I tested the same in quickstart project also. same issue

Issue 2:
Hi,

is there any working Angular 2 plunker with latest version of angular that works in IE11?

I have some strange behavior that i want to show and help with fix. Unfortunately it is in big non-public project, so i want to prepare minimal reproduce plunks..

Is there any base plunk that i can (or anyone else) fork?

The problem is, evething is working right in @angular 2.1.2 in IE11 but in version 2.2.0 there are big issues in IE11 without any change in code - only different version of Angular.

There is no error in Console in IE11, even the clear page with Reactive Forms doesnt work, the application just keep taking more and more memory.

I would like to help and simulate it in plunker but i am not able to prepare Plunk from start. So if anyone could help me with base plunks i can prepare plunks with reproducing the problems.
Issue 1:
Description

For an real world application im using an API to authenticate that is build in symfony as well and handles all the roles and al other security things for the frontend i want to use the symfony 4 framework as well and that it use the authentication over the API.

The API will provide the authentication user, token and roles so the frontend framework can use this to signin.

In the previous this is possible but since all class that could have do this is deprecated and uses guard which requires an user entity what i don't want because i don't want duplicate user databases because it's already in the API.

Example

So my idea was an authenticator class to provide the support and authentication the authentication will returns the required userinterface with the username and roles to fake the user identity so it can log in the user and use all the security features like '@security'

Issue 2:
(this issue is part of the "DX" ("Developer eXperience") initiative introduced by Symfony project)

On the symfony-docs repository there is a very long discussion about the new template naming syntax.

In short, some people think that the old syntax has inconsistencies in cases like the following:

Resource: @AcmeBlogBundle/Resources/views/Default/common/template4.html.twig

Template: AcmeBlogBundle : Default : common / template4.html.twig

Also valid: AcmeBlogBundle : Default / common : template4.html.twig

Using the new namespaced Twig syntax, the template name would always be:

@AcmeBlog/Default/common/template4.html.twig

Removing the Resources/views/ part is very common and easy to understand. But removing the Bundle suffix is really strange and inconsistent with the rest of Symfony.

This problem is introduced in lines 136-138 of TwigBundle/DependencyInjection/TwigExtension.php file.

Summarized Proposals

Deprecate the current behavior (0) and choose one of the following to implement and recommend:

Prop
Template
Notes

0
AcmeBlogBundle:Default:index.html.twig
current

1
@AcmeBlogBundle/Default/index.html.twig
Assumed Resources/views

2
@AcmeBlogBundle:Default/index.html.twig
Assumed Resources/views

3
AcmeBlogBundle:Default/index.html.twig
Assumed Resources/views

4
@AcmeBlogBundle:views/Default/index.html.twig
Assumed Resources, could also be used consistent with routing imports

5
AcmeBlogBundle:views/Default/index.html.twig
Assumed Resources

6
view@AcmeDemoBundle/Default/index.html.twig
we might also have public@, config@ that could be used elsewhere
Issue 1:
Code Sample

df = pd.DataFrame({"date": ['10000101', '20180220']})

# Timestamp limitations correctly raise exception
pd.to_datetime(df.date, errors='raise')
...
OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 1000-01-01 00:00:00

# Timestamp limitations correctly coerce to NaT
pd.to_datetime(df.date, errors='coerce')
...
0 NaT
1 2018-02-20
Name: date, dtype: datetime64[ns]

# errors=`ignore` incorrectly results in datetime like object
pd.to_datetime(df.date, errors='ignore', format="%Y%m%d")
0 1000-01-01 00:00:00
1 2018-02-20 00:00:00
Name: date, dtype: object

Problem description

I believe that when errors='ignore', and the timestamp limitations are violated by a datum, the result should be the original input – not a datetime like object.

Expected Output

pd.to_datetime(df.date, errors='ignore', format="%Y%m%d")
0 '10000101'
1 2018-02-20 00:00:00
Name: date, dtype: object

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.5.2.final.0

python-bits: 64

OS: Darwin

OS-release: 16.7.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

LOCALE: en_US.UTF-8

pandas: 0.21.0

pytest: 2.9.2

pip: 9.0.1

setuptools: 27.2.0

Cython: 0.24.1

numpy: 1.11.1

scipy: 0.18.1

pyarrow: None

xarray: None

IPython: 5.1.0

sphinx: 1.4.6

patsy: 0.4.1

dateutil: 2.5.3

pytz: 2016.6.1

blosc: None

bottleneck: 1.1.0

tables: 3.2.3.1

numexpr: 2.6.1

feather: None

matplotlib: 1.5.3

openpyxl: 2.3.2

xlrd: 1.0.0

xlwt: 1.2.0

xlsxwriter: 0.9.3

lxml: 3.6.4

bs4: 4.5.1

html5lib: None

sqlalchemy: 1.0.13

pymysql: None

psycopg2: None

jinja2: 2.8

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
Copying from #14448 (comment) (as the issue is closed now):

In [1]: pd.to_datetime('13000101', errors='ignore')
Out[1]: '13000101'

In [2]: pd.to_datetime('13000101', errors='ignore', format='%Y%m%d')
Out[2]: datetime.datetime(1300, 1, 1, 0, 0)

The above inconsistency (which is also not documented at all I think), is that something we want to fix?
Issue 1:
Migrated issue, originally created by Michael Bayer (@zzzeek)

cx_oracle types that subclass _NativeUnicodeMixin but not _OracleUnicodeText are essentially text types where convert_unicode=True/'force' is entirely non functional. Even if the cx_oracle coerce_to_unicode flag is turned on, which we no longer recommend, a CLOB will never return unicode. this needs to be worked out so that the public flags at least do as expected.

Issue 2:
Migrated issue, originally created by Oleg Talalov (@olegtalalov)

Customer's database contains BINARY_FLOAT_INFINITY value in one column in few rows.

During requsting rows in fetch, function _detect_decimal called with value '' and raise exception:

ValueError: invalid literal for int() with base 10: ''

I use cx_orcale 5.3 and 6.0

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
Issue 1:
I'm looking to remap 'Shift + Backspace' to 'Del'

Currently, I don't see any way to do this.

Users might also want to do the inverse of this as well.

I can imagine a scenario where a user might want to map 'insert' to 'Control + C' and 'shift+insert' to 'control + v'

Issue 2:
Environment

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

Steps to reproduce

Restart computer

On log in, wait couple seconds, the "Start typing..." flashes on the screen, as shown in the screenshot below.

Expected behavior

No flash, no indication of PowerToys Run unless it is called.

Actual behavior

The search bar for PowerToys Run briefly flashes.

Screenshots