WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Description

A config that lets the scheduler choose tasks with the latest/oldest execution_date to run first. Or perhaps a way to dynamically assign pool slots based on the execution_date could also work.

Use case/motivation

Sometimes the same task can have multiple task instances from different dag runs queued and occupying pool slots. The task instance from the most recent dag run could have a higher priority than the older ones. Currently there is no way to prioritize that.

Related issues

No response

Are you willing to submit a PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Description of the problem

A common workflow we have is running daily DAGs not dependent of past runs. When deployed, It need to catch up for many years before the runs are up to date and can be used by analysts.

The problem is that most of times, recent runs are more used/valuable than performing ETL of execution time 20 years ago. In practice we deploy the DAG two times, one for filling recent data and one for filling since inception.

Feature requested

A flag (back_run=False) on DAG class. If this flag is set to True, DAG runs are scheduled in reverse order.

E.g. consider we're on day 10 and in the middle of the process a new run for day 11 happens:

the DAG runs would be scheduled like 10 -> 9 -> 8 -> 11 -> 7 -> 6 -> 5 (assuming the run for 11 happened after running for day 8). This flag can only be used if depends_on_past=False
Issue 1:
Hello,

I'm testing PairGrid using http://stanford.edu/~mwaskom/software/seaborn/tutorial/axis_grids.html

but this code

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

movie_user_preferences={'Jill': {'Avenger: Age of Ultron': 7.0,
'Django Unchained': 6.5,
'Gone Girl': 9.0,
'Kill the Messenger': 8.0},
'Julia': {'Avenger: Age of Ultron': 10.0,
'Django Unchained': 6.0,
'Gone Girl': 6.5,
'Kill the Messenger': 6.0,
'Zoolander': 6.5},
'Max': {'Avenger: Age of Ultron': 7.0,
'Django Unchained': 7.0,
'Gone Girl': 10.0,
'Horrible Bosses 2': 6.0,
'Kill the Messenger': 5.0,
'Zoolander': 10.0},
'Robert': {'Avenger: Age of Ultron': 8.0,
'Django Unchained': 7.0,
'Horrible Bosses 2': 5.0,
'Kill the Messenger': 9.0,
'Zoolander': 9.0},
'Sam': {'Avenger: Age of Ultron': 10.0,
'Django Unchained': 7.5,
'Gone Girl': 6.0,
'Horrible Bosses 2': 3.0,
'Kill the Messenger': 5.5,
'Zoolander': 7.0},
'Toby': {'Avenger: Age of Ultron': 8.5,
'Django Unchained': 9.0,
'Zoolander': 2.0},
'William': {'Avenger: Age of Ultron': 6.0,
'Django Unchained': 8.0,
'Gone Girl': 7.0,
'Horrible Bosses 2': 4.0,
'Kill the Messenger': 6.5,
'Zoolander': 4.0}}

df_movie_user_preferences = pd.DataFrame(movie_user_preferences)
df_movie_user_preferences.index.name = "Movie"
df_movie_user_preferences.columns.name = "User"
print df_movie_user_preferences

df_ratings = df_movie_user_preferences.transpose().reset_index()
df_ratings.columns.name = None

g = sns.PairGrid(df_ratings, hue="User")
g.map_diag(plt.hist)
g.map_offdiag(plt.scatter)
g.add_legend()
plt.show()

prints

User Avenger: Age of Ultron Django Unchained Gone Girl \
0 Jill 7.0 6.5 9.0
1 Julia 10.0 6.0 6.5
2 Max 7.0 7.0 10.0
3 Robert 8.0 7.0 NaN
4 Sam 10.0 7.5 6.0
5 Toby 8.5 9.0 NaN
6 William 6.0 8.0 7.0

Horrible Bosses 2 Kill the Messenger Zoolander
0 NaN 8.0 NaN
1 NaN 6.0 6.5
2 6 5.0 10.0
3 5 9.0 9.0
4 3 5.5 7.0
5 NaN NaN 2.0
6 4 6.5 4.0

raises max() arg is an empty sequence

so I can't see legend

Any idea ?

Kind regards

Issue 2:
Python env:

