WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Migrated issue, originally created by Michael Bayer (@zzzeek)

will seek reporting this upstream as this likely breaks the SQL standard:

CREATE TABLE ck_cons_test (
-> b1 INT NULL,
-> b2 INT NULL,
-> CHECK (b1 IN (0, 1)),
-> CHECK (b2 IN (0, 1, NULL))
-> );
Query OK, 0 rows affected (0.03 sec)

MariaDB [test]> INSERT INTO ck_cons_test (b1, b2) VALUES (1, 0);
Query OK, 1 row affected (0.01 sec)

MariaDB [test]>
MariaDB [test]> INSERT INTO ck_cons_test (b1, b2) VALUES (1, NULL);
ERROR 4025 (23000): CONSTRAINT `CONSTRAINT_2` failed for `test`.`ck_cons_test`
MariaDB [test]>
MariaDB [test]> INSERT INTO ck_cons_test (b1, b2) VALUES (NULL, 0);
ERROR 4025 (23000): CONSTRAINT `CONSTRAINT_1` failed for `test`.`ck_cons_test`

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

https://mariadb.com/kb/en/library/mariadb-1029-changelog/

This fixes the CHECK constraint issue https://jira.mariadb.org/browse/MDEV-13596 that ruins booleans for us, and additionally the DROP issue https://jira.mariadb.org/browse/MDEV-11114 was fixed as of 10.2.8: https://mariadb.com/kb/en/library/mariadb-1028-changelog/

propose a brief warning if mariadb 10.2[<9] is detected then go forward normally with CI support. Will need to test if #4096 is still needed.
Issue 1:
I got a warning :

"An empty string has been transmitted to « getElementById() ». @ jquery.min.js:4"

When I click somewhere on the document.

I got only jQuery 2.0.3 and bootstrap 3.0.3 loaded.

Issue 2:
I am Using Firefox 22.

Reproduce:

Open http://getbootstrap.com/components/

The error is visible in the console when clicking anywhere in the page but a dropdown menu.

I could track down the error to the clearMenus call, which in turn calls getParents where the error finally happens.

In getParents the selector variable is set to '#'. This character is stripped away inside jQuery.
Issue 1:
Fueled by the success of React, several alternative virtual DOM implementations have emerged, such as Riot, Mithril, Mercury, and virtual-dom.

Atom recently integrated Babel into core, and one of our major goals with core is to be as framework-agnostic as possible. One area where it would be nice to be agnostic is in the usage of JSX... it would be great if any of these frameworks could create JSX adaptors so the same convenient syntax could be used with a variety of underlying implementations.

Currently, JSX expressions are compiled to calls to React.createElement. While it's certainly possible to provide an alternative implementation of the React variable in a given scope, it would be nice if the language were a bit more neutral. One idea would be to call JSX.createElement instead if a JSX variable is in scope at the site of a JSX expression, or perhaps allow the create function to be specified via an option. Or maybe there's a better idea I haven't thought of. I'd prefer the JSX rule so it's consistent and we don't have to extend Atom's basic pragma system to support this option on every file.

Would your team be open to something like this?

