WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Please make sure that this is a documentation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:doc_template

System information

TensorFlow version: TensorFlow Core 1.13

Doc Link: https://www.tensorflow.org/api_docs/python/tf/test

Describe the documentation issue

The link pointing to the testing guide is broken.

broken link - https://tensorflow.org/api_guides/python/test

A snapshot of the broken link, working as of 22nd Feb 2019

We welcome contributions by users. Will you be able to update submit a PR (use the doc style guide) to fix the doc Issue?

Issue 2:
This is a feature request. As far as I know, all three of them currently do not have GPU ops.

It seems that if we can at least get a GPU implementation of tf.unique for integers, then the user can make tf.where and tf.dynamic_partition manually. For those of us who are trying to build models that want to mess around with indices rather frequently, this would be incredibly helpful.
Issue 1:
Expected results

I want create a role only the given dashboard can be shown to him, but I can only limit his access on datasource. In another word, I want to create 2 or more different dashboards based on the same datasource, and a specified user can only see one of them. But I can't do that based on the existing security model. Is there any suggestions?

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

[ ok] I have checked the superset logs for python stacktraces and included it here as text if any

[ ok] I have reproduced the issue with at least the latest released version of superset

[ ok] I have checked the issue tracker for the same issue and I haven't found one similar

Now dashboard permissions are based on database and datasource to control, I would like to control the permissions on the dashboard alone，like that:

Superset version

14.1

Expected results

succeed

Actual results

succeed

Steps to reproduce

New feature.
Issue 1:
Hello team

I have created a Mac app using electron framework (electron-packager) and embedded it within my another Mac app (non-electron).

I have already added sandbox entitlement in my electron mac app.

I'm trying to get our non-AppStore version of my main app through Apples notarization.

