WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi, I found that there are some problems (in my opinion) of the new theme of the documentation:

The font is too thin compared to the original one.

The background color is too bright compared to the original one.

It is hard to navigate across a long section (ex: torch.nn) without subsections in the left sidebar.

render inline code strangely. ex:

The latex rendering results are strange in the sense that the font is not consistent and some formulas are just not rendered (maybe the latex syntax is not correct or KaTeX doesn't support certain features).

Some code snippets are not rendered properly. ex: (in torch.jit)

In general, I think the original theme is more readable. Is there anything I can help or some plans to improve the readability?

BTW, latex formulas in the new tutorial is extremely small.

Issue 2:
While the new documentation style looks sleeker, I find its readability awful

I can barely read the text in the grey-on-grey left navbar and the text of the main content is much too thin to be read comfortably.

cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @anjali411 @brianjo @mruberry
Issue 1:
In the objects interface, one can instantiate a faceted plot where the faceted column is wrapped. When this results in a non-rectangular grid of axes, there are no xtick labels for the bottom axes that are not on the bottom row. Example code:

import seaborn as sis
import seaborn.objects as so

iris = sns.load_dataset("iris")
(
so.Plot(iris, "sepal_length", 'sepal_width')
.add(so.Dots())
.facet("species", wrap=2)
)

Using relplot to generate a similar plot results with a correct plot, that has the x-tick labels for the rightmost axes.

Analysis: The objects interface instantiates a plot using a rectangular Figure.subplots call (with shared axes) and then removes the axes that do not correspond to a subset of the faceted variable:

seaborn/seaborn/_core/subplots.py

Lines 199 to 208
in
22cdfb0

if self.wrap:

# Remove unused Axes and flatten the rest into a (2D) vector

axs_flat = axs.ravel({"col": "C", "row": "F"}[self.wrap_dim])

axs, extra = np.split(axs_flat, [self.n_subplots])

for ax in extra:

ax.remove()

if self.wrap_dim == "col":

axs = axs[np.newaxis, :]

else:

axs = axs[:, np.newaxis]

Behind the scenes, Figure.subplots creates a rectangular grid and disables the inner axes' xticklabels (since all axes are shared):

https://github.com/matplotlib/matplotlib/blob/cc20d3f7bbb18a21683fb499d98b0814546583c6/lib/matplotlib/axes/_base.py#L4587-L4596

But the deletion of the extra axes by seaborn doesn't restore the ticks and labels that Figure.subplots removed, and instead only operates on the visibility of the ticks (which are absent at this point due to the axes instantiation):

seaborn/seaborn/_core/plot.py

Lines 1040 to 1048
in
22cdfb0

show_tick_labels = (

show_axis_label

or subplot_spec.get(f"share{axis}") not in (

True, "all", {"x": "col", "y": "row"}[axis]

)

)

for group in ("major", "minor"):

for t in getattr(axis_obj, f"get_{group}ticklabels")():

t.set_visible(show_tick_labels)

Expected behavior: the ticks and their labels should be visible for non-last-row bottom axes of non-rectangular wrapped shared facets.

Issue 2:
When axes are shared, "internal" axes have axis and tick labels hidden. This is a good default, but might not always be what you want. It should be configurable somehow (perhaps in Plot.layout?)

Additionally, the default is not idea with a "wrapped" figure where the axis is "internal" but all of the axes external to it have been removed. e.g.

(
so.Plot(mpg, x="mpg")
.pair(y=["displacement", "weight", "acceleration"], wrap=2)
.add(so.Dots())
)

The tick labels are hidden (matplotlib has actually removed them due to axis sharing logic) but the axis label is visible (I actually don't understand why that is; I didn't think we had logic for that but maybe we do). Probably we want either, or both, or tick labels but not axis label, but the current situation is the worst of all possible worlds.

Note that this specific situation also has some complex interactions with tight_layout / constrained_layout in terms of how much space is left between the other axes; it might be necessary to remove whichever ends up here "from the layout". Kind of a mess all around. Punting to after v0.12.0.
Issue 1:
Hi, i use javascript to hide the popover,

$('#element').popover('hide');

but i realize that the popover is alway there and but invisible, if had links or button inside the popover and if i click at the same time where the popover was before hidding it, the link and button are all there and clickable but invisible.

Try my demo, Hide with the Hide me button.

the link is still there and clickable

http://jsfiddle.net/onigetoc/eCLAu/2/

Hi think modal do the same thing, i got invisible input and textarea who do weird things when i click where they was visible.

using modal hide with javascript

Issue 2:
i searched for an already opened issue but did not found any that was reporting this exact problem.

I'm trying to use the destroy method on tooltip (bootstrap v3) but it does not remove the element from the DOM.

Any idea ?

Fiddle : http://jsfiddle.net/52VtD/59/

click on the button to trigger the tooltip destroy method
Issue 1:
deno: 0.2.8

v8: 7.2.502.16

typescript: 3.2.1

Run the following in both node and deno:

new Date().toLocaleString("en-US", {timeZone: "America/Halifax"});
new Date().toLocaleString("en-US", {timeZone: "America/New_York"});
new Date().toLocaleString("en-US", {timeZone: "America/Chicago"});
new Date().toLocaleString("en-US", {timeZone: "America/Denver"});
new Date().toLocaleString("en-US", {timeZone: "America/Los_Angeles"});
new Date().toLocaleString("en-US", {timeZone: "America/Anchorage"});
new Date().toLocaleString("en-US", {timeZone: "Pacific/Honolulu"});

Deno returns incorrect times. It doesn't appear to support the IANA time zones yet.

Issue 2:
As seen in #1952 / #1636 ICU needs to be added in Deno build.

Switching this flag to true maybe: https://github.com/denoland/deno/blob/master/.gn#L50 ?

ref: https://v8.dev/docs/i18n
Issue 1:
From the mailing list:

I am referring to the documentation

here: http://docs.ansible.com/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable

When I use vars_files and "-e" (command line) variables together, I get

results that appear to fly in the face of the aforementioned documentation.

Exhibit A:

$ ansible --version
ansible 1.5.3
$ cat test_vars.yml

---
test_var: "from vars_files"
$ cat test.yml

---
- hosts: 127.0.0.1
connection: local
vars_files:
- test_vars.yml
tasks:
- name: Testing variables
debug: msg="{{ test_var }}"
$ ansible-playbook -i test test.yml -e "test_var='from command line'"

PLAY [127.0.0.1] **************************************************************

GATHERING FACTS ***************************************************************
ok: [127.0.0.1]

TASK: [Testing variables] *****************************************************
ok: [127.0.0.1] => {
"msg": "from vars_files"
}

PLAY RECAP ********************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=0

Note that according to the docs, -e variables should "always win" but in

this case, they clearly do not.

Issue 2:
Issue Type:

Bug Report

Ansible Version:

ansible 1.5.3

Environment:

N/A

Summary:

Variables referenced in tasks (the ones which appear directly in the playbook/are included with include as well as ones in roles) have their value changed across tasks when they are specified both in vars_files and with --extra-vars: the first time a tasks refers to it the value in vars_files is used, and all subsequent tasks get the value passed via --extra-vars.

Steps To Reproduce:

my_vars.yml:

---
some_var: foo

playbook.yml:

---
- hosts: 127.0.0.1
connection: local
vars_files: [my_vars.yml]
tasks:
- command: echo {{ some_var }}
- command: echo {{ some_var }}
- command: echo {{ some_var }}

Then call ansible-playbook with ansible-playbook -e some_var=bar playbook.yml.

Expected Results:

The echo calls show me "bar" 3 times.

Actual Results:

The first echo call shows "foo", the other 2 show "bar".
Issue 1:
Description of the problem

Three is a bug in FBXLoader with animation .When I run the example webgl_loader_fbx.html,only changing the Samba Dancing.fbx to man.fbx(already attched to this issue.), the animation is different from what opened in 3dmax. The right animation is that the man is walking normally.

man.zip

Three.js version

106dev

Browser

only tried on chrome and firefox

OS

windows

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
Description of the problem

The FBXLoader does not work with many skeleton animations. e.g., from Mixamo.com. One example from Mixamo that fails is the following:

Character: WHITECLOWN N HALLIN

Animation: SAMBA DANCING

You can get this model by downloading it from Mixamo directly but I have also attached it to this issue.

WhiteClownSambaDancing.zip

Here is the displayed result using the webgl_loader_fbx.html sample in THREE v96 modified to load the WhiteClownSamaDancing.fbx:

Screen shot using webgl_loader_fbx.html

Here is the same FBX file displayed in AutoDesk FBX Review:

Screen shot using AutoDesk FBX Review

There are many other Mixamo character/animations pairings that work fine with the FBXLoader but many that do not. It is possible (though not confirmed) that the ones that fail were created with Maya (this has been stated as a possible problem in some other issues).

Also, the WhiteClownSambaDancing.fbx file loads correctly in many other software including the Mixamo site itself and http://www.open3mod.com/. The later is fully open source so you can see the exact code they use to perform the node/bone transforms and animations. They actually use AssImp for their conversion and you can see the exact code there. In particular, see the following for their FBX import 3D transform handling:

https://github.com/assimp/assimp/blob/master/code/FBXConverter.cpp#L644

After digging into the FBXLoader code a bit, it seems there may be several areas where the issue could lie:

There does not seem to be any code to honor the FBX inherit type on the nodes.

There does not seem to be any code to implement rotate/scale pivot points on the nodes (NOT the geometry transforms which are implemented).

The following code from the AutoDesk FBX SDK may be of some help for implementing both of the above, esp. the code and comments in CalculateGlobalTransform():

AutoDesk FBX source code Transformations/main.cxx

There are some other THREE.js issues which have not been fully addressed regarding incorrect FBX animations loaded via the FBXLoader (#11895, #13466, #13821). This issue is about improving the FBXLoader, not a particular file or asset pipeline. Please do not suggest use of FBX2GLTF (which just bakes the animations) or other converters.

Also, we are willing to provide some help with design and coding, if need be, but doing a full solution with a PR is beyond our bandwidth at this time (ping @looeee @Kyle-Larson @takahirox ?).

Three.js version

Dev

r96

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
Hello everybody,

I have installed scipy-0.13.1 (compiled with mpif90) with python 2.7.3, but when I try to import :

from scipy.fftpack import fft

I have the following error messages :

File "/MYPATH.../lib/python2.7/site-packages/scipy/fftpack/__init__.py", line 97, in <module>
from .basic import *
File "/MYPATH.../lib/python2.7/site-packages/scipy/fftpack/basic.py", line 12, in <module>
from . import _fftpack
ImportError: /MYPATH.../lib/python2.7/site-packages/scipy/fftpack/_fftpack.so: undefined symbol: cost_

nm -g /scinet/bgq/tools/Python/python2.7.3-20131205/lib/python2.7/site-packages/scipy/fftpack/_fftpack.so |grep cost
U cost_
U costi_
U dcost_
U dcosti_

Here is the log of the build if someone wants to have a look at it :

http://www.physics.utoronto.ca/~brelier/log_build

Thank you for your help,

Cheers,

Bertrand

Issue 2:
Hello everybody,

I have installed scipy-0.13.1 but I have the following problem :

import scipy.special as special

Traceback (most recent call last):

File "", line 1, in

File "python2.6/site-packages/scipy/special/init.py", line 531, in

from ._ufuncs import *

ImportError: python2.6/site-packages/scipy/special/ufuncs.so: undefined symbol: hygfz

I have installed the package with setup.py build and setup.py install --prefix=...

Thank you very much for your help,

Cheers,

Bertrand
Issue 1:
I've noticed that the "no conditional hooks" aspect of the rules-of-hooks eslint rule isn't working inside a React.memo()'ed component. The project is typescript and I'm using the parse from @typescript-eslint/parser, so I'm not sure if the problem is with the rule or with the parser.

React version:

Steps To Reproduce

Create a component using React.memo() inside a Typescript project

Add a hook that is called conditionally, e.g.

export const MyMemoizedComponent = React.memo((props: {}) => {
if (Math.random() > 0.5) {
React.useEffect(() => {}, []);
}
return <div />;
});

Link to code example: https://codesandbox.io/s/no-rules-of-hooks-warning-in-typescript-reactmemo-ei00n?file=/src/index.tsx

The current behavior

ESLint does not show any errors.

The expected behavior

ESLint should show an error like React Hook "React.useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render.

Issue 2:
React version:

17.0.1

Steps To Reproduce

import { useEffect } from 'react'

export default () => {
if (true) return false

useEffect(() => {})

return false
}

run the linter

The current behavior

No errors

The expected behavior

error React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render. Did you accidentally call a React Hook after an early return?

failing test-suite case

{
code: `
export default () => {
if (cond) {
useConditionalHook();
}
}
`,
errors: [conditionalError('useConditionalHook')],
},
Issue 1:
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

15.3.1, 16.0.0-beta.8, 9.0.0

What operating system are you using?

macOS

Operating System Version

MacOS 11.6.1

What arch are you using?

x64

Last Known Working Electron version

Expected Behavior

since document mention setContentProtection(true) supports MacOS, I expect it to prevent the window from being captured and took screenshot from.

Actual Behavior

u can easy capture screen by the built-in app in macOS

just search screenshot in ur spotlight searcher and take video.

the property has no effect

Testcase Gist URL

No response

Additional Information

I already read about something similar on #19880 but that issue was about specific app (chrome browser) but mine is macOS built-in screenshot app (and probably all other desktop recording applications).

beside that that issue was for old version of electron and being closed and no one responding to it.

I tried after two years of that issue and it is not fixed after 2 years.

all the solutions and flag settings in that issue were also useless.

please, this is important, if u know any alternative solution to handle such thing in electron tell me.

Issue 2:
Output of node_modules/.bin/electron --version: v2.0.3

Operating System (Platform and Version): macOS High Sierra

Expected Behavior

Setting window.setContentProtection(true), should resist the external apps to capture the screen of the electron app

Actual behavior

Quicktime player can capture and record the screen of the electron app, with setContentProtection(true)

To Reproduce

Create a new electron project, use setContentProtection(true) on window, capture in mac with quick time player
Issue 1:
Inspired by the @import function of SASS.

I would like to propose a mechanism for creating partial files, which are not compiled by default, but embedded into files which reference them. It's just like bundling, but with less hassle and in a more unified approach.

As a brief example, suppose that we have 4 files:

index.ts

user.ts

_auth.ts

_position.ts

The index.ts and user.ts files can reference contents of a partial file by using simple imports. For example, if we want index.ts to reference _auth.ts and _position.ts, use the following code in the non-partial index.ts file:

import auth = require('auth');
import position = require('position');

The content of partial files should be copied and instantly evaluated in their container file. For instance, whether we would also like to use the _position.ts partial file in user.ts, use an import just like above:

import position = require('position');

Although this may seem like a regular import, it's basically an include function which copies the partial file's full content at the place desired. That means, partial files should not be reused in multiple containers, but should be used for code organisation purposes. When both index.ts and user.ts are referenced in a HTML file, the content of _position.ts will be duplicated and inserted into the 2 containers separately.

Issue 2:
Support compiling multiple input .ts files into one external module.

Need to determine exactly how the module boundaries are defined when doing this.
Issue 1:
I'm currently trying to compile 1.5.1 using libagg2 2.5.0.1, but unfortunately it fails with errors like "src/agg_workaround.h", line 12: Error: conv_rgba_pre is not a member of agg. so it is obviously not compatible to 2.5.0.1 anymore (but setupext.py says, it is sufficient).

Digging around a little bit, I saw, that matplotlib has also an extern/agg24-svn/ but I couldn't find any information about which version it is. Basic idea is to find out about matplotlib's modifications and port it back to the system's libagg2 package, so that both are consistent and matplotlib can continue to use the system's lib instead of duplicating most of it ...

So can anyone say, on what exactly extern/agg24-svn/ is based on and what matplotlib team's intention is wrt. its current/future state?

Issue 2:
Bug report

Autoscaling should produce equal margins on both sides of the plotted data. However it does not do so in certain cases.

Code for reproduction

import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = 5,3

plt.scatter([.4],[.5])
plt.scatter([.6],[.6])

plt.show()

Actual outcome

Expected outcome

We would expect to have the same margin on all sides, e.g. the blue dot should be as far away from the lower left corner than the orange dot from the upper right corner.

Matplotlib version

Operating system: Windows 8.1

Matplotlib version: 2.2

Matplotlib backend: Qt4Agg, Qt4Cairo, TkAgg, TkCairo

Python version: 2.7.10
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.6.5

Confusion

the code below create a connectionMonitor instance, but Start method seems not called

@Override
protected <T> T doRefer(Class<T> serviceType, URL url) throws RpcException {
if (connectionMonitor == null) {
connectionMonitor = new ConnectionMonitor();
}
...
}

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

Operating System version: CentOS 7.5

Java version: jdk8

spring-cloud-alibaba: 2.2.0-RELEASE

Steps to reproduce this issue

配置服务端和消费端的注册中心为nacos：

1.服务端参数：dubbo.protocol.name=dubbo，dubbo.protocol.port=28801，dubbo.scan.base-packages=xx.xx.xx，dubbo.registry.address=nacos://127.0.0.1:8848

2.消费端参数：dubbo.consumer.check=false，dubbo.registry.address=nacos://127.0.0.1:8848

3. 启动服务端和消费端

4.修改服务端dubbo监听端口为： dubbo.protocol.port=28802

5.重启服务端

6. 消费端服务端业务正常。但消费端持续不断每隔1分钟连接服务端旧的28801端口。

配置服务端和消费端的注册中心为zookeeper：

1.服务端参数：dubbo.protocol.name=dubbo，dubbo.protocol.port=28801，dubbo.scan.base-packages=xx.xx.xx，dubbo.registry.address=zookeeper://127.0.0.1:2181

2.消费端参数：dubbo.consumer.check=false，dubbo.registry.address=zookeeper://127.0.0.1:2181

3. 启动服务端和消费端

4.修改服务端dubbo监听端口为： dubbo.protocol.port=28802

5.重启服务端

6. 消费端不会连接服务端旧的28801端口。消费端服务端业务正常。

以上场景模拟在docker容器中的场景，在docker容器中，微服务经常重新启动，重启微服务以后，其ip地址会发生变化（此处用端口变化模拟地址变化，道理是一样的）。

结论：

1、zookeeper作为服务注册中心，没有问题，

2、nacos作为服务注册中心，当服务端掉线（服务实例改变事件）并未处理该通道，造成重连任务不断进行。原因可能是spring-cloud-alibaba没有把服务实例改变消息传递进dubbo，也有可能是dubbo没有处理这个消息

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, we deployed a ML model with FastAPI, and encountered an issue.

The code looks like this.

from ocr_pipeline.model.ocr_wrapper import OcrWrapper
ocr_wrapper = OcrWrapper(**config.model_load_params) # loads 1.5 GB PyTorch model

...

@api.post('/')
async def predict(file: UploadFile = File(...)):
preds = ocr_wrapper.predict(file.file, **config.model_predict_params)
return json.dumps({"data": preds})

The above written command consumes min. 3GB of RAM.

gunicorn --workers 2 --worker-class=uvicorn.workers.UvicornWorker app.main:api

Is there any way to scale the number of workers without consuming too much RAM?

ENVIRONMENT:

Ubuntu 18.04

Python 3.6.9

fastapi==0.61.2

uvicorn==0.12.2

gunicorn==20.0.4

uvloop==0.14.0

@tiangolo

Issue 2:
Describe the bug

I have deployed FastAPI which queries the database and returns the results. I made sure closing the DB connection and all. I'm running gunicorn with this line ;

gunicorn -w 8 -k uvicorn.workers.UvicornH11Worker -b 0.0.0.0 app:app --timeout 10

So after exposing it to the web, I run a load test which makes 30-40 requests in parallel to the fastapi. And the problem starts here. I'm watching the 'HTOP' in the mean time and I see that RAM usage is always growing, seems like no task is killed after completing it's job. Then I checked the Task numbers, same goes for it too, seems like gunicorn workers do not get killed. After some time RAM usage gets at it's maximum, and starts to throw errors. So I killed the gunicorn app but the thing is processes spawned by main gunicorn proces did not get killed and still using all the memory.

Environment:

OS: Ubuntu 18.04

FastAPI Version : 0.38.1

Python version : 3.7.4
Issue 1:
VSCode Version:1

OS Version:10.9.5

Steps to Reproduce:

I am not sure, but I am attaching the crash report.

vscode.crashreport.txt

Issue 2:
When searching the command palette, the search is based in exactly what you type, In essence, Code is checking if what's been typed is a substring of the command title.

It would be great if the command palette search were a bit more fuzzy, i.e. based on the individual words that are input, ignoring punctuation, etc.

Atom's command palette search works in this way:

This would resolve an issue raised on one of my extensions: wmaurer/vscode-change-case#3, and provide a much nicer user experience.

EDIT: I've been playing with it more, and in fact Code's search is a bit fuzzier than I had thought, however it's not fuzzy enough. To be honest I can't even figure out the rules, sometimes a search matches something and then I try something similar and it doesn't match.

In any case, it would be great if it could be improved to approach Atom's level of fuzziness. For example with my change-case plugin, I would expect a search for case sep to find the a number of commands, but it doesn't.