WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Right now StorageImpl records a dtype. We should remove the dtype and store bytes directly. Non-POD dtypes should still support custom destruction, but that is built on top of an otherwise untyped representation. Representing storage impls in an untyped way means that we can reinterpret cast tensors, e.g., view a float tensor as a complex tensor.

In the user side we still expose ByteStorage/LongStorage; these should either be eliminated from Python, or implemented as wrappers that know dtype.

cc @ezyang @gchanan @zou3519 @anjali411 @dylanbespalko

Issue 2:
🐛 Bug

I'm able to create a torch.Tensor from a list of numpy arrays, but I'm not able to create torch.Tensor from a list of torch.Tensors, raising:

ValueError: only one element tensors can be converted to Python scalars

To Reproduce

Steps to reproduce the behavior:

This code raises above error:

tensors_list = [torch.Tensor(1,3), torch.Tensor(1,3)]
list_to_tensor = torch.Tensor(tensors_list)

While this code works fine:

np_list = [np.random.rand(1,3), np.random.rand(1,3)]
list_to_tensor = torch.Tensor(np_list)

Environment

PyTorch version: 1.5.0

Is debug build: No

CUDA used to build PyTorch: 10.2

OS: Ubuntu 20.04 LTS

GCC version: (Ubuntu 9.3.0-10ubuntu2) 9.3.0

CMake version: Could not collect

Python version: 3.8

Is CUDA available: Yes

CUDA runtime version: Could not collect

GPU models and configuration: GPU 0: GeForce MX150

Nvidia driver version: 440.82

cuDNN version: Could not collect

Versions of relevant libraries:

[pip3] numpy==1.18.4

[pip3] torch==1.5.0

[pip3] torchtext==0.6.0

[pip3] torchvision==0.6.0

[conda] Could not collect

Additional context

This is probably very minor bug, not sure if I should've posted it here, but I'm too much of a beginner to judge so here it is.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-create-bootstrap-wells has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

1- not clear statement "Add two div elements inside your div class="well"> element both with the class col-xs-6"

2 - the code checker works also if i put 2 <divs class=well" inside the first

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-create-bootstrap-wells has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
Issue 1:
Migrated issue, originally created by Adrian (@thiefmaster)

I have the following code: https://gist.github.com/ThiefMaster/9cea43683142912e5ffb0fa3b5d8d0a9

It fails with a circular dependency error even though there is only a change to p (however, both p and gal show up in

sess.dirty when I print it right before the commit, but is_modified only returns True for p).

It also works fine if I uncomment the expire call - but of course that's an awful workaround. post_update=True on the gallery

relationship also does the job but it seems like an SQLAlchemy bug to me since there's only one object with changes which can be flushed/committed just fine if I do

a manual expire...

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

i.e. when doing "whos-dependent-on-who", if both instances are already persistent, there should be no dependency between them and post_update should not be needed. ex:

from sqlalchemy import *
from sqlalchemy.orm import *

meta = MetaData(create_engine('sqlite://'))

contacts = Table('contacts', meta,
Column('id', Integer, primary_key=True),
Column('name', String(50)),
Column('created_by', Integer),
Column('updated_by', Integer),
ForeignKeyConstraint(['created_by']('created_by'), ['contacts.id']('contacts.id')),
ForeignKeyConstraint(['updated_by']('updated_by'), ['contacts.id']('contacts.id'))
)

meta.create_all()

class Contact(object):
def __init__(self, name, created_by=None):
self.name = name
self.created_by = created_by

def __eq__(self, other):
return other.name == self.name

def __repr__(self):
return "Contact(created_by=%r, updated_by=%r)" % (self.created_by, self.updated_by)

mapper(Contact, contacts, properties={
'_created_by': contacts.c.created_by,
'_updated_by': contacts.c.updated_by,
'created_by': relation(Contact, primaryjoin=contacts.c.created_by==contacts.c.id,
remote_side=[contacts.c.id](contacts.c.id)),
'updated_by': relation(Contact,primaryjoin=contacts.c.updated_by==contacts.c.id,
remote_side=[contacts.c.id](contacts.c.id),
backref=backref('updated_by_me', primaryjoin=contacts.c.updated_by==contacts.c.id),
)
})

sess = create_session()

