WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Environment info

transformers version: 3.5.1

Platform: Colab Notebook

Python version: 3.6.9

PyTorch version (GPU?): 1.7.0

Using GPU in script?: Yes

Using distributed or parallel set-up in script?: No

Who can help

tokenizers: @mfuntowicz

-->

Information

Model I am using : DPRReaderTokenizer

The problem arises when using:

DPRReaderTokenizer, instead of returning as many tensor as passages, he returns only one (On the documentation it must return (n_passages, sequence_length), but it returns (1, sequence_length) on basic examples.

The tasks I am working on is:

Tokenization with DPRReaderTokenizer on multiple passages (texts)

To reproduce

from transformers import AlbertTokenizer, AlbertForQuestionAnswering, DPRReader, DPRReaderTokenizer, AutoTokenizer

import torch

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

tokenizer_DPR = DPRReaderTokenizer.from_pretrained('facebook/dpr-reader-single-nq-base')

model_DPR = DPRReader.from_pretrained('facebook/dpr-reader-single-nq-base', return_dict=True).cuda()

encoded_inputs = tokenizer_DPR(

questions=["What is Transformers?"],

titles=['Attention is all you need', 'One famous library'],

texts=['Attention is a new mechanism designed to improve the performance of the seq2seq models', 'One of the most

famous NLP library is called Transformers' ],

padding=True,

return_tensors='pt'

)

encoded_inputs

{'input_ids': tensor([[ 101, 2054, 2003, 19081, 1029, 102, 3086, 2003, 2035, 2017,

2342, 102, 3086, 2003, 1037, 2047, 7337, 2881, 2000, 5335,

1996, 2836, 1997, 1996, 7367, 4160, 2475, 3366, 4160, 4275]]), 'attention_mask': tensor([[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,

1, 1, 1, 1, 1, 1]])}

Remarks

The expected outputs is two tensors ... and I got only one .. 👎

Issue 2:
First good issue

A current error is that a user forwards a batched tensor of input_ids that include a padding token, e.g. input_ids = torch.tensor([["hello", "this", "is", "a", "long", "string"], ["hello", "<pad>", "<pad>", "<pad>", "<pad>"]]

In this case, the attention_mask should be provided as well. Otherwise the output hidden_states will be incorrectly computed. This is quite a common silent error IMO.

With @LysandreJik @sgugger, we have decided to not automatically create the attention_mask that masks out the padding tokens in this case because of the reasons explains here: #15479 (comment) . However as pointed out in #15479, we should IMO at least displa a warning since this error happens a lot IMO.

As a first good issue, one could add such a warning to the BertModel in a first case which would go something like:

if attention_mask is not None and (input_ids == pad_token_id).any():
logger.warn("display nice warning here....")

What do you think @sgugger @LysandreJik ?
Issue 1:
Atom has no VoiceOver screen reader support on MacOS X. This means it is unusable by the blind and print disabled. VO is part of OS X and should be supported.

Tested on MacOS X 10.10

Issue 2:
Was using Atom today during a presentation.

While Atom's not necessarily part of that evaluation, I noticed that VoiceOver thought the focus was on the close button the entire time.

Since we're in a web browser, theoretically accessibility should be a given, but may be something to keep in mind going forward if it's an easy fix.

//cc @muan, @nuclearsandwich, @eanakashima
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-test-go/17178/

Failed: TestWatch {etcd}

resttest.go:1299: unexpected timeout from result channel

Previous issues for this test: #31262

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-test-go/17026/

Failed: TestWatch {etcd}

resttest.go:1251: unexpected timeout from result channel

Previous issues for this test: #31262
Issue 1:
Describe the bug

Node order changes at each gtlf load.

If 2 objects with 2 different material colours are at the same position, the rendering changes at each loading.

To Reproduce

Steps to reproduce the behavior:

Go to codepen gltf loader

Reload the page

Observe visual differences between each load

or

Go to ThreeJS editor

Import draco.gltf

Observe node order changes

Expected behavior

The order of the objects must respect the one defined in the gltf file.

Screenshots

First load (codepen):

Second load (codepen):

First load (threejs editor):

Second load (threejs editor):

Platform:

Device: [Desktop]

OS: [MacOS]

Browser: [Chrome 96, Firefox 94]

Three.js version: [r134]

Issue 2:
I just found out the order of children in a traverse 'traverse' loop in a (glb file):

object.traverse( function ( child ) {
//to something with child
});

is different on Chrome and on Firefox.

Actually, on Chrome, the order seem to be random ( is different each time the page is refreshed)

Tested with a glb file exported from blender,

on Chrome & Firefox linux and window 10, with three 112

Is this a known issue or is there a work around for this?

using threejs 112 & GLTF loader as of today's version : 2020/02/28
Issue 1:
Is it possible to open the Terminal and run an executable via a batch file?

Or at least set the Terminal as default for bat/ps1 files.

Something like this Run.bat:

wt.exe myConsoleApp.exe

Which opens the Terminal and executes the MyConsoleApp.exe

Issue 2:
Description of the new feature/enhancement

The latest version of Docker for Windows is adding a WSL2-based backend powered by a series of service machines. Terminal currently discovers these and adds them as options that the user can select. These should probably be blacklisted from being presented to the user in the short-term. I imagine a better long-term solution is for WSL2 to be able to use metadata to differentiate service-machines from user-created machines that I might want to log into.

[
...
{
"guid": "{d8afdc0e-a636-5b68-89dd-50a9d0b54349}",
"hidden": false,
"name": "docker-desktop-data",
"source": "Windows.Terminal.Wsl"
},
{
"guid": "{570fcb8d-792c-5ac7-ab1f-5cfb2cdfdb99}",
"hidden": false,
"name": "docker-desktop",
"source": "Windows.Terminal.Wsl"
}
],

Proposed technical implementation details (optional)
Issue 1:
If you go into IE 10+ and go to http://getbootstrap.com/examples/jumbotron/ and set it to Browser Mode: IE8 and Documents Mode: IE 8 Standards, the site breaks.

Internet Explorer 8 and 9 are also supported, however, please be aware that some CSS3 properties and HTML5 elements are not fully supported by these browsers

Ok that's fine, but it still shatters the build of your most basic layout.....

Is this expected? is this ok? people and companies still use IE 8.

Issue 2:
Please check the source!

<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
Issue 1:
Eugen Paraschiv opened SPR-8124 and commented

The fact that a method annotated with @ExceptionHandler can only handle exceptions from the same controller is a restrictive issue. The better behavior would be if the annotated method would be able to handle all exceptions of that particular type, regardless of their source.

Issue Links:

#11937 @ResponseBody usage limitations ("duplicates")

#12829 Expose handler method when BindException is thrown from HandlerMethodInvoker ("is duplicated by")

Issue 2:
Gerrit Brehmer opened SPR-7278 and commented

The recommended way to develop REST-style webservices is the usage of @ResponseBody annotation and HttpMessageConverter instead of generating a model and a view (ContentNegotiatingViewResolver etc.).

But there are some limitations, that make things hard to handle:

ExceptionResolver support

@RequestBody is only supported with @ExceptionHandler annotation. I need a centralized exception handling to generate a special error object as the return value. So I must wrote a method in each controller class to delegate to the centralized exception handler. I think the ExceptionResolver-interface is more like an AOP-approach, with no glue code.

ExceptionResolver also have some nice standard implementations like SimpleMappingExceptionResolver, where I can handle the returned HTTP status code very easy. This is also not supported by @ExceptionHandler out of the box

'useNotAcceptableStatusCode' from ContentNegotiatingViewResolver (so for some features, I must also configure view-handling)

simple and easy to use attribute to enable NOT_ACCEPTABLE Http Status code

missing option for enabling global @ResponseBody-like handling instead of annotate all methods (e.g. in AnnotationMethodHandlerAdapter)

I also would recommend the full HttpMessageConverter way (@RequestBody & @ResponseBody) without view handling, so it would be nice, if @ResponseBody has fewer limitations. Additionaly it would be great, if the documentation have some notes about the recommended way for webservice-only REST-style applications (with hints to the limitations above)

Affects: 3.0.2

Issue Links:

#12776 @ExceptionHandler doesn't handle exceptions from other controllers ("is duplicated by")

#12012 Add equivalent of JAX-RS @Produces to Spring MVC

Referenced from: commits e5eceaf

1 votes, 2 watchers
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.3-SNAPSHOT

Operating System version:mac os 10.13.6

Java version: 1.8.0_171

Steps to reproduce this issue

export an dubbo service which has a method with an collection argument

@Override
public String testListName(List<String> list) {
return list.toString();
}

start a telnet invoke or generic call to invoke the service

dubbo>invoke testListName(["a","b",null])

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

result: "[a, b, null]"

Actual Result

What actually happens?

throw an NPE when pojoUtils invoke method #realize0

If there is an exception, please attach the exception trace:

Failed to invoke method testListName, cause: java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.dubbo.common.utils.PojoUtils.realize0(PojoUtils.java:369)
at org.apache.dubbo.common.utils.PojoUtils.realize(PojoUtils.java:205)
at org.apache.dubbo.common.utils.PojoUtils.realize(PojoUtils.java:95)
at org.apache.dubbo.rpc.protocol.dubbo.telnet.InvokeTelnetHandler.telnet(InvokeTelnetHandler.java:125)
at org.apache.dubbo.remoting.telnet.support.TelnetHandlerAdapter.telnet(TelnetHandlerAdapter.java:59)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:205)
at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

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: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Issue 1:
Recently I installed an extension with the command palette. Before that I clicked on Readme and a new chrome window opened up. How about showing the extension Readme inside VSCode without changing focus/app?

Issue 2:
Code says there is an update. when I click update I get an error dialog saying "The setup files are corrupted. Please obtain a new copy of the program" What does that mean in practice?

The net result is that I am unable to update VS Code.

I'll uninstall and reinstall to see if that helps.
Issue 1:
Migrated issue, originally created by Andrey Popp (@andreypopp)

Currently SQLAlchemy doesn't allow to map relationships which have primaryjoin condition like this:

a.c.b_id + 2 == b.c.id

It just can't figure out the direction of relationships even if I supply a.c.b_id + 2 as foreign_keys element.

dupe of

Attachments: sqla_ticket_2373.2.py | sqla_ticket_2373.py

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

even though columns-as-keys is de-emphasized in the documentation for insert, it does work, except for multi-values:

from sqlalchemy import *
from sqlalchemy.dialects import sqlite

t = table('t', column('a'), column('b'))

print t.insert().values([
{"a": 1, "b": 2},
{"a": 2, "b": 2},
{"a": 3, "b": 2}
]).compile(dialect=sqlite.dialect())

print t.insert().values([
{t.c.a: 1, t.c.b: 2},
{t.c.a: 2, t.c.b: 2},
{t.c.a: 3, t.c.b: 2},
]).compile(dialect=sqlite.dialect())

output:

#!

INSERT INTO t (a, b) VALUES (?, ?), (?, ?), (?, ?)
Traceback (most recent call last):
...
File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/crud.py", line 419, in _process_multiparam_default_bind
"a Python-side value or SQL expression is required" % c)
sqlalchemy.exc.CompileError: INSERT value for column t.a is explicitly rendered as a boundparameter in the VALUES clause; a Python-side value or SQL expression is required
Issue 1:
VSCode Version:1.2

OS Version:OSX EI Captain 10.11.1

Steps to Reproduce:

Open integrated Terminal (Cntrl+~)

Open any file using Vim

Change the file and press Esc key , the terminal disappears.

Issue 2:
Integrated terminal master issue: #143

Open question: Currently pressing esc will hide the terminal, this can be a problem for some terminal programs, for example vim. Perhaps this should be configurable?
Issue 1:
Add Borders Around Your Elements

http://bit.ly/2gOUfF3

Issue Description

Code is not passing, even though it's correct

Browser Information

Browser Name, Version: Vivaldi

Operating System: Windows

Desktop

Your Code

<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

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

<h2 class="red-text">CatPhotoApp</h2>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

Issue 2:
Challenge: http://www.freecodecamp.com/challenges/waypoint-use-responsive-design-with-bootstrap-fluid-containers.

The task asks to next all of the HTML code in a

. However, simply adding and closing a

on top of the page marks the tasks as complete: http://screencast.com/t/ao2m2m8Vncx
Issue 1:
Migrated issue, originally created by Anonymous

AFAIK, '+' symbol only needs to be unquoted to separate form values from URL. But why function _parse_rfc1738_args in sqlalchemy/lib/sqlalchemy/engine/url.py uses unquote_plus on password!? This is wrong, I think.

Following lines of code are replacing '+' symbol in password with space causing database connection to eventually fail.

if components'password' is not None:

components'password' =

util.unquote_plus(components'password')

Issue 2:
Migrated issue, originally created by Jairo Llopis (@yajo)

See this union query:

queries = list()

queries.append(sql.select(
columns=[
sql.expression.literal("column_1").label("label_1"),
sql.expression.literal("column_2").label("label_2"),
],
bind=conn.engine
))

queries.append(sql.select(
columns=[
sql.expression.literal("column_1"),
sql.expression.literal("column_2"),
],
bind=conn.engine
))

one = sql.expression.union(*queries)

It fails with this exception:

sqlalchemy.exc.ArgumentError: All selectables passed to CompoundSelect must have identical numbers of columns; select #1 has 2 columns, select #2 has 1

But both have 2 columns, it's just that the 2nd one is not labeled (because it is not needed in union queries, at least with MySQL).

Workaround: labeling all columns in 2nd query.

Notice that real columns, wich automatically seem to get a name, don't expose this weird behavior.
Issue 1:
Describe the issue:

Following code does not raise any exception. It looks like something wrong with == operator.

Reproduce the code example:

import numpy as np
keys = {np.int8: 1}.keys()
assert not np.dtype("int8") in keys
assert np.dtype("int8") in list(keys)

Error message:

No response

NumPy/Python version information:

1.22.3 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]

