WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Official Helm Chart version

1.1.0 (latest released)

Apache Airflow version

2.1.2

Kubernetes Version

1.18

Helm Chart configuration

no configuration

Docker Image customisations

no customization

What happened

if we install airflow against argoCD, argoCD synchronizes all, then webserver and scheduler tries to run, inits with the wait-for-migrations but the job from migrate-database-job.yaml will never run because is not yet "installed" from the point of view of argoCD synchronization.

What you expected to happen

To run the job from migrate-database-job.yaml without need of post-install in first "installation"

How to reproduce

Install chart using argoCD (per example version v1.8.7+eb3d1fb)

Anything else

We can fix it setting replicas to 0 to scheduler and webserver (minimum), then we let to continue to post-install and then change again the replicas to scheduler and webserver

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 2:
Apache Airflow version

2.2.0 (latest released)

Operating System

Ubuntu 20.04.2 LTS

Versions of Apache Airflow Providers

docker tag: apache/airflow:2.2.0-python3.7

Deployment

Other

Deployment details

No response

What happened

No matter what time zone do I specify in config file [core/default_timezone] or dag's start date, the suffix of dag_run_id is always "+00:00".

What you expected to happen

The time zone suffix of dag_run_id should be some kind related to the time zone that I specify in the config file or the dag object. Is there any way to customize the format of dag_run_id?

How to reproduce

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:
When overriding the contrastDefaultColor of a theme, the text color of a button does not change.

import { createMuiTheme } from 'material-ui/styles'
import cyan from 'material-ui/colors/cyan'

const theme = createMuiTheme({
palette: {
primary: {
...cyan,
contrastDefaultColor: 'light'
},
},
})

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

Expected Behavior

The following button should now have light text, on a cyan background

<Button raised color="primary">Example</Button>

Current Behavior

The button still has dark text on a cyan background.

Environment

Material-UI: 1.0.0-beta.9

React: 15.6.1

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

Expected Behavior

The api and example documentation for the modal should reflect the most up to date props, including show instead of open, and onRequestClose instead of onClose

Current Behavior

Currently the documentation reads

open : bool -- If true the modal is open

onClose : func -- Callback fired when the component requests to be closed. The reason parameter can optionally be used to control the response to onClose.

Signature:

function(event: object, reason: string) => void

event: The event source of the callback

reason: Can be:"escapeKeyDown", "backdropClick"

Steps to Reproduce (for bugs)

Your Environment

Tech
Version

Material-UI
1.0.0-beta.22

React

browser

etc
Issue 1:
(1) Shrink the page horizontally so the the navbar moves into the drop down. (2) Drop the drop down (3) Leaving the drop down dropped, stretch the page again. (4) Drop the drop down and it produces a nasty scroll bar in the header which you have to scroll down to see the dropped menu.

Issue 2:
Steps to reproduce:

Open, for example, bootstrap-3.0.2\examples\theme\index.html.

Make screen smaller to get collapsed nav bar

Click on one of menu for drop-down list in nav bar

Maximize screen again

Go to Drop-down - drop-down and click again - list will be in scroll area.

Did the same on tablet Nexus - 7'' : Landscape and Portrait, the same effect. After refresh everything is fine again.
Issue 1:
Just a ReferenceError: 'Promise' is not defined on Internet Explorer 11 for ^2.0.0-beta.25.

Here is the full error log:

