WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I hope twitter bootstrap have a growl notifications ..

Issue 2:
I know this is in the roadmap so just wanted to share some working code here even though it's not really in a point where I could commit a pull request as we are actively developing this functionality:

bootstrap.growl.js

!function( $ ) {
$.fn.growl = function ( flash, params ) {
var growl = this
, params = params || {}
, type = params.text ? 'text' : 'html'
, text = growl.children('p').find('.text')
, label = growl.children('p').find('.label')
, timeout = params.timeout || 5000
;

function set_msg(severity,css,msg){
label[type](severity);
label.removeClass('important notice warning new');
label.addClass(css);
text[type](msg);
}

if(flash.error || flash.notice || flash.warning) {
if (flash.error) { set_msg('Error', 'important', flash.error); }
else if (flash.warning) { set_msg('Warning', 'warning', flash.warning); }
else if (flash.info) { set_msg('Info', 'notice', flash.notice); }
else if (flash.ok) { set_msg('Ok', 'new', flash.ok); }
growl.show('fast');
setTimeout(function() {
growl.hide('slow');
}, timeout);
}
};
}( window.jQuery || window.ender );

Sample CSS

.growl { padding: 10px; position: fixed; top: 5px; left: 50%;
margin-left: -70px; background-color: rgba(0,0,0,0.5); z-index: 10; }
.growl p { color: #fff; margin: 0px;}

Sample HTML

<div id="growl" class="growl round hero-shadow hide">
<p>
<span class="label important">Error</span>
<span class="text">hey</span>
</p>
</div>

Sample Invocation:

$('#growl').growl({error: 'hey'}, {})

Code and stuff is super lame but as said before we are trying to ship product and can't really focus on this right now. But still one could adapt this easily and make it into bootstrap with a decent quality.
Issue 1:
Description of the new feature/enhancement

Increase the left and top padding around the tabs to match our original mockup:

Current version (v0.6):

Proposed technical implementation details (optional)

Issue 2:
Environment

Windows build number: 10.0.18362.356
Windows Terminal version (if applicable): 0.4.2382.0
(Also VS Code 1.38.1)

Steps to reproduce

Add a profile for R with "commandline" : "C:\\Program Files\\Microsoft\\R Open\\R-3.5.3\\bin\\x64\\R.exe"

Try using the arrow keys to navigate through a command, or cycle through history

Expected behavior

Up/down arrow previous/next command

Right/left arrow navigate through input text

Actual behavior

Nothing happens when the arrow keys are pressed but the Ctrl P,N,F,B keys do work.

Aside, from the profile, the arrow keys do work if I call the executable from CMD (not in the terminal app), but do not work if I call it from CMD inside windows terminal.
Issue 1:
ℹ Computer information

Windows build number: 2004 19041.423

PowerToys version: v0.20.1

PowerToy module: PowerToys Run

PowerToy module:

📝 Provide detailed reproduction steps (if any)

Clicking "Alt + Space" When PC user interface language is "Hebrew"

✔️ Expected result

Should open the "Run Field Search Box"

❌ Actual result

Happens nothing

Issue 2:
Allow key mapping for language change. so an unused key could change keyboard language
Issue 1:
Right now DictVectorizer is unable to handle features that have more than one value per key, such as:

{'a': ['b','c'], 'd': 'e'}

It would be great to simply encode a=b and a=c as the names of these features and 'just work.'

Issue 2:
Describe the bug

A BallTree is created using a set of points that include duplicate values, representing different objects in the same spatial position;

The tree is queried using a second set of points, to determine the distance to the first closest neighbor;

Using the distances as radius, the tree is queried to obtain all the indexes from the first set of points that are closest neighbours with the second set. In situations where 2 or more key points have the same distance and are closest to a query point, I want to obtain all key points indexes.

However probably due to rounding errors some key indexes will not appear in the query_radius output.

Steps/Code to Reproduce

keys = np.array([[0.55039766, 0.84536002],
[0.55039766, 0.84536002],
[0.61324973, 0.05385278],
[0.61324973, 0.05385278],
[0.61324973, 0.05385278],
[0.54551389, 0.9451975 ],
[0.54551389, 0.9451975 ],
[0.76230722, 0.83559768],
[0.76230722, 0.83559768],
[0.78700191, 0.61089515],
[0.78700191, 0.61089515]])

tree = BallTree(keys, metric='l2', leaf_size=5)

query = np.array([[0.5488135 , 0.71518937],
[0.60276338, 0.54488318],
[0.4236548 , 0.64589411],
[0.43758721, 0.891773 ],
[0.96366276, 0.38344152],
[0.79172504, 0.52889492],
[0.56804456, 0.92559664],
[0.07103606, 0.0871293 ],
[0.0202184 , 0.83261985],
[0.77815675, 0.87001215]])

distance, index = tree.query(query, k=1)

result = tree.query_radius(query, r=distance.ravel())

Expected Results

array([array([1, 0]),
array([10, 9]),
array([1, 0]),
array([5, 6]),
array([10, 9]),
array([10, 9]),
array([5, 6]),
array([2, 3, 4]),
array([1, 0]),
array([7, 8])], dtype=object)

Actual Results

array([array([], dtype=int64),
array([10, 9]),
array([1, 0]),
array([5, 6]),
array([10, 9]),
array([10, 9]),
array([], dtype=int64),
array([2, 3, 4]),
array([1, 0]),
array([], dtype=int64)], dtype=object)

Versions

System:
python: 3.6.9 (default, Jul 17 2020, 12:50:27) [GCC 8.4.0]
executable: /usr/bin/python3
machine: Linux-4.19.104+-x86_64-with-Ubuntu-18.04-bionic

Python dependencies:
pip: 19.3.1
setuptools: 49.2.0
sklearn: 0.22.2.post1
numpy: 1.18.5
scipy: 1.4.1
Cython: 0.29.21
pandas: 1.0.5
matplotlib: 3.2.2
joblib: 0.16.0

Built with OpenMP: True
Issue 1:
Hello, I'm trying Symfony 3.2.0-RC1. It's a fresh install.

I have the same error as @javiereguiluz #20556

But there is another error in the logger panel:

Issue 2:
In symfony/demo#403 I've just updated the Symfony Demo app to Symfony 3.2-RC1 and Twig 1.28. I have a lot of issues in the Symfony profiler:

The few profiler panels that work right mess up the entire sidebar menu:

Most of the profiler panels don't work and display a lot of errors:
Issue 1:
Now that we have codespeed integration for performance testing coming into place, we should start running a larger number of codes.

To start with, we should make all the stuff in perf, perf2, and load run uniformly and produce consistent output. Over time, we can even start including some packages as part of the performance measurement.

@staticfloat What do you think?

Issue 2:
Crash on Lenovo T420s running win7 64 bit

Running julia-c4b3649af6

Stack dump

0x005D0205 (0x00000000 0x00000000 0x0028FDF8 0x6F40B46D)

0x005D01CB (0x035F2180 0x00000000 0x00000000 0x00000000)

0x6F40B46D (0x035F2130 0x00000000 0x00000000 0x75DD8CD5), jl_apply_generic() + 0x5D bytes(s)

0x00401888 (0x00000000 0x00541F44 0x00000003 0x00000004)

0x6F44131F (0x00000000 0x00541F44 0x00401760 0x00548D70), julia_trampoline() + 0x4F bytes(s)

0x0041A7B5 (0x00000000 0x00541F44 0x00542290 0x00000000), jl_clear_input() + 0x16AE5 bytes(s)

0x004013EA (0x7EFDE000 0x0028FFD4 0x77599F42 0x7EFDE000)

0x74D23677 (0x7EFDE000 0xE7662B0E 0x00000000 0x00000000), BaseThreadInitThunk() + 0x12 bytes(s)

0x77599F42 (0x004014D0 0x7EFDE000 0x00000000 0x00000000), RtlInitializeExceptionChain() + 0x63 bytes(s)

0x77599F15 (0x004014D0 0x7EFDE000 0x00000000 0x78746341), RtlInitializeExceptionChain() + 0x36 bytes(s)
Issue 1:
What steps will reproduce the problem?

This is a feature request to expose the call depth that testing will log failures at.
Consider this code

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

What is the expected output? What do you see instead?

What we get

=== RUN TestSomething
--- FAIL: TestSomething (0.00 seconds)
tt_test.go:8: an error
FAIL
exit status 1
FAIL tt 0.002s

What i'd like

=== RUN TestSomething
--- FAIL: TestSomething (0.00 seconds)
tt_test.go:16: an error
FAIL
exit status 1
FAIL tt 0.002s

Can a method be added to testing.common to allow the the caller of Fatal/Error/Log{,f}
to specify the number of stackframes to unwind.

Please use labels and text to provide additional information.

Issue 2:
by julians37:

What steps will reproduce the problem?
1. ./all.bash

What is the expected output? What do you see instead?

TestAllLog fails

What is your $GOOS? $GOARCH?

linux_amd64

Which revision are you sync'ed to? (hg log -l 1)

changeset: 3975:b51fd2d6c160
tag: tip
user: Kevin Ballard <kevin@sb.org>
date: Tue Nov 10 20:05:24 2009 -0800
summary: Implement new emacs command M-x gofmt

Please provide any additional information below.

log.go's formatHeader seems to have trouble getting the stack frame. The
same test passes no problem on an i686 machine.

make[2]: Leaving directory `/redacted/src/pkg/log'
--- FAIL: log.TestAllLog
log output should match "^/[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello
23 world$" is "/???/log_test.go:60: hello 23 world"
log output should match "^/[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello
23 world$" is "/???/log_test.go:58: hello 23 world"
log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-
9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-
9] /[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello 23 world$" is "XXX2009/1
1/11 20:36:28.877982 /???/log_test.go:60: hello 23 world"
log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-
9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-
9] /[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello 23 world$" is "XXX2009/1
1/11 20:36:28.878142 /???/log_test.go:58: hello 23 world"
FAIL
make[1]: *** [test] Error 1
make[1]: Leaving directory `/redacted/src/pkg/log'
make: *** [log.test] Error 2

$ uname -a
Linux heta 2.6.20.5_rsp_3.9 #1 SMP Wed Oct 14 16:24:34 EST 2009
x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

$ cat /etc/redhat-release
CentOS release 5.3 (Final)
Issue 1:
Playwright version

1.12.3

Operating system

MacOS

What browsers are you seeing the problem on?

No response

Other information

OS: macOS 12 Beta 3

Node version: v14.17.0

What happened? / Describe the bug

When I try to run a simple Playwright script on the latest macOS beta, Playwright errors out (error trace down below)

I'm not too familiar with Playwright's codebase, but when I manually go into my node_modules/playwright/lib/utils/registry.js and add mac12 keys to all browsers, Playwright launches just fine. (I just copied the mac11 key values)

I understand that macOS 12 is still in beta, so if it is deliberately "unsupported", please feel free to close this issue. Otherwise, I'm more than happy to create a PR to try and fix this if you'd like.

Code snippet to reproduce your bug

// This is the default playwright script from https://playwright.dev/docs/intro/#usage

const { chromium } = require('playwright');

(async () => {
const browser = await chromium.launch();
// Create pages, interact with UI elements, assert values
await browser.close();
})();

Relevant log output

browserType.launch: No executable path is specified. Pass "executablePath" option directly.
(node:59532) UnhandledPromiseRejectionWarning: browserType.launch: No executable path is specified. Pass "executablePath" option directly.
Error
at Object.captureStackTrace (/Users/siddhant/Code/pw/node_modules/playwright/lib/utils/stackTrace.js:51:19)
at Connection.sendMessageToServer (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/connection.js:73:48)
at Proxy.<anonymous> (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/channelOwner.js:64:61)
at /Users/siddhant/Code/pw/node_modules/playwright/lib/client/browserType.js:59:67
at BrowserType._wrapApiCall (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/channelOwner.js:77:34)
at BrowserType.launch (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/browserType.js:50:21)
at /Users/siddhant/Code/pw/index.js:4:34
at Object.<anonymous> (/Users/siddhant/Code/pw/index.js:7:3)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47

Issue 2:
Playwright version

1.12.3

Operating system

MacOS

What browsers are you seeing the problem on?

No response

Other information

macOS 12.0 Beta

What happened? / Describe the bug

Not able to install playwright via npm.

Code snippet to reproduce your bug

No response

Relevant log output

npm ERR! Error: Failed to download chromium, caused by
npm ERR! Error: ERROR: Playwright does not support chromium on mac12
Issue 1:
Neo4j version: 3.1.2

Operating system: Ubuntu 16.04

API/Driver: Cypher

Hey guys

I've been exporting some data from ArangoDB to test out in Neo4J. I've imported a bunch of member nodes, and attribute nodes. Members nodes are connected (relationships) to several Attributes nodes.

Member nodes only have the one property

Attribute nodes only have the one property

the relationships have no properties

I executed the following command to add the relationships between the Member and Attribute nodes, but what I didn't realize was that there were some duplicates in the Attributes nodes.

using periodic commit
load csv from "file:///is.csv" as row with row limit 1
match (m:Member {username:row[0]}), (a:Attribute {name:row[1]})
create (m)-[:IS]->(a)

When I realized that I had duplicates I decided to delete the Attribute nodes and the relationships, and then try again.

Now as I recall, I executed the following query:

match (m)-[r]->(a) delete r,a

After a few minutes, it said the query completed, but now I realize it didn't delete everything - it left about 12,000 relationships from what I remember and I don't remember how many Attribute nodes were left over.

I tried it again:

Relationships increased to 20714 (increased by at least 8,000)

Duration: 20 minutes

I tried to delete just 1 relationship:

match (m)-[r:IS]->(a:Attribute) with r limit 1 delete r

First attempt

Relationships increased to 30949 (increased by 9780), Duration: 36 minutes

Second attempt

Relationships increased to 41281 (increased by 10787), Duration: over 40 minutes

I tried a detach delete:

match (a:Attribute {name:"isSmoker"}) detach delete a

The result in the UI says - "Deleted 12 nodes, deleted 1560 relationships, statement completed in 2852664 ms."

The 12 nodes were deleted, but the relationships were actually increased to 49933.

What other info do you need to diagnose?

Issue 2:
Guidelines

Please note that GitHub issues are only meant for bug reports/feature requests.

If you have questions on how to use Neo4j, please ask on StackOverflow instead of creating an issue here.

Before creating a new issue, please check whether someone else has raised the same issue. You may be able to add context to that issue instead of duplicating the report. However, each issue should also only be focussed on a single problem, so do not describe new problems within an existing thread - these are very hard to track and manage, and your problem may be ignored. Finally, do not append comments to closed issues; if the same problem re-occurs, open a new issue, and include a link to the old one.

To help us understand your issue, please specify important details, primarily:

Neo4j version: 4.4.0

Operating system: Linux/Ubuntu

Expected behavior

Users should be able to all all apoc procedures when apoc is installed

Actual behavior

No apoc.map.* procedures are found
Issue 1:
Is there any reason why the axios.defaults.adapter property doesn't reflect the behaviour inside dispatchRequest.js?

https://github.com/mzabriskie/axios/blob/master/lib/core/dispatchRequest.js#L40

I'm trying to build my own adapter that is capable of falling back to the default adapter under certain circumstances. With the code as it is I'm forced to duplicate the above if-elseif, i.e.:

import axios from 'axios';
if (typeof XMLHttpRequest !== 'undefined') {
// For browsers use XHR adapter
axios.defaults.adapter = require('axios/lib/adapters/xhr');
} else if (typeof process !== 'undefined') {
// For node use HTTP adapter
axios.defaults.adapter = require('axios/lib/adapters/http');
}

Issue 2:
I don't know why but with the same api, sometime axios's response.data is string instead of object. See the below figure.

Context

axios version: 0.18.0

Environment: React native Expo SDK 29, window 10
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

To use makeSelectable to make the List selectable

Current Behavior

No such a function is available

Steps to Reproduce (for bugs)

Try using this code

let SelectableList = makeSelectable(List);

/**

Wraps the selection list event and keeps it state

@param {any} ComposedComponent

@returns

*/

function wrapState(ComposedComponent) {

return class SelectableList extends React.Component {

render() {

return (

{this.props.children}

);

}

};

}

Context

React

Your Environment

Tech
Version

Material-UI
v1-beta

React
15.3

browser
chrome

etc

Issue 2:
Problem description

SelectableList is not available List in v1 beta branch

Versions

Material-UI:

React:

in master branch it is availablae in "material-ui/src/List/makeSelectable.js"
Issue 1:
Is it just me or does there appear to be serious inconsistency between the size breaks for cols and hidden/visible?

Shouldn't col-sm- really be col-md- (and col- is essentially synonymous with col-sm-)?

Issue 2:
With Bootstrap 3 RC1, the sm keyword is used in an inconsistent manner. When referring to column sizes, it means "tablet sized." When referring to hide/show responsive classes it means "phone sized." My recommendation would be to rename all of the col-sm-X classes to be col-md-X classes.

This would solve the inconsistency while still advocating "mobile-first" and leaving the mobile columns un-prefixed.
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.):

