WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
When you have a prepended or appended like this below on a form-inline it brokes.

<div class="input-prepend">
<span class="add-on">@</span>
<input class="span2" id="prependedInput" size="16" type="text">
</div>

Issue 2:
If use "input-append" then "help-inline" not center vertical

<form method="post" class="form-horizontal">
<fieldset>
<div class="control-group">
<label class="control-label" for="appendedInput">Appended text</label>
<div class="controls">
<div class="input-append">
<input type="text" class="medium" id="appendedInput" name="appendedInput" size="16">
<span class="add-on">%</span><span class="help-inline">not center</span>
</div>
<span class="help-block">Here's some help text</span>
</div>
</div>
</fieldset>
</form>

Opera
Issue 1:
I just think it is better if PowerToys Run can also search over internet. For example: we type github and we will be suggested to open github.com.

Issue 2:
Summary of the new feature/enhancement

I want to be able to start a web search from the launcher.

Ideally, I'd type bing power toys and it would navigate to https://www.bing.com/search?q=power+toys in my default browser.

google power toys would go to the equivalent.

The ability to specify the keyword/search engine to use and the domain it goes to would also be necessary. Not only would this enable supporting other search engines, but it would also allow for people to adjust for different TLD versions of search engines.

This would be similar to functionality that used to be available in Enso launcher.

Proposed technical implementation details (optional)

This would presumably require some settings for determining which words are identified as initiating the search and the URL to submit the query to.

This could also be the base for similar functionality where a keyword could launch an app and pass other values as command-line arguments. Without additional arguments, this could also serve as a way to create aliases for apps so they could be launched with a small number of keystrokes.

crutkas: possible solution to this issue in #10619. It defers to default browser + user's search engine. Lets PT Run be generic
Issue 1:
I was not able to find in the current documentation but was wondering if there are plans to have Vue supporting the es6 class syntax like below??:

class MyComp extends Vue {
...
}

I know this exists but its for .vue files and its not part of vuejs

https://github.com/vuejs/vue-class-component

Issue 2:
Hi there,

I've searched around and haven't find it so far so I hope it's no duplicate.

Playing around with the watcher of VueJs I've found a small "ergonomic" issue.

When I want to watch a property of a object a way to logically do this could be this:

var App = new Vue({
data: {
object: {
key: 'value'
}
},
watch: {
object: {
key: function() {
console.log('watched');
}
}
}
});

But that does not work, instead I have to do it like this:

var App = new Vue({
data: {
object: {
key: 'value'
}
},
watch: {
'object.key': function() {
console.log('watched');
}
}
});

Is this something to consider? I personally like the way I showed in the first example better.

Thank you.
Issue 1:
Annotations using a bbox boxstyle of "round" have different (incorrect?) clipping behavior compared to a square boxstyle.

As an example, note that with matplotlib 1.4.0, the connector arrow extends inside the round box, while it is clipped for the square boxstyle. With earlier versions, both have the same clipping behavior.

import matplotlib.pyplot as plt
import matplotlib

def main():
fig, ax = plt.subplots()
ax.set(title='Matplotlib {}'.format(matplotlib.__version__))
annotate(ax, 'Round')
annotate(ax, 'Square')
plt.show()

def annotate(ax, text):
bbox = dict(fc='none')
x, y = 0.1, 0.1

if text == 'Round':
bbox['boxstyle'] = 'round'
y = 0.5

ax.annotate(text, xy=(x, y), xytext=(50, 50), size=20,
xycoords='data', textcoords='offset points',
bbox=bbox, arrowprops=dict(arrowstyle='->'))

main()

The problem persists up to and including the current HEAD, but newer versions also have the issue described in #4139 The two issues don't appear to be directly related.

Issue 2:
Sorry, here's another one without a simplified test case. I will try and get to that tomorrow. For this, you will need matplotlib 1.4.2 and the development version of ObsPy. Then run obspy3-runtests -d obspy.station.tests.test_station.StationTest.test_response_plot. Test case is below.

With mpl 1.3.1, the plot is as so:

With mpl 1.4.2 (and master), the plot is as so:

You can see that the arrows are thinner and shifted a bit.

I believe the relevant bit of code is the following, but I will try to simplify it later:

