WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Modal and Dropdown opens up without any error but the elements inside it are not actionable on mobile devices. I mean in case of Dropdown clicking on options, Dropdown disappears but the action is not getting performed. And in case of Modal its not allowing me to click on the elements inside it. Basically Dropdown and Modal both are completely unusable on mobile device (on web it works well). Even Modal and Dropdown inside Bootstrap main site also does not work for me. I am testing on default browser for android

Issue 2:
I thought I'd create another issue I'm experiencing, as it's not really related to the other one I've created.

Is it possible to have a modal open an external URL as opposed to some hidden mark-up on the same page? For example:

$('a.btn').click(function() {
$('/some-other-page.html').modal({
backdrop: 'static',
keyboard: true
});
});
Issue 1:
Date picker and time picker not working properly. On desktop the calendar pop up won't show at all, work only in mobile. on Firefox, not show anything.

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

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

https://material-ui.com/demos/pickers/

Context

Your Environment

Tech
Version

Material-UI
1.0 beta.18

React

browser

etc

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

Expected Behavior

Text should not overlap pagination drop down

Current Behavior

Overlapping of text is supposed to be fixed by #9037 .

But when I use the pagination component in my app the problem still appears.

It seems that the spacer is causing some problems.

I can fix the problem in two different ways:

1 . setting the spacer to 50%

const styles = {
spacer: {
flex: '1 1 50%',
border: '1px solid black'
}
}

<TablePagination
classes = {{spacer: classes.spacer}}
...
/>

2. remove the spacer completely and use float attribute on the toolbar to align the pagination controls

"float:right" or "float:left"

Steps to Reproduce (for bugs)

create a Table with Pagination that spans the whole screen (width: 100%).

Open in IE11

Context

Solution 1 can be applied as dirty workaround.

But I think the problem will come around again and the spacer will cause problems again on different resolutions (at least in IE emulation).

So I think Solution 2 would be more robust regarding responsiveness.

Your Environment

Tech
Version

Material-UI
^1.0.0-beta.22

React
^16.0.0

browser
IE11
Issue 1:
by itcraft.letter:

In the specification of functions delta defined as unsigned, that means that we can only
set delta incement and cannot set delta decrement.

func AddUint64(addr *uint64, delta uint64) (new uint32)
func AddUint32(addr *uint32, delta uint32) (new uint32)

Thanks.

Issue 2:
by bertrand.marlier:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem. Thanks.

What steps will reproduce the problem?
1. ./all.bash
2.
3.

What is the expected output? What do you see instead?

I was expecting:
--- cd ../test
N known bugs; 0 unexpected bugs

but got instead:

--- cd ../misc/cgo/stdio
rm -rf *.[568vqo] *.a [568vq].out *.cgo[12].go *.cgo[34].c *.so _obj _test
_testmain.go hello fib chain run.out
cgo file.go
could not determine kind of name for C.puts
could not determine kind of name for C.CString
could not determine kind of name for C.fflushstdout
could not determine kind of name for C.free
failed to interpret gcc output:
cc1: warnings being treated as errors
cgo-test: Dans la fonction «f» :
cgo-test:0: attention : déclaration sasn effet
cgo-test:1: attention : déclaration sasn effet
cgo-test:2: attention : déclaration sasn effet
cgo-test:3: attention : déclaration sasn effet

make: *** [file.cgo1.go] Erreur 2

What is your $GOOS? $GOARCH?

linux/386

Which revision are you sync'ed to? (hg log -l 1)

changeset: 4037:cd0140653802
tag: tip
user: David Titarenco <david.titarenco@gmail.com>
date: Fri Nov 13 18:06:47 2009 -0800
summary: Created new Conn.Flush() public method so the fd pipeline can
be drained arbitrarily by the user.

Please provide any additional information below.

It seems to be related to french localization of gcc
Issue 1:
Fiddle: http://jsfiddle.net/nm5g7/1/

When hovering a button with tooltip, the next button in the btn-group is moved one pixel to the right.

If the last button has a tooltip, it loses its border-radius attribute when hovering.

Issue 2:
http://jsfiddle.net/JEBdk/5/

tooltip or popover on btn-group. the btn-group is not display correctly!

the last btn have not round corners and between the btn's is a space.

my suggestion, by generating the tip or popover on the end of document .
Issue 1:
There's several areas in the LESS files that are not using the border-radius variables. The class .dropdown-menu in dropdowns.less has border-radius fixed to 6px when it should be @borderRadiusLarge.

