WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Using bidirectional_dynamic_rnn throws the "ValueError: None values not supported" when you are not specifying the sequence lengths. The error comes from the reverse step, the operator used to reverse the input sequences requires the sequence lengths to be specified. Maybe this should be a required parameter or alternatively generate the lengths array when the default 'None' is used.

(tensorflow 1.0.0)

Issue 2:
Qualifier: very new to TF, so I may be missing something very obvious. If so, apologies.

DOCUMENTATION:

Is a little conflicting:

"sequence_length: An int32/int64 vector, size [batch_size], containing the actual lengths for each of the sequences." <-- implies sequence_length is required

However...

"The initial state for both directions is zero by default (but can be set optionally) and no intermediate states are ever returned -- the network is fully unrolled for the given (passed in) length(s) of the sequence(s) or completely unrolled if length(s) is not given." <-- implies sequence_length is not required.

FUNCTIONALITY"

Base on the function itself ("dynamic"), I would assume that allowing sequence_length=None is intended (although, in either case, the documentation should be straightened out).

Assuming we do want to allow seq_length=None, the offending portion within bidirectional_dynamic_rnn would appear to be:

inputs_reverse = array_ops.reverse_sequence(...seq_lengths=sequence_length...)

reverse_sequence appears to require seq_lengths != None

Oddly enough, bidirectional_rnn may(?) be robust to this problem, as it uses _reverse_seq, which handles lengths=None.

That said, I haven't tested this extensively, as I'm of course not 100% sure I've interpreted the above correctly and as to what the intended functionality is.

Given guidance, I could take a stab at a pull request to address the above. Or maybe this is a quick fix/known issue (or non-issue...).
Issue 1:
https://www.tensorflow.org/versions/r0.11/api_docs/python/state_ops.html#constant_initializer

On Constant Initializer -> Examples:

The very large gray box contains the html of other initializer docs. Hope it can be fixed.

Issue 2:
The HTML docs for tf.constant_initializer at https://www.tensorflow.org/versions/master/api_docs/python/state_ops.html#constant_initializer contain unclosed verbatim block, which continues past the method and contains several following methods -- see for example the tf.random_normal_initializer.

I am not much familiar with the process of documentation generation, but my guess is that the verbatim ending block at

tensorflow/tensorflow/python/ops/init_ops.py

Line 142
in
2c4af2e