trans_above = blended_transform_factory(ax1.transData,
ax1.transAxes)
trans_right = blended_transform_factory(ax1.transAxes,
ax1.transData)
arrowprops = dict(
arrowstyle="wedge,tail_width=1.4,shrink_factor=0.8", fc=color)
bbox = dict(boxstyle="round", fc="w")
ax1.annotate("%.1g" % self.instrument_sensitivity.frequency,
(self.instrument_sensitivity.frequency, 1.0),
xytext=(self.instrument_sensitivity.frequency, 1.1),
xycoords=trans_above, textcoords=trans_above,
ha="center", va="bottom",
arrowprops=arrowprops, bbox=bbox)
ax1.annotate("%.1e" % self.instrument_sensitivity.value,
(1.0, self.instrument_sensitivity.value),
xytext=(1.05, self.instrument_sensitivity.value),
xycoords=trans_right, textcoords=trans_right,
ha="left", va="center",
arrowprops=arrowprops, bbox=bbox)

I did a bisect and the bad commit was:

3363b125715724ad89d4b33cbddb23e31e7277d5 is the first bad commit
commit 3363b125715724ad89d4b33cbddb23e31e7277d5
Author: Thomas A Caswell <tcaswell@gmail.com>
Date: Tue Aug 27 17:07:58 2013 -0500

re factored `_AnnoationBase` to push keeping track of there the
secondary object is to the sub-classes.

Added properties to maintain back-compatibility

added properties to replace xytext and textcoords (xyann, anncoords)

properly deprecated `textcoord` and `xytext` in favor of `anncoords`
and `xyann`.

:040000 040000 f17d8e1a70232471435f96b1faa8550bc697ec32 567d4a0a86bb3d1fb7ec55dc0fa98e86c1dec71a M doc
:040000 040000 34339e9d0d9f49477908fc3c3227b1b7b55735b4 4dc225e1358d422aa86f9361672c36e127955bee M lib
Issue 1:
Output of node_modules/.bin/electron --version:

multiple affected versions

Operating System (Platform and Version):

multiple affected systems

Output of node_modules/.bin/electron --version on last known working Electron version (if applicable):

unknown

Expected Behavior

Running an electron app does not freezes the app / pc.

Actual behavior

Freezes of app / pc happens on some systems.

To Reproduce

See signalapp/Signal-Desktop#2442 for a list of affected systems.

Screenshots

Additional Information

This maybe unrelated to electron but I spend some days searching for this issue and electron seems to be the common factor for me, so I'm opening this issue for others having the same / similar problems.

The GPU acceleration of chromium seems to trigger the problem, but it maybe related to the driver / hardware.

Related GitHub Issues:

signalapp/Signal-Desktop#2442

swaywm/sway#2508

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

12.0.7

What operating system are you using?

Windows

Operating System Version

Windows 10 version

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

use webview to load a same url, then throw the error info: Error invoking remote method 'GUEST_VIEW_MANAGER_CALL': Error: ERR_FAILED (-2)

Actual Behavior

<webview id="printPage" class="webview print" :src="printUrl"></webview>

<script>
export default {
setup() {
useOnBroadcast('print', (datas = {}) => {
const { url = '', data = {} } = datas;
const printPage = document.querySelector('#printPage');
printUrl.value = `${origin}print/${url}?info=${JSON.stringify(data)}&t=${new Date().getTime()}`;
nextTick(() => {
printPage.addEventListener('did-finish-load', async () => {
console.log(printPage);
});
});
});
}
}
</script>

if the printUrl.value has the same url , then throw error info: Error invoking remote method 'GUEST_VIEW_MANAGER_CALL': Error: ERR_FAILED (-2)

Testcase Gist URL

No response

Additional Information

No response
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.

Description

FastAPI's docs, while very good, do not have a reference view to the internal API. What are the arguments that a Response object takes? What are the arguments that a Query object takes? etc. A standard, autogenerated reference doc is needed! Now that I have a basic understanding of the things this framework can do, 90% of my questions can be answered by an online reference.

The solution you would like

Autogenerate reference docs and publish them with the rest of the docs, linked from the docs page.

One of this project's primary focuses is document generation for framework users. Seems like it should put that philosophy into practice for itself.

Describe alternatives you've considered

Build my own documentation for this framework?

