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

I have included the output of celery -A proj report in the issue.

(if you are not able to do this, then at least specify the Celery

version affected).

I have verified that the issue exists against the master branch of Celery.

Steps to reproduce

Run celery with a single worker set to use the solo pool such as celery worker -c 1 -P solo

Expected behavior

Expected that a single-process worker would exist and be able to use heartbeats.

Actual behavior

Single-process worker exists but does not use heartbeats. All timer related tasks don't work, so this is the root cause of heartbeats not working.

If this is intended behavior then it should be mentioned in the documentation as it is very much not clear.

I know the documentation for solo says 'single-threaded' but I didn't take that to mean that it wouldn't handle timers correctly as well. A layman's reading of that (along with the name) implies that the worker pool has a single thread and that's it (so one worker), not that the process itself can't have any threads to facilitate things like timers.

Issue 2:
Hi,

We are using celery with tasks that may take up a lot of time (hours or even days). The problem is that after a couple of hours task is sent back to the queue and run from another worker (or the same one after it finishes).

Looks like the task is not acknowledged and after that 2h limit it is readded (by rabbit?). If that is the problem, is there a way to acknowledge them in the begining of the task or disable this behaviour?

We are using celery 4.0.0 and RabbitMQ 3.6.3 with the following celery config:

CELERY_ACCEPT_CONTENT = ['pickle', 'json']

CELERY_TASK_SERIALIZER = 'json'

CELERY_ENABLE_UTC = True

CELERY_TIMEZONE = 'Etc/UTC'

CELERY_DISABLE_RATE_LIMITS = True

CELERY_IGNORE_RESULT = True

CELERYD_PREFETCH_MULTIPLIER = 1

CELERY_SEND_EVENTS = False

Thanks
Issue 1:
Environment

Windows build number: Version 10.0.18362.418
Windows Terminal version (if applicable): 0.6.2951.0

Any other software? No

Steps to reproduce

