WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Running unit tests in non-Chrome browsers raised some doubts about this API which is currently used in the Date and Currency pipes.

To start with, it is not supported in all Safari versions (desktop and mobile) and older browsers:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl

http://caniuse.com/#search=intl

Then, on browsers which support it, the result doesn't match what Chrome does.

On Firefox, one of the test fires this 2 years old bug: https://bugzilla.mozilla.org/show_bug.cgi?id=866372

On IE11, most tests are failing due to discrepancies in output (formatting, white space, special chars,etc).

At the end of the day, it seems only reliable in Chrome, but it is also difficult to polyfill.

So, if anyone has a good solution to that, please speak up!

Issue 2:
Suggested by @munificent

/cc @yjbanov , @tbosch, @vsavkin

So in this situation templateUrl could be omitted:

button.dart

@Component(
selector: '[my-button]',
templateUrl: 'button.html'
)
MyButton {}
Issue 1:
Description of the problem

When loading the animated handsWithPlane.gltf file found here: https://www.dropbox.com/sh/dvprkyj2ly782jn/AABLjwQLiOSWfr2VDdtlzjYCa?dl=0

The plane, which should not be animated, seems to be taking animation values from the hands, even though the plane is not attached to any skeleton.

There are two additional test models in the folder, which are isolated versions of the animated hand and non-animated plane.

Three.js version

Dev

r84

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

Linux

Android

IOS

Issue 2:
If you load a model using OBJLoader -- a Stanford Bunny for example -- and apply a matrix translation like so:

geometry.applyMatrix( new THREE.Matrix4().makeTranslation( 0, -0.01, 0 ) );

this is what you get:

Poor bunny.

There are two issues here:

Issue 1. In this example, 2503 vertices in the data file result in 14904 vertices in the mesh.

This is because vertices are replicated -- each face is assigned three unique vertices:

geometry.vertices.push(
vertices[ parseInt( result[ 1 ] ) - 1 ],
vertices[ parseInt( result[ 2 ] ) - 1 ],
vertices[ parseInt( result[ 3 ] ) - 1 ]
);

geometry.faces.push( face3(
verticesCount ++,
verticesCount ++,
verticesCount ++
) );

So the question is: Should we really be doing this?

Issue 2. The vertices are not unique Vector3s -- multiple vertices reference the same Vector3. This is why there is distortion when a matrix is applied to "each vertex".

It is important that geometry.vertices be an array of unique objects.

(This is not to be confused with "duplicated" vertices, in which two or more vertices have the same location. Duplicated vertices are OK.)
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-add-rounded-corners-with-a-border-radius has an issue. Please describe how to reproduce it, and include links to screen shots if

possible.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-add-different-margins-to-each-side-of-an-element has an issue. Please describe how to reproduce it, and include links to screen shots if possible.
Issue 1:
We are experiencing an issue (since we upgraded from celery 2.5 to 3.0) where our workers mysteriously stop consuming messages from the Q's they are configured on.

It happens periodically on each worker node independently, and i cannot get to the root of what is causing it.

celery inspect -d appserver-i-82df38f8.prod active always returns empty.

I did find something slightly interesting, in that, the list of reserved tasks seems to stay static for a long time. Since these tasks do not have an eta set, why don't they execute? I cant think of any reason why they are not being executed?

Does the reserved Q have any relationship to the prefetch Q? i.e. if there are a lot of reserved tasks which do not execute would that prevent the node from retrieving more tasks from the server?

When looking at the rabbit MQ management interface I can see this node is listed as a consumer.

I have collected some info from the node which may shine some light on this, but am at a loss as to why this could happen. Could you provide some pointers for things to look into?

Worker machine task inspections

https://gist.github.com/declanshanaghy/5103891

Worker machine report

https://gist.github.com/declanshanaghy/5103838

Issue 2:
Hi,

I'm encountering a strange issue for which I set up a simple test case.

I'm using djcelery with RabbitMQ (3.0.4) as broker. Here are the first lines from python manage.py celery report :

software -> celery:3.0.17 (Chiastic Slide) kombu:2.5.9 py:2.7.3

billiard:2.7.3.26 librabbitmq:1.0.1

platform -> system:Linux arch:64bit, ELF imp:CPython

loader -> djcelery.loaders.DjangoLoader

settings -> transport:librabbitmq results:database

This is the code in the tasks.py module :