Python: 3.6.8 x64

OS: Mac OSX / Linux

seaborn: 0.9.0

matplotlib: 3.1.1

The code below is not working as expected.

import seaborn as sns

outcome_labels = ["Test A", "Test B"]

sns.heatmap(
confusion_matrix(y_test, clf_predict),
annot=True,
fmt="d",
xticklabels=outcome_labels,
yticklabels=outcome_labels,
)

confusion_matrix returns:

array([[107, 3],
[ 3, 61]])

It generate confusion matrix plot but annotations positions are out of boxes. By default they were centered in Vertical/Horizontal in the past but sth changed after last package update.
Issue 1:
Hello,

I have generated a fiddle here http://jsfiddle.net/coderslay/fyDkD/6/show/

In this i see that when we drag and drop the pegman anywhere on the google map then we get the streetview. The street view is not proper only in Firefox browser. Also i have seen that if the difference between width and height is considerably large then we can see the issue very easily. The img of street view is not showing properly. This happens only if we use bootstrap along with google maps. Else it workd fine. Can you provide a fix or a solution for this.

Issue 2:
First of all thanks for your fantastic work. It does SAVE me a lot of time.

When I put Google Maps into Bootstrap layout, img tag in Google Maps breaks because Bootstrap set img max-width to 100%. When I comment max-width, it's working find but I'm not sure whether it'll break something else in Bootstrap or not.

Bootstrap and Google Maps

http://jsfiddle.net/jhnRD/1/

Google Maps without Bootstrap

http://jsfiddle.net/aVx8L/

Cheers,
Issue 1:
In the bootstrap.css file used on the demo site, at line 97 there are selectors for body, a and a:hover. In the downloadable version accessible from http://twitter.github.com/bootstrap/download.html these are missing. Currently scaffolding.less (commit 7f32d15) contains these lines and nothing else. Seems like this .less file might be missing from the build generated via the Customize page.

Issue 2:
Hey guys,

I download the custom bootstrap from the site with all options, but in min.css don't have the body{} element...
Issue 1:
Are there any current plans to upgrade Electron to Chromium 57?

Currently, we are already using the CSS Grid layout, introduced with Chrome 57, to build form-based dialogs and would like to deploy that as a standalone desktop application with Electron.

Thanks!

Issue 2:
Will electron support deno in the future?

Deno is a new alternative to node js that automatically has builtin typescript support and has just reached v1.
Issue 1:
Steps to Reproduce

I see Row and Column widgets as a UIStackView and would expect spacing parameter so that we can add custom spacing between their children. Something like spacing.

I always end up adding additional Containers in between and this is far from clean solution from my pov - something like this:

new Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
new Container(
height: 20.0,
child: new Image.asset('assets/images/someimage.png'),
),
new Container(
height: 8.0,
),
new Container(
height: 20.0,
child: new Image.asset('assets/images/someimage.png'),
),
)
)

I understand that there are other ways to do this but all of them induce extra logic and make code harder to read.

Issue 2:
In cases when a variable is initialized using a literal (String, int, bool, double, List, Map) or a constructor initialization type annotations do not contribute to type safety, but have net negative effect on code readability:

String greeting = 'Hello, World!';
double d = 4.5;
MyAwesomeWidget widget = new MyAwesomeWidget();
final Map<String, List<int>> measurements = <String, List<int>>{};

The following has as much type safety but better readability:

var greeting = 'Hello, World!';
var d = 4.5;
var widget = new MyAwesomeWidget();
final measurements = <String, List<int>>{};

Type annotations still contribute to type safety when the initializing expression is missing (i.e. null) or is non-trivial:

String greeting;
String greeting = null;
String greeting = condition ? hello : goodbye;
String greeting = fetchGreeting();
Issue 1:
System info

Playwright Version: [v1.XX]

Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]

Browser: [All, Chromium, Firefox, WebKit]

Other info:

Source code

I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

[https://github.com/your_profile/playwright_issue_title]

or

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], },
},
});

fixture (self-contained)

import { test as base, expect } from '@playwright/test';

exports.expect = expect;