c1 = Contact('c1')

c2 = Contact('c2', created_by=c1)
c3 = Contact('c3', created_by=c1)
c3.updated_by = c2

sess.save(c1)
sess.save(c2)
sess.save(c3)
sess.flush()

c2.updated_by = c1
c3.updated_by = c1
sess.flush()

c2.updated_by=c3
c3.updated_by = c2
sess.flush() # <--- fails. no INSERTs are happening here so UPDATEs should handle it fine
Issue 1:
Bug Report

Current Behavior

I upgraded to Babel 7.4.0 and core-js 3.

I need to include some global Polyfills due to dependencies requiring them (for example React requires Symbol).

I am using useBuiltIns: "usage" in my env config.

Many polyfills end up being duplicated in my Webpack bundle because they get imported once from core-js@3 due to my globally-polluting imports, and once again from core-js-pure@3 from the preset-env imports.

Expected behavior/code

I am not really sure what the expected behaviour would be here, but I expect my bundle to now grow in size because I am using core-js@3.

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

presets = [
"@babel/preset-typescript",
"@babel/preset-react",
[
"@babel/preset-env",
{
useBuiltIns: "usage",
corejs: 3,
},
],
]

plugins = [
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties",
["@babel/plugin-transform-runtime", { regenerator: false, corejs: 3 }],
]

module.exports = { presets, plugins }

Environment

Babel version(s): 7.4.0

Node/npm version: 11.11.0 / 6.7.0

OS: OSX 10.14.2

Monorepo: no

How you are using Babel: loader

Issue 2:
Issue originally made by @skorlir

Bug information

Babel version: 6.10.1

Node version: 6.2.0

npm version: 3.8.9

Description