Issue 2:
I'm not sure how to progress this but I've been trying to understand why Popovers did not seem to work when using a hover trigger and there was a selector specified in the options.

Could somebody please verify my understanding ...

Line 87 of the boostrap-tooltip.js version 2.3.2 creates a conditional copy of the "this._options" object - and stores it into a local "options" variable.

I think that there is a bug - but I'm not sure if it's deliberate - the code below passes in a 3rd parameter into the $.each function. According the the jquery docs, this 3rd parameter is for internal use.

By removing this 3rd parameter - the Popover works as expected - when combined with a selector. I've not done any other use-cases, but it does seem to be a problem.

How can I progress a solution to this ?

this._options && $.each(this._options, function (key, value) {
if (defaults[key] != value) options[key] = value
}, this)
Issue 1:
Is there any equivalent approach for accessing fastapi application from IPython shell context?

Like we use python manage.py shell in flask?

Issue 2:
from fastapi import Depends, FastAPI, HTTPException, Request, Response
from typing import Optional
from jinjasql import JinjaSql

app = FastAPI()

@app.get("/items/")
async def read_item(request: Request, user_id: Optional[int] = 0, project_id: Optional[int] = 0):
request_query_params = {item[0]: item[1] for item in request.query_params.multi_items() }
print(request_query_params)

template = """
select username, sum(spend)
from transactions
where 1 = 1
{% if user_id %}
and user_id = {{ user_id }}
{% endif %}
{% if project_id %}
and project_id = {{ project_id }}
{% endif %}
"""
j = JinjaSql()
query, bind_params = j.prepare_query(template, request_query_params)

return query

Description

Open the browser and call the endpoint http://127.0.0.1:8000/items/?project_id=2.

It returns "\n select username, sum(spend)\n from transactions\n where 1 = 1\n \n \n and project_id = %s\n \n "

query parameter user_id that has a default value 0 is missing.

I wish to have request_query_params include the default value too. It can save some typing when there is a lot of query parameters.

Environment

OS: Windows

FastAPI Version 0.61.1:

Python version: 3.8.2
Issue 1:
🚀 Feature

Please release python 3.8 package.

cc @ezyang

Issue 2:
~ ❯❯❯ LD_LIBRARY_PATH=$HOME/pysandbox/lib ~/pysandbox/bin/pip3 install torch
/Users/btv/pysandbox/lib/python3.8/site-packages/pip/_vendor/html5lib/_trie/_base.py:3: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Mapping
Collecting torch
/Users/btv/pysandbox/lib/python3.8/site-packages/pip/_vendor/msgpack/fallback.py:220: PendingDeprecationWarning: encoding is deprecated, Use raw=False instead.
warnings.warn(
Using cached https://files.pythonhosted.org/packages/5f/e9/bac4204fe9cb1a002ec6140b47f51affda1655379fe302a1caef421f9846/torch-0.1.2.post1.tar.gz
Complete output from command python setup.py egg_info:
/Users/btv/pysandbox/lib/python3.8/site-packages/setuptools/depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/xm/k62yj65n0qd9n40myt10y8sjpk8rbt/T/pip-install-6cdjtra9/torch/setup.py", line 11, in <module>
raise RuntimeError(README)
RuntimeError: PyTorch does not currently provide packages for PyPI (see status at https://github.com/pytorch/pytorch/issues/566).

Please follow the instructions at http://pytorch.org/ to install with miniconda instead.

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/xm/k62yj65n0qd9n40myt10y8sjpk8rbt/T/pip-install-6cdjtra9/torch/
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Issue 1:
Bug report

What is the current behavior?

There are some json files in our project which contain some big alphanumeric strings. The current hash regex isn't accurate enough to filter out these strings which cause the crash "Circular hash dependency"

If the current behavior is a bug, please provide the steps to reproduce.

We're applying a patch to the regex as a workaround now.

Issue 2:
The same #16858

Bug report

What is the current behavior?

A Circular hash dependency compilation error is thrown for hash collisions in folder names.

If the current behavior is a bug, please provide the steps to reproduce.

Applying this patch to my webpack config (from create-react-app):

diff --git a/config/webpack/webpack.config.ts b/config/webpack/webpack.config.ts
index fc4bca3fc3..3bd779a7c1 100644
--- a/config/webpack/webpack.config.ts
+++ b/config/webpack/webpack.config.ts
@@ -273,13 +273,13 @@ const config = function (webpackEnv: Configuration['mode'], target = 'web'): Con
// There will be one main bundle, and one file per asynchronous chunk.
// In development, it does not produce real files.
filename: isEnvProduction
- ? 'static/js/[name].[contenthash:8].js'
+ ? 'static/js/[contenthash:2]/[name].[contenthash:8].js'
: isEnvDevelopment
? 'static/js/bundle.js'
: undefined,
// There are also additional JS chunk files if you use code splitting.
chunkFilename: isEnvProduction
- ? 'static/js/[name].[contenthash:8].chunk.js'
+ ? 'static/js/[contenthash:2]/[name].[contenthash:8].chunk.js'
: isEnvDevelopment
? 'static/js/[name].chunk.js'
: undefined,
@@ -715,8 +715,8 @@ const config = function (webpackEnv: Configuration['mode'], target = 'web'): Con
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
- filename: 'static/css/[name].[contenthash:8].css',
- chunkFilename: 'static/css/[name].[contenthash:8].chunk.css'
+ filename: 'static/css/[contenthash:2]/[name].[contenthash:8].css',
+ chunkFilename: 'static/css/[contenthash:2]/[name].[contenthash:8].chunk.css'
}),
// Generate an asset manifest file with the following content:
// - "files" key: Mapping of all asset filenames to their corresponding

