WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

apt module

ANSIBLE VERSION

12:40 $ ansible --version
ansible 2.3.2.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]

OS / ENVIRONMENT

(Ubuntu) Linux knowhere 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

SUMMARY

Running apt task with --allow_unauthenticated and the task fails saying that allow_unauthenticated needs to be accepted.

STEPS TO REPRODUCE

- name: Install required packages
apt:
name: '{{ item }}'
state: latest
allow_unauthenticated: yes
with_items:
- 'python-setproctitle'
- 'logentries'

EXPECTED RESULTS

I expect the packages to be installed.

ACTUAL RESULTS

fatal: [php1-test.test2.infra]: FAILED! => {
"cache_update_time": 1505236342,
"cache_updated": false,
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"allow_unauthenticated": false,
"autoremove": null,
"cache_valid_time": 0,
"deb": null,
"default_release": null,
"dpkg_options": "force-confdef,force-confold",
"force": false,
"install_recommends": null,
"name": "logentries-daemon",
"only_upgrade": false,
"package": [
"logentries-daemon"
],
"purge": false,
"state": "latest",
"update_cache": null,
"upgrade": null
}
},
"msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'logentries-daemon'' failed: E: There were unauthenticated packages and -y was used without --allow-unauthenticated\n",
"rc": 100,
"stderr": "E: There were unauthenticated packages and -y was used without --allow-unauthenticated\n",
"stderr_lines": [
"E: There were unauthenticated packages and -y was used without --allow-unauthenticated"
],
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following NEW packages will be installed:\n logentries-daemon\n0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 2970 B of archives.\nAfter this operation, 42.0 kB of additional disk space will be used.\nWARNING: The following packages cannot be authenticated!\n logentries-daemon\n",
"stdout_lines": [
"Reading package lists...",
"Building dependency tree...",
"Reading state information...",
"The following NEW packages will be installed:",
" logentries-daemon",
"0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.",
"Need to get 2970 B of archives.",
"After this operation, 42.0 kB of additional disk space will be used.",
"WARNING: The following packages cannot be authenticated!",
" logentries-daemon"
]
}

Issue 2:
Closing as duplicate of 8736
Issue 1:
Elasticsearch version:

# elasticsearch --version
Version: 2.3.4, Build: e455fd0/2016-06-30T11:24:31Z, JVM: 1.8.0_91

JVM version:

# java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-1~bpo8+1-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

OS version: Debian Jessie, elasticsearch is running in the container from the official docker image.

Description of the problem including expected versus actual behavior:

Steps to reproduce:

Index ~1 billion documents (I used 1 241 584 977 for 12h) in ~1kb doc average.

Run topN query for low cardinality field with zero matches -> get instant response. Good!

Run topN query for high cardinality field with zero matches -> get slow response. Bad!

The index in question has 50 shards and all fields are doc_values.

Query for low cardinality field:

{
"size": 0,
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{
"query": {
"query_string": {
"query": "zoneName:foo.bar"
}
}
},
{
"range": {
"@timestamp": {
"gte": "2016-08-03T00:00:00Z",
"lte": "2016-08-03T12:00:00Z"
}
}
}
]
}
}
}
},
"aggs": {
"topn": {
"terms": {
"field": "status",
"size": 10,
"order": {
"_count": "desc"
}
}
}
}
}

Response:

{
"took": 148,
"timed_out": false,
"_shards": {
"total": 50,
"successful": 50,
"failed": 0
},
"hits": {
"total": 0,
"max_score": 0,
"hits": []
},
"aggregations": {
"topn": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
}
}

Query for high cardinality field:

{
"size": 0,
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{
"query": {
"query_string": {
"query": "zoneName:foo.bar"
}
}
},
{
"range": {
"@timestamp": {
"gte": "2016-08-03T00:00:00Z",
"lte": "2016-08-03T12:00:00Z"
}
}
}
]
}
}
}
},
"aggs": {
"topn": {
"terms": {
"field": "request",
"size": 10,
"order": {
"_count": "desc"
}
}
}
}
}

Response:

{
"took": 10634,
"timed_out": false,
"_shards": {
"total": 50,
"successful": 50,
"failed": 0
},
"hits": {
"total": 0,
"max_score": 0,
"hits": []
},
"aggregations": {
"topn": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": []
}
}
}

Field cardinality for the same timespan:

request: 168154206

status: 127

Problem is: these 10 seconds came out of nowhere. I don't have any matching documents, there's nothing to do. I'm afraid that I have to pay the price for every request trying to do aggregation for index-wise high cardinality field, even though query-wise the field is not that diverse.

Issue 2:
With #22073 and #22225 we enabled strict duplicate checks for XContent. Although our benchmarks only showed a negligible performance drop of 1 - 2% (see #19614), Elasticsearch 6.0 still allows to disable the strict duplicate checks with an undocumented flag. Hence, we also needed to keep the existing hand-coded duplicate checks around in case Elasticsearch is started with disabled XContent parser duplicate checks.

In Elasticsearch 7.0, we should remove the undocumented fallback to disable strict duplicate checks and also remove our hand-coded duplicate checks.
Issue 1:
Version

Vue: 2.6.10

TS: 3.3.4000 and 3.4.5

Reproduction link

https://github.com/octref/vue-prop-type-error

Steps to reproduce

git clone https://github.com/octref/vue-prop-type-error && cd vue-prop-type-error

yarn

yarn compile

What is expected?

No error reported from this file

import Vue from 'vue'

const foo = Vue.extend({
props: {
a: Array,
s: String,
b: Boolean
},
created() {
console.log(this.a)
console.log(this.s)
console.log(this.b)
}
})

What is actually happening?

a, s, b are not bound to this instance

index.ts:10:22 - error TS2339: Property 'a' does not exist on type 'ComponentOptions<Vue, DefaultDat
a<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, a
ny>>'.

10 console.log(this.a)
~

index.ts:11:22 - error TS2339: Property 's' does not exist on type 'ComponentOptions<Vue, DefaultDat
a<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, a
ny>>'.

11 console.log(this.s)
~

index.ts:12:22 - error TS2339: Property 'b' does not exist on type 'ComponentOptions<Vue, DefaultDat
a<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>'.

12 console.log(this.b)
~

Found 3 errors.

Issue 2:
Version

2.6.10

Reproduction link

https://github.com/Patcher56/ts3.4.x-vuejs-issue

Steps to reproduce

create a new vue typescript project (without class syntax) vue create test-ts

open src/components/HelloWorld.vue

add a data variable and try to access it in a computed property

What is expected?

No errors (as the data is defined)

What is actually happening?

Typescript error 2339 telling me

Property 'test' does not exist on type 'CombinedVueInstance<Vue, {}, {}, {}, Readonly<{ msg: string; }>>'.

I think this has something to do with the changed type inference in Typescript 3.4.x.

Important: Change vetur settings to use workspace dependencies to show errors directly in vscode, else you will only get the error when using yarn serve.
Issue 1:
Hello! any plans to make dockerize deno? If this is not done, I like to help.

Nathan Aw (Singapore)

Issue 2:
@hayd started a while https://github.com/hayd/deno-docker

This can be ported to be integrated as the Official Deno docker image. So 3 steps are needed:

Integrate generation of docker image in the CI

Test the generated docker image

Publish image on the docker hub / github hub on release

Also do we plan to release on docker hub only or we push it to github registry also? It's just a matter of URL in the command in the CI but @ry and @piscisaureus have to create / set credentials in the project.
Issue 1:
Bug report

Bug summary

imshow is not displaying data accurately. Non existent values displayed in images, white spots as shown below. This issue was also occurring in 3.2.1.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import from_levels_and_colors

rnd = np.random.default_rng(32)
data = rnd.choice((0, 1), (200, 200), p=(.25, .75))

cmap, norm = from_levels_and_colors([0, .5, 1], ['red', 'blue'])
plt.imshow(data, cmap = cmap)
plt.colorbar()
plt.show()

Actual outcome

Expected outcome

As displayed with matplotlib 3.1.3.

Matplotlib version

Operating system: Windows 10

Matplotlib version: 3.2.1 and 3.2.2