It fails for the notarization process (https://help.apple.com/xcode/mac/current/#/dev88332a81e)

because it missed the 'runtime' flag during codesign for the Helper App.

Therefore I need to create a Mac app which :

is compatible with app store submission

can be signed as runtime (seems to be equal to hardened runtime : https://help.apple.com/xcode/mac/current/#/devf87a2ac8f) for non-AppStore submission and notarization.

Help would be appreciated.

Thanka

Pooja

Issue 2:
I have a question

I want my application support mac os native share extension .

how to do it
Issue 1:
System information

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

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac 10.13.4

TensorFlow installed from (source or binary): binary (tensorflow-1.8.0-cp36-cp36m-macosx_10_11_x86_64.whl)

TensorFlow version (use command below): 1.8.0

Python version: 3.6.4

Bazel version (if compiling from source): NA

GCC/Compiler version (if compiling from source): NA

CUDA/cuDNN version: NA

GPU model and memory: NA

Exact command to reproduce: pip3 install tensorflow && python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

I tried to install tensorflow and the module does not load. Same problem for all version up to 1.5.0 which then works fine.

(with version 1.5.0)

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
/Users/marco/coding/crypto/_python_env/_mac/nn/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
v1.5.0-0-g37aa430d84 1.5.0

Source code / logs

I run a verbose import as attached for the latest version (python3 -v -m tensorflow 2&> verbose_import.txt).

verbose_import.txt

Issue 2:
As announced in release notes, TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. This means on any CPU that do not have these instruction sets either CPU or GPU version of TF will fail to load with any of the following errors:

ImportError: DLL load failed:

A crash with return code 132

Our recommendation is to build TF from sources on these systems.

System information

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

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu/windows/macos

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): 1.6 and up

Python version: 2.7, 3.3, 3.4, 3.5, 3.6 and any newer

Bazel version (if compiling from source): n/a

GCC/Compiler version (if compiling from source): n/a

CUDA/cuDNN version: any

GPU model and memory: any

Exact command to reproduce: python -c "import tensorflow as tf"
Issue 1:
Hi!

I'm getting an initial blink while using ReactCSSTransitionGroup because the added element does not get the -enter class applied when it's attached to the DOM, even if it gets it immediately after.

For what I can see, the ReactCSSTransitionGroupChild.componentWillEnter is queued and dispatched after the action that adds the element to the DOM, which causes this behavior.

Is this a know issue? Wouldn't it make sense for the element to be added with the -enter class at the moment it's inserted?

Thanks!

Issue 2:
Hello there,

I am playing with React transition

I noticed that the -enter classe is added only after the element has been inserted into the dom.

https://github.com/facebook/react/blob/master/src/addons/transitions/ReactTransitionableChild.js#L147-L150

I thought the active class was applied when the component was mounted into the dom.

Here is a small demo: http://jsfiddle.net/437Us/1/

I am using componentWillUpdate to make sure the class is applied directly. If you remove it, and use the same

transition mechanism on a more complex layout sometime you will see the page flashing into the screen before the transition starts
Issue 1:
Would be nice to be able to open recent projects or window configurations instead of having to digging and adding a dir to a window every time I decide to close it and re open it later.

Issue 2:
I would like to be able to find files or folders that I have recently opened in previous editing sessions. On Windows this is usually done under the File menu. For example: File > Recent Files > (displays a sub menu of top 10 most recently used files in descending order).

File

Recent Files

> (top 10 most recent files)

Recent Folders

> (top 10 most recent folders)
Issue 1:
https://s3.amazonaws.com/archive.travis-ci.org/jobs/35977365/log.txt

Issue 2:
Configurable, using labels to route traffic.

From discussion: https://groups.google.com/d/msg/google-containers/frOLMyNl5U4/W5_DQUL933IJ

I suppose, if we had some sort of dynamic router based on label queries, you could make that work for your needs with a bit of configuration. I'm not sure if there's really a need for that once DNS naming is set up, though.

I think you're going to want to incorporate some sort of http/s router or at least have a suggested means of configuring one. It seems to be one of the most obvious use cases for Kubernetes.

Like I said, I'm not sure this is needed if there's a good load balancer and DNS name resolution, but filing this for tracking the discussion.
Issue 1:
Migrated issue, originally created by Michael Bayer (@zzzeek)

right now functions like startswith() and endswith() rely upon an in-python string concatenation of "%" with the given value. this prevents the usage of bind parameters and other non-literal expressions. a better approach would be to move the string concatenation into the database layer, so that instead of producing:

where somecol LIKE "%foo"

we instead produce:

where somecol LIKE '%' + 'foo'

but not every database supports "+" as a concatenation operator. so a ConcatenationClause would be needed which each dialect can produce as it likes, such as oracle which would produce CONCAT(x, y) for example.

Attachments: py

Issue 2:
Migrated issue, originally created by Anonymous

Trying out sqlalchemy for the first time, I notice that autoloading the schema from my PostgresQL 8.1 database takes forever: loading a single table takes more than a minute!

With a little investigation, I found that the query executed is

SELECT table_constraints.constraint_name AS table_constraints_constraint_name,
table_constraints.constraint_type AS table_constraints_constraint_type,
table_constraints.table_name AS table_constraints_table_name,
key_column_usage.table_schema AS key_column_usage_table_schema,
key_column_usage.table_name AS key_column_usage_table_name,
key_column_usage.column_name AS key_column_usage_column_name,
key_column_usage.constraint_name AS key_column_usage_constraint_name,
constraint_column_usage.table_schema AS constraint_column_usage_table_schema,
constraint_column_usage.table_name AS constraint_column_usage_table_name,
constraint_column_usage.column_name AS constraint_column_usage_column_name,
constraint_column_usage.constraint_name AS constraint_column_usage_constraint_name
FROM information_schema.table_constraints,
information_schema.key_column_usage,
information_schema.constraint_column_usage
WHERE ((key_column_usage.constraint_name = constraint_column_usage.constraint_name AND
constraint_column_usage.constraint_name = table_constraints.constraint_name) AND
table_constraints.table_name = %(table_constraints_table_name)s) AND
table_constraints.table_schema = %(table_constraints_table_schema)s

Effectively, this query takes lot of time to execute (PgAdmin3 says 85803 ms, and the server is a dual amd64), and the engine is not even able to "explain" it, giving the error

ERROR: record type has not been registered

So, I managed to produce an equivalent query using JOINs instead, like the following:

SELECT table_constraints.constraint_name AS table_constraints_constraint_name, ...
FROM information_schema.table_constraints
JOIN information_schema.constraint_column_usage
ON constraint_column_usage.constraint_name = table_constraints.constraint_name
JOIN information_schema.key_column_usage
ON key_column_usage.constraint_name = constraint_column_usage.constraint_name
WHERE table_constraints.table_name = %(table_constraints_table_name)s
AND table_constraints.table_schema = %(table_constraints_table_schema)s

And this is fast: 356 ms!

Attachments: test_alchemy.dump.bz2 | queries.sql | sqla.diff | constraints_by_table.diff
Issue 1:
JAmes Atwill opened SPR-8927 and commented

Hello, we're working on some tooling to ensure none of our dependencies are GPL. To do this, we have a maven plugin that walks through projects and looks at the <license/> block of the projects to ensure they're whitelisted.

Many projects don't have <license/> blocks, but they're super quick to add.

Estimate assumes doing all poms in bulk manually and waiting for a CI to push out a new snapshot.

Referenced from: commits 87a021d

1 votes, 1 watchers

Issue 2:
Stevo Slavić opened SPR-5848 and commented

Please include license info in the project maven artifacts pom. Since project is licensed under Apache License 2.0 adding following to the pom should do:

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

All this will improve how dependency to this project artifacts is treated by all sorts of maven plug-ins and tools, like project info dependency report plugin, maven jboss license plugin, etc.

This should be applied to all sub-frameworks of spring framework as well. Maybe a spring parent module could be created for reuse, or org.apache:apache could be set as parent.

Affects: 3.0 M3
Issue 1:
Challenge Name

All challenges

Issue Description

I go to a challenge. Try to add code to the last couple of lines. The cursor will not go any farther until I hit return and go back up a few lines. The cursor skips over a whole line when pressing return.

Browser Information

Chrome Version 51.0.2704.103 (64-bit)

Mac OS X 10.11.5

Desktop

Browser Name, Version:

Operating System:

Mobile, Desktop, or Tablet:

Your Code

Screenshot

No screenshot available. Would need a gif

Issue 2:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
I am having an issue with some unexpected behaviour with the scipy.interpolate.interp1d method for the following kinds:

kind= ['nearest','linear', 'previous' and 'next'] (i.e. kinds not involving spline interpolation according to the doc)

When providing non-strictly monotonic x values, unexpected results are returned rather than the method failing:

Reproducing code example:

import numpy as np
from scipy.interpolate import interp1d

x = np.array([0, 1, 1])
y = np.array([0, 1, 0])

for kind in ['nearest', 'linear', 'previous', 'next']:
f = interp1d(x,y,kind=kind)
print("{k}: ".format(k=kind), f(x))

Output

nearest: [0. 1. 1.]
linear: [0. 1. 1.]
previous: [0. 0. 0.]
next: [0. 1. 1.]

Error message:

For kind='cubic' it fails in a similar matter as I would expect it to for the others:

---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-30-064ad468e798> in <module>
----> 1 f = interp1d(x,y,kind='cubic')
2 f(x)

C:\anaconda\envs\atlite\lib\site-packages\scipy\interpolate\interpolate.py in __init__(***failed resolving arguments***)
533
534 self._spline = make_interp_spline(xx, yy, k=order,
--> 535 check_finite=False)
536 if rewrite_nan:
537 self._call = self.__class__._call_nan_spline

C:\anaconda\envs\atlite\lib\site-packages\scipy\interpolate\_bsplines.py in make_interp_spline(x, y, k, t, bc_type, axis, check_finite)
797
798 if x.ndim != 1 or np.any(x[1:] <= x[:-1]):
--> 799 raise ValueError("Expect x to be a 1-D sorted array_like.")
800 if k < 0:
801 raise ValueError("Expect non-negative k.")

ValueError: Expect x to be a 1-D sorted array_like.

Scipy/Numpy/Python version information:

[1]: import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.2.1 1.15.4 sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)

