WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Obligatory "not sure if this is the right place" disclaimer.

The example code links in the tutorial documentation are missing here:

https://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html

If you click Source Code:

https://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html

you get a 404 error

Suggested solutions: Fix the links or enable prompt folding, or both.

Also suggest changing all "Source Code" links to "Example Code". Source code should refer to the actual module code.

I looked at some other Tutorial pages, and they have similar issues. Some with no links at all, most with no prompt folding. I think there needs to be uniformity on the formatting. Either all with Source Code links, all without links (not my favorite idea), prompt folding should be enabled site wide.

I wonder if prompt folding would be an issue on some browsers or if javascript is restricted by security policies. In that case having example code links

Related issues #3250 #7369

Issue 2:
I wanted to consult the source code of interpolate univariate at the following link :

http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.UnivariateSpline.html#scipy.interpolate.UnivariateSpline

But the source code gave me a dead link :

http://docs.scipy.org/doc/scipy/reference/generated/scipy-interpolate-UnivariateSpline-1.py
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.

Commit to Help

I commit to help with one of those options 👆

Example Code

# see wanted code

Description

The http header for the different authentication protocols is currently hardcoded to "Authorization", which on itself is accurate according to the standards ((ex. MDN definition)[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization]). There are, however, reasons in practice you would want to have a different, custom named header.

For example, in my case where the FastAPI is hosted behind a proxy which already requires the Authorization header to be set. I would like it to be set in the FastAPI to something else (e.g. like "x-bearer-key" or "foo").

Is it possible to define a custom http header name for authorization, instead of the default "Authorization" header name?

Wanted Solution

example code of what would be great

auth_scheme = HTTPBearer(authorization_header='MY-OWN-KEY-INSTEAD-OF-AUTHORIZATION')

Wanted Code

# example code of what would be great
auth_scheme = HTTPBearer(authorization_header='MY-OWN-KEY-INSTEAD-OF-AUTHORIZATION')

Alternatives

No response

Operating System

Linux, Windows, macOS

Operating System Details

No response

FastAPI Version

0.74

Python Version

3.10.x

Additional Context

No response

Issue 2:
actually there is no issue i contacted mister Sebastián to propose for him an idea about making a CLI for the framework to create a project structure and managing our projects so that we developers have start point that facilitate the hard work of making an architecture to the project therefore stays flexible for expanding the project and adding more features and automate the boring stuff like creating CRUD from the ORM that will make the project 1000% time faster than before .

locking dependencies by creating virtual environment add README file for documentation the project etc...

i really hope some one help me making this become true because i dont know how to make a good cli but i managed to create something for tornado i called it " cycloneCLI " for creating my own projects then i found something called torn for tornado framework the problem is its a very very good structure and a starter project template that no one uses it it may be because the framework is starting to die but it helped me a lot to understand my needs better and work on different parts of my project with more efficiency and good quality code so why we dont make fastapi better . and thank you

.

"med amine fouzai aka John constantine"
Issue 1:
Transferred from http://code.opencv.org/issues/4192

|| Mikulas Krupicka on 2015-02-12 11:51
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty:
|| PR:
|| Platform: None / None

Get accumulator out of hough transform

Hi,

is there option (or can be) to get the accumulator image out of Hough Transform function? It could be very helpful because I would be able to tweak the result of method according to my apriory knowledge before running any maxloc function to it.

Thanks.

History

Issue 2:
Transferred from http://code.opencv.org/issues/1409

|| ivansorokin - on 2011-10-07 15:02
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty: None
|| PR: None
|| Platform: None / None

ability to get Hough accumulator value

Currently it is not possible to get Hough accumulator value (after stage 1 in icvHoughLinesStandard).

http://stackoverflow.com/questions/3265987/opencv-get-hough-accumulator-value

I also need this value. Currently I've just copy-paste this part of function from OpenCV, but I think it can be extracted in separate function.

History

Alexander Shishkov on 2012-02-12 20:26

