WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
scipy.spatial.distance.pdist and scipy.spatial.distance.cdist always return ones when the metric parameter is set to "minkowski" and p to np.inf. This doesn't happen when you set metric to scipy.spatial.distance.minkowski.

This is because pdist and cdist call internally the C function minkowski_distance while scipy.spatial.distance.minkowski calls numpy.linalg.norm.

Reproducing code example:

>>> from scipy.spatial.distance import pdist, cdist, minkowski
>>> import numpy as np
>>>
>>> x = np.random.randn(5, 1)
>>> y = np.random.randn(5, 1)
>>>
>>> print(f"x = {x}")
x = [[ 0.17434791]
[-0.59212961]
[-0.5377257 ]
[ 0.7551881 ]
[ 2.12660604]]
>>> print(f"y = {y}")
y = [[-0.67732225]
[-0.11041384]
[ 0.87626855]
[-2.31480127]
[-0.79008986]]
>>> cdist(x, y, 'minkowski', p=np.inf)
array([[1., 1., 1., 1., 1.],
[1., 1., 1., 1., 1.],
[1., 1., 1., 1., 1.],
[1., 1., 1., 1., 1.],
[1., 1., 1., 1., 1.]])
>>> pdist(x, 'minkowski', p=np.inf)
array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1.])

but when you call pdist and cdist with the metric parameter set to scipy.spatial.distance.minkowski, you get the correct result:

>>> cdist(x, y, minkowski, p=np.inf)
array([[0.85167017, 0.28476175, 0.70192064, 2.48914918, 0.96443778],
[0.08519265, 0.48171577, 1.46839816, 1.72267166, 0.19796025],
[0.13959656, 0.42731186, 1.41399425, 1.77707557, 0.25236417],
[1.43251035, 0.86560194, 0.12108046, 3.06998937, 1.54527796],
[2.80392829, 2.23701988, 1.25033748, 4.44140731, 2.9166959 ]])
>>> pdist(x, minkowski, p=np.inf)
array([0.76647752, 0.71207361, 0.58084018, 1.95225812, 0.05440391,
1.3473177 , 2.71873564, 1.29291379, 2.66433173, 1.37141794])
>>>

Scipy/Numpy/Python version information:

>>> import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.5.2 1.17.4 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)

Issue 2:
Using scipy.spatial.distance.cdist with the Minkowski distance and p=np.inf does not produce expected result. In particular, I'm not sure how cdist is producing all distance of only 1's (see Minkowski below). Using Chebyshev distance produce expected results, but they should be equivalent for $p=\infty$.

import numpy as np
import scipy.spatial as sp

a = np.array([[1.11132, 1.15693], [0.98214, 1.01018]])
b = np.array([[1.14994, 1.15386 ], [0.973258, 1.17015 ], [0.939203, 1.09205 ]])

print("a:\n{}".format(a))
print("b:\n{}".format(b))

mink = sp.distance.cdist(a, b, 'minkowski', p=np.inf)
print("Minkowski:\n{}".format(mink))

cheb = sp.distance.cdist(a, b, 'chebyshev')
print("Chebyshev:\n{}".format(cheb))

a:
[[1.11132 1.15693]
[0.98214 1.01018]]
b:
[[1.14994 1.15386 ]
[0.973258 1.17015 ]
[0.939203 1.09205 ]]
Minkowski:
[[1. 1. 1.]
[1. 1. 1.]]
Chebyshev:
[[0.03862 0.138062 0.172117]
[0.1678 0.15997 0.08187 ]]

Scipy/Numpy/Python version information:

scipy.__version__ = 1.0.0
numpy.__version__ = 1.14.2

Thanks,

Jesse
Issue 1:
I investigated this and found out that it appears on table cells with newline involved. Example:

### Properties
| Name | Type | Default | Description |
|:-----|:-----|:-----|:-----|
| containerElement | PropTypes.oneOfType([
PropTypes.string,
PropTypes.element,
]) | | The element to use as the container for the RaisedButton. Either a string to use a DOM element or a ReactElement. This is useful for wrapping the RaisedButton in a custom Link component. If a ReactElement is given, ensure that it passes all of its given props through to the underlying DOM element and renders its children prop for proper integration. |

Notice the PropTypes.oneOfType. So to fix this we have to add <br> tags like this:

### Properties
| Name | Type | Default | Description |
|:-----|:-----|:-----|:-----|
| containerElement | PropTypes.oneOfType([<br>PropTypes.string,<br>PropTypes.element,<br>]) | | The element to use as the container for the RaisedButton. Either a string to use a DOM element or a ReactElement. This is useful for wrapping the RaisedButton in a custom Link component. If a ReactElement is given, ensure that it passes all of its given props through to the underlying DOM element and renders its children prop for proper integration. |

Result is:

Properties

Name
Type
Default
Description