kubectl,defaultconfig

Merge that possibly introduced the error: #32613

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

Bug report

Kubernetes version (use kubectl version): v1.4.0-beta.8

Client Version: version.Info{Major:"1", Minor:"4+", GitVersion:"v1.4.0-beta.8", GitCommit:"3040f87c570a772ce94349b379f41f329494a4f7", GitTreeState:"clean", BuildDate:"2016-09-19T07:54:34Z", GoVersion:"go1.7", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"4+", GitVersion:"v1.4.0-beta.8", GitCommit:"3040f87c570a772ce94349b379f41f329494a4f7", GitTreeState:"clean", BuildDate:"2016-09-19T07:54:34Z", GoVersion:"go1.7", Compiler:"gc", Platform:"linux/amd64"}

Environment:

Cloud provider or hardware configuration: virsh

OS (e.g. from /etc/os-release): Debian GNU/Linux 8 (jessie)

Kernel (e.g. uname -a): Linux 299e561bce9845aeb537a4a1a50a4562.dev.local-planet 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 GNU/Linux

Install tools:

Others:

What happened:

kubectl w/o cluster configuration does not connect to apiserver with the following error: The connection to the server localhost:8080 was refused - did you specify the right host or port?

What you expected to happen:

kubectl w/o parameters used to connect using in-cluster approach, using a token and KUBERNETES_SERVICE_HOST / KUBERNETES_SERVICE_PORT pair

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

