WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
[Enter steps to reproduce below:]

ctrl + alt + o to open AtomSharp

get exception

Atom Version: 0.166.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Stack Trace

Uncaught Error: spawn mono ENOENT

At events.js:85

Error: spawn mono ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)

Commands

-1:07.9 project-manager:toggle (atom-text-editor.editor.is-focused)
-1:06.6 core:confirm (atom-text-editor.editor.mini)
18x -0:36.7 core:backspace (atom-text-editor.editor.mini)
-0:00.0 omnisharp-atom:toggle (atom-text-editor.editor.is-focused)

Config

{
"core": {},
"editor": {
"fontSize": 13,
"invisibles": {}
}
}

Installed Packages

# User
color-picker, v1.2.6
jshint, v1.1.3
language-cshtml, v0.1.0
linter, v0.9.1
omnisharp-atom, v0.1.6
project-manager, v1.14.1

# Dev
No dev packages

Issue 2:
I've installed all the pieces successfully, yet when I open up a .cs file and start omnisharp, I get this error:

Running KRE 1.0.0-beta1
Issue 1:
Code Sample, a copy-pastable example if possible

import pandas as pd
df = pd.DataFrame([[None, 1], [None, 1]], columns=['a', 'b'])
grouped = df.groupby('a')
print(len(grouped.groups))
print(grouped.groups)
df = pd.DataFrame([[None, 1], [1, 1]], columns=['a', 'b'])
grouped = df.groupby('a')
print(grouped.groups)

Problem description

Not sure if this is design intent or a bug. When None appears in column grouped by, None is not counted as a group. If it is a design intent, is there any we to turn off this feature?

Expected Output

None is counted as a group.

Output of pd.show_versions()

[paste the output of pd.show_versions() here below this line]

INSTALLED VERSIONS

commit: None

python: 3.6.2.final.0

python-bits: 64

OS: Linux

OS-release: 4.4.0-119-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: en_HK.UTF-8

LOCALE: en_HK.UTF-8

pandas: 0.23.0

pytest: 3.2.1

pip: 9.0.1

setuptools: 36.4.0

Cython: None

numpy: 1.14.3

scipy: None

pyarrow: None

xarray: None

IPython: None

sphinx: None

patsy: None

dateutil: 2.7.3

pytz: 2018.4

blosc: None

bottleneck: None

tables: None

numexpr: 2.6.5

feather: None

matplotlib: None

openpyxl: 2.4.9

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: 0.999999999

sqlalchemy: 1.1.15

pymysql: None

psycopg2: 2.7.3.1 (dt dec pq3 ext lo64)

jinja2: 2.9.6

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
ENH: maybe for now just provide a warning if dropping the nan rows when pivotting...

rom ml

http://stackoverflow.com/questions/16860172/python-pandas-pivot-table-silently-drops-indices-with-nans

This is effectivly trying to groupby on a NaN, currently not allowed

In [13]: a = [['a', 'b', 12, 12, 12], ['a', nan, 12.3, 233., 12], ['b', 'a', 123.23, 123, 1], ['a', 'b', 1, 1, 1.]]

In [14]: df = DataFrame(a, columns=['a', 'b', 'c', 'd', 'e'])

In [15]: df.groupby(['a','b']).sum()
Out[15]:
c d e
a b
a b 13.00 13 13
b a 123.23 123 1

Workaround to fill the index with a dummy, pivot, and replace

In [31]: df2 = df.copy()

In [32]: df2['dummy'] = np.nan

In [33]: df2['b'] = df2['b'].fillna('dummy')

In [34]: df2
Out[34]:
a b c d e dummy
0 a b 12.00 12 12 NaN
1 a dummy 12.30 233 12 NaN
2 b a 123.23 123 1 NaN
3 a b 1.00 1 1 NaN

In [35]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum)
Out[35]:
a b c d e
0 a b 13.00 13 13
1 a dummy 12.30 233 12
2 b a 123.23 123 1

In [36]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum).replace('dummy',np.nan)
Out[36]:
a b c d e
0 a b 13.00 13 13
1 a NaN 12.30 233 12
2 b a 123.23 123 1
Issue 1:
From #929 and #1226, I believe that the intended behaviour is that extension-less shebang scripts are seen as TypeScript files, but that does not seems to be the case?

Minimal example:

#!/usr/bin/env -S deno run --allow-all
// filename: hi
interface Foo {
bar: string;
}
console.log("Hi");

Running ./hi or deno run hi yields error: Unexpected token `interface`.

Issue 2:
I'm trying out deno for scripting (it's been a great experience so far, kudos!).

I'd like to be able to create script files without a .ts extension. If I do this, then the following is interpreted as JS and I get a syntax error on the type annotations:

#!/usr/bin/env -S deno run --allow-run --allow-read --allow-write

// code: language=typescript

function hello(name: string) {
console.log("Hello,", name);
}

hello(Deno.args[0]);

$ ./myscript
error: Uncaught SyntaxError: Unexpected token ':'
function hello(name: string) {
^
at file:///home/joe/tmp/myscript:5:20

I believe the simplest solution would be to add a CLI flag to force script to be interpreted as typescript.

Something like:

--language=[javascript, typescript]

so in the above script the shebang becomes:

#!/usr/bin/env -S deno run --language=typescript --allow-run --allow-read --allow-write
Issue 1:
Challenge Target a Specific Child of an Element Using jQuery has an issue.

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

In the result section of the page two #target5 buttons are displayed in the left-well before I refresh the code. Sometimes second #target5 reappears in mid coding.

My code:

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
**$("#target5").clone().appendTo("#left-well");**
$("#target1").parent().css("background-color", "red");
$("#right-well").children().css("color", "orange");

});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

Issue 2:
Challenge Target the Parent of an Element Using jQuery has an issue.

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

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

My code:

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");

});
</script>

<!-- Only change code above this line. -->

<body>
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
</body>

The target5 button is cloned to the left-well but 2 times. This surely is a bug.
Issue 1:
Hi,

here is a bug in this example here:

https://github.com/keras-team/keras/blob/master/examples/cifar10_resnet.py#L423

The Exception is:

ValueError: `steps_per_epoch=None` is only valid for a generator based on the
`keras.utils.Sequence` class. Please specify `steps_per_epoch` or use the
`keras.utils.Sequence` class.

model.fit_generator whould specify steps_per_epoch.

By example:

model.fit_generator(datagen.flow(x_train, y_train, batch_size=batch_size),
steps_per_epoch=int(50000/batch_size),
validation_data=(x_test, y_test),
epochs=epochs, verbose=1, workers=4,
callbacks=callbacks)

Issue 2:
Tensorflow 1.11.0

Keras 2.2.4

Keras-Preprocessing 1.0.5

Ubuntu 16.04

Python 2.7.12

Example code:

from keras import models, layers
from keras_preprocessing.image import ImageDataGenerator
from keras_applications.imagenet_utils import preprocess_input

train_dir = '/tmp/workspace/Pet_Dataset/train/'
height, width, channels = (128, 128, 3)
batch_size=32

train_datagen = ImageDataGenerator(rescale=1.0/255)
train_generator = train_datagen.flow_from_directory(
train_dir, target_size=(height, width),
batch_size=batch_size, class_mode='categorical')

network = models.Sequential()
network.add(layers.Conv2D(32, (3, 3), activation='relu', input_shape=(height, width, channels)))
network.add(layers.MaxPooling2D((2, 2)))
network.add(layers.Conv2D(64, (3, 3), activation='relu'))
network.add(layers.MaxPooling2D((2, 2)))
network.add(layers.Conv2D(128, (3, 3), activation='relu'))
network.add(layers.MaxPooling2D((2, 2)))
network.add(layers.Conv2D(256, (3, 3), activation='relu'))
network.add(layers.GlobalAveragePooling2D())
network.add(layers.Dense(train_generator.num_classes, activation='softmax'))

network.compile(optimizer='RMSProp',
loss='categorical_crossentropy',
metrics=['accuracy'])
network.summary()

history = network.fit_generator(train_generator, epochs=10)

breaks with Tensorflow 1.11.0 with ValueError: steps_per_epoch=None is only valid for a generator based on the keras.utils.Sequence class. Please specify steps_per_epoch or use the keras.utils.Sequence class..

Tensorflow 1.10.0 and below works.

Furthermore, providing steps_per_epoch and applying multiprocessing with workers > 1:

history = network.fit_generator(train_generator, epochs=10,
steps_per_epoch=train_generator.n/batch_size,
use_multiprocessing=True, workers=2)

causes a UserWarning about multiple workers duplicate data.

I think this is caused by wrong inheritance of ImageDataGenerator.

When printing the exact class that is used in keras_preprocessing/image.py, I get <class 'tensorflow.python.keras.utils.data_utils.Sequence'>.

But fit_generator() checks if the generator is a subclass of <class 'keras.utils.data_utils.Sequence'>, so it seems to assume that the ImageDataGenerator instance is not of type Sequence, causing above problems.
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

I am looking at developing an XR app now Chromium updated to version 80 - however in order to make it work with Windows and SteamVR in chrome, I need to disable the XR sandbox via chrome://flags. I would normally use a command line switch for this except one does not exist.

Instead I am thinking of prompting the user to open the chrome://flags page and disable the XR

sandbox, however when I try to open it, it redirects me to "chrome-error://chromewebdata/"

Electron Version:

8.0.0

Operating System:

Windows 10 x64 Build 18362

Expected Behavior

I can open "chrome://flags" using mainWindow.loadURL

Actual Behavior

It redirects me to "chrome-error://chromewebdata/"

To Reproduce

Please see the following electron fiddle: https://gist.github.com/459df8fd3c113acb2daadd0e7287afb3

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

8.0.0

Operating System:

Ubuntu 18.04 x64

Last Known Working Electron version:

7.1.11

Expected Behavior

Loading chrome://media-internals should load the chrome media internals page

Actual Behavior

Blank page. In chrome 80 there's also the option to show it in the devtools. If I set the correct flags I can see the 'Media' tab option, but it also gives me a blank page. So neither way works.

To Reproduce

Load chrome://media-internals
Issue 1:
Trying with 1.0.1

curl 'http://localhost:9200/foobar*/_stats?pretty&clear=1'

The indices section has all my indices. :(

Trying with 0.90.12

{

"error" : "IndexMissingException[[foobar-*] missing]",

"status" : 404

}

Either the 0.90 solution or an empty indices section would be better then returning all.

This may happen with other APIs, haven't tried

Issue 2:
Hi,

I expect to get empty response for scenario;

#create an index
curl -XPOST http://localhost:9200/test-1

# execute _stats for indices starting with xyz (ensure this regex has no matches)
curl -XPOST http://locahost:9200/xyz*/_stats

returns stats of all indices. I think this should return empty response.

Tried with 1.0.1 and 1.1.0
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

There will be no warnings in console.

There will be a line with timeout, not with transitionDuration here

https://github.com/mui-org/material-ui/blob/v1-beta/src/Stepper/StepContent.d.ts#L18

Current Behavior

This warning in console

Warning: Unknown prop `transitionDuration` on <div> tag. Remove this prop from the element.
in div (created by Transition)
in Transition (created by Collapse)
in Collapse (created by withStyles(Collapse))
in withStyles(Collapse) (created by StepContent)
...

Steps to Reproduce (for bugs)

There is no such warning in codesandbox example. But I can see it in my project. Also there is a transitionDuration mention -- see link above.

If it's not enough - I'll try to create an example with the warning later.

My Environment

Tech
Version

Material-UI
1.0.0-beta.24

React
15.6.2

browser
Chrome 63.0.3239.84

Issue 2:
<option disabled /> is a native behavior of <select />

Please allow <MenuItem> to have a disabled props, which will not close SelectBox on SelectInput > handleItemClick.

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

Expected Behavior

A disabled MenuItem should not be clickable and close the Select Menu

Current Behavior

A click on every children will close the Select Menu

I currently had to trick with a pointer-event :none on my "disabled" MenuItem, with a nested div with pointer-event: all and an onClick={e => e.stopPropagation()} to reproduce the expected behavior

Your Environment

Tech
Version

Material-UI
1.0.0-beta.18

React
16.0.0

browser
all
Issue 1:
Hello,

I've been trying to find all documents that contains a field with an empty string value (_textContent) inside my index using the missing filter. But I think that this filter doesn't treat empty strings as a null value.

Is this a bug, or the intended behavior for this filter? If it is like this by design, may I suggest adding an empty filter, if that's even possible?

As a plus, I'll post the mapping that I'm currently using, the document that contains the empty string field and the query that I'm trying to run:

Mapping:

{
"documents": {
"mappings": {
"document": {
"properties": {
"_contratante": {
"type": "string"
},
"_dateFields": {
"type": "nested",
"properties": {
"id": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "date",
"format": "dateOptionalTime"
}
}
},
"_indexadoPor": {
"type": "string"
},
"_textContent": {
"type": "string"
},
"_textFields": {
"type": "nested",
"properties": {
"id": {
"type": "string",
"index": "not_analyzed"
},
"value": {
"type": "string"
}
}
},
"_tipoDocumento": {
"type": "string"
}
}
}
}
}
}

Document:

{
"_index": "documents",
"_type": "document",
"_id": "xxx",
"_version": 1,
"found": true,
"_source": {
"_id": "xxx",
"_contratante": "xxx",
"_tipoDocumento": "xxx",
"_indexadoPor": "xxx",
"_dateFields": [
{
"id": "538730ece4b0d13600208d7a:2",
"value": 1404183600000
}
],
"_textFields": [
{
"id": "538730ece4b0d13600208d7a:0",
"value": "xxx"
},
{
"id": "538730ece4b0d13600208d7a:1",
"value": "xxx"
},
{
"id": "538730ece4b0d13600208d7a:3",
"value": ""
},
{
"id": "538730ece4b0d13600208d7a:4",
"value": "xxxx"
}
],
"_textContent": ""
}
}

Query:

{
"query": {
"filtered": {
"filter": {
"missing": {
"field": "_textContent"
}
}
}
}
}

Thanks a lot for the amazing tool developed here!

Issue 2:
Heya,

in ES 1.2.4 i do something like this:

curl -XPUT 'http://localhost:9200/twitter/user/kimchy' -d '{ "name_test" : "Shay Banon" }'
curl -XPUT 'http://localhost:9200/twitter/user/foo' -d '{ "name_test" : "" }'
curl -XPOST 'http://localhost:9200/_search' -d '{"query":{"filtered":{"filter":{"and":{"filters":[{"missing":{"field": "name_test"}}]}}}}}'

Filter in "nice view"

{
"query": {
"filtered": {
"filter": {
"and": {
"filters": [
{
"missing": {
"field": "name_test"
}
}
]
}
}
}
}
}

This one gives 1 hit.

In Version 1.3.2 i do the same stuff, but got 0 hits.

Am I missing something? (I read the changelog, but didnt find something that could possible do this...)

That happens, as i may suggest, when the field name got an underscore.

Tested it with "name" then it will also give one hit.

Thanks for watchin.

Dominik
Issue 1:
Issue Type: Bug Report

Ansible Version: ansible-playbook 1.5

Environment: OSX, Debian Squeeze

Summary:

Imagine a playbook, with a play that has a hosts: line of localhost

Imagine running this playbook, with a --limit derp, which does not include localhost.

You'd expect this to skip the play with no matching hosts, but instead the play will get executed, and then the playbook will immediately fail with FATAL: all hosts have already failed.

Steps To Reproduce:

test.yaml

---
- name: Test play 1
hosts: localhost
gather_facts: no

tasks:
- name: derp
debug: msg="herp"

$ ansible-playbook -i derp, test.yaml -vv --limit derp

Expected Results:

PLAY [Test play 1] ************************************************************
skipping: no hosts matched

or

TASK: [derp] ******************************************************************
ok: [localhost] => {
"msg": "herp"
}

Actual Results:

TASK: [derp] ******************************************************************
ok: [localhost] => {
"msg": "herp"
}

FATAL: all hosts have already failed -- aborting

Through some bisecting, I think the offending commit is

ae9843f

but I'm not positive. I believe it's a combination of this commit, along with the introduction of the implicit localhost inventory entry. More testing to continue, but I wanted to get this filed for tracking.

Issue 2:
Including "disablerepo=*" appears to disable all repos, including those explicitly enabled with enablerepo.

From within the vm, the following installs the package as expected:

sudo yum install yum-plugin-downloadonly --disablerepo=* --enablerepo=mylocalrepo

However, with the following playbook entry, the package cannot be found:

- name: installing yum-plugin-downloadonly
action: yum name=yum-plugin-downloadonly
disablerepo=*
enablerepo=mylocalrepo
state=present
tags: yum-config
sudo: yes

TASK: [common | installing yum-plugin-downloadonly] ***************************
failed: [10.10.10.100] => {"changed": false, "failed": true, "item": "", "rc": 0, "results": []}
msg: No Package matching 'yum-plugin-downloadonly' found available, installed or updated

FATAL: all hosts have already failed -- aborting
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-create-a-set-of-checkboxes has an issue.

To reproduce: try the challenge and when you are going to name the checkboxes the challenge will be correct if you only type one name.

Expected: The challenge will only mark as complete if all three checkboxes have the same name.

Issue 2:
Challenge Smallest Common Multiple has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36.

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

Hi, my code for the smallest common multiple challenge works but if I input numbers larger than 5, it gives me the infinite loop notification and the //noprotect takes too long. If it isn't a bug, could it have something to do with the efficiency of my algorithm and how I am pushing and scanning an increasingly larger array? I tried using more efficient methods like modulus or poping old values but I have only been able to max at an input of 7, as opposed to the 13 and beyond per the test cases.

My code:

//In progress: It works but has problem with efficiency
function smallestCommons(arr)
{
//Variable declarations
var arr1 = []; //Values inside boundaries of arr
var arr2 = []; //Multipliers of arr1
var countDuplicates = 0; //Used to find match in arr2
var result = 0; //Result dump

//Sort and collect input values and dump to arr1
arr.sort(function(a,b){return a - b;});
for (i = arr[0]; i <= arr[1]; i++)
{
arr1.push(i);
}
//Increment multiplier and dump into arr2
var j = 1;
while(true)//
{ //Multiply the values of arr1 and dump to arr2
for (var k = 0; k < arr1.length; k++)
{
arr2.push(arr1[k] * j);
}
//Check for internal duplicates
for (var l = 0; l < arr2.length; l++)
{
for (var m = 0; m < arr2.length; m++)
{
if (arr2[l] == arr2[m])
{
countDuplicates++;
}
}
//Collect the result if there is a match equal to arr1.length
if (countDuplicates >= arr1.length)
{
return arr2[l];
}
countDuplicates = 0;
}
j++;
}
}
smallestCommons([1, 3]);
Issue 1:
支 持 中 文

It a beautiful day outside

The birds are singing

The flowers are booming

On the days like this

The toys like this

SHOULD SUPPORT CHINESE

什么时候支持中文啊？

Issue 2:
Summary of the new feature/enhancement

The windows key shortcut guide UI strings need to be localized.

The application will be localized in the following langauges:

Language
Culture Code

English
en

German
de

Spanish
es

French
fr

Italian
it

Japanese
ja

Korean
ko

Portuguese (Brazil)
pt-BR

Russian
ru

Chinese (Simplified)
zh-Hans

Chinese (Traditional)
zh-Hant

Czech
cs

Dutch
nl

Hungarian
hu

Portuguese (Portugal)
pt-PT

Polish
pl

Swedish
sv

Turkish
tr
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

Issue Details

Electron Version: 10.0.0

Rejection Email

Your app links against the following non-public framework(s):

• Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework/_CGFontRenderingGetFontSmoothingDisabled

Additional Information: N/A

Issue 2:
Electron version: 1.6.2

Operating system: Windows 10 64-bit

Expected behavior

Electron usually runs /resources/app.asar if it is present however you can also run a certain app by doing Electron your_app_path.asar.

I expected Electron to run app.asar when started without any arguments (this does happen) but to run the provided alternative app when the argument is provided.

Actual behavior

However, Electron will still run /resources/app.asar even when the alternative app archive is provided as an argument.

How to reproduce

To reproduce, simply have an app.asar in /resources/ and another alternative.asar also in the resources folder. Then run Electron resources/alternative.asar. It will run the app.asar app. Then rename app.asar to app_old.asar and do the same command and it should run the alternative.asar app.