WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm using Symfony Process to execute wp-cli commands and one of them was something like this:

wp post create --post_title="Hello VersionPress!" --post_date="2011-11-11 11:11:11"

If I executed this command on Windows cmd it worked fine but when Symfony Process ran it, the post title was created as "Hello VersionPress11:11" and the data was generally not right, even though the command technically succeeded (no error).

After some experimenting, it seems that the exclamation mark is somehow a problem. When I removed it, all worked fine. Is that a bug in Symfony Process on Windows or maybe some kind of misconfiguration on my side?

Issue 2:
In Symfony/Component/HttpKernel/EventListener/ExceptionListener::duplicate() the format attribute is set without an underscore. This results in the cloned Request having a null format which in turn causes ExceptionController::showAction to always render exceptions in html.

Looks like f946108 broke it.
Issue 1:
go version devel +b86ee06ef235 Mon Aug 18 16:52:31 2014 +0400 linux/amd64

Run the following program with GODEBUG=gctrace=1

package main
import "time"
func main() {
for {
time.Sleep(time.Second)
}
}

gc1(1): 3+1+139+0 us, 0 -> 0 MB, 13 (13-0) objects, 0/0/0 sweeps, 0(0) handoff, 0(0)
steal, 0/0/0 yields
scvg0: inuse: 17592186044400, idle: 15, sys: 1, released: 0, consumed: 1 (MB)
gc2(1): 3+1+178+0 us, 0 -> 0 MB, 41 (41-0) objects, 11/0/0 sweeps, 0(0) handoff, 0(0)
steal, 0/0/0 yields
scvg1: GC forced
scvg1: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
scvg2: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
gc3(1): 2+0+135+0 us, 0 -> 0 MB, 33 (41-8) objects, 19/12/0 sweeps, 0(0) handoff,
0(0) steal, 0/0/0 yields
scvg3: GC forced
scvg3: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
scvg4: 0 MB released
scvg4: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)
gc4(1): 2+0+135+0 us, 0 -> 0 MB, 33 (41-8) objects, 19/10/0 sweeps, 0(0) handoff,
0(0) steal, 0/0/0 yields
scvg5: GC forced
scvg5: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)
scvg6: 0 MB released
scvg6: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)

inuse heap numbers look wrong.

Issue 2:
Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.6 linux/amd64

(rest doesn't apply, since I don't report a bug here)

It would be nice to make it easier to define, shareable, read-only views of data from which many consumable readers can be derived.

I did expect something like https://godoc.org/github.com/nightlyone/views/bytes

and https://godoc.org/github.com/nightlyone/views/strings in the respective bytes and strings packages of the stdlib.

These are useful in interfaces like https://godoc.org/github.com/nightlyone/views
Issue 1:
Enhance https://github.com/pandas-dev/pandas/blob/master/doc/source/contributing.rst with a discussion of how our _shared_docs system works.

Why we do it (reduce duplicate docstrings, while still having some class-specific stuff)

How it's done (Appender, _shared_docs dict, _shared_doc_kwargs)

How to substitute values

Issue 2:
The output from .groups on a grouped DataFrame should be handled similarly to a large DataFrame, where beyond a certain length, the data is displayed in a summary form rather than output in its entirety.

This truncation should occur both at the group level (large number of groups) and per-group (large amount of data points in a group).
Issue 1:
This github issue is meant to track the big roadmap items ahead of use and for the community to provide ideas, feedback, steer and comment

Lineage Annotations

Airflow knows a lot about your job dependencies, but how much does it know about your data objects (databases, tables, reports, ...)? Lineage annotations would expose a way for users to define lineage between data objects explicitly and tie that to tasks and/or DAG. The framework may include hooks for programatic inference (HiveOperator could introspect the HQL and guess table names and lineage), and a way to override or complement these. The framework will most likely be fairly agnostic about your data objects, letting you namespace them however you want, and simply consider them as an array of parent/child relationship between strings. It may be nice to use dot notation and reserve the first part of the expression to object_type, allowing for color coding in a graph view and tying actions (links) and the like. This will course ship with nice graph visualization, browsing and navigation features.

Picklin'

stateless/codeless web servers and workers

Backfilll UI

Trigger a backfill from the UI

REST API

Essentially offering features similar to what is available in the CLI through a REST API, there may be some automagic solutions here that can figure out how to build REST specs from argparse, it would also insure consistency between the two

[done!]

Continuous integration with Travis-CI