Context for the issue:

No response

Issue 2:
It seems that np.dtype(...) does not produce consistent hashes and does not equal the hash of the contained dtype. I feel like these should be consistent with each other so that the following will return true:

np.empty(1).dtype in {np.float32, np.float64} # False

Reproducing code example:

In [1]: np.float64 == np.dtype(np.float64)
Out[1]: True

In [2]: np.float64 in {np.dtype(np.float64)}
Out[2]: False

In [3]: hash(np.float64)
Out[3]: 8793996338852

In [4]: hash(np.dtype(np.float64))
Out[4]: 3855163183283070272

hash(np.dtype(np.float64)) returns a different value when called in different runtimes too.

Would this be worth fixing?
Issue 1:
Sorry for the terrible title but I couldn't think of a better one :(

I had developed a site and it was working really well but something happened and it now no longer works. In order to identify the issue I have started again with absolute minimum

`from fastapi import FastAPI

import uvicorn

app = FastAPI()

@app.get("/")

async def read_root():

return {"Hello": "World"}

if name == "main":

uvicorn.run(app, host="127.0.0.1", port=8000)`

Python 3.8.4 -- Is this the problem? Something I did asked me to go from .3 to .4 ???

uvicorn --version

Running uvicorn 0.11.5 with CPython 3.8.3 on Windows