export const test = base.extend({

WebApp: async ({page}, use) => {

await page.waitForURL(baseURL);
await expect(page).toHaveTitle(/XXXXXX/);
await page.locator('input:has-text("Login")').click();
await expect(page).toHaveURL(baseURL + 'LoginOrSignUp',{ timeout: (1000 * 1000) });

//Find Tab(with css = e-tab-text) with text = Login click it
await page.locator('div[role="toolbar"] >> text=Login').click();

await page.fill("#logInEmail",userName);
await page.fill('#loginInPassword', password);
await page.locator('#loginSignIn').click();

await page.waitForURL("https://XXXXXXXX/")

await use(WebApp)
},

});

Steps

[Run the test]

[...]

Expected

Should compile, i want to supply the value from test

test.use({

geolocation : {latitude:67.74959, longitude: -52.19903},

permissions :['geolocation'],

project: 'Mobile Chrome',

userName : 'abced@ghij.com',

password : 'jgjgkjgkkj',

baseURL : "XXXXXX"

});

what is the right way of configuring the fixture with variable that will can be overriden from test ?

Actual

compiler error

Issue 2:
System info

Playwright Version: [v1.35.1]

Operating System: [Ubuntu 20, macOS 13.4]

Browser: [All]

Other info:

Source code

I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

https://github.com/cdcasey/skip-test-repro

Currently I have 16 tests across 5 files. Each file has its own page object and fixture. Each test block uses its corresponding page fixture. The page fixture runs through the login process, so each test block includes a fresh login. I assume this makes the tests isolated from each other. Yet if any one of the tests fails, the rest are skipped.

We're using one worker, but the order of the tests doesn't matter. So if the second test that's run fails, the results of the suite are

passed: 1

failed: 1

skipped: 14

Expected output:

passed: 15

failed: 1

skipped: 0

Update: some people suggested I try fullyParallel: true in the config or expect.soft for the test assertions. Neither changed the results.

To be sure, I'm not sure if this is a bug or if I'm misusing fixtures.
Issue 1:
Challenge Make Images Mobile Responsive has an issue.

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/49.0.2623.108 Chrome/49.0.2623.108 Safari/537.36.

Lobster Font is not loaded correctly from this exercise through "Line Up Form Elements Responsively with "Bootstrap"

The href attribute should explicitly contain https:// as Google has moved to https everywhere.

My code:

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<div class="container-fluid">
<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="http://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>

Issue 2:
Challenge Add Font Awesome Icons to our Buttons has an issue.

User Agent is: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101 Firefox/45.0.

The default code is using http, rather than https, thus the font is not being loaded.

The same issue occurs on a few of the previous pages.

Screenshot: http://georgebaker.us/FCCissue_Google_font_links_need_https.jpg

Correct code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
h2 {
font-family: Lobster, Monospace;
}
[ etc ]
Issue 1:
There appears to ba a bug in scipy.optimize.fmin_slsqp; given a set of unsatisfyable constraints, the imode return parameter should signal this with a return value of 4, but this does not appear to happen:

import scipy.optimize
normals = np.concatenate([np.eye(2), -np.eye(2)])
depth = 1
f_ieqcons = lambda x: normals.dot(x) - depth
x, fx, its, imode, smode = scipy.optimize.fmin_slsqp(
func=lambda x: (x**2).sum(),
x0=np.zeros(2),
f_ieqcons=f_ieqcons,
full_output=True
)
print(f_ieqcons(x))
assert imode==4 # fail

that is, given anaconda scipy 0.17.1 np110py35_1

Issue 2:
From mailing list:

x = [1,2]
optimize.minimize(
lambda x: x[0]**2+x[1]**2, x,
constraints = (
{'type':'eq','fun': lambda x: x[0]+x[1]-1},
{'type':'ineq','fun': lambda x: x[0]-2}
),
bounds = ((0,None),(0,None)),
method='SLSQP')

returns (0.18.0.dev0+1eeef28)

fun: 2.77777777777712
jac: array([ 3.33333334e+00, 2.98023224e-08, 0.00000000e+00])
message: 'Optimization terminated successfully.'
nfev: 8
nit: 6
njev: 2
status: 0
success: True
x: array([ 1.66666667e+00, 1.39888101e-14])
Issue 1:
The current behavior of init containers is to run a set of init containers for every pod.