Matplotlib backend: module://ipykernel.pylab.backend_inline

Python version: 3.7.7 (default, Apr 15 2020, 05:09:04) [MSC v.1916 64 bit (AMD64)]

Jupyter version (if applicable): jupyter core: 4.6.3, jupyter-notebook: 6.0.3, jupyter client: 6.1.3, jupyter lab: 2.1.1

Other libraries: numpy 1.18.1

Pip install 3.2.1 and 3.2.2.

Issue 2:
Bug report

Bug summary

imshow() plots different results between versions 3.1.2 and 3.2.2 for masked numpy arrays. The latest version is missing pixels that were plotted in the older version.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

arr = np.ma.masked_values(
np.load('test.npz')['arr_0'],
-9999
)
np.ma.masked_where(arr <= 0, arr, copy=False);

plt.figure()
plt.imshow(arr);

Actual outcome

Expected and correct result with 3.1.2

Results using 3.2.2

TestFile

test.pyz

Both versions were installed via conda. Numpy is 1.18.5
Issue 1:
Since 2.1.0, Button dropdown menu items cannot be clicked/selected on iPhone (Unable to test on other touch devices to confirm). The dropdown menu closes as soon as you try to click an item from the dropdown.

This issue is repeatable on the Bootstrap Sample Page: http://twitter.github.com/bootstrap/components.html#buttonDropdowns

To clarify, I also applied the 4497 fix to see if that helped, and no luck: #4497

Issue 2:
Right now, you need one of the Javascript plugins for the links to be disabled completely, otherwise if you just have a hash, it will take you to the top of the page. An easy way to fix this is to allow a tag for disabled "links" with the same properties as anchors within .pagination so it doesn't break the layout.
Issue 1:
React version: latest

Steps To Reproduce

function App() {
return <h1 onClick={console.log}>h1</h1>;
// console.log is replaced by "disableLog" so I can't log any event.
return <h1 onClick={x => console.log(x)}>h1</h1>;
// have to do this
}

Previous discussion at #15894 (comment)

Issue 2:
Which website or app were you using when the bug happened?