produces a Circular hash dependency compilation error. I suspect a reasonably large project and/or many chunks would be required to reliably produce a collision.

What is the expected behavior?

I expect content hash collisions to be tolerated for folder names.

Other relevant information:

webpack version: 5.51.1

Node.js version: 14.17.5

Operating System: Tested on OSX & Linux
Issue 1:
At least for large datasets DataFrame.duplicated returns incorrect results.

Consider MovieLens10M data (this code will automatically download the data from grouplens website):

import pandas as pd
from requests import get
from StringIO import StringIO
zip_file_url = 'http://files.grouplens.org/datasets/movielens/ml-10m.zip'
zip_response = get(zip_file_url)
zip_contents = StringIO(zip_response.content)

with ZipFile(zip_contents) as zfile:
zdata = zfile.read('ml-10M100K/ratings.dat')
delimiter = ';'
zdata = zdata.replace('::', delimiter) # makes data compatible with pandas c-engine
mldata = pd.read_csv(StringIO(zdata), sep=delimiter, header=None, engine='c',
names=['userid', 'movieid', 'rating', 'timestamp'],
usecols=['userid', 'movieid', 'rating'])

The data (mldata variable) contains no duplicates, which can be verified:

(mldata.groupby(['userid', 'movieid']).size()>1).any()
False

mldata.set_index(['userid', 'movieid']).index.is_unique
True

However, DataFrame.duplicated gives:

dups = mldata.duplicated(['userid', 'movieid'], keep=False)
print dups.any()
print dups.sum()

True
12127

Expected:

False
0

pd.show_versions():

INSTALLED VERSIONS

commit: None

python: 2.7.10.final.0

python-bits: 64

OS: Windows

OS-release: 8

machine: AMD64

processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel

byteorder: little

LC_ALL: None

LANG: None

pandas: 0.17.0

nose: 1.3.7

pip: 7.1.2

setuptools: 18.3.2

Cython: 0.23.3

numpy: 1.10.0

scipy: 0.16.0

statsmodels: None

IPython: 3.2.1

sphinx: 1.3.1

patsy: 0.3.0

dateutil: 2.4.2

pytz: 2015.6

blosc: None

bottleneck: 1.0.0

tables: 3.2.0

numexpr: 2.3.1

matplotlib: 1.4.3

openpyxl: 1.8.5

xlrd: 0.9.3

xlwt: 1.0.0

xlsxwriter: 0.7.3

lxml: 3.4.4

bs4: 4.3.2

html5lib: 0.999

httplib2: None

apiclient: None

sqlalchemy: 1.0.5

pymysql: None

psycopg2: None

Issue 2:
Code Sample

import pandas as pd

df = pd.DataFrame([1,2,3], columns=['column'], index=[1,1,2])

for idx in df.index.unique():
print(type(df.loc[idx]['column']))
for v in df.loc[idx]['column']:
print(v)

Output:

<class 'pandas.core.series.Series'>
1
2
<class 'numpy.int64'>
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-26-a207307b6a42> in <module>()
5 for idx in df.index.unique():
6 print(type(df.loc[idx]['column']))
----> 7 for v in df.loc[idx]['column']:
8 print(v)

TypeError: 'numpy.int64' object is not iterable

Problem description

The problem with this code is, that data.loc[idx]['column'] can either be a Series or a float64 instance. This is a problem because this requires an additional check. Also this can lead to bugs very easily.

Expected Output

