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

I have checked the issues list

for similar or identical enhancement to an existing feature.

I have checked the pull requests list

for existing proposed enhancements.

I have checked the commit log

to find out if the if the same enhancement was already implemented in the

main branch.

I have included all related issues and possible duplicate issues in this issue

(If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

Somewhat related #2834

Possible Duplicates

None

Brief Summary

Adding the same periodic task twice with different schedules unexpectedly override the first one.

sig = add.s(2, 2)
app.add_periodic_task(10, sig)
app.add_periodic_task(20, sig)
assert len(app.conf.beat_schedule) == 1

Design

Architectural Considerations

None

Proposed Behavior

Now I understand that I can just set a name explicitly to avoid the behavior, but it is not clear in the docs and looks like it could be warned/failed in runtime to improve developer experience. I tried it in #8143.

Proposed UI/UX

Diagrams

N/A

Alternatives

None

Issue 2:
Checklist

I have checked the issues list

for similar or identical enhancement to an existing feature.

I have checked the pull requests list

for existing proposed enhancements.

I have checked the commit log

to find out if the if the same enhancement was already implemented in the

main branch.

I have included all related issues and possible duplicate issues in this issue

(If there are none, check this box anyway).

Brief Summary

The command celery worker --help gives

Usage: celery worker [OPTIONS]

Start worker instance.

Examples
--------

$ celery --app=proj worker -l INFO $ celery -A proj worker -l INFO -Q
hipri,lopri $ celery -A proj worker --concurrency=4 $ celery -A proj worker
--concurrency=1000 -P eventlet $ celery worker --autoscale=10,0

This is caused by the text rewrapping of click. The solution is to add \b before every paragraph which results in

Usage: celery worker [OPTIONS]

Start worker instance.

Examples
--------

$ celery --app=proj worker -l INFO
$ celery -A proj worker -l INFO -Q hipri,lopri
$ celery -A proj worker --concurrency=4
$ celery -A proj worker --concurrency=1000 -P eventlet
$ celery worker --autoscale=10,0
Issue 1:
[ 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

If i have an html that binds a property on its component and an error happens while detection changes for this property, the whole application will stop detecting changes, even if i add an error handler it wont help.\

Below i have tow properties Code,Name the Name is binding its value from an external object named EntityPM, now when this object is undefined the change detector will stop for the whole application.

I expect that the code should continue detecting the changes from the input even that there is an error with the name.

https://plnkr.co/edit/kg63yyu3GmjdZPaY8cmh?p=preview

Issue 2:
I'm submitting a ...

[X] bug report
[ ] feature request

Current behavior

In prod mode, change detection stops working after uncaught exception occurs during the binding evaluation.

Details:

the subscription to zone.onMicrotaskEmpty event, which is established in angular/core/application_ref is being unsubscribed automatically by RxJS (at SafeSubscriber.__tryOrUnsub), when uncaught exception occurs during the binding evaluation, and currently there s no way to recover from uncaught exception during the binding evaluation in prod mode.

Expected/desired behavior

In prod mode, change detection should continue to function properly after uncaught exception during the binding evaluation.

Reproduction of the problem

http://plnkr.co/edit/2fe6GC6NkuFkffpEoDPZ?p=preview

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

In our project, which previously used angular beta 9, we've built custom error handling (by subsclassing ExceptionHandler).

When in prod mode, the error was displayed in a popup on the current page, with 'Report' button, and other stuff.

After upgrading the project to RC1, we're unable to display the popup on the current page after the uncaught error has occurred.

There should be some ability to recover from an uncaught exception.

Please tell us about your environment:

Angular version: 2.0.0-rc.1 - 2.0.0-rc.3

Browser: all

Language: all
Issue 1:
panic: runtime error: index out of range [recovered]
panic: runtime error: index out of range

goroutine 9 [running]:
regexp.(*machine).backtrack(0xc2085c4ea0, 0xac7ce0, 0xc2085c4f78, 0x0, 0x2b26, 0x0, 0x4b2fc0)
/Users/rsc/g/go/src/regexp/backtrack.go:343 +0x394
regexp.(*Regexp).doExecute(0xc208085040, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc208a1e000, 0x2b26, 0x0, 0x0, ...)
/Users/rsc/g/go/src/regexp/exec.go:449 +0x413
regexp.(*Regexp).MatchString(0xc208085040, 0xc208a1e000, 0x2b26, 0x3e00)
/Users/rsc/g/go/src/regexp/regexp.go:406 +0xc8
main.(*builder).processOutput(0xc20846afc0, 0xc2086a0000, 0x2b26, 0x3e00, 0x0, 0x0)
/Users/rsc/g/go/src/cmd/go/build.go:1426 +0x146
main.(*builder).build(0xc20846afc0, 0xc208552c30, 0x0, 0x0)
/Users/rsc/g/go/src/cmd/go/build.go:972 +0x25f6
main.(*builder).do.func1(0xc208552c30)
/Users/rsc/g/go/src/cmd/go/build.go:737 +0x3a8
main.(*builder).do.func2(0xc2087b2940, 0xc20846afc0, 0xc2087b2920)
/Users/rsc/g/go/src/cmd/go/build.go:794 +0x155
created by main.(*builder).do
/Users/rsc/g/go/src/cmd/go/build.go:800 +0x49f

The line in question is

b.cap[0] = pos

I extracted the specific regexp and input that caused this but in the obvious 1-line program there is no crash. This suggests there is something bad in the caching of machines. I don't have a simple program to provoke this, but maybe that's enough information anyway.

Issue 2:
by lvscar:

current http lib lack of public function for sending user-defined headers

make send(src/pkg/http/client.go) public?
Issue 1:
I have 8 GB ram and all my apps run blazing fast, including chrome which is known these days to be laggy.

Unfortunately, launch time for Atom is really slow on Ubuntu 14.04 64 bit

Issue 2:
Status: This is an ongoing effort.

Via @kevinsawicki

The current plan is to investigate what is slow on startup, optimize it, and then investigate concatenating all the CoffeeScript requires to save eval time on startup.

Merged Changes

Times below are were taken with a Macbook Pro on OS X 10.8.5 with 2.6 Ghz Intel Core i7 processors and 16 GB of memory

atom/less-cache@dbddce5

Saves ~40ms when starting Atom with a fully warm Less cache

#3453

Cuts browser process launch time by ~33%

Saves ~60ms on startup

#3470

Cuts time taken to apply stylesheets by ~66%

Saves ~40ms on startup

atom/wrap-guide#16

Saves ~10ms on startup

#3519

Saves ~250ms on startup

atom/tree-view#219

Saves ~200ms on startup for large projects.

atom/status-bar#35

Save ~30ms on startup

atom/tabs#82

Saves ~15ms on startup

#3917

Reduces number of files read at startup

#3761

Caches requires across all installed packages and speeds up require resolution
Issue 1:
Environment

Windows build number: 10.0.18362.0

Details:
Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Any other software?
Ubuntu 18.04 WSL
Anaconda/Miniconda

Steps to reproduce

Install Windows Terminal (Preview) through the Microsoft Store on two separate Windows devices

IMPORTANT: Use the same credentials in the Microsoft Store on both devices

Change settings on one device (e.g. add a new profile to start in drive D:\ )

Change the settings on the other device (e.g. add the same profile but use drive E:\)

Expected behavior

Configurations stay local to the device being configured on

Actual behavior

Configurations get shared between devices

It is also not predictable when the configuration gets updated from the other device

My use case

I had created a new profile for Anaconda on my desktop but I used Miniconda on my laptop. I was surprised to see that these profiles kept getting shuffled around.

The same happened with Ubuntu WSL, which I have manually installed on a different drive through Powershell.

Minor workarounds

Use environment variables in profile configuration 😄

Have duplicated profiles with proper path and drive mappings per device 😐

Install software in paths consistent across devices 😢 , etc. etc.

IMHO, this feels like a bug because I expected profiles to be created specific for each device. Though I suspect that the config file sharing is a feature of the Microsoft Store app platform and working as expected.

It would be nice to see this working as expected, but I'm OK if not possible. At least wanted to raise awareness about this behavior. Thank you!

Issue 2:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable):
PowerShell: PowerShell 7 Preview 6

Steps to reproduce

If you run PowerShell 7 Preview 6 in Windows Terminal, Out-GridView, Show-Command, and Get-Help -ShowWindow don't get a focus. They open windows behind the Terminal.

Expected behavior

Windows opened by these PowerShell commands will get focus and be open over Windows Terminal.

Actual behavior

If you run PowerShell 7 Preview 6 in Windows Terminal, Out-GridView, Show-Command, and Get-Help -ShowWindow don't get a focus. They open windows behind the Terminal.
Issue 1:
Bug report

Bug summary

In 3.2, scatter is color-mapping 4 points when the c input is 2D with shape (1, 4). This is a change from 3.1.

The docs for scatter say

Note that c should not be a single numeric RGB or RGBA sequence

because that is indistinguishable from an array of values to be

colormapped. If you want to specify the same RGB or RGBA value for

all points, use a 2-D array with a single row. Otherwise, value-

matching will have precedence in case of a size matching with x

and y.

However, this is no longer true.

I suspect #17245 may be related (only based on milestone and description, I haven't debugged the code).

Code for reproduction

import matplotlib.pyplot as plt

x = y = 1, 2, 3, 4
c = [(.2, .5, .8, 1)]

f, ax = plt.subplots()
ax.scatter(x, y, c=c, s=100) # Increase s for visibility

Actual outcome

On 3.2.1

Expected outcome

On 3.1.2:

Matplotlib version

Operating system: macos

Matplotlib version: 3.2.1

Matplotlib backend (print(matplotlib.get_backend())): pylab inline

Python version: na

Jupyter version (if applicable): na

Other libraries: na

Issue 2:
Bug report

Bug summary

Scatter docs say that in order to provide a single RGB/RGBA color for all scatter elements, it is required to pass a 2D array with a single row for c argument input:

If you want to specify the same RGB or RGBA value for all points, use a 2-D array with a single row. Otherwise, value- matching will have precedence in case of a size matching with x and y.

When x/y shape is 3 and RGB is passed as a 2D array with a single row (e.g. c=[[1, 0.5, 0.05]]), or when x/y shape is 4 and RGBA is passed as a 2D array with a single row, the plot elements have several different colors (taken from the default colormap?) while all should have the same color. The problem occurs for both plt.scatter and ax.scatter calls, and also if c input is provided as a numpy array of shape (1,3) for RGB or (1,4) for RGBA instead of a nested list.

Code for reproduction

import matplotlib.pyplot as plt
plt.scatter(range(3), range(3), c=[[1, 0.5, 0.05]])
#alternatively, for RGBA scenario
plt.scatter(range(4), range(4), c=[[1, 0.5, 0.05, 1]])

Actual outcome

Expected outcome

All points have the same color: RGB (1, 0.5, 0.05).

Matplotlib version

Operating system: Linux

Matplotlib version: 3.2.1

Matplotlib backend (print(matplotlib.get_backend())): agg

Python version: 3.7.3

Matplotlib installed through pip
Issue 1:
Apache Airflow version: 2.0.1 (possibly any?)

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

Environment: Any

Cloud provider or hardware configuration: Any

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

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

Install tools: Any

Others: Any

What happened:

From SQLAlchemy version 1.4.0b1, SQLAlchemy removed the support for the postgres prefix in URIs (used for example in create_engine), and now it supports only postgresql.

This affects all Airflow jobs that:

(A) Use SQLAlchemy version >= 1.4.0

(B) Obtain/use a Postgres URI from the get_uri method of a PostgresHook (method defined in the DbApiHook - airflow/hooks/dbapi.py).

This is because the PostgresHook (airflow/providers/postgres/hooks/postgres.py) class, defines a class attribute conn_type = 'postgres' instead of postgresql.

Right now my airflow jobs with the updated SQLAlchemy that are using SQLAlchemy create_engine with a postgres db are broken.

What you expected to happen:

That Airflow jobs using SQLAlchemy >= 1.4.0 and SQLAlchemy's create_engine with Postgres databases work correctly, and that get_uri generates a postgres URI starting with postgresql://.

Of course I could use an older SQLAlchemy version or manipulated the returned URI, but I guess it'd be nice if Airflow adapts to the updated prefix.

How to reproduce it:

Use the get_uri method of any PostgresHook.

Anything else we need to know:

N/A

Issue 2:
Description

I met LoadJob bug in BigQueryInsertJobOperator and tried to use GCSToBigQueryOperator instead when update from Airflow 2.2.5 to 2.3.2.

Use case/motivation

most BigQuery-related operator recommend that we should use insert_job(), but gcs_to_bq_operator still use run_load ().

GCSToBigQueryOperator still uses lots of parameter to build config. Not like BigQueryInsertJobOperator which uses a clean configuration. The configuration is much straightforward and easy to follow.

I would like to know whether to keep GCSToBigQueryOperator and replace run_load with insert_job, Or have BigQueryInsertJobOperator. If we could replace run_load with insert_job in GCSToBigQueryOperator , all BigQuery-related operator could be more consistent.

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:
Current Behavior:

When the dependency tree contains many versions for one subdependency, npm puts the highest version at the top level (i.e., at node_modules/pkgname), even when another version has more referrals. This other version is then installed many times.

Expected Behavior:

NPM checks for each package (that is not a direct dependency of the project) which version appears most often and puts that one on the top level, reducing duplication.

Steps To Reproduce:

npm init
npm i next@10.0.2
npm ls source-map

source-map@0.6.1 should be the top level one, not @0.7.3.

Environment:

Windows 10

Node 14.13.0

Npm 7.0.12

Issue 2:
Current Behaviour:

I have some npm packages installed globally, which are command line utilities (create-react-app, distributed-dig, snyk`, and others). I recently updated to npm version 7 (7.5.2) with node 14 (14.15.4) on Windows 10 (version: 2004 || build: 19041.746).

If I perform a global dedupe ...

npm dedupe -g

... a number of the globally installed packages are removed. Curiously not all of them. In the example below eight of the 11 are removed.

Incidentally, I couldn't reproduce this behaviour with npm v7.5.2 & node v15.5.1 on Linux Mint v19

Expected Behaviour:

I'd expect the same behaviour as npm v6 where each top-level globally installed package persists after the global dedupe. In the example steps below I'd expect all 11 globally installed packages to still be installed after the dedupe.

Steps To Reproduce:

Report current versions: npm -v ; node -v

PS C:\Users> npm -v;node -v
7.5.2
v14.15.4

List currently installed global packages (and report a count): npm ls -g --depth 0;npm ls -g --depth 0|find "--" /c

PS C:\Users> npm ls -g --depth 0;npm ls -g --depth 0|find `"--`" /c
C:\Users\markm\AppData\Roaming\npm
+-- akamai-error-lookup@1.2.8
+-- akamai-staging@1.1.8
+-- ascii-art@2.5.0
+-- cdn-cache-check@1.6.0
+-- codename-generator@1.0.15
+-- create-react-app@4.0.2
+-- depcheck@1.3.1
+-- distributed-dig@1.8.3
+-- eslint@7.19.0
+-- jshint@2.12.0
+-- npm@7.5.2
`-- snyk@1.441.0

12

Perform a global dedupe: npm dedupe -g

PS C:\Users> npm dedupe -g

added 1 package, removed 1334 packages, and audited 256 packages in 6s

11 packages are looking for funding
run `npm fund` for details

found 0 vulnerabilities

Notice that removed 1334 packages

Re-list globally installed packages (and a new count): npm ls -g --depth 0;npm ls -g --depth 0|find "--" /c

PS C:\Users> npm ls -g --depth 0;npm ls -g --depth 0|find `"--`" /c
C:\Users\markm\AppData\Roaming\npm
+-- acorn-jsx@5.3.1
+-- npm@7.5.2
`-- prettyjson@1.2.1

3

Eight of the the initial 11 global packages are now removed

Environment:

OS: Windows 10 (version: 2004 || build: 19041.746)

Node: 14.15.4

npm: 7.5.2

PowerShell 7.1.1 (although I still see this behaviour when using cmd.exe instead:
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.4-SNAPSHOT

Operating System version: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"

Java version: 1.8.0_131

Steps to reproduce this issue

just run UT EtcdMetadataReportTest.testStoreConsumer in IDEA

or mvn clean install -DskipTests=false from cmd.

Expected Result

UT succeeds

Actual Result

Ex:

IDEA

java.lang.NoClassDefFoundError: com/google/common/base/Preconditions

at io.etcd.jetcd.ClientBuilder.endpoints(ClientBuilder.java:82)
at org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest.setUp(EtcdMetadataReportTest.java:64

mvn build with clean install

[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 4.798 s <<< FAILURE! - in org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest
[ERROR] testStoreConsumer Time elapsed: 2.127 s <<< ERROR!
java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
at org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest.setUp(EtcdMetadataReportTest.java:64)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.Preconditions
at org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest.setUp(EtcdMetadataReportTest.java:64)

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.9

Operating System version: Windows10 2004

Java version: 1.8

Steps to reproduce this issue

When i pull the source code from Github, i could not find MapValue and ThrowablePB in this source code,but some methods

in other class(e.g. org.apache.dubbo.common.serialize.protobuf.support.GenericProtobufJsonObjectOutput) actually refer to MapValue and ThrowablePB .

So i need the resource code about org.apache.dubbo.common.serialize.protobuf.support.wrapper.MapValue and org.apache.dubbo.common.serialize.protobuf.support.wrapper.ThrowablePB.
Issue 1:
React version:

Steps To Reproduce

1.1111111111111

2.22222222222

The current behavior

fffffffffffffffffffff

The expected behavior

gggggggggggggggg

Issue 2:
I've noticed that there's no way to access a class' statics through one of its instances.

When trying to find a statics method inside an instance method, this does not contain the method. this.statics exists, but is null.

This is something I think could be a bit useful. This is a behavior that exists in Java and other similar languages.

A description of my use-case: I am using React DnD, and trying to slightly generalize duplicate code.

By using this library/mixin, you need to define a static method, which calls a register method and passes a constant value. I would like that value to be defined on the class.

By adding the following bit of code:

statics: {
getConst: function() {
return 'const';
},
configureDragDrop: function(register) {
register(this.getConst(), ...);
}
}

However, in my render method, I need to access the same constant again:

return (
<li className={classes} {...this.dragSourceFor('const')} />
);

At this point, this does not have getConst defined, and this.statics is a null object.
Issue 1:
I tried using the @types/react package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I think you should consider to update these lines of code in order to support react 16 fragments

render(): JSX.Element | null | false | string | JSX.Element[]; //class Component<P, S>
interface ElementClass extends React.Component<any> {
render(): Element | null | false | string | Element[];
}

https://reactjs.org/blog/2017/09/26/react-v16.0.html

Issue 2:
I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @gaspard @vbfox

As mentioned in React documentation, a stateless component can return false for empty content. Currently StatelessComponent is defined as:

interface StatelessComponent<P = {}> {
(props: P & { children?: ReactNode }, context?: any): ReactElement<any> | null;

whereas Component has

class Component<P, S> {
constructor(props?: P, context?: any);
// ...snip...
render(): JSX.Element | null | false;

Shouldn't these types be the same (including eliminating the ReactElement vs JSX.Element difference)? And to avoid future such issues (#14064, this one) it should probably be a named type, e.g. RenderResult.

A search for | null also comes up with ComponentSpec.render which probably should also have the same result type.
Issue 1:
Forgive me if this has been discussed already, but why does sklearn.cross_validation._fit_and_score use a verbosity parameter and the print function, rather than using python's logging module? As someone who is building a library that uses sklearn, it means that I have to expose that verbosity parameter in my code, rather than letting the user set the logging level (or even hide the logging from that module).

For instance in lines 1434-1440 of sklearn/cross_validation.py

if verbose > 1:
if parameters is None:
msg = "no parameters to be set"
else:
msg = '%s' % (', '.join('%s=%s' % (k, v)
for k, v in parameters.items()))
print("[CV] %s %s" % (msg, (64 - len(msg)) * '.'))

Issue 2:
This is a proposal to use python's logging module instead of using stdout and verbose flags in the models API.

Using the logging module would make it easier for the user to control the verbosity of the scikit using a single and well documented configuration interface and logging API.

http://docs.python.org/library/logging.html
Issue 1:
I would like the following to work:

julia> x, ys... = (1,2,3)
ERROR: syntax: invalid assignment location "ys..."

This would also let us write function signatures like:

julia> foo((a, bs...), c, ds...) = bs
ERROR: syntax: invalid assignment location "bs..."

Which would be useful for e.g. JuliaDiff/ChainRulesCore.jl#128 (comment)

Issue 2:
This would be a very nice syntax for taking head and rest. Likewise a..., b = [1,2,3] might be good for slurping the initial elements into a and the tail element into b.