Issue 2:
The JSX transform is currently coupled to React, but other libraries could potentially make use of the syntax. There are libraries like jsx-transform (https://github.com/alexmingoia/jsx-transform) that make the transform more generic and allow you to specific how the output should look:

/** @jsx React.createElement */
var React = require('react');

var profile = <div>
<img src="avatar.png" class="profile" />
<h3>{[user.firstName, user.lastName].join(' ')}</h3>
</div>;

Transforms it to:

var React = require('react');

var profile = React.createElement('div', null, [
React.createElement('img', { src: "avatar.png", class: "profile" }),
React.createElement('h3', null, [[user.firstName, user.lastName].join(' ')])
]);

Alternative virtual DOM libraries can then use it:

/** @jsx dom */
var {dom} = require('deku');

var profile = <div>
<img src="avatar.png" class="profile" />
<h3>{[user.firstName, user.lastName].join(' ')}</h3>
</div>;

And get the same benefits of using JSX.

You could easily just add a setting for it rather than using the comment format too. If this is something that would be useful I can look at opening a PR for it.
Issue 1:
To search for a package / theme in the settings tab, I have to type in the search query then click (if looking for a package) the themes button, then the package button to have Atom search for a package matching that string.

Issue 2:
Saw a tweet that the search for new packages doesn't work.

From the gif it seems that the first search was successful, otherwise there would be a bigger gap after the input. Search term was probably set.

Can't reproduce it myself.
Issue 1:
Summary

Installing numpy on aarch64 via pip using command "pip3 install numpy" tries to build wheel from source code

Problem description

Numpy don't have wheel for aarch64 on PyPI repository. So, while installing numpy via pip on aarch64, pip builds wheel for same resulting in it takes more time to install numpy. Making wheel available for aarch64 will benefit aarch64 users by minimizing numpy installation time.

Expected Output

Pip should be able to download numpy wheel from PyPI repository rather than building it from source code.

@numpy-team, please let me know if I can help you building wheel/uploading to PyPI repository. I am curious to make numpy wheel available for aarch64. It will be a great opportunity for me to work with you.

Issue 2:
Manylinux2014 got released with support for wider selection of architectures: aarch64, arm32, ppc64le, s390x. Are there plans to use it for releasing wheels for other architectures than x86-64/i686?

Would cut "pip install numpy" times A LOT of aarch64 platform.
Issue 1:
On Mac OS X, you can change the text of the primary "OK" button in open and save dialogs by providing a "prompt": https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSSavePanel_Class/index.html#//apple_ref/occ/instp/NSSavePanel/prompt

It'd be great to make this an option on the dialog APIs. We want to show an open dialog and ask the user to create / select a folder where files will be saved, and change the prompt from "Open" to "Choose".

Slightly related to #5178

Issue 2:
A Choose dialog is just like an Open dialog, but not only does it have a custom title, it also has a custom name for the “Open” button. Two examples where it is helpful:

choosing a directory where downloaded files should be saved – you “Choose” the directory

using a dialog to “Import” a file in a different format, not to “Open” a file in your app’s format

It is used in OS X apps: OS X Human Interface Guidelines – The Choose Dialog. I don’t know if other platforms have an equivalent.

The simplest way to support it would be accepting another option in the options parameter of dialog.showOpenDialog. The property name would be something like buttonLabel, openButtonLabel, or prompt (which is OS X’s name for it). The property should contain a string that the button will be renamed to.

To implement this for OS X, you just need to add this code to SetupDialog in file_dialog_mac.mm:

if (!prompt.empty())
[dialog setPrompt:prompt];

And also change SetupDialog and its callers to pass prompt in, which would be extracted from the options of showOpenDialog.

I can imagine that this might be useful for Save dialogs, too – you could change the button to “Save As” or “Export” instead of “Save”. You can probably implement it for dialog.showSaveDialog in exactly the same way as for showOpenDialog. It would make sense that users could pass the same option to customize the button, since those two functions already support mostly the same options.
Issue 1:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
yes

Symfony version
3.3.x

Currently, when you want to inject all services with a specific tag you have to write your own compiler pass as described here. Additionally, one has to use method calls instead of injecting the services into the constructor because obviously the parameter cannot be inferred.

It would be handy if there was a way to inject all services that are tagged with a specific tag, optimally indexed by their id:

Foo\Bar:
arguments:
- '@doctrine.orm.entity_manager'
- '@=taggedServices("my_tag")'

Resulting in:

[
"Foo\Service1" => Foo\Service1 {...},
"Foo\Service2" => Foo\Service2 {...},
]

This is probably not an everyday use-case but maybe other people would be interested in this.

Issue 2:
Similar issue to (in the sense of having a similar context) than #11460

In Drupal we have a lot of tagged services which are injected into a single one. When we started most of them had custom Compiler Passed, but than we realized that we can easily extract that into a common service:

This would be the "collector" service:

breadcrumb:
class: Drupal\Core\Breadcrumb\BreadcrumbManager
arguments: ['@module_handler']
tags:
- { name: service_collector, tag: breadcrumb_builder, call: addBuilder }

and then you do something like that in the client service:

forum.breadcrumb.listing:
class: Drupal\forum\Breadcrumb\ForumListingBreadcrumbBuilder
arguments: ['@entity.manager', '@config.factory', '@forum_manager']
tags:
- { name: breadcrumb_builder, priority: 314 }

Any oppinions?
Issue 1:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): N/A

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Docker nightly