ReferenceError: 'Promise' is not defined
at updateOnClient (http://localhost:3000/_next/-/commons.js:16822:3)
at mount (http://localhost:3000/_next/-/commons.js:16800:3)
at componentWillMount (http://localhost:3000/_next/-/commons.js:16741:7)
at Anonymous function (http://localhost:3000/_next/-/main.js:16665:11)
at measureLifeCyclePerf (http://localhost:3000/_next/-/main.js:16392:5)
at ReactCompositeComponent.performInitialMount (http://localhost:3000/_next/-/main.js:16664:9)
at ReactCompositeComponent.mountComponent (http://localhost:3000/_next/-/main.js:16575:7)
at ReactReconciler.mountComponent (http://localhost:3000/_next/-/main.js:1493:5)
at ReactMultiChild.Mixin.mountChildren (http://localhost:3000/_next/-/main.js:21058:11)
at ReactDOMComponent.Mixin._createContentMarkup (http://localhost:3000/_next/-/main.js:17995:9)

Issue 2:
Hi everyone,

I am currently evaluating next.js for one of my client projects. While playing around with the Redux sample under https://github.com/zeit/next.js/tree/master/examples/with-redux I noticed that it throws the following error under IE11:

ReferenceError: 'Promise' is undefined
at updateOnClient (http://172.16.102.1:3000/_next/-/commons.js:8875:3)
at mount (http://172.16.102.1:3000/_next/-/commons.js:8853:3)
at componentWillMount (http://172.16.102.1:3000/_next/-/commons.js:8794:7)
at Anonymous function (http://172.16.102.1:3000/_next/-/main.js:16691:11)
at measureLifeCyclePerf (http://172.16.102.1:3000/_next/-/main.js:16418:5)
at ReactCompositeComponent.performInitialMount (http://172.16.102.1:3000/_next/-/main.js:16690:9)
at ReactCompositeComponent.mountComponent (http://172.16.102.1:3000/_next/-/main.js:16601:7)
at ReactReconciler.mountComponent (http://172.16.102.1:3000/_next/-/main.js:1496:5)
at ReactMultiChild.Mixin.mountChildren (http://172.16.102.1:3000/_next/-/main.js:21084:11)
at ReactDOMComponent.Mixin._createContentMarkup (http://172.16.102.1:3000/_next/-/main.js:18021:9)

The other examples that I've tried don't seem to throw this error and they also make use of Promise inside of commons.js. Does anyone have any pointers on how to resolve this?

Regards,

Sven
Issue 1:
I have run into an unexpected problem with (a more complicated version of) the following code:

julia> function f(x::Bool)
if x
function g(y)
return y
end
return g
else
function g(y)
return y + 1
end
return g
end
end
f (generic function with 1 method)

julia> f(true)
(::var"#g#7") (generic function with 1 method)

julia> f(false)
ERROR: UndefVarError: g not defined
Stacktrace:
[1] f(::Bool) at ./REPL[1]:11
[2] top-level scope at REPL[3]:1

I had assumed that closure notation function f(x) ... end was intended to be equivalent to f = (x) -> ... (well, the former may allow you to attach an addition method to the function or closure, also). Lowering has generated the following code:

julia> @code_lowered f(true)
CodeInfo(
1 ─ Core.NewvarNode(:(g))
└── goto #3 if not x
2 ─ g = %new(Main.:(var"#g#7"))
└── return g
3 ─ return g
)

It seems to have removed the second closure assignment entirely. I expected it to behave like the following assignment form (even with "long" function notation):

julia> function f(x::Bool)
if x
g = function (y)
return y
end
return g
else
g = function (y)
return y + 1
end
return g
end
end
f (generic function with 1 method)

julia> @code_lowered f(true)
CodeInfo(
1 ─ Core.NewvarNode(:(#8))
│ Core.NewvarNode(:(#9))
│ Core.NewvarNode(:(g))
└── goto #3 if not x
2 ─ #8 = %new(Main.:(var"#8#10"))
│ g = #8
└── return g
3 ─ #9 = %new(Main.:(var"#9#11"))
│ g = #9
└── return g
)

Issue 2:
Reproduce with

julia> run(pipeline(`ls`, stdout=IOBuffer()))
ERROR: MethodError: `uvhandle` has no method matching uvhandle(::Base.AbstractIOBuffer{Array{UInt8,1}})
in _jl_spawn at process.jl:253
in anonymous at process.jl:415
in setup_stdio at process.jl:403
in spawn at process.jl:414
in spawn at process.jl:293
in run at process.jl:530
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/.):no

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

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

FEATURE REQUEST

Kubernetes version (use kubectl version):

Environment:

Cloud provider or hardware configuration:

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

Kernel (e.g. uname -a):

Install tools:

Others:

What happened:

What you expected to happen:

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

Anything else do we need to know:

Issue 2:
Many apps need to know where their peers are, to do some sort of replication or sharding. (hopefully this isn't a duplicate; I did search...)

We have the "endpoints" concept. If we provided easy-to-use plumbing, that could make it easier to use the above sort of app.

Having kubelet stuff them in env variables is not quite right, because the list could change.

So I propose making a little container that watches endpoints, and writes out a config file whenever they change.

It could take the service to watch as an env var. It should optionally write out a file (using the go template language), optionally run a command, optionally send HUP or whatever else seems useful.

People could use this as a sidecar container in their pod, to get their app joining the rest of their cluster.
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 trying to render nested dynamic components via the ComponentFactoryResolver I receive an exception/error message:

browser_adapter.js:84Error: Expression has changed after it was checked. Previous value: 'CD_INIT_VALUE'. Current value: 'null'. It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?

Expected/desired behavior

It should render the nested dynamic controls. This had worked until the introduction of the ComponentFactoryResolver.

Reproduction of the problem

Here is the plunkr recreating the issue: http://plnkr.co/edit/BfqEYqNqyZuJDytt1DCc?p=preview

It's a duplicate of https://github.com/angular/angular/issues/10762 except that the solution provided does not work for ViewChildren, it only works for ViewChild.

What is the expected behavior?

I should be able to render a control via ComponentFactoryResolver which in turn also renders multiple controls via ComponentFactoryResolver.

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

It used to work.

Please tell us about your environment:

Angular version: 2.0.0-rc.5

Browser: [all]

Language: [all]

Issue 2:
I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Follow-up issue for #12275 as requested by @DzmitryShylovich

Current behavior

entryComponents of a lazy loaded NgModule cannot be rendered using ComponentFactoryResolver. Error message: No component factory found for {{entryComponent}}

Expected behavior

entryComponents should be available just like if the module is imported

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/9euisYeSNbEFrfzOhhzf?p=preview

I created a simple setup, similar to what we use internally. Main component provides a method to render a Type. EntryComponent is declared as entryComponent in Page1Module. However after having loaded Page1Module, when trying to render EntryComponent via ComponentFactoryResolver, No component factory found for EntryComponent is thrown.

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

Render entryComponents of child modules at root level. Use cases for this approach are

Modals that shall be rendered on top of everything

Notifications

etc.

Please tell us about your environment:

We're using currently Angular 2.1.1 but this affects the latest version of Angular (2.4.6) as well (see plnkr).

Language: TypeScript ^2.0.0
Issue 1:
This is a proposition to deprecate logistic_regression_path and make it private.

Context: #11476 (comment)

Making it private would make it much easier to refactor the code in LogisticRegression and especially in LogisticRegerssionCV, where a lot of case-by-case logic has to be implemented due to non-homogeneous array shapes.

The deprecation should not affect users. Quoting a mail from @amueller who has looked for occurences of the use of logistic_regression_path on GitHub repositories:

Can confirm it's not used anywhere. I get 12 hits in the 46081 files using sklearn,

all of which are vendoring scikit-learn as a whole (so it's not actually used).

For comparison, LogisticRegression is included in 3980 files (many duplicates and forks of tensorflow)

and in 1662 projects (identified by project name, which is likely underestimating, since not all projects named "kaggle" correspond to the same project).

Issue 2:
Hi,

I currently have a distance matrix that contains Euclidean distances. However, according to the documentation of AgglomerativeClustering, I cannot use this pre-computed metric as input if I want to use Ward linkage. Ward is reserverd for Euclidean distances only (which makes sense from a theoretical point of view). However, my precomputed distance matrix is within the Euclidean space and therefore I should be allowed to use Ward.

Can I just input my distance matrix and run it with "Euclidean" affinity and "Ward" linkage? Or do I need to transform my Euclidean distance matrix to a MDS matrix and input these with "Euclidean" affinity and "Ward" linkage?

Maybe include a statement in the documentation: Note, Ward linkage assumes a Euclidean distance matrix. Make sure your pre-computed distance matrix contains Euclidean distances if you want to use Ward linkage.

Instead of throwing an error.
Issue 1:
The dbpedia_csv.tar.gz file downloaded seems to be corrupt and the link for the dataset, i.e.

https://googledrive.com/host/0Bz8a_Dbh9Qhbfll6bVpmNUtUcFdjYmF2SEpmZUZUcVNiMUw1TWN6RDV3a0JHT3kxLVhVR2M/dbpedia_csv.tar.gz

is giving 404 error. The file dbpedia_csv.tar.gz seems to be downloaded but upon running tensorflow/tensorflow/examples/learn/text_classification_cnn.py, an error is produced giving

Successfully downloaded dbpedia_csv.tar.gz 1657 bytes.

Traceback (most recent call last):

File "main.py", line 122, in

tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)

File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 43, in run

sys.exit(main(sys.argv[:1] + flags_passthrough))

File "main.py", line 88, in main

'dbpedia', test_with_fake_data=FLAGS.test_with_fake_data, size='large')

File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/init.py", line 64, in load_dataset

return DATASETS[name](size, test_with_fake_data)

File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/text_datasets.py", line 48, in load_dbpedia

maybe_download_dbpedia(data_dir)

File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/learn/python/learn/datasets/text_datasets.py", line 40, in maybe_download_dbpedia

tfile = tarfile.open(archive_path, 'r:*')

File "/usr/lib/python2.7/tarfile.py", line 1678, in open

raise ReadError("file could not be opened successfully")

tarfile.ReadError: file could not be opened successfully

Issue 2:
DBPEDIA_URL in text_datasets.py is not a valid url anymore because web hosting in Google Drive has been deprecated, https://gsuite-developers.googleblog.com/2015/08/deprecating-web-hosting-support-in.html

Proposed fix:

Move dbpedia_csv.tar.gz to cloud storage.

What is affected:

Text classification examples that depend on DBpedia data like text_classification.py are now broken.
Issue 1:
I was looking into the classes for GetResponseEvent and PostResponseEvent and found tthat even tought they share a lot of code they do not have common acentors.

Here is what i found:

GetResponseEvent -> KernelEvent -> Event

and

PostResponseEvent -> Event

Get: implements response property

KernelEvent: Implements kernel, request and request type

Post: implements kernel, request, response

It seems to me that there is a clear overlap, would it make sense to organize this so that both have a common ancestor and less duplicate code? Or is PostResponseEvent not considered a KernelEvent?

Issue 2:
symfony/src/Symfony/Component/HttpFoundation/FileBag.php

Line 49
in
1cada24

throw new \InvalidArgumentException('An uploaded file must be an array or an instance of UploadedFile.');

"An uploaded file must be an array or an instance of UploadedFile"

Where is the check for null?, if the $value is null, why don't you ignore the request, currently the forms doesn't work if you don't submit a file.

and why is this approach of throwing an exception on every error?, if the $value is not an array and not an uploadeded file, whats the harm of ignoring the value and continue?
Issue 1:
Description of the problem

I'm using computeVertexNormals on mesh from OBJ and VRML Loader in order to have a smooth shading applied.

It works with VRML Loader but it don't using OBJ Loader with exactly the same mesh.

You can see how normal looks like in the 2 cases :

VRML is smooth shaded and normals (even if inside the mesh) are mingled for one given vertex.

OBJ mesh normals are diverging for one given vertex and consequently mesh is not smooth shaded.

The question is ... why ?

One difference I have noticed is loaded mesh use geometry in VRML case and BufferGeometry in OBJ case.

Thanks in advance for answers

Three.js version

Dev

[x ] r74

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

[] All of them

Windows

Linux

Android

IOS

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
Description of the problem

When rendering scene, objects outside camera's frustum will not be rendered. But if object is geometry with groups, frustum.intersectsObject only checks the whole object's bounding sphere. Currently I workaround this by toggling material's visibility in scene.onBeforeRender/onAfterRender, but if some groups of geometry share the same material, this will not work.

intersectsObject: function () {

var sphere = new Sphere();

return function intersectsObject( object ) {

var geometry = object.geometry;

if ( geometry.boundingSphere === null )
geometry.computeBoundingSphere();

sphere.copy( geometry.boundingSphere )
.applyMatrix4( object.matrixWorld );

return this.intersectsSphere( sphere );

};

}()

Three.js version

Dev

r90

Browser

All of them

OS

All of them
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

include_role

ANSIBLE VERSION

ansible 2.4.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.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.5 (default, Aug 9 2016, 05:27:46) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]

CONFIGURATION

ansible-config dump --only-changed

DEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = [u'/etc/ansible/roles', u'/usr/share/ansible/roles']

OS / ENVIRONMENT

N/A

SUMMARY

"allow_duplicates: no" not work, same role will be executed again.

tasks:

- include_role:

name: bb

allow_duplicates: no

- include_role:

name: bb

allow_duplicates: no

Maybe following code causes this issue:

if block._eor and host.name in block._role._had_task_run and not in_child:

block._role._completed[host.name] = True

BTW, I wonder why put "not in_child" here. Does it mean include_role/import_role is limited than roles?

Issue 2:
From @dekimsey on 2016-08-12T19:42:12Z

ISSUE TYPE

Bug Report

COMPONENT NAME

ini_file

ANSIBLE VERSION

ansible 2.1.1.0
config file = /Users/dkimsey/.ansible.cfg
configured module search path = ['library/']

CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

Using a multiline string as a value in pre-existing ini_file results in duplicate entries.

STEPS TO REPRODUCE

It appears the ini_file was changed from a configparser to a by-line reader. However it does not maintain compatibility correctly as configparser handles mulitline values correctly.

Also, documentation still suggests configparser is in use. It's imported, but unused. It might be appropriate to use configparser to validate the ini file before emitting it to disk. The fact that it didn't surprised us as I wasn't expecting ini_file to produce an invalid ini file. Also, it will happily parse non-ini files into psuedo ini files which break when read with ini_file.

- name: Set multiline.ini.inline
ini_file:
dest: multiline.ini.inline
section: foo
option: bar
value: |
line 1
line 2
line 3

See a complete test: https://gist.github.com/dekimsey/45aeb95814b4aa878ab3f0e5d2d3cb8f

Test with

ansible-playbook -i localhost, example.yml -v

EXPECTED RESULTS

[foo]
baz = simple value
bar = line 1
line 2
line 3

ACTUAL RESULTS

[foo]
baz = simple value
bar = line 1
line 2
line 3

line 2
line 3

Copied from original issue: ansible/ansible-modules-core#4413
Issue 1:
It seems passing argument allow_nan = False to flask.jsonify will not actually turn NaNs into something else like null - e.g. flask.jsonify({“a” : numpy.nan}) will produce {“a” : NaN}

Issue 2:
Expected Behavior

Should be able to run flask with FLASK_ENV=development or production

Actual Behavior

I get the output

Serving Flask app "simple" (lazy loading)

Environment: production

WARNING: This is a development server. Do not use it in a production deployment.

Use a production WSGI server instead.

Debug mode: on

Restarting with stat

c:\users\Riprock\Projects\simple s&r\venv\scripts\python.exe: No module named C:\Users\Riprock\Projects\Simple S&R\venv\Scripts\flask

Environment

Python version: 3.7.4

Flask version: 1.1.1

Werkzeug version: 0.15.5

I can't seem to get a flask server running after updating to the latest version of Flask and python. Before the update my FLASK_ENV=development and FLASK_DEBUG=1. Then I updated and started to encounter the error. I tried rebuilding my venv and getting the same error.
Issue 1:
Environment

Windows build number: 10.0.18990.0
Windows Terminal version (if applicable): 0.5.2681.0

Any other software? WSL Ubuntu 18.04.3's bash.

Steps to reproduce

With powershell tab open, open new Ubuntu tab

Close Ubuntu tab by pressing Ctrl+D

Press Ctrl+D in powershell followed by Enter

Expected behavior

Error message of the likes of "The term ^D is not recognized as the name of a cmdlet, function, script file, or operable program."

Actual behavior

A crash.

Issue 2:
I'm not sure if this is already a way to do this or not...

I have two long running python scripts that I run from Powershell. Instead of opening two PS Windows and then calling the the scripts manually, I created a batch file that spins up two instances of Powershell and calls the scripts on each:

start powershell -noexit -executionpolicy remotesigned .\some_path\script.py -somearguments

I was wondering if there is a way to tell it to spin the Powershell windows inside the new Windows Terminal?