Systematically run all unit tests against CDH and HDP on Python 2.7 and 3.5

Externally Triggered DAGs

Airflow currently assumes that you run your workflows on a fixed schedule interval. This is perfect for hourly, daily and weekly jobs. When thinking about "analytics as a service" and "analysis automation", many use cases are more of the "on demand" nature. For instance if you have a workflow that processes someone's genome when ordered to, or a workflow that builds a dataset on demand for data scientists based on parameters they provide, .... This requires a new class of DAGs that are triggered externally, not on a fixed schedule interval.

Issue 2:
Apache Airflow version: None given

Ticket was created 26/Jan/17 23:20

Kubernetes version (if you are using kubernetes) (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:

following piece of code is the root cause of it.

line = ''

for line in iter(sp.stdout.readline, b''):

line = line.decode(self.output_encoding).strip()

logging.info(line)

I plan to fix it using string buffer instead of just 1 line string variable here.

What you expected to happen:

How to reproduce it:

Anything else we need to know:

Moved here from https://issues.apache.org/jira/browse/AIRFLOW-833
Issue 1:
What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?

#8238

Environment info

OS X 10.11.6

$ clang --version

Apple LLVM version 8.0.0 (clang-800.0.42.1)

Target: x86_64-apple-darwin15.6.0

Thread model: posix

InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Installed version of CUDA and cuDNN:

drwxrwxrwx 15 root wheel 510 May 3 2015 CUDA-7.0

David-Laxers-MacBook-Pro:tensorflow davidlaxer$ ls -l /Developer/NVIDIA/CUDA-7.0/lib/libcud*

-rw-r--r-- 1 davidlaxer staff 292184 Mar 6 2015 /Developer/NVIDIA/CUDA-7.0/lib/libcudadevrt.a

-rwxr-xr-x 1 davidlaxer staff 274176 Mar 6 2015 /Developer/NVIDIA/CUDA-7.0/lib/libcudart.7.0.dylib

lrwxr-xr-x 1 davidlaxer staff 19 Mar 6 2015 /Developer/NVIDIA/CUDA-7.0/lib/libcudart.dylib -> libcudart.7.0.dylib

-rw-r--r-- 1 davidlaxer staff 562856 Mar 6 2015 /Developer/NVIDIA/CUDA-7.0/lib/libcudart_static.a

If installed from binary pip package, provide:

A link to the pip package you installed:

The output from python -c "import tensorflow; print(tensorflow.__version__)".

print(tensorflow.version)

1.0.1

If installed from source, provide

The commit hash (git rev-parse HEAD)

99e30bc

The output of bazel version

Build label: 0.4.2

Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar

Build time: Wed Dec 7 15:54:21 2016 (1481126061)

Build timestamp: 1481126061

Build timestamp as int: 1481126061

Issue 2:
There is a length/signed/unsigned mismatch in an inline vector initialization.

tensorflow/compiler/xla/service/allocation_tracker.cc:178:54: error: non-constant-expression cannot be narrowed from type 'std::vector<se::DeviceMemoryBase>::size_type' (aka 'unsigned long') to 'long long' in initializer list [-Wc++11-narrowing]
ShapeUtil::GetSubshape(allocation->shape(), {i}),
^
tensorflow/compiler/xla/service/allocation_tracker.cc:178:54: note: insert an explicit cast to silence this issue
ShapeUtil::GetSubshape(allocation->shape(), {i}),
^
static_cast<long long>( )
1 error generated.

diff:

--- a/tensorflow/compiler/xla/service/allocation_tracker.cc
+++ b/tensorflow/compiler/xla/service/allocation_tracker.cc
@@ -175,7 +175,7 @@ StatusOr<std::vector<GlobalDataHandle>> AllocationTracker::DeconstructTuple(
i < element_bases.size(); ++i) {
element_handles.push_back(RegisterInternal(
allocation->backend(), allocation->device_ordinal(), element_bases[i],
- ShapeUtil::GetSubshape(allocation->shape(), {i}),
+ ShapeUtil::GetSubshape(allocation->shape(), {static_cast<long long>(i)}),
tensorflow::strings::StrCat(allocation->tag(), ".element_", i),
/*initial_ref_count=*/2));
}
Issue 1:
Challenge wouldn't accept border in shorthand; also wouldn't accept border in longhand

Issue 2:
The following HTML is not working for this challenge:

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

.thick-green-border{
border-width: 10px;
border-color: green;
border-style: solid;
}
</style>

I'm not sure what I'm doing wrong?
Issue 1:
I started using the time package (http://golang.org/pkg/time/) and it supports timezones
only in the form of timezone offsets or the "deprecated" timezone
abbreviations.

Since abbreviations are not guaranteed to be unique, it is generally understood that
timezone names are the way to go (i.e. America/Los_Angeles instead of PST) but it's not
possible with the current time package.

Can the support be added to the time package for zone names?

Issue 2:
A recent memory profiling run created a binary/memprofile pair that generates:

Illegal division by zero at .../pkg/tool/darwin_amd64/pprof line 3765, <PROFILE>
line 1556.

The memprofile file is at https://gist.github.com/josharian/6998976. I'd rather not
share the binary at this point, if possible.

Which version are you using? (run 'go version')

go version devel +6e3768395dd2 Mon Oct 14 10:53:55 2013 -0700 darwin/amd64
Issue 1:
On x86:

>>>np.float64(np.nan).astype('M8[ns]')

numpy.datetime64('NaT')

On ARM:

>>>np.float64(np.nan).astype('M8[ns]')

numpy.datetime64('1970-01-01T00:00:00.00000000')

Some tests for pandas fail on ARM due to this difference

Traceback (most recent call last):

File "/root/venv/lib/python2.7/site-packages/pandas/tseries/tests/test_timeseries.py", line 4072, in test_NaT_cast

assert_series_equal(result, expected)

File "/root/venv/lib/python2.7/site-packages/pandas/util/testing.py", line 1049, in assert_series_equal

check_less_precise, obj='{0}'.format(obj))

File "pandas/src/testing.pyx", line 58, in pandas._testing.assert_almost_equal (pandas/src/testing.c:3887)

File "pandas/src/testing.pyx", line 147, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2769)