from celery import task
from celery.task.control import revoke

import memcache

mc = memcache.Client(['127.0.0.1:11211'], debug=0)

@task(name='tasks.homeioTestTask')
def testTask(feedUid):
print "Within test task for feedUid : %s" % feedUid
return

@task(name='tasks.homeioProcessEvent')
def processEvent(event):
print "Got an event from the views"

feedUid = event.get('feedUid')

print "Event occurred for feed %s" % feedUid

# Checking if we have a task id in memcached
mcKey = str('taskHomeIoTest_feed_%s' % feedUid)

taskId = mc.get(mcKey)

if taskId:
print "We have a task in the cache, revoke it"
revoke(taskId)
mc.delete(mcKey)
else:
print "Scheduling a task"
task = testTask.apply_async((feedUid,), countdown=60)
mc.set(mcKey,task.id, time=0)

return

This code is being called from my views.py file as follows :

from tasks import processEvent

def event(request):
event = simplejson.loads(request.raw_post_data)
processEvent.delay(event)

return HttpResponse(status=200)

When I run celery using python manage.py celery worker --loglevel=debug I get :

https://gist.github.com/franckb/e6e5db51b41b74b3fbce (things go wrong around line 257)

Looks like the tasks don't get to the workers anymore but there is no indication that the workers died or that anything is going wrong.

I've tried several things when tracking down the issue, but I'm having a hard time knowing where to look. Could anyone provide some guidance ?

Thanks
Issue 1:
I'm unable to link my GitHub account to FreeCodeCamp (http://www.freecodecamp.com/fccbd1cb0b2). It gives me the message: Your GitHub is already associated with another account. You may have accidentally created a duplicate account. No worries, though. We can fix this real quick. Please email us with your GitHub username: team@freecodecamp.com.

I sent an email to team@freecodecamp.com last week and have not yet heard back.

Issue 2:
Css Flexbox: Using the Flex-direction Property to Make a Row

http://beta.freecodecamp.com/en/challenges/css-flexbox/using-the-flexdirection-property-to-make-a-row

The challenge passes without input or correct/requested solution.

because

display:flex;

is equivalent to

display:flex;
flex-direction:row;
Issue 1:
If I run VSCode as root from bash on Ubuntu/Xubuntu/Lubuntu/Kubuntu it doesn't respond on startup.

This problem occurred on fresh installs, in VMs, on both of my devices.

However running a quick chown -R root:root / fixed the problem (It is a local VM, so whatever).

[Disclaimer: Know what you do, do not copy paste that into your terminal]

Anyone else experienced the same on a Ubuntu based distro lately? On Debian/Arch it works just fine.

BTW: I couldn't install the omnisharp plugin for Atom because of the exact same reason.

Issue 2:
jay@jay-virtual-machine:/Desktop$ sudo code

bash: cannot set terminal process group (-1): Inappropriate ioctl for device

bash: no job control in this shell

ATTENTION: default value of option force_s3tc_enable overridden by environment.

[VS Code]: detected unresponsive

[VS Code]: detected unresponsive

jay@jay-virtual-machine:/Desktop$ events.js:141

throw er; // Unhandled 'error' event

^

Error: channel closed

at process.target.send (internal/child_process.js:509:16)

at /usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:20:9562

at t (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:11:18479)

at Object.callOnRemote (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:11:18413)

at Object.onUnexpectedPluginHostError (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:4:9764)

at e.unexpectedErrorHandler (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:19:17071)

at e.onUnexpectedError (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:7:17878)

at Object.u as onUnexpectedError

at process. (/usr/local/vscode/resources/app/out/vs/workbench/node/pluginHostProcess.js:20:9853)

at emitOne (events.js:82:20)
Issue 1:
Electron Version: 1.8.7, 2.0.2 and 3.0.0-beta.4

Operating System (Platform and Version): Ubuntu Linux 18.04

Last known working Electron version: ?

Expected Behavior

pointer: cursor should work regardless of whether BrowserWindow was created with frame: false.

Actual behavior

pointer: cursor stops working at about 76% height of the window, when using frame: false.

To Reproduce

You can use Electron Fiddle to load the repro: https://gist.github.com/joaomoreno/2bb9879aee864f22704882b5fac825c3

Additional Information

From microsoft/vscode#53870

Issue 2:
Electron version: 1.6.2

Operating system: OSX

Expected behavior