Please provide a link to the URL of the website (if it is public), a CodeSandbox (https://codesandbox.io/s/new) example that reproduces the bug, or a project on GitHub that we can checkout and run locally.

What were you doing on the website or app when the bug happened?

If possible, please describe how to reproduce this bug on the website or app mentioned above:

Generated information

DevTools version: 4.13.1-93782cfed2

Call stack:

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21499:43

at bridge_Bridge.emit (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19607:22)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19767:12

at listener (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37788:39)

Component stack:

(none)

GitHub URL search query:

https://api.github.com/search/issues?q=Cannot%20remove%20node%20%20because%20no%20matching%20node%20was%20found%20in%20the%20Store.%20in%3Atitle%20is%3Aissue%20is%3Aopen%20is%3Apublic%20label%3A%22Component%3A%20Developer%20Tools%22%20repo%3Afacebook%2Freact
Issue 1:
Please note the key pressed at the bottom-left corner of the animation.

Steps to reproduce:

Highlight a block of code

Press Shift + Tab

Notice the state of the editor, most of the selected code is deleted

Pressing CMD + Z does not bring back the deleted code.

VSCode version: 0.10.8

OS: OS X 10.10.5

Is it only me?

Issue 2:
I wanted to indent multiple lines at once but it failed. This is how it looks like when I select some lines and press Tab. Sometimes it works though, like when creating an untitled file in split screen.

Quite important bug @egamma @jrieken @bpasero
Issue 1:
fn foo(a: int, a: bool) {
println(fmt!("%?", a));
}
fn main() {
foo(42, false);
}

I expect this to fail to compile on account of the duplicated argument name. Instead:

<anon>:1:7: 1:8 warning: unused variable: `a` [-W unused-variable (default)]
<anon>:1 fn foo(a: int, a: bool) {
^

And running it writes false. The first argument is wholly inaccessible.

Issue 2:
The librustc binary contains 657 string constants containing "bounds check". There is opportunity for reduction here.
Issue 1:
*Electron version: 1.3.4

Operating System (Platform and Version): OSX 10.13.5

Expected behavior

We have a system that we connect into that starts off with a microsoft login. It then redirects to a VPN login popup that uses NTLM authentication. The page should show a popup to enter the credentials and allow the ability to send the NTLM creds to the redirected page.

Actual behavior

In electron I get the microsoft login but then get a blank page for the redirect for the NTLM popup.

I see a 401 unauthorized on the redirect call.

Electron shows blank page where as in chrome you get a popup for credentials. Also, there is no way to send the NTLM cred to the redirected page.

I was able to successfully log in from Postman using the redirect link and sending the user name and password in NTLM format.

Issue 2:
Issue 1:
Greetings, yticks, yticklabels, and annotations seem to be off center on the yaxis for some reason (by default). Is this user error, and if so I am having trouble googling a solution and any help is appreciated!

Version info:

seaborn-0.9.0

scipy-1.3.0

scikit_learn-0.21.3

pandas-0.25.0

numpy-1.17.0

matplotlib-3.1.1

Code:

import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

data = {'y_Predicted': [1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0], 'y_Actual': [1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0]}

df = pd.DataFrame(data, columns=['y_Actual','y_Predicted'])
confusion_matrix = pd.crosstab(df['y_Actual'], df['y_Predicted'], rownames=['Actual'], colnames=['Predicted'])
fig = plt.figure(figsize=(12,8))
sns.heatmap(confusion_matrix, annot=True)
plt.show()

Observed phenotype from code above:

Thanks!

-Sungshine

Issue 2:
Is there a way to not show outliers in boxplot in order to not to mess up a scale?

If not I think It would be nice to add.

I tried fliersize=0 but that didn't work. (The scale was still the same).
Issue 1:
Basic JavaScript: Waypoint: Generate Random Whole Numbers within a Range (http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-within-a-range)

I've tried this over and over for about an hour and I've looked it up on Google and from what I can see, I'm doing this right.

Here is my code which I believe is correct...

var min = 0;

var max = 12;

function myFunction() {

// Make myFunction return a random number between zero and nine instead of a decimal

// Only change code below this line.

return Math.floor(Math.random() * (9 - 1 + 1)) + 1;

}

// Only change code above this line.

// We use this function to show you the value of your variable in your output box.

(function(){return(myFunction());})();

Depending on the number that is generated, it's either correct on 2 out of 3 points none.

No matter what I do, I can't get the third point. I'm pretty sure it's a bug because I've looked this up and the fact is that the results of my code give what the exercise is asking for.

Here is the readout...

assert(myFunction() >= min, 'The random number that's generated by myFunction should be greater than or equal to the minimum number');

assert(myFunction() <= max, 'The random number that's generated by myFunction should be less than or equal to the maximum number');

assert((function(){if(editor.getValue().match(/max/g).length >= 2 && editor.getValue().match(/min/g).length >= 2 && editor.getValue().match(/Math.floor/g) && editor.getValue().match(/Math.random/g)){return(true);}else{return(false);}})(), 'You should be using the function given in the description to calculate the random in number in a range');You should be using the function given in the description to calculate the random in number in a range

Issue 2:
Challenge Name

Issue Description

Browser Information

Browser Name, Version: Google Chrome 55.0.2883.87 m

Operating System: Windows 8.1

Mobile, Desktop, or Tablet: Desktop

Your Code

<form action="/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor">Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor">Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality">Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality">Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality">Crazy</label>
</div>
</div>
<input class="form-control" type="text" placeholder="cat photo URL" required>
<button class="btn btn-primary" type="submit"><i class="fa fa-paper-plane"></i>Submit</button>
</form>
</div>

Screenshot

Edited by moderator
Issue 1:
Is it feasible to extend tfcompile to support training?

Our reinforcement learning pipelines sometimes spend significant time in Python side of session.run because networks are small, and need lots of session.run calls since each .run leads to an interaction with a simulator (ie, Mujoco, gym or universe)

So you could have have 30k session.run calls where actual computation takes 200 usec, and Python session.run overhead is another 150 usec.

This could be improved if the network was tfcompiled and we didn't have to use session.run, however, this would need tfcompile to be extended to support multiple sets of fetches for the compiled object. IE

network initialization, input: weights, output: None

network forward op: input: observation, output: action

network train op: input: observations, actions output: None

network variable read: input: None, output: weights

Issue 2:
URL(s) with the issue:

https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/estimator/SessionRunHook

Description of issue (what needs changing):

Clear description

Yes clear description

Correct links

The link to the source code correct.

Parameters defined

All parameters defined and formatted correctly.

Returns defined

Return values are defined.

Raises listed and defined

No raises listed and defined.

Usage example

No usage examples provided

Request visuals, if applicable

No visuals included
Issue 1:
Description of the new feature/enhancement

I had the windows terminal open.

I was installing node at the same time.

After installation I tried node --version it couldn't find it, because the current window terminal session path didn't have node in it.

I added a new Powershell tab, and I found it too failed, when I entered node --version. I had to close Windows Terminal and open it again for it to work

Perhaps when you add a new tab, it should grab the latest path?

Issue 2:
Description of the new feature/enhancement

Sync terminal settings and customization between devices.

Proposed technical implementation details (optional)
Issue 1:
We need a solid and unambiguous behaviour of map for sparse matrices which would preserve sparse structure and keep the memory and computational burden small. Please consider conversation related to issue: #6918.

Issue 2:
There is a lot of unnecessary stuff in make dist:

static libraries. I don't think they are needed.

readline libraries. I believe we statically link them so they shouldn't need to be distributed.

3 copies of libarpack named .so, .so.2, and .so.2.0.0. Might be a problem in the arpack build, copying instead of making links perhaps.

20MB of unicode test files. make install specifically runs make -C test/unicode. Why?

We could also remove the docs, since they are available online.
Issue 1:
OpenCV => 4.5.1

Operating System / Platform =>ubuntu20.04

Compiler => gcc-8.4

I compiled clfft by myself, and library located in /usr/local/lib64, and I have add this directory to CMAKE_LIBRARY_PATH in opencv toplevel CMakeLists.txt, I found clfftInitSetupData class in the clfft source code? so what's wrong?

does my compile flag wrong when I compile clfft? or wrong gcc version?

Issue 2:
OpenCV supports clAmdFft, but I think it would be better to replace clAmdFft with clFFT, the newer version of clAmdFft. The AMD website links to clFFT so it's difficult for new users to find clAmdFft. The small trouble is that the library file name and function names are renamed from clFFT.
Issue 1:
This is strongly related to #4881 but I'm not sure if it's feature request or if it's really a bug. Given that the Decorators spec states the decorator can return a new constructor function, it sort of seems like it should work.

The following example uses constructor function types and very nearly works.

View this in playground

interface ConstructorFunction<T> {
new (...args:any[]):T;
prototype:T
}

interface Disappearing {
isVisible():boolean;
vanish():void;
}

function Disappearing<T>(ctor:ConstructorFunction<T>):ConstructorFunction<T & Disappearing> {
let result = <ConstructorFunction<T & Disappearing>>ctor;
result.prototype.isVisible = () => {
return !this['_hasDisappeared'];
};
result.prototype.vanish = () => {
this['_hasDisappeared'] = true;
};
return result;
}

// This seems like it should work
// @Disappearing
// class Cat {
// constructor(private name:string) {}
// }

// but I have to do this
@Disappearing
class Cat implements Disappearing {
constructor(private name:string) {}
isVisible() {return false}
vanish(){}
}

// let ctor = wrappedBlah(Cat);
let buster = new Cat('Buster');
alert(`Is Buster visible? -> ${buster.isVisible()}`);
buster.vanish();
alert(`Is Buster visible? -> ${buster.isVisible()}`);

Issue 2:
If we can get this to type check properly, we would have perfect support for boilerplate-free mixins:

declare function Blah<T>(target: T): T & {foo: number}

@Blah
class Foo {
bar() {
return this.foo; // Property 'foo' does not exist on type 'Foo'
}
}

new Foo().foo; // Property 'foo' does not exist on type 'Foo'