WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I am glad to see the newly added einsum function. The documentation claims that its usage is the same as numpy. However, it can do almost nothing as compared to numpy. For example, it only supports subscripts in the form of '->'. Unfortunately, even matrix transpose does not work, i.e., 'ij->ji'.

Numpy works:

>>> A
array([[ 0.3828997 , -0.39114848, -0.09727838, -0.20430113],
[ 0.48020577, -0.47122706, 0.42830791, 0.25665744],
[-0.30885863, 0.21669025, 0.31648793, 0.22417514],
[ 0.32505724, 0.30478035, 0.48655034, 0.20040547]])
>>> einsum('ij->ji',A)
array([[ 0.3828997 , 0.48020577, -0.30885863, 0.32505724],
[-0.39114848, -0.47122706, 0.21669025, 0.30478035],
[-0.09727838, 0.42830791, 0.31648793, 0.48655034],
[-0.20430113, 0.25665744, 0.22417514, 0.20040547]])

Tensorflow does not work:

pseudo-code:
M_ = tf.Variable(tf.random_normal([4,4]))
N_ = tf.einsum('ij->ji',M_)
print [M_, N_]

output:
[array([[ 0.80474716, -1.38590837, -0.3379252 , -1.24965811],
[ 2.57852983, 0.05492432, 0.23039417, -0.74263287],
[-2.42627382, 1.70774114, 1.19503212, 0.43006262],
[-1.04652011, -0.32753903, -1.26430523, 0.8810069 ]], dtype=float32),
array([[ 0.80474716, -1.38590837, -0.3379252 , -1.24965811],
[ 2.57852983, 0.05492432, 0.23039417, -0.74263287],
[-2.42627382, 1.70774114, 1.19503212, 0.43006262],
[-1.04652011, -0.32753903, -1.26430523, 0.8810069 ]], dtype=float32)]

I want to multiply a matrix with every frame vector in every batch. Or similar operations which can be done by a simple tensor product. It seems that I still have to duplicate the matrix so many times and perform a batch_matmul, which is very inconvenient and slow and memory consuming.

I suggest tensorflow to implement either the tensordot or einsum function which can perform tensor product.

It is quite a shame that tensorflow cannot even perform basic tensor product so far :(

Issue 2:
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): 0.12.1

Python version: 2.7.10

Bazel version (if compiling from source): None

CUDA/cuDNN version: 5.1

GPU model and memory: 1080-Ti

Exact command to reproduce: None

Describe the problem

I'm trying to use Tensorflow in conjunction with PyTorch (I built the model in Tensorflow to generate vector representations and PyTorch trains on top of those). However, the problem is that PyTorch runs out of memory because TF will replicate the model in ALL available CUDA devices. In this case CUDA_VISIBLE_DEVICES is not helpful, and I tried GPU device tf.device("/gpu:0") but Tensorflow still fills up all GPUs' memory.

Is there some way to actually limit Tensorflow's GPU usage to one and free up the other for other DL libraries like PyTorch or Theano?
Issue 1:
Given this template, all translations are extracted twice.

