WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
by yoann.gini:

What steps will reproduce the problem?
1. Get an vanilla OS X system with Xcode
2. Run Xcode from you session and accept the license like anyone do
3. Try to install Go from go1.1.2.darwin-amd64.pkg

What is the expected output?
Install should success without any problems

What do you see instead?
Install failed, when looking at the install log, it's because of the xcode license who
haven't been accepted from the root account, which is absolutely unusual.

Which operating system are you using?
OS X 10.8.4

Which version are you using? (run 'go version')
go version go1.1.2 darwin/amd64

Please provide any additional information below.
Using root account is something we never do on OS X, even as software developer.

Attachments:

install.log (9879 bytes)

Issue 2:
by benjamin.heatwole:

$GOOS = linux
$GOARCH = amd64
hg identify = f7e1cbc5ce28 tip

Code demonstrating the problem:

func main() {
var min float32 = math.MinFloat32
var minPlusOne float32 = min + 1.0
var negOne float32 = -1.0
var zero float32 = 0.0
var one float32 = 1.0

// All these should be true, but only the comparison with a positive number works
fmt.Println("Testing comparisons using math.MinFloat32 ... ")
fmt.Printf("%v > %v = %v\n", negOne, min, negOne > min)
fmt.Printf("%v > %v = %v\n", zero, min, zero > min)
fmt.Printf("%v > %v = %v\n", one, min, one > min)
fmt.Println()

// Adding one to MinFloat32 doesn't help
fmt.Println("Testing comparisons using math.MinFloat32 + 1 ... ")
fmt.Printf("%v > %v = %v\n", negOne, minPlusOne, negOne > minPlusOne)
fmt.Printf("%v > %v = %v\n", zero, minPlusOne, zero > minPlusOne)
fmt.Printf("%v > %v = %v\n", one, minPlusOne, one > minPlusOne)
fmt.Println()

// Using another small value works
var small float32 = -999999.0
fmt.Println("Testing comparisons using -999999.0 ... ")
fmt.Printf("%v > %v = %v\n", negOne, small, negOne > small)
fmt.Printf("%v > %v = %v\n", zero, small, zero > small)
fmt.Printf("%v > %v = %v\n", one, small, one > small)
fmt.Println()

// One final test
fmt.Println("Testing 0 == MinFloat32 ... ")
fmt.Printf("%v == %v = %v\n", zero, min, zero == min)
}

Output is:

Testing comparisons using math.MinFloat32 ...
-1 > 1e-45 = false
0 > 1e-45 = false
1 > 1e-45 = true

Testing comparisons using math.MinFloat32 + 1 ...
-1 > 1 = false
0 > 1 = false
1 > 1 = false

Testing comparisons using -999999.0 ...
-1 > -999999 = true
0 > -999999 = true
1 > -999999 = true

Testing 0 == MinFloat32 ...
0 == 1e-45 = false

As you can see from the tests, MinFloat32 is being printed as "1e-45" but
internally its treating the
value as "0" in some cases (the second test with MinFloat32+1 prints as
"1"), but not in others (the
last test of 0 == MinFloat32 is false).

I'm not sure entirely what's going on, but something is goofy.
Issue 1:
Running Atom 120.

Windows 8.1 (64bit).

Node.js v0.10.30