File "/root/venv/lib/python2.7/site-packages/pandas/util/testing.py", line 915, in raise_assert_detail

raise AssertionError(msg)

AssertionError: Series are different

Series values are different (100.0 %)

Issue 2:
originally detected while building fresh pandas for debian [1], and then verified with current master of numpy:

(sid_powerpc-dchroot)yoh@partch:~/numpy$ python -c 'import numpy as np; print(np.array([np.nan]).astype("M8[ns]")); print np.__version__'; git describe --tags

['2262-04-10T00:12:45.292707840']
1.13.0.dev0+a4dca24
pre-removal-numpybook-3581-ga4dca24

expected result (e.g. on amd64 box):

$> python -c 'import numpy as np; print(np.array([np.nan]).astype("M8[ns]")); print np.__version__';
['NaT']
1.11.2

[1] https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=powerpc&ver=0.19.1-2&stamp=1480352140

edit 1: issue is not new (debian jessie/stable):

(jessie_powerpc-dchroot)yoh@partch:~$ python -c 'import numpy as np; print(np.array([np.nan]).astype("M8[ns]")); print np.__version__'
['2262-04-10T00:12:45.292707840+0000']
1.8.2
Issue 1:
Here is the text data I would like to read as a data frame:

data3="Date Open High Low Close Volume\nMay 16, 2014 2.92 2.93 2.82 2.85 25,715,748\nMay 15, 2014 3.02 3.05 2.88 2.92 28,311,224\nAug 8, 2013 1.97 1.98 1.94 1.95 20,100,154\nAug 7, 2013 1.89 1.97 1.87 1.95 29,206,564\nAug 6, 2013 1.95 2.01 1.88 1.90 52,198,842\nAug 5, 2013 1.88 1.94 1.88 1.92 29,041,924\nAug 2, 2013 1.86 1.88 1.83 1.86 22,169,076"

It's from an Html table of 6 columns: Date Open High Low Close Volume.

When I use wether the wether read_csv or read_table, I have a weird output.

Here is my script:

in [0] :

import StringIO as s

import pandas as pd

data3="Date Open High Low Close Volume\nMay 16, 2014 2.92 2.93 2.82 2.85 25,715,748\nMay 15, 2014 3.02 3.05 2.88 2.92 28,311,224\nAug 8, 2013 1.97 1.98 1.94 1.95 20,100,154\nAug 7, 2013 1.89 1.97 1.87 1.95 29,206,564\nAug 6, 2013 1.95 2.01 1.88 1.90 52,198,842\nAug 5, 2013 1.88 1.94 1.88 1.92 29,041,924\nAug 2, 2013 1.86 1.88 1.83 1.86 22,169,076"

