WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
First check

I added a very descriptive title to this issue.

I used the GitHub search to find a similar issue and didn't find it.

I searched the FastAPI documentation, with the integrated search.

I already searched in Google "How to X in FastAPI" and didn't find any information.

I already read and followed all the tutorial in the docs and didn't find an answer.

I already checked if it is not related to FastAPI but to Pydantic.

I already checked if it is not related to FastAPI but to Swagger UI.

I already checked if it is not related to FastAPI but to ReDoc.

After submitting this, I commit to:

Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.

Or, I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.

Implement a Pull Request for a confirmed bug.

Example

Now:

from fastapi import FastAPI
from typing import Dict, List
app = FastAPI()

@app.get("/", response_model=Dict[str, List[str]])
def read_root():
return {"Hello": ["tom", "hesus"]}

The solution you would like

I want to do it through typehints:

from fastapi import FastAPI
from typing import Dict, List
app = FastAPI()

@app.get("/")
def read_root() -> Dict[str, List[str]]:
return {"Hello": ["tom", "hesus"]}

Issue 2:
Hi!

Some users or ormar approached me and asked me why ormar is not included in FastAPI documentation, as they wished they knew about it sooner.

And I answered that I am not sure if including more orms is welcomed as I kind of cannot find a key what and why is included.

I mean I get it why sqlalchemy and encode/databases (most popular sync orm (well since 1.4 also async) and most popular async repo), but why there is Peewee but not Gino or Tortoise?

ormar originates from encode/orm and ormantic (both unmaintained) and build on top of them. The goal was to create a simple ORM that can be used directly (as request and response models) with FastAPI because ormar bases it's data validation on pydantic (each ormar model is also a pydantic one).

I can issue a PR for this but before I start I would like your input @tiangolo.

Do you want to include more orms?

Do you want to include ormar?

Let me know what you think!

And thanks for an awesome job with FastAPI! :)
Issue 1:
Issue repository: https://github.com/ahalimkara/next-routing-issue

Example: https://next-routing-issue-etmpnbuodz.now.sh

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

Expected Behavior

When navigating on Client side and also when directly enter path on browser address bar, it should show Page B content for path /a and Page A for /b path.

Current Behavior

On client side: when navigating by clicking links it shows Page A content for path /a and when I refresh page it shows Page B content for path /a, same for path /b.

Steps to Reproduce (for bugs)

Clone issue repository

yarn dev

Context

Trying to use custom server routing.

Your Environment

Tech
Version

next
4.2.3

node
8.5.0

OS
macOS

browser
Chrome

Question

When using custom server routing, this path-pattern shouldn't be customized in some how? So when serving pages when navigating on client side (http://localhost:3000/_next/[id]/page/a.js) it will use same patterns. Example:

if (page === '/a') {
page = '/b';
} else if (page === '/b') {
page = '/a';
}

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

First let me thank you guys for this wonderful library, I know the effort you are putting here. thanks

Expected Behavior

I'm using react-popper library for tooltips positioning.

it works in dev env, and it should work in prod env using next build command.

Current Behavior

it breaks in build mode when importing the above library

Steps to Reproduce (for bugs)

yarn add react-popper

integrate the sample code from the readme

yarn run build alias for next build

Context

I want to use react-popper for tooltip positioning

Your Environment

Tech
Version

next
5.1.0

node
v8.5.0

OS
macOS High Sierra v10.13.4 (17E199)

browser
Chrome Version 66
Issue 1:
In RHEL 7.2, with python 2.7.5

a = pd.np.random.randn(10, 2)
a.itemset((3, 0), pd.np.NAN)
df = pd.DataFrame(a)
res = df.describe()

Output:

/.../function_base.py:3823: RuntimeWarning: Invalid value encountered in percentile
RuntimeWarning)
0 1
count 8.000000 10.000000
mean -0.406550 -0.220345
std 1.517141 0.791003
min -1.942997 -1.607897
25% NaN -0.683385
50% NaN -0.281060
75% NaN 0.303566
max 2.275532 1.227234

pd.show_versions:

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.5.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-327.18.2.el7.x86_64
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: 0.9.8
Cython: None
numpy: 1.11.0
scipy: 0.17.1
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 1.5
pytz: 2012d
blosc: None
bottleneck: 1.0.0
tables: None
numexpr: 2.5.2
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: None
boto: None
pandas_datareader: None

Issue 2:
Code Sample, a copy-pastable example if possible