TensorFlow installed from (source or binary): Docker nightly

TensorFlow version (use command below): Docker nightly

Python version: Docker nightly

Bazel version (if compiling from source): Docker nightly

GCC/Compiler version (if compiling from source): Docker nightly

CUDA/cuDNN version: Docker nightly

GPU model and memory: N/A

Exact command to reproduce: N/A

Describe the problem

Please add warm_start_from parameter in tf.model_to_estimator

Source code / logs

N/A

Issue 2:
The Golang api WriteContentsTo can be used to writes the serialized contents of a tensor to io.Writer, where the tensor is built from golang scalars, slices, and arrays.

Yet there's not a Golang API to serialize data into tf.Example protos(tfrecords).

For example, when i want serialize a libsvm into tf.Example protos, i can do this by:

def libsvm2tfrecords(data_source, target_dir, delimiter='\t'):
"""
a single file should not contain lines more than 1000,000, or we should use libsvm2proto_par
:param data_source: libsvm file path
:param target_dir: dir to storage the serialize proto file
:param delimiter: delimiter for csv reader
:return:
"""
if not os.path.isfile(data_source):
raise ValueError('data file passed do not exist or not a file')

file_name = os.path.join(target_dir, os.path.splitext(
os.path.basename(data_source))[0] + '.tfrecords')
writer = tf.python_io.TFRecordWriter(file_name)
start = datetime.now()
line_c = 0
with open(data_source, 'rb') as rf:
f_reader = csv.reader(rf, delimiter=delimiter, quotechar='|')
for row in f_reader:
line_c += 1
feature = dict()
indexes = []
values = []
feature.update({'label': _float_feature([float(row[0])])})
for e in row[1:]:
index, value = e.split(':')
indexes.append(int(index))
values.append(float(value))
feature.update({'index': _int64_feature(indexes)})
feature.update({'value': _float_feature(values)})

example = tf.train.Example(features=tf.train.Features(feature=feature))
writer.write(example.SerializeToString())

writer.close()
end = datetime.now()

print("- consumed time: %ds for %s" % ((end-start).seconds, data_source))

BUT Golang api does not seem to be able to achieve this.
Issue 1:
Applying filter on the box plot didn't update the view .

Expected results

Should update box plot view after running query

Actual results

Box plot only updates after saving the view.

Screenshots

If applicable, add screenshots to help explain your problem.

How to reproduce the bug

Create a box plot

Apply filter on data

Run the query after applying filter

The box plot didn't update

Environment

(please complete the following information):

superset version: master

python version: 3.6

node.js version: latest

npm version: latest

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of the superset.

I have checked the issue tracker for the same issue and I haven't found one similar.

Issue 2:
When following the standard install instructions, example datasets are installed. If a new user is assigned the role 'Alpha', they are able to view the database, tables, slices and dashboards. If a new role is created by duplicating the Alpha role (e.g. 'Alpha_copy'), and the new user assigned this role instead, then the slices and dashboards are no longer visible, despite having an identical permission set. Is this expected?

A related issue is that if the 'Public' role is assigned the 'all datasource access on all_datasource_access' permission, and a user assigned both Gamma and Public roles, they also cannot see the slices and dashboards, as may be expected - as they can't seem to see the tables. The security page has permissions such as 'datasource access on [main].birth_names', which aren't available to me in the permissions auto-complete box after a clean install. Is this a bug or are the permission sets created before the tables in the install routine? If so how do you create permission properties for tables?

Thanks,

Sam
Issue 1:
What do you think about returning promises from transforms? I have a case where I need to perform some async operation in a transform.

Issue 2:
I'm trying to replicate a working auth request with axios (currently implemented using reqwest). I've read through #167 and #97 and have gotten close, but still not quite there.

Here's a working example using reqwest.

I tried duplicating the request exactly (according to the network tab) using axios, and this is what I came up with (using a suggested transform workaround from one of the threads above):