pd.read_table(s.StringIO(data3),

header=0,

thousands=',',

sep=" ",

parse_dates=False)

out[0] :

And I would like to have:

And if I set the parameter parse_dates to TRUE, I got this:

Even weirder !!

Im not sure if it is a bug or I did something wrong but if someone can give us a clue.....it would be welcome.

Thanks

Rgds,

Mickael

Issue 2:
Input:

import pandas as pd

values = ['11', '23', '45', '98']
noindex = pd.Series(data=values, index=None)
yesindex = pd.Series(data=values, index=list('abcd'))

extractno = noindex.str.extract('(\d)')
print extractno

extractyes = yesindex.str.extract('(\d)')
print extractyes

Output:

0 1
1 2
2 4
3 9
dtype: object
a NaN
b NaN
c NaN
d NaN
dtype: object
Issue 1:
Apache Airflow version: 1.10.10

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

Environment:

Debian with pip install airflow

What happened:

I have some missing DAGs from the source code and it has the record in the database.

When I upgrade to v1.10.10, those DAGs don't have the description field, which is None by default, so the change on this PR, #7457, will return an error about applying len function to None type.

What you expected to happen:

It should not have any error during the rendering.

How to reproduce it:

Remove a registered DAG from the source code. And the error will pop up

Anything else we need to know:

Nope

Issue 2:
Official Helm Chart version

1.3.0 (latest released)

Apache Airflow version

2.2.2

Kubernetes Version

1.2.1

Helm Chart configuration

airflow:

env:
- name: AIRFLOW__SCHEDULER__USE_ROW_LEVEL_LOCKING
value: "True"

webserver:
livenessProbe:
initialDelaySeconds: 100
timeoutSeconds: 100
failureThreshold: 20
periodSeconds: 25

readinessProbe:
initialDelaySeconds: 100
timeoutSeconds: 100
failureThreshold: 20
periodSeconds: 25

scheduler:
replicas: 2

executor: CeleryExecutor

Docker Image customisations

No response

What happened

I added 500 dummy dags, and my scheduler/postgres logs are flooded with such error:

