WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
🚀 Feature

Add support for PyPy interpreter

Motivation

Increase speed of Python code that do not relate to PyTorch

Issue 2:
🚀 Feature

Support pytorch from PyPy -- a fast, compliant alternative implementation of the Python language (http://pypy.org)

Motivation

While pytorch itself probably won't benefit much from PyPy JIT, but often pytorch is used as a part of larger application, where using PyPy can have speed benefits, e.g. for evaluation, data generation, or other activities.

Pitch

(A clear and concise description of what you want to happen). I can imagine several stages:

PyPy support works by compiling from source

PyPy is integrated into CI

PyPy wheels are built and released

Additional context

Right now it seems that PyPy support, at least for commonly used stuff, is not far from reality, for example this branch https://github.com/lopuhin/pytorch/tree/pypy3.6 works in PyPy 3.6 7.0.0 for a moderately complex application (didn't try running tests yet).

Here is a summary of fixes in that branch:

working around a compilation issue in the JIT: 0481da1 - this is definitely a hack to get the compilation working, a proper implementation for PyPy needs to be in place.

[merged] PySlice_Unpack is not yet available in PyPy 3.6 -752e204 - probably it's ok to merge this. With two above fixes, pytorch compiles on PyPy 3.6. PR #17836

[merged in https://github.com/pybind/pybind11/pull/2146 ] Applying pybind/pybind11#1494 to pybind11 - 912b0b2. Unfortunately, while the fix seems correct, and pybind11 has partial support and CI for PyPy, more work needs to be done to properly integrate it into pybind11, because other pybind11 tests are failing on a more recent PyPy, see pybind/pybind11#1494 and pybind/pybind11#1720

[merged] work around PyPy cpyext issue - 00941d8 - see https://bitbucket.org/pypy/pypy/issues/2968/segfault-calling-cpyext_tp_new_tuple (thanks @rlamy for the fix!), it seems that it is fine to merge this. PR #17837

Thanks to @xuhdev for an already merged PyPy compilation fix #11857

I submitted PRs for 2 and 4. If anyone can pick other items, that would be great.

While these are quite small fixes, still properly integrating them is not a small task, not speaking of setting up CI and supporting it.

cc @ezyang
Issue 1:
I notice this error (cgohlke wheels):

Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (Intel)] on win32

Type "copyright", "credits" or "license()" for more information.

import scipy;scipy.test()

Running unit tests for scipy

NumPy version 1.10.2

NumPy relaxed strides checking option: False

NumPy is installed in D:\WinPython\basedir34\buildQt5\winpython-3.4.4\python-3.4.4\lib\site-packages\numpy

SciPy version 0.17.0rc1

SciPy is installed in D:\WinPython\basedir34\buildQt5\winpython-3.4.4\python-3.4.4\lib\site-packages\scipy

Python version 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (Intel)]

nose version 1.3.7

======================================================================
FAIL: test_improvement (test_quadpack.TestMultivariateCtypesQuad)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\WinPython\basedir34\buildQt5\winpython-3.4.4\python-3.4.4\lib\site-packages\numpy\testing\decorators.py", line 146, in skipper_func
return f(*args, **kwargs)
File "D:\WinPython\basedir34\buildQt5\winpython-3.4.4\python-3.4.4\lib\site-packages\scipy\integrate\tests\test_quadpack.py", line 134, in test_improvement
assert_(fast < 0.5*slow, (fast, slow))
File "D:\WinPython\basedir34\buildQt5\winpython-3.4.4\python-3.4.4\lib\site-packages\numpy\testing\utils.py", line 53, in assert_
raise AssertionError(smsg)
AssertionError: (0.015599966049194336, 0.031199932098388672)

----------------------------------------------------------------------
Ran 20177 tests in 982.734s

FAILED (KNOWNFAIL=98, SKIP=1675, failures=1)

seems a follow-up of #4152 ?

Issue 2:
In the documentation of interpolate.griddata there is a broken link to the source code of the examples.
Issue 1:
Summary of the new feature/enhancement

A costumized fancy zone configuration shall call defined programs and attach it to a zone whenever it will be activated

Issue 2:
Hi all,

It would be great to choose what apps to show up on startup within a specific layout using FancyZones. For example, I have a setup of two displays and three virtual desktops and I need to open my apps and reposition them on the screen each time I boot-up my system.
Issue 1:
Bug report

