WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Apache Airflow version

main (development)

What happened

I have 16 dags which all update the same dataset. They're set to finish at the same time (when the seconds on the clock are 00). About three quarters of them behave as expected, but the other quarter fails with errors like:

[2022-07-21, 06:06:00 UTC] {standard_task_runner.py:97} ERROR - Failed to execute job 8 for task increment_source ((psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "dataset_dag_run_queue_pkey"
DETAIL: Key (dataset_id, target_dag_id)=(1, simple_dataset_sink) already exists.

[SQL: INSERT INTO dataset_dag_run_queue (dataset_id, target_dag_id, created_at) VALUES (%(dataset_id)s, %(target_dag_id)s, %(created_at)s)]
[parameters: {'dataset_id': 1, 'target_dag_id': 'simple_dataset_sink', 'created_at': datetime.datetime(2022, 7, 21, 6, 6, 0, 131730, tzinfo=Timezone('UTC'))}]
(Background on this error at: https://sqlalche.me/e/14/gkpj); 375)

I've prepaired a gist with the details: https://gist.github.com/MatrixManAtYrService/b5e58be0949eab9180608d0760288d4d

What you think should happen instead

All dags should succeed

How to reproduce

See this gist: https://gist.github.com/MatrixManAtYrService/b5e58be0949eab9180608d0760288d4d

Summary: Unpause all of the dags which we expect to collide, wait two minutes. Some will have collided.

Operating System

docker/debian

Versions of Apache Airflow Providers

n/a

Deployment

Astronomer

Deployment details

astro dev start targeting commit: cff7d91

be sure to have pause in requirements.txt

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

Currently google cloud provider restricts the version of google-video-intellegiance library to >=1.7.0,<2.0.0.

However this version old and latest available version is 2.8.1.

This is also mentioend as one of the - ToDos

Use case/motivation

Version >2.0.0 offers features and v2.0.0 is couple of years old.

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 1:
Issue originally made by Chet Corcos (chet)

Bug information

Babel version: latest

Node version: latest

npm version: latest

Options

I want to create a folder that hides the complexity of npm and babel and all that. But babel doesnt seem to be happy about that. See the code snippet:

Input code

mkdir babel-issue
cd babel-issue

# hide the setup complexity in some hidden folder
mkdir .setup
mkdir src

# a basic node app (that uses babel)
cd src
echo "console.log('hello world');" > index.js

# hide the configuration stuff
cd ../.setup
npm init -y
npm install --save-dev babel-cli babel-preset-es2015

# run babel on the node app
babel-node ../src/index.js --presets es2015
# Error: Couldn't find preset "es2015" relative to directory "/Users/chet/Desktop/babel-issue/src"

ln -s ../src .
babel-node src/index.js --presets es2015
# Error: Couldn't find preset "es2015" relative to directory "/Users/chet/Desktop/babel-issue/src"

Description

Issue 2:
I'm trying to run babel on a JSX file outside the project root (this happens in unit test when using a temporary directory under /private/tmp). It seems that babel fails to find presets installed into the same node_modules directory as babel-cli:

michi ~/Documents$ mkdir babel-preset-issue
michi ~/Documents$ cd babel-preset-issue/
michi ~/Documents/babel-preset-issue$ npm install babel-cli babel-preset-es2015
[...]
michi ~/Documents/babel-preset-issue$ echo 'a = 123;' > ../foo.jsx
michi ~/Documents/babel-preset-issue$ node_modules/.bin/babel --presets=es2015 ../foo.jsx
Error: Couldn't find preset "es2015" relative to directory ".."
at /Users/michi/Documents/babel-preset-issue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (native)
at OptionManager.resolvePresets (/Users/michi/Documents/babel-preset-issue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/michi/Documents/babel-preset-issue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/michi/Documents/babel-preset-issue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/michi/Documents/babel-preset-issue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Users/michi/Documents/babel-preset-issue/node_modules/babel-core/lib/transformation/file/index.js:216:65)
at new File (/Users/michi/Documents/babel-preset-issue/node_modules/babel-core/lib/transformation/file/index.js:139:24)
at Pipeline.transform (/Users/michi/Documents/babel-preset-issue/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transform (/Users/michi/Documents/babel-preset-issue/node_modules/babel-cli/lib/babel/util.js:50:22)

I've tested this with Babel 6.23.0 (babel-core 6.23.1) on OS X 10.11.6.
Issue 1:
Copied from: https://code.visualstudio.com/Issues/Detail/20178

I was experiencing a bizarre issue where the TS language service broke down and wouldn't underline errors in my code. After pulling my hair out for half an hour, I figured out it was because I was doing a file import with the wrong case e.g.

import Engine from "./Engine"

instead of

import Engine from "./engine"

The default class exported was named 'Engine' which I think might have also had something to do with it.

Open the attached folder in VS Code, then pick the "engine.ts" file and notice that there is an undefined symbol ("jjj_this_is_an_error") that is not red underlined.

I would expect a better error on the erroneous import instead of the imported file no longer having proper language services. :)

Issue 2:
From @kuechlerm on March 2, 2016 9:27

In 0.10.10-insider the following code causes the "Go to symbol..."-box to state "No symbols found".

(function() { function foo() { } })();

I would expect to see 'foo' listed as a symbol, which is the case without the IIFE.

Copied from original issue: microsoft/vscode#3618
Issue 1:
📚 Documentation

The information regarding the add_graph() function in the Tensorboard doc is empty. The missing info seems to be there in its source tough.

cc @jlin27

Issue 2:
📚 Documentation

The add_graph function on SummaryWriter doesn't have documentation

https://pytorch.org/docs/stable/tensorboard.html#torch.utils.tensorboard.writer.SummaryWriter.add_graph
Issue 1:
Code Sample, a copy-pastable example if possible

import pandas as pd
df = pd.DataFrame({'x': [1, 2, 3], 'y': [2, 3, 4]})
df.eval('(x - y)').std() # evaluates
df.eval('(x - y).std()') # exception: AttributeError: 'BinOp' object has no attribute 'value'

Problem description

I expected this type of eval() expression to work correctly. I'm not sure how to justify the behavior other than it being more intuitive and practical.

I searched and was able to find similar errors, but the cause seems to be with UnaryOp instead of BinOp:

#16363

Expected Output

>>> import pandas as pd
>>> df = pd.DataFrame({'x': [1, 2, 3], 'y': [2, 3, 4]})
>>> df.eval('(x - y)').std() # evaluates
0.0
>>> df.eval('(x - y).std()') # should also evaluate
0.0

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.3.final.0

python-bits: 64

OS: Linux

OS-release: 4.13.0-32-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

LOCALE: en_US.UTF-8

pandas: 0.22.0

pytest: None

pip: 9.0.1

setuptools: 32.3.1

Cython: None

numpy: 1.14.0

scipy: None

pyarrow: None

xarray: None

IPython: None

sphinx: None

patsy: None

dateutil: 2.6.1

pytz: 2017.3

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: 2.2.0

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: 0.999999999

sqlalchemy: 1.2.2

pymysql: None

psycopg2: None

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
Code Sample, a copy-pastable example if possible

def test_unary():
df = pd.DataFrame({'x': np.array([0.11, 0], dtype=np.float32)})
res = df.eval('(x > 0.1) | (x < -0.1)')
assert np.array_equal(res, np.array([True, False])), res

Problem description

This is related to #11235.

on python 3.6, pandas 20.1, this raises an error the traceback ends with:

File ".../envs/py3/lib/python3.6/site-packages/pandas/core/computation/expr.py", line 370, in _maybe_downcast_constants
name = self.env.add_tmp(np.float32(right.value))
AttributeError: 'UnaryOp' object has no attribute 'value'

In that case the right is -(0.1)

INSTALLED VERSIONS
------------------
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.8.0-49-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.20.1

pytest: None

pip: 9.0.1

setuptools: 27.2.0

Cython: 0.25.2

numpy: 1.12.1

scipy: 0.19.0

xarray: None

IPython: 6.0.0

sphinx: None

patsy: None

dateutil: 2.6.0

pytz: 2017.2

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: 2.0.2

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: None

s3fs: None

pandas_gbq: None

pandas_datareader: None

Another example:

>>> df = pd.DataFrame({'x':[1,2,3,4,5]})
>>> df.eval('x.shift(-1)')
Issue 1:
On Firefox 24.0a2 none of the sidebar anchor links work. Clicking any of them fires a number of errors (in groups of 6, far as I can tell) in the console:

[09:53:07.151] Empty string passed to getElementById(). @ http://twitter.github.io/bootstrap/assets/js/jquery.js:3

Issue 2:
I am using FireFox 22.0 and Chrome 27.0.1453.110.

For example, in this page, http://twitter.github.io/bootstrap/getting-started/

If I hit "License FAQs" on the sidebar in Chrome, the page will directly scroll to the corresponding section for me, just like in the previous version of Bootstrap.

However if I do this in FireFox, the click on the menu has no effect and the page won't scroll to the "License FAQs" section.

Is this an issue of the documentation page only or the library itself?
Issue 1:
The following:

import type {HVal} from 'https://cdn.skypack.dev/haystack-core?dts'
import {HNum} from 'https://cdn.skypack.dev/haystack-core?dts'

function num() : HVal {
return HNum.make(100)
}
console.log(num().getKind())

Gives this error in the VSCode plugin:

Module '"https://cdn.skypack.dev/haystack-core?dts"' has no exported member 'HVal'. Did you mean to use 'import HVal from "https://cdn.skypack.dev/haystack-core?dts"' instead?deno-ts(2614)

Removing the type from the import fixes the issue. But the type declaration is available and downloaded in the cache.

Issue 2:
export { minify } from 'https://esm.sh/terser@5.5.1'
export type { ECMA } from 'https://esm.sh/terser@5.5.1'

after using the quick fix:

deno 1.7.5 / vscdoe-deno 3.0.1
Issue 1:
I'm sure there's some reason as to why the tensor shape (dimensions) and type are no longer included (as of 0.4) when print x is called on some tensor x, but why? It can be extremely useful, especially when viewing the contents of large tensors. Could this information be re-added in a future release? I know I could also just do

print x
print x.shape
print x.type()

but that's extra work ;-)

Issue 2:
my platform is win10, vs2019, python27.

when doing the following steps:

cd pytorch/scripts

build_windows.bat

it fails with the link error 1248, i use the 64bit VS dev cmd line env.

i changed some variables in the build_windows.bat per i found from google like:

set BUILD_PYTHON=ON

and the

"if NOT DEFINED MSVC_Z7_OVERRIDE (

set MSVC_Z7_OVERRIDE=OFF

)" block is left as it is

any other env i need to do to build and link the pythorch?

cc @peterjc123
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When we wrap a button into a Tooltip, the Tooltip component should not interfer with the other components when the IconButton is not hovered.

Current Behavior

The text correctly disappear, but the component stays mounted and prevents clicking on elements that are behind it. This creates some weird situation with an invisible tooltip and an unclickable button.

Steps to Reproduce (for bugs)

Code Sandbox : https://codesandbox.io/s/j292n17ypv

Try to click the mouse button on the right, it's impossible because of the tooltip

Context

Just trying to give infos to user without having to think about where my tooltip is going to end up and wether the user might click here.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.11

React
15.6.1

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

Expected Behavior

When you unselect some item that was previously selected, unselected item should be unhighlighted

Current Behavior

Unselected item is highlighted, but loses bold style for font

Steps to Reproduce (for bugs)

go to https://material-ui-1dab0.firebaseapp.com/demos/selects/

open multiple select example

select 2 items

unselect one of them

unselect second item

Tech
Version

Material-UI
v1.0.0-beta.9

browser
Chrome 61.0.3163.79 on Windows 10
Issue 1:
### Problem

As I used simpson in scipy, I found there some issue about it. Simpson's 1/3 rule use parabola eq. to approximate every curve in the segment, to determine the parabola, it needs 3 points, so that is the constraint of 1/3 rule. It just apply to odd number well, but inaccurate as the number is even.

### Solution

Combine 1/3 and 3/8 rule, so that simpson's rule apply every number of point.

### Result

import numpy as np
from scipy.integrate import simps
def f(x):
return x**3

x = np.linspace(1.0, 4.0, 20)
y = f(x)
a = simps(y,x)

x = np.linspace(1.0, 4.0, 19)
y = f(x)
b = simps(y,x)

print (a, b)

correct result is 63.75

result1 should be more accurate than result2 because of the smaller h,

but result1 = 63.7549, result2 = 63.7499

I just write a C version and I uploaded it in my github, there is also the derivation of simpson rule.

https://github.com/JrPhy/numerical/tree/master/Integration

Issue 2:
problem

The Simpson's rule is suitable for arrays with an odd number of points. The current implementation allows for even number of points by integration the first or last interval using the trapezium rule, which is highly inaccurate.

solution

In case of an even number n points the integral over the first n-1 points can be calculated using the normal Simpson scheme, i.e. the weights are 1/12_(2, 8, 2) over all intervals of three points. To calculated the contribution of the last interval, the 2nd order polynomial fit over the last 3 points is integrated over the interval between the last 2 points. This results in a weight scheme of 1/24_[-1, 8, 5] for the last inverval.

result

Accuracy with n+1 points is better than with n points, even if n+1 is even. This is demonstrated for int_0^pi sin(x) dx in the attached code.

BetterSimps.txt
Issue 1:
Description

I'm not sure if this is expected behavior or not, but flags should be positional. For instance, if I run this,

deno run --allow-net server.ts

it will work properly. But moving the flag to the end of the command will result in an error.

deno run server.ts --allow-net

error: Uncaught PermissionDenied: network access to "127.0.0.1:8000", run again with the --allow-net flag
at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
at Object.sendSync ($deno$/ops/dispatch_json.ts:72:10)
at Object.listen ($deno$/ops/net.ts:51:10)
at listen ($deno$/net.ts:164:18)
at serve (server.ts:261:20)
at server.ts:3:11

Expected Behavior

The flags after the filename should also work. As in this case,

cat server.ts --number-nonblank
# vs
cat --number-nonblank server.ts

Environment

OS - Microsoft Windows 10 Pro

Shell - Powershell

Deno - 0.42.0

V8 - 8.2.308

Typescript - 3.8.3

Issue 2:
The order of the CLI flags should not be of importance. Check this example

Shouldn't

deno test.ts --config tsconfig.json

be the same as

deno --config tsconfig.json test.ts

or maybe I'm wrong?
Issue 1:
Apache Airflow version: 2.0.0

Kubernetes version (if you are using kubernetes) (use kubectl version):

Environment:

Cloud provider or hardware configuration:

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

Kernel (e.g. uname -a): 3.10.0-1160.11.1.el7.x86_64

Install tools: pip

Others:

What happened:

I cleared a success DAG run and it failed to be scheduled again with the following error message:

{scheduler_job.py:1639} INFO - Run scheduled__2021-02-02T16:00:00+00:00 of some_job has timed-out

After removing dagrun_timeout, the same dag run can be rescheduled.

What you expected to happen:

I expect "timeout" is counted from the moment the DAG is reset.

Anything else we need to know:

I can reproduce it with the following code. Not sure if it is the intended behavior.

from airflow import DAG
from airflow.operators.dummy import DummyOperator
import pendulum
with DAG("test_timeout",
default_args={'owner': 'airflow'},
start_date= pendulum.yesterday(),
schedule_interval='@daily',
# add the following parameter after the first run is complete and then clear the success run
# dagrun_timeout=pendulum.duration(minutes=1),
) as dag:
DummyOperator(task_id='dummy')

Issue 2:
Apache Airflow version: 2.0.0

Environment:

Cloud provider or hardware configuration:

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

Kernel (e.g. uname -a): Linux

Install tools:

Others:

What happened:

Clearing a DagRun that has an execution_date in the past where the time difference between now and that execution_date is greater than the DagRun timeout leads to the DagRun failing on clear, and not running.

What you expected to happen:

The DagRun should enter the Running state

I anticipate this is a bug where the existing DagRun duration is not being reset and so the new DagRun is timing out as soon as it starts.

How to reproduce it:

Create an DAG with a DagRun timeout. Trigger said DAG. Wait for DagRun timeout + 1 minutes and then clear said DagRun. New DagRun will immediately fail.

Anything else we need to know:

This occurs regardless of whether the DAG/Task succeeded or failed. Also, any DagRun that has timed out can never be cleared.
Issue 1:
If I have /pages/one/index.js, the URL /one resolves to the index.js. Great.

But if I have /pages/one/two/index.js, the URL /one/two does not resolve to index.js. I get error: Cannot GET /one/two. The URL /one/two/index.js does not work either, as I'd expect.

I think nesting like this should work.

Issue 2:
Hello!

I have a dependency in my application that specifically relies on window.fetch being replaced with the whatwg-fetch polyfill. whatwg-fetch is a transitive dependency, so it should be ending up in my build, but it looks like next.js is replacing it with something else.

From reading the docs it seems like next provides it's own fetch polyfill? Does that sound right, or am I totally off track here?

Thanks!
Issue 1:
Instead of given the argument --vault-password-file <file> by cli. I would like to have an option in ansible.cfg to set it in defaults:

[defaults]
vault-password-file = <file>

Issue 2:
Issue Type:

Feature Idea

Ansible Version:

ansible 1.5.4

Environment:

Ubuntu 14.04

Summary:

I'm using vaults and have the password stored inside a vault-password-file. I don't like to add the --vault-password-file=~/.ansible_vault_password.txt to it every time I run commands (like ansible and ansible-vault). Would be great if it would read this setting out of ansible.cfg

Steps To Reproduce:

Add vault_password_file=file.txt to ansible.cfg
Issue 1:
I'm trying to define a type that can be added/multiplied with floats.

I've tried overloading + like this:

pub struct Num(f64);

impl Add<Num,Num> for f64 {
fn add(self, other: Num) -> Num {
match other {
Num(x) => Num(self + x)
}
}
}

But

let x = Num(42.0);
println!("{}", 1.0 + x);

fails with the following error:

error: mismatched types: expected `_`, found `Num` (expected floating-point variable, found struct Num)
println!("{}", 1.0 + x);
^

Interestingly,

let x: Num = Num(42.0);
println!("{}", 1.0.add(x));

works just fine.

Is this intended behaviour?

It seems inconsistent that + simply ignores the implementation of Add in this case.

Issue 2:
STR

Given the proper (commutative) Add/Mul implementations. (See this playpen link)

const I: Complex<f32> = Complex { re: 0., im: 1. };

let z = I * 3.; // OK
let z = I + 3.; // OK
let z = 3. * I; // Err
let z = 3. + I; // Err

Output

error: mismatched types: expected `_`, found `Complex<f32>` (expected floating-point variable, found struct Complex)

@nikomatsakis Could this work in the future? It would be great if could type 3. + 4. * I instead of I * 4. + 3., the former feels more natural.
Issue 1:
PowerLauncher seems to be using a lot of memory - 220MB

Not sure if this is expected.

Windows build number: 1909 (18363.836)

PowerToys version: v0.18.1

PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Environment

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

Steps to reproduce

Expected behavior

Actual behavior

Screenshots

Issue 2:
Environment

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

Steps to reproduce

Type any text in Power Run.

Expected behavior

Showing a list of all matching or closely matching results (including files, folders and apps)

Actual behavior

Showing only apps results (no files or folders) (it was working fine before!)

Screenshots
Issue 1:
I'd like to use TensorFlow to write an application that would need complex128 as a dtype.

But TensorFlow currently only supports complex64.

Are there any plans for supporting complex128 as well in the future?

Seems that there is a TODO for this in https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/framework/types.proto#L36.

Issue 2:
Currently Tensorflow supports Javascript, Java, and C. These are all the target programming languages of Kotlin Multiplatform. Therefore, it would be theoretically possible to port Tensorflow to be a Kotlin Multiplatform Library by just reusing the existing APIs.

Are there any plans for this? If not, what do you think about the idea?
Issue 1:
Describe the bug

The data option in axios.delete(url, {options}) api is always staying undefined, even after passing the data option with proper values.

To Reproduce

// Example code here
const res = await axios.delete('/api/example', {data:{ id: id}});

Expected behavior

A clear and concise description of what you expected to happen.

Environment

Axios Version [0.20.0]

Adapter [HTTP]

Browser [Chrome]

Browser Version [85.0.4183.83 (Official Build) (64-bit)]

Node.js Version [e.g. 10.19.0]

OS: [Linux 4.15.0-112-generic x86_64]

Additional Library Versions [React 16.13.1]

Additional context/Screenshots

But this is what I am getting:

Issue 2:
Describe the bug

Axios last version (0.20.0) does not use data from config when making DELETE request. In 0.19.2 it's working fine

To Reproduce

axios.delete("...", {
data: { ids: [...] },
}).then(response => {
...
}).catch(error => {
...
});

Expected behavior

Axios send request data from config when making DELETE request

Environment

Axios Version 0.20.0

Browser Chrome

Browser Version 84.0.4147.125

Node.js Version 12.18.3

OS: Linux Mint

Additional Library Versions React 16.13.1

Additional context/Screenshots

None