```

has wrong indentation (it is indented by two more spaces than the start of the block).
Issue 1:
Code Sample, a copy-pastable example if possible

import numpy as np
import pandas as pd
import datetime

df = pd.DataFrame({'a': [1, np.nan, 5],
'datetime':pd.to_datetime(['20170403', '20170404', '20170405'])})
df.set_index('datetime', inplace=True)
df.rolling('2d', 1).apply(np.nanmin)

Problem description

the above generates

a
datetime
2017-04-03 1.0
2017-04-04 NaN
2017-04-05 5.0

when use datetimeIndex, if a row has NaN value it is not fed to input of apply when creating output for that row. To illustrate this, I use:

def foo(x):
print(x)
return np.nanmin(x)
print(df.rolling('2d', 1).apply(foo))

and got printed value:

[ 1.]
[ nan 5.]

the second row is skipped.

This issue doesn't not exist when integer index is used:

df = pd.DataFrame({'a': [1, np.nan, 5]})
def foo(x):
print(x)
return np.nanmin(x)
print(df.rolling(2, 1).apply(foo))

print the following:

[ 1.]
[ 1. nan]
[ nan 5.]

and yields correct results

Expected Output

a
datetime
2017-04-03 1.0
2017-04-04 1.0
2017-04-05 5.0

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.5.2.final.0

python-bits: 64

OS: Darwin

OS-release: 15.6.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: None

LANG: None

LOCALE: en_US.UTF-8

pandas: 0.20.3

pytest: 2.8.5

pip: 8.1.2

setuptools: 25.1.6

Cython: 0.23.4

numpy: 1.13.1

scipy: 0.17.0

xarray: None

IPython: 5.1.0

sphinx: 1.4.1

patsy: 0.4.0

dateutil: 2.6.1

pytz: 2017.2

blosc: None

bottleneck: 1.0.0

tables: 3.2.2

numexpr: 2.4.6

feather: None

matplotlib: 1.5.1

openpyxl: 2.3.2

xlrd: 0.9.4

xlwt: 1.0.0

xlsxwriter: 0.8.4

lxml: 3.5.0

bs4: 4.4.1

html5lib: None

sqlalchemy: 1.0.11

pymysql: None

psycopg2: None

jinja2: 2.8

s3fs: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
#5694

df = pd.DataFrame([0], index=[datetime(2012, 11, 4, 23, 0, 0)])
df = df.tz_localize('America/New_York')
df.resample(rule='D', how='sum')

raises a AmbiguousTimeError even though datetime(2012, 11, 4, 23, 0, 0) is not ambiguous.

#8601

idx = date_range('2014-10-08 00:00','2014-10-09 00:00', freq='D', tz='Europe/Berlin')
pd.Series(5, idx).resample('MS')

#8744

index = pd.to_datetime(pd.Series([
'2014-10-26 07:35:49',
'2014-10-26 07:45:08',
'2014-10-26 08:04:58'
]))

df = pd.DataFrame(np.arange(len(index)), index=index)
df = df.tz_localize('Asia/Krasnoyarsk', ambiguous='NaT')
df.resample('D')

AmbiguousTimeError: Cannot infer dst time from Timestamp('2014-10-26 01:00:00'), try using the 'ambiguous' argument

#8653 (might be separate issue)

import datetime
import pytz as tz
import pandas as pd

rome = tz.timezone('Europe/Rome')

dr = []
for i in range(2):
dp = datetime.datetime(2014, 10, 25) + datetime.timedelta(days=i)
dr.append(rome.localize(dp))

series = {}
for i, ddr in enumerate(dr):
series[ddr] = i * 10

s1 = pd.Series(series)
s1 = s1.resample('D', how='mean')

#9119

#9173

#9468
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version: Version: 0.6.2951.0 (MS Store)

Steps to reproduce

Opened a bunch of cmd tabs (6) and resized the window to be smaller (only one tab showing) to test the tab scrolling feature (works fine). Then i resized the window to be bigger, that all tabs could show up

Expected behavior

The visible tabs should increase with expanding the width.

Actual behavior

When minimizing the window so much, that only 1 or 2 tabs are showing up and then increasing the width, the amount of visible tabs stay and you have to add a new tab to reset the amount of tabs showing up.[

](url)

Issue 2:
Open a number of tabs. Make the window narrower. Make it wider again.

It looks like this:
Issue 1:
Bug summary

The keyword argument transform of the method ax.plot(...) malfunctions with size of the samples greater than 1000.

For example, the following script

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.transforms as transforms

ax = plt.gca()

xx = np.linspace(0.0, 4 * np.pi, num=1001)
yy = np.cos(xx)

t = transforms.Affine2D().translate(10.0, 0.0).scale(2.0, 0.5)

lines = ax.plot(xx, yy, transform=t + ax.transData)

plt.show()

Produces an expected figure

with num=1000

and an empty figure

with num=1001.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.transforms as transforms

ax = plt.gca()

xx = np.linspace(0.0, 4 * np.pi, num=1001)
yy = np.cos(xx)

t = transforms.Affine2D().translate(10.0, 0.0).scale(2.0, 0.5)

lines = ax.plot(xx, yy, transform=t + ax.transData)

plt.show()

Actual outcome

Expected outcome

Operating system

Linux

Matplotlib Version

3.4.3

Matplotlib Backend

Qt5Agg

Python version

Python 3.8.7

Jupyter version

No response

Other libraries

No response

Installation

pip

Conda channel

No response

Issue 2:
Bug summary

I have Windows 10, conda 4.10.3 with Python 3.9.7 and dependencies

matplotlib-base==3.5.1

matplotlib==3.5.1

matplotlib-inline==0.1.3

numpy==1.21.2

numpy-base==1.21.2

(amongst other installed packages). When I try to create plots using matplotlib.pyplot:

Code for reproduction

plt.plot(...)
# OR-
plt.scatter(...)
plt.show()

Actual outcome

OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5 already initialized. OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

Expected outcome

visualization

Additional information

No response

Operating system

Windows 10

Matplotlib Version

3.5.1

Matplotlib Backend

No response

Python version

3.9.7

Jupyter version

No response

Installation

conda

[@tacaswell edited to add markup]
Issue 1:
I have been observing that a lot of issues are being created with simply incorrect code. This adds to the bug triaging effort and also doesn't push the newcomer to do analysis and research. It is assumed that FCC is buggy and the code is fine when it is not. There are certainly number of valid bugs but even then duplicate (valid) bugs is commonplace. Here is what I suggest-

Create a new waypoint or add these as steps in a waypoint.

Have the bug button display on challenges conditional ,for example only user with > 50 points would be able to see it. I am not sure if it already works this way. Also, mention this to the user, something like "You will be able to open issues on Github once you have 50 points by clicking this button".

Mention that user should search with the bonfire challenge title to find out if similar issue has already been reported.

If not found then he/she should go ahead and open a bug but add the complete title of the challenge on the bug title followed by the problem , so the next set of users can find this issue easily.

As a best practice of opening bugs, users should be encouraged to add screenshot of the problem, add the problamatic code (in proper markdown formatting, this might also be an opportunity to briefly describe github markdown syntax for code, since this is very frequently asked on the chat room) and describe the problem as verbosely as possible.

I hope I was able to explain clearly and you find this suggestion helpful.

Issue 2:
Challenge divide-one-decimal-by-another-with-javascript has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

var quotient = 4.4 / 2.0; // Fix this line

Challenge won't pass because of a "The quotient variable should only be assigned once" error. The quotient var isn't assigned anywhere else and this is the only line of code on the editor.

I tried editing the error to remove any whitespace so there was only 1 line on the editor, but it still didn't pass.
Issue 1:
First of all I am not sure if this is really a valid issue, as I am not sure if it is the responsibility of typescript but I have an issue with ES3 output.

In ES3 apparently you cannot do

Promise.resolve(...)
.then(...)
.catch(...);

you have to do

Promise.resolve(...)
["then"](...)
["catch"](...);

However when targetting ES3 TS does not seem to notice this and lets it through, again I am not entirely sure if this is legit etc but I have spent ages tracking down an issue and it seems that ES3 does not support chaining like shown

should this be added as an issue or is this not really TS' responsibility?

Here is a related question on SO:

http://stackoverflow.com/questions/23105089/angular-q-catch-method-fails-in-ie8

Issue 2:
At work we have an embedded old IE8 engine that Works with ES3, and we have made an implementation of the ES6 Map and Set. Those clases have a delete method, which name is the same as the delete keyword.

So the following typescript:

var a = new Map<string, string>();
a.set("a", "a");
a.delete("a");

produces somethind like:

var a = new Map();
a.set("a", "a");
a.delete("a");

But the old IE8 engine throws an error because of the delete keyword. Could ES3 target of TypeScript generate an string accessor for cases like this?

a["delete"]("a");

Of course, the same casi would occur with "new" etc.

Thanks!!
Issue 1:
I clicked on a row, and cursor appears. I typed some in english, than changed to russian and typed some. Cursor was still visible.

Then, I changed keyboard layout back to english and cursor dissapeared.

Ubuntu 14.04, installed atom from webupd8`s ppa