It would be nice if the behavior could be extended so that we can define a set of init containers for a deployment. This would be extremely useful if we have an app that talks to a database and would need to run database migrations or perform some action or task exclusively for the whole deployment during startup. We can then run these tasks in an init container, but only in 1 container per deployment.

Issue 2:
Users often need a means to inject custom behavior into the lifecycle of a deployment process. The deployment API (#1743) could be expanded to support the execution user-specified Docker images which are given an opportunity to complete at various points during the recon process for a deployment.

Use cases and various design approaches were discussed previously in an OpenShift deployment hooks proposal.

This RFC is to capture initial thoughts on the topic and to link any existing related issues.
Issue 1:
During upgrading 0.13 I found it really hard to locate problems caused by duplicated using of createFactory. But it may help with component names in the warnings:

'Warning: Factory.type is deprecated. Access the class directly before ' +
'passing it to createFactory

Issue 2:
Heads up to anybody going through debugging hell.

If you have your own fancy component (e.g <AwesomeInput/>) and you think its smart passing a prop named key to your component, so that you can set it as the react-key (you know, the one React complains about needing if there are multiple elements on the same level), this.props.key will be undefined within your component!

'key' and 'ref' are reserved words that are not allowed to be passed as props.

renaming the prop resolves this issue. It is too bad, that React doesn't warn you about that as it does with many other things. Would be great if this would be reflected more prominently in the docs under 'reserved names' or similar.
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes

RFC?
no

Symfony version
2.7.39

Behat tests started failing because of this issue (see here).

The following command started displaying a help message, instead of running the test suite:

behat --no-colors -sbig_brother -fpretty --format-settings='{\"paths\": true}' features

The cause of the issue seems to be #24987 which allowed grouping short options. -sbig_brother contains the "h" letter which is treated as -h and the Application assumes it needs to display a help message:

symfony/src/Symfony/Component/Console/Application.php

Lines 164 to 172
in
7b4d519

$name = $this->getCommandName($input);

if (true === $input->hasParameterOption(array('--help', '-h'))) {

if (!$name) {

$name = 'help';

$input = new ArrayInput(array('command' => 'help'));

} else {

$this->wantHelps = true;

}

}

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes

RFC?
yes

Symfony version
3.4.2 (and others)

#24987 introduced a bug in hasParameterOption. If a short option has a value, then hasParameterOption will search the value for additional short options.

#25487 submitted a fix for this bug, but the fix appears to be incorrect.

The current implementation of parseShortOption is as follows:

/**
* Parses a short option.
*
* @param string $token The current token
*/
private function parseShortOption($token)
{
$name = substr($token, 1);

if (strlen($name) > 1) {
if ($this->definition->hasShortcut($name[0]) && $this->definition->getOptionForShortcut($name[0])->acceptValue()) {
// an option with a value (with no space)
$this->addShortOption($name[0], substr($name, 1));
} else {
$this->parseShortOptionSet($name);
}
} else {
$this->addShortOption($name, null);
}
}

In particular, note the substr($name, 1). If there is a short option -e that takes a value, then -etest will provide the value test to the -e option. See also the implementation of parseShortOptionSet, which has similar logic. No = is assumed or accounted for.

#25487 fixed the bug of #24987 by assuming that the value of a short option was formatted as -e=test; however, this is inconsistent with the implementation of the parsing functions.

My testing seems to uphold these observations, but please LMK if I have made an error somewhere. I'm not sure if there is a better solution than reverting #24987.
Issue 1:
I would like to be able to capture (or cancel) the native file open dialog.

It is possible for 'download/save' by catching the 'will-download' event. I would like the same for the file selection.

Basically I need to control all native UI element (popup, dialogs, ...).

Does it make sense?

thanks.

Issue 2:
Electron version: 1.1.0

Operating system: N/A

Currently there isn't any way to remove dialog boxes (such as ones created through dialog.showMessageBox). This can be useful in, for example, "Keep Waiting" dialogs. After the window becomes responsive again it would be great if we could programmatically close the dialog.
Issue 1:
💻

Would you like to work on a fix?

How are you using Babel?

@babel/cli

Input code

...

Configuration file name

No response

Configuration

No response

Current and expected behavior

After upgrading to 7.22.8 this issue is coming

Environment

Babel version 7.22.8

Possible solution

No response

Additional context

No response

Issue 2:
Issue originally made by Jonathan (barroudjo)

Bug information

Node version: 0.12.7

npm version: 2.11.3

Description

When using babel-plugin-transform-runtime (6.3.13), which requires the use of babel-runtime (of which I installed the latest version, 6.3.19), there is still the bug described in T6644. I get when I try to run the app thus compiled the

TypeError: (0 , _typeof3.default) is not a function

failure.

This is strange as this bug is supposed to have been resolved by the release of babel-runtime 6.3.19. Does anyone else have this issue ?
Issue 1:
Input:

function foo(/* comment */) {}

Output:

function foo() {}
/* comment */

Leading and trailing comments work as expected:

function foo(arg /* comment */) {}
function foo(/* comment */ arg) {}

function foo(arg /* comment */) {}
function foo( /* comment */arg) {}

Reproducible in the online REPL at the time of writing.

Issue 2:
This code:

try {
foo();
} catch(e) {
// do nothing
}

Compiles to this:

"use strict";

try {
foo();
} catch (e) {}

// do nothing

It's ok at all, except eslint. It's affecting no-empty rule.
Issue 1:
building atom from src

cd /usr/local/src/atom
git describe --tags `git rev-list --tags --max-count=1
v0.165.0
git log | head
commit 85456ad9203e8ef390a9f51924bb1f7b0d77ef6d
Author: Kevin Sawicki <kevin@github.com>
Date: Fri Dec 19 18:59:46 2014 -0800

Add missing s in comspec

on

lsb_release -rd
Description: openSUSE 13.2 (Harlequin) (x86_64)
Release: 13.2

build & install complete

script/clean
script/build --build-dir /usr/local/src/atom-build
...
Done, without errors.

script/grunt install
Running "install" task

which atom
/usr/local/bin/atom

but exec fails

/usr/local/bin/atom
nohup: failed to run command ‘/tmp/atom-build/Atom/atom’: No such file or directory

Issue 2:
The content is left behind at /tmp/$USER/atom-build .

Its happening since 0.145 .
Issue 1:
Bug report

Describe the bug

When using a custom document _document.tsx, styled-jsx does not SSR styled-jsx and there is a flash of unstyled content unless I duplicate the static getInitialProps method.

To Reproduce

FOUC

import React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';

import fonts from '../styles/fonts.css';
import reset from '../styles/reset.css';

export default class MyDocument extends Document {
public render() {
return (
<html lang="en">
<Head>
<style dangerouslySetInnerHTML={{ __html: reset + fonts }} />
</Head>
<body>
<Main />
<NextScript />
</body>
</html>
);
}
}

NO FOUC

import React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';
import flush from 'styled-jsx/server';

import fonts from '../styles/fonts.css';
import reset from '../styles/reset.css';

export default class MyDocument extends Document {
public static getInitialProps({ renderPage }) {
const { html, head, buildManifest } = renderPage();
const styles = flush();
return { html, head, styles, buildManifest };
}

public render() {
return (
<html lang="en">
<Head>
<style dangerouslySetInnerHTML={{ __html: reset + fonts }} />
</Head>
<body>
<Main />
<NextScript />
</body>
</html>
);
}
}

System information

OS: macOS

Version of Next.js: 7.0.0

Issue 2:
Feature request

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

readline.cursorTo and readline.clearScreenDown (here) help to make the outputs clean for developing react components and pages, but it ruins the outputs when we are doing some testing because it changes the output format, prints so many blank rows and wipes out other outputs such as console.logs for debugging purpose.

Besides, managing the outputs and avoiding using plain console.logs is a good practice for libraries.

Describe the solution you'd like

Provide an option to disable the feature.

wrap unistore instance into a new class which accepts the option above

Or

Is it possible to allow us to change the unistore subscriber?

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.