I would expect this to return always a Series object.
Issue 1:
Elasticsearch version: 2.3.2

Plugins installed: modules [lang-groovy, reindex, lang-expression], plugins [marvel-agent, watcher, shield, license, head], sites [head]

JVM version: OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)

OS version: Red Hat Enterprise Linux Server release 6.8 (Santiago)

Description of the problem including expected versus actual behavior:

Steps to reproduce:

Attempt to reindex two indeces, with either index containing a wildcard character in it's name

Provide logs (if relevant):

"Invalid index name [index-name-*], must not contain the following characters [, /, *, ?, ", <, >, |, , ,]"

Describe the feature:

Please enable the _reindex API to work with indeces with wildcard characters.

Issue 2:
Describe the feature:

Would be great if the Reindex API would support wildcards.

GET _cat/indices/logstash-*
logstash-2016-01-01
logstash-2016-01-02

POST /_reindex
{
"source": {
"index": "logstash-*"
},
"dest": {
"index": "logstash-new-*"
}
}

GET _cat/indices/logstash-*
logstash-2016-01-01
logstash-2016-01-02
logstash-new-2016-01-01
logstash-new-2016-01-02
Issue 1:
Dave Syer opened SPR-6593 and commented

Primary Goal

Add a TestExecutionListener for DbUnit.

Related Resources

Phil Webb's spring-test-dbunit project on GitHub

Proposal to include DbUnit support in Spring Data JDBC instead of in Spring Core

JBoss Arquillian Persistence Extension

Issue Links:

#12387 Provide @Rule alternative to SpringJUnit4ClassRunner ("Cloned to")

BATCH-1158 Enabling unit testing of batch jobs with DbUnit/Unitils ("is duplicated by")

#12208 Transactional unit test support without overhead of container

DATAJDBC-28 Introduce a TestExecutionListener for DbUnit

#9043 Introduce before/after test execution callbacks in the TestContext framework

#7783 Introduce explicit Hibernate and/or DbUnit support in the TestContext Framework ("supersedes")

5 votes, 7 watchers

Issue 2:
Alberto A. Flores opened SPR-6767 and commented

Unless I completely missed it, the <mvc:annotation-driven /> definition is not documented in the manual. Furthermore, the schema is not even described in the documentation. It appears that some forum answers claim that using <mvc:annotation-driven /> will also do classpath scanning which appears to be contradictory to the post from Keith. Thoughts?

Affects: 3.0 GA

Issue Links:

#11247 When using mvc:annotation-driven/ Spring webflows no longer work ("duplicates")

1 votes, 2 watchers
Issue 1:
Having issue with cursor repositioning, while loading a new challenge.

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
Challenge learn-how-the-css-keyframes-and-animation-properties-work has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:51.0) Gecko/20100101 Firefox/51.0.

Please describe how to reproduce this issue, and include links to screenshots if possible.

---result of animation doesn't work (animation name&duration) @Keyframes are ok;

<style>

div{
height:40px;
width: 70%;
background:black;
margin: 50 auto;
border-radius: 5px;
}

#rect {
animation-name:rainbow;
animation-duration:4s;
}

@keyframes rainbow {
0% {
background-color: blue;

}
50% {
background-color: green;

}
100% {
background-color: yellow;

}
}

</style>
<div id="rect"></div>

Issue 2:
Issue Description

This is for the feature/curriculum-expansion branch only when run locally, and NOT the staging branch.

For several challenges (challengeType: 0, using the code editor with the mobile-phone output layout), the jQuery method .css() doesn't seem to be accessing the styles applied in a style tag in the given code. This is affecting any assert tests that use a pattern of assert($('selector').css('propertyToCheck') == 'valueToCompare', 'message: ...');.Here's an example:

<style>
h2 {
position: relative;
top: 15px;
}
</style>
<body>
<h1>On Being Well-Positioned</h1>
<h2 class="testCode">Move me!</h2>
<p>I still think the h2 is where it normally sits.</p>
</body>
<script>
console.log($('h2').attr('class')); // Works great, returns testCode
console.log($('h2').css('position')); // returns undefined
console.log($('h2').css('top')); // returns undefined
</script>

Related assert tests that aren't passing:

assert($('h2').css('position') == 'relative', 'message: Add a CSS rule to specify that the <code>h2</code> has a <code>position</code> set to <code>relative</code>.');

assert($('h2').css('top') == '15px', 'message: Use a CSS offset to relatively position the <code>h2</code> 15px away from the <code>top</code> of where it normally sits.');

Browser Information

Browser Name, Version: Firefox 48.0.1