From the network tab, this solution appears to have worked for the request being manipulated, but the next Redux action (loadCurrentUser) that gets dispatched from that .then success fails, giving me the following error (which I did not get with the original reqwest solution):

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 401.

I also tried using params in the config and received the exact same error.

What am I doing wrong here?
Issue 1:
I noticed that the topmost widget in a Stack will always intercept touch events, even when its opacity is set to 0.0. From the doc https://docs.flutter.io/flutter/widgets/Opacity-class.html,

For the value 0.0, the child is simply not painted at all.

import 'package:flutter/material.dart';

void main() {
runApp(new MyApp());
}

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(
primarySwatch: Colors.blue,
),
home: new MyHomePage(),
);
}
}

class MyHomePage extends StatefulWidget {
MyHomePage({Key key}) : super(key: key);

@override
_MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
bool _visible = true;

void _toggleLayerB() {
setState(() {
_visible = !_visible;
});
}

@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(title: new Text('Home')),
body: new Stack(
children: <Widget>[
new Center(
child: new RaisedButton(
onPressed: () => print('Layer A pressed!'),
child: new Text('Layer A')
)
),
new Opacity(
opacity: _visible ? 1.0 : 0.0,
child: new Center(
child: new RaisedButton( // wrapped in Opacity widget
onPressed: () => print('Layer B pressed!'),
child: new Text('Layer B')
)
),
)
],
),
floatingActionButton: new FloatingActionButton(
onPressed: _toggleLayerB,
tooltip: "Toggle Layer B's visibility",
child: new Icon(Icons.add),
),
);
}
}

Result:

The topmost widget (Layer B) will always register button presses, even if not visible/painted on screen. Seems wrong to me.

Issue 2:
This will prevent stacked items which are not visible from blocking items which are nevertheless "behind" them.
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

core

ANSIBLE VERSION

ansible 1.9.4
ansible 2.0.1.0

CONFIGURATION

Default of yum install

OS / ENVIRONMENT

CentOS Linux release 7.2.1511 (Core)

SUMMARY and

SUMMARY

Inconsistent behavior of when statement

STEPS TO REPRODUCE

If I write an inventory file and a task file as follows, do_something.sh is executed only on web1.example.com.

[webservers]
web1.example.com var1=true
web2.example.com var1=false

- command: /usr/bin/do_something.sh
when: var1

But if I write an inventory file as follows:

- command: /usr/bin/do_something.sh
when: var1 is defined and var1

do_something.sh is executed on both web1.example.com and web2.example.com.

Of course, I know that all host variables defined in inventory files are treated as string variables. However, it does not explain this inconsistent behavior.

Here is an example of task.yml: ansible-2.0-sample/main.yml at master muziyoshiz/ansible-2.0-sample

EXPECTED RESULTS

If web2.example.com var1=false is in the inventory file,

when: var1 and when: var1 is defined and var1 should be treated same as when: false

ACTUAL RESULTS

If web2.example.com var1=false is in the inventory file,

when: var1 was treated same as when: false

when: var1 is defined and var1 was treated same as when: true

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

when / when not conditional

ANSIBLE VERSION

From devel branch:

ansible 2.5.0 (devel 34206a0402) last updated 2018/01/08 13:39:51 (GMT -400)
config file = None
configured module search path = ['/home/myuser/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/myuser/git/ansible/lib/ansible
executable location = /home/myuser/git/ansible/venv/bin/ansible
python version = 3.6.2 (default, Oct 2 2017, 16:51:32) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)]

Also versions 2.4.1 and 2.4.2 from pip, and 2.4.1 via RPM on RHEL.

CONFIGURATION

$ ansible-config dump --only-changed
$ (no output)

OS / ENVIRONMENT

Fedora 26, RHEL 7

SUMMARY

When a user supplies a variable that should be a boolean value as the string value 'false', we witness inconsistent behavior in the 'when' and 'when not' condition. For example, if x="false", then both "when: not x" and "when: x" resolve to false.

STEPS TO REPRODUCE

This was originally triggered by a value provided in an ini formatted inventory, (eg, x=false) which equates to a string, but the same behavior can be replicated with

