WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
When I put excel into a zone and do ctrl+f, the find window appears as the same size as the zone.

btw, fancyzones is awesome!!! :)

Environment

Microsoft Windows [Version 10.0.18363.836]

Windows build number: [run "ver" at a command prompt]
PowerToys version: 17
PowerToy module for which you are reporting the bug (if applicable): fancyzones

Steps to reproduce

open excel, put it into a zone, and then hit ctrl+F

Expected behavior

the find box should appear with a normal size.

Actual behavior

appears the size of the zone

Screenshots

Issue 2:
This applies to 0.14.1 and also to the current master.

Repro steps:

have "Move newly created windows to their last known zone" ON.

open Outlook and snap it to a zone.

open an email message or create a new email message.

Result:

the email message window is snapped to the zone where Outlook is snapped.

Expected:

the email message window is opened where it was last used.

Moving the email message window somewhere else will "fix" the problem, subsequent email messages will be opened where they were last used and not snapped to the zone.

Snapping Outlook to a new zone will bring back the bug.
Issue 1:
This is because stateful RNN requires batch_input_shape to be defined, however the forward RNN does not know what the batch_input_shape is when creating the Bidirectional object because it did not yet had the chance to connect to the layers below it.

However, the Bidirectional init attempts to create the backward RNN by duplicating the forward RNN and for that it calls the get_config method of the forward RNN.

The get_config of Recurrent places a value of None for batch_input_shape see

https://github.com/fchollet/keras/blob/master/keras/layers/recurrent.py#L233

It has an input_spec but because the forward RNN is not yet connected, its shape is None.

I tried to solve this by manually specifying the batch_input_shape when creating the forward RNN object.

However, even this did not solve the problem because the way get_config is written.

In Recurrent get_config ignores the batch_input_shape parameter and instead re-compute it from input_spec[0].shape and then this recomputed value overwrites the value for batch_input_shape returned from the super get_config

Issue 2:
Please make sure that the boxes below are checked before you submit your issue.

If your issue is an implementation question, please ask your question on StackOverflow or on the Keras Slack channel instead of opening a GitHub issue.

Thank you!

Check that you are up-to-date with the master branch of Keras. You can update with:

pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps

Check that your version of TensorFlow is up-to-date. The installation instructions can be found here.

Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).
Issue 1:
I recently upgraded my Airflow version from 1.10.10 to 2.0.0, and noticed the scheduler are failing and exiting after upgrade. After checking the log, it's suggest the duplicated entry for records in dag_run table. It tries to insert dag runs already executed before the upgrade.

After some digging, I found it related to how the scheduler calculate the next execution_date: it picks the last dag_run with run_type of scheduled, however the new DagRunType.SCHEDULED is not the same as "scheduled" as previously was. as DagRunType is an enum type, DagRunType.SCHEDULED is actually converted to "DagRunType.SCHEDULED" not "scheduled".

It looks like not an intended design but a mistake. change of DagRunType.SCHEDULED to DagRunType.SCHEDULED.value will simply solve this issue.

airflow/airflow/jobs/scheduler_job.py

Lines 1559 to 1568
in
ab5f770

dag.create_dagrun(

run_type=DagRunType.SCHEDULED,

execution_date=dag_model.next_dagrun,

start_date=timezone.utcnow(),

state=State.RUNNING,

external_trigger=False,

session=session,

dag_hash=dag_hash,

creating_job_id=self.id,

)

Issue 2:
Apache Airflow version

2.6.0

What happened

Worker pod template file doesn't have an option to add priorityClassName.

What you think should happen instead

Airflow workers deployment however has the option to add it via the override airflow.workers.priorityClassName . We should reuse this for the worker pod template file too.

How to reproduce

Trying to add a priorityClassName for airflow worker pod doesnt work. Unless we override the whole worker pod template with our own. But that is not preferrable as we will need to duplicate a lot of the existing template file.

Operating System

Rhel8

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
Hello,

There's a bunch of packages which I'm installing that requires NumPy (for example TensorFlow), and I can't seem to be able to install and import them because of an ImportError on the numpy side.

This is happening with both pip install and building from source.

Reproducing code example:

import numpy as np
import tensorflow as tf

Error message:

ImportError: numpy.core._multiarray_umath failed to import

Numpy/Python version information:

'1.16.0.dev0+cdbf35b'

Issue 2:
I have unearthed a very strange problem when combining using Gauss-Hermite quadrature in a script that also does some plotting.

Minimal example

