WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Is your feature request related to a problem? Please describe.

setAspectRatio function not support on Windows OS.

Describe the solution you'd like

on Window OS, Window os native API not support Window Aspect ratio control differenct from MAC OS.

but I tried to make Width/Height ratio operation with WM_SIZE event handler. it was works.

I succeeded stay width - height ratio with aspect_ratio valuable in NativeWindowViews

Describe alternatives you've considered

None

Additional context

Issue 2:
As in topic. API currently offers fixed ratio only for Mac but not for Windows
Issue 1:
Bug report

Bug summary

Can't import matplotlib.pyplot

Code for reproduction

import matplotlib.pyplot as plt

Actual outcome

# If applicable, paste the console output here
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-f09a4c6b4388> in <module>()
1 import numpy as np
----> 2 import matplotlib.pyplot as plt
3 import scipy.ndimage.imread as imread
4
5 path = 'C:/data/cifar_10/train/15.png'

C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\pyplot.py in <module>()
30 from cycler import cycler
31 import matplotlib
---> 32 import matplotlib.colorbar
33 from matplotlib import style
34 from matplotlib import _pylab_helpers, interactive

C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\colorbar.py in <module>()
34 import matplotlib.collections as collections
35 import matplotlib.colors as colors
---> 36 import matplotlib.contour as contour
37 import matplotlib.cm as cm
38 import matplotlib.gridspec as gridspec

C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\contour.py in <module>()
19 import matplotlib.colors as colors
20 import matplotlib.collections as mcoll
---> 21 import matplotlib.font_manager as font_manager
22 import matplotlib.text as text
23 import matplotlib.cbook as cbook

