WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Our React app was triggering the following error during navigation events:

Uncaught TypeError: Cannot read property 'firstChild' of undefined

The error was occurring in the function findComponentRoot, when it failed to find a component for an event callback.

In our app, this was happening when we would navigate during a blur event, and call unmountComponentAtNode on the rendering, in order to refresh the page. The docs for unmountComponentAtNode say

Remove a mounted React component from the DOM and clean up its event handlers and state

However, this does not seem to be the case. After we refresh the page with unmountComponentAtNode, there were other React-bound callbacks still in React's queue for that event. Leading to the error.

The docs and intuition seem to imply unmountComponentAtNode should clear these callbacks, since it knows the components will no longer exist to handle them.

Issue 2:
Hi,

When trying to unmount my whole app, I got some error.

Uncaught TypeError: Cannot read property 'firstChild' of undefined

ReactMount.js:606ReactMount.findComponentRoot

ReactMount.js:606ReactMount.findReactNodeByID ReactMount.js:552getNode

ReactMount.js:128executeDispatch EventPluginUtils.js:109SimpleEventPlugin.executeDispatch

SimpleEventPlugin.js:305forEachEventDispatch EventPluginUtils.js:95executeDispatchesInOrder

EventPluginUtils.js:119executeDispatchesAndRelease EventPluginHub.js:46forEachAccumulated

forEachAccumulated.js:25EventPluginHub.processEventQueue

EventPluginHub.js:251runEventQueueInBatch

ReactEventEmitterMixin.js:18ReactEventEmitterMixin.handleTopLevel

ReactEventEmitterMixin.js:44handleTopLevelImpl ReactEventListener.js:80Mixin.perform

Transaction.js:134ReactDefaultBatchingStrategy.batchedUpdates

ReactDefaultBatchingStrategy.js:66batchedUpdates

ReactUpdates.js:109ReactEventListener.dispatchEvent ReactEventListener.js:175

I think it's not a big deal.

According to what I see with the debugger, it seems to be because a SyntheticMouseEvent is trying to get dispatched. And I guess the target has just been unmounted...

Note that my use case looks like this:

var Hello = React.createClass({
render: function() {
return <div onClick={unmount}>Hello {this.props.name}</div>;
}
});

When using an unmount synchronous implementation, I get this error.

When adding a setTimeout 0 in the unmount code, I got no error.

I could not reproduce this in a jsfiddle, but I guess it's probably because I don't really know how batching work in React.
Issue 1:
From @amenonsen on 2016-05-07T16:06:34Z

ISSUE TYPE

Bug Report

COMPONENT NAME

ec2_vpc_net

ANSIBLE VERSION

ansible 2.2.0 (devel 56ba10365c) last updated 2016/05/05 17:12:03 (GMT +550)

CONFIGURATION

Default

OS / ENVIRONMENT

N/A

SUMMARY

ec2_vpc_net always sets "changed" when state=present, because the code calls update_vpc_tags() and sets changed if tags is not None or name is not None, regardless of whether the vpc exists or not. So if you specify name and cidr_block, the tags are always updated.

cc: @defionscode

STEPS TO REPRODUCE

- ec2_vpc_net:
state: present
name: ExampleVPC
cidr_block: 192.0.2.0/24
register: vpc
- fail: msg="I created a VPC"
when: vpc.changed

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

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

Azure Cloud Module

Azure inventory script

We have a discussion in this PR about authentication and routing to the correct endpoints for the Azure modules, considering Public Azure / Gov / German / China and even Azure Stack. I wanted to open an issue about the step after: ApiVersion and profile.

REST API are versioned on Azure (usually it's a date, but it's not required). There is no default ApiVersion at the REST API level, but the SDK uses the latest on public Azure transparently (but you can define it). This raises a few issues when we talk about "not public Azure":

The latest on public Azure might be not available on Gov / German / China yet (example)

There is definitely no way that Azure Stack supports the latest on Public Azure

ApiVersion are not always backward compatible (Storage Mgmt 2016-06-01 is breaking for instance). This means SDK code is different and not backward compatible.

New ApiVersion brings new options, that were not available before.

It makes support for several clouds at the same time a strategy question. This is some example of strategy, and it's not exhaustive:

Put the apiversion in the plugin name (for instance azure_rm_deployment_2017_06_01). The set of options of this plugin is fixed, but this increases the number of modules and is not "public azure friendly". You can ensure that using this plugin will never break, whatever the new ApiVersion released.