What is the current behavior?

Latest webpack (4.29.4) pulls in long@4.0.1 using Git.

long is still on 4.0.0, so 4.0.1 hasn't been published yet. This mean it is doing so via git, which creates a hard dependency on git for projects bundled with webpack. This creates issues w/CI pipelines that do not use git.

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

Simply install webpack with yarn/npm and inspect the lock files, and you should see something like:

long "git://github.com/dcodeIO/long.js.git#8181a6b50a2a230f0b2a1e4c4093f9b9d19c8b69"

What is the expected behavior?

Webpack itself should not have a dependency on git. This is an unnecessary dependency for CI/build systems.

Other relevant information:

webpack version: 4.29.4

Node.js version: v8.15.0

Operating System: Ubuntu 18.04.2 LTS

Additional tools:

Issue 2:
npm sill fetchPackageMetaData error for long@git://github.com/dcodeIO/long.js.git#8181a6b50a2a230f0b2a1e4c4093f9b9d19c8b69 Error while executing:

In my firm direct access to Github assets is blocked, and I imagine this will be the case for a lot of enterprise applications. Hence it is impossible to install the latest version of Webpack which depends on 1.8.2 of this module.

Can this change be reverted or fixed?
Issue 1:
Challenge Find the Longest Word in a String has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

var arr = [];
var i = 0;
var lengthArray = [];

function findLongestWord(str) {
arr = str.split(' ');

for (i = 0; i < 10; i++) {
if (arr[i]) {
lengthArray.push(arr[i].length);
}
}
lengthArray.sort(function(a,b) {
return b - a;
});
return lengthArray[0];
}

findLongestWord("May the force be with you");

Issue 2:
Challenge Factorialize a Number has an issue.

User Agent is: Mozilla/5.0 (Windows NT 5.1; rv:47.0) Gecko/20100101 Firefox/47.0.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

var count=1;
function factorialize(num) {
for(var i=1; i<=num;i++){

count= count * i;

}
return count;

}

factorialize(0);
Issue 1:
Electron version: 2.0.0.beta-1

Operating system: 10.13.3 Beta (17D34a)

Expected behavior

Electron should not crash when using browserWindow.setVibrancy

Actual behavior

Electron crashes intermittently. Crash report:

https://gist.github.com/tommoor/90b7b3db53a32f9dd165bb234b9f2d9d

Issue 2:
Problem Description

I would like to customize the location of the Electron/Chromium cache (for Windows and other OS/s). Currently cache used the same folder than getPath('userData')

2 reasons :

having cache in the roaming user part impacts the size of the profile. When your deploy your application on system like Citrix, it has a huge cost ($) in term of space disk and cost (time) to synchronize profile.

we store our own user data under getPath('userData'). But this folder is shared with the Electron cache, so there is a mix of Electron folders/files and of our product folders/file. It is bit confusing.

Proposed Solution

I see in C++ code an attempt of 'cache'/ 'userCache' path implementation. But not finished. As far as I see, it would be to add a piece of code here (very roughly) :

src\electron\atom\browser\atom_browser_context.cc

`

AtomBrowserContext::AtomBrowserContext

...

if (!base::PathService::Get(DIR_CACHE, &path_)) {

if (!base::PathService::Get(DIR_USER_DATA, &path_)) {

base::PathService::Get(DIR_APP_DATA, &path_);

path_ = path_.Append(base::FilePath::FromUTF8Unsafe(GetApplicationName()));

base::PathService::Override(DIR_USER_DATA, path_);

}

}

`

Alternatives Considered

We customized setPath('userData') at startup of our application to force the cache to another location but later in the code, we can no more use getPath('userData') for storing our data. We expose a new method but it is less friendly and error prone.

Additional Information

I have not the background /context of the 1st attempt, it may have a good reason to stop. If you can share your concerns and see if it is feasible, will be grateful

I can manage a MR, if you agree.
Issue 1:
What steps will reproduce the problem?

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

It's useful for this to work to be able to disable a partial function implementation
while doing TDD.

What is the expected output?

program should compile

What do you see instead?

prog.go:10: function ends without a return statement

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

linux

Which version are you using? (run 'go version')

tip