Once for the correct translation domain (as specified by {% trans_default_domain %} and once wrongly for the default domain. This applies to the current template, its parent and the embedded one.

{% extends '::base.html.twig' %}

{% trans_default_domain "users" %}

{% block content_header %}
<h1>{{ 'heading.create'|trans }}</h1>
{% endblock %}

{% block content_layout %}
{# .. #}

{% embed ':Layout:content_full_size.html.twig'%}
{% trans_default_domain "users" %}

{# .. #}
{% endembed %}
{% endblock %}

Issue 2:
The Form class uses the FormEvent class, which extends the deprecated DataEvent class:

https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Form.php#L522

if ($dispatcher->hasListeners(FormEvents::PRE_BIND) || $dispatcher->hasListeners(FormEvents::BIND_CLIENT_DATA)) {
$event = new FormEvent($this, $submittedData);
$dispatcher->dispatch(FormEvents::PRE_BIND, $event);
// BC until 2.3
$dispatcher->dispatch(FormEvents::BIND_CLIENT_DATA, $event);
$submittedData = $event->getData();
}

FormEvent should not be used anymore, or it should be marked as being used for backwards compatibility until version 2.3.

This came up in #6180
Issue 1:
With this file

foo
bar
foo

foo
bar
foo

foo
bar
foo

Trying to find one of the blocks does not work, with cmd+F or cmd+D.

Issue 2:
Testing #4018

IMHO, there is a case not covered well enough. e.g.:

having Windows locale in English and wanting to run VSCode in Spanish.

or having Windows locale in Spanish and wanting to run VSCode in English.

The only way to do this now is to use a command line argument.

But especially in Windows, it is unusual to launch a UI app from the command line with arguments. E.g: taskbar, windows start button, double clicking a file associated with VSCode, right click open with VSCode.

I suggest some alternative means to define the locale besides the command line argument.
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1474 on 2011-07-08 by trac user jmerkin, assigned to trac user peridot.

I have been using masked arrays a lot in some of my analyses, but from what I have seen spatial.distance does not currently use the masks (converted to normal arrays). I have copied and modified a number of distance functions as well as spatial.distance.pdist to consider the masks when evaluating. I can contribute the code if it would be useful.

Issue 2:
At the moment pdist returns a distance matrix with a nan-entry whenever a vector with any nan-element is part of the respective pair. This is consistent with, for example, the R dist function, as well as MATLAB, I believe.

In my case, and I should think a few others' as well, there are very few nans in a high-dimensional space. I would thus only ignore the corresponding pairs of elements of the vectors. I have solutions for this problem both in Cython and directly in C, which mirrors the current scipy code. Is there a general interest in having this in scipy?

If the answer is yes, I will submit a pull request and then we just have to discuss the use of Cython or C or a mix of both.
Issue 1:
Thomas Risberg opened SPR-4215 and commented

Affects: 2.5 final

Issue Links:

#8971 JdbcTemplate uses a JDK 1.5 method, whereas it should be JDK 1.4.2 compatible ("is duplicated by")

Issue 2:
Björn Voß opened SPR-9059 and commented

Since 3.1 BeanWrapperImpl has a concurrent problem with properties which have only a getter method.

Please see my very simple maven project in the attached zip-file.

The main method of the Starter class produces 3 to 8 exceptions per run with the 3.1.0 and the latest SNAPSHOT of 3.1.1. But if you either uncomment the setter or got back to 3.0.7 it is absolute stable.

I suppose it has something to do with the new introduced ExtendedBeanInfo in CachedIntrospectionResults(L224) but I didn't get it right now.

Attachments:

fix_for_spr_9059.patch (818 bytes)

test_for_spr_9059.patch (1.85 kB)

test.zip (2.63 kB)

Issue Links:

#12995 Review ExtendedBeanInfo implementation ("duplicates")

#14663 Overhaul non-void JavaBean write method support

Referenced from: commits 4a8be69, 0ee1256

1 votes, 1 watchers
Issue 1:
In to matplotlib 1.3.x the following code:

import seaborn as sns
import pandas as pd
import numpy as np

x = pd.DataFrame(np.random.lognormal(size=(100, 6)), columns=list("abcdef"))
x.boxplot(sym="k.")

Produces:

In 1.4.2 I can't get the outliers to be shown?

[TAC edited to fix in-line version number]

Issue 2:
Inspired by #14980 (comment).

Current APIs:

pyplot.xticks(ticks=None, labels=None, **kwargs)

Axes.set_xticks(self, ticks, minor=False)
Axes.set_xticklabels(self, labels, fontdict=None, minor=False, **kwargs)

Notes:

The Axes methods are just thin wrappers around the Axis methods.

The kwargs are Text properties.

Issue

The Axes API feels a bit odd. AFAICS set_xticklabels does not make much sense without set_xticks before; otherwise how do I know that the labels will be at the correct places and that I have the right number of labels for the ticks.

Proposal

Extend the API of set_xticks to be

Axes.set_xticks(self, ticks, labels=None, minor=False, **kwargs)

maybe even with ticks=None to be compatible with the pyplot API - though I don't know if one needs the ability to set ticks without positions.

Soft-deprecate set_xticklabels. It's too widely used to be deprecated, but we shouldn't have two equal ways here.

Optionally add the minor kwarg to pyplot.xticks; it's not strictly necessary because pyplot may have less functionality than the OOP interface; but it doesn't hurt either.

The proposed signature would be an API-change because the minor argument might have been passed positionally. Thus, we should start with _make_keyword_only on that parameter.
Issue 1:
Saw this on the query-refactoring branch today, since we did some changes in Geo recently we need to check if this is only on the feature branch and what changed here:

http://build-us-00.elastic.co/job/es_feature_query_refactoring/8998/

Geohash w has wrong centroid expected:<[27.677337714038913, 119.06734793896817]> but was:<[27.677337303757668, 119.06734686344862]>

Stacktrace

java.lang.AssertionError: Geohash w has wrong centroid expected:<[27.677337714038913, 119.06734793896817]> but was:<[27.677337303757668, 119.06734686344862]>

at __randomizedtesting.SeedInfo.seed([8282B3A257119F6E:1EB05A4306CC780]:0)

[...]

Issue 2:
I believe this is related to #13433 and fails reliably with the following:

mvn verify -Pdev -Dskip.unit.tests -pl org.elasticsearch:elasticsearch -Dtests.seed=29C485CE4EDC48CE -Dtests.class=org.elasticsearch.search.aggregations.bucket.GeoHashGridIT -Dtests.method="simple" -Des.logger.level=DEBUG -Des.node.mode=network -Dtests.assertion.disabled=false -Dtests.security.manager=true -Dtests.heap.size=512m -Dtests.locale=lv_LV -Dtests.timezone=Pacific/Auckland
Issue 1:
I've filed a new feedback item on the Azure Resource Manager (ARM) JSON Schema project page, although I believe this might have to do with how Visual Studio Code handles JSON schema validation.

Azure/azure-resource-manager-schemas#68

I'm being told that Microsoft.Storage/storageAccounts isn't a valid top-level ARM Resource Type.

Cheers,

Trevor Sullivan

Microsoft MVP: PowerShell

Issue 2:
The error in following JSON against schema is: "resources\properties\osProfile\computername" should be "computerName".

But VS Code shows two errors here:

on "Microsoft.Compute/virtualMachines", error message is: Value is not an accepted Value. Valid values: ["Microsoft.Network/publicIPAddresses"]

on “properties", error message is: Missing property "publicIpAllocationMethod"

It would be good if the error can be on the "computename" or at lease on "osProfile" about missing required property "computerName", ("computerName" is a required property according to schema)

JSON example:

{

"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",

"contentVersion": "1.0.0.0",

"resources": [

{

"apiVersion": "2015-06-15",

"type": "Microsoft.Compute/virtualMachines",

"name": "a",

"location": "West US",

"properties": {

"hardwareProfile": {

"vmSize": "Small"

},

"osProfile": {

"computername": "a",

"adminUsername": "a",

"adminPassword": "a"

},

"storageProfile": {

"imageReference": {

"publisher": "a",

"offer": "a",

"sku": "a",

"version": "latest"

},

"osDisk": {

"name": "osdisk",

"vhd": {

"uri": "[concat('http://', 'b','.blob.core.windows.net/',variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]"

},

"caching": "ReadWrite",

"createOption": "FromImage"

}

},

"networkProfile": {

"networkInterfaces": [

{

"id": "[resourceId('Microsoft.Network/networkInterfaces',variables('nicName'))]"

}

]

},

"diagnosticsProfile": {

"bootDiagnostics": {

"enabled": "true",

"storageUri": "[concat('http://',parameters('newStorageAccountName'),'.blob.core.windows.net')]"

}

}

}

}

]

}
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes

Symfony version
v3.2.4

After update to v3.2.4 the inheritance of templates from parent bundle does not work. Create a loop and the application crash.

e.g.

I have a bundle called AdminBundle, with

public function getParent()
{
return 'SonataAdminBundle';
}

and override some templates:

delete.html.twig:

{% extends '@SonataAdmin/CRUD/delete.html.twig' %}

The above code works fine before the update, with: "version": "v3.2.1", but not with current version.

Issue 2:
This feature has been asked by lots and lots of users in #15755, #17054 and #17407.

Problem

You have installed MyBundle which contains this template:

{# MyBundle/Resources/views/base.html.twig #}
{% block title '...' %}

{% block content %}
{# a lot of contents here #}
{% endblock %}

You override that template in your app by creating app/Resources/MyBundle/views/base.html.twig.

In your own template, you want to override just the title block and reuse the original content block.

{# app/Resources/MyBundle/views/base.html.twig #}
{% extends 'MyBundle::base.html.twig' %}

{% block title 'New title' %}

This won't work and Symfony will show a "reached nested level" error. The only current solution is to copy+paste the entire original template (and keep it in sync forever if the bundle changes it).

Solution

People asking for this feature suggest to add a new notation to tell Twig/Symfony that you want to override the original template, not your copy:

{# app/Resources/MyBundle/views/base.html.twig #}
{% extends '!MyBundle::base.html.twig' %}

{% block title 'New title' %}

Some people (e.g. @jakzal) don't like the new notation. The problem is that ! always mean "not", so it can be read as "don't extend ...".

Since Twig prefers expressive syntax, maybe we could use a word to enable the special extends behavior?

{# app/Resources/MyBundle/views/base.html.twig #}
{% extends original 'MyBundle::base.html.twig' %}

{% block title 'New title' %}

Comments? Thoughts? Better ideas? Thanks!
Issue 1:
Description of the new feature/enhancement

Like any desktop application, double-clicking the title bar should either maximize or minimize the window.

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): Early Preview Build

Steps to reproduce

Put your mouse cursor on the window's topmost coordinate just above tabs and click.

Expected behavior

I tried to cilck the tab by doing so. It's time consuming to accurately pointing at the tab area. Most of the time users including me just throw mouse cursor at the topmost and click.

Actual behavior

Tab isn't being clicked because there are space on top of the tab. This is bad UX in my opinion. Space above tab should be removed and should be occupied by the tab all the way to the top.
Issue 1:
Application dump saved if needed. Zones duplicate on monitor disconnect and may even pile up more and more the more it is disconnected and reconnected. Closing PowerToys and reopening fixes the issue until a monitor is disconnected again. Adding monitors does not have the same effect, it appears to be specifically removing monitors.

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.388]
PowerToys version: 0.19.1
PowerToy module for which you are reporting the bug (if applicable): Fancy Zones

Steps to reproduce

Disconnect a monitor. Zones will be duplicated on any remaining monitors and if the monitor is re-connected zones will come back but also be duplicated.

Expected behavior

Zones should remain as single units and not be duplicated. Windows key left/right should cycle the zones per monitor, or if zones are numbered globally in the future through those zones as numbered.

Actual behavior

Zones are duplicated, potentially many times. Windows key left/right also goes a little crazy in the order of zones it goes through.

Screenshots

Issue 2:
Can PowerToys will installed from Windows Store ?

PowerToys is becoming a must need App for a Windows 10 PC but why it isn't available to Windows Store ? We can get more installs & ratings from store . We can deploy it to the Windows store for installation . I bet you it will be the most rated app in Entire Windows Store in Utilities and PC management Category ?

Any thoughts ? Thank you ?
Issue 1:
resizable and always-on-top properties do not work correctly. BrowserWindow is appeared properly but properties are not applied. Tested on Ubuntu 12.04 precise and Ubuntu 14.04 trusty

dummyWindow = new BrowserWindow({
'title': data.question,
'always-on-top': false,
'resizable': false,
'width': 500,
'height': 216,
'frame': true,
})

Small window from the right is set to be {always-on-top: true, resizable: false}

Issue 2:
Code like this does not work on ubuntu 14.04, the window size can be customized by dragging the edge.

// Create the browser window.
mainWindow = new BrowserWindow({
width: 800,
height: 480,
resizable: false
});

Note:We are using node.js v0.11.14 and atom-shell 0.19.5.
Issue 1:
Describe the bug

When using axios.create, if I pass a custom property it is not being visible on the interceptors.

To Reproduce

Something like:

const instance = axios.create({
baseURL: 'http://myurl.com',
withCredentials: false,
loader: true // Custom property
});

instance.interceptors.request.use(
config => {
console.log('request', config); // Does not show the "loader" property

if (config.loader) {
showLoader();
}

return config;
}
);

Expected behavior

It should be available for further use on the interceptors, because the same code is working on version 0.18.1.

Environment

Axios Version: 0.19.1 and 0.19.2

Additional context/Screenshots

Please let me know if I'm doing this wrong, and there's a new way to do.

Issue 2:
Describe the bug

Custom settings are not persisted to each request

To Reproduce

var axios = require('axios')
var axios2 = axios.create({retry: true});
// should log "Retry is true"
axios2.interceptors.request.use(request => console.log('Retry is ' + request.retry));
axios2.get('http://www.blankwebsite.com/');

Expected behavior

Custom default parameters should be persisted to each request.

Environment:

Axios Version [hash a17c70c]
Issue 1:
Environment

Windows build number: 18965
Windows Terminal version: Dev Build

Steps to reproduce

Open Windows Terminal

Expected behavior

Open default tab

Actual behavior

After open Windows Terminal (Dev Build), Windows Defender detect a suspicious behavior, and block the execution

Windows Defender Message:

Behavior:Win32/Generic.WR!ml

Alert level: Severe

Status: Quarantined

Date: 08/27/2019

Category: Suspicious behavior

Details: This program is dangerous and Executes commands from attacker

Affected items: file:

appmodel: WindowsTerminalDev_0.0.1.0_x64__8wekyb3d8bbwe

file: C:\Users\rodoa\source\repos\WindowsTerminal\terminal\src\cascadia\CascadiaPackage\bin\x64\Debug\AppX\conhost.exe

Note: I compiled and deployed 8 hours ago and it ran fine, but I opened it (from start menu) again a few minutes ago and W.D. alerted of the thread

Issue 2:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2762.0

Steps to reproduce

Prefer bar or box cursor shape for more prominent behavior.

Produce more than a screenful of output so that the cursor is in the bottom row.

Resize the window so that there's a noticeable gap (a partial row) under the bottom text row.

Again make sure that the cursor is in the bottom row.

When the cursor is visible (that is, not in "off" state while blinking), scroll back by exactly 1 line e.g. by hitting Ctrl+Shift+Up.

Expected behavior

Option 1: Hide the cursor.

Option 2: Display the partial cursor, and display the corresponding line of the terminal buffer too in this partial row. Also, make sure the cursor keeps blinking as desired.

Actual behavior

The cursor is displayed in the partial bottom row (although no text is printed here – the next prompt in case of this screenshot). Furthermore, it stops blinking.
Issue 1:
Hey there,

I've used a simple for...of statement in my JSX file, but the output breaks Safari (8.0.7). Works fine in Chrome and Firefox. The error message is "ReferenceError: Can't find variable: Symbol" and I indeed can't find any reference to Symbol in the file. Might be a missing polyfill?

This is the original code:

for (let block of blocks) {
this.createColourBlockScene(scrollController, pageReference, block.blockReference, block.hexColour1, block.hexColour2);
}

Which gets transpiled into this:

var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

try {
for (var _iterator = blocks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var block = _step.value;

_this.createColourBlockScene(scrollController, pageReference, block.blockReference, block.hexColour1, block.hexColour2);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}

In case you need it, this is the array I'm looping through:

let blocks = [
{
blockReference: React.findDOMNode(this.refs.blockClient),
hexColour1: '6114CC',
hexColour2: '6A86EC'
},
{
blockReference: React.findDOMNode(this.refs.blockOwnStuff),
hexColour1: '6A86EC',
hexColour2: '3F63D9'
},
{
blockReference: React.findDOMNode(this.refs.blockVenture),
hexColour1: '3F63D9',
hexColour2: '143FCC'
},
{
blockReference: React.findDOMNode(this.refs.blockStudio),
hexColour1: '143FCC',
hexColour2: 'FFBF02'
},
];

Issue 2:
Choose one: is this a bug report or feature request?

Bug report

Input Code

https://babeljs.io/repl/#?babili=false&evaluate=true&lineWrap=false&presets=es2015%2Ces2016%2Ces2017&targets=&browsers=ie%2011&builtIns=false&code=function%20logged(errorName%2C%20functionName%2C%20asyncFn)%20%7B%0D%0A%20%20return%20async%20(...params)%20%3D%3E%20%7B%0D%0A%20%20%20%20try%20%7B%0D%0A%20%20%20%20%20%20return%20await%20asyncFn(...params)%3B%0D%0A%20%20%20%20%7D%20catch%20(rejection)%20%7B%0D%0A%20%20%20%20%20%20logEvent(errorName%2C%20functionName%2C%20rejection)%3B%0D%0A%20%20%20%20%20%20throw%20rejection%3B%0D%0A%20%20%20%20%7D%0D%0A%20%20%7D%3B%0D%0A%7D%0D%0A%0D%0Afunction%20logged2(errorName%2C%20functionName%2C%20asyncFn)%20%7B%0D%0A%20%20return%20async%20function%20(...params)%20%7B%0D%0A%20%20%20%20try%20%7B%0D%0A%20%20%20%20%20%20return%20await%20asyncFn(...params)%3B%0D%0A%20%20%20%20%7D%20catch%20(rejection)%20%7B%0D%0A%20%20%20%20%20%20logEvent(errorName%2C%20functionName%2C%20rejection)%3B%0D%0A%20%20%20%20%20%20throw%20rejection%3B%0D%0A%20%20%20%20%7D%0D%0A%20%20%7D%3B%0D%0A%7D

Expected Behavior

The rest parameters should work with async + arrows. (first example)

Current Behavior

The rest parameters are lost, the function is called with wrong parameters. (second example)