Make one plugin with conditional code "if/else apiversion". This makes parameters more complex (with test like if api_version==xxx and new_option: raise InvalidOptionForThisApiVersion()). "public azure" is automatic, but your Ansible script might break if there is a new ApiVersion released, and the plugin should have a "api_version" parameter to fix it.

A few facts to help to discuss:

SDK packages supports multiple ApiVersion. I ensure you that anytime if an ApiVersion was supported, the code is still here. So if you fix an ApiVersion, you can update safely the Python package (using semver) your ApiVersion is still there.

We are adding the notion of "Profile", roughly a dictionary of available ApiVersion for a given endpoint. So discussion about discovery is not the main point here I think.

@nitzmahone @johanste @tstringer
Issue 1:
Angular doesn't work in IE11. This plunker is minimal reproduction:

Check this plunker please in IE11.

https://plnkr.co/edit/LOJWgfDGvtKQzhxuD8Wa?p=preview

It doesn't work with webpack as well.

Issue 2:
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

The Plunker suggested to reproduce issues doesn’t contain the core.js shim. Therefore, the sample won’t even boot on Internet Explorer: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5

Plunk is referenced here: https://github.com/angular/angular/blame/master/.github/ISSUE_TEMPLATE.md#L22

Expected behavior

You should add <script src="https://unpkg.com/core-js@2.4.1/client/shim.min.js"></script> in line 8 of index.html to make sure IE bugs can also be reproduced.

Minimal reproduction of the problem with instructions

Open Plunk in Internet Explorer: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5

See the error message in the console: TypeError: Unable to get property 'apply' of undefined or null reference

Browser: IE

Language: all
Issue 1:
VSCode Version:

OS Version:

Steps to Reproduce:

edit a file (VSCode marks it as needing to be saved)

Alt+F+S

file doesn't save. in any other windows program, chording Alt+F (let go of F, keep holding Alt) + S will save the file.

if you let go of "Alt" between F and S, it works. my muscle memory is messing with me.

Issue 2:
New line character (\n) not detected in regular expression search. It is treated as string even when regular expression option is selected.
Issue 1:
VSCode Version: 0.10.11

OS Version: Windows 10 1511

Steps to Reproduce:

In a typescript file, have

let varName = "";
varName = "a";

The issue is that the 'var' substring in varName is highlighted the way the var construct would ordinarily be.

Issue 2:
From @f111fei on February 23, 2016 6:14

version： 0.10.10

letter

Copied from original issue: microsoft/vscode#3270
Issue 1:
Code Sample

>>> pd.to_timedelta(0.123_456_789, unit='s').components
Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=457, nanoseconds=0)
>>> pd.to_timedelta(123.456_789, unit='ms').components
Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=457, nanoseconds=0)
>>> pd.to_timedelta(123_456.789, unit='us').components
Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=456, nanoseconds=789)
>>> pd.to_timedelta(123_456_789.0, unit='ns').components
Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=456, nanoseconds=789)

Problem description

I have an array of floats that represent the number of seconds since a reference time with (roughly) nanosecond precision. I want to convert to a timedelta series, but this rounds off the nanoseconds. I can work around the behavior with something like the following:

>>> pd.to_timedelta(array_seconds * 1_000_000, unit='us')

Expected Output

>>> pd.to_timedelta(0.123_456_789, unit='s').components
Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=456, nanoseconds=789)
>>> pd.to_timedelta(123.456_789, unit='ms').components
Components(days=0, hours=0, minutes=0, seconds=0, milliseconds=123, microseconds=456, nanoseconds=789)

Output of pd.show_versions()

pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.1.final.0

python-bits: 64

OS: Windows

OS-release: 10

machine: AMD64

processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel

byteorder: little

LC_ALL: None

LANG: None

LOCALE: None.None

pandas: 0.20.1

pytest: 3.0.7

pip: 9.0.1

setuptools: 27.2.0

Cython: 0.25.2

numpy: 1.12.1

scipy: 0.19.0

xarray: 0.9.6

IPython: 5.3.0

sphinx: 1.5.6

patsy: 0.4.1

dateutil: 2.6.0

pytz: 2017.2

blosc: None

bottleneck: 1.2.1

tables: 3.2.2

numexpr: 2.6.2

feather: None

matplotlib: 2.0.2

openpyxl: 2.4.7

xlrd: 1.0.0

xlwt: 1.2.0

xlsxwriter: 0.9.6