containerElement
PropTypes.oneOfType([
PropTypes.string,
PropTypes.element,
])

The element to use as the container for the RaisedButton. Either a string to use a DOM element or a ReactElement. This is useful for wrapping the RaisedButton in a custom Link component. If a ReactElement is given, ensure that it passes all of its given props through to the underlying DOM element and renders its children prop for proper integration.

Issue 2:
Problem description

PropTypes.oneOf properties seem to break the template in the documentation for version v.0.17.4

Image

Link that reproduces the issue

http://www.material-ui.com/v0.17.4/#/components/menu

http://www.material-ui.com/v0.17.4/#/components/chip

http://www.material-ui.com/v0.17.4/#/components/drawer

...etc

Versions

Material-UI: v0.17.4
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

Material-UI

React

browser

etc

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

We would like to use a 16 column grid as we're using material-ui to build a dashboard that requires more granular layout positioning.

Now I've thought of a few ways I could do this and would be interested in your opinions.

Possible solutions:

Add columns to the theme with a default of 12. This might not be ideal as 12 is material design, and the strict typings on grid sizes would be lost.

Copy and paste Grid.js and make the changes I need. This could cause potential issues with my local copy falling behind.

Re-work https://github.com/callemall/material-ui/blob/v1-beta/src/Grid/Grid.js to expose more methods allowing me to create a 16 column grid wrapper.
Issue 1:
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.):

ebs aws kubelet

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

BUG REPORT

Kubernetes version (use kubectl version):

1.4.5

Environment:

Cloud provider or hardware configuration: AWS

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

Kernel (e.g. uname -a): 4.4.0-43-generic #63-Ubuntu SMP Wed Oct 12 13:48:03 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Install tools: custom

Others:

What happened:

Node has a pod with AWS EBS attached

Docker restarts, kubelet restarts

Pod goes to Error status, with messages

1m 1m 1 {kubelet ip-10-50-195-252.eu-west-1.compute.internal} Warning FailedMount Unable to moun
t volumes for pod "registry-341515849-b1f4k_default(123242a0-a75b-11e6-a3fb-0a8cd5340591)": timeout expired waiting for volumes to attach/mount for pod "regis
try-341515849-b1f4k"/"default". list of unattached/unmounted volumes=[storage]
1m 1m 1 {kubelet ip-10-50-195-252.eu-west-1.compute.internal} Warning FailedSync Error syncing
pod, skipping: timeout expired waiting for volumes to attach/mount for pod "registry-341515849-b1f4k"/"default". list of unattached/unmounted volumes=[storage
]

EBS volume is correctly attached and mounted to the node, volumesAttached and volumesInUse is correct on the node. Controller manager detects no problems, and doesn't do anything.

Pod never recovers. Manual unmount/detach/pod delete is required to recover.

What you expected to happen:

After a kubelet restart, pod should be healthy and pod sync succeeds.

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

Create a pod with attached EBS

Restart kubelet

Anything else do we need to know:

I think this is a regression from #33616, since it worked for me in 1.3. But not sure, need to dig further.

Issue 2:
Need to add reconciler logic to the service controller sync loop to allow cloud provider packages to reconcile healthcheck and target pools created/needed by the service loadbalancer feature.
Issue 1:
Electron version: v1.3.2

Operating system: Windows 7

So, I wanted to convert web app to desktop app with electron. Here is web app: click And here is github repo: click

But when I opened it with electron as a desktop app, it's mixing a "drag file page" with next page that allows to edit that file. It looks like that:

main.js:

const {app, BrowserWindow} = require('electron')

let win

function createWindow () {
win = new BrowserWindow({width: 1366, height: 768})
webPreferences: {
nodeIntegration: false
}
win.show()

win.loadURL(`file://${__dirname}/shelter.html`)

win.on('closed', () => {
win = null
})
}

app.on('ready', createWindow)

app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})

app.on('activate', () => {
if (win === null) {
createWindow()
}
})

What's wrong?

Issue 2:
jQuery contains something along this lines:

if ( typeof module === "object" && typeof module.exports === "object" ) {
// set jQuery in `module`
} else {
// set jQuery in `window`
}

module is defined, even in the browser-side scripts. This causes jQuery to ignore the window object and use module, so the other scripts won't find $ nor jQuery in global scope..

I am not sure if this is a jQuery or atom-shell bug, but I wanted to put this on the web, so others won't search as long as I did.
Issue 1:
If you have a directory named ''upgrade_backup'' in your Neo4j database directory, startup can fail.

axel@dev1 ~/Downloads/neo4j-community-2.1.2$ bin/neo4j start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...WARNING: not changing user
process [4736]... waiting for server to be ready..... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

Issue 2:
@Romiko: 'Hi,

I notice that if a DB Upgrade needs to be performed, it will try upgrade the database, but if there was already a backup of the DB from a previous upgrade, it then fails.