I should be able to use the --trace-warnings flag in node by passing it like this:

app.commandLine.appendSwitch('trace-warnings')

This enables stack traces for unhandled promise rejections. Right now, node will print "possibly unhandled promise rejection: " but not print a stack trace, which is incredibly frustrating.

Actual behavior

Passing the flag to node enables stack traces for unhandled promise warnings.

How to reproduce

Run this code within index.js of the electron app:

new Promise((resolve, reject) => reject(new Error("foo")))
Issue 1:
I am not sure whether supporting IE is a priority but I have noticed that the numerical list in the map page using IE11 shows up as "1".

Issue 2:
I am using Internet Explorer 11 and all the options in the map and the text summary of videos (I have a limited cap on my ISP so unable to watch these) all have the number 1 next to them. Not sure if this is the way things were set up.

Sorry if has been mentioned before.
Issue 1:
Hello,

I'm trying to reproduce the first example here, but the first and last rows are cut in half:

I'm using seaborn 0.10.0.

Issue 2:
With seaborn 0.9.0 and matplotlib 3.1.1, the topmost and bottommost row of boxes in a seaborn plot are partially cut off:

import seaborn as sns
import numpy as np

np.random.seed(42)
sns.heatmap(np.random.random((10, 10)))

As another example, consider this demo from the gallery:

import matplotlib.pyplot as plt
import seaborn as sns
sns.set()

# Load the example flights dataset and conver to long-form
flights_long = sns.load_dataset("flights")
flights = flights_long.pivot("month", "year", "passengers")

# Draw a heatmap with the numeric values in each cell
f, ax = plt.subplots(figsize=(9, 6))
sns.heatmap(flights, annot=True, fmt="d", linewidths=.5, ax=ax)

This is a pretty major visual issue. Apologies if this has been reported before, but I couldn't find a record of such in the GH issues.
Issue 1:
Do you want to request a feature or report a bug?

BUG

What is the current behavior?

I have the following ES6 module:

export const namedExport1 = 'foo';
export const namedExport2 = 'bar';

const Test = function Test() {

const factory = {
foo: 'bar',
};

factory.sayHello = function sayHello(name) {
alert(`Hello ${name}`);
};

return factory;
};

export default Test;

If I import it as import myModule from 'path/Test' and it is located in the node_modules directory, it gets imported as:

{
default: Test()
namedExport1: 'foo'
namedExport2: 'bar'
}

However, if I load the module from any other directory, it gets imported as the default method:

function Test() {

var factory = {
foo: 'bar'
};

factory.sayHello = function sayHello(name) {
alert('Hello ' + name);
};

return factory;
}

What is the expected behavior?

Should always import the default export.

Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.

Webpack: 2.1.0-beta.27

Node: v7

Issue 2:
I'm submitting a bug report

Webpack version:

2.1.0-beta.25

Please tell us about your environment:

OSX 10.12 (16A323)

Current behavior:

When I use webpack with babel and the the babel-plugin-transform-es2015-modules-commonjs transform I can't import a ES6 module anymore which is not transpiled by babel.

Babel handles the module like an CommonJS module because webpack doesn't set the __esModules flag to true.

Expected/desired behavior:

I should be able to import the module.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.

https://github.com/k15a/webpack2-babel-bug

What is the motivation / use case for changing the behavior?

styled-components/styled-components#115

Language:

ES6/7
Issue 1:
HI, i wanted to look at typescript and saw, that private members are not really private in console :D

i searched in your FAQ and found an entry to this, but i think this might be a solution for private members.

TypeScript Version:

1.8.9

Code

// you all know it:
class Foo {
private x = 0;
increment(): number {
this.x++;
return x;
}
}

Wished behavior:

// what about something like this?
var Foo = (function () {
var privates = {};

function Foo() {
privates[ this ] = { x: 0 };
}

Foo.prototype.increment = function () {
privates[ this ].x++;
return privates[ this ].x;
};
return Foo;
})();

Actual behavior:

// generates
var Foo = (function () {
var x = 0;

function Foo() {
}
Foo.prototype.increment = function () {
x++;
return x;
};
return Foo;
})();

Issue 2:
Consider the following code

export class Test {
private x: number;
constructor() {
this.x = 42;
}
f() : number {
return this.x;
}
}

Typescript generates the following JS