lxml: 3.7.3

bs4: 4.6.0

html5lib: 0.999

sqlalchemy: 1.1.9

pymysql: None

psycopg2: None

jinja2: 2.9.6

s3fs: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
I think this is rounding prematurely, though not entirely sure. Could also just be loss of precision when converting from a float -> int64.

In [12]: pd.to_datetime(1434743731.8770001,unit='s')
Out[12]: Timestamp('2015-06-19 19:55:31.877000')

In [13]: pd.to_datetime(1434743731.8770001,unit='s').value
Out[13]: 1434743731877000000

In [14]: (pd.Timestamp('2015-06-19 19:55:15.877000')+pd.Timedelta('1us')).value
Out[14]: 1434743715877001000
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1408 on 2011-03-11 by @rgommers, assigned to unknown.

Reported by Christoph Gohlke on the mailing list with Python 3.2 on 64-bit Windows:

======================================================================
FAIL: minimum position 7
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python32\lib\site-packages\nose\case.py", line 188, in runTest
self.test(*self.arg)
File
"X:\Python32\lib\site-packages\scipy\ndimage\tests\test_measurements.py",
line 701, in test_minimum_position07
assert_equal(output[0], (0, 1))
File "X:\Python32\lib\site-packages\numpy\testing\utils.py", line
251, in assert_equal
assert_equal(actual[k], desired[k], 'item=%r\n%s' % (k,err_msg),
verbose)
File "X:\Python32\lib\site-packages\numpy\testing\utils.py", line
300, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
item=0

ACTUAL: nan
DESIRED: 0

Issue 2:
the result is that it will raise an error when any of the sub-block has a 0 dimension.

File "/usr/local/lib/python2.7/dist-packages/scipy/sparse/construct.py", line 579, in bmat
raise ValueError('blocks[:,%d] is all None' % bcol_lengths.argmin())
ValueError: blocks[:,0] is all None
Issue 1:
I am using pandas.__version__==0.14.0.

This is my first bug report in github so excuse my possibly poorly formatted submission.

This bug report might be related to, or duplicate:

#2646

#6501

It was explained to me by [http://stackoverflow.com/users/1427416/brenbarn] on the following StackOverflow question, http://stackoverflow.com/questions/24683023/having-issue-with-hierarchical-index-set-behavior/24684844#24684844

Essentially, the following behavior is not desirable:

print pd.__version__
WeirdIdx = pd.MultiIndex(levels=[[0], [1]],labels=[[0, 0], [0,0]],names=[u'X', u'Y'])
print WeirdIdx
print (0, 0) in WeirdIdx
print (1, 0) in WeirdIdx
print (100, 0) in WeirdIdx
print (100, 100) in WeirdIdx

since it prints:

0.14.0

X Y

0 1

1

True

True

True

True

despite the fact that (100,0) and (100,100) are unambiguously not part of the index.

Issue 2:
Timestamp stores the value in a datetime64[ns] internal representation. For most purposes this is fine, but I'd love if I could choose the internal precision, for example to use datetime64[s] instead.

When I do timeseries manipulations that span more than a day, I generally do not need sub-second resolution and I could definitely use the extended range instead. But, more conveniently, this would also allow to pretty-print the result without a ton of trailing zeros without setting some arbitrary threshold.

Incidentally, this would remove the limit of ~500 years, but it's more of an ergonomic change than an actual need. For example, when I need to perform direct manipulations of the values in a DatetimeIndex, I often have to scale up to seconds if I want to perform meaningful fitting and avoid numerical instability. When plotting, it's an extra indirection I need to care about.
Issue 1:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):

severity,container log

Is this a BUG REPORT or FEATURE REQUEST? (choose one):

FEATURE REQUEST

Kubernetes version (use kubectl version):

1.3.6

Environment:

Cloud provider or hardware configuration:

Google Cloud Platform

OS (e.g. from /etc/os-release):

Ubuntu14:04

Kernel (e.g. uname -a):

3.16.0-4-amd64

Install tools:

Others:

GKE(Google Container Engine)

What happened:

How to specify "severity" to container logs?

I'm running with kubernetes on gce.

And I want to specify "severity" to container logs.

I know that normally the logs written to stdout got tagged with the INFO severity and logs written to stderr got tagged with the ERROR severity.

I have a question.

In the future, container log Will be able to specify the severity?

What you expected to happen:

Is there any plan to specification of container log is improved, if that is I want to hear whether the planned release time.

