WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Description:

Allow an index level granularity of backing up and restoring of indexes.

Use Case:

In a multi-tenant application, where there is an index per tenant, there is often a need to restore an index to a previous "snapshot".

It is even possible that a tenant owner / admin will be allowed to "go back in time" to a previous version of the index.

Feature Request:

Allow a per index backup and restore.

Right after the restore, the newest document in the index should be the newest document in the snapshot we restored from. Documents related to this index in the transaction log or the work folders should be removed.

A possibly more complicated feature request:

Have an API to define index periodic "save points". e.g. create a save point every 10 minutes.

Have another API to restore an index to a specific save point.

An additional API that would let us list the current available save points.

The process of backing up an index to NFS would be:

Define a periodic snapshot of every X minutes.

Snapshot the NFS every X minutes (with the S3 integration this can be automatic)

The process of restoring:

Restore a snapshot from NFS.

List the available snapshots (through API)

Restore to the latest snapshot.

(with S3, this could be nicer: list the available snapshot then retrieve from S3 and restore in one API call)

In the advanced feature request, the periodic mechanism can be left for some external scheduler.

See also: http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/fa111bbdcfe5872a/1ce33465200d66e1#1ce33465200d66e1

Issue 2:
As stated in issue 2458, the Shared Gateways are getting deprecated and we will need a new API in order to snapshot ES clusters/indices.
Issue 1:
I'm getting this error in the console when certain components are removed from the DOM. It's calling the method below, which assumes that target is not null and tries to access addEventListener of null object. Should it be checking if (target && target.addEventListener) {...} instead? Are components being removed in an incorrect way that would cause this to happen?