Operating System: Mac OS X, El Capitan v10.11.3

Mobile, Desktop, or Tablet:
Issue 1:
🐛 Bug

I don't see the new work on Generators in the libtorch.zip file in the last couple of nightly builds.

e.g. a file like ATen/CPUGenerator.h

looks out of date in the libtorch.zip vs pytorch-master.zip

?

I had thought these two zips would generally have the same files or nearly the same..

Thanks

Issue 2:
🐛 Bug

The following URLs work for the latest nightly build:

https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip

https://download.pytorch.org/libtorch/nightly/cu90/libtorch-shared-with-deps-latest.zip

https://download.pytorch.org/libtorch/nightly/cu100/libtorch-shared-with-deps-latest.zip

and versioned URLs work for CPU and CUDA 9.0:

https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-1.2.0.dev20190601.zip

https://download.pytorch.org/libtorch/nightly/cu90/libtorch-shared-with-deps-1.2.0.dev20190601.zip

but versioned URLs don't work for CUDA 10.0:

https://download.pytorch.org/libtorch/nightly/cu100/libtorch-shared-with-deps-1.2.0.dev20190601.zip
Issue 1:
by giacomo.tartari:

What steps will reproduce the problem?
I don't have an ad hoc example but I stumbled upon the issue while go getting a githhub
repo so the code is there.
1.
$ go get github.com/jteeuwen/glfw

What is the expected output?

$

What do you see instead?

# github.com/jteeuwen/glfw
ld: duplicate symbol _setCharCB in $WORK/github.com/jteeuwen/glfw/_obj/glfw.cgo2.o and
$WORK/github.com/jteeuwen/glfw/_obj/_cgo_export.o for architecture x86_64
collect2: ld returned 1 exit status

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?

$ uname -rs
Darwin 11.3.0

Which revision are you using? (hg identify)

$ hg identify
96bd78e7d35e weekly/weekly.2012-02-22

$ go version
go version weekly.2012-02-22 +96bd78e7d35e

Please provide any additional information below.

more details here:
https://groups.google.com/d/msg/golang-nuts/_HKIFbWX0Co/dwASE-SGPXIJ

Issue 2:
Could we add a shutdown/cleanup mechanism to the testing package?

Background: some tests (notably: integration-style tests) require heavy setup, compiling
things, setting up things on disk, running child processes wired together, etc.

If you just do this once and share it per test, it's unclear when to clean up the /tmp
folder and shut down the processes.

People have resorted to things like TestZZZ for cleanup (which doesn't work well with
-test.run), or z_last_test.go (as seen in net/http), or the hoops jumped through here:

https://github.com/bradfitz/docker/blob/fuse/vfuse/all_test.go

(Look at release and testsToRun and how it's calculated.)

And also hacks in Google's code, even people so far as to fork the testing package.

Or people run a child process that is responsible for cleanup, once it notices its
parent has died. But that's a lot of work and there are portability concerns.

I know a test could still crash mid-way through, so cleanup on shutdown is still best
effort, but when it's a bunch of big processes and big files in /tmp, that's better than
nothing most the time.

With regard to atexit-ish concerns, I'd propose the shutdown mechanism itself be subject
to the same timeout concerns. If the shutdown doesn't finish in N seconds, the test
exits with failure.
Issue 1:
go version go1.4.1 linux/amd64

go tool pprof cpu.prof

Entering interactive mode (type "help" for commands)
(pprof) top
10.29s of 10.29s total ( 100%)
flat flat% sum% cum cum%
10.29s 100% 100% 10.29s 100%

where i should have typed this

go tool pprof mybinary cpu.prof

I did fail to read the help correctly so it is my own fault - but it gave me no indication i did anything wrong.

ref: https://groups.google.com/forum/#!topic/Golang-Nuts/dd9QwwGdt34

Issue 2:
by ryanbressler:

When using the exec package to run a command like "echo hello" over and over
again while reading from the pipe returned by Cmd.StdoutPipe() in separate go routines a
small number of the reads (~1/1000 in my testing) will produce read |0: bad file
descriptor errors.

This does not seem to effect longer running processes (like sleep .1) suggesting that it
may have to do with process that finish quickly.

What steps will reproduce the problem?
1. Compile and run attached code.

What is the expected output?
No Errors.

What do you see instead?
|0: bad file descriptor for some percent of the reads.

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
OS X 10.5.8

Which revision are you using? (hg identify)
b0819469a6df (release-branch.r60) release/release.r60

Please provide any additional information below.

Attachments:

main.go (691 bytes)