C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\font_manager.py in <module>()
56
57 import matplotlib
---> 58 from matplotlib import afm, cbook, ft2font, rcParams, get_cachedir
59 from matplotlib.compat import subprocess
60 from matplotlib.fontconfig_pattern import (

ImportError: DLL load failed: The specified procedure could not be found.

Expected outcome

Matplotlib version

Operating system:

Matplotlib version:

Matplotlib backend (print(matplotlib.get_backend())):

Python version:

Jupyter version (if applicable):

Other libraries:

Everything was installed via anaconda.

Issue 2:
Opening an issue on this to track progress and get insight from other people.

I have just been playing with tests on my own system, and I have discovered that the tests don't run fully independently of each other...

So far, I have only discovered problems with different backends getting used, for example in test_backend_qt4.py we have a few tests that have :

plt.switch_backend('Qt4Agg')

test_backend_pgf.py seems to have the solution to this with a generic decorator, and it feels odd that such a beautifully generic decorator appears in a very specific class and doesn't get used elsewhere.

Anyway I shall make a PR to correct this backend thing and hope we have no other inter-dependancies, but in the meantime, some questions:

Why don't we reset everything at the beginning of each test anyway, we have a setup() function that should do this?

Do we have an easy way to print debug information for tests? I.e. specific rcParams? This will help debugging future issues like this (touch wood we don't get any).
Issue 1:
VSCode Version: (0.10.11) f291f4a

OS Version: Mac OS X 10.10.5 (14F1605)

The first var is highlighted as I expect. But those letters should not be highlighted in a name like variableTimeMs.

Thanks!

Issue 2:
From @f111fei on February 23, 2016 6:14

version： 0.10.10

letter

Copied from original issue: microsoft/vscode#3270
Issue 1:
since beta 26 (it was ok in beta 25) onExited and other TransitionHandlers are now not recognized as a proper property of Dialog when using typescript

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

Expected Behavior

onExited and other TransitionHandler properties should be available

Current Behavior

There's an error when using any of those properties with a Dialog

Your Environment

Tech
Version

Material-UI
26 beta

React
16

browser
latest chrome

ts
2.6.2

Issue 2:
I would like to override some mouse events on some components like GridListTile and typescript complains because it doesn't know about those properties. Is this the expected behaviour?

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

Expected Behavior

The override should be without any error. If I manually add the property in node_modules in the proper interface, the function handle is passed down to the HTML element and it works as it's supposed to. The components should allow overriding of these events: https://reactjs.org/docs/events.html.

Current Behavior

Throws a TS2339 error: Property 'onClick' does not exist on type 'IntrinsicAttributes & GridListTileProps & { children?: ReactNode; }'.

Steps to Reproduce (for bugs)

The simplest example:

<GridListTile

cols={1}

rows={1}

onClick={(event) => console.log('clicked')}

/>

Your Environment

Tech
Version

Material-UI
1.0.0-beta.18

React
16.0.0

browser
Chrome
Issue 1:
Login issue

Issue Description

If a user logs in and works some code camp challenges and logs out, then another user logs in, that other user can see the previous users code and must reset the exercise.

Browser Information

Firefox

Browser Name, Version:

Operating System:

Mobile, Desktop, or Tablet:

Linux (Ubuntu 1604)

Screenshot

First user

Logoff

Second user (did not complete the challenge)

Issue 2:
Challenge Name

All challenges

Issue Description

If I log out from my account (on which I have completed all the Front End challenges), and then I log in on the same tab with another account (my sister started her own account this week), all the challenges I have already completed on my account are shown with the code already completed, even if the challenges are not marked as "Completed".

Browser Information

Browser Name, Version: Chrome 52.0.2743.116 (64-bit)

Operating System: Mac OS X 10.11.6

Mobile, Desktop, or Tablet: Desktop

Your Code

Screenshot
Issue 1:
Whenever I auto update VS Code, newly selected launch config or newly created breakpoints are lost.

Issue 2:
Whenever I install an update (prompted by VS Code) it doesn't open the same file I had opened before.

I think this is caused by a prompt process.exit() that leaves VS Code (or actually Chromium) no chance to persist the local storage to disk. It is reproducible by calling Lifecycle.quit() and from the done handler call process.exit().

Have to follow up with Electron to understand this better.
Issue 1:
🐛 Bug

torch.hub.load_state_dict_from_url errors when downloading a valid state_dict.

To Reproduce

Create a state_dict

from torch import hub, nn
import hashlib

def sha256(file: str, chunk_size: int = 4096) -> str:
hasher = hashlib.sha256()
with open(file, "rb") as fh:
for chunk in iter(lambda: fh.read(chunk_size), b""):
hasher.update(chunk)
return hasher.hexdigest()

file = "conv2d.pth"
model = nn.Conv2d(3, 3, 1)
state_dict = model.state_dict()
torch.save(state_dict, file)

print(sha256(file)[:8])

96603ba9

Upload it (not shown) and make sure its uploaded correctly

url = f"https://download.pystiche.org/models/{file}"

downloaded_file = f"downloaded_{file}"
hub.download_url_to_file(url, downloaded_file)
print(sha256(downloaded_file)[:8])

96603ba9

Try to download it directly with torch.hub.download_state_dict_from_url

state_dict = hub.load_state_dict_from_url(url)

RuntimeError: Only one file(not dir) is allowed in the zipfile

Expected behavior

Load the state_dict without error.

Environment

PyTorch version: 1.6.0
Is debug build: No
CUDA used to build PyTorch: 10.2

OS: Ubuntu 18.04.4 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: Could not collect

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.2.89
GPU models and configuration: GPU 0: GeForce GTX 1080
Nvidia driver version: 440.33.01
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5

Versions of relevant libraries:
[pip3] numpy==1.19.1
[pip3] torch==1.6.0
[pip3] torchvision==0.7.0
[conda] Could not collect

Issue 2:
🐛 Bug

If you call torch.hub.load_state_dict_from_url() on a file saved in the new zipfile serialization format, it raises RuntimeError('Only one file(not dir) is allowed in the zipfile').

To Reproduce

Steps to reproduce the behavior:

Upload a state dictionary file saved using the vanilla torch.save() to a server.

Call torch.hub.load_state_dict_from_url() to that url.

You'll see the RuntimeError raised.

We discovered this as part of the effort to support pytorch 1.6 with pytorch lightning. Here's one of the failed test runs: https://github.com/PyTorchLightning/pytorch-lightning/runs/920684391

Expected behavior

torch.hub.load_state_dict_from_url() should load the new zipfile serialization files without any errors.

Environment

Collecting environment information...
PyTorch version: 1.6.0
Is debug build: No
CUDA used to build PyTorch: None

OS: Mac OSX 10.14.6
GCC version: Could not collect
CMake version: Could not collect

Python version: 3.7
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA

Versions of relevant libraries:
[pip3] numpy==1.19.1
[pip3] pytorch-lightning==0.9.0rc3
[pip3] torch==1.6.0
[pip3] torchtext==0.6.0
[pip3] torchvision==0.7.0
[conda] Could not collect

Additional context

We use torch.hub.load_state_dict_from_url() to load remote PyTorch Lightning checkpoints.

CC @williamFalcon @Borda

cc @ezyang @gchanan @zou3519 @ailzhang
Issue 1:
I don't know if the following is a compiler bug, or simply bad ES6 syntax:

let makeSate = (name, params, path) => {name, params, path}

Is transpiled to

makeState = function makeState(name, params, path) {
name, params, path;
};

And I need to write this

let makeSate = (name, params, path) => { return {name, params, path} }

To get the result I want

makeState = function makeState(name, params, path) {
return { name: name, params: params, path: path };
};

Issue 2:
I noticed that Babel doesn't seem to support returning an object from an arrow function. For example, I am trying to write a function that compiled to this:

var objects = [1, 2, 3].map(function (item) {
return { 'number': item };
});

So, I wrote a one-liner using an Arrow function and the implicit return like this:

const objects = [1, 2, 3].map((item) => { 'number': item });

However, the above ES6 code above compiles to the following:

var objects = [1, 2, 3].map(function (item) {
number: item;
});

and thus, objects has three nulls in it. I understand that the curly braces are probably confusing to the compiler, but is it possible that this could be supported eventually?
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I get this error message on next build

Module build failed: ValidationError: Style Loader Invalid Options
options['importLoaders'] should NOT have additional properties

next.config.js

.babelrc

All the other files

Your Environment

Tech
Version

next
5.0.0, 5.0.1-canary.5

node
8.9.1

Issue 2:
Now i have next js version 6.1.1, when I try update to new version i have this issue
Issue 1:
It seems like there is currently no way to pass some attributes from the <Select native> component to the generated <select>.

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

Expected Behavior

<Select native required> or something like <Select native selectProps={{ required: true }}> should place the required field on the <select> DOM element.

Current Behavior

It doesn't

Steps to Reproduce

Live example: https://codesandbox.io/s/yq77pk0621

Your Environment

Tech
Version

Material-UI
1.0.0-beta.29

React
16.2.0

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

Expected Behavior

Clicking on the label of a checkbox, radio button or switch selects it, without activating the keyboardFocus effect.

Current Behavior

After pressing TAB on a page with selection controls, clicking the label of a checkbox, radio button or switch activates the keyboardFocus effect for it.

Steps to Reproduce (for bugs)

Go to https://material-ui.com/demos/selection-controls/

Press TAB

Click on any label of a checkbox, radio button or switch

The input now has a grey background as if you had selected it with a keyboard TAB. Clicking on the input directly instead of the label will not cause this / stop this behavior.

Context

Your Environment

Tech
Version

Material-UI
1.0.0-beta.16

browser
Chrome
Issue 1:
the traditional windows search supports document search,folder search,... you should allow clients to search certain type of files, for instance, folders. btw, you should make as a single dropdown button, since i think the traditional search does not look simple enough.

Issue 2:
Summary of the new feature/enhancement

I believe PowerToys Run would be a lot more powerful if we could have not only ">" but several others characters that change it's behavior. Maybe even alias-ing some frequently used commands.

Proposed technical implementation details (optional)

I have seen some issues requesting for some features and I believe that this would be a nice add overall.

Right now, adding ">" at the start will invoke the shell and run what you write after.

In issue #3245, it's requested to be able to do a web search. Having "?" at the start could tell PowerToys Run that we are definitely wanting to do a web search.

In issue #3233, it's desired to have PowerToys Run to behave exclusively like Window Walker. Instead of limiting and having a toggle for that, we could have ":" to make PowerToys Run show only running apps.

In issue #3179, it's suggested to be able to keep the shell open after executing a command. Having ">>" cause that behavior is interesting.

These suggestions were made in the issues themselves, but I believe that is interesting to put them together in a new issue because it can become even more powerful with other characters.

Maybe we could even have a section on the PowerToys Run settings to allow users to add their own? Or also add some alias? For example, if I often go between three running programs, let's say chrome, word and spotify, I could press Alt+Space and write ":c", ":w" or ":s" to go to the specific program because on the PowerToys Run settings I created the alias for ":Spotify" as ":s" and so on.

This could be used for opening specific folders, running specific scripts with specific arguments*, and so on, as created by the user.

Having the initial characters being the same between the alias and the command should be enforced or else confusion will ensue 😅

*like ">ipr6" be translated to ">ipconfig /renew6" or ">>ipa" be translated to ">>ipconfig /all"
Issue 1:
Challenge http://www.freecodecamp.com/challenges/bonfire-drop-it has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Instructions: Drop the elements of an array (first argument), starting from the front, until the predicate (second argument) returns true.

function drop(arr, func) {
while (arr.length > 0) {
if (func(arr[0])) {
break;
}
arr.shift();
}
return arr;
}

drop([1, 2, 3], function(n) {return n < 3; }); // returns [1,2,3] and all tests pass

function drop(arr, func) {
// Drop them elements.
return arr.filter(func);
}

drop([1, 2, 3], function(n) {return n < 3; }); // returns [1,2] and all tests pass

Issue 2:
Challenge http://freecodecamp.com/challenges/bonfire-drop-it has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

It describes only eating the head of the array and then stopping, returning the rest of the array. This is not what is tested.

All of the tests can be passed using return arr.filter(func); which will filter ALL items from the array, not just from the head.

There needs to be an additional test case, like expect(drop([1, 2, 3, 7, 4], function(n) {return n > 5; })).to.eqls([7, 4]);
Issue 1:
System information (version)

OpenCV => :4.0.1

Operating System / Platform => :10.13.6

Compiler => Xcode 10.0 GNU++ 11

Detailed description

I want to inherit an openCV class CvVideoCamera in my Swift project. Here is what I did:

Create a Objective-C wrapper

Create a bridging file to import the header of the wrapper

In the header of my Objective-C wrapper

#import <opencv2/videoio/cap_ios.h>

@interface VideoCameraImpl: CvVideoCamera

Then I got the following error message:

opencv2.framework/Headers/core.hpp:49:4: Core.hpp header must be compiled as C++

I know it's possible to moving the import to .mm file is able to fix the issue. But I can't do that because I need to inherit a class from OpenCV and make it public so that I can use it in my Swift project. Is there a way to do this? Thanks.

Issue 2:
System information (version)

OpenCV => ❔

Operating System / Platform => ❔

Compiler => ❔

Detailed description

Steps to reproduce
Issue 1:
I use Emacs 24.3.1 under Windows 7 x64. When I M-x shell and julia to execute julia.exe (not via ESS), there are several problems:

There is no splash.

There is no prompt.

Expression ending with a semicolon still shows its value.

Type ?help gives ERROR: syntax: extra token "help" after end of expression

Here's how it looks in Emacs:

If I execute julia.exe from cmd then everything is fine:

Here is my versioninfo(true):

Julia Version 0.3.0

Commit 7681878 (2014-08-20 20:43 UTC)

Platform Info:

System: Windows (x86_64-w64-mingw32)

CPU: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz

WORD_SIZE: 64

Microsoft Windows [Version 6.1.7601]

uname: MINGW32_NT-6.1 1.0.12(0.46/3/2) 2012-07-05 14:56 i686 unknown

Memory: 3.7029266357421875 GB (298.31640625 MB free)

Uptime: 92575.65727 sec

Load Avg: 0.0 0.0 0.0

Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz:

speed user nice sys idle irq ticks

1 2594 MHz 5419973 0 3710124 83446276 41761 ticks

2 2594 MHz 1938640 0 3134356 87502879 1550400 ticks

3 2594 MHz 4817014 0 3269203 84489533 24772 ticks

4 2594 MHz 1013819 0 626765 90935042 21231 ticks

BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)

LAPACK: libopenblas

LIBM: libopenlibm

LLVM: libLLVM-3.3

Environment:

CLASSPATH = .;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip

HOMEDRIVE = C:

HOMEPATH = \Users\X230

JULIA_PKGDIR = C:\Users\X230.julia

PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

Package Directory: C:\Users\X230.julia

Any idea how to fix it? Thanks!

Issue 2:
Currently

julia> complex(1.0) / (Inf + Inf*im)
NaN + NaN*im

but the result should be a complex 0. According to the comments, division between ComplexF64 is based on https://arxiv.org/abs/1210.4539, but I'm not sure how to fix the algorithm to deal with this.

This is related to #29840 (but that issue has been hidden by using inv in PR #32252). This is not a duplicate of #23134 as that issue was about the case where the numerator is real.
Issue 1:
Don't work autoUpdate with proxy basic auth! Please, help me. I'm desperate.

Error in logs: System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.

How can I set credentials proxy basic auth???

Issue 2:
Electron version: 0.36.7

Operating system: Windows

The autoUpdater module in electron does not appear to be attempting to update all my users on windows from 3.0.1 to 3.1.0. It took a clean reinstall of the application on a few computers that I am aware of before it decided there was an update too download.

Upon sniffing out the traffic I could see that an update check request was being sent to fetch the RELEASES file and then didn't attempt to download the obviously available update.

I don't see how it can work for around 80% of users (that number is a guestimate) and not work for the rest.

The update server is here http://update.googleplaymusicdesktopplayer.com/update/{platform}/{version}

The update code is here https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/blob/master/src/main/features/core/autoUpdater.js
Issue 1:
What problem does this feature solve?

希望页面对 Set 及 Map 遍历时如果添加或删除了元素，页面能实时更新dom节点。

What does the proposed API look like?

希望页面对 Set 及 Map 遍历时如果添加或删除了元素，页面能实时更新dom节点。

Issue 2:
Version

2.6.14

Reproduction link

https://jsfiddle.net/3wbpgrky/

Steps to reproduce

Use v-for on hude array and template tag or functional component which return array of elements. "RangeError: Maximum call stack size exceeded" exception will be thrown.

What is expected?

normal rendering

What is actually happening?

exception

call stack:

RangeError: Maximum call stack size exceeded

at normalizeArrayChildren (vue:2402)

at normalizeChildren (vue:2377)

at _createElement (vue:3427)

at createElement (vue:3381)

at Proxy.vm._c (vue:3518)

at Proxy.eval (eval at createFunction (vue:11698), :3:62)

at Vue._render (vue:3572)

at Vue.updateComponent (vue:4082)

at Watcher.get (vue:4494)

at new Watcher (vue:4483)

Exception will be at 'simpleNormalizeChildren ' if functional component is used.
Issue 1:
by smirolo:

I looked forward to try out go now that it is an official language supported by gcc but
the code failed to compile on OSX10.6.7+i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple
Inc. build 5666).