In Windows Explorer, click the yellow folder icon in the address field (next to the path to the folder you're viewing) and attempt to drag it into a Windows Terminal cmd window.

Expected behavior

The full path should be dropped into the command line at the cursor location, as it does in Windows command prompt.

Actual behavior

The cursor changes to an international No symbol to indicate that you cannot drop the path onto the terminal window.

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version (if applicable): 0.6.2951.0

Steps to reproduce

Open Windows Terminal with "only one tab open"

Drag to another monitor with a lower resolution (from 2160p to 1080p)

Expected behavior

Terminal is dragged onto another monitor

Actual behavior

It crashes.

Funny thing: The terminal doesn't crash when I have more than one tab open.
Issue 1:
The doc/Makefile is becoming bitrotted.

Python 3.10 requires a recent version of setuptools to build NumPy, but recent versions do not install an executable easy_install, which is needed by the Makefile. Note that the module is available, the path to it just cannot be found.

If you have NumPy installed in the system, the path is not set correctly and the installed version will be used instead of the newly compiled version

These problems can be worked around, but perhaps it is time to look at a different build system/script. Using a virtual environment might be an easy fix, as pip could be used to install a wheel instead of using easy_install to install an egg and messing with the path.

Issue 2:
I would like to suggest updating numpy.reciprocal to be consistent with numpy.divide and Python 3's division operator by having it promote integer inputs to double. Currently, the docs for reciprocal say it "is not designed to work with integers... because of the way Python handles integer division." This statement refers to Python 2, not 3, however.

Today:

import numpy as np
a = np.array((1, 2, 3))
np.reciprocal(a)
: array([1, 0, 0])

Proposed result:

array([1., 0.5, 0.33333333])

This would make numpy.reciprocal(a) equivalent to (1 / a).

cc @rgommers
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

When trying to write out the following code, the browser becomes unresponsive.

$($(".slot")[0]).html(slotOne);

It seems natural to start typing out $($. When the open paren is typed, the editor auto-completes the closing paren $() then when typing the second $, the browser stops responding: $($)

Issue 2:
Challenge http://www.freecodecamp.com/challenges/bonfire-inventory-update has an issue.

The following code returns the good value, but an error appears in the console nevertheless "Uncaught TypeError: Cannot set property 'err' of undefined", and then the page needs to be reloaded in order to be able to run new code.

// by mathieu_roy
function inventory(arr1, arr2) {
// All inventory must be accounted for or you're fired!
arr = [];
for(var i in arr1) {
match = false;
for(var j in arr2) {
if(arr1[i][1] === arr2[j][1]) {
arr.push([arr1[i][0] + arr2[j][0], arr1[i][1]]);
console.log([arr1[i][0] + arr2[j][0], arr1[i][1]]);
match = true;
break;
}
}
if(!match) {
arr.push([arr1[i][0], arr1[i][1]]);
console.log([arr1[i][0], arr1[i][1]]);
}
}

for(var k in arr2) {
match = false;
for(var l in arr1) {
if(arr2[k][1] === arr1[l][1]) {
match = true;
break;
}
}
if(!match) {
arr.push([arr2[k][0], arr2[k][1]]);
console.log([arr2[k][0], arr2[k][1]]);
}
}

return arr;
}

// Example inventory lists
var curInv = [
[21, 'Bowling Ball'],
[2, 'Dirty Sock'],
[1, 'Hair Pin'],
[5, 'Microphone']
];

var newInv = [
[2, 'Hair Pin'],
[3, 'Half-Eaten Apple'],
[67, 'Bowling Ball'],
[7, 'Toothpaste']
];

inventory(curInv, newInv);
Issue 1:
This issue has been seen in both python 2 and python 3 with numpy.

Consider such numpy arrya b = numpy.array([[]]). print(len(b)) would result in 1, print(b.size) would result in 0, and print(b) would result in [], as implemented in /numpy/core/arrayprint.py around line 665.

We found this when debuging in our own project, where we need to check whether an array is empty or not. More description can be seen in this blog. We think when array size is 0, but it has some [] in the array, the printing should not just print an empty array out (actually it is completely not empty!).

Issue 2:
The output of np.expm1 becomes unstable for small values (around 10^{-15} to 10^{-16}) when the argument is complex. This does not seem to be an issue with the numerical precision associated with the real and imaginary components: using a float32 data type works as expected.

The problem arises because of the way expm1 is currently implemented for complex arguments. In particular:

static void
nc_expm1@c@(@ctype@ *x, @ctype@ *r)
{
@ftype@ a = npy_exp@c@(x->real);
// If x->imag == 0, then we evaluate exp(x->real) - 1 naively
// rather than using a more stable implementation
r->real = a*npy_cos@c@(x->imag) - 1.0@c@;
r->imag = a*npy_sin@c@(x->imag);
return;
}

Reproducing code example:

import numpy as np
from matplotlib import pyplot as plt

fig, ax = plt.subplots()

x = np.logspace(-16.2, -14)
xs = [
x,
x.astype(np.complex),
x.astype(np.float32),
]

ys = [np.expm1(x_) for x_ in xs]

for x, y in zip(xs, ys):
ax.plot(x, y, marker='.', label=f'{x.dtype}: np.expm(x)')

ax.set_xscale('log')
ax.set_yscale('log')
ax.set_xlabel('x')
ax.legend(loc='upper left')

fig.tight_layout()

Virtually identical behaviour can be observed by replacing ys = [np.expm1(x_) for x_ in xs] with ys = [-np.expm1(-x_) for x_ in xs], i.e. the problem is not unique to positive values of the argument.

Error message:

No error message to report. However, the expected behaviour would be for the complex datatype to behave in the same fashion as the float32 and float64 data types.

Numpy/Python version information:

1.16.4 3.7.2 (default, Jul 11 2019, 09:18:04)
[Clang 10.0.1 (clang-1001.0.46.4)]
Issue 1:
I currently have this in group_vars/all.yml -

ansible_connection_type: '{{ ansible_connection | default("ssh") }}'

In previous versions of Ansible (including 2.0 from git before it was released), this meant I could do this:

- include: configure-armhf.yml ansible_connection=chroot

And my tasks would run in chroot.

In version 2.0.0.2 this is now ignored :( - Any ideas?

Issue 2:
From @javadevmtl on June 7, 2016 21:10

ISSUE TYPE

Feature Idea

COMPONENT NAME

New module

ANSIBLE VERSION

Latest

Hi the default IIS module are ok for doing simple tasks. But the moment you need to configure anything complex you need to dive into using appcmd command.

For instance I have the following playbook command that registers an ISAPi DLL with IIS. The command works fine, but on secondary run because the task doesn't recognize the semantics of the command line it returns a failure. Basically it complains of a duplicate.

The command runs good on the first try:

- name: Allow ISAPI DLL
ignore_errors: yes
raw: c:/Windows/System32/inetsrv/appcmd.exe set config -section:system.webServer/security/isapiCgiRestriction /+"[path='path-to-dll.dll',allowed='True',groupId='SomeGroupId',description='My DLL']" /commit:apphost

On second run:

[ERROR ( message:New add object missing required attributes. Cannot add duplicate collection entry of type 'add' with unique key attribute 'path' set to 'path-to-dll.dll',,. )]

We can ignore the error, but it would be nice if it could integrate natively with Ansible states such as "present", etc...

Here is some more info on appcmd: http://www.iis.net/learn/get-started/getting-started-with-iis/getting-started-with-appcmdexe

Basically it's a command line interface that lets you configure any part of IIS, which lends itself well for Ansible :)

Copied from original issue: ansible/ansible-modules-extras#2386
Issue 1:
🐛 Bug

I am observing confusing (and probably errornous behavior) when using *= tensor operator with expand function. I don't think this should be an expected behavior, but if it is, there should at least be a user warning. Below is a minimally reproducible example:

To Reproduce

code input:

import torch
a = torch.tensor([1,2,3]).view(1,3)
b = torch.tensor([4,5]).view(2,1)
print(a)
print(b)
print(a*b) # directly multiplying will trigger the correct broadcast

output:

tensor([[1, 2, 3]])
tensor([[4],
[5]])
tensor([[ 4, 8, 12],
[ 5, 10, 15]])

code input:

print(a.expand(2,3)*b.expand(2,3)) # explicitly using expand to broadcast followed by * is also fine

output:

tensor([[ 4, 8, 12],
[ 5, 10, 15]])

code input:

a *= b # trying to broadcast with *= doesn't work

output:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: output with shape [1, 3] doesn't match the broadcast shape [2, 3]

code input:

a = a.expand(2,3) # explicitly broadcasting with expand
b = b.expand(2,3) # explicitly broadcasting with expand
a *= b # this produces weird values that I don't understand
print(a)

output:

tensor([[20, 40, 60],
[20, 40, 60]])

Environment

Collecting environment information...
PyTorch version: 1.0.0
Is debug build: No
CUDA used to build PyTorch: None

OS: Mac OSX 10.14.2
GCC version: Could not collect
CMake version: version 3.10.1

Python version: 3.5
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA

Versions of relevant libraries:
[pip3] numpy==1.11.3
[pip3] torch==0.4.0
[pip3] torchvision==0.2.1
[conda] blas 1.0 mkl
[conda] mkl 2019.0 118
[conda] mkl-service 1.1.2 py35_3
[conda] mkl_fft 1.0.6 py35hb8a8100_0
[conda] mkl_random 1.0.1 py35h5d10147_1
[conda] pytorch 1.0.0 py3.5_1 pytorch
[conda] torchvision 0.2.1 py_2 pytorch

Issue 2:
I don't know if this is a bug (and it might have been reported already but I didn't find anything).

But it could at least be added to the documentation for the expand operation on a tensor:

import torch
T = torch.Tensor([2]).expand(1,3)
print(T.mul_(2)) # expected a Tensor with [4 4 4] here, got [16, 16, 16]

Even if you are aware that expand doesn't copy data, I believe most will find this result quite counter-intuitive. Of course, this can be fixed atm either by replacing expand by repeat or mul_ by mul, but that requires more memory. It would be awesome if the arithmetic ops like mul had a special case when the tensor's stride is 0 in some dimension

Edit: My torch version string is 0.1.10_2
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1529 on 2010-06-29 by @sandrotosi, assigned to unknown.

Hello,

I'm here forwarding the bug filed in the Debian BTS at http://bugs.debian.org/564774 .

The bug refers to 1.3.0 but I'm able to replicate it with 1.4.1 too. The key part is (for the rest, please read the link above):

>>> import numpy as np
>>> np.savez('test.npz', N.ones((10000, 1000)))
>>> ll -h *.npz
-rw-r--r-- 1 michael michael 77M 2010-01-11 15:52 test.npz
>>> !gzip test.npz
>>> ll -h test*.gz
-rw-r--r-- 1 michael michael 114K 2010-01-11 15:52 test.npz.gz
^^^^

Thanks for your support,

Sandro

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1527 on 2010-06-29 by @sandrotosi, assigned to unknown.

Hello,

I'm here forwarding the bug filed in the Debian BTS at http://bugs.debian.org/564774 .

The bug refers to 1.3.0 but I'm able to replicate it with 1.4.1 too. The key part is (for the rest, please read the link above):

>>> import numpy as np
>>> np.savez('test.npz', N.ones((10000, 1000)))
>>> ll -h *.npz
-rw-r--r-- 1 michael michael 77M 2010-01-11 15:52 test.npz
>>> !gzip test.npz
>>> ll -h test*.gz
-rw-r--r-- 1 michael michael 114K 2010-01-11 15:52 test.npz.gz
^^^^

Thanks for your support,

Sandro
Issue 1:
Hi,

It seems there is an issue with the syntax highlighting, see the below capture:

All the code below this method keep this color.

Perhaps this is a duplicate, in this case, sorry for the noise.

(I found the same kind of issues but not for C#...)

Vs code version: 0.10.10 (0.10.10)

Issue 2:
Sometimes we may want to create extension only for project to share with our team and don't need to have them install extension. It should be easy to just send whole project folder contains .vscode/extensions folder to them
Issue 1:
Description of the new feature/enhancement

Using the mouse paste mechanism (regardless of right mouse, middle mouse or whatever mouse) on an unfocused terminal window / split-pane should focus and paste. Currently it focuses on windows and does nothing on panes.

Paste in window is currently: right click (or well, left click works as well for focus) + right click. Paste in split-panes is: left click + right click.

I only want to click once (regardless of middle mouse or right mouse or doing a rain dance in front of the camera) and not several times to paste text.

Also belong together with #524 function and use wise, since no-click-copy and single-click-paste are two of the best mechanisms out there 👍

Proposed technical implementation details (optional)

I haven't looked at the cose base, but I imaging it is a case of looking at how mouse-events are handled in focused contra unfocused windows and split-panes.

Issue 2:
Environment

Windows build number: 18362.239
Windows Terminal version (if applicable): 0.3.2142.0

Steps to reproduce

Open Windows Terminal in dark mode.

Add keybindings to split a tab into multiple panes. Ex:

{
"command": "splitHorizontal",
"keys": [
"ctrl+shift+-"
]
},
{
"command": "splitVertical",
"keys": [
"ctrl+shift+|"
]
},

Open a profile that has a dark background, like black or something close to that, ex, Campbell theme, where background is #0C0C0C.

Split the tab.

Expected behavior

To be able to easily distinguish the pane separator.

Actual behavior

In dark mode the pane separator is hard to see due to low contrast with surrounding background. Example:

In comparison, in light mode the separator is very visible:

Ideally, the color of the separator should take into consideration the surrounding background in order to show up with enough contrast to be visible in any combination.
Issue 1:
Electron version: v0.37.3

Operating system: Windows 10

Here's the stack trace that's included with the error event:

Command failed: 4294967295
System.AggregateException: One or more errors occurred.
---> System.Exception: Couldn't acquire lock, is another instance running
at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
at Squirrel.UpdateManager.<acquireUpdateLock>b__1e()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.<CheckForUpdate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Update.Program.<Download>d__5d.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at Squirrel.Update.Program.executeCommandLine(String[] args)
at Squirrel.Update.Program.main(String[] args)
at Squirrel.Update.Program.Main(String[] args)
---> (Inner Exception #0) System.Exception: Couldn't acquire lock, is another instance running
at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)
at Squirrel.UpdateManager.<acquireUpdateLock>b__1e()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.<CheckForUpdate>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Update.Program.<Download>d__5d.MoveNext()<---

Issue 2:
first run after install (opened by installer automatically), autoUpdater may trigger an error

Couldn't acquire lock, is another instance running

screenshot: http://postimg.org/image/j8zi7lz8z/

and this time app can't update.

close app and run it again everything will be ok.
Issue 1:
We have already moved docs from https://github.com/apache/incubator-shardingsphere-doc to this repo.

But some legacy html files which generated by Hugo for previous version are not source code, the docs folder should only contains source code (the md files).

So we need to move all html files to asf-site branch of https://github.com/apache/incubator-shardingsphere-doc.

The remain tasks are:

Remove legacy folder

Remove homepage folder (to be decision, because even homepage is html file, but it is not generated by Hugo)

Move docs/document/current to docs/document

Revise build shell

Update readme

Issue 2:
数据分布不均匀的，第一个数据库表中有该用户数据，第二个数据库中，表中没有用户数据，根据用户编号查询，按照创建时间排序进行分页查询请求，前几页返回的数据正确，超过了最大页数的分页，返回的数据不是空。并且一直有数据。

举例A表中有该用户的数据100条，B表中没有该用户数据

分页大小每次10条，则，请求13页的时候，仍然会得到数据。

Which version of Sharding-Jdbc do you using?

1.4.2

Actual behavior

有数据返回，看样子像是第一页的数据
Issue 1:
[ x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I'm rendering a pretty long component within the dialog, and am using the autoscroll functionality to get the overflow-y: auto styling in the dialog content. At certain points, the component moves to the the next step, and I would like to instantly go to the top of the dialog content.

I saw that jQuery's scrollTop function can be used to get to the top of a component, but I'm unsure how to reference the dialogContent div. Please advise.

Current Behavior

Currently, when the component changes, the scroll remains the same, and the result is that the user sees a lower part of the new component.

Your Environment

Tech
Version

Material-UI
0.17.4

React
15.3.2

browser
Chrome

etc

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

I'm currently trying to create a custom Tab component by overwriting classes according to the guide in https://material-ui.com/customization/overrides/. However, I stumbled across a problem with overwriting the Tab styles. When I overwrite the styles the app crashes when the Tab is about to be rendered with

TypeError: Cannot read property 'charAt' of undefined

Warning: Material-UI: capitalizeFirstLetter(string) expects a string argument.

The error is thrown in the helper, but the root of the TypeError lies in the Tab component, due to textColor being undefined, when a custom styling is applied:

If I provide textColor myself the app does not crash.

Expected Behavior

I actually would not expect to need to provide the textColor prop myself. Otherwise that should be probably mentioned in the documentation.

Current Behavior

I need to provide a textColor prop to the Tab in order not to crash the app.

Steps to Reproduce (for bugs)

I apply my styling as follows:

import * as React from 'react';
import { Tab as MaterialTab, TabProps } from 'material-ui/Tabs';
import { withStyles, Theme } from 'material-ui/styles';
import { WithStyles } from 'material-ui/styles/withStyles';

const Tab: React.SFC<TabProps & WithStyles<'root'>> = props => {
return (
<MaterialTab label={props.label} classes={{ root: props.classes.root }} />
);
};

const styles = (theme: Theme) => ({
root: {
height: 60,
},
});

export default withStyles(styles)(Tab);

And use my custom component inside an uncostumized Tabs component:

<Tabs
value={this.state.value}
onChange={this.handleChange}
indicatorColor="primary"
textColor="primary"
>
<Tab label="Settings" />
<Tab label="Sensors" />
</Tabs>

As mentioned: if I supply the textColor prop the building works (even though the functionality seems to be broken, but that's probably another thing).

<MaterialTab
label={props.label}
classes={{ root: props.classes.root }}
textColor="primary"
/>

Your Environment

Tech
Version

Material-UI
material-ui@1.0.0-beta.26

React
react@^16.2.0

browser
Chrome 63

etc
typescript@~2.6.2