It does not work or return anything, the arrow just spins.

In my more complex site, it not only does not work it folds up into a 'none existent' default endpoint.

Try this site:

https://rdshwys.azurewebsites.net/docs# to demonstrate the issue

Issue 2:
I've come across some strange behavior in automatic interactive API documentation (provided by Swagger UI)

when I get to the page

http://127.0.0.1:8000/docs

The list of routes is displayed with the parameters I have set: prefix, tags. So far, so good.

Problems begin when I click on any of the methods. A new group with the tags=default parameter appears on the page and the endpoint that I clicked is automatically added to it. By successively clicking on all my endpoints I end up with one group with tags=default in which all my endpoints are concentrated. But I can't see their contents, because when I click on any of them I see an infinitely spinning boot.

This behavior is observed on both the local machine and the remote server.

In the main.py file, I use this routing system

app.include_router(text_ocr.router, prefix='/image', tags=['image'])
app.include_router(notes.router, prefix='/notes', tags=['notes'])
app.include_router(product.router, prefix='/product', tags=['product'])

For the purity of the experiment, I commented on these call points and added a standard endpoint from the documentation

# app.include_router(text_ocr.router, prefix='/image', tags=['image'])
# app.include_router(notes.router, prefix='/notes', tags=['notes'])
# app.include_router(product.router, prefix='/product', tags=['product'])
@app.get("/")
async def root():
return {"message": "Hello World"}