Issue 2:
Code: see the post https://stackoverflow.com/questions/46983476/

Got error message:

The error message Invalid input data is uninformative.

Is it possible to provide the reason or solution of the error in the error message?
Issue 1:
If you know how to fix the issue, make a pull request instead.

I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @borisyankov.

app.use((req: express.Request, res: express.Response) => {
res.status(404).end();
});

error TS2551: Property 'end' does not exist on type 'Response'. Did you mean 'send'?

Issue 2:
If you know how to fix the issue, make a pull request instead.

I tried using the @types/express package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @borisyankov, @CMUH, @rockwyc992, @OliverJAsh

My builds are throwing the following errors after upgrades to latest version of the @types/express package:

Property 'headers' does not exist on type 'Request<any>'

Property 'query' does not exist on type 'Request<any>'

Property 'body' does not exist on type 'Request<any>'

We have changed nothing on our end. I also noticed that my TS environment, when I open up the index.d.ts of @types/express shows the following errors:

`express-serve-static-core` has no exported member 'ParamsDictionary'

`express-serve-static-core` has no exported member 'Params'

`express-serve-static-core` has no exported member 'Params'

Some kind of breaking change seems to have been introduced, and I cannot seem to find any guidelines on how to address.
Issue 1:
Not sure if this is a bug report or a feature request, since I'm not sure what you guys had in mind for this method in the first place. However, the documentation states that it creates a copy of RequestOptions instance, and does not change the values of the instance on which it is called.

Current behavior

As per source, the method returns headers from one or the other object (this or options). That means that copy will have access to the same list as this or options. So, if the append method is called on copy.headers, the original instance it was copied from will also have the new version of headers, since they are using the same list.

Expected behavior

copy.headers is returned as a deep copy, so appending to copy.headers doesn't affect this.headers or options.headers. So, instead of returning this.headers, merge should return new Headers(this.headers) (same goes for options, if present).

Reproduction of the problem

EDIT: plunker here