var Test = (function () {
function Test() {
this.x = 42;
}
Test.prototype.f = function () {
return this.x;
};
return Test;
})();
exports.Test = Test;

Obviously, one could run something like new Test().x in a JS library, and private invariant would fail. I think it's not a kind of behaviour one would expect from private, at least in exported classes. The fix is quite simple:

var Test = (function () {
var _private = {};
function Test() {
_private.x = 42;
}
Test.prototype.f = function () {
return _private.x;
};
return Test;
})();
exports.Test = Test;
Issue 1:
This is not really bugging me, but just would like to know if there is anything wrong with the code (I am on Ubuntu 18.04 if that helps).

Reproducing code example (test.py):

import numpy as np
from scipy.interpolate import LSQBivariateSpline

# generate data
x, y = np.meshgrid(
np.linspace(0, 10, 30),
np.linspace(0, 5, 40)
)
x = x.flatten()
y = y.flatten()
z = np.exp(-(x-5)**2/4) + np.exp(-(y-2)**2/3)

# define the knot positions
tx = [1, 2, 4, 5, 6, 8, 9]
ty = [0.2, 0.8, 1.1, 1.8, 2.5, 3, 3.7, 4.2, 4.9]

# get spline fit
s = LSQBivariateSpline(x, y, z, tx, ty, kx=3, ky=3)

# new evaluation
x2, y2 = np.meshgrid(
np.linspace(0, 10, 50),
np.linspace(0, 5, 60)
)
z_new = s(x2, y2, grid=False)

Error message:

Run code in terminal as python -i test.py, with the following error bumps out before quitting Python terminal:

python -i tmp.py
>>>
corrupted size vs. prev_size
Aborted (core dumped)

or

python tmp.py
Segmentation fault (core dumped)

This error message shows up randomly, roughly 1 out of 5 trials will trigger the error.

Scipy/Numpy/Python version information:

1.6.0 1.19.4 sys.version_info(major=3, minor=8, micro=0, releaselevel='final', serial=0)

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/133 on 2006-04-02 by @rkern, assigned to @rkern.

The function f_value in file source:trunk/Lib/stats/stats.py needs review.

Please look over the StatisticsReview guidelines and add your comments below.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

There is like an endless refresh on this, for me.
Issue 1:
DataFrame.to_string() has a formatters parameter for formatting columns individually, but to_csv() could benefit from that parameter as well. This is especially useful, for example, when formatting integers with missing values.

Issue 2:
date formatting #2583, PR #4313, #6797

string spacing (justification?) #4158

float format #2502, #2069

int format, #6502

timedelta fromat #6783

SO question

something like

df.to_csv(format='%10.4f', sep=' ')
Issue 1:
If the output of this product is a matrix, should it not be a column vector matrix rather than a row vector matrix?

>>> matrix([[1, 2], [3, 4]]).dot(array([5, 6]))
matrix([[17, 39]])

This seems like a bug, although I do not have extensive knowledge of the behavior of numpy.matrix and this has probably already been discussed extensively.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/2057 on 2012-02-17 by @pv, assigned to unknown.

http://permalink.gmane.org/gmane.comp.python.scientific.user/31095

Consider this:

import numpy as np
x = np.arange(5)
I = np.asmatrix(np.identity(5))
print np.dot(I, x).shape
# -> (1, 5)

while (5, 1) would be what is expected based on usual linear algebra rules.

It might also be a mistake to return a matrix from mixed matrix--array computations.
Issue 1:
using 1.2.4

I created a pod with a small udp echo server running on port 5005 (mendhak/udp-listener) and exposed it as a udp service.

This only happens when the client and server land on the same node!

A simple client

nc -4u -w1 $SERVICE_IP 5005 <<< a
nc -4u -w1 $POD_IP 5005 <<< b

Meanwhile, on the server

Listening on UDP port 5005
a
a
b

tcpdump on the node

08:00:38.574388 IP 10.228.1.5.38130 > 10.228.1.3.5005: UDP, length 7
08:00:38.574447 IP 10.228.1.5.38130 > 10.228.1.3.5005: UDP, length 7
08:00:42.022864 IP 10.228.1.5.42386 > 10.228.1.3.5005: UDP, length 7

By the way, my real use case was using logstash with a udp input and my logs were duplicated sometimes (when the pod that produces logs landed on the same node as logstash).

another thought, maybe TCP packets get duplicated too but handled?

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/.):

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

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