Issue 2:
When I hold the Alt key for a second (with the side-effect that the entries in the menu bar are showing up) the cursor disappears. This is really annoying for key-bindings where the alt key is involved.

The cursor appears again after pressing a mouse button.

My ubuntu version is 14.04, atom version is 5b7b350 (built from github master).
Issue 1:
Description

As an enhancement to #23901, It would be nice to support recursive env var resolution. It is not obvious from the docs or PR (unless i'm missing something), that this is not already supported, so I went around in circles trying to make it work for a while, until Nicolas helped me.

cc @nicolas-grekas

Example

Given environment variables:

DATABASE_URL=postgres://user:%env(DATABASE_PASSWORD)%@127.0.0.1:5432/database
DATABASE_PASSWORD=foo

And some configuration:

parameters:
env(DATABASE_PASSWORD): ''
env(DATABASE_URL): ''

doctrine:
...
url: '%env(resolve:DATABASE_URL)%'

DATABASE_PASSWORD in DATABASE_URL should be resolved, but it is not.

Current Workaround

You must instead use an intermediary parameter:

DATABASE_URL=postgres://user:%database_password%@127.0.0.1:5432/database
DATABASE_PASSWORD=foo

parameters:
database_password: '%env(DATABASE_PASSWORD)'
env(DATABASE_PASSWORD): ''
env(DATABASE_URL): ''

doctrine:
...
url: '%env(resolve:DATABASE_URL)%'

Issue 2:
If you require only the symfony/config component you depend on the symfony/yaml Inline class, which does not show up in the composer require section.

Here is a gist with the proof of error. Steps to reproduce:

require only the config component

run the code in the gist

In order to solve this, we need to tightly couple the symfony/config component to symfony/yaml or duplicate the Inline::dump() functionality used here and here (which is definetly not a good idea IMO).