- Description changed from Currently it is not possible to get Hough
accumulator value (after stage 1 in... to Currently it is not
possible to get Hough accumulator value (after stage 1 in... More
Issue 1:
Bug report

What is the current behavior?

+ webpack@4.8.1
added 315 packages from 275 contributors in 34.396s
[!] 1 vulnerability found [3518 packages audited]
Severity: 1 low
Run `npm audit` for more detail

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

npm audit security report
Manual Review
Some vulnerabilities require your attention to resolve

Visit https://go.npm.me/audit-guide for additional guidance

low Prototype Pollution

Package deep-extend

Dependency of webpack [dev]

Path webpack > watchpack > chokidar > fsevents > node-pre-gyp >
rc > deep-extend

More info https://nodesecurity.io/advisories/612

low Prototype Pollution

Package deep-extend

Dependency of webpack-dev-server [dev]

Path webpack-dev-server > chokidar > fsevents > node-pre-gyp > rc
> deep-extend

More info https://nodesecurity.io/advisories/612

[!] 2 vulnerabilities found - Packages audited: 16105 (15956 dev, 194 optional)
Severity: 2 low

What is the expected behavior?

i do not know ... sorry~~~

Other relevant information:

webpack version: 4.8.1

Node.js version: 9.11.1

Operating System: win10

Additional tools: None

Issue 2:
Bug report

What is the current behavior?

npm i webpack
+ webpack@4.8.1
added 315 packages from 275 contributors in 34.396s
[!] 1 vulnerability found [3518 packages audited]
Severity: 1 low
Run `npm audit` for more detail
npm audit

https://nodesecurity.io/advisories/612

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

npm i webpack

What is the expected behavior?

There should be no errors. Temporarily to correct it is possible so(decision at the end of the document):

https://github.com/isopen/ngx-cable/blob/master/out_dir/native_build.help.md

I think you need to fix the package.json or package.json in dependencies.

Then test the build and publish version 4.8.x. Very much I expect :)

Other relevant information:

webpack version: 4.8.1, 4.4.0, 3.0.0

Node.js version: v8.9.4

Operating System: debian 9.3
Issue 1:
Description

A guide that describes how to use all the operators for Postgres (https://github.com/apache/airflow/tree/master/airflow/providers/postgres) would be useful.

Other guides are available:

https://airflow.readthedocs.io/en/latest/howto/operator/index.html

Source code for those guides are at:

https://github.com/apache/airflow/tree/master/docs/howto/operator

Are you wondering how to start contributing to this project? Start by reading our contributor guide

Best regards,

Kaxil﻿

Issue 2:
Description

A guide that describes how to use all the operators for Postgres (https://github.com/apache/airflow/tree/master/airflow/providers/postgres) would be useful.

Other guides are available:

https://airflow.readthedocs.io/en/latest/howto/operator/index.html

Source code for those guides are at:

https://github.com/apache/airflow/tree/master/docs/howto/operator

Are you wondering how to start contributing to this project? Start by reading our contributor guide

Best regards,

Kaxil﻿
Issue 1:
Reproducing code example:

In [118]: import numpy as np

In [119]: a = np.random.random((5,6,7))

In [120]: a[0, :, [1,2]].shape
Out[120]: (2, 6)

one would expect shape (6, 2)...

Seems to occur only if the first index is set to a unique index and the last one to an iterable of indices

NumPy/Python version information:

In [121]: import sys, numpy; print(numpy.__version__, sys.version)
1.18.1 3.7.5 (default, Oct 25 2019, 15:51:11)
[GCC 7.3.0]

Issue 2:
Please see the code.

Reproducing code example:

import numpy as np
x = np.random.rand(4, 5, 4)
x[0, :, [1,2]].shape # output (2, 5) # my expectation is (5, 2)
x[0][:, [1,2]].shape # outout (5, 2)

Numpy/Python version information:

numpy version: 1.19.1,

sys.version: 3.7.0 (default, Oct 9 2018, 10:31:47) \n[GCC 7.3.0]
Issue 1:
When trying to select multiple lines that all have a particular string with cmd+D and move them up or down within the document, Atom will select the lines properly, but when trying to move them it de-selects the additional lines and only moves the originally selected line. If you select multiple lines with the mouse or with Cmd+L it works just fine, and It still deletes multiple lines properly when selected with cmd+D - it's just moving lines that fails. I've taken a screen capture of the bug to illustrate what happens, which is viewable here: https://slack-files.com/T024TD89T-F075EUW8K-1e3ac80187

Issue 2:
After making multiple selections, "Move Line Up" (Ctrl Cmd Up) and "Move Line Down" (Ctrl Cmd Down) works only on the last selected line, instead it should move all the lines.
Issue 1:
Environment info

transformers version:

Platform:

Python version:

PyTorch version (GPU?):

Tensorflow version (GPU?):

Using GPU in script?:

Using distributed or parallel set-up in script?:

Who can help

Information

Model I am using (Bert, XLNet ...):

The problem arises when using:

the official example scripts: (give details below)

my own modified scripts: (give details below)

The tasks I am working on is:

an official GLUE/SQUaD task: (give the name)

my own task or dataset: (give details below)

To reproduce

Steps to reproduce the behavior:

Expected behavior

I want to down model from huggingface.cn, but I can't find the models to down.

But I found the model had been download many times in noverber 9. Something happened I didn't know about? And what should I do to get models that I need?

Issue 2:
Feature request

Adding a filter of some sorts in the generate function to prevent x number of words from outside of the input from appearing in a generated text.

This could work in a number of ways. It could be a filter on the number of out of source words appearing in the generated text (e.g 2 would mean that a maximum of 2 words could be present in the generated text but not in the source) or it could be some sort of damping variable (0 to 1) that's applied to the probabilities of each generated word therefore reducing the likelihood that out of source words would appear in the generated text. If the probability was set to 0 then the generation task would be purely extractive and have no risk of hallucinations.

Motivation

To control the risk of hallucinations in the generated text.

Your contribution

Happy to work on a PR for this if I just get a bit of guidance on the best place to start.
Issue 1:
📝 Provide a description of the new feature

Basically when you want a virtual desktop you click WIN+CTRL+D and you can keep creating it. Now when you hit CTRL+3 it'll go to Virtual Desktop 3.

What is the expected behavior of the proposed feature? What is the scenario this would be used?

Currently you have option to CTRL+WIN+Arrow keys to go left or right between the Virtual Desktop but you can't jump to say from Desktop 5 to Desktop 2. You can also use WIN+TAB and use the mouse to click the desired Desktop or Click the TASK View to view Virtual Desktops and then click. Too long of a process, where as with pressing CTRL+2 you should be able to jump from Desktop 5 or from any other, of course if you are already on Desktop 2, no action.

I found something but it's not stable or it works sometimes and doesn't once I restart the PC, I've even tried to add the program as service but no success. Will include the file that explains the feature and the program AutoHotKeys creates but not stable, The file type was AHK but saved it as TXT.

I enjoy the Power Toy very much and love the feature FancyZone, as it helps with multiple windows and adding the shortcut for switching between multiple desktop would be icing on the cake. This could aid others in multi tasking and keeping all organized and focused since multi tasks are spread over multi desktops.

Thanks,

Kam

swithcdestp.txt

.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
Desktops are already numbered, would be useful to have some sort of indicator of the current desktop number in the taskbar and to add a shortcut to jump between desktops, something like WinKey + Ctrl + 1..9 to go to desktop 1... all the way to 9
Issue 1:
I tried to search before but I didn't find this issue. Sorry if it's a dup

Steps to reproduce:

http://getbootstrap.com/components/#navbar

Expand the default navbar

Scroll the navbar down to the latest dropdown element

Expand the dropdown

Try to scroll navbar to select "Something else there"

The navbar will not scroll, the whole page will

I'm using chrome 29 beta and opera 16 beta. Firefox mobile is not affected

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>
Issue 1:
xref #14873 (boolean casts)

xref #14849 (datetime)

A small, complete example of the issue

import pandas as pd

def predictions(tool):
out = pd.Series(index=['p1', 'p2', 'useTime'], dtype=object)
if 'step1' in list(tool.State):
out['p1'] = str(tool[tool.State == 'step1'].Machine.values[0])
if 'step2' in list(tool.State):
out['p2'] = str(tool[tool.State == 'step2'].Machine.values[0])
out['useTime'] = str(tool[tool.State == 'step2'].oTime.values[0])
return out

df1 = pd.DataFrame({'Key': ['B', 'B', 'A', 'A'],
'State': ['step1', 'step2', 'step1', 'step2'],
'oTime': ['', '2016-09-19 05:24:33', '', '2016-09-19 23:59:04'],
'Machine': ['23', '36L', '36R', '36R']})

df2 = df1.copy()
df2.oTime = pd.to_datetime(df2.oTime)

pred1 = df1.groupby('Key').apply(predictions)
pred2 = df2.groupby('Key').apply(predictions)

print(pred1)
print(pred2)

Actual Output:

p1 p2 useTime
Key
A 36R 36R 2016-09-19 23:59:04
B 23 36L 2016-09-19 05:24:33
p1 p2 useTime
Key
A NaN 36R 2016-09-19T23:59:04.000000000
B 23.0 36L 2016-09-19T05:24:33.000000000

Expected Output

pred1 and pred2 should have the same values in column p1.

pred1 is correct whereas pred2 is changing type to float64.

Output of pd.show_versions()

## INSTALLED VERSIONS

commit: None

python: 3.5.2.final.0

python-bits: 64

OS: Darwin

OS-release: 14.5.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: en_US.UTF-8

LANG: en_US.UTF-8

LOCALE: en_US.UTF-8

pandas: 0.19.0

nose: None

pip: 8.1.2

setuptools: 27.2.0

Cython: None

numpy: 1.11.2

scipy: 0.18.1

statsmodels: None

xarray: None

IPython: 5.1.0

sphinx: None

patsy: None

dateutil: 2.5.3

pytz: 2016.7

blosc: None

bottleneck: None

tables: 3.2.3.1

numexpr: 2.6.1

matplotlib: 1.5.3

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: 1.1.0

pymysql: None

psycopg2: None

jinja2: 2.8

boto: None

pandas_datareader: None

Issue 2:
I admit I haven't looked at the code so there may be reasons for this, but I've found myself in the need of squeezing out duplicates from a Series but keeping the results as a Series.

Series.unique() however returns an array, so in my code I have to construct a Series twice:

series = pandas.Series([1,2,3,3])
series = pandas.Series(series.unique())

Is this by design? If so, feel free to close this bug.
Issue 1:
Failed: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gce-etcd3/204/

Run so broken it didn't make JUnit output!

Issue 2:
Failed: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gce-etcd3/1638/

Run so broken it didn't make JUnit output!
Issue 1:
Using the Dates modules, when formatting an existing date, if the "year" field is only two digits long, it parses out missing the centuries. For example:

> Date("01/01/19","mm/dd/yy")
0019-01-01

Issue 2:
Currently, a yy in the DateFormat string parses a two digit year string like "08" as the year 8. In Python and Posix, they instead map values 69–99 to 1969–1999, and values 0–68 to 2000–2068. I'm not sure that is a great default either, but it certainly seems more useful in general than the current julia implementation.

I'm opening this issue mainly to brainstorm ideas how we could make this use case better.

Maybe one option could be to add some new options to the DateFormat string that would stand for "POSIX 2 digit year parsing", i.e. a way to explicitly opt into that behavior.

Another idea might be to add some syntax to the DateFormat string that would even allow one specify the century offset as part of the format string...
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.0

Operating System version: xxx

Java version: 1.8

Steps to reproduce this issue

xxx

xxx

xxx

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

Expected Result

The result I expect is that the attachment obtained by the provider after the hession protocol is case sensitive.

** 是否可以将attachment 的HashMap 改成 CaseInsensitiveMap? **

Actual Result

What actually happens?

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

Http11InputBuffer:

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.

1，创建map或者list时传入原始数据的长度，避免数据量大时进行扩容

例如

result = new HashMap(size);

2，避免无意义的方法调用

例如：

Map<Object, Object> map;
// when return type is not the subclass of return type from the signature and not an interface
if (!type.isInterface() && !type.isAssignableFrom(pojo.getClass())) {
try {
map = (Map<Object, Object>) type.newInstance();
Map<Object, Object> mapPojo = (Map<Object, Object>) pojo;
map.putAll(mapPojo);
if (GENERIC_WITH_CLZ) {
map.remove("class");
}
} catch (Exception e) {
//ignore error
map = (Map<Object, Object>) pojo;
}
} else {
map = (Map<Object, Object>) pojo;
}

根据逻辑，pojo本身是一个map，又创建了一个新map来存放，无存在意义

3，其他一些优化

例如某个pojo的method取到之后，不需要再取filed，没有实际意义。
Issue 1:
.babelrc

{

"presets": [

[

"@babel/preset-env",

{

"modules": false,

"targets": {

"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]

}

}

]

],

"plugins": [

"@babel/plugin-proposal-object-rest-spread",

"@babel/plugin-transform-runtime",

"@babel/plugin-syntax-dynamic-import",

"@babel/plugin-syntax-import-meta",

[

"@babel/plugin-proposal-decorators",

{

"legacy": true

}

],

"@babel/plugin-proposal-class-properties",

"@babel/plugin-proposal-json-strings",

"@babel/plugin-proposal-function-sent",

"@babel/plugin-proposal-export-namespace-from",

"@babel/plugin-proposal-numeric-separator",

"@babel/plugin-proposal-throw-expressions",

"@babel/plugin-transform-arrow-functions",

"@babel/plugin-transform-block-scoping",

"@babel/plugin-transform-classes"

]

}

webpack

image

image

Issue 2:
Issue originally made by @guybedford

Description

It would be nice to add a custom options whitelist and blacklist to the runtime transformer something like:

plugins: [['transform-runtime', { exclude: ['Promise', 'Array.*', 'Object.defineProperty'] }]]

Or an opt-in-only whitelist:

plugins: [['transform-runtime', { include: ['Object.assign', 'String.*', 'Math.*'] }]]

The specific use case that came up for me now was excluding the Promise polyfill in particular since SystemJS by default has a polyfill present already.

The nice thing is this would enable the creation of runtime transformer presets which can be based on various engine support baselines.