[WaWorkerHost.exe] at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:52)

[WaWorkerHost.exe] Caused by: org.neo4j.kernel.impl.storemigration.StoreUpgrader$UnableToUpgradeException: Cannot proceed with upgrade because there is an existing upgrade backup in the way at C:\AzureTemp\neo4j-db\upgrade_backup. If you do not need this backup please delete it or move it out of the way before re-attempting upgrade.

I am wondering, would it not be better to have support for multiple backup folders.'
Issue 1:
I've followed the custom-express-example to set custom server routes. Next/Link is working properly in client-side, but when the page is refreshed, the error message with 'not found' appears in console, regarding the files (css/images) from '/static' folder.

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

Expected Behavior

The files in static folder should be found when matches the custom routes on server.

Current Behavior

client:

<Link as={`/lead/${id}`} href={`/lead?id=${id}`}>

server:

server.get('/lead/:id', async (req, res) => {
return app.render(req, res, '/lead', { id: req.params.id });
});

error when page is refreshed:

Steps to Reproduce (for bugs)

Define a custom route with express

Context

I'm trying to set routes on an Express server and pass parameters by URL. Style and image files in the static folder are not found when accessed directly by the URL or refreshing the page.

Your Environment

Tech
Version

next
5.0.1-canary.15

node
v9.5.0

OS
elementary OS 0.4.1 Loki

inferno
^4.0.8

inferno-compat
^4.0.8

inferno-server
^4.0.8

react
^16.2.0

react-dom
^16.2.0

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