But I got the same result.
Issue 1:
Symfony version(s) affected: 4.1.0

Description

When two services with different names are implemented by the same class the compiled container become broken with PHP fatal error.

How to reproduce

Create the following services declaration:

<service id="bar" class="foo" lazy="true"/>
<service id="baz" class="foo" lazy="true"/>

Create empty class definition class foo {}.

Compile the container and run compiled version.

Expected: Normal lazy-loaded operation.

Actual:

Fatal error: Cannot declare class foo_40d7466, because the name is already in use in path-to-container\container-name.php on line 13706

Possible Solution

Pass service id to the hash suffinx generator function or don't duplicate definition of the same proxied class.

Issue 2:
on my controller:

return $this->render('AppBundle:Site:index.html.twig', array(
'form' => $form->createView()
));

on index.html it's show's the form. but on my index.html.twig i have:

{% extends 'AppBundle::layout.html.twig' %}
{{ form_start(form) }}
{{ form_widget(form) }}
{{ form_end(form) }}

any nothing will show. symfony show only on index.html.twig but no also on the twig like load it once. i'm using Symfony 3.1 thanks
Issue 1:
The scripted_metric aggregation is an expert level feature and has its own set of tradeoffs that need to be considered before reaching for it. Due to the fact that it uses scripts it is slow (when compared to other aggregations) especially as the complexity of the scripts increase. It also is not able to support certain functions, for example, you cannot sort a terms aggregation by the scripted_metric aggregation.

I think we should therefore move the scripted_metric aggregation to a plugin (not a module) so when users reach for it, it is a more explicit that this is an expert level aggregation

Issue 2:
Hi,

Sorry for the lousy title, but let me explain the problem I'm having. I'm currently working on a project, and a part of this includes a search engine for addresses, which I have in elasticsearch. What I'm trying to do is use fuzzy_like_this_field queries when a new character is entered in my search bar to generate autocomplete results and try to "guess" which of the (~1 million) addresses the user is typing.

My issue is that I currently have a size limit on my query, as returning all of the results was both unnecessary and expensive, time-wise. My issue, is that I often am not getting the "correct" result unless I return 1000 or more results from the query. For example, if I enter "100 broad" in trying to search for "100 broadway" and I only return 200 results (about the max that I can do without it taking too long), 100 broadway is nowhere to be found, even though all of the returned results have a higher levenshtein distance than the result that I want. I get "100 broadway" as the first result if I return 2000 results from my query, but it takes too long. I can't even filter the results that got returned to bring the correct one to the top, because it's not being returned.

Shouldn't putting a size limit of N on the query return the best N results, not a seemingly random subset of them?

Sorry if this is poorly worded or too vague.