Search the source code? (what I've resorted to doing most of the time)

Issue 2:
Of the open 345 issues (at the time of writing) 219 are questions.

Since Github doesn't have a feature to moderate questions (upvote, downvote, close a question, etc) it can be hard to regulate quality in the repo. We could use Github Discussion (example usage by vercel and edgedb) but for a large community like FastAPI it would be better if questions are redirected to Stack Overflow where questions quality can be regulated.
Issue 1:
If I remove the 'navbar-brand' section from a responsive navbar, 'nav-collapse' gains a margin-top of 50px. Is this intended? Because it doesn't a lot of sense.

Issue 2:
The issue here is related to the fix done for #8749. Margin-top was added to the navbar when there was no brand to give it that margin, but this was only needed while the navbar was collapsed.

<div class="navbar">
<div class="container">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse-scrollable">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- <a class="navbar-brand" href="{insecure_base_href}">Your Company Here</a> -->

<!-- navbar here -->

</div><!-- /.container -->
</div> <!-- /.navbar -->

Will cause the navbar to have 50px of margin-top at all times against 3.0.0-wip HEAD.

This is the fix, I'm sorry I don't have time right now to commit it, I will if it's not been done before I get around to it:

@media screen and (min-width: @grid-float-breakpoint) {
.nav-collapse {
.navbar-toggle + & {
margin-top: 0;
}
}
}
Issue 1:
version

THREE.JS V0.122.0

Describe the bug

TextureLoader load method onProgress does not trigger

Code

let loader = new TextureLoader();
loader.load(
'https://res.lgdsunday.club/renting_panorama_4.jpg',
// onLoad
(texture) => {
// ...
},
// onProgress
(event) => {
console.log('----------------------------');
}
);

Expected behavior

onProgress should be triggered

Issue 2:
The initial idea was to gain support for progress events in ImageLoader but the side effects have been so far:

Security issues. #9826

data: urls no longer working. 0576c7c

Some people (A-Frame) relied on image.src being a file path for their tests.

CrossOrigin not working. #10168

SVG no longer loading. #10363

So, for the time being, I think it'll be better to revert and, instead, try to convince W3C people to provide load progress events for Image.
Issue 1:
🐛 Failed compiling of the current master branch

So, which gloo should we use? The one in caffe2 seems being incomplete while there's another one in thridparty folder.

To Reproduce

Build from source

Current master branch

CUDA 10

Ubuntu 16.04

Expected behavior

[ 76%] Building CXX object caffe2/CMakeFiles/caffe2_gpu.dir/contrib/gloo/allreduce_ops_gpu.cc.o

Additional context

header file not found
pytorch/caffe2/contrib/gloo/allreduce_ops_gpu.cc:6:39: fatal error: gloo/cuda_allreduce_bcube.h

Issue 2:
❓ Questions and Help

Reinforcement learning on multiprocessing Queue.

If I use cpu ,NO ERROR.

If I use gpu:

RuntimeError: Cowardly refusing to serialize non-leaf tensor which requires_grad, since autograd does not support crossing process boundaries. If you just want to transfer the data, call detach() on the tensor before serializing (e.g., putting it on the queue).

anyone can help me. Thank you very much.

linux

python 3.6

cuda 9.2

pytorch 1.4

cc @ezyang @ssnl @albanD @zou3519 @gqchen @ngimel
Issue 1:
ℹ Computer information

PowerToys version: v0.20.1

PowerToy Utility: PowerRename

Running PowerToys as Admin: Yes

Windows build number: 18636.1016

📝 Provide detailed reproduction steps (if any)

Use PowerRename to rename my file frome "Marvel.Agents.Of.SHIELD.S01E01.Pilot.1080p.WEB-DL.DD5.1.H.264-ECI.ChsEngA" to "Marvel.Agents.Of.SHIELD.S01E01".

Check "Use Reg" and "Match All Occurrences".

Search for "(?<=E\d\d).+" and replace with nothing.

✔️ Expected result

It should match ".Pilot.1080p.WEB-DL.DD5.1.H.264-ECI.ChsEngA" and replace it.

❌ Actual result

Nothing match.

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

Issue 2:
This would be a nice feature to have, as my workflow typically involves mirror-image zones on two monitors, basically to keep the important windows at the center.
Issue 1:
It seems that if you have many goroutines that do lookups, they are tied to one routine that does the actual DNS resolve. If it succeeds, the answer is provided to everyone and all is happy.

When it times out, rather than releasing everyone, all the goroutines must also wait their time out too. It would make more sense to also release the other routines with the errTimeout immediately.

Issue 2:
see https://groups.google.com/forum/#!topic/golang-nuts/5er6Ud_V0-U
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Thanks for your great lib

Expected Behavior

When i upgrade material-ui to 1.0.0-beta.12, my fullscreen dialog can't scroll, so i try to degrade them 1 version at once and repeat it, until 1.0.0-beta.8 they work normally

Your Environment

Tech
Version

Material-UI
1.0.0-beta.12

React
15.6.1

browser
Chrome Version 60.0.3112.11

Issue 2:
2-nd lvl menu closes unexpectedly if null passed instead MenuItem. (0.20.0 - broken, 0.19.4 - works).

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

Expected Behavior

2-nd lvl menu is not automatically closed

Current Behavior

Steps to Reproduce (for bugs)

<div>
<Paper>
<Menu desktop width={320}>
{null}
<MenuItem primaryText="Single" insetChildren />
<MenuItem primaryText="1.15" insetChildren />
<MenuItem primaryText="Double" insetChildren />
<MenuItem
primaryText="Custom: 1.2"
checked
rightIcon={<ArrowDropRight />}
menuItems={[
<MenuItem
primaryText="Show"
rightIcon={<ArrowDropRight />}
menuItems={[
<MenuItem primaryText="Show Level 2" />,
<MenuItem primaryText="Grid lines" checked />,
<MenuItem primaryText="Page breaks" insetChildren />,
<MenuItem primaryText="Rules" checked />
]}
/>,
<MenuItem primaryText="Grid lines" checked />,
<MenuItem primaryText="Page breaks" insetChildren />,
<MenuItem primaryText="Rules" checked />
]}
/>
<Divider />
<MenuItem primaryText="Add space before paragraph" />
<MenuItem primaryText="Add space after paragraph" />
<Divider />
<MenuItem primaryText="Custom spacing..." />
</Menu>
</Paper>
</div>

Click "Custom 1.2"

Click "Show"

Expected - 2nd lvl menu is still open, but it's not.

Your Environment

Tech
Version

Material-UI
0.20.0

React
16.2

browser
Safari / Chrome

etc
Issue 1:
Code Sample

# Build pandas
python3 -m pip install -t build --no-binary pandas pandas==0.22.0

# Measure size
du -sh build/pandas

# Strip binaries
find build/pandas -name "*.so"|xargs strip

# Measure -drastically reduced- size
du -sh build/pandas

Problem description

When building pandas from source and running the command strip, the resulting folder is 54% lighter than when using the manylinux wheel (via pip).

[...] the strip program removes inessential information from executable binary programs and object files, thus potentially resulting in better performance and sometimes significantly less disk space usage

https://en.wikipedia.org/wiki/Strip_(Unix)

This is probably harmless on most systems, yet it is quite important in size-constrained systems (such as AWS Lambda).

Some developers have resorted to distributing their own stripped binaries (e.g. lambda packages for the serverless framework zappa), but it seems like a makeshift solution.

I think the problem should be solved upstream, as each library should be responsible for packaging their own optimized binaries.

An issue has also been opened regarding numpy, as it is a dependency of pandas and they both end up using a lot of unneccesary disk space.

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.2.final.0

python-bits: 64

OS: Linux

OS-release: 4.9.87-linuxkit-aufs

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: None

LOCALE: None.None

pandas: 0.22.0

pytest: None

pip: 9.0.1

setuptools: 36.2.7

Cython: None

numpy: 1.14.2

scipy: None

pyarrow: None

xarray: None

IPython: None

sphinx: None

patsy: None

dateutil: 2.7.2

pytz: 2018.4

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: None

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: None

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

How to replicate

System specifications

Every command below has been executed using the amazonlinux docker image.

https://hub.docker.com/_/amazonlinux/

Pandas version: 0.22.0

Python version: 3.6.2

Prepare docker image

docker run -it amazonlinux bash
yum update -y
yum install -y findutils binutils python36-devel gcc gcc-c++

Install wheel & measure package size

python3 -m pip install -t wheel pandas==0.22.0
du -sh wheel/pandas

--> 111 MB

Try strip:

find wheel/pandas -name "*.so"|xargs strip
du -sh wheel/pandas

--> 52 MB

Almost 50% of the binary size can be stripped.

Build from source & measure package size

python3 -m pip install -t build --no-binary pandas pandas==0.22.0
du -sh build/pandas

--> 107 MB

Try strip:

find build/pandas -name "*.so"|xargs strip
du -sh build/pandas

--> 51 MB

Issue 2:
On the next release, please update the multibuild submodule to matthew-brett/multibuild@b2748e5 or newer. This should reduce the size of the Pandas wheels from 27M to 11M by excluding unnecessary debug symbols.

ref pandas-dev/pandas#19531
Issue 1:
A keyboard shortcut to change the current fancyzones template to a next template in a list

Let's say I mostly use a two column configuration on my main desktop but I would like sometimes to have three columns or divide the desktop on four areas so I have three templates that I would like to use in the same desktop but in order to switch between them I have to go to the app settings and set the template.

I would like to:

1- Add the templates I create or use the default templates to a list that is assigned to the desktop

2- When I press the keyboard shortcut key to change to the next template in the list the zones are displayed on top of the current windows and they are selected when I release the keys from the keyboard.

Issue 2:
ℹ Computer information

PowerToys version: master (85c0eaa)

PowerToy Utility: Settings/PT Run

Running PowerToys as Admin: No

Windows build number: [run "winver"] 2004

📝 Provide detailed reproduction steps (if any)

Enable PT Run and disable it.

Check the general settings.json file

✔️ Expected result

What is the expected result of the above steps?

File gets updated immediately with "PowerToys Run":false.

❌ Actual result

What is the actual result of the above steps?

File takes a few seconds to get updated.

This bug seems to only occur for PT Run, and enabling works fine, its only disabling which has this delay. It seems like this happens because at the same time PowerLauncher.exe is loading, and it might be waiting for the load to complete for some reason. We should ideally ensure this update happens independently and isn't blocked by the update on PowerLauncher.

The end-user effect is that if a user disable PT Run and closes PT within 5 seconds the setting will not persist and PT Run will still be enabled on re-launching PT.
Issue 1:
Bug Report

Current Behavior

When using @babel/plugin-proposal-decorators alongside @babel/preset-typescript function overloading does not work.

TypeError: Duplicated element (nameOfOverloadedClassMethod)

This is the transpiled output:

{
kind: "field",
key: "nameOfOverloadedClassMethod",
value: void 0
}, {
kind: "field",
key: "nameOfOverloadedClassMethod",
value: void 0
}, {
kind: "method",
key: "nameOfOverloadedClassMethod",
value: function value(_bar) {
// actual body of method
}
}

Input Code

class Foo {
nameOfOverloadedClassMethod(bar: string);
nameOfOverloadedClassMethod(bar: number);
nameOfOverloadedClassMethod(bar) {
// some implementation
}
}

Expected behavior/code

The overloaded methods are removed when transpiling before decorators mangle the class.

Babel Configuration (.babelrc, package.json, cli command)

{
loader: 'babel-loader',
options: {
presets: [
[
'@babel/preset-env',
{
modules: false,
useBuiltIns: 'usage'
}
],
'@babel/typescript'
],
plugins: [
['@babel/plugin-proposal-decorators', {
decoratorsBeforeExport: true
}],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-transform-runtime',
'angularjs-annotate'
]
}
}

Environment

Babel version(s): v7.2.0

Node/npm version: Node 9.11.2

OS: OSX 10.14.1

Monorepo: no

How you are using Babel: loader

Issue 2:
💻

Would you like to work on a fix?

How are you using Babel?

Programmatic API (babel.transform, babel.parse)

Input code

export type Foo = {
args: [ [
object: number
] ];
};

Configuration file name

No response

Configuration

No response

Current and expected behavior

Current:

/repl.ts: Tuple members must be labeled with a simple identifier. (3:2)

1 | export type Foo = {
2 |	args: [ [
> 3 |	object: number
|	^
4 |	] ];
5 | };

Expected:

No errors.

Environment

Binaries:

Node: 19.4.0 - /usr/local/bin/node

Yarn: 1.22.18 - ~/.yarn/bin/yarn

npm: 8.5.5 - /usr/local/bin/npm

Monorepos:

Yarn Workspaces: 1.22.18

npmPackages:

babel-standalone: ^6.26.0 => 6.26.0

eslint: ^7.19.0 => 7.32.0

webpack: ^5.58.1 => 5.75.0

Possible solution

No response

Additional context

https://babeljs.io/repl#?browsers=defaults&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=KYDwDg9gTgLgBDAnmYcBiEJwLxwN4BQAkAIZQDmAzgFxwDa9xREARgFbADGMtAdgK4BbFsCjEAunHEBuAgF9pQA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=true&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Cstage-2%2Ctypescript&prettier=false&targets=Node-14&version=7.20.15&externalPlugins=&assumptions=%7B%7D