I'm struggling to put Next.js and Serverless together. I could use some help with my latest issue. I don't really know if the bug is on Next.js side, or serverless side (none, I guess, it's just hard to put them together) so any help would be greatly appreciated.

One of the errors I'm running into is Error: INVALID_BUILD_ID, which is on Next.js side, and I don't really know why.

Explained in depth there:

serverless/serverless#4772 (comment)

Thanks!
Issue 1:
Hello everyone,

I came across an issue where I cannot build for android platform without having a complete iOS toolchain. This happens when I start working with third party plugins such as google_sign_in and firebase_auth.

After importing a plugin in 'pubspec.yaml' file and run 'flutter package get', the process fails with a following error:

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Is there a way to disable ios toolchain for someone who just wants to work with android platform because installing Xcode is not an option to everyone especially if you are on an old Macbook. By the way Im running macOS 10.11. (and upgrading is not an option).

Happy Hacking everyone!!!

Issue 2:
Running flutter start with an iOS project configured, dumps a LOT of (scary?) output. Could we hide most of this, unless the user chose flutter start --verbose ?

For example:

~/flutter/testme $ flutter start
severe: Warning: Multiple devices are connected, but no device ID was specified.
Build settings from command line:
SDKROOT = iphonesimulator9.2
=== BUILD TARGET FlutterApplication OF PROJECT FlutterApplication WITH CONFIGURATION Release ===

Check dependencies

PhaseScriptExecution Ensure\ `pub\ get` build/FlutterApplication.build/Release-iphonesimulator/FlutterApplication.build/Script-9EBB2F351BF675C200177634.sh
cd /Users/sethladd/flutter/testme/ios
export ACTION=build
export AD_HOC_CODE_SIGNING_ALLOWED=NO
export ALTERNATE_GROUP=eng
export ALTERNATE_MODE=u+w,go-w,a+rX
export ALTERNATE_OWNER=sethladd
export ALWAYS_SEARCH_USER_PATHS=NO
export ALWAYS_USE_SEPARATE_HEADERMAPS=NO
export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer
export APPLE_INTERNAL_DIR=/AppleInternal
export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation
export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library
export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools
export APPLICATION_EXTENSION_API_ONLY=NO
export APPLY_RULES_IN_COPY_FILES=NO
export ARCHS=i386
export ARCHS_STANDARD="i386 x86_64"
export ARCHS_STANDARD_32_64_BIT="i386 x86_64"
export ARCHS_STANDARD_32_BIT=i386
export ARCHS_STANDARD_64_BIT=x86_64
...
Issue 1:
I think these should probably be done with generics, and can handle type checking internally like transmute.

Issue 2:
Currently they only take an int which is fine, but makes using them awkward in many cases.

Also, many systems have a dwcas (double word compare-and-swap) operation that could be used when trying to CAS a u64 on a 32-bit system. I'm pretty sure LLVM will take care of much of it itself, and these intrinsics are inherently unsafe anyway.
Issue 1:
We should generate something like:

<msg id="..." meaning="..."><source>path/to/file.ts:123</source>This is a message</msg>

extractor.ts should take a callback to generated the exact file path from e.g. a ts.SourceFile object or similar, so users can adjust the path to their particular repository format.

Issue 2:
I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

At the moment the extract tool generates the id values. The id value depends on the extracted string value. This means that if you change the value (e.g. fix a typo) the id gets changed. This is why our localization tool when scanning XTB or XLF does not use id attribute but the meaning attribute. We use meaning to give a unique and fixed id for each elements. Something like this

<p i18n="HeaderText|">Sample</p>

Now the extract tool gives us following

<msg id="8884523860497558714" meaning="HeaderText">Sample</msg>

The meaning value does not change unless the developer explicitly changes it. In addition the above meaning value “HeaderText” is much more informative as “8884523860497558714”.

Unfortunately it is hard to get meaning values unique among all templates.

Expected behavior

It would help a lot if the extracting tool would write the relative path name of the template file (.html or .ts) where the string comes from. Something like this

<msg id="8884523860497558714" meaning="header" source="src/app/admin/main.html">Sample</msg>

Where the source attributes contains the file name where the string comes from. Now our tool could get a unique if by combining source and meaning values. Because the meaning values would need to be unique only within the single template it would be a lot easier for the developer to maintain them.

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

To make Angular 2 localization easier and increase the translation quality

Please tell us about your environment:

Angular version: 2.0.X

All

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

All

Language: [all | TypeScript X.X | ES6/7 | ES5]

All

Node (for AoT issues): node --version =

All
Issue 1:
gomobile bind -target android only generates an android/arm library, however many new phones such as the Nexus 5x are android/arm64. The generated libraries are incompatible and return an error when accessed.

11-05 16:37:18.387 2581 2664 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
...
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at java.lang.Thread.run(Thread.java:818)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/co.myapp/base.apk"],nativeLibraryDirectories=[/data/app/co.myapp/lib/arm64, /data/app/co.myapp/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libgojni.so"
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at java.lang.Runtime.loadLibrary(Runtime.java:367)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at java.lang.System.loadLibrary(System.java:1076)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at go.LoadJNI.<clinit>(LoadJNI.java:5)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at java.lang.Class.classForName(Native Method)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at java.lang.Class.forName(Class.java:324)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at java.lang.Class.forName(Class.java:285)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at go.Seq.<clinit>(Seq.java:23)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at go.mobilepgp.Mobilepgp.NewKeyPair(Mobilepgp.java:168)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at co.charge.messenger.util.EncryptionUtil$GenerateKeyTask.doInBackground(EncryptionUtil.java:140)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at co.charge.messenger.util.EncryptionUtil$GenerateKeyTask.doInBackground(EncryptionUtil.java:117)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at android.os.AsyncTask$2.call(AsyncTask.java:295)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
11-05 16:37:18.387 2581 2664 E AndroidRuntime: ... 4 more

Gomobile saves libgojni.so under armeabi-v7a but probably should compile android/arm64 and place under arm64-v8a.

~/p/c/m/b/lib» tree e2ee!?
.
├── arm64-v8a
│ └── libgif.so
├── armeabi
│ └── libgif.so
├── armeabi-v7a
│ ├── libgif.so
│ ├── libgojni.so
│ ├── librsjni.so
│ └── libRSSupport.so
├── mips
│ ├── libgif.so
│ ├── librsjni.so
│ └── libRSSupport.so
├── mips64
│ └── libgif.so
├── x86
│ ├── libgif.so
│ ├── librsjni.so
│ └── libRSSupport.so
└── x86_64
└── libgif.so

7 directories, 14 files

Issue 2:
Android doesn't only run on arm-based systems but also some other architectures are commonly used, such as x86 (mostly Intel Atom, but also the simulators) arm64 (also known as aarch64) and MIPS.

It would be great if at least x86 was supported.
Issue 1:
Elasticsearch version: 5.0.0-alpha5

Plugins installed: []

JVM version:

OS version:

Description of the problem including expected versus actual behavior:

Considering the following request/response:

curl -XPUT "http://localhost:9200/test" -d'
{
"settings": {
"number_of_shards": 4,
"number_of_shards": 1
}
}'

curl "http://localhost:9200/test?pretty"
{
"test" : {
"aliases" : { },
"mappings" : { },
"settings" : {
"index" : {
"creation_date" : "1472515277804",
"number_of_shards" : "1",
"number_of_replicas" : "1",
"uuid" : "mXl843bTQzyYl1ImeTqKaQ",
"version" : {
"created" : "5000005"
}
}
}
}
}

Elasticsearch accepts the request and Elasticsearch accepts the request with a "last one wins" rule.

If this command is placed in Kibana Console, then it shows as an error. For example:

The JSON RFC says "The names within an object SHOULD be unique". Should Elasticsearch reject a request like this? Or should Sense be adjusted to not show this as an error?

Issue 2:
org.elasticsearch.search.aggregations.metrics.max.Max has both a value and a geValue() methods. It should only have one of them. Other single-metric aggs seem to be impacted as well.

cc @colings86