import pandas as pd
import numpy
s = pd.Series([1, 2, 3, 4, numpy.nan])
s.quantile(0.5)
nan

Expected Output

I would expect 2.5 as output (as with version 0.17.1).

output of pd.show_versions()

commit: None

python: 2.7.6.final.0

python-bits: 64

OS: Linux

OS-release: 3.13.0-85-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: de_DE.UTF-8

pandas: 0.18.1

nose: None

pip: 1.5.4

setuptools: 2.2

Cython: None

numpy: 1.11.0

scipy: 0.16.1

statsmodels: None

xarray: None

IPython: None

sphinx: None

patsy: None

dateutil: 2.5.3

pytz: 2016.4

blosc: None

bottleneck: None

tables: None

numexpr: None

matplotlib: 1.5.1

openpyxl: 2.3.2

xlrd: 0.9.4

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: None

boto: None

pandas_datareader: None
Issue 1:
I have an electron project that I compile using gulp-tsb in one pass. Some files reference github-electron-renderer.d.ts and others reference github-electron-main.d.ts. Unfortunately, the duplicate definition of ipc causes some errors which takes away from the advantage of having a d.ts to begin with.

Has anyone else seen this issue?

Issue 2:
> tsc
318
319../../node_modules/@types/react/index.d.ts(2818,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'.
320../../node_modules/@types/react/index.d.ts(2853,13): error TS2717: Subsequent property declarations must have the same type. Property 'data' must be of type 'DetailedHTMLProps<DataHTMLAttributes<HTMLDataElement>, HTMLDataElement>', but here has type 'DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>'.
321node_modules/@types/react/index.d.ts(2822,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'.

https://travis-ci.com/alibaba/uform/jobs/221738774
Issue 1:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Webpack crashes when using MinChunkSizePlugin with the following error:

pair[2].integrate(pair[3], "min-size");
^

TypeError: pair[2].integrate is not a function
at Compilation.compilation.plugin (/Users/eldh/Code/marketplace/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js:59:13)
at Compilation.applyPluginsBailResult1 (/Users/eldh/Code/marketplace/node_modules/webpack/node_modules/tapable/lib/Tapable.js:120:27)
at Compilation.seal (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:572:9)
at /Users/eldh/Code/marketplace/node_modules/webpack/lib/Compiler.js:488:16
at /Users/eldh/Code/marketplace/node_modules/webpack/node_modules/tapable/lib/Tapable.js:225:11
at _addModuleChain (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:477:11)
at processModuleDependencies.err (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:448:13)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

Using the following options: new webpack.optimize.MinChunkSizePlugin({minChunkSize: 40000}),

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

As this seems to have been fixed in master (915c150), I'm not going to spend time on creating a repro. Still think it might be good to create this issue for other people running into this.

What is the expected behavior?

No crash.

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

n/a

Issue 2:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

When I try to compile I get: TypeError: pair[2].integrate is not a function at Compilation.compilation.plugin (*/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js:59:13)

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

Compile that worked on 2.2.1

What is the expected behavior?

Compilation success

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

node 7.7.1 on Mac

I do have two configs that compile simultaneously

Client:

new webpack.optimize.MinChunkSizePlugin({

minChunkSize: 10000

}),

Server:

new webpack.optimize.MinChunkSizePlugin({

minChunkSize: Infinity

})

And I do use webpack-hot-server-middleware in case that has anything to do with it.
Issue 1:
We spun up an 800 node cluster today, across 2 zones and we found 27 duplicate pod CIDRs (and duplicate GCE routes) assigned. This obviously caused havoc.

We don't have hard evidence, but we think it is NOT related to multi-zone (we found some dups in the same zone).

@kubernetes/sig-scalability

Issue 2:
We have a lot of params that we use salt or other provisioning to plumb from top-level configs down to flags (kubelet, kube-proxy, controller-manager, etc).

Now that ConfigMap is pretty much in, we should start to spec out how we can use it to carry that same information instead of flags.

@mikedanese @justinsb
Issue 1:
I am currently in the process of writing an extension that uses an output channel that is outputting live logs from an Azure Website from their Kudu APIs.

Currently the only way that the HTTP request will end is when the logstream API service times out after 20 minutes, I would much prefer to have the outputChannel have an event for onHide so that when the user hides/closes the outputChannel that the request stops processing, rather than further messages being pushed into it when it is not visible & that the user will need to re-invoke the extension to get new log messages

Issue 2:
We are using chokidar for file watching. Chokidar is known for performing bad over large folders (see paulmillr/chokidar#410). To investigate:

can we consume a newer version of chokidar with the scalability issue fixed

can we change our watching strategy to only watch what we need instead of always watching root

can we switch to another watching library that is more efficient

Workaround:

Find the large folders in your workspace and add them under the files.watcherExclude setting
Issue 1:
This constraint was thought-out to be used directly on a entity. But in several cases, i used it without a doctrine entity, for example when the form has fields for diferents entities.

In this case i want to have the way to specify not only the field also the entity that belongs the field.

I think that the change will be easy, so i will send a PR soon.

I think that the PR will be on 2.8 it is?

Regards!

Issue 2:
Q
A

Bug report?
yes/no

Feature request?
no

BC Break report?
yes/no

RFC?
yes

Symfony version
3.2.0

I wonder how this should work for very common example using DTOs for forms. I have applied validation to my DTO

AppBundle\Command\Register:
constraints:
- Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity:
fields: email
entityClass: AppBundle\Entity\User
em: default

With this configuration I get error: "The class 'AppBundle\Command\Register' was not found in the chain configured namespaces AppBundle\Entity"

The flow currently works like this I set em for my entity: AppBundle\Entity\User but in validator we have getting current class metadata for main entity (in my example AppBundle\Command\Register this is not an entity) $em->getClassMetadata(get_class($entity)); so this is why it fails.

# Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator

if ($constraint->em) {
$em = $this->registry->getManager($constraint->em);

if (!$em) {
throw new ConstraintDefinitionException(sprintf('Object manager "%s" does not exist.', $constraint->em));
}
} else {
$em = $this->registry->getManagerForClass(get_class($entity));

if (!$em) {
throw new ConstraintDefinitionException(sprintf('Unable to find the object manager associated with an entity of class "%s".', get_class($entity)));
}
}

$class = $em->getClassMetadata(get_class($entity));
/* @var $class \Doctrine\Common\Persistence\Mapping\ClassMetadata */

IMHO if we specify entityClass we should expect that everything will concern this entityClass. Another example of failure is when two entities: entity1 and entity2 belong to different entity managers. If this is an expected behaviour (IMHO it should work like this) we should at least add this information to documentation ?
Issue 1:
Using Flutter's google sign_in

But seeing the following message when I use this statement to sign in a user

_googleSignIn.signIn();

E/flutter ( 6491): MissingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in)

Any help would be appreciated.

Issue 2:
There is this bug when sometimes flutter loads some code/assets from previous builds.

So basically you are developing, making build 1, do some changes in the code, assets or yaml configs, make a new build 2 and run it. Then you discover that the resulting app from build 2 contains some artifacts of the build 1.

Hard to track and reproduce this one.
Issue 1:
Feature request

Improve typings for the router.

Describe the solution you'd like

A couple examples:

useRouter seems to have an any return type (because of this line)

import * as React from 'react'
import { BaseRouter } from './router/router'

export const RouterContext = React.createContext<BaseRouter | null>(null)

useRouter should be generic, as well. This involves propagating generics down through to BaseRouter<P> (and finally update query to query: ParsedUrlQuery & P). This is to allow you to specific custom query (URL params, etc).

Regression: lost WithRouterProps type export from next/router

Improved WithRouterProps typings via generics. See here.

(still finding more)

Describe alternatives you've considered

The only "alternatives" are rolling your own types and asserting e.g. router.query as MyQueryType etc.

Issue 2:
Bug report

Describe the bug

After upgrading to next canary (future v9) from 8.1.1, I got a few TypeScript errors when calling Router.push(url) and Router.replace(url) with object-like URLs.

This seems like a regression in built-in typings compared to the third-party ones (@types/*). Related to #6644.

To Reproduce

import { Router, useRouter } from "next/router";

const router: Router = useRouter();

// 👍
router.push("/about");
router.replace("/about");

// ❌ Argument of type '{ pathname: string; }' is not assignable to parameter of type 'string'.ts(2345)
router.push({ pathname: "/about" });
router.replace({ pathname: "/about" });

Expected behavior

I expected url-like objects to be still acceptable. Not sure if new typings are simply incomplete or objects are arguments are being deprecated.

https://github.com/zeit/next.js/blob/cc497568b4b226498069c9a7adbdc03e689b8526/packages/next-server/lib/router/router.ts#L208-L226

Typings in @types/next-server:

Definition of UrlLike type

Usage in push() and replace()

There exists a local Url type in next/client, which seems like what's needed. Should it be moved to next-server/router?

https://github.com/zeit/next.js/blob/b60985b2be964dcac436d025a1943ded6454deaf/packages/next/client/link.tsx#L24

It's already used in <Link /> prop types.

One more thing: useRouter() returns any because of how RouterContext is typed 🤔

https://github.com/zeit/next.js/blob/cc497568b4b226498069c9a7adbdc03e689b8526/packages/next/client/router.ts#L125-L127

https://github.com/zeit/next.js/blob/b1fdffec75a7a7ce24693e4e1974714ac7733551/packages/next-server/lib/router-context.ts#L3

System information

Version of Next.js: 8.1.1-canary.69
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/376 on 2007-02-20 by @pv, assigned to unknown.

sandbox.delaunay.Triangulation appears to crash if two data points

are machine-epsilon close to each other.

On scipy.sandbox.delaunay shipped with Scipy 0.5.2:

from scipy.sandbox.delaunay import Triangulation
import scipy as S

x = S.array([7, 8, 9, 7, 8, 9], dtype=S.float64)
y = S.array([0, 0, 0, 1, 1, 1], dtype=S.float64)

xp = S.r_[x, x + 1e-16] # xp differs from x by epsilon
yp = S.r_[y, y]

print "%.20g %.20g" % (x[-1], xp[-1])

def test_1():
tri = Triangulation(x, y)
print "Test 1 OK"

def test_2():
tri = Triangulation(xp, yp)
print "Test 2 OK"

test_1()
test_2()

crashes on test_2 with

Test 1 OK
*** glibc detected *** python: corrupted double-linked list: 0x081fa6d8 ***

Traceback attached.

Issue 2:
If one tries to save key with the underscore prefix, mat-file will not contain that key. Mat-file has not ASCII string for the key in hex editor. Try this code

In [1]: savemat('test.mat', {'_key': 0})
In [2]: whosmat('test.mat')
Out[2]: []

So the issue is in savemat method of scipy.io and I probably have solution.

Is there any reason to ignore key with the underscore prefix?
Issue 1:
As per https://travis-ci.org/druid-io/druid/jobs/133474341

testRunOnNothing[buildV9Directly = true](io.druid.indexing.kafka.KafkaIndexTaskTest) Time elapsed: 50.725 sec <<< ERROR!
java.lang.NullPointerException: null
at io.druid.indexing.kafka.KafkaIndexTaskTest.tearDown(KafkaIndexTaskTest.java:274)

Issue 2:
As per https://travis-ci.org/druid-io/druid/jobs/133474341

testRunOnNothing[buildV9Directly = true](io.druid.indexing.kafka.KafkaIndexTaskTest) Time elapsed: 50.725 sec <<< ERROR!
org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 30000
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1223)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:155)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:129)
at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:89)
at kafka.utils.ZkUtils$.apply(ZkUtils.scala:71)
at kafka.server.KafkaServer.initZk(KafkaServer.scala:278)
at kafka.server.KafkaServer.startup(KafkaServer.scala:168)
at io.druid.indexing.kafka.test.TestBroker.start(TestBroker.java:73)
at io.druid.indexing.kafka.KafkaIndexTaskTest.setUp(KafkaIndexTaskTest.java:248)
Issue 1:
Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version devel +6c5352f 2016-04-08 18:40:11 +0000 linux/amd64

What operating system and processor architecture are you using (go env)?

What did you do?

type C struct { a, b, c, d, e uint64 }

func New() *C { return &C{} }

What did you expect to see?

0x001e 00030 (blah.go:8) CALL runtime.newobject(SB)
0x0023 00035 (blah.go:8) MOVQ 8(SP), CX
0x0028 00040 (blah.go:8) MOVQ CX, "".~r0+24(FP)

What did you see instead?

0x001e 00030 (blah.go:8) CALL runtime.newobject(SB)
0x0023 00035 (blah.go:8) MOVQ 8(SP), CX
0x0028 00040 (blah.go:8) MOVQ $0, (CX)
0x002f 00047 (blah.go:8) MOVQ $0, 8(CX)
0x0037 00055 (blah.go:8) MOVQ $0, 16(CX)
0x003f 00063 (blah.go:8) MOVQ $0, 24(CX)
0x0047 00071 (blah.go:8) MOVQ $0, 32(CX)
0x004f 00079 (blah.go:8) MOVQ CX, "".~r0+24(FP)

runtime.newobject() already calls memclr as far as I can tell, shouldn't that be enough or am I misreading it?

Issue 2:
var sink *[10]byte
func f() {
var x [10]byte
sink = &x
}

This function used to compile to something like:

p = mallocgc(...)
sink = p

since the liveness fix (https://go-review.googlesource.com/c/23393/), it now compiles to:

p = mallocgc(...)
...code to zero *p...
sink = p

Figure out why the redundant zeroing has been added and then get rid of it.

See #15902 .
Issue 1:
Is there any options to use podmaster with an external etcd cluster with SSL/TLS ?

I see the actual usage:

Usage of /podmaster:
--dest-file="": The destination file to copy to.
--etcd-servers="": The comma-seprated list of etcd servers to use
--key="": The key to use for the lock
--log_flush_frequency=5s: Maximum number of seconds between log flushes
--sleep=5s: The length of time to sleep between checking the lock.
--source-file="": The source file to copy from.
--ttl-secs=30: The time to live for the lock.
--whoami="": The name to use for the reservation. If empty use os.Hostname

Issue 2:
All components that connect to etcd directly should support a secured etcd deployment. Podmaster only allows passing in the list of servers... it should also take a etcd client config file (like the API server)

https://github.com/kubernetes/contrib/blob/36816275fd53c7a2ef59650c80e2820fe3595584/pod-master/podmaster.go#L140
Issue 1:
when i search for youtube power toys search is not showing me any results that's why i want it to search internet as well

Issue 2:
This is the master tracking item for launcher's plugins suggestions.

Plugin improvements

Bug #
Title
PR #

#3367
(Calc) Support comma as decimal-delimiter in the calculator

#3272
(Calc) Hexadecimal calculator

#3627
(Calc) Convertion functions (bin2dec,hex2dec,oct2dec) does not work in PowerToys Run

#3764
(Calc) PowerLauncher calculator should be customizable

#3429
(Shell) Delete commands from PowerToys Run history

#3440
(Shell) Configurable shell executable for > commands

#3834
(Shell) Give info on failure when running Shell commands

#3763
(Folder) PowerToys Run to remember last executed commands

Additional plugins

Bug #
Title

#3278
Add support to Everything to enhance search experience

#3245
Be able to launch a web search

#3243
Power Toys Run to open URI if enter a domain

#3226
add/integrate more wox plugins

#3351
Support Alfred Workflows in PowerToys Run

#3310
Add ability to preview files

#3309
Add dictionary

#2408
Ability to execute system/OS commands like shutdown

#3587
Please add Pinyin support

#3897
Plugin for WinGet

#3386
Add control panel applets to Powertoys run
Issue 1:
Dropdowns in the navbar in BS3 RC2 are dropping down and showing correctly on phone, but selecting the links only closes the dropdown and doesn't follow the link. Works fine on desktop - link is followed. RC1 worked correctly although navbar-inverse didn't display inverses.

Issue 2:
When I changed from 3.0.0.rc1 to 3.0.0.rc2, the links in my navbar in a dropdown stopped working. In desktop it works ok.

I am using dolphin browser HD Version 7.2.2 on a LG Optimus one P500.

This is the whole navbar:

<div class="navbar navbar-fixed-top">
<div class="container">
<a class="navbar-brand" href="/">Título</a>
<ul class="nav navbar-nav pull-right">
<li><a href="#"><i class="icon-question-sign"></i> Ayuda</a></li>
<li class="dropdown">
<a id="menu-usuario" href="/usuarios/520aef8c4f1e6a6816000002" class="dropdown-toggle" data-toggle="dropdown">
Pepito
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="/usuarios/520aef8c4f1e6a6816000002">Ver mi perfil</a></li>
<li><a href="/usuarios/520aef8c4f1e6a6816000002/edit">Editar mi perfil</a></li>
<li><a href="/usuarios/520aef8c4f1e6a6816000002/modificar_password">Modificar mi contraseña</a></li>
<li class="divider"></li>
<li><a href="/usuarios">Administrar usuarios</a></li>
<li class="divider"></li>
<li><a href="/sesiones?_method=DELETE">Cerrar sesión</a></li>
</ul>
</li>
</ul>
</div>
</div>