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

I have checked the issues list

for similar or identical bug reports.

I have checked the pull requests list

for existing proposed fixes.

I have checked the commit log

to find out if the bug was already fixed in the master branch.

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

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

Description

Looking over the docs around shared_task I found the section intended for a sidebar didn't really work in the current layout of the docs.

This displays as though it's a note or sidebar related to "bound tasks" when in fact it's part of the previous section. The layout of the page is essentially a single column, so these sidebar sections should really display as part of the main body

Suggestions

I'd suggest a layout something like this;

This includes a tweak to the first title because it doesn't actually detail what an app is.

Happy to raise a PR for this, and fix some of, if not all the errors coming out of the docs build.

Issue 2:
Checklist

I have read the relevant section in the

contribution guide

on reporting bugs.

I have checked the issues list

for similar or identical bug reports.

I have checked the pull requests list

for existing proposed fixes.

I have checked the commit log

to find out if the bug was already fixed in the master branch.

I have included all related issues and possible duplicate issues

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

Environment & Settings

Celery version: 4.3.0

celery report Output:

software -> celery:4.3.0 (rhubarb) kombu:4.5.0 py:3.7.3
billiard:3.6.0.0 redis:3.2.1
platform -> system:Linux arch:64bit
kernel version:4.15.0-45-generic imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:redis results:redis://localhost/

broker_url: 'redis://localhost:6379//'
result_backend: 'redis://localhost/'

Steps to Reproduce

Minimally Reproducible Test Case

from celery import Celery

app = Celery('tq-test', broker='redis://localhost', backend='redis://localhost')

@app.task(bind=True)
def ttt(self, test_str):
self.update_state(meta={'message': test_str})

def on_raw_message(body):
try:
msg = body['result']['message']
except:
msg = body
print(msg)

if __name__ == '__main__':
chain = app.signature('ttt', args=tuple("a"))
chain |= app.signature('ttt', args=tuple("b"), immutable=True)
print(chain.apply_async().get(on_message=on_raw_message))

Expected Behavior

In Celery 4.2.2, update_state in both tasks are shown, as below.

a
b

Actual Behavior

In Celery 4.3.0, only update_state in the task of the end of the chain is shown, as below.

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

Expected Behavior

Autohide Snackbar when autoHideDuration's value be set.

Current Behavior

did not autohide Snackbar.

Steps to Reproduce (for bugs)

DEMO

Context

Your Environment

Tech
Version

Material-UI
1.0.0-beta.23

React
16.0.0

browser
chrome 62.0.3202.94 (Official Build) (64-bit)

etc

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

Expected Behavior

When I try to select a field using a mobile device, I tend to select on or near the field's underline bar. I expect that this would select the field/open the menu so I can continue interacting with this field as expected.

Current Behavior

When I select on or near a field's underline bar, the bar gives a reaction (boldens), but the field does not react as I wanted which causes me to try and select it again. This can result in frustration as I continue to select in the same area hoping to select the field but continuing to "miss".

In this animation, I am selecting many times where the cursor hovers over. The cursor seems to need to be entirely off of the underline before the field will react to it.

Context

I believe this is a usability bug that can cause frustration for users as they attempt to select a field on a mobile device.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.11

React
15.0.1

browser
Chrome 61, FF 56

etc
Issue 1:
When I quit and reopen Atom I lose all opened projects listed in sidebar and I got to drag all of those folders to Atom again.

Issue 2:
Seems reasonable

cmd-o AND file -> open is always opening a new window, there is a separate command for that. It's quite the nuisance. <3

This is perhaps a BIG one that undermines the foundation of Atom...but I find it quite irritating after coming from Sublime: I would like to be able to drag random files into a project/Atom instance so I can reference code side–by–side. Currently if I drag a random file from the finder into an Atom instance it automatically opens a new instance with the folder containing that file as the project root. Since I like to code in fullscreen, this means switching between a number of fullscreen Atom instances to look at or copy snippets of code. This isn't a particularly desirable workflow.