I am using the grunt-runner plugin to run grunt within atom. With my own fix to actually let the plugin work (issue #3200 fix: #3208), I can see in the task manager that a separate node process is being started for the grunt task I am executing. However, stoppping the grunt task, which on this line of code https://github.com/nickclaw/atom-grunt-runner/blob/master/lib/grunt-runner-view.coffee#L71 happens, doesn't kill the node process (that call to kill() is simply the kill call in BufferedProcess, so it's not a plugin issue).

Issue 2:
I'm using the NEO2 keyboard layout, an optimized German layout. In particular, it offers arrow keys directly on the home row, as well as a few other useful keys (ESC, Enter, ..). Most of those are not recognized by atom, i.e. nothing happens when you press them.

The standard arrows, enter and escape all work. (But are hard to reach on a physical keyboard)

The keys are situated on the forth layer of the layout, a picture can be found on: http://neo-layout.org/grafik/tastatur3d/tastatur_neo_Ebene4.png

The whole layout is presented on http://www.neo-layout.org/. Unfortunately, that page is in German.

It would be great to have the duplicate keys work exactly like the original ones.
Issue 1:
Debian GNU/Linux 6.0.10 (squeeze) and OSX 10.11.4, Python 3.5.1, matplotlib 1.5.1 (anaconda 4.0.5)

Setting the prop_cycle for an axis breaks the usage of keyword aliases in the plot function. In the following snippets the keyword lw=0.1 is ignored, but linewidth=0.1 produces the wanted result.

Maybe it is worth mentioning that color is still accessible via its alias c after setting a prop_cycle.

If it seems weird to set the prop_cycle to just ignore it: I stumbled across this problem while playing around with stylesheets to set a default cycle through different linestyles. But sometimes you want to explicitly change this behaviour.

fig, ax = plt.subplots()
ax.set_prop_cycle('linewidth', [2, 3, 4])
for c in range(5):
ax.plot(np.arange(10), c * np.arange(10), lw=0.1)

fig, ax = plt.subplots()
ax.set_prop_cycle('linewidth', [2, 3, 4])
for c in range(5):
ax.plot(np.arange(10), c * np.arange(10), linewidth=0.1)

Issue 2:
If the axes.prop_cycle contains the label 'ls' it is not possible to manually specify a linestyle in a plot. However, if axes.prop_cycle contains the label 'linestyle', everything seems to work as expected.

An example showing the problem:

from cycler import cycler
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
mpl.__version__ # ==1.5.1

linestyle_cycle = cycler('linestyle', ['-', '--'])
ls_cycle = cycler('ls', ['-', '--'])

x = np.arange(10)

mpl.rcParams['axes.prop_cycle'] = linestyle_cycle
plt.figure()
for k in range(1, 6):
plt.plot(x, k * x)
plt.plot(x, x**2, 'k:') # Black dotted as expected
plt.title('linestyle_cycle')

mpl.rcParams['axes.prop_cycle'] = ls_cycle
plt.figure()
for k in range(1, 6):
plt.plot(x, k * x)
plt.plot(x, x**2, 'k:') # Black dashed - not expected
plt.title('ls_cycle')
Issue 1:
I'm fairly new to keras, but it seems to me that the best way to do validation with fit_generator is to create 2 generators for generating training and validation data separately, but this requires some careful orchestrating. I propose to add a validation_split parameter to model.fit_generator that would behave similarly to the same parameter in model.fit.

For example with validation_split=0.1, fit_generator would train from the generator until it has seen (0.9 * samples_per_epoch) samples and then perform validation from the same generator until the end of the epoch.

Issue 2:
When calling MaxPooling2D with pool_size=(2,2) on inputs with an odd dimension (say 1x4x5) the output dimension is 1x2x2. Thus the pooling operator is not utilizing the information in the last column of the input. The code that produces the size of the output: conv_output_length does an integer divide operation giving the floor of the required number of dimensions.

How can I rectify this? The simplest idea I have would be to zero pad another column making the input (1x4x6) and not messing with the pooling operation at all, but I don't think non-symmetric padding is allowed in keras. Is this right?
Issue 1:
Summary of the new feature/enhancement

I think it might very useful to have something like settings file (see settings.json in Windows Terminal) where you can declare custom commands you'd like to run (for instance you can declare custom CLI flags/args there and/or even create something like "Reboot"/"Shutdown" command requested in #2408).

Issue 2:
Summary of the new feature/enhancement

Currently when I'm using more than one monitor, it is not possible to set individual Zones for each monitor. It would be a nice feature if i coud set up fancy zones for each Monitor.

Proposed technical implementation details (optional)
Issue 1:
Apache Airflow version: 2.0.1

Environment:

Helm Chart: https://github.com/apache/airflow/tree/master/chart

Install tools: helm3

What happened:

worker ip address is missing

*** Log file does not exist: /opt/airflow/logs/example-task/snapshot/2021-05-12T12:00:46.658485+00:00/1.log
*** Fetching from: http://:8793/log/example-task/snapshot/2021-05-12T12:00:46.658485+00:00/1.log
*** Failed to fetch log file from worker. Invalid URL 'http://:8793/log/example-task/snapshot/2021-05-12T12:00:46.658485+00:00/1.log': No host supplied

Config:

core:
load_examples: 'False'
hostname_callable: 'airflow.utils.net:get_host_ip_address'
webserver:
workers: '4'
enable_proxy_fix: 'True'
base_url: 'http://localhost:8080'
authenticate: 'True'
log_fetch_timeout_sec: '60'
cli:
endpoint_url: 'http://localhost:8080'

Issue 2:
Apache Airflow version: 2.0.0

Kubernetes version (if you are using kubernetes) (use kubectl version):

Environment:

Cloud provider or hardware configuration: tencent cloud

OS (e.g. from /etc/os-release): centos7

Kernel (e.g. uname -a): 3.10

Install tools:

Others: Server version: 8.0.22 MySQL Community Server - GPL

What happened:

Task is in the failed state. I found the log file on one of the worker node and the task is actually success. And in the task instance details tab, the hostname field is null.

And the logs are as follows:

*** Log file does not exist: /data/app/epic-airflow/logs/tiny_demo80677608236/task_0/2021-01-15T09:04:00+00:00/1.log
*** Fetching from: http://:8793/log/tiny_demo80677608236/task_0/2021-01-15T09:04:00+00:00/1.log
*** Failed to fetch log file from worker. Invalid URL 'http://:8793/log/tiny_demo80677608236/task_0/2021-01-15T09:04:00+00:00/1.log': No host supplied

What you expected to happen:

Task should be success.

How to reproduce it:

I don't know how to reproduce it steadyly. It happened sometimes.

Anything else we need to know:

No
Issue 1:
The github extension fails doing push with (authentication failed) 35 characters only alphanumeric password, the git bash client in cmd does the push (and the authentication) correctly.

Issue 2:
I have configured my git remote like this:

[remote "origin"]
url = http://MY-HOST.../branch-locatlocator-select-ui.git

And when i do a push show me an error:

fatal: Authentication failed for 'http://MY-HOST.../branch-locatlocator-select-ui.git/'

Why Visual Studio Code add the final slash? :(
Issue 1:
It would be really nice to have an AST that was a tree with ~. This would have countless advantages, like the ast-fold could consume the AST and only allocate if it is actually creating a new node, and we'd generally not have the problems associated with Gc (the GC might be able to land!).

However, there are a few areas that are very tricky; mainly the AST map, which maps node_id to actual AST nodes of various types, the only safe way to do this with an ~ tree is with & references... which freezes the AST for the remainder of the program, so no transformations like constant evaluation, and no consuming of the AST by trans.

Issue 2:
As reported by crater, Rust 1.3 nightlies appear to have introduced a regression in lifetime elision, probably related to default trait bounds.

cc @nikomatsakis @nrc @pnkfelix

Nominating in hopes a fix for this will appear before 1.3 beta.
Issue 1:
When using the Transition slide in I.E. the child component is not moved off of the screen. It seems like the css styles are not added at all for the default state.

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

Tech
Version

Material-UI
v1.0.0-beta.11

browser
IE 11

Chrome Element

<div class="c238" direction="left" style="transform: translate3d(calc(100vw - 307.2px), 0px, 0px); transition: -webkit-transform 500ms cubic-bezier(0.4, 0, 0.6, 1) 0ms;"></div>

IE 11 Element

<div class="c179" direction="left"></div>

Issue 2:
Here is the take. Our class names aren't predictable. This is allowing us to shrink the class names in production, hence, improving the performance. But it comes with a drawback. It's making overriding, snapshot testing, writing a theme harder.

Hopefully, we can technically make the class names deterministic. So, I think that documenting how to do so will make prototyping and writing reusable theme easier. For instance, It's something you can do with Bootstrap. It's structurally very important. At the same time. It can be used as a quick escape hatch to the duplicated class names issue—I have seen the issue too many times to ignore it.
Issue 1:
I found this warning in my apache log:

PHP Warning: SessionHandler::close(): Parent session handler is not open in app/cache/prod/classes.php

It's look likes the issue #5868.

I use php 5.4.8 and apache 2.2.23 on gentoo.

I don't know how to test for reproduce this error, if someone can give me some help... :)

Thanks.

Issue 2:
Working through some tests using the bundled Security functionality, and we have noticed that on a logout action we are getting in our server logs:

[Mon Oct 29 16:43:14 2012] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error: Uncaught exception 'ErrorException' with message 'Warning: SessionHandler::write(): Parent session handler is not open in /web_dir/app/cache/dev/classes.php line 558' in /web_dir/app/cache/dev/classes.php:558\nStack trace:\n#0 [internal function]: Symfony\\Component\\HttpKernel\\Debug\\ErrorHandler->handle(2, 'SessionHandler:...', '/web_dir...', 558, Array)\n#1 /web_dir/app/cache/dev/classes.php(558): SessionHandler->write('e0ua5bnj0vneq97...', '_sf2_attributes...')\n#2 [internal function]: Symfony\\Component\\HttpFoundation\\Session\\Storage\\Proxy\\SessionHandlerProxy->write('e0ua5bnj0vneq97...', '_sf2_attributes...')\n#3 [internal function]: session_write_close()\n#4 {main}\n thrown in /web_dir/app/cache/dev/classes.php on line 558

It seems this issue isn't unique to us as seen at:

https://groups.google.com/forum/?fromgroups=#!topic/symfony-devs/Q-f0lKT7OZ8

We are running a centos 6 machine running PHP v5.4.7 and Apache/2.2.15.

Anyone have any suggestions as to what is causing this and how we can eliminate this message on every log out?
Issue 1:
This just tripped me but I'm not sure if it's intended behavior. Feel free to close if it's not an issue.

Basically I re-export a few functions in my lib's index.js:

export { default as DragDropContext } from './DragDropContext';
export { default as DragLayer } from './DragLayer';
export { default as DragSource } from './DragSource';
export { default as DropTarget } from './DropTarget';

In my app, I import them:

import { DragLayer } from 'react-dnd';

I just realized that this assigns them implicit context of index.js's exports object because when I use them later, they are invoked “on it”:

export default DragLayer(...)

becomes

exports['default']) = _reactDnd.DragLayer(...)

and thus this inside DragLayer points to exports in index.js.

How do I solve this?

Issue 2:
Currently when an import statement is used the imported items are stored in a object, is it possible to store them in own variables?

For instance, this snippet:

import {b} from 'foo';
b();

is compiled to:

...
_b.b();

For import default it's even worse:

import b from 'foo';
b();
↓
...
_b2['default']();

This has bad performance consequences as a function call like this works slower than a normal call — b(): http://jsperf.com/obj-default-vs-fn
Issue 1:
Try to use ChoiceQuestion. Failure in any case

State:

> php --version
> PHP 5.5.9-1ubuntu4.11 (cli) (built: Jul 2 2015 15:23:08)

How to reproduce:

create directory

mkdir /tmp/cons && cd /tmp/cons

install console component

composer require "symfony/console:^2.7"

create test.php

<?php
require_once 'vendor/autoload.php';

use Symfony\Component\Console\Application;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ChoiceQuestion;

class ColorCommand extends Command {

protected function configure() {
$this->setName('color');

}

protected function execute(InputInterface $input, OutputInterface $output) {
$helper = $this->getHelper('question');
$question = new ChoiceQuestion(
'Please select your favorite color (defaults to red)',
array('red', 'blue', 'yellow')
);
$question->setMultiselect(true);
$question->setErrorMessage('Color %s is invalid.');

$color = $helper->ask($input, $output, $question);
$output->writeln('You have just selected: ' . $color);

}
}

$application = new Application();
$application->add(new ColorCommand());
$application->run();

Run php test.php color

Select any color.

My result:

Notice: Undefined index: yellow in /tmp/cons/vendor/symfony/console/Question/ChoiceQuestion.php on line 165

More backtrace:

http://i.imgur.com/8hsLIwe.png

http://i.imgur.com/UDyRsS4.png

Issue 2:
The code sample from the documentation produces the following errror.

PHP Notice: Undefined index: blue in vendor/symfony/console/Question/ChoiceQuestion.php on line 165

This error does not appear on 2.6 version.
Issue 1:
I have a <side-menu> component in 2.0.0-alpha.13. Currently, to set the open class on the side menu to show/hide it, I have to manually manipulate the dom element:

import {Component, Template, NgElement} from 'angular2/angular2';
@Component({
selector: 'side-menu'
})
@Template({
inline: `<div class="scroll-area">
<content></content>
</div>`
})
class SideMenu {
constructor(@NgElement() el: NgElement) {
this.element = el;
}
//drag logic ommitted...
setOpen(isOpen) {
this.isOpen = isOpen;
this.element.domElement.classList[isOpen ? 'add' : 'remove']('open');
}
}

I'd like to be able to setup a [class.open]="isOpen" binding on my component's element instead of having to do this.

@mhevery suggested injecting @PropertySetter('class.open') setter: Function into the constructor, but that errors when used because the actual setter function tries to set domElement.class.open. And domElement.class does not exist.

Issue 2:
I read the parent child routing in angular2 docs. It is pretty good, but my requirement is to create multilevel routes using angular2. And loading of the component is completely Lazy, means when we require it then only load the components and routes so i used AsyncRoute. So scenario is given below:

TopLinks: Home | Admin

Admin ChildLinks: SecurityMgmt | SystemConfig

Where Home & SecurityMgmt are the default routes, means when user clicks on Admin link or specify the correct url (i.e. http://localhost:8080/myapp/#/admin/securitymgmt) then Admin & SecurityMgmt links should be selected and security management page should be displayed under the child links.

Along with that when user clicks on Admin link then only the Admin.ts and Admin.html files should be loaded. Since SecurityMgmt link is the default so it should also select SecurityMgmt link and load SecurityMgmt.ts and SecurityMgmt.html files. This same behavior should be applicable if user specify the correct url on web browser i.e.

http://localhost:8080/myapp/#/admin - After using this URL router should convert this to http://localhost:8080/myapp/#/admin/securitymgmt because of the default behavior and display the same page as specified using http://localhost:8080/myapp/#/admin/securitymgmt url.

http://localhost:8080/myapp/#/admin/securitymgmt

I just want to know how can we define this kind of routing using angular2 async routing.

I did my own way using angular2 Async routing, it is working but my solution is not so clean because i am duplicating the route configuration(As AsyncRoute does not provide all these features). If anybody have good solution to that, please share the same.

Thanks
Issue 1:
Description

I try to 30 fit times a Random Forest Regressor (sklearn.ensemble.RandomForestRegressor) on different sets of data.

In order to do it I use a for loop. But every-times, I run my script the python kernel died unexpectedly.

I run this script on different machines, the power of the machine (RAM and CPU) only delays the moment when the kernel die.

I write a minimal case of my script without my personal data and of the other thinks I want to do normally. In my complete and original script in which I read the data in a csv file and write the prediction in an other csv file, the kernel die even quickly.

Steps/Code to Reproduce

Example:

"""
@author: Nicolas

The goal of this script is too highlight a problem that make crash the python
kernel on Windows and Linux machine by using RandomForestRegressor
With scikit learn 0.18.
"""

import numpy as np
from sklearn.ensemble import RandomForestRegressor

def main():
NumberOfRandomForest = 30

# We create a random forest regressor
RFR = RandomForestRegressor(n_estimators=100, criterion='mae', max_depth=None,min_samples_split=2, min_samples_leaf=1)

print("Start the for loop")
for i in range(NumberOfRandomForest):
print(i)
X = np.random.rand(150, 30)
y = np.random.rand(150, 10)
RFR.fit(X,y)

if __name__ == "__main__":
main()

Versions

I try my script on two different machines.

On the first one the script crash after only 3 iterations whereas on the second the script can reach 25 iterations.

The setup of the first machine :

Windows-10-10.0.14393-SP0

Python 3.5.2 |Anaconda 4.2.0 (32-bit)| (default, Jul 5 2016, 11:45:57) [MSC v.1900 32 bit (Intel)]

NumPy 1.11.1

SciPy 0.18.1

Scikit-Learn 0.18

The setup of the second one :

Linux-3.10.0-327.28.2.el7.x86_64-x86_64-with-centos-7.2.1511-Core

Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]

NumPy 1.11.1

SciPy 0.18.1

Scikit-Learn 0.18.1

Issue 2:
Description

DecisionTree with mae criterion does not free used memory.

As a result that kind of trees is unusable in cycle, forests and cross-validation.

(originally i encoutered this problem while trying use grid search with mae forest)

Steps/Code to Reproduce

import sklearn

params = dict(max_depth=range(1, 10))
params = sklearn.model_selection.ParameterGrid(params)
reg = sklearn.tree.DecisionTreeRegressor(criterion='mae')

# repeated several times in jupyter cell
for p in params:
print p
for i in range(100):
reg.set_params(**p)
reg.fit(xxx, yyy)

Expected Results

No additional memory usage after first completion of cycle.

Cell with 'for' cycle is runnable unlimited times.

Replacing 'mae' with 'mse' does give expected result.

Actual Results

Additional memory is used after each cell execution.

Deleteing tree with 'del' and enforcing 'gc.collect()' does not help.

When there is no memory left OS (windows) shuts down python process.

My guess is that there is memory leak in cython.

Versions

Windows-7-6.1.7601-SP1

('Python', '2.7.12 | packaged by conda-forge | (default, Aug 12 2016, 18:53:38) [MSC v.1500 64 bit (AMD64)]')

('NumPy', '1.11.2')

('SciPy', '0.18.0')

('Scikit-Learn', '0.18')
Issue 1:
If I use the new cause property and throw an Error in a .ts file it doesn't show the expected output when using deno run

code:

throw new Error("main error", { cause: new TypeError("caused by this") });

expected:

Uncaught Error: main error
at <anonymous>:2:7
Caused by TypeError: caused by this
at <anonymous>:3:12

actual:

error: Uncaught Error: main error
throw new Error("main error", { cause: new TypeError("caused by this") });
^
at file:///path/to/my/file.ts:1:7

It does work if I console.log the error or if I throw one using the REPL though.

deno --version

deno 1.16.0 (release, x86_64-unknown-linux-gnu)
v8 9.7.106.2
typescript 4.4.2

Issue 2:
Since Deno 1.13.0, Error Cause Proposal is supported, so the Error object can hold inner errors. However, their contents are usually not displayed and I need to explicitly access the cause property.

function bar() {
throw new Error("bar");
}

function foo() {
try {
bar();
} catch (e) {
throw new Error("foo", { cause: e });
}
}

foo();

I think it should also show inner errors, just like Firefox does.