Install a cluster with k8s 1.4-beta.8, run a pod with kubectl and issue any command

Anything else do we need to know:

I think the problem is in this line:

https://github.com/kubernetes/kubernetes/pull/32613/files#diff-47197a425491d7fcfa69115333533db9R116

if IsConfigurationInvalid(defErr) && !IsEmptyConfig(err) {

where err (apparently) is always nil, and (I guess) should be the following instead:

if IsConfigurationInvalid(defErr) && !IsEmptyConfig(defErr) {

Issue 2:
pod spec validation rejects env variable keys that contain dots (eg "FOO.BAR"), but "FOO.BAR" is a valid env variable name for some (though not all) shell environments, so this validation rule is overly strict.

@smarterclayton
Issue 1:
Summary of the new feature/enhancement

Fancy Zones: Zone Layouts should automatically resize based on changes in screen resolution. Frequently I switch between monitors, multimonitor or present. When I do this, often my screen resolution must change. It would be great if FZ was smart enough to resize based on resolution changes.

Proposed technical implementation details (optional)

Track FZ Zones position and percent distance from the x/y screen edges in the current resolution and transform that to a relative position and size in the new resolution scheme. Allow for user to reposition if the transform is slightly off. Then, remember the settings and monitors for feature reconnect...Or attempt to transform each time.

Issue 2:
Dimensions for custom zones do not auto-scale when resolution changes.

For example, when I plug the computer to a dock station with a monitor, the zones are not adjusted to the new resolution and app windows end up placed in the middle of the screen and not as desired.

Setting up a second custom zone layout for a different resolution is dumb and inconvenient.

Thank you.
Issue 1:
Calculating std on float32 arrays using axis can give inaccurate results. See the example below.

Reproducing code example:

import numpy as np

n = 1_000_000

# Create a float32 array with two columns with values 100 and -100
# x.shape = (n, 2)
x = np.array([100.0, -100.0])[None, :].repeat(repeats=n, axis=0).astype(np.float32)

# calculating std for the column separately gives 0 as expected
print(x[:, 0].std()) # -> 0.
print(x[:, 1].std()) # -> 0.

# calculating std on both columns in one go using axis=0 gives
print(x.std(axis=0)) # -> [1.3201232, 1.3201232]

The magnitude of the error becomes larger with larger n and larger values for the columns.

It seems like this loss of accuracy should be avoidable.

Numpy/Python version information:

>>> import sys, numpy; print(numpy.__version__, sys.version)
1.17.2 3.7.4 (default, Sep 7 2019, 18:27:02)
[Clang 10.0.1 (clang-1001.0.46.4)]

Issue 2:
A mean over an array containing only ones should obviously return only ones. However,

>>> import numpy as np
>>> test_array = np.ones((10000000, 4, 15), dtype = np.float32)
>>> print(test_array.mean(axis=(0,1)))
[ 0.4194304 0.4194304 0.4194304 0.4194304 0.4194304 0.4194304
0.4194304 0.4194304 0.4194304 0.4194304 0.4194304 0.4194304
0.4194304 0.4194304 0.4194304]

This returns the correct result:

>>> print(test_array.mean(axis=0).mean(axis=0))
[ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]

I guess the reason for this problem is some overflow, because it does not appear when I use a test array with dtype = np.float64. I would expect numpy to either give the correct result or to at least give a warning whenever such an overflow happens.

surprisingly mean along all axis gives the correct result again:

>>> print(test_array.mean(axis=(0,1,2)))
1.0

(I used numpy-1.12.1 with python 3.5 on Ubuntu 16)
Issue 1:
Moving away from it would be a PITA since it is used a bunch, but this pattern makes it difficult for newcomers to see where things are defined.

Issue 2:
An idea for numpy/__init__.py:

if sys.version_info[:2] >= (3, 7):
__all__ += ['__don_t_do_this']

def __getattr__(attr):
if attr == '__don_t_do_this':
warning.warn("Don't do this')
return None
raise AttributeError