(from #1721)

...

Suppose that I open atom in my home directory. The working directory shown on the left is my home directory.

Now if I want to open a file that is not in the working directory then Atom opens a new window with that file and its directory. Same thing happens if I want to open a third file that is outside of those two working directories.

...

I'm coming from Sublime Text 2 and the default behavior there is every file in a new window. There is a configuration file that can be tweaked to make all files open in the same window.

...

I, too, would love to have files open in a new tab. It is absolutely crucial to my workflow. In the meantime I will continue using Sublime Text for this reason alone.

...

This is probably my single biggest annoyance and the reason why I can't use Atom full time.

(from #2005)

Also related issues:

#770 - Multiple folders in projects

atom/tree-view#63 - Add option to configure multiple root folders in tree-view
Issue 1:
Since the first challenge containing the tags <script></script> the page is going crazy

I believe your code is reloading every time you make an edit ? well with those script tags it is reloading constantly! and after a few seconds it says I completed this challange and to go to the next one

using Firefox 40.0.2

don't know what else I should include in this

maybe my windows ? 8.1 Pro

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
Issue 1:
It is now possible for a library to hit every type of target that TypeScript supports (module, namespace, and ES6). Currently, writing a declaration file for a library like this can be very challenging. The default today is something like this:

declare namespace MyLib {
export ...
}

declare module 'mylib' {
export = MyLib;
}

This has a couple issues:

If you're using this in the module sense, using this declaration file will result in TypeScript thinking there is a globally available variable MyLib which is not actually true. This can lead to runtime errors. (see #2018)

If you're using ES6 import syntax TypeScript will consider this module to be in the CommonJS style and will not allow default imports even though the library actually supports them.

In the past, regarding item 1, it's been suggested that we split the declarations into two files (one for modules and one for namespaces). This makes sense. I think it also makes sense to extend that concept for ES6 modules. So if you have a library that targets all three, then you will have three mutually exclusive declaration files. Where things then become problematic is with duplicating the declarations in each file (which ideally should not happen). It is impossible to import an ambient module into an ambient namespace. It is possible to use an ambient namespace in an ambient module, but a naive approach to that (as shown in the common case above) violates item 1.

Therefore, I propose this guidance to writing these declaration files.

// mylib-common.d.ts

declare namespace __MyLib {
export ...
}

// mylib-namespace.d.ts

/// <reference path="mylib-common.d.ts" />
import MyLib = __MyLib;

// mylib-module.d.ts

/// <reference path="mylib-common.d.ts" />
declare module 'mylib' {
export = __MyLib;
}

// mylib-es6.d.ts

/// <reference path="mylib-common.d.ts" />
declare module 'mylib' {
export * from __MyLib; // this doesn't currently work, see #4336
export default __MyLib; // if there is a default export
}

Unfortunately this is currently hypothetical since you cannot re-export namespace declarations from an ES6 declaration.

I'm proposing this as a baseline for discussion to solve this issue for good. It's possible I'm going down the wrong track or that there is already a better way to handle these cases. It would also be great if we could get some buy-in from the TypeScript language to solve this, if needed.

Some possible ways TypeScript could be improved in this area:

Fix #4336

Make it so that __MyLib only exists as a namespace and not as a value, either through convention (prefixed with __) or through additional syntax.

cc @johnnyreilly @vvakame

Issue 2:
I have an issue where I added a Bower component that distributes angular.d.ts, which I already have included elsewhere in my project.

Even though my bower_components directory is excluded from the project, it appears TSC is still compiling this d.ts resulting in duplicate declaration errors.

Is this the intended behavior of implicit compilation?
Issue 1:
The default themes for the boostrap 3.0, drop down is not working

http://getbootstrap.com/examples/theme/

the example you have added in the site itself . Please fix this issue ASAP.

In this example click the dropdown from the menu

Issue 2:
Browser Info:

Using IE9 on Windows 7 SP1.

Bootstrap version:

3.0.0

Steps to reproduce:

Visit http://getbootstrap.com/examples/theme/ using IE9 and click the dropdown link in either navbar example. The drop shadow should appear, but none of the content. All of the elements below are visible.

Temp Fix:

Commenting out the #gradient > .vertical line in theme.less for navbars solves the issue.
Issue 1:
The Advanced reindexing and alignment section of the documentation describes a method for filling data based on a partial match of indexes.

In this example, one level of a multiindex is dropped and data is copied based on a match of the remaining levels. This example only works because the original multiindex only had 2 levels so that when one level was dropped, the remaining index is no longer a multiindex. Unfortunately in practice you might end up wanting to align or reindex two multiindex based on the remaining levels (as I do), but it seems this behavior is not supported..

midx = pd.MultiIndex(levels=[['zero', 'one'], ['x','y'], ['a', 'b']], labels=[[1]*4+[0]*4,[1,1,0,0]*2,[1,0]*4], names=['first','second','third'])
df = pd.DataFrame(np.random.randn(8,2), index=midx)
df2 = df.mean(level=[k for k in df.index.names if k != 'third'])
df2.reindex(df.index, level=[0, 1])

the result of the last command is TypeError: Join on level between two MultiIndex objects is ambiguous

Particularly with named index levels, it not clear how this is ambiguous..

When you attempt an align where level is specified you end up with the same TypeError and when you attempt

df.align(df2)

you get a NotImplementedError

Based on the example in the documentation you would expect that dropping a multiindex level then reindexing in order to duplicate some data across the dropped index level would work. It is surprising that this doesn't work. Is there a way to implement this functionality?

Issue 2:
I'm trying to trim a very big DataFrame with a MultiIndex using head, and I noticed that the new DataFrame was still ridicolously big because it kept all the previous data from the entire MultiIndex. This doesn't happen if the DataFrame has a regular Index.

In [1]: from pandas import DataFrame

In [2]: df = DataFrame({'a': [1, 2, 3, 4, 5, 6], 'b': ['q', 'w', 'e', 'r', 't', 'y'], 'c': ['a', 's', 'd', 'f', 'g', 'h']}).set_index(['a', 'b'])

In [3]: df.head(3)
Out[3]:
c
a b
1 q a
2 w s
3 e d

In [4]: df.head(3).index
Out[4]:
MultiIndex(levels=[[1, 2, 3, 4, 5, 6], [u'e', u'q', u'r', u't', u'w', u'y']],
labels=[[0, 1, 2], [1, 4, 0]],
names=[u'a', u'b'])

#### Expected Output
MultiIndex(levels=[[1, 2, 3], [u'e', u'q', u'w']],
labels=[[0, 1, 2], [1, 2, 0]],
names=[u'a', u'b'])

Output of pd.show_versions()

# Paste the output here
## INSTALLED VERSIONS

commit: None

python: 2.7.12.final.0

python-bits: 64

OS: Linux

OS-release: 4.4.0-45-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

pandas: 0.18.1

nose: None

pip: 8.1.2

setuptools: 25.1.1

Cython: None

numpy: 1.11.1

scipy: 0.18.0

statsmodels: None

xarray: None

IPython: 5.0.0

sphinx: None

patsy: None

dateutil: 2.5.3

pytz: 2016.6.1

blosc: None

bottleneck: None

tables: None

numexpr: None

matplotlib: 1.5.1

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.8

boto: None

pandas_datareader: None
Issue 1:
I haven't been able to pin it down specifically yet, but I think there is a logic error somewhere in the caching logic with the new compiler. I seem to be getting into an infinite loop when trying deno run --reload.

For example with oak, if you clone https://github.com/oakserver/oak/ and run:

$ deno run --allow-read test.ts

Everything should work fine and the tests pass. Then if you run:

$ deno run --reload --allow-read test.ts

I have noticed that it seems to be an ever increasing amount of files being downloaded, and you will start to see several of the modules repeating themselves.

Issue 2:
I'm interested, in the future it will be possible to create a native app by deno ? - was without electron etc.
Issue 1:
I've got two hard drives: C: and D:.

It seems like PowerToys Run can only find files and folder located at C: but not at D: while most of my important and recently used files are located at my second hard drive.

Issue 2:
Comment by @EdgarVaguencia from #3223

Doesn't find Code

Wox result:

the G drive is a partition, the different thing is that i don't create shortcut on start menu, but i add the path in environment variables
Issue 1:
idna-3 has been released on Jan 1st. However, requests still requires idna<3 preventing a lot of projects from upgrading.

Expected Result

requests supporting idna-3.1

Actual Result

requests force idna<3

Reproduction Steps

Errr, install requests? ;-)

System Information

$ python -m requests.help
{
"chardet": {
"version": "4.0.0"
},
"cryptography": {
"version": "3.4.7"
},
"idna": {
"version": "2.10"
},
"implementation": {
"name": "CPython",
"version": "3.9.4"
},
"platform": {
"release": "5.11.16-gentoo-dist",
"system": "Linux"
},
"pyOpenSSL": {
"openssl_version": "101010bf",
"version": "20.0.1"
},
"requests": {
"version": "2.25.1"
},
"system_ssl": {
"version": "101010bf"
},
"urllib3": {
"version": "1.26.4"
},
"using_pyopenssl": true
}

Issue 2:
idna released version 3.0 but requests has a dependency on idna<3, this makes it impossible to keep up to date on both packages.

Expected Result

I want to be able to install the latest idna package alongside the latest requests package

Actual Result

ERROR: Cannot install -r requirements.txt (line 12) and idna==3.0 because these package versions have conflicting dependencies.

The conflict is caused by:

The user requested idna==3.0

requests 2.25.1 depends on idna<3 and >=2.5

Reproduction Steps

try to run pip install on a requirements.txt file with

requests==2.25.1
idna==3.0

System Information

multiple Python versions (3.6 up to 3.9) running on Docker containers inside Drone CI/CD
Issue 1:
#19948 introduces available_if which fixes some issues and is easier to write and understand. We should use it instead of if_delegate_has_method in our own codebase, and encourage third party developers to use it as well.

This issue is to let people replace the usage one module at a time, and update the documentation of if_delegate_has_method to reflect that people should use available_if instead.

Any thoughts before we open this for contributors @jnothman @thomasjpfan ?

Issue 2:
Description

There is code / logic duplication between decomposition.dict_learning.py.dict_learning and dict_learning_online. Formally, the code should be equivalent except, that

for the former the codes should be computed all at once (batch_size = n_samples) and this process iterated (alternating BCD, as it's already done), whilst

for the latter the each sample point's code is computed as the sample is pooled-in. The dictionary update function should the same in both case (Alg2 of the ref paper.)

As a side effect of this code duplication, there prototype of backend _update_dict function is somewhat "dangling". E.g the shape of argument code can be (n_components, n_features) or (n_components, n_features) depending on whether it's called from within dict_learning or dict_learning_online resp.

Proposal

Have a single function dict_learning_online(batch_size=some_default) which reproduces full-batch mode (the current dict_learning function) when batch_size == n_samples.
Issue 1:
Current Behavior:

It doesn't install packages that are only found on GitHub.

Expected Behavior:

It should install packages that are only found on GitHub.

Steps To Reproduce:

With this config in package.json, e.g.: "dependencies": { "@gastromatic/react-dates": "1.0.7" }

With this config in .npmrc, e.g.: @gastromatic:registry=https://npm.pkg.github.com

Run 'npx npm@7.0.0-rc.0 i'

See error:

npm ERR! code EINTEGRITY
npm ERR! sha512-BUAcX26JrA+RHhaVkOCWAK95ffzA4uXgkQyl/TD+yYbRvxK9BpXjqKNxTSVzKosxXHdWPSyKUkl6fDEg3RPg4w== integrity checksum failed when using sha512: wanted sha512-BUAcX26JrA+RHhaVkOCWAK95ffzA4uXgkQyl/TD+yYbRvxK9BpXjqKNxTSVzKosxXHdWPSyKUkl6fDEg3RPg4w== but got sha512-z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==. (0 bytes)

With these steps npm6 does install packages that are only found on GitHub.

Environment:

OS: MacOS 10.15.7

Node: 14.13.0

npm: 7.0.0-rc.0

Issue 2:
Current Behavior:

We are trying to upgrate to NPM 7, but we run into problems with getting packages from azure artifacts. The following log is shown, when running npm i --verbose:

npm WARN tarball tarball data for https://infolandcode.pkgs.visualstudio.com/_packaging/Shared/npm/registry/xxx/xxx.tgz (sha1-ZTIGEke6SQtyObZXul6THKgWSz0=) seems to be corrupted. Trying again.
npm WARN tarball tarball data for https://infolandcode.pkgs.visualstudio.com/_packaging/Shared/npm/registry/xxx/xxx.tgz (sha1-oYbrH56D5xdd2LzPKGiYWv/1Z9w=) seems to be corrupted. Trying again.
npm WARN tarball tarball data for https://infolandcode.pkgs.visualstudio.com/_packaging/Shared/npm/registry/xxx/xxx.tgz (sha1-ZTIGEke6SQtyObZXul6THKgWSz0=) seems to be corrupted. Trying again.
npm WARN tarball tarball data for https://infolandcode.pkgs.visualstudio.com/_packaging/Shared/npm/registry/xxx/xxx.tgz (sha1-oYbrH56D5xdd2LzPKGiYWv/1Z9w=) seems to be corrupted. Trying again.
npm timing reify:rollback:createSparse Completed in 2ms
npm timing reify:rollback:retireShallow Completed in 1ms
npm timing command:install Completed in 1784ms
npm verb stack Error: sha1-ZTIGEke6SQtyObZXul6THKgWSz0= integrity checksum failed when using sha1: wanted sha1-ZTIGEke6SQtyObZXul6THKgWSz0= but got sha512-1HAETTUJsxZ0ZT/s/kYXiDJgmm4bXD7co77wzewb4t8BBW7Vhk0ONkOs5orSToPCtu41U30n/e50gqTgia8anA== sha1-oCrDJJcm5EvGPkto9uzdg5hsPC0=. (307 bytes)

Expected Behavior:

I expect the packages to be downloaded correctly, just as they did using npm 6

Steps To Reproduce:

Reference packages to azure artifacts in your package.json. Try to run npm install

expected:

packages install

actual:

error as shown above

Environment:

OS: windows 10

Node: v12.16.1

npm: 7@beta10
Issue 1:
This jsfiddle illustrates that the 'toggle' option does not toggle. It opens the dropdown but does not close it when clicked a second time.

http://jsfiddle.net/urQvW/

Issue 2:
If you use the JavaScript interface for dropdown -- .dropdown("toggle") -- multiple times, the "open" class isn't cleared, so the dropdown stays open.

https://gist.github.com/evanp/6456479
Issue 1:
Code Sample, a copy-pastable example if possible

import pandas as pd

dat = pd.DataFrame({'a': [1, 1, 2, 2], 'b': [0, 1, 2, 3], 'c': [None, None, 1, 1]})

gp = dat.groupby('a')

case_one = gp['b'].aggregate(lambda x: (x != 0).all())

case_two = gp['c'].aggregate(lambda x: x.isnull().all())

Problem description

By comparing case_one and case_two, it seems that aggregate function turns boolean values sometimes to integers 1 or 0.

For case_one we get,

a
1 False
2 True
Name: b, dtype: bool

However for case_two we get

a
1 1.0
2 0.0
Name: c, dtype: float64

Expected Output

For case_two we should get

a
1 True
2 False
Name: b, dtype: bool

Output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-53-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_AU.UTF-8
LOCALE: en_AU.UTF-8

pandas: 0.19.1

nose: 1.3.7

pip: 8.1.2

setuptools: 23.0.0

Cython: None

numpy: 1.11.0

scipy: 0.17.0

statsmodels: None

xarray: None

IPython: 4.2.0

sphinx: None

patsy: None

dateutil: 2.5.3

pytz: 2016.4

blosc: None

bottleneck: None

tables: None

numexpr: None

matplotlib: None

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: 2.8

boto: None

pandas_datareader: None

This same issue appears in a different environment as well.

INSTALLED VERSIONS
------------------
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-53-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_AU.UTF-8

pandas: 0.18.1

nose: 1.3.7

pip: 9.0.1

setuptools: 23.0.0

Cython: None

numpy: 1.11.2

scipy: 0.18.1

statsmodels: None

xarray: None

IPython: 5.0.0

sphinx: None

patsy: None

dateutil: 2.5.3

pytz: 2016.6.1

blosc: None

bottleneck: None

tables: None

numexpr: None

matplotlib: 1.5.1

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: 1.1.3

pymysql: None

psycopg2: None

jinja2: 2.8

boto: None

pandas_datareader: None

Issue 2:
tests.indexes.datetimes.test_ops.TestDateTimeIndexToJulianDate

tests.indexes.datetimes.test_misc.TestDateTimeIndexToJulianDate

Will update if/when I find others.

https://github.com/pandas-dev/pandas/blob/master/pandas/tests/indexes/timedeltas/test_timedelta.py#L578

TestSlicing has one method test_timedelta and it isn't clear it has anything to do with slicing.

https://github.com/pandas-dev/pandas/blob/master/pandas/tests/indexes/timedeltas/test_ops.py#L1214

test_ops.TestSlicing.test_tdi_ops_attributes doesnt appear to have anything to do with slicing

https://github.com/pandas-dev/pandas/blob/master/pandas/tests/indexes/timedeltas/test_ops.py#L1250

test_ops.TestSlicing.test_add_overflow appears arithmetic based. In fact it almost catches one of the errors in #18020.
Issue 1:
I click the big download button and all the is in the zip files are blank?

Issue 2:
Tried to download a customised setup but css files are empty once downloaded, the same is true for IE,Safari,FireFox and Chrome. Received a error file with the downloaded zip, message as follows:

A less error occured trying to build your bundle. You've likely entered an invalid input into the less variable field. Check your syntax and try again!

thanks!

{"type":"Parse","message":"Syntax Error on line 1","index":0,"filename":"bootstrap.css","line":1,"column":0,"extract":[null,"","<!--"]}

Thanks