import matplotlib.pyplot as plt
import numpy as np
plt.plot([0, 1], [0, 1], 'k--')
degree = 11
np.polynomial.hermite.hermgauss(degree)

Error message

Traceback (most recent call last):
File "..\TransfectionOXB\np_bug.py", line 5, in <module>
np.polynomial.hermite.hermgauss(degree)
File "c:\depot\XXX\venv\lib\site-packages\numpy\polynomial\hermite.py", line 1586, in hermgauss
x = la.eigvalsh(m)
File "<__array_function__ internals>", line 6, in eigvalsh
File "c:\depot\XXX\venv\lib\site-packages\numpy\linalg\linalg.py", line 1176, in eigvalsh
w = gufunc(a, signature=signature, extobj=extobj)
File "c:\depot\XXX\venv\lib\site-packages\numpy\linalg\linalg.py", line 94, in _raise_linalgerror_eigenvalues_nonconvergence
raise LinAlgError("Eigenvalues did not converge")
numpy.linalg.LinAlgError: Eigenvalues did not converge

Surprising workarounds/fixes

I have no idea why there is any dependency of hermgauss on matplotlib, but the following observations make this even more surprising:

Using degree < 10 resolves the problem

Changing the plot format from -- to - (or anything else) also resolves the problem

Version information

I believe this is a problem on Windows only, as a colleague using Windows verified this bug on his system, while a mac user did not receive any error message.

I'm currently using:

Windows 10 Enterprise, version 2004, OS build 19041.450

python version 3.7.8

numpy version 1.19.1

matplotlib version 3.3.1

I've tried it on a few other versions of numpy and matplotlib, but there is no difference.
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.): same host name

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

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"6+", GitVersion:"v1.6.0-alpha.0.760+4dd0320db7cd3d-dirty", GitCommit:"4dd0320db7cd3df7b21a24efb13dabf662e73d4d", GitTreeState:"dirty", BuildDate:"2016-11-22T07:29:40Z", GoVersion:"go1.7.3", Compiler:"gc", Platform:"linux/amd64"}