Let's say we have custom BaseRequestOptions object globally available, that appends a custom base-customheader, and are provided through DI as Request options. Let's say we also have a CustomHttp service, that needs to append another custom header when its methods are called.

export class CustomHttp extends Http {

constructor(protected _backend: XHRBackend,
protected _defaultOptions: RequestOptions,
private _customService: CustomService) {

super(_backend, _defaultOptions);
}
get(url: string, options?: RequestOptionsArgs): Observable<Response> {
return customLogicBeforeReq.call(this, super.get, url, options);
}
// code...
}

function customLogicBeforeReq(func, url, options?){
let reqOpts = this._defaultOptions.merge(options);
reqOpts.headers.append("x-custom", "from custom service");
// code...
return func.call(this, url, reqOpts);
}

After appending to reqOpts, this._defaultOptions will also have that header appended (or options, if available). That means that for each request made with this service (without providing the options object), a new x-custom header will be appended. So, after 5 requests, this._defaultOptions will have an x-custom entry which is an array of 5 "from custom service" values. The expected behaviour would be that it only has one base-custom header, and none of x-custom.

Angular version: 2.0.0

Issue 2:
When headers or search is present on both the base options and the to be merged options, the to be merged options overwrite, rather than combine with the base options.

This makes things like setting a default Content-Type while providing headers for other purposes impossible.

https://github.com/angular/angular/blob/master/modules/angular2/src/http/base_request_options.ts#L94-L97

Headers should be able to merge with each other, overwriting on a per header basis.

The same problem applies to search params. I suppose it could apply to other things, but method, body and url are all strings at this time.
Issue 1:
I'm sorry if this is a stupid question but I'm stuck. I need to respond to a click on a line-number inside the atom-text-editor and I can't figure out how to do it. The dom shadow gets in my way for everything I try.

A simple $('.line-number') gets zero matches when the dom shadow is enabled. I can match on the atom-text-editor element but nothing inside. I read the package update doc and it just refers to $(window) which doesn't help.

This is a bit of a duplicate from .https://discuss.atom.io/t/events-from-elements-inside-shadow-dom/14119.

Issue 2:
If you open PHP files that start with <!DOCTYPE html>, atom selects HTML as language. It should be PHP.
Issue 1:
Consider the following example:

trait Foo {
fn foo(&self);
fn bar(&self) where Self: Bar;
}

trait Bar {
}

struct Baz;

impl Foo for Baz {
fn foo(&self) {}
}

The example produces the following error:

<anon>:11:1: 13:2 error: not all trait items implemented, missing: `bar` [E0046]
<anon>:11 impl Foo for Baz {
<anon>:12 fn foo(&self) {}
<anon>:13 }

However, Baz doesn’t implement Bar, and presumably it shouldn’t be required to implement bar when implementing Foo.

Regards,

Ivan

Issue 2:
There is a curious case with where clauses where sometimes we can show that a method in an impl could not possibly be called. This is because the impl has more precise information than the trait. Here is an example:

trait MyTrait<T> {
fn method(&self, t: &T) where T : Eq;
}

struct Foo;
struct Bar; // note that `Bar` does not derive `Eq`

impl MyTrait<Bar> for Foo {
fn method(&self, t: &T) where Bar : Eq { // <-- `Bar : Eq` cannot be satisfied!
}
}

We should permit the method body to be omitted in such a case. As a workaround, once #20020 is fixed, I imagine it would be possible to write an impl like this:

impl MyTrait<Bar> for Foo {
fn method(&self, t: &T) { // no where clause at all
panic!("Bar : Eq could not be satisfied");
}
}

However, it is unfortunate to require that of the user. For one thing, perhaps it happens later that an impl of Eq is added for Bar -- now we have this method hanging around that will panic. It'd be nice to detect that statically.

The plan then would be to permit:

impl MyTrait<Bar> for Foo {
fn method(&self, t: &T); // <-- no body or where clauses needed
}

This serves as a declaration that you believe this method could never be called. At trans time, we will generate a body that simply does the equivalent of panic!("unsatisfiable methodmethodinvoked").

I plan to open an amendment to the where clause RFC describing this particular case.
Issue 1:
Just updated my Visual Studio Code to 0.10.10. It not longer highlights JavaScript keywords like function, let, const, yield, etc.

Details:

OS: Linux Mint 17.3 64 bit

Code: 0.10.10 64 bit

Issue 2:
0.10.10 (Feburary build) has a regression is that the following JavaScript keywords are no longer highlighted in the Dark Visual Studio & Light Visual Studio themes:

var let const function get set class interface module namespace

This only affects JavaScript (not TypeScript).

The workaround if to switch to the Dark+ Default and Light+ theme.

Note that there are other colorizing issues open, not caused by this regression: e.g. 'import' and 'from'. See microsoft/TypeScript-TmLanguage#37