Issue 2:
pkix.Name.FillFromRDNSequence ignores attributes other than the first in the RDN sets passed as argument. As demonstrated by http://play.golang.org/p/GPZdVHzZVb, this in turn makes x509.ParseCertificate(s) fail to locate the subject serial number for certificates where it is included in set containing the common name.

The fix is simple, also demonstrated by the playground program, but I'm unsure if the example certificate is broken and that multiple attributes in one RDN set should be ignored. And even if so, a workaround might still be desirable: The example certificate is issued by the national Danish ID provider, "NemID" mandatory for digital banking and digital public services.

I raised the issue on golang-nuts:

https://groups.google.com/forum/#!topic/golang-nuts/1Whb4ko4zfc

but so far I've received no replies and so this issue serves as a reminder.
Issue 1:

Issue 2:
I have a fileinterfaces.d.ts which defines some interfaces, e.g:

export interface IFoo {}
export interface IBar {}

I want to reexport all interfaces in another module:

export * from "interfaces";

When targeting AMD, compiled code looks like this:

define(["require", "exports", "interfaces"], function (require, exports, interfaces_1) {
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(interfaces_1);
});

Module "interfaces" should not be imported at all, because it doesn't contain any JS code. To fix this I have to list all exported interfaces manually:

export { IFoo, IBar } from "interfaces";

It's a problem if the number of interfaces is large.

I use version 1.5.3.
Issue 1:
My iOS project is named Uber.xcodeproj and Uber.xcworkspace, I placed my files into the ios folder, but it seems Flutter project can not find the iOS project .

Issue 2:
@lukef brought up the question this morning if it would be possible to change ios/Runner.xcodeproj to ios/MyName.xcodeproj. My understanding from @cbracken is that there are several places in our code which currently look for the word "Runner" or assume that path which would break if that was done.

We could certainly support this, but my understanding is changing the name is not "supported" out of the box. I don't know what the situation is on the Android side (if there are any path naming issues there).
Issue 1:
Here's a demonstration of the issue:

http://jsfiddle.net/phillipadsmith/5qS9d/

If you double-click a button that is not the active button, the post values for that button-group are not sent with the post body.

To test:

Use the fiddle above

Double-click on the buttons

Hit "finish," then check the request bin: http://requestb.in/vb0id1vb?inspect

You'll see an empty post body.

I've been struggling to figure out this bug for a week, as I noticed it in a production app. Some users received form validation errors and there was no rhyme or reason as to why (as far as browser/os/etc.).

Then I thought of my mom! She double-clicks her way around the Web. Tested that in all browsers, and -- in each case -- the buttons don't send any post value if double-clicked.

Let me know if you have any questions.

Issue 2:
The active class stays on the button, but the checked property is removed from the radio input.

http://jsfiddle.net/meleyal/dafPH/
Issue 1:
🐛 Bug

When I use libtorch1.3.1 of debug version in my C++ app, it threw a runtime error when I was trying to load a script model:

cuda_dispatch_ptr INTERNAL ASSERT FAILED at C:\w\1\s\windows\pytorch\aten\src\ATen/native/DispatchStub.h:74, please report a bug to PyTorch. DispatchStub: missing CUDA kernel (operator () at C:\w\1\s\windows\pytorch\aten\src\ATen/native/DispatchStub.h:74)

To Reproduce

Steps to reproduce the behavior:

Configure libtorch1.3.1 of debug version in my C++ project

Run the project by "Debug x64" model

It throw a runtime error when trying to load the model

Exception thrown at 0x00007FFD9A96A839 in EasyCyte.exe: Microsoft C++ exception: c10::Error at memory location 0x0000000F166F8450.

Exception thrown at 0x00007FFD9A96A839 in EasyCyte.exe: Microsoft C++ exception: c10::Error at memory location 0x0000000F166F7F90.

Unhandled exception at 0x00007FFD9A96A839 in EasyCyte.exe: Microsoft C++ exception: c10::Error at memory location 0x0000000F166F7F90.

Expected behavior

The model should be loaded successfully without errors.

Environment

PyTorch Version (e.g., 1.0):1.3.1(libtorch debug)

OS (e.g., Linux):Windows10

How you installed PyTorch (conda, pip, source):pip

Python version:3.6

CUDA/cuDNN version:CUDA9.2+CUDNN7.5.0