Kubernetes version (use kubectl version):

Environment:

Cloud provider or hardware configuration:

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

Kernel (e.g. uname -a):

Install tools:

Others:

What happened:

What you expected to happen:

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

Anything else do we need to know:
Issue 1:
Ability to collapse on a field. For example, I want the most relevant result from all different report types. Or similarly, the most recent result of each report type. Or maybe, I want to de-dup on headline.

So, the sort order would dictate which one from the group is returned. Similar to what is discussed here:

http://blog.jteam.nl/2009/10/20/result-grouping-field-collapsing-with-solr/

From my understanding, it seems that in order for field collapsing to be efficient, the result set must be relatively small.

This is also referred to as "Combine" on some other search products.

Issue 2:
I restarted a node in my cluster but new documents are not indexing. I thought "yellow' state meant that unassigned replicas are getting initialized but the cluster is still fully functional. Is this a bug?

+=== debug

$ curl -XGET 'es.internal.company.com:9200/_cluster/health?pretty'

{

"cluster_name" : "es_cluster_a",

"status" : "yellow",

"timed_out" : false,

"number_of_nodes" : 9,

"number_of_data_nodes" : 6,

"active_primary_shards" : 1265,

"active_shards" : 3041,

"relocating_shards" : 0,

"initializing_shards" : 12,

"unassigned_shards" : 725,

"number_of_pending_tasks" : 0

}

curl -XGET 'es.internal.company.com:9200/_cat/indices?pretty'|sort -k 3n

yellow open web-logs-2015.05.11 8 2 577100361 0 697.3gb 346.7gb

yellow open web-logs-2015.05.12 8 1 737742512 0 640.3gb 496.3gb

yellow open web-logs-2015.05.13 8 1 632722103 0 557.6gb 402.5gb

yellow open web-logs-2015.05.14 8 2 240925903 0 309.3gb 148.5gb

yellow open web-logs-2015.05.15 8 2 0 0 920b 920b
Issue 1:
Does babel make code that will conditionally run native generators instead of always using the performance cost of regenerator (when using transform-regenerator)?

f.e., something similar to (examples copied pasted from regenerator site):

if (supportsGenerators()) {
function *range(max, step) {
var count = 0;
step = step || 1;

for (var i = 0; i < max; i += step) {
count++;
yield i;
}

return count;
}

var gen = range(20, 3), info;

while (!(info = gen.next()).done) {
console.log(info.value);
}

console.log("steps taken: " + info.value);
}
else {
var marked0$0 = [range].map(regeneratorRuntime.mark);
function range(max, step) {
var count, i;

return regeneratorRuntime.wrap(function range$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
count = 0;
step = step || 1;

i = 0;
case 3:
if (!(i < max)) {
context$1$0.next = 10;
break;
}

count++;
context$1$0.next = 7;
return i;
case 7:
i += step;
context$1$0.next = 3;
break;
case 10:
return context$1$0.abrupt("return", count);
case 11:
case "end":
return context$1$0.stop();
}
}, marked0$0[0], this);
}

var gen = range(20, 3), info;

while (!(info = gen.next()).done) {
console.log(info.value);
}

console.log("steps taken: " + info.value);
}

Issue 2:
Issue originally made by @Cellule

Bug information

Babel version: 6.8.0

Node version: 5.5.0

npm version: 3.7.2

Options

{
"plugins": ["transform-es2015-modules-umd"]
}

Input code

require("module").test;

Description

Compiling require("module").test; with plugin transform-es2015-modules-umd

throws the following error:

TypeError: test.js: Property object of MemberExpression expected node to be of a type ["Expression"] but instead got null
at Object.validate (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-types\lib\definitions\index.js:115:13)
at Object.validate (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-types\lib\index.js:552:9)
at NodePath._replaceWith (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\replacement.js:214:7)
at NodePath._remove (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\removal.js:60:10)
at NodePath.remove (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\removal.js:31:8)
at PluginPass.CallExpression (E:\Projects\chakra-runner\node_modules\babel-plugin-transform-es2015-modules-amd\lib\index.js:42:12)
at NodePath._call (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:78:18)
at NodePath.call (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:49:17)
at NodePath.visit (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:108:12)
at TraversalContext.visitQueue (E:\Projects\chakra-runner\node_modules\babel-cli\node_modules\babel-traverse\lib\context.js:174:16)