WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-serial/71/

Failed: [k8s.io] Kubelet [Serial] [Slow] [k8s.io] regular resource usage tracking resource tracking for 100 pods per node {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:278
Oct 3 22:38:52.406: CPU usage exceeding limits:
node gke-jenkins-e2e-default-pool-f7f81b56-uyvk:
container "kubelet": expected 50th% usage < 0.170; got 0.173, container "kubelet": expected 95th% usage < 0.220; got 0.249
node gke-jenkins-e2e-default-pool-f7f81b56-yor7:
container "kubelet": expected 50th% usage < 0.170; got 0.171, container "kubelet": expected 95th% usage < 0.220; got 0.223
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:187

Previous issues for this test: #26982

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-soak-continuous-e2e-gce/6512/

Failed: [k8s.io] Kubelet [Serial] [Slow] [k8s.io] regular resource usage tracking resource tracking for 100 pods per node {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:278
Sep 7 04:56:39.012: Memory usage exceeding limits:
node jenkins-e2e-minion-group-4yze:
container "kubelet": expected RSS memory (MB) < 83886080; got 85123072
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:153

Previous issues for this test: #26982
Issue 1:
Suggestion

It would be very convenient if np.asscalar() would pass through scalars. The use-case is to ensure that an argument is a scalar, regardless what is passed in (as long as it behaves as a scalar).

>>> np.asarray(1.0)
1.0
>>> np.asarray(1j)
1j

Presently these fail as the implementation simply looks for the .item() method, which scalars do not possess:

>>> np.asarray(1.0)
AttributeError Traceback (most recent call last)
<ipython-input-13-c6bc08be135e> in <module>()
----> 1 np.asscalar(1.0)

.../python2.7/site-packages/numpy/lib/type_check.pyc in asscalar(a)
461
462 """
--> 463 return a.item()
464
465 #-----------------------------------------------------------------------------

AttributeError: 'float' object has no attribute 'item'```

Rational

It is common to use np.asarray() to ensure that the argument is an array (in the case that it might be a list etc.). In an analogous use case, it would be useful to be able to use np.asscalar() to ensure that an argument is a scalar (as long as it can be converted to a scalar).

Workaround

Convert the argument to an array first.

np.asscalar(np.asarray(x))

Resolution

Perhaps code like the following would work:

def asscalar(a):
try:
return a.item()
except AttributeError, e:
return np.asarray(a).item()

Issue 2:
np.random.randint results in ValueError when specifying arguments that overflow int32 on Windows. I've seen some related discussions around the platform dependent default int behavior (#9464, #12332, #16535). If this classifies as a duplicate of the issues I've referenced, feel free to close this. (similar issue happens when creating an arrays of small integers which defaults to a dtype of int32, but you run into np.prod returning 0 if it overflows, but that's a separate discussion.)

Right now code written on Linux won't work on Windows platforms (assuming both are 64 bit).

Reproducing code example:

import numpy as np
np.random.randint(34353543525, 5465445754, size=5)

Error message:

---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-47b726322196> in <module>
----> 1 np.random.randint(34353543525, 5465445754, size=5)

mtrand.pyx in numpy.random.mtrand.RandomState.randint()

_bounded_integers.pyx in numpy.random._bounded_integers._rand_int32()

ValueError: high is out of bounds for int32

Numpy/Python version information:

1.18.1 3.7.7 (default, May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)]
Issue 1:
issue type : Feature Idea

ansible version : 1.9.3

it will be cool if we could extract only one file like this :

unarchive: src={{ item.value.url }} dest={{ target_path }}{{ item.value.app_name }} path={{ item.value.path }}

where path parm is the path of the file inside the archive

this could give

unarchive: src=http://myrepository.com/dir/foobar-1.2.3.tar.gz dest=/home/foxmask/tomcat/webapps/foobar.war path=./applications/foobar.war

thus this will mimic this command :

cd /home/foxmask/tomcat/webapps && wget -O - http://myrepository.com/dir/foobar-1.2.3.tar.gz | tar -xvzf - ./applications/foobar.ear

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

unarchive module

ANSIBLE VERSION

N/A

SUMMARY

Add a list of files or patterns to extract from the archive instead of extracting the whole thing, by default it is none/empty and won't filter.
Issue 1:
//moduleA.js
export default {
foo: 'bar'
}

//moduleB.js
import { foo } from './moduleA';

const something = foo.baz;

Unfortunately the compiled code does not reference default at all, so i end up looking at moduleA.foo.baz instead of moduleA.default.foo.baz. I have noticed that interopRequireDefault is not used in this case (not sure what triggers the use of this helper, but it seems like I would want it to apply here).

Here is the query I pass to babel for refernece:

query: {
'presets': [
'react'
],
'plugins': [
'transform-proto-to-assign',
'syntax-object-rest-spread',
'transform-object-rest-spread',
'babel-plugin-transform-es2015-arrow-functions',
'babel-plugin-transform-es2015-block-scoped-functions',
'babel-plugin-transform-es2015-block-scoping',
'babel-plugin-transform-es2015-computed-properties',
'babel-plugin-transform-es2015-destructuring',
'babel-plugin-transform-es2015-for-of',
'babel-plugin-transform-es2015-function-name',
'babel-plugin-transform-es2015-literals',
'babel-plugin-transform-es2015-object-super',
'babel-plugin-transform-es2015-parameters',
'babel-plugin-transform-es2015-shorthand-properties',
'babel-plugin-transform-es2015-spread',
'babel-plugin-transform-es2015-sticky-regex',
'babel-plugin-transform-es2015-template-literals',
'babel-plugin-transform-es2015-typeof-symbol',
'babel-plugin-transform-es2015-unicode-regex',
[
'transform-es2015-modules-commonjs',
{ loose: true }
],
[
'transform-es2015-classes',
{ loose: true }
]
]
}

Issue 2:
Using babel 6.1.2, the following js:

export default {}

is transpiled to:

"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {};

using the following command line

babel --presets es2015 --plugins transform-es2015-modules-commonjs test.js

However the output with the 5.x was:

"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = {};
module.exports = exports["default"];

looks like module.exports = exports["default"]; is missing although the transform-es2015-modules-commonjs is enabled.

Is it a bug or I'm missing something ?

Thank you !
Issue 1:
Check this: http://plumdesigns.tk/dch/#about-us

Click on View Portfolio button in About Us Section, you will see that scrollbars hides and fixed sidebar and header change its position.

Is this problem with Modal or I am doing something wrong?

Issue 2:
re: #9855

in 3.2.0, when body has a scrollbar, it's content now stays in place when modal is opened (padding is added to the body).

But fixed top navbar, having position: fixed, left: 0 and right: 0, now jumps to the right when modal is opened, as it ignores padding-right on the body.
Issue 1:
We have a placeholder shape drawable (or sometimes shown directly as .load(R.drawable.abc)) which fails to display. The onException listener is called, but e is null.

The logs contain only:

com.example.app D/skia﹕ --- SkImageDecoder::Factory returned null

Glide: 3.5.2

Tested on Genymotion v4.4.2

The drawable:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ffabcdef"/>
</shape>

Issue 2:
Hi,

I need to cache all portrait covers of all movies of a pretty big VOD database to make them available in global Android TV search. Indeed android.app.SearchManager.SUGGEST_COLUMN_RESULT_CARD_IMAGE only accepts local images.

So I tried to use asynchronous downloadOnly() method to cache every movie cover in a SyncAdapter runnning in its dedicated thread.

Unfortunately asynchronous downloadOnly() method requires to be called from main thread because it calls internally GenericRequestBuilder.into() method which calls Util.assertMainThread().

So I tried to call asynchronous downloadOnly() method in main thread but it leads to UI hangs. This limitation appears to me as an undesirable side effect of GenericRequestBuilder.into() call which usually takes a 'view' target.

But I am not sure of my conclusion, so I prefer to ask instead of forking your fucking good piece of software.

Kind regards,

Laurent.
Issue 1:
When trying to compute variance of stats.truncnorm it gives incorrect results when shape parameters a and b are arrays.

It works correctly when a and b are floats.

I am working with scipy-1.6.1 and Python 3.9.1.

Reproducing code example:

import numpy as np
from scipy import stats

a = np.arange(10, dtype=float)
b = a + 1

# This will print correct mean
print('mean:', stats.truncnorm.stats(a, b, moments='m'))

# This will print incorrect variance
print('var:', stats.truncnorm.stats(a, b, moments='v'))

# This will print correct variance
print('var:', [stats.truncnorm.stats(aa, bb, moments='v') for (aa, bb) in zip(a, b)])

Output of this program:

mean: array([0.45986223, 1.38316905, 2.31582133, 3.26045429, 4.21683078,
5.18314709, 6.1572109 , 7.13706716, 8.12118899, 9.10845629])
var: array([-8.60292538, -8.60292538, -8.60292538, -8.60292538, -8.60292538,
-8.60292538, -8.60292538, -8.60292538, -8.60292538, -8.60292538])
var: [array(0.07965182), array(0.07274289), array(0.06152078), array(0.04927779), array(0.03829029), array(0.02945243), array(0.02274838), array(0.01779288), array(0.01414854), array(0.01144881)]

Issue 2:
truncnorm.mean and truncnorm.var appear to give incorrect outputs when loc or scale are array-like and contain more than one number:

>>> import scipy.stats as stats
>>> stats.truncnorm.mean(-1, 2, loc=0)
0.229637179091329
>>> stats.truncnorm.mean(-1, 2, loc=[0])
array([0.22963718])
>>> stats.truncnorm.mean(-1, 2, loc=[0, 0]) # expect to get 0.2296 twice
array([0., 0.])
>>> stats.truncnorm.var(-1, 1, loc=0)
0.29112509477279314
>>> stats.truncnorm.var(-1, 1, loc=[0])
array([0.29112509])
>>> stats.truncnorm.var(-1, 1, loc=[0, 0]) # expect to get 0.2911 twice
array([1., 1.])

truncnorm.moment doesn't seem to support array-likes at all, either:

>>> stats.truncnorm.moment(1, -1, 1, loc=[0])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\ProgramData\Miniconda3\lib\site-packages\scipy\stats\_distn_infrastructure.py", line 1266, in moment
fac = float(scale) / float(loc)
TypeError: float() argument must be a string or a number, not 'list'

This is on Scipy version 1.6.0. This problem was even worse on version 1.4.1, where truncnorm.var() could produce negative numbers:

>>> stats.truncnorm.var(-1, 1, loc=0)
0.29112509477279314
>>> stats.truncnorm.var(-1, 1, loc=[0, 0])
array([-0.41774981, -0.41774981])

I don't think I'm using these functions incorrectly, as the docstrings for mean(), var(), and moment() all say that loc and scale can be array-like.
Issue 1:
Migrated issue, originally created by Anonymous

(original reporter: ged) Here is a patch which significantly speed up processing of PGArrays and also "fixes" the support for multi-dimensional PGArrays.

In short, this patch introduces support for types like PGArray(PGArray(Integer)). However, multidimensional support might (I didn't actually test that case) have already worked without being explicitly declared (ie using a PGArray(Integer) as a multi-dimensional array) because Postgres does not enforce the number of dimension declared. IMO, this shouldn't be relied upon because it is probably a temporary situation.

I didn't commit it directly because I fear the current way of doing things might have been intentional, given the current recursive code.

Also, the attached patch tries to add some test for multi-dimensional arrays to the test suite but was not tested within the test suite because I couldn't run it (it seemed to be broken as of yesterday).

Of course, I did test basic roundtrip, as in the attached testcase.

Attachments: stress_array.py | PGArray_multi_and_speed.diff

Issue 2:
Migrated issue, originally created by Anonymous

(original reporter: anthonyt) Like the title says, this is a test case for a bug that affects setting the contents of an InstrumentedList property.

Essentially it boils down to: If there is an object X in a Many-To-Many relationship with a join table, and you remove it, then add it again, then flush, SQLAlchemy tries to insert a duplicate row into the join table.

e.g. given the following...

tables: users, groups, users_groups

classes: User, Group

and instances: u, g

The following operations will succeed:

u.groups = [g](g)
session.commit()
u.groups.remove(g)
session.commit()
u.groups.append(g)
session.commit()

But the following operations (missing the intermediate flush/commit) will fail:

u.groups = [g](g)
session.commit()
u.groups.remove(g)
u.groups.append(g)
session.commit()

Runnable test case at https://gist.github.com/4449077 though you'll have to edit the config dictionary to add your own user and database name.
Issue 1:
VSCode Version: 0.10.11 (0.10.11)

OS Version: OSX 10.11.4 (15E65)

Steps to Reproduce:

open code

in a new file type "hello

world" (hello [new line]world)

edit -> find

4 in search box type "\n" and select regular express

nothing is found but there is a new line character in the text file

Issue 2:
The Find dialog (Ctrl+F) does not allow multi-line finds using the \n character as it currently considers each line individually. See TextModel._doFindMatches

Created out of a discussion in #278
Issue 1:
Challenge Add Font Awesome Icons to all of our Buttons has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
h2 {
font-family: Lobster, Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
</style>

<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
</div>
</div>
<img src="https://bit.ly/fcc-running-cats" class="img-responsive">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info">Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger">Delete</button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
Migrated issue, originally created by Anonymous

When converting a column from varchar to integer using postgresql sqlalchemy (version 0.7.5) lacks a postgres specific statement for the proper conversion.

It creates e.g.:

ALTER TABLE images ALTER COLUMN id TYPE INTEGER;

But it should be e.g.:

ALTER TABLE images ALTER COLUMN id TYPE INTEGER using id::integer;

Issue 2:
Migrated issue, originally created by Anonymous

File "/Library/Python/2.6/site-packages/SQLAlchemy-0.6.6-py2.6.egg/sqlalchemy/dialects/firebird/kinterbasdb.py", line 146, in _get_server_version_info

"Could not determine version from string '%s'" % version)

AssertionError: Could not determine version from string 'WI-V8.1.1.333'
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.388]
Windows Terminal version (if applicable): Version: 0.5.2762.0

Steps to reproduce

Type a command in command prompt which outputs more lines than fit on screen

(i.e.: for /l %f in (1,1,100) do @echo abcdefghijklmnopqrstuvwxyz %f )

Expected behavior

Pulling the slider up, should scroll the window (up)

Actual behavior

See this:

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): Version: 0.3.2171.0

Using bash within Windows terminal.

Steps to reproduce

Copy several text lines and paste them using vi text editor in bash (WSL).

Expected behavior

Properly copied lines within the text editor.

Actual behavior

A single line is generated with spaces so that it looks like they are different lines.
Issue 1:
Affix appears to be removing and re-adding the "affix-bottom" class to the affixed element at the bottom of the screen as the user scrolls in small increments up/down.

This is especially noticeable when the footer is very tall, and the affixed element is tall as well.

You can see it happening in IE on the bootstrap site overlapping the footer:

Perhaps this has to do with a pixel-rounding issue, or maybe the scroll event handling is strange in IE?

Issue 2:
I'm experiencing some weird behavior from the affix plugin when using Explorer 10/Win 7.

I first noticed the problem when scrolling to the bottom of a page and the affix element jumped back and forth between the wrong position (screenshot 1) and the correct position (screenshot 2).

Then I clicked on the page when scrolled to the bottom and the same thing happend.

The affix element jumpes back and forth between the wrong position (screenshot 1) and the correct position (screenshot 2).

screenshot 1 - bootstrap-affix-wrong-position

screenshot 2 - bootstrap-affix-correct-position

At first I thought did something wrong with my implementation, but I experience the same thing on http://getbootstrap.com/css/ and the other subpages.

I've tested in latest Chrome, Firefox and Safari and the problem seems to only occur with Explorer.
Issue 1:
BatchInserter should defensively respect set semantics of node labels. Having duplicate labels on nodes isn't logical.

When adding labels using the embedded API the following holds:

node.addLabel(LABEL);
node.addLabel(LABEL);
node.getLabels(); // equals {LABEL}

however BatchInserter allows the following:

inserter.setNodeLabels(nodeId, LABEL, LABEL);
inserter.getNodeLabels(); // equals {LABEL, LABEL}

and further, after the resulting graph has been loaded by the embedded API:

node.getLabels(); // equals {LABEL, LABEL}

Duplicate labels should be ignored by the batch inserter.

Issue 2:
Cant seem to get high-io to read True when using the Neo4j Admin import. Here is my bash cmd:

~/../../../usr/bin/neo4j-admin import --nodes "import/uids-header.csv,import/uid_no." --nodes "import/identitylink-header.csv,import/idlink_no." --nodes "import/bluekai-header.csv,import/bk_no." --nodes "import/acxiom-header.csv,import/axm_no." --nodes "import/adobe-header.csv,import/adb_no." --nodes "import/lr-header.csv,import/lr_no." --nodes "import/viant-header.csv,import/vnt_no." --nodes "import/ga-header.csv,import/ggl_no." --nodes "import/segment-header.csv,import/seg_no." --nodes "import/email-header.csv,import/email_no." --relationships:RELATED_TO "import/rels-header.csv,import/idlink_li.,import/bk_li.,import/axm_li.,import/adb_li.,import/lr_li.,import/vnt_li.,import/ggl_li.,import/seg_li.,import/email_li.*" --high-io=true --ignore-duplicate-nodes=true --ignore-missing-nodes=true --delimiter="_" --max-memory=95%

This is read out of Available resources:

Total machine memory: 240.09 GB

Free machine memory: 238.17 GB

Max heap memory : 26.67 GB

Processors: 32

Configured max memory: 192.08 GB

High-IO: false

I am on a AWS EC2 with IOS SSD EBS storage with 8000 IOPS which I figured would help speed up my import and transaction/query speed when I scale to a multi-TB dataset.

Expected behavior: High-IO : True

Resulting behavior: High-IO : false
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

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

Environment

Dubbo version: 2.6.2

Operating System version: mac os 10.13/win10

Java version: JDK6/7/8

Step to reproduce this issue

provider side shutdown

start consumer side use @reference annotation(check=true)

invoke provider get NPE

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

like consumer with xml config <dubbo:refrence>, if not provider application startup failed.

Actual Result

application startup successful, and when invoke provider get NPE, then we startup the provider side still get NPE

If there is an exception, please attach the exception trace:

Just put your stack trace here!

case reason:

when use @Refence annotation(be know that check default value is true) , if no provider actually ReferenceConfig class throw exception, but this exception was ignored.

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

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

Environment

Dubbo version: 2.6.2

Operating System version: linux

Java version: 1.8

Steps to reproduce this issue

定义类：

public class JZSVo implements Serializable{
List<Double> arr = new ArrayList<>();
//get方法
//set方法。
}

在producer端赋值

public JZSVo get() {
List<Double> list = new ArrayList<>();
list.add(null);
list.add(null);
list.add(3.0);

JZSVo jzsVo = new JZSVo();
jzsVo.setArr(list);
return jzsVo;
}

在service端接收返回的数据 jzsVo中的arr的第一个、第二个数据应该为null实际为0.0

4.经过测试所有的基础类型：Double/Float/Integer等都会出现这种问题。

Expected Result