How to reproduce it (as minimally and precisely as possible):

Anything else do we need to know:

Issue 2:
#23576 added an annotation to support DNS on Route53 on AWS. To really do this right, we need to think harder about how we want to evolve Service and Ingress. In the mean time, it seems reasonable to do the same trick with GCE Cloud DNS. add an annotation and watch DNS appear.

This would be a great opportunity for a community-contributed patch, if anyone is looking for ideas.
Issue 1:
I've been writing a custom debug adapter for vscode and have been running into the following issue:

When deploying your extension in server mode ( at least I haven't tested on extension host mode ), and the you drop stop the client abruptly, for any reason, whilst the front-end is still awaiting a request that affects the variables debug view, then even after the client has stopped, whatever values were in the view remain there and become locked. Starting a new debug session does not clear them, you have to open a new window with the project in order for them to clear.

These screenshots illustrate :

While debugging on the client, at the same time I have the adapter project being debugger on server mode, and paused while there is still a scopesRequest or variablesRequest response unfulfilled.

I've stopped the server without completing the request. The client's variables view remains locked with whatever was last in it.

It's happened both in the January and insider's build.

Issue 2:
Whenever there is a long running debug adapter request and a spinner appears in the UI, this spinner does not disappear when the session is terminated (in fact the full variables viewlet does not disappear in this case). Since starting a new debug session does not work in this situation, only a window reload helps.
Issue 1:
I was trying to compile my project directly to ES6 and use core-js for shims (they seem to cover a lot more than es6-shim), but it looks like I get a an error:

TypeError: Cannot convert undefined or null to object
angular2.min.js:26Uncaught TypeError: Cannot read property 'getOptional' of undefinedu @ angular2.min.js:26t._initApp @ angular2.min.js:26t.application @ angular2.min.js:26n @ angular2.min.js:26(anonymous function) @ bootstrap.ts:37(anonymous function) @ bootstrap.ts:37U @ system.src.js:4597c.execute @ system.src.js:4597i @ system.src.js:4597n @ system.src.js:4597execute @ system.src.js:4597y @ system.src.js:4597w @ system.src.js:4597p @ system.src.js:4597h @ system.src.js:4597(anonymous function) @ system.src.js:4597n.run @ angular2.min.js:1(anonymous function) @ angular2.min.js:1I @ angular2.min.js:1A @ angular2.min.js:1R @ angular2.min.js:1(anonymous function) @ angular2.min.js:1n.run @ angular2.min.js:1(anonymous function) @ angular2.min.js:1h @ angular2.min.js:1h @ core.js:3055(anonymous function) @ core.js:3066e @ core.js:3310
core.js:3055 Uncaught TypeError: Cannot read property 'getOptional' of undefined
Evaluating http://localhost:3000/app/bootstrap.js
Error loading http://localhost:3000/app/bootstrap.jsh @ core.js:3055(anonymous function) @ core.js:3066e @ core.js:3310

Not sure why though. If I compile to ES5, it works perfectly fine.

Here is my tsconfig.json for reference:

{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": false,
"sourceMap": true,
"target": "es5"
}
}

Issue 2:
Is there a reason for not using core-js? From the es6 compat table core-js covers a lot more than es6-shim.
Issue 1:
I'm finding a very odd issue that I was able to replicate on multiple machines.

I have an html+js app that I wrapped around with Electron. I am having problem with the MacOS distribution.

There is one HTML text field that won't let me paste text into it. This bug only happens after I follow the procedure to distribute the app (copy my app/ folder into Electron.app).

In all the other instances, I can copy or paste just fine :

when I run it via npm start (mac and win)

when I run it by doubleclicking electron.app and dragging app/ over it

on windows

I wonder, what can be the difference there? How can I debug something like this?

Issue 2:
I’ve run into an odd issue testing the Neovim.AS Atom Shell app, where I cannot get its window to accept keyboard input on OS X 10.10.2 when I start it via the atom-shell CLI; instead, all keyboard input goes to the last active application – in the case of the screenshot, the shell in which Neovim.AS was started:

I also can’t switch to the window with Cmd-Tab, its OS X menu does not display, and the only way to quit it is issuing ^C in the originating shell. I have reproduced the issue with another, more straightforward Atom Shell app, pamm-atom, incidentally showing that the apps are responding to mouse input (Vim not being a really good object to judge that :)).