---
- hosts: localhost
connection: local
vars:
x: "false"
tasks:
- set_fact:
other_var: "x was true"
when: x
- set_fact:
other_var: "x was false"
when: not x
- debug: var=other_var

EXPECTED RESULTS

TASK [debug]
ok: [localhost] => {
"attempts": 1,
"other_var": "x was false"
}

It would be fair if this resolved to 'x was true' as well, because a defined string (other than one that shares a name with a boolean) will resolve to True normally. However, I feel both 'x' and 'not x' cannot be false for the same value.

ACTUAL RESULTS

TASK [set_fact]
skipping: [localhost]

TASK [set_fact]
skipping: [localhost]

TASK [debug]
ok: [localhost] => {
"attempts": 1,
"other_var": "VARIABLE IS NOT DEFINED!"
}
Issue 1:
Before, a very nice white with shadows button was generated when using the "btn" class without any other class like "btn-primary" for example.

Now, in BS3, it is gone.

Please put it back.

Same goes with all input-x sizes, badge colors and many many more. I think the purpose of a new BS3 version should be adding new features and not deleting them.

Issue 2:
I suppose I could have posted in the BS3 thread, but at some point individual topics about BS3 need to have their own thread.

Buttons

I don't think the hover colour change is drastic enough. On all but the green button, I can barely discern any colour change. I think the change should be more obvious - especially because most people have bad eyesight.

There's no "plain" button any more. To me this seems like quite a stark omission. I can think of many cases where I don't want all my buttons to stick out as much as black-on-white.

Navbar

.navbar-text and .navbar-btn aren't vertically aligned with .brand. You can see this here: http://twbs.github.io/bootstrap/components/#navbar-buttons

List groups & Panels

Love these. Great addition.
Issue 1:
在“Pre-instantating singletons in org.springframework.bean.factory.support.DefaultListableBeanFactory@30d94ae4:”之后：一直循环报这个上面的title：

即：[Finalizer] WARN in [com.alibaba.dubbo.config.ReferenceConfig$1.finalize(ReferenceConfig.java:106)] -[DUBBO] ReferenceConfig(null) is not DESTROYED when FINALIZE，dubbo version 2.5.3

纯手打的 请见谅，也麻烦解答下谢谢

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

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

Environment

Dubbo version: 2.7.6

Operating System version: docker

Java version: jdk8

Steps to reproduce this issue

consumer and provider are both used dubbo-2.7.6.

no startup sequence.

every time.

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

Expected Result

What do you expected from the above steps？

normal.

What actually happens?

[DUBBO] Decode rpc invocation failed: null, dubbo version: 2.7.6, current host: xxx.xxx.xxx.xxx

java.lang.NullPointerException: null	at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:118)	at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:79)	at org.apache.dubbo.remoting.transport.DecodeHandler.decode(DecodeHandler.java:57)	at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:44)	at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)	at java.lang.Thread.run(Thread.java:748)
Issue 1:
Go spec says:

For real and imag, the argument must be of complex type, and the return type is the corresponding floating-point type: float32 for a complex64 argument, and float64 for a complex128 argument. If the argument evaluates to an untyped constant, it must be a number, and the return value of the function is an untyped floating-point constant.

$ cat /tmp/cplx.go
package cplx

const (
a int = real(0i)
b = imag(0)
)
$ go tool compile /tmp/cplx.go
/tmp/cplx.go:4: cannot use real(0i) (type float64) as type int in const initializer
/tmp/cplx.go:5: invalid argument 0 (type int) for imag
$ gccgo-4.8 -c /tmp/cplx.go
$ gotype /tmp/cplx.go

Issue 2:
package main
const _ int = real(10i)

=>

$ go build x.go
# command-line-arguments
./x.go:2: cannot use real(10i) (type float64) as type int in const initializer

(same for use of imag instead of real).

It appears that real and imag always produce a float32 or float64 constant respectively, for untyped constant arguments. The spec is not explicit about this, but this behavior violates the invariant

z == complex(real(z), imag(z))

for untyped constants z because real and imag won't work if the complex arguments have untyped constant components outside the float64 domain (see also #11540 ).

Both gc, and go/types accept this code. Both gc and go/types produce an untyped floating-point constant for untyped constant arguments.