See [[ https://github.com/skorlir/babel-bug-custom-errors | minimal reproduction ]] on GitHub. With a very basic babel setup, if you compile code that looks like

class RequiredError extends Error {
constructor (requiredField, actualValue) {
super(`[validator error]: ${requiredField} is required but got ${actualValue}.`)
}
}

you get resulting ES5 that, although it imports correctly in the Node REPL, will not work with instanceof.

Here are reproduction commands (from the root directory of the minimum reproduction repo):

$ babel app/support/errors.js > errors.js
$ node
> const RequiredError = require('./errors').RequiredError
undefined
> try { throw new RequiredError() } catch (e) { e instanceof RequiredError }
false
>

Note that TypeScript compiles this correctly. If I change the extension of the file from js to ts (mv app/support/errors.js app/support/errors.ts), and then run tsc -m commonjs --outDir . app/support/errors.ts, the output file works correctly when required into the Node REPL and used exactly as above.

Also note that there is a failing test case already written in the minimum reproduction. All you need to do to run it is run npm i && npm test as it states in the README.
Issue 1:
open a folder that contains code of an extension

debug the extension

close the extension window (debugger connection correctly gets closed)

in the window switch to a different folder

Warning appears

'There is a task running. Do you want to terminate it'

It is not clear to me what task that is. At the very least it could show the name of the task.

Issue 2:
It would be great if VS Code's "command" property of a keyboard binding could be configued as an array of actions to perform.

For example, some requests (#3588 for one) would be moot if cmd+s could be configured to execute HookyQR.beautify then workbench.action.files.save.
Issue 1:
As of today specifying ES6 as a module format to transpile to with ES5 as a target will result in the "error TS1204: Cannot compile modules into 'es2015' when targeting 'ES5' or lower." error.

But having ES6 modules in the ES5 output would be beneficial for ES6-based tree-shakers like Rollup.

Currently one can ES5 output with ES6 modules by using ts.transpileModule(...) but the output is broken in some cases. For example transpiling:

ts.version // 1.7.4
ts.transpileModule('export class A {}', {
compilerOptions: {
target: ts.ScriptTarget.ES5,
module: ts.ModuleKind.ES6
}
})

yields:

var A = (function () {
function A() {
}
return A;
})();
A = A;

Notice: A = A; which should probably be export { A };

In-depth discussion and more examples in rollup/rollup-plugin-typescript#9

Given the above I've got a question: do you plan to support ES6 modules for ES5 output? If not are you planning to provide a TS-specific tree-shaking bundler?

Issue 2:
Possible duplicate of #7148, but it seems like it should be working according to #6742.

TypeScript Version:

1.8.7

Code

File: 1.d.ts

declare module 'm1' {
function x (): x.Test;

namespace x {
export interface Test {
prop1: boolean;
}
}

export = x;
}

File: 2.ts

/// <reference path="./1.d.ts" />

import m1 = require('m1');

declare module 'm1' {
interface Test {
prop2: boolean;
}
}

m1().prop2 // `prop2` does not exist on type `Test`.

Expected behavior:

Interfaces should merge, giving me access to prop2.

Actual behavior:

No prop2 on interface Test.
Issue 1:
If a responsive navbar (i.e., with a collapse data-toggle, etc, as in the examples) lacks a brand element, then the menu items are not positioned correctly on a small screen, instead appearing too high, with pull-right menu items partially overlaying the nav-collapse button.

The presence of a navbar-brand element, even an empty one, seems to avoid the issue.

Issue 2:
Hi,

I test version 3.0 RC1. I have a problem when I hive my website with my mobile. In Fact when I am on my home page and show my menu I don't hidden this menu. Why ? Because de first item on the nav is "active" and the button (show/hid) is in background.

I hope that I am clear.

best regards,

Lefandordinateur
Issue 1:
I found this #1655 but it was closed without a real answer and it links to a spec doc that people ask about it in the comments but I do not see anyone answering why it's omitted in the spec.

const first = Symbol();
const second = Symbol();

class Foo {
// This works
[first]() {}
// This does not
[second] = {};
}

repl: Unexpected token (6:11)
4 | class Foo {
5 | [first]() {}
> 6 | [second] = {};
| ^
7 | }

REPL

Cc/ @jeffmo

Issue 2:
The class property names can only be identifiers while the name of the methods can also be declared with ["name-of-method"] syntax. Should the two specifications be consistent?

class A {
["my-property"] = 5; // Not valid syntax
["my-method"]() { } // Valid syntax
}
Issue 1:
System information (version)

OpenCV => 4.2.0

Operating System / Platform => Linux x86 (cross compiling to ARMv7)

Compiler => GNU 8.2.1

Detailed description

opencv/modules/videoio/cmake/detect_ffmpeg.cmake

Line 27
in
8808aac

if(NOT HAVE_FFMPEG AND PKG_CONFIG_FOUND)

PKG_CONFIG_FOUND here is always false, since include(FindPkgConfig) was never called after the fix in #14426.

Steps to reproduce

Run cmake with -DWITH_FFMPEG=ON after setting the environment variable PKG_CONFIG_PATH to the target dir.

Result:

-- Video I/O:
-- DC1394: NO
-- FFMPEG: NO
-- avcodec: NO
-- avformat: NO
-- avutil: NO
-- swscale: NO
-- avresample: NO

After adding include(FindPkgConfig):

-- Video I/O:
-- DC1394: NO
-- FFMPEG: YES
-- avcodec: YES (58.54.100)
-- avformat: YES (58.29.100)
-- avutil: YES (56.31.100)
-- swscale: YES (5.5.100)
-- avresample: NO

Issue 2:
System information (version)

OpenCV => 3.4.0

Operating System / Platform => Windows 64 Bit

Compiler => Visual Studio 2017 Express

Detailed description

Various problems with the coding of SBM_Sample.cpp.

Quoted from here:

The default images should be changed from the rubberwhale images (optical flow test images) to rectified left and right images (e.g. aloeL.jpg and aloeR.jpg).

An appropriate minDisparity and numDisparities should be updated to match the new default images. (e.g. numDisparities = 16x10 instead of 16x5)

Program ignores its image parameters - if this is intentional, then remove mention of parameters. If it is not, then add and test support for them.

Any references to the example should be found and updated, and if there's a test that runs this program, the test should be updated as well.

Steps to reproduce

Look at the code of SBM_Sample.cpp
Issue 1:
Currently using Celery 4.1.0

Steps to reproduce

Start a new project using RabbitMQ and register the following task:

from django.core.cache import cache

@shared_task(bind=True)
def test_1(self):
if not cache.add(self.request.id, 1):
raise Exception('Duplicated task {}'.format(self.request.id))

Now start 2 workers. I used gevent with a concurrency of 25 for this test:

celery worker -A my_proj -Q my_queue -P gevent -c 25

Open a python shell and fire a a bunch of tasks:

from myproj.tasks import test_1

for i in range(10000):
test_1.apply_async()

Now quickly do a warm shutdown (Ctrl+c) in one of the workers while it's still processing the tasks, you should see the errors popping in the second worker:

ERROR Task my_proj.tasks.test_1[e28e6760-1371-49c9-af87-d196c59375e9] raised unexpected: Exception('Duplicated task e28e6760-1371-49c9-af87-d196c59375e9',)
Traceback (most recent call last):
File "/code/virtualenv/CURRENT/lib/python3.5/site-packages/celery/app/trace.py", line 374, in trace_task
R = retval = fun(*args, **kwargs)
File "/code/virtualenv/CURRENT/lib/python3.5/site-packages/celery/app/trace.py", line 629, in __protected_call__
return self.run(*args, **kwargs)
File "/code/scp/python/my_proj/tasks.py", line 33, in test_1
raise Exception('Duplicated task {}'.format(self.request.id))
Exception: Duplicated task e28e6760-1371-49c9-af87-d196c59375e9

Expected behavior

Since I am not using late acknowledgment and I am not killing the workers I wasn't expecting the tasks to execute again.

Actual behavior

The tasking are being executed twice, this is causing some problems in our servers because we restart our works every 15 minutes or so in order to avoid memory leaks.

Issue 2:
def reset_connection(self):

"""Re-establish the broker connection and set up consumers,

heartbeat and the event dispatcher."""

###################### Added code ###########################################

listening_queues = self.task_consumer.queues and self.task_consumer.queues or None

.......

self.task_consumer = self.app.amqp.TaskConsumer(self.connection, queues=listening_queues,
on_decode_error=self.on_decode_error)

I read the logic of reset_connection, find out the consumer only recover the queue sent to it when initializing.

But the queue added with celery.control.broadcast("add_task_queue") will be lost forever.
Issue 1:
When storing a DataFrame using HDFStore the datetime information is altered. My guess is that there is some problem with daylight saving and time zones when the DataFrame is loaded from the h5 file. An example:

In [1]: from pandas import *

In [2]: df = DataFrame([0,1], [datetime(2011, 3, 27, 2, 2, 2),datetime(2011, 3, 27, 3, 2, 2)])

In [3]: s = HDFStore("test.h5")

In [4]: s["test"] = df

In [5]: df
Out[5]:
0
2011-03-27 02:02:02 0
2011-03-27 03:02:02 1

In [6]: s["test"]
Out[6]:
0
2011-03-27 03:02:02 0
2011-03-27 03:02:02 1

Issue 2:
E.g. for reindex on panel

elp on method reindex in module pandas.core.generic:

reindex(self, *args, **kwargs) method of pandas.core.panel.Panel instance
Conform DataFrame to new index with optional filling logic, placing
NA/NaN in locations having no value in the previous index. A new object
is produced unless the new index is equivalent to the current one and
copy=False

Parameters
----------
axes : array-like, optional (can be specified in order, or as keywords)
New labels / index to conform to. Preferably an Index object to
avoid duplicating data
method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None
Method to use for filling holes in reindexed DataFrame
pad / ffill: propagate last valid observation forward to next valid
backfill / bfill: use NEXT valid observation to fill gap
copy : boolean, default True
Return a new object, even if the passed indexes are the same
level : int or name
Broadcast across a level, matching Index values on the
passed MultiIndex level
fill_value : scalar, default np.NaN
Value to use for missing values. Defaults to NaN, but can be any
"compatible" value
limit : int, default None
Maximum size gap to forward or backward fill
takeable : boolean, default False
treat the passed as positional values

Examples
--------

Functions that need parameters list/explanation:

swapaxes

pop [what does 'items' mean?]

Functions that only need list of axes:

filter [need to check if it should be defined for Series at all]

fillna [Series, Frame]

reindex_axis [needs class name + axes]

rename [might need a bit more logic to do docstring + note that args interpreted like axes??]

transpose

Functions needing a little work:

reindex

needs to have panel check that both major and major_axis aren't passed, same with minor and minor_axis (like SparsePanel does)

would be better if there were individual functions for Series Frame and Panel that explicitly enumerate axes in type signature.

Functions that may not need to be changed:

align

Functions that could use slight wording tweaks:

truncate

where

mask
Issue 1:

Issue 2:
http://plnkr.co/edit/5731Z9N6tQ391gQtfZrA?p=preview

I've been over the documentation 10 times, I've read through the source code, tutorials, the works... and I still can't wrap my head around what I'm doing wrong.

all I want to do is:

<app myTitle='my awesome title'>

and access myTitle from inside the constructor.

Is that possible in NG2?
Issue 1:
TypeScript Version:

1.8 (From the site)

Code

// A self-contained demonstration of the problem follows...

Expected behavior:

when I open a vs 2015 command prompt and type tsc.exe -v it should say the latest version.

Actual behavior:

It shows an older version.

Issue 2:
Hello,

I have upgraded typescript to the latest 1.6 release by downloading the VS 2015 installation here: http://www.typescriptlang.org/#Download

However if I open up command prompt and do tsc --version I get 1.5.3

The reason I am suspecting this may be a problem is because when I have a tsconfig.json in my project:

{
"compilerOptions": {
"module": "AMD",
"target": "ES5",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"sourceMap": true,
"listFiles": true,
"noEmitOnError": true,
"outDir": "../wwwroot/dist",
"outFile": "tscompiled.js"
},
"files": [
"app.ts"
]
}

and this is the file

/// <reference path="../typings/tsd.d.ts" />
/// <reference path="../typings/es6.d.ts" />
/// <reference path="../typings/core-js.d.ts" />
import {Router} from "aurelia-router";

// my comment!
module Dazinator {
export class App {
constructor() {
this.message = "Welcome To Daz's World ya!"
}
message: string;
}
}

When I build the VS solution, I get an empty 'tscompiled.js' file produce - with a source mapping directive:

//# sourceMappingURL=tscompiled.js.map

If I do a compile form the command line it says it doesn't recognise the outFile argument

![image](https://cloud.githubusercontent.com/assets/3176632/10107159/19dbf5be-63b1-11e5-8ecc-c72709ecb3c9.png)

Looking at the docs - it says outFile is to be used as out is deprecated: https://github.com/Microsoft/TypeScript/wiki/Compiler-Options

Any help would be appreciated!
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.7

Operating System version: macOS 10.15.3

Java version: 1.8.0_11

It is recommended to add a default constructor, otherwise some serialization tools like kryo cannot work well

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.2

Java version: 1.8

Steps to reproduce this issue

//泛化调用，异步
ref.$invoke(callMethod, typeArrays, objectArrays);

//2.7.1正常，2.7.2出现npe
String uri = RpcContext.getContext().getUrl().toFullString();
event.setTotalUri(uri);

Future<Object> result = RpcContext.getContext().getFuture();

上面同一段代码，2.7.1的时候没有问题， 2.7.2 RpcContext.getContext().getUrl().toFullString();会出现npe
Issue 1:
When you choose to customise bootstrap before downloading it from here:

http://getbootstrap.com/customize/

The complied CSS for both bootstrap.css and bootstrap.min.css is WRONG.

The CSS declaration for the .fade.in opacity is placed at the bottom on each CSS script, meaning when you open the Modal this element:

Takes on this CSS :

.fade.in {

opacity: 1;

}

Instead of what it is supposed to be:

.modal-backdrop.in {

opacity: 0.5;

filter: alpha(opacity=50);

}

This is because the .fade.in declaration is below the modal-backdrop CSS.

With the normal bootstrap complied download (meaning non-customised version) is fine, and works as expected. Just not the custom one.

Cheers,

Alice.

Issue 2:
Hi!

I just generated a customized version and the modal background is totally black (I also generated a version without any change to be sure it wasn't me that caused that):

The download link on the home page does have transparency:
Issue 1:
I notice that pressing the stop button in debug no longer seems to close the extension host window, at least sometimes. Did something change here in the protocol?

I only see it sporadically so I wonder if this is some timing issue.

Also @weinand fyi

Issue 2:
VSCode Version: 1.3.0 insiders

OS Version: Windows 10

Steps to Reproduce:

run mock-debug as an extension

terminate debug session

Observe: extension host window doesn't always disappear