I wanted to make a PR only on the Config component but that one is marked as read-only and add symfony/yaml to the config components config.json require section.

Should I make a PR here and add the dependency to the configs composer.json or in the dedicated repo?
Issue 1:
Environment

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

Steps to reproduce

Disable PowerToys Run.

Press ALT+SPACE.

Expected behavior

Nothing happens because PowerToys Run isn't enabled.

Actual behavior

The PowerToys Run pop up appears.

Issue 2:
Environment

Windows build number: 2004 (build 19041.329)
PowerToys version: current master (0.19 RC)
PowerToy module for which you are reporting the bug (if applicable): PT Run

Steps to reproduce

Restart PT as administrator

Turn off PT Run

Expected behavior

PowerLauncher.exe should exit

Actual behavior

PowerLauncher.exe doesn't exit
Issue 1:
[Enter steps to reproduce below:]

close atom

open atom

Atom Version: 0.172.0

System: Mac OS X 10.10.2

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT, open 'undefined//Users/jovanalleyne/Documents/Projects/node-project/project.json'

At fs.js:75

Error: ENOENT, open 'undefined//Users/jovanalleyne/Documents/Projects/node-project/project.json'
at Error (native)

Commands

Config

{
"core": {
"disabledPackages": [
"tabs",
"tree-view"
]
},
"editor": {
"fontSize": 11,
"invisibles": {}
}
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.1.3
coffee-compile, v0.8.4
color-picker, v1.2.6
git-log, v0.2.0
highlight-selected, v0.6.3
language-jade, v0.3.0
language-nginx, v0.4.0
linter, v0.9.0
linter-less, v0.3.1
minimap, v3.4.7
minimap-find-and-replace, v3.0.4
minimap-git-diff, v3.0.11
minimap-highlight-selected, v3.0.0
minimap-selection, v3.0.1
pretty-json, v0.3.1
quick-move-file, v0.7.0
recent-files, v0.3.0
save-session, v0.11.0
sublime-tabs, v0.4.8
travis-ci-status, v0.11.0

# Dev
No dev packages

Issue 2:
From @SimyungYang on January 6, 2015 0:47

[Enter steps to reproduce below:]

start an atom editor with save-session plugin on

save action might cause this error

Atom Version: 0.166.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT, open 'undefined//Users/alopex/.atom/project.json'

At fs.js:75

Error: ENOENT, open 'undefined//Users/alopex/.atom/project.json'
at Error (native)

Commands

Config

{
"core": {
"disabledPackages": [
"npm-install",
"save-session"
],
"themes": [
"atom-dark-ui",
"base16-tomorrow-dark-theme"
]
},
"editor": {
"fontSize": 14,
"invisibles": {}
}
}

Installed Packages

# User
color-picker, v1.2.6
linter, v0.9.1
minimap, v3.5.0
save-session, v0.11.2
npm-install, v2.0.0

# Dev
No dev packages

Copied from original issue: atom/atom#4854
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 Location.back() to navigate inside a router-outlet, ngOnInit() is called twice for sibling components of routerLinkActive directives.

Expected behavior

ngOnInit() isn't called twice.

Minimal reproduction of the problem with instructions

<example-parent>
<a routerLink="/path/to/next/component" routerLinkActive="link-active">NAVIGATE</a>
<example-child>
<!-- ngOnInit() called twice! -->
</example-child>
<example-child>
<!-- ngOnInit() called twice! -->
</example-child>
</example-parent>

I've narrowed down the cause of this issue, but am not aware of the impact of either removing the line or changing the method called to a more appropriate one...

CONSIDER REPLACING DETECTCHANGES WITH MARKFORCHECK

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

ngOnInit() should be called once, when initializing the component.

Please tell us about your environment: Windows 7, VS2015, NPM.

Angular version: 2.4.6

Browser: All

Language: All

Node (for AoT issues): node --version = 6.3.1

Issue 2:
I'm submitting a ...

[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

Following code:

<div *ngIf="currentUser !== null" class="...">
<div id="notifications">
<core-toasts></core-toasts>
</div>
...
<li *ngFor="let moduleTab of moduleTabs" [routerLinkActive]="['active']">
<a [routerLink]="moduleTab.id ? moduleTab.route + '/' + moduleTab.id : moduleTab.route" [routerLinkActive]="['active']">
<span>...</span>
</a>
</li>
...
</div>

...leads to the effect, that all contained component's ngOnInit hooks (e.g. the core-toast's) are running multiple times, even though the currentUser is set from null to a value only once. The ngOnDestroy is NOT executed, so all components seem to stay alive.

The currentUser is a private variable in the component which is set by an RxJs Observable (coming from Angular-Meteor, patched into the zone via zone.run).

When I remove ONLY the [routerLinkActive]="['active']" directive, everything works as expected.

As a workaround I'm currently using [hidden] instead of the *ngIf, but of course I would prefer to remove the DOM while not displayed.

Expected behavior

ngOnInit of all contained components only running once per ngIf expression change to true and ngOnDestroy running once on expression changed to false.

Please tell us about your environment:

Using Angular 2, Angular-Meteor, WebStorm, NPM

Angular version: 2.4.5

Browser:

Chrome 55.0.2883.87

Language:

Typescript 2.1.5

ES5
Issue 1:
Apache Airflow version: 1.10.10

Kubernetes version: 1.15.11

Cloud provider: Google Cloud

What happened:

After switching DAGs serialization on, "State" column in UI shows HTML code for all DAGs on the "Dag Runs" page. "Task Instances" page works fine.

What you expected to happen:

"State" column should not show HTML code.

How to reproduce it:

Switch serialization on using env var AIRFLOW__CORE__STORE_SERIALIZED_DAGS=true. Then open the "Dag Runs" page.

Issue 2:
Apache Airflow version: 1.10.10

Environment:

Docker image python:3.7-slim.

How to reproduce it:

Navigate to /admin/dagrun/.

Other:

The web server returns HTML that consists of:

<a
data-csrf=""
data-pk="1150737"
data-role="x-editable"
data-source="[{&#34;text&#34;: &#34;&#34;, &#34;value&#34;: &#34;__None&#34;}, {&#34;text&#34;: &#34;success&#34;, &#34;value&#34;: &#34;success&#34;}, {&#34;text&#34;: &#34;running&#34;, &#34;value&#34;: &#34;running&#34;}, {&#34;text&#34;: &#34;failed&#34;, &#34;value&#34;: &#34;failed&#34;}]"
data-type="select2"
data-url="./ajax/update/"
data-value="<span class="label" style="background-color:green;">success</span>"
href="#"
id="state"
name="state"
>
<span class="label" style="background-color:green;">success</span>
</a>

Flask-Admin version is 1.5.4.

After a brief investigation, the problem seems to be related to using HTML as a value for an editable widget.
Issue 1:
Here is the illustrative example:

fn foo() {
{ bar('}'); }
{ bar(']'); }
{ bar(')'); }
}

The characters within ' characters above are incorrectly treated by src/etc/rust-mode.el as closing the opening paren of the invocation of bar. This confuses Emacs in a number of ways (e.g. obviously paren matching; but also the auto-indentation gets confused too, which is more annoying).

Issue 2:
The new path code has a bunch of duplicate code between the posix and windows variants. It should be factored into material in the abstract Path trait, when default methods work.
Issue 1:
Feature request

Is your feature request related to a problem? Please describe.

I'd like to have multiple levels of nested layout.

For example, the following directory structure:

+ pages/
- index.js
+ users
- index.js
+ [id]
- posts.js
- orders.js
- about.js

The home page,users page and about page have the same main layout, and ths user's posts and orders page have the same sub layout.

Describe the solution you'd like

When there is _layout.js in the directory, a nested route will be generated, with _layout.js as the layout of the directory.

For example, the following directory structure:

+ pages/
- _layout.js
- index.js
+ users
- index.js
+ [id]
- _layout.js
- posts.js
- orders.js
- about.js

The layout file returning a React component, and rendering the child components via props.children.It also has static function getInitialProps. The layout and page can load data at the same time when the page loads,

/* _layout.js */

const Layout = (props) => (
<>
<Header />
{ props.children }
<Footer />
</>
);

Layout.getInitialProps = async (context) => {
return {}
}

export default Layout

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Issue 2:
On Safari the page loads and subsequent transition gives fails giving an error in dev console "No router instance found. You should only use "next/router" inside the client side of your app."

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

Expected Behavior

Page transition

Current Behavior

Failure to transition page

Steps to Reproduce (for bugs)

Load page

Click link

Context

Your Environment

Next.js version: next.js v2.4.6

Environment name and version (e.g. Chrome 39, Node.js 5.4): Safari / Node 7.2

Operating System (Linux, maxOS, Windows): OSX