If I start pamm-atom via the GUI, none of the above occurs (not testable with Neovim.AS due to the Grunt requirement and lack of app folder).

Configuration:

OS X 10.10.2 German locale, German keyboard input. I’ve tried disabling my input hacks (specifically, Seil and Karabiner) and switching to a US keyboard map, but none of that helped.

atom-shell version 0.21.2 64 bit without symbols, downloaded from the Releases pages. The Atom Shell app runs without a hitch by itself, as does Atom the editor (which accepts my keyboard input like a champ, I hasten to add).

OS X stock Terminal.app running the system bash (GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)). The above screenshot shows a version running with TotalTerminal injected, but the same issue occurs within standard terminal windows [EDIT: and in iTerm 2].
Issue 1:
Keith Donald opened SPR-4747 and commented

Web Flow 2 introduces the following prefixes for specifying a location to redirect to, either via the flow itself using an externalRedirect: or a managing FlowHandler, which is a Spring MVC integration class. It should be possible to get the same level of control in Spring MVC, and we should try to make the semantics as consistent as possible between MVC and Web Flow:

Web Flow 2 location redirect rules:

The following prefixes are supported for qualifying the returned location string:

<ul>

*

<li>servletRelative: - the location is relative to the current servlet</li>

*

<li>contextRelative: - the location is relative to the current web application</li>

*

<li>serverRelative: - the location is relative to the server root</li>

*

<li>url: - the location is a fully qualified URL to an external resource</li>

*

</ul>

Also, if the returned location no prefix, for example "/hotels/index", the location is treated as relative to the

current servlet by default.

<p>

For servlet-relative, context-relative, and server-relative URLs, a leading slash is optional.

Within an XML flow, the externalRedirect directive to request a redirect to a location would look like this:

externalRedirect:/servlet-relative-path

externalRedirect:servletRelative:/path

externalRedirect:contextRelative:/path

externalRedirect:serverRelative:/path

externalRedirect:url:http://whatever

Affects: 2.5.3

Issue Links:

#11888 Add a shortcut for specifying the application context root in logical view name in a Controller. ("is duplicated by")

#7380 RedirectView with more flexible URL-building

4 votes, 6 watchers

Issue 2:
Robert Macaulay opened SPR-3398 and commented

If you make a call to preventTransaction() in a subclass of AbstractTransactionalSpringContextTests , its onSetup method wont call onSetUpBeforeTransaction or onSetUpInTransaction, leaving your testcase without a setup method(since all the others are overridden final).

If you use the annotation NoTransaction or call preventTransaction in constructor, the same behavior will occur. The onSetup() method in the AbstractTransactionalSpringContextTests will notice that there is no transaction, and will not run any setup method.

A fix would be to insert a call to onSetupBeforeTransaction in onSetup() before the two tests of transactionManager or transactionDefinition, which would give you a setup method to call.

Affects: 2.0.4

Issue Links:

#6964 Provide non-transactional onSetup* hook in AbstractTransactionalSpringContextTests ("duplicates")
Issue 1:
ISSUE TYPE

Feature Idea

COMPONENT NAME

azure_rm_common.py

SUMMARY

The current definition of the azure_rm common module utils doesn't allow overriding the various built-in endpoints (auth, table/blob storage, service bus, etc). This will be necessary to allow connection to other Azure instances (eg, AzureChinaCloud, private Azure Stack instances).

The new Python SDK seems to support overriding the endpoints via host_base, so we should add the override capability to the env credential mapping and common module utility code.

List of AzureChinaCloud endpoint URLs is at: Azure/azure-sdk-for-python#284

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

lineinfile in combination with_items

ANSIBLE VERSION

ansible 2.3.2.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

SUMMARY

Ansible does not insert line if the identical value has been used before in loop, but only if the value of line is different.

STEPS TO REPRODUCE

---
- hosts: localhost

tasks:
- name: create test file
copy:
dest: /tmp/example.txt
content: |
1

2

3

4

- name: broken lineinfile
lineinfile:
path: /tmp/example.txt
insertafter: "{{ item.regex }}"
line: "{{ item.replace }}"
unsafe_writes: yes
with_items:
- { regex: '1', replace: 'bar' }
- { regex: '2', replace: 'bar' }
- { regex: '3', replace: 'br' }
- { regex: '4', replace: 'bar' }

EXPECTED RESULTS

1
bar

2
bar

3
br

4
bar

ACTUAL RESULTS

1
bar

2

3
br

4