I apologize if the bug should be reported somewhere else (as well? instead of here?). As
the build panel shows an "ok" for darwin systems, I assume there has been a
solution already published. Unfortunately I cannot find any tag matching the released
gcc-4.6.0 so I do not know if it is expected to fail. I couldn't find any information
either on how the hg go repository makes it into the official gcc release so it is
really hard to guess whose bug it is and where a workaround is supposed to live.

curl -O ftp://mirrors.kernel.org/gnu/gcc/gcc-4.6.0/gcc-4.6.0.tar.bz2
tar jxvf gcc-4.6.0.tar.bz2
mkdir -p gcc-4.6.0-build
cd gcc-4.6.0-build
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/opt/local/bin
~/build/gcc-4.6.0/configure --enable-languages=c,c++,go --with-gmp=/opt/local
--with-mpfr=/opt/local --with-mpc=/opt/local --prefix=${HOME}/build/install/gccgo
make
...
~/build/gcc-4.6.0/libgo/runtime/go-go.c: In function ‘runtime_stoptheworld’:
~/build/gcc-4.6.0/libgo/runtime/go-go.c:386:29: error: ‘SIGRTMIN’ undeclared (first
use in this function)
...

SIGRTMIN as per wikipedia (http://en.wikipedia.org/wiki/SIGRTMIN_and_SIGRTMAX) is
standard POSIX. Unfortunately it isn't defined anywhere on my OSX 10.6.7 system.
grep -r SIGRTMIN /usr/include
[nothing]
More searching actually reveal that real-time signals are not supported on OSX...

Issue 2:
It would be nice if RUnlock() panicked if called when the mutex is not read locked,
similar to how Unlock() panics when the mutex is not write locked. As it is, bugs
related to mismatched rlocking are harder to find. The documentation states that
"It is a run-time error if rw is not locked for reading on entry to RUnlock."
which I interpret as we intended this to panic.

Go v1.2.1

The program:

http://play.golang.org/p/GmAqwC5WJo

Now prints:

Read locked
Also, write locked

While I would expect it to panic on line 10.