Server Version: version.Info{Major:"1", Minor:"6+", GitVersion:"v1.6.0-alpha.0.760+4dd0320db7cd3d-dirty", GitCommit:"4dd0320db7cd3df7b21a24efb13dabf662e73d4d", GitTreeState:"dirty", BuildDate:"2016-11-22T07:29:40Z", GoVersion:"go1.7.3", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Cloud provider or hardware configuration:

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

NAME="Ubuntu"

VERSION="16.04.1 LTS (Xenial Xerus)"

Kernel (e.g. uname -a):

Linux freeworld 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Install tools:

Others:

I used my laptop as the master and node, and used a virtualbox machine installed the same OS as a the other node.

What happened:

I set the same host name(--hostname-override=k8s-node1-192.168.0.105) in kubelet startup argument on both of two nodes by mistake. Both of them successfully registered on the master. if create a rc with replicas equal 2, you will see both of nodes have duplicate ones. There are two pods on each node and the pods identical. By the way if run "kubectl get no", it will show only one node.

What you expected to happen:

I think if there is a host name conflict, kubelet should fail to registered. It means new node cannot be added in cluster.

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

set same host name using hostname-override to start kubelet on two nodes.

create a rc and schedule to those two nodes.

run "docker ps" on those two nodes to check result.

Anything else do we need to know:

Issue 2:
To avoid the unregister_netdevice race due to hairpin mode (moby/moby#5618, which is due to a kernel bug, maybe https://bugzilla.kernel.org/show_bug.cgi?id=81211) we flipped the container bridge to promiscuous, but this has various side effects (performance hit, duplicate acks, martian packets etc).

To workaround this we discussed a packet laundering ns, eg: https://gist.github.com/bprashanth/0e3c0cf8ef7fd21fc2e857c96eb6f4d0

And adding 2 rules to the host:

DNAT packets going from an endpoint to the service into the laundering netns

Don't MASQ packets coming out of the laundering netns, just pass them back to the endpoint

This would probably mean that endpoints can never reach their peers thorugh the Service vip, I think that should be OK? (petset pods DNS lookup their peers through the Service, then use individual hostnames to talk to them).

@girishkalele
Issue 1:
I went back to complete some of the new challenges in html/css and jquery sections that were added with the most recent update. When I complete the challenge and click to next, it takes me to a lesson I have already completed (next in line on the map) rather than the next incomplete lesson and gives me credit (items completed number in the corner) for doing it again.

Issue: I am getting credit for lessons I have already completed in past when I do them again.

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-import-a-google-font has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

I noticed new waypoints for HTML5/CSS sections. I completed some of the new ones, and just to refreshen up on some older waypoints I finished a while ago, I decided to redo some.

I noticed that I was receiving points for complete the waypoints that I have already done. These were the ones that were done before the new update in the curriculum.
Issue 1:
Hi,

TS: 1.4

Not sure that I agree we should have an error here:

interface Indexer {
[x: string]: number
}

class Base {

foo() : Indexer {
return undefined;
}
}

/*Error: Class 'Foo' incorrectly extends base class 'Base'.
Types of property 'foo' are incompatible.
Type '() => { id: number; }' is not assignable to type '() => Indexer'.
Type '{ id: number; }' is not assignable to type 'Indexer'.
Index signature is missing in type '{ id: number; }'.
*/
class Foo extends Base {

foo() {
return { id: 10 };
}
}

Issue 2:
here is my code

export enum SortDir
{
Asc,
Desc,
Flip
}

export interface ISortInfo
{
getvalue(x: QuerySummary): any; //change to number|string in TypeScript 1.4
order: SortDir;
ordercalc?: number;
}

class SortByQueryId implements ISortInfo
{
getvalue = x => x.QueryId;
order = SortDir.Flip;
}

when I type "x." I expect to see the properties of QuerySummary but I do not. VS still thinks the type is 'any'
Issue 1:
After update 0.10.10 the code highlight for javascript seems to be different, keywords like function var etc, are not highlighted. Also, when coding, after line break the cursor get back to the start of the line.

Issue 2:
0.10.10 (Feburary build) has a regression is that the following JavaScript keywords are no longer highlighted in the Dark Visual Studio & Light Visual Studio themes:

var let const function get set class interface module namespace

This only affects JavaScript (not TypeScript).

The workaround if to switch to the Dark+ Default and Light+ theme.

Note that there are other colorizing issues open, not caused by this regression: e.g. 'import' and 'from'. See microsoft/TypeScript-TmLanguage#37
Issue 1:
Files copied to '/static' using CopyWebpackPlugin are successfully created, but then are deleted right after the console messages 'Building page ...'.

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

Expected Behavior

Files copied by CopyWebpackPlugin to '/static' don't subsequently get removed by the build process.

Current Behavior

Files copied by CopyWebpackPlugin to '/static' get copied, then deleted by the build process.

Steps to Reproduce (for bugs)

Run npm run dev with the following next.config.js (note that I'm copying a file from the workbox-sw npm package, but it can be any file):

const path = require('path')
const CopyWebpackPlugin = require('copy-webpack-plugin')

module.exports = {
webpack: (config, { dev }) => {
config.plugins.push(
new CopyWebpackPlugin([
{
from: path.join(__dirname, 'node_modules/workbox-sw/build/importScripts/workbox-sw.dev.v2.1.2.js'),
to: path.join(__dirname, 'static/scripts/workbox.js')
}
]))

return config
}
}

Context

Can't copy files at build time.

Your Environment

Tech
Version

next
4.1.4

node
9.2.0

OS
OS X 10.11.6

browser
Chrome 62

etc

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

Expected Behavior

Using the new next-css module in dev mode, I'd like to globally import a css stylesheet and figured out the correct place could be _document.js.

import '../css/style.css';

Current Behavior

It looks like importing css works only in components or in pages.

Production is unaffected by this problem as we're using a different strategy: https://github.com/zeit/next-plugins/tree/master/packages/next-css#production-usage

Your Environment

Tech
Version

next
5.0

node
9.5

OS
MacOS

browser
Chrome
Issue 1:
For even numbered periods the centered moving average is calculated incorrectly. Suppose the period length is 5. Then the center of 5 periods is 3. However if the period length is 4 then the center of the period is 2.5. The value at index 3 should be the average of the values at 2.5 and 3.5. Pandas is showing the 2.5 value at 3 which is incorrect.

EXAMPLE:

a=pd.Series(range(1,6), index=range(1,6))

a.rolling(4, center=True).mean()

1 NaN

2 NaN

3 2.5

4 3.5

5 NaN

Issue 2:
Seems like there is a bug in the centered mooving window functions, although the examples here don't show it.

Also np.convolve used like in this post on Stackoverflow shows different results for the first values:

In [109]: ser = pd.Series(randn(20), index=pd.date_range('1/1/2000', periods=20))

In [110]: df = pd.DataFrame(ser)

In [111]: df['rc'] = pd.rolling_count(ser, 10, center=True)

In [112]: df['rm'] = pd.rolling_mean(ser, 10, center=True)

In [113]: df['rm_min_1'] = pd.rolling_mean(ser, 10, center=True, min_periods=1)

In [114]: def movingaverage(interval, window_size):
.....: window = numpy.ones(int(window_size))/float(window_size)
.....: return numpy.convolve(interval, window, 'same')
.....:

In [116]: df['ma'] = movingaverage(ser, 10)

In [117]: df
Out[117]:
0 rc rm rm_min_1 ma
2000-01-01 1.177692 5 NaN 0.048306 0.024153
2000-01-02 -0.068567 6 NaN -0.094287 -0.056572
2000-01-03 0.194942 7 NaN -0.225103 -0.157572
2000-01-04 -0.179778 8 NaN -0.160040 -0.128032
2000-01-05 -0.882760 9 NaN -0.262176 -0.235959
2000-01-06 -0.807252 10 -0.250828 -0.250828 -0.250828
2000-01-07 -1.009999 10 -0.365703 -0.365703 -0.365703
2000-01-08 0.295402 10 -0.431110 -0.431110 -0.431110
2000-01-09 -1.079267 10 -0.408968 -0.408968 -0.408968
2000-01-10 -0.148689 10 -0.456946 -0.456946 -0.456946
2000-01-11 0.028935 10 -0.290453 -0.290453 -0.290453
2000-01-12 -0.722632 10 -0.204166 -0.204166 -0.204166
2000-01-13 0.416364 10 -0.175837 -0.175837 -0.175837
2000-01-14 -0.659560 10 -0.266773 -0.266773 -0.266773
2000-01-15 0.782165 10 -0.184003 -0.184003 -0.184003
2000-01-16 0.055617 10 -0.338359 -0.338359 -0.338359
2000-01-17 -0.726706 0 NaN NaN -0.341252
2000-01-18 -0.613954 0 NaN NaN -0.268989
2000-01-19 -0.251574 0 NaN NaN -0.310625
2000-01-20 -1.692243 0 NaN NaN -0.244669

In [5]: import numpy

In [6]: In [20]: ser = pd.Series(range(10))
...: ...: df = pd.DataFrame(ser)
...: ...: N=3
...: ...: df['rc'] = ser.rolling(N, center=True).count()
...: ...: df['rm'] = ser.rolling(N, center=True).mean()
...: ...: df['rm_min_1'] = ser.rolling(N, center=True, min_periods=1).mean()
...: ...: def movingaverage(interval, window_size):
...: ...: window = numpy.ones(int(window_size))/float(window_size)
...: ...: return numpy.convolve(interval, window, 'same')
...: ...:
...: ...: df['ma'] = movingaverage(ser, N)

In [7]: df
Out[7]:
0 rc rm rm_min_1 ma
0 0 2.0 NaN 0.5 0.333333
1 1 3.0 1.0 1.0 1.000000
2 2 3.0 2.0 2.0 2.000000
3 3 3.0 3.0 3.0 3.000000
4 4 3.0 4.0 4.0 4.000000
5 5 3.0 5.0 5.0 5.000000
6 6 3.0 6.0 6.0 6.000000
7 7 3.0 7.0 7.0 7.000000
8 8 3.0 8.0 8.0 8.000000
9 9 2.0 NaN 8.5 5.666667
Issue 1:
Version

2.6.10

Reproduction link

https://jsfiddle.net/x725dcbu/2/

Steps to reproduce

What is expected?

html & template have the same behavior

What is actually happening?

normal markup:

<input value="&#102;&#111;&#111;"> gives foo

vue template

<input value="&#102;&#111;&#111;"> gives &#102;&#111;&#111;

additional note

in a SSR context, the generated HTML is correct, ie. <input value="&#102;&#111;&#111;">

Issue 2:
What problem does this feature solve?

I have a few VueJS components to show a dashboard.

I would like to reuse the components to send an email with the latest view of the dashboard.

My server-part is using SpringBoot.

For the moment, I'm forced to duplicate the VueJS components into Thymeleaf templates.

So I have to maintain both components and templates.

Would it be possible to achieve that?

What does the proposed API look like?

I would like to ask a Vue tool to render one or more components by giving them data as parameters.

Either a command-line tool or, better, something that can be compiled in a Java tool or other languages and libraries...
Issue 1:
Why do i get this error

App threw an error when running [TypeError: Cannot read property 'start' of undefined]

trying to run: npm start

const electron = require('electron');
const app = electron.app; // Module to control application life.
const BrowserWindow = electron.BrowserWindow; // Module to create native browser window.
app.on('ready', function() {
// Create the browser window.
mainWindow = new BrowserWindow({width: 800, height: 600});

// and load the index.html of the app.
mainWindow.loadURL('file://' + __dirname + '/index.html');

})

but if use

const electron = require('electron');
const app = require('app');
const BrowserWindow = require('browser-window')

it works nice

Tested in:

OSX El Capitan

node: v4.0.0 ^ npm: 2.14.2 ^ "electron-prebuilt": "^0.35.4"

node: v5.1.1 ^ npm: 3.3.12 ^ "electron-prebuilt": "^0.35.4"

Issue 2:
Recently I wanted to test how well electron works on fedora 23. It turns out the prebuilt version doesn't seem to work very well. I am getting this error on the electron-quick-start repo:

➜ electron-quick-start git:(master) npm start

> electron-quick-start@1.0.0 start /home/tom/Programming/electron-quick-start
> electron main.js

App threw an error when running [TypeError: Cannot read property 'start' of undefined]
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot read property 'start' of undefined
at Object.<anonymous> (/home/tom/Programming/electron-quick-start/main.js:7:23)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Object.<anonymous> (/home/tom/Programming/electron-quick-start/node_modules/electron-prebuilt/dist/resources/default_app/main.js:252:23)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)

I haven't tried to build electron manually on fedora 23 yet, but just wanted to let you know that the prebuit fails on my side. (x86-64, fedora 23, npm 3.3.12, node 5.1.1, electron 0.35 (as specified in the package.json))
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-kops-aws-updown/3071/

Failed: Up {e2e.go}

kops configuration failed: error running kops config: exit status 1

Previous issues for this test: #33357 #33377 #33993 #34033 #34796

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-federation/4526/

Failed: Up {e2e.go}

error running up: exit status 1

Previous issues for this test: #33357 #33377
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

lineinfile

ANSIBLE VERSION

ansible 2.6.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/jsteel/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.14 (default, Jan 5 2018, 10:41:29) [GCC 7.2.1 20171224]

CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

Recent change #28721 breaks my config where I use both regexp AND insertafter; the regexp doesn't seem to match any more, so on every subsequent run it inserts duplicate lines.

STEPS TO REPRODUCE

- name: my.cnf options
lineinfile:
dest: "{{ mariadb_config }}"
regexp: "^{{ item.option }}="
line: "{{ item.option }}={{ item.value }}"
insertafter: '^\[{{ item.section }}\]'
with_items:
- { section: mysqld, option: innodb_log_file_size, value: "{{ innodb_log_file_size }}" }
- { section: mysqld, option: default-storage-engine, value: innodb }
- { section: mysqld, option: max_allowed_packet, value: 128M }

EXPECTED RESULTS

On subsequent runs, nothing should change.

ACTUAL RESULTS

A duplicate line is inserted for each item, for eg:

--- before: /etc/my.cnf (content)
+++ after: /etc/my.cnf (content)
@@ -1,4 +1,5 @@
[mysqld]
+default-storage-engine=innodb
skip-name-resolve
max_allowed_packet=128M
default-storage-engine=innodb

Issue 2:
ISSUE TYPE

From @halberom on 2015-09-21T143421Z

COMPONENT NAME

ec2_group module

ANSIBLE VERSION

_

1.9.3

devel

_

SUMMARY

From @halberom on 2015-09-21T14:34:21Z

Description

Currently running ec2_group with a rule like

- proto: tcp
from_port: 9200
to_port: 9200
cidr_ip:
- 10.220.130.0/27
- 172.16.60.0/24

Works fine on the first run, but fails on the second with

<Response><Errors><Error><Code>InvalidPermission.Duplicate</Code><Message>the specified rule "peer: 10.220.130.0/27, TCP, from port: 9200, to port: 9200, ALLOW" already exists</Message></Error></Errors><RequestID>1fdf97c8-e078-4d0d-89da-cf65e498b710</RequestID></Response>

It has been discussed here.

Steps to reproduce

run an ec2_group task that creates the above rule, then re-run it

Expected result

it creates the rules the first time, and then doens't make any changes or error the second time

Actual result

it creates the rules the first time, and then errors

Desired

Given that it works on the first run, and correctly creates the group and rules, it would be nice for it to work on subsequent runs. Either that or write a fail statement and stop it working on the first run.

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

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