duplicate key value violates unique constraint "serialized_dag_pkey"
DETAIL: Key (dag_id)=(test_dag_454) already exists.
scheduler [SQL: INSERT INTO serialized_dag (dag_id, fileloc, fileloc_hash, data, last_updated, dag_hash) VALUES (%(dag_id)s, %(fileloc)s, %(fileloc_hash)s, scheduler [parameters: {'dag_id': 'test_dag_454', 'fileloc': '/opt/airflow/dags/repo/test_dag_454.py', 'fileloc_hash': 14390114031793844, 'data': '{"__vers scheduler (Background on this error at: http://sqlalche.me/e/13/gkpj)

What you expected to happen

No response

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:
Summary of the new feature/enhancement

When moving a window out of a fancy zone it should resize to it's original size before being snapped into the fancy zone. This would operate like the existing Windows snap feature.

Proposed technical implementation details

Perhaps add this as an option as the current implementation may be preferred by some.

Issue 2:
Summary of the new feature/enhancement

It would be nice to be able to add a shortcut that prints any character (maybe even multiple characters at once).

This is useful if you want a key or shortcut to output a character that's not on the current keyboard layout (or insert text snippets) ‒ for instance for creating a keyboard layout that contains two different character sets or an additional layer of special characters. I'm using an AutoHotKey script to map shortcuts to e.g. ×, ‒ (a longer dash) and the backtick (without it behaving like a dead key, which is useful for programming).
Issue 1:
Hi,

The following code works in version 1.2, but leads to an exception in version 1.3:

>>> from matplotlib import pyplot as plt
>>> plt.plot(range(10), color='none')
>>> plt.show()

I think the issue boils down to this commit: edc48f0

I'm not sure whether this was an intentional change. Thanks!

Issue 2:
Documentation Link

https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.subplot_mosaic.html

Problem

Now that pyplot has inline type annotations, they show up in the API documentation and can make the calling signatures harder to read. The figure creation functions are a particularly good example of this.

Suggested improvement

xarray's approach is to simply turn off the annotations in the docs. Perhaps there is a more nuanced solution?
Issue 1:
Currently,

Validator\Mapping\MemberMetadata::accept()

leaves traversing of properties that are arrays or \Traversable up to the visitor.

While the main purpose of Visitor Pattern is to decouple object structure from visitor functionality.

In the following example, i naively expected that, when visiting an entity, a MyValidationVisitor::vizit() method would be recursively invoked for every entity property.

$metadata = $validator->getMetadataFor($entity);

$visitor = new MyValidationVisitor();
$metadata->accept($visitor, $entity, ...);

In practice, i have to manually re-curse into array properties.

I believe, that the need to call accept() inside Vizitor::visit() brings confusion, so the following code from Validator\ValidationVisitor::validate() method must be re-factored and moved to Validator\Mapping\MemberMetadata::accept() in order to decouple validation from structure of validated objects

if (is_array($value) || ($traverse && $value instanceof \Traversable)) {
foreach ($value as $key => $element) {
// Ignore any scalar values in the collection
if (is_object($element) || is_array($element)) {
// Only repeat the traversal if $deep is set
$this->validate($element, $group, $propertyPath.'['.$key.']', $deep, $deep);
}
}

try {
$this->metadataFactory->getMetadataFor($value)->accept($this, $value, $group, $propertyPath);
} catch (NoSuchMetadataException $e) {
// Metadata doesn't necessarily have to exist for
// traversable objects, because we know how to validate
// them anyway. Optionally, additional metadata is supported.
}
} else {
$this->metadataFactory->getMetadataFor($value)->accept($this, $value, $group, $propertyPath);
}

Issue 2:
Currently there is a @Route annotation. But how could I easily add routes which are redirected to the main route to prevent duplicate content (Search Engine Optimization, redirect old routes, ..)?

I think something like @RedirectRoute("/test", "/target", 301) would be nice.
Issue 1:
React version: 18.2.0

Steps To Reproduce

Create a component that renders children directly or wrapped by a fragment

Programatically or using google in-page translate clear the component

Trigger a re-render that removes the component

Observe error

Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

There is a better title for this bug report I just can't think of it yet 😅

Link to code example: https://codesandbox.io/s/determined-antonelli-7swu6w?file=/src/App.js

The current behavior

The page turns blank because the element to remove could not be found

The expected behavior

Either ignore the element and try to continue, or re-render the first parent node that does exist

Issue 2:
Coming from search? See workaround here: #11538 (comment). And star this issue: https://bugs.chromium.org/p/chromium/issues/detail?id=872770.

Do you want to request a feature or report a bug?

Bug, though there's a decent chance it's a Chrome/Google Translate one

What is the current behavior?

When using Google Translate on a page using React 16, a certain code pattern produces a Javascript error (Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.) when the rendered content changes.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template for React 16: https://jsfiddle.net/Luktwrdm/, template for React 15: https://jsfiddle.net/hmbg7e9w/).

(This has only been checked on macOS 10.13.1)

Navigate to https://qq49kwjynj.codesandbox.io/ in a Chrome browser set to some language other than Japanese.

Right click the page and select "Translate to English"

Click the checkbox, and the error will show.

The source of the example can be found at https://codesandbox.io/s/qq49kwjynj

The part of the code that seems to cause it is the following two lines:

{this.state.checked && "選択済み"}
{!this.state.checked && "無選択"}

Changing this to the following fixes the behavior with Google Translate:

{this.state.checked ? "選択済み" : "無選択"}

What is the expected behavior?

It should not produce an error.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

I created an identical example with React 15 at the following pages:

https://p93xxmr0rq.codesandbox.io/

https://codesandbox.io/s/p93xxmr0rq

When repeating the same steps outlined above, no error was produced.

It only seems to affect React 16.

As this is a Chrome-only feature, it only affects Chrome.
Issue 1:
test.js

#!/usr/bin/env deno

console.log(Deno.args);

> ./test.js -B
[ "./test.js", "-B" ]

> ./test.js -A
[ "./test.js" ]

Issue 2:
Description

As a developer, I would like to be able to consume the -v or --version flags in my application. I'd prefer that if a script is provided, Deno ignore the version flag and instead pass it on to Deno.args. Currently if I run a script with either flag, Deno prints out its internal version information as if I had run

deno version

deno --version

deno -v

Steps to Reproduce

Create a file test.ts containing the following code

console.log(Deno.args);

Run deno test.ts or deno run test.ts

Observe the program runs successfully and prints out: [ "test.ts" ]

Run any of the following...

deno test.ts --version

deno test.ts -v

deno run test.ts --version

deno run test.ts -v

Observe the program never runs, deno instead prints out its internal version information

Additional Context

Deno version: 0.15.0

OS: Windows 10 v1903