GPU models and configuration:

Any other relevant information:VS2017 with toolset 14.11

Additional context

Issue 2:
🐛 Bug

When doing inference using LibTorch in C++ for semantic segmentation on the GPU, i get the following error in debug compilation mode:

cuda_dispatch_ptr INTERNAL ASSERT FAILED at C:\w\1\s\windows\pytorch\aten\src\ATen/native/DispatchStub.h:70, please report a bug to PyTorch. DispatchStub: missing CUDA kernel (operator () at C:\w\1\s\windows\pytorch\aten\src\ATen/native/DispatchStub.h:70)

(no backtrace available)

When I run it in release mode it does not crash and delivers the expected result. Also on the CPU, this assert is not shown.

Environment

PyTorch Version (e.g., 1.0): latest nightly

OS (e.g., Linux): WIndows 10, Visual Studio 19

How you installed PyTorch (conda, pip, source): downloaded prebuild libtorch

Build command you used (if compiling from source):

Python version:

CUDA/cuDNN version: the one included in the prebuild (cuda 10)

GPU models and configuration: Titan X

Any other relevant information:
Issue 1:
Environment

Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Title tab is very large, don't auto scale size. If I open many tab, i can't click "x" to close this tab (use exit command to exit)

There is many tab but can't see three tab

Expected behavior

Auto scale size title tab as chrome

Actual behavior

Hidden title tab

Issue 2:
Windows (Insider) Build is 10.0.17713.1002

I'm trying out the new pseudo terminal support, and capturing the output of a program that simply prints hello, world! to stdout produces the following:

�[2J�[?25l�[39m�[49m�[Hhello, world!��[?25h�[Hh�[Hh�[1;14H�[1;14H

Breaking this down:

0x1B[2J # clear screen??
0x1B[?25l # hide cursor
0x1B[39m # default foreground color
0x1B[49m # default background color
0x1B[H # move cursor home??
hello, world! #
0x08 # Backspace key??
0x1B[?25h # show cursor
0x1B[H # move cursor home??
h # print 'h' over the first char??
0x1B[H #
h # ...twice??
0x1B[1;14H # move cursor after printed text
0x1B[1;14H # ...twice??

Now some of these make sense, but a few I find confusing.

Why clear the screen? (Either the user provided an empty file or a pipe to the PTY, or they intended to collect more than once programs output - at worst the clearing is unnecessary, at worst unwanted)

Why move the cursor to the top left?

Where does the backspace control character come from?

Why is the first character (h) overwritten twice, are erroneously detected changes of the output buffer being rendered as VT sequences here?
Issue 1:
I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @....

Mentioning @blakeembrey, @andy-ms, @alecmerdler 😉

Code:

import React, { Component } from "react";
import { connect } from "react-redux";

import { RootState } from "@src/state/state";

interface Props {
normal: string;
optional?: number;
}
class TestComponent extends Component<Props> {
render() {
return <h1>Hello</h1>;
};
}
function mapStateToProps(_state: RootState) {
return {
normal: "test",
optional: 5,
};
}
const Connected = connect(mapStateToProps)(TestComponent);

Error:

[ts]
Argument of type 'typeof TestComponent' is not assignable to parameter of type 'ComponentType<{ normal: string; optional: number | undefined; } & DispatchProp<any>>'.
Type 'typeof TestComponent' is not assignable to type 'StatelessComponent<{ normal: string; optional: number | undefined; } & DispatchProp<any>>'.
Type 'typeof TestComponent' provides no match for the signature '(props: { normal: string; optional: number | undefined; } & DispatchProp<any> & { children?: ReactNode; }, context?: any): ReactElement<any> | null'.

The problem is when the optional prop is marked as optional - the TestComponent part of connect(mapStateToProps)(TestComponent); is reported red with above error code.

For unknown reasons the inferred type is StatelessComponent but TestComponent is a class.

When the prop is marked as optional: number|undefined all is ok, so it's a workaround for now.

Issue 2:
I just install the latest updates and I got a bunch of errors.

Using

"typescript": "^2.9.1"

"types/react-native": "^0.55.16",

cc: @VincentLanglet @alloy @tkrotoff

node_modules/@types/react-native/globals.d.ts:92:14 - error TS2300: Duplicate identifier 'RequestInfo'.

92 declare type RequestInfo = Request | string;
~~~~~~~~~~~

node_modules/@types/react-native/index.d.ts:8751:11 - error TS2451: Cannot redeclare block-scoped variable 'console'.

8751 const console: Console;
~~~~~~~

node_modules/@types/react-native/index.d.ts:8759:18 - error TS2717: Subsequent property declarations must have the same type. Property 'geolocation' must be of type 'Geolocation', but here has type 'GeolocationStatic'.

8759 readonly geolocation: Geolocation;
~~~~~~~~~~~

node_modules/@types/react-native/index.d.ts:8762:11 - error TS2451: Cannot redeclare block-scoped variable 'navigator'.

8762 const navigator: Navigator;
~~~~~~~~~

node_modules/typescript/lib/lib.dom.d.ts:15764:13 - error TS2451: Cannot redeclare block-scoped variable 'navigator'.

15764 declare var navigator: Navigator;
~~~~~~~~~

node_modules/typescript/lib/lib.dom.d.ts:15940:13 - error TS2451: Cannot redeclare block-scoped variable 'console'.

15940 declare var console: Console;
~~~~~~~

node_modules/typescript/lib/lib.dom.d.ts:15997:6 - error TS2300: Duplicate identifier 'RequestInfo'.

15997 type RequestInfo = Request | string;
~~~~~~~~~~~
Issue 1:
Challenge Name

.freecodecamp.com/challenges/record-collection

Issue Description

Even with the solution from the challenge guide the 2nd test does not pass

After updateRecords(5439, "tracks", "Take a Chance on Me"), tracks should have "Take a Chance on Me" as the last element.

Browser Information

tested on Windows 10 with firefox and edge and chrome

Your Code

// If relevant, paste all of your challenge code in here
function updateRecords(id, prop, value) {
if (prop === "tracks" && value !== "") {
collection[id][prop].push(value);
} else if (value !== ""){
collection[id][prop] = value;
} else {
delete collection[id][prop];
}

return collection;
}

Screenshot

![screenshot-www freecodecamp com 2016-06-07 21-32-40](https://cloud.githubusercontent.com/assets/1762608/15881945/89af329c-2cf7-11e6-8c0b-1d4a31a27c49.png)

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-use-comments-to-clarify-code has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Adding a <-- at the very first line of the code somehow added the --> at the very last line which triggered the "Go to my next challenge" button as if it was correctly completed.
Issue 1:
Start with:

volumeMounts:
- mountPath: /vol
name: vol
- mountPath: /vol-456
name: vol
subPath: d456

Edit to:

volumeMounts:
- mountPath: /vol
name: vol
- mountPath: /vol-d2
name: vol
subPath: d2

Read back what happened:

volumeMounts:
- mountPath: /vol-d2
name: vol
subPath: d2
- mountPath: /vol-456
name: vol
subPath: d456

It synthesized a COMPLETELY WRONG result. At this point, I can not, in good conscience, advocate using kubectl edit.

Can I please have kubectl edit --replace that doesn't go through patch brokenness. Or better, make that default for 1.5 and make kubectl edit --patch be the broken (but eventually fixed) path.

Issue 2:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): No.

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.): kubeadm kubelet

Is this a BUG REPORT or FEATURE REQUEST? (choose one): FEATURE REQUEST

Kubernetes version (use kubectl version):

[root@192 lib]# kubectl version
Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:10:32Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Cloud provider or hardware configuration: VMs

OS (e.g. from /etc/os-release): CentOS 7

Kernel (e.g. uname -a): Linux 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Install tools: kubeadm init

Others:

What happened:

ps aux | grep kubelet shows following:

root 9796 2.7 0.9 1089780 75944 ? Ssl 10月13 147:04 /usr/bin/kubelet --kubeconfig=/etc/kubernetes/kubelet.conf --require-kubeconfig=true --pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true --network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin --cluster-dns=100.64.0.10 --cluster-domain=cluster.local --v=4

Where can we configure the parameters for kubelet?

I have checked the source code of kubeadm but cannot find the correct place to change the configuration if kubelet.

What you expected to happen:

Specify the right place of customizing kubelet.

How to reproduce it (as minimally and precisely as possible):

No need to reproduce

@kubernetes/sig-cluster-lifecycle