/**
* Upstream version of event listener. Does not take into account specific
* nature of platform.
*/
var EventListener = {
/**
* Listen to DOM events during the bubble phase.
*
* @param {DOMEventTarget} target DOM element to register listener on.
* @param {string} eventType Event type, e.g. 'click' or 'mouseover'.
* @param {function} callback Callback function.
* @return {object} Object with a `remove` method.
*/
listen: function (target, eventType, callback) { // target = null, eventType = "click", callback = emptyFunction()
if (target.addEventListener) {
target.addEventListener(eventType, callback, false);
return {
remove: function () {
target.removeEventListener(eventType, callback, false);
}
};
} else if (target.attachEvent) {
target.attachEvent('on' + eventType, callback);
return {
remove: function () {
target.detachEvent('on' + eventType, callback);
}
};
}
}

Issue 2:
Hello,

After updating to React 15.0.1, we are getting the following error:

Uncaught TypeError: Cannot read property 'addEventListener' of null
Issue 1:
Setting the font family to "Source Code Pro Light" causes Atom to use the default font, even though I have this font installed.

Issue 2:
There is no way to specify a font weight in the project settings that I can find. I tend to like using this font for coding:

http://www.lucasfonts.com/fonts/themixmono/themixmono/styles/

But I cannot seem to find a way to use a lighter or heavier weight than the default.
Issue 1:
Looks like currently we dont add alias name to slow query logs, Also I doubt if it adds the filter used in alias as well .

May be we need to update -> https://github.com/elastic/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/search/slowlog/ShardSlowLogSearchService.java#L185 and add alias name + Context.aliasFilter ?

Issue 2:
When using filtered aliases filtered by type, it will be helpful for slowlog to report the types queried. Currently, it returns types[].

POST /_aliases
{
"actions": [
{
"add": {
"index": "index_name",
"alias": "slowlogalias",
"filter": {
"term": {
"_type": "doc_type"
}
}
}
}
]
}
Issue 1:
When adding components with events to a popover, they are rendered correctly, however no actions (clicks, hovers) are triggered.

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

Expected Behavior

Similar to the example presented in the demos (https://material-ui.com/demos/popovers/),

adding content (children) to MUI's popover should let their events to keep being registered like when using React-popper.

Current Behavior

MUI's Popover content is rendered but its children events are not registered. The popover is not clickable, or selectable using devtools.

Steps to Reproduce (for bugs)

In this sandbox, https://codesandbox.io/s/2p7k49z80r:

Hover the first line

click on the popover, nothing is logged (the issue).

Hover the second line

click on the popover, some text is logged is printed in the console (as expected).

Context

I am trying to render a menu within the popover to collect some user selections, and syncing the popover mouseover events to keep it open if the user is interacting with it.

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.27

React
^15.6.2

browser
Chrome 65.0.3314.0 (Official Build) canary (64-bit)

etc

Issue 2:
The Select form component uses the Input's "isDirty()" function to determine if it should be marked as dirty, which does not mark the field as dirty if you select a blank value. The select field is using logic on this line: https://github.com/mui-org/material-ui/blob/v1-beta/src/Input/Input.js#L32 .

I know that Angular's usage of "dirty" means 'has the form changed?', not "Determine if field is dirty (a.k.a. filled).", so it's confusing to see a different usage of dirty by the MaterialUI library.

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

Expected Behavior

I expect any field to be marked as dirty if it changed from the original values. If I loaded the page and a non-blank value was selected in the Select field, and I change it to a value that equals "", it should mark the field as dirty since it changed (regardless of what value it changed to, as long as it is different).

Current Behavior

If I change the Select's value to a MenuItem whose value="", it marks the field as not dirty. This is causing the label to unshrink and cover the field's displayed value. To get around this, I have to force the property so it doesn't care about the field's dirty flag.

Steps to Reproduce (for bugs)

Demo of bug: https://codesandbox.io/s/l7z7on8y5m

Create a Select field with MenuItems

Set "displayEmpty" in select field

Have one MenuItem with value="" and label 'None'.

With an initial Select field value other than "", choose the "None" option, and watch as the InputLabel unshrinks and covers the value in the field.

Context

Your Environment

Tech
Version

Material-UI
1.0.0-beta.21

React
16.0.0

browser
Chrome 62.0.3202.94

etc
Mac
Issue 1:
Here's my code and uses cases: https://gist.github.com/1018025

Basically I'm forced to do:

$em->persist($user);
foreach ($user->getAdvertisers() as $advertiser) {
$advertiser->setUser($user);
$em->persist($advertiser);
}
$em->flush();

Instead of simply:

$em->persist($user);
$em->flush();

... even when I'm setting the cascade to persist.

I'm able to do so in ManyToOne relations..

IE. Each Advertiser can have multiple Offers.. so my OfferType is:

public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('advertiser')
->add('name')
->add('postUrl')
->add('dailyCap')
->add('active');
}

public function getDefaultOptions(array $options)
{
return array(
'data_class' => 'ZGOffers\MainBundle\Entity\Offer'
);
}

This does what i expected it to -- create a form with a select of Advertisers, validating, then save:

$em->persist($offer);

$em->flush();

instead of:

$em->persist($offer);

$advertiser = $offer->getAdvertiser();

$em->persist($advertiser);

$em->flush();

Like I basically have to in my UserType form.

Why don't the advertisers persist?

Issue 2:
symfony/src/Symfony/Component/Finder/Finder.php

Lines 635 to 641
in
2aa54b8

if (static::IGNORE_VCS_FILES === (static::IGNORE_VCS_FILES & $this->ignore)) {

$this->exclude = array_merge($this->exclude, self::$vcsPatterns);

}

if (static::IGNORE_DOT_FILES === (static::IGNORE_DOT_FILES & $this->ignore)) {

$this->notPaths[] = '#(^|/)\..+(/|$)#';

}

Perhaps the above judgment should be moved here： LINE 562 ?

symfony/src/Symfony/Component/Finder/Finder.php

Lines 559 to 565
in
2aa54b8

if (0 === count($this->dirs) && 0 === count($this->iterators)) {

throw new \LogicException('You must call one of in() or append() methods before iterating over a Finder.');

}

if (1 === count($this->dirs) && 0 === count($this->iterators)) {

return $this->searchInDirectory($this->dirs[0]);

}
Issue 1:
Looking at the web profiler in Silex I saw

Notice: Undefined offset: 1 in /srv/http/tronatic-studio.com/vendor/symfony/http-kernel/DataCollector/RequestDataCollector.php on line 280

Warning: Invalid argument supplied for foreach() in /srv/http/tronatic-studio.com/vendor/symfony/http-kernel/DataCollector/RequestDataCollector.php on line 280

under Route Parameters.

https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php#L280

The matching route didn't have any parameter.

Don't know why 2e404d0 introduced this.

Dumping $data->getRawData() shows

array(1) { [0]=> array(1) { [0]=> array(0) { } } }

Issue 2:
Steps to reproduce:

symfony new symfony-app 3.2.0-RC2
cd symfony-app
bin/console s:start
open http://127.0.0.1:8000
open http://127.0.0.1:8000/_profiler/{token}?panel=router

The exception:

An exception has been thrown during the rendering of a template ("Notice: Undefined offset: 1") in @WebProfiler/Router/panel.html.twig at line 20.

And the ContextErrorException points to vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php:280.
Issue 1:
On PPC this test fails as reported in #7836

o = 1 + np.finfo(np.longdouble).eps
assert_equal(np.longdouble(repr(o)), o,
"repr was %s" % repr(o))

with

AssertionError:
Items are not equal: repr was 1.0
ACTUAL: 1.0
DESIRED: 1.0

Among other things, probably finfo, it looks like repr does not have sufficient digits.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/2077 on 2012-03-10 by @matthew-brett, assigned to unknown.

In [1]: import numpy as np

In [2]: print np.finfo(np.longdouble)
/Users/mb312/dev_trees/numpy/numpy/core/machar.py:125: RuntimeWarning: overflow encountered in add
a = a + a
/Users/mb312/dev_trees/numpy/numpy/core/machar.py:127: RuntimeWarning: invalid value encountered in subtract
temp1 = temp - a
/Users/mb312/dev_trees/numpy/numpy/core/machar.py:136: RuntimeWarning: invalid value encountered in subtract
itemp = int_conv(temp-a)
/Users/mb312/dev_trees/numpy/numpy/core/machar.py:160: RuntimeWarning: overflow encountered in add
a = a + a
/Users/mb312/dev_trees/numpy/numpy/core/machar.py:162: RuntimeWarning: invalid value encountered in subtract
temp1 = temp - a
/Users/mb312/dev_trees/numpy/numpy/core/machar.py:169: RuntimeWarning: invalid value encountered in subtract
if any(temp-a != zero):
Machine parameters for float128
---------------------------------------------------------------------
precision= 75 resolution= 1e-75
machep= -4 eps= 1.3817869701e-76
negep = -4 epsneg= 1.3817869701e-76
minexp= -1 tiny= -1.08420217274e-19
maxexp= 1 max= -9.22337203471e+18
nexp = 1 min= -max
---------------------------------------------------------------------

In [3]: print np.finfo(np.longdouble).nmant
1

In [4]: np.__version__
Out[4]: '1.7.0.dev-aae5b0a'

I think the correct answers for nexp, nmant are 11, 106 respectively; see:

https://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man3/float.3.html

(np-devel)[mb312@jerry ~]$ uname -a
Darwin jerry.bic.berkeley.edu 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
(np-devel)[mb312@jerry ~]$ gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes/no

RFC?
no

Symfony version
4.0.5

I have a typeahead.js on a page. After upgrading to 4.0.5 it stops working. Looks like problem in this lines: https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig#L524-L529

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes

RFC?
no

Symfony version
4.0.5

Hi,

'tbody.rows.count is not a function' error is showed in console when i try to make an ajax request, with profiler toolbar open.

It works if I revert to version 4.0.4.

Regards,

Marton
Issue 1:
Tagged templates are fairly easy to implement using ES5 and ES3, you simply turn the following:

fn`Hello ${you}! You're looking ${adjective} today!`

into the following:

fn(["Hello ", "! You're looking ", " today!"], you, adjective);

(sample taken from http://updates.html5rocks.com/2015/01/ES6-Template-Strings)

Issue 2:
Hi all.

If I target ES5, with noLib option and manually pointing to lib.es6.d.ts, with a polyfill for es-6 Promise, It would be to be able to use async & await. Even with a limited transpilation (i.e. not supporting yield).
Issue 1:
According to this program any value between ...cde0 and ...cdef is equal to uint64 value of ...cdef which was a big surprise

import numpy
a = numpy.uint64(0x1234567890abcdef)
if a == 0x1234567890abcde0:
print("BUG!")

Seems like uint64 is converted to float even when it is compared against standard integers which was another big surprise for me.

Issue 2:
This is to gather and close some other issues. The NEP 50 proposal would close it. In many cases using int64 as the default Python integer for scalar operations (where we disable value-based logic) can be surprising

gh-2955 (bitwise_and)

gh-5746 (comparison) although uint64 and int64 comparisons of course have still more issues (covered by gh-12525)

gh-2524 (bit shift operators)

gh-8809 power is surprising for promotion (which is just the normal madness of scalar+value-based logic), again together with gh-12525

gh-13057 (division of uint by Python int)

This issue is just to gather and close the other ones as duplicates.
Issue 1:
VSCode Version: 0.10.11

OS Version: OS X 10.11.4

Steps to Reproduce:

All I have to do is open Visual Studio Code and it will give me these error. I am not able to save, and some of the keyboard commands don't work such as backspace.

Troubleshooting:

I've deleted all my extensions from ~/.vscode/extensions but still experience the same errors.

I've completely uninstalled VS Code by using App Cleaner to make sure I got every app file possible, yet it still gave errors after I installed a fresh copy from the website.

Screenshot:

EDIT: Actually... I think I may have found the issue. This happens when I open a remote file from within FileZilla by right clicking on the remote filename and clicking on view/edit. What this does is open the file in VSCode and shows the temp location of the file as a very long string.

I feel like it may be this that is causing the issue because after downloading the file and then opening it, everything is working fine.

Is there any log that I can submit to see if I'm right?

Issue 2:
VSCode Version:0.10.11

OS Version:Mac 10.11.3

Steps to Reproduce:

Left vscode over night

Code --> Preferences --> Color Theme

This error does go away after restarting vscode once.
Issue 1:
julia> 128738872312*invmod(128738872312,9223372036854775783)
9223369465230597584

julia> ans < 9223372036854775783
true

Issue 2:
To deal with integer arithmetic overflow we do the following:

add checked integer arithmetic intrinsics named checked_add, checked_mul, etc.

have a compiler switch that uses these everywhere.

write a @check_overflow macro that transforms an expression to turn * into checked_mul and + into checked_add, etc., but only in the expression — called functions are on their own.
Issue 1:
There is an issue with img { max-width: 100%; } defined in reset.less (around line 77) and Google Maps, especially if you are using InfoWindow. Some of the graphic elements are kind of "distorted".

To fix that issue, add something like the following line to your css definitions:

#map img { max-width:none; }

Issue 2:
First of all thanks for your fantastic work. It does SAVE me a lot of time.

When I put Google Maps into Bootstrap layout, img tag in Google Maps breaks because Bootstrap set img max-width to 100%. When I comment max-width, it's working find but I'm not sure whether it'll break something else in Bootstrap or not.

Bootstrap and Google Maps

http://jsfiddle.net/jhnRD/1/

Google Maps without Bootstrap

http://jsfiddle.net/aVx8L/

Cheers,
Issue 1:
Environment

Windows 10

Any other software?

# Steps to reproduce

1. Run cmd.exe under windows terminal preview
2. navigate to a directory containing text files
3. Run the command "less -MN *.txt"
4. When you reach the end of the 1st file enter the "less" command ":n" to go to the next file

# Expected behavior
"less" should start displaying the next file.

# Actual behavior
I get the following error message "no previous regular expression". This does not happen when I run less under a cmd.exe session the old fashioned way.

Issue 2:
Description of the new feature/enhancement

Add a Global Setting OpenMaximized to start the application with a maximized window.
Issue 1:
Latest Atom version 0.187.0 (on OS X) does not highlight the following PHP code correctly:

$cvsData = date("Y-m-d H:i:s") . ";" . $_POST["venue"] . ";" . $_POST["salutation"] . ";" . $_POST["surname"] . ";" . $_POST["name"] . ";" . $_POST["company"] . ";" . $_POST["phone"] . ";" . $_POST["email"] . ";" . $_POST["address"] . ";" . $_POST["plz"] . ";" . $_POST["place"] . "\n";

It stops inking the variables starting with $_POST["phone"].

Issue 2:
I opened a Python file with the following line (#963):

PrintAndLog(u"SSID: " + RememberedNetwork["SSIDString"].decode("utf-8") + u" - BSSID: " + RememberedNetwork["CachedScanRecord"]["BSSID"] + u" - RSSI: " + str(RememberedNetwork["CachedScanRecord"]["RSSI"]) + u" - Last connected: " + str(RememberedNetwork["LastConnected"]) + u" - Security type: " + RememberedNetwork["SecurityType"] + u" - Geolocation: " + Geolocation, "INFO")

Which led to the following bug:

You can find this as the main file in osxauditor.py.
Issue 1:
Challenge Name

Wrap Radio Buttons in a Fieldset Element for Better Accessibility

Issue Description

The raw JavaScript code is showing in the output field on this challenge. I have taken a screenshot of this issues.

Browser Information

Browser Name, Version: Google Chrome V56.0.2924.76

Operating System: Windows 10

Mobile, Desktop, or Tablet: Desktop

Screenshot

Issue 2:
Challenge add-an-accessible-date-picker has an issue.

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

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

The code result includes additional lines of code

Browser: Google Chrome

<body>
<header>
<h1>Tournaments</h1>
</header>
<main>
<section>
<h2>Mortal Combat Tournament Survey</h2>
<form>
<p>Tell us the best date for the competition</p>
<label for="pickdate">Preferred Date (MM-DD-YYYY):</label>

<!-- Add your code below this line -->
<label for="date">Enter date (MM-DD-YYYY):</label>
<input type="date" id="pickdate" name="date">

<!-- Add your code above this line -->

<input type="submit" name="submit" value="Submit">
</form>
</section>
</main>
<footer>&copy; 2016 Camper Cat</footer>
</body>

```
Issue 1:
Create a simple http server setup with expvar:

import (
_ "expvar"
"http"
"log"
)

func main() {
err := http.ListenAndServe(":8888", nil)
if err != nil {
log.Fatal(err)
}
}

The output returned, however, are keys with json strings that need to be decoded from
json independently. This makes no sense. Take the case of passing the output of a curl
call through a json formatter:

$ curl -s http://localhost:8888/debug/vars | python -m json.tool
{
"cmdline": "[\"./t\"]",
"memstats": "{\n\t\"Alloc\": 666160,\n\t\"TotalAlloc\": 1115928,\n\t\"Sys\": 5110008,\n\t\"Lookups\": 185,\n\t\"Mallocs\": 14971,\n\t\"Frees\": 12158,\n\t\"HeapAlloc\": 657968,\n\t\"HeapSys\": 2097152,\n\t\"HeapIdle\": 0,\n\t\"HeapInuse\": 929792,\n\t\"HeapObjects\": 2583,\n\t\"StackInuse\": 20480,\n\t\"StackSys\": 131072,\n\t\"MSpanInuse\": 7272,\n\t\"MSpanSys\": 131072,\n\t\"MCacheInuse\": 3024,\n\t\"MCacheSys\": 131072,\n\t\"BuckHashSys\": 1439992,\n\t\"NextGC\": 1197808,\n\t\"PauseTotalNs\": 1195000,\n\t\"PauseNs\": [\n\t\t114000,\n\t\t230000,\n\t\t851000,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0,\n\t\t0
....

Complete garbage, albiet valid.

I am using the latest weekly.

The expvar package is a great idea, but may need to updated a bit.

Issue 2:
by dave@lytics.io:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.

JSON decoding from scientific notation into an integer is not allowed by the JSON
decoder.

Here is an example:
http://play.golang.org/p/yS3YNvt8BB

What is the expected output?

When decoding the JSON value 1e+06 into an int64, I'd expect decoding to succeed.

What do you see instead?
JSON Unmarshal() returns an error: "json: cannot unmarshal number 1e+06 into Go
value of type int64"

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g (I think), this is amd64, not gccgo, using vanilla binaries from the tarball from
golang.org.

Which operating system are you using?

Ubuntu 13.04

Which version are you using? (run 'go version')

1.1.2

Please provide any additional information below.
Issue 1:
Hi there ,

we are using node v10.16.0 and npm 6.10.1 on the server environment, we already put

X11Forwarding yes in /etc/ssh/sshd_config file but still having the issue with electron starter app

(electron:2310): Gtk-WARNING **: 14:47:14.095: cannot open display: 127.0.0.1

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! electron-quick-start@1.0.0 start: electron --no-sandbox .

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the electron-quick-start@1.0.0 start script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

please help me with the same

Issue 2:
Hi there,

After installing with 'npm install'

when I am hitting 'npm start' getting following errors,

(electron:24247): Gtk-WARNING **: 11:56:48.745: cannot open display:

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! electron-quick-start@1.0.0 start: electron --no-sandbox .

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the electron-quick-start@1.0.0 start script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Please help where i am wrong ?