WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting

Current behavior

I tried to run the live example and it brakes

https://angular.io/docs/ts/latest/cookbook/dynamic-component-loader.html

I downloaded the archive, ran it localy same issue

Error: (SystemJS) XHR error loading http://localhost:3000/app/ad-banner.component.js
ZoneDelegate.prototype.invokeTask@http://localhost:3000/node_modules/zone.js/dist/zone.js:424:17
Zone.prototype.runTask@http://localhost:3000/node_modules/zone.js/dist/zone.js:191:28
ZoneTask/this.invoke@http://localhost:3000/node_modules/zone.js/dist/zone.js:486:28

Error loading http://localhost:3000/app/ad-banner.component.js as "./ad-banner.component" from http://localhost:3000/app/app.module.js
Trace de la pile :
(SystemJS) XHR error loading http://localhost:3000/app/ad-banner.component.js
ZoneDelegate.prototype.invokeTask@http://localhost:3000/node_modules/zone.js/dist/zone.js:424:17
Zone.prototype.runTask@http://localhost:3000/node_modules/zone.js/dist/zone.js:191:28
ZoneTask/this.invoke@http://localhost:3000/node_modules/zone.js/dist/zone.js:486:28

Error loading http://localhost:3000/app/ad-banner.component.js as "./ad-banner.component" from http://localhost:3000/app/app.module.js

I injected the code in my angular 4 project, it works partialy, only the first AD is displayed

that line does not update the template data all the time

(<AdComponent>componentRef.instance).data = adItem.data;

Expected behavior

I expect it to run and display the four adds

Minimal reproduction of the problem with instructions

just check the page in the url above and run the live example or download/install/run it

What is the motivation / use case for changing the behavior?

?

Please tell us about your environment:

Windows 7, Wamp 3, Google Crhome

Angular version: 2.0.X

check the live example

**Browser: Chrome 58

Language: see live example

Issue 2:
I'm submitting a...

[x] Bug report

I believe the image is blocked simply because of its filename. A rename might fix this.

Current behavior

https://angular.io/guide/dynamic-component-loader

The "final ad banner" at the bottom doesn't render on some browsers when using an ad blocker

Expected behavior

The example should be shown when using an ad blocker.

Minimal reproduction of the problem with instructions

Install https://chrome.google.com/webstore/detail/adblock/gighmmpiobklfepjocnamgkkbiglidom/related?hl=en-US

Visit https://angular.io/guide/dynamic-component-loader

Scroll to the bottom of the page
Issue 1:
Challenge Create a Set of Checkboxes has an issue.

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

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

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back. " src="https://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality">Loving</label>
<lable><input type="checkbox" name="personality">Loving</lable>
<label><input type="checkbox" name="personaliy">Loving</label>

<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>

Issue 2:
Challenge Name

All

Issue Description

After passing a few exercises, the display on the phone on the right hand side of the code doesn't work (phone remains blank). Also, the text under run text where it normally shows which criteria have to be met for the code to be accepted is also missing. These issues are fixed after multiple refreshes of the page.

Browser Information

Same error appears on both Google Chrome (Version 52.0.2743.116 m), and Microsoft Edge (25.10586.0.0). Haven't tried any other browsers.

Browser Name, Version: Google Chrome (Version 52.0.2743.116 m) and Microsoft Edge (25.10586.0.0)

Operating System: Windows 10 Version 1511

Mobile, Desktop, or Tablet: Desktop

Screenshot

http://imgur.com/yV3BNJ1
Issue 1:
From this discourse thread. Here is what I was trying:

macro color_output(enabled, block)
quote
prev_color = Base.have_color
eval(Base, :(have_color = $$enabled))
$(esc(block))
eval(Base, :(have_color = $prev_color))
end
end

In a nested quotenode, you can use $$var to access var in the outer scope, and I'd expect to be able to use $var to access one level up, but it doesn't seem to work.

Issue 2:
As seen in:

macro m()
quote
x = "x"
quote
$x
end
end
end

julia> @m()
ERROR: UndefVarError: x not defined

Tested on today's master and 0.4.6.

...
Issue 1:
According to Tensorflow 2.0, many important functions are deprecated, such as:

tf.layers.dense()

tf.layers.dropout()

tf.layers.flatten()

tf.layers.batch_normalization()

...

Since these functions are very widely used, and also very helpful for building complicted models, would you please keep them in the future versions?

Issue 2:
System information

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

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

TensorFlow installed from (source or binary): source

TensorFlow version (use command below): ('v1.8.0-4015-g44a1f241bc', '1.9.0-rc0')

Python version: 2.7.15rc1

Bazel version (if compiling from source): 0.15.0

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

CUDA/cuDNN version: 9.0.176/7.0.5

GPU model and memory: GeForce GTX 1080 Ti (11GB)

Exact command to reproduce:

import tensorflow as tf
with tf.Session() as sess:
movie_bin = tf.read_file('5205acf1-3d30b48d.mov')
movie = tf.contrib.ffmpeg.decode_video(movie_bin)
movie_ev = movie.eval()
print("****", len(movie_ev))

Describe the problem

The tf.contrib.ffmpeg.decode_video op throws an error and causes a core dump.

My ffmpeg version (apt get install ffmpeg on ubuntu 18.04):

ffmpeg version 3.4.2-2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu2)
configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100

Source code / logs

2018-06-27 09:15:22.489692: F tensorflow/contrib/ffmpeg/default/ffmpeg_lib.cc:405] Non-OK-status: ReadInfoFile(stderr_filename, width, height, frames) status: Unknown: Not enough video info returned by FFmpeg [0, 720, 1280, 3]Could not read FFmpeg stderr file: /tmp/tmp_file_tensorflow_3_ILW8Ht.err
Aborted (core dumped)
Issue 1:
Electron version: 1.6.2

Operating system: macOS 10.12.4 (Sierra)

Expected behavior

A disabled submenu should be grayed out and not open when enabled: false is set. See Finder > Go > Recent Folder if the user has clicked Clear Menu in that submenu.

Actual behavior

Submenu is not grayed out and can be opened

How to reproduce

const template = [
{
label: 'File',
submenu: [
{
label: 'Recent Files',
enabled: false,
submenu: [
{
label: 'test'
}
]
}
]
}
]

const menu = Menu.buildFromTemplate(template)
Menu.setApplicationMenu(menu)

Issue 2:
When I set ´enabled: false´ to a menu entry which has a submenu with more entries, it doesn't get disabled.

Platform: Mac OS X
Issue 1:
jax.experimental.ode.odeint takes a function func(y, t, *args). A known limitation of odeint is that func cannot close over any tensors, but this information is missing from the documentation.

Issue 2:
Mypy requires public API of a package being exported using either __all__ or import ... as ... syntax.

python3 -m venv env
source env/bin/activate
pip install -U pip mypy jax
python -m mypy --install-types --non-interactive --strict -c "from jax import numpy as jnp; xs = jnp.zeros(1)"

<string>:1: error: Module has no attribute "zeros"
Found 1 error in 1 file (checked 1 source file)

Currently, projects that are using jax need to set--no-implicit-reexport=False.

There are some references on that matter.

PEP-0484

Modules and variables imported into the stub are not considered exported from the stub unless the import uses the import ... as ... form or the equivalent from ... import ... as ... form.

However, as an exception to the previous bullet, all objects imported into a stub using from ... import * are considered exported.

MyPy docs

--no-implicit-reexport always treated as enabled for stub files.

Is it possible to add a little boilerplate to __init__.py to make it working? :-)
Issue 1:
Describe what you were doing when the bug occurred:

While i am using profilter, i got the following error.

Please do not remove the text below this line

DevTools version: 4.7.0-23309eb38

Call stack: at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:164902)

at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163849)

at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)

at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)

at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)

at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)

at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:166664)

at Ul (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:342328)

at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:62450)

at tl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:71793)

Component stack: at Ul (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:342099)

at div

at div

at div

at Co (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:263571)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:366677

at n (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:276314)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:278724

at div

at div

at Xi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:325177)

at Ge (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:207026)

at sn (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:216342)

at Va (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:293773)

at us (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:371869)

Issue 2:
Describe what you were doing when the bug occurred:

I did profiling on a list, that gets updated on each pagination api call.

Once the profiling was done, I moved around in the Profiler to view the Flamegraph

Moving to second capture, the Profiler crashed.

DevTools version: 4.6.0-6cceaeb67

Component stack: in ec
in div
in div
in div
in So
in Unknown
in n
in Unknown
in div
in div
in rl
in Ze
in fn
in Ga
in _s
Issue 1:
In the opencv installation process on Ubuntu 16.04, Error occurs after "make" command is typed in. The report is in the following:

/home/kangyun/Software/opencv/opencv_contrib-master/modules/xfeatures2d/test/test_features2d.cpp:51:10: fatal error: features2d/test/test_detectors_regression.impl.hpp: No such file or directory

#include "features2d/test/test_detectors_regression.impl.hpp"

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/build.make:75: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_features2d.cpp.o' failed

make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_features2d.cpp.o] Error 1

CMakeFiles/Makefile2:5806: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all' failed

make[1]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all] Error 2

Makefile:162: recipe for target 'all' failed

make: *** [all] Error 2

Would you please give me a hand? Thanks very much!

Issue 2:
make -j8 error

Scanning dependencies of target opencv_test_ximgproc

/home/zkl/zklcode/code/pycv/opencv_contrib/modules/xfeatures2d/test/test_rotation_and_scale_invariance.cpp:7:82: fatal error: features2d/test/test_detectors_invariance.impl.hpp: No such file or directory

compilation terminated.

Scanning dependencies of target opencv_perf_xfeatures2d

modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/build.make:110: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_rotation_and_scale_invariance.cpp.o' failed

make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_rotation_and_scale_invariance.cpp.o] Error 1

make[2]: *** Waiting for unfinished jobs....

Scanning dependencies of target opencv_test_aruco

[ 86%] Building CXX object modules/aruco/CMakeFiles/opencv_test_aruco.dir/test/test_misc.cpp.o

CMakeFiles/Makefile2:14780: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all' failed

make[1]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....
Issue 1:
Electron version: 1.4.15 - 1.6.3

Operating system: Windows

In our app if the users are maximizing the app which is a frameless window, few pixels around the borders go out of screen, if i inspect the width of the window it says 1930 on a 1920 resolution, same for height.

Issue 2:
Electron version: 1.4.15

Operating system: Windows 10

Actual behavior

Height is oversized by exactly 8px consistently (taskbar is set to small icons).

How to reproduce

https://github.com/adi518/electron-frameless-maximize-test
Issue 1:
Is it possible to use typeof type query operator to get function's return type?

Issue 2:
It would be helpful if the typeof keyword were changed to support more complex expressions, such as function calls.

Example

Given the following AngularJS service definition:

module myApp {
function myApiFactory($http: HttpSvc) {
return {
getSetting: (key: string) => $http.get(etc),
};
}
angular.service("myApi", myApiFactory);
}

It would be good if the following statement were possible:

export type MyApi = typeof myApiFactory();

Explanation

Since the function is a factory rather than the actual service, this type alias would other components to have a strongly-typed reference to the service. Though this example relates to AngularJS' service factory and dependency injection, this particular change would not be solely for AngularJS support.

Existing solutions

One option to resolve this issue is to explicitly define an interface for the service. However, this solution would require repeating the signature for all of the service's methods.

A workaround exists that relies on JavaScript's scoping rules to satisfy TypeScript's typeof keyword. However, it significantly reduces readability and clarity. An example:

if (false)
var obj = myApiFactory(null);
export type MyApi = typeof obj;
Issue 1:
When will an official build of TensorFlow for the latest release be available for use with OpenCL-enabled graphics cards? Should I fork a version and then hope to commit? Is this something the core team is interested in because I have a NVIDIA-enabled iMac that is >3 years old and I cannot accelerate my computation for different projects. What is possible within the next year?

Issue 2:
I understand TensorFlow only supports CUDA. What would need to be done to add in OpenCL support?
Issue 1:
As per golang-nuts:

I am trying to get vendoring working with submodules which is supposed to be working according to s/go15vender. The building part works fine but the "go get" part doesn't.

To reproduce I created a test repo by doing the following:

Created a test package and added a submodule via:

git submodule add https://github.com/dgrijalva/jwt-go vendor/github.com/dgrijalva/jwt-go

Committed everything.

Now, if I do:

GO15VENDOREXPERIMENT=1 go get github.com/StephanDollberg/govendorsubmodulestest

I get the error:

# cd .; git --git-dir=/$GOPATH/src/github.com/StephanDollberg/govendorsubmodulestest/.git submodule update --init --recursive
No submodule mapping found in .gitmodules for path 'vendor/github.com/dgrijalva/jwt-go'
package github.com/StephanDollberg/govendorsubmodulestest: exit status 1

The interesting thing is that if I do a go get -u after that it checks out the submodule correctly. Looking at the error and the source of the go command I think it has to do with --git-dir not working together with the submodule command.

I tested this on Windows, Mac OSX and Linux (all Intel 64bit) with go 1.5.1 and several git versions (2.3, 2.4, 2.5).

Issue 2:
The createCmd for the submodules fails. I have clarified upstream if this is expected to fail. The result is that it is expected to fail as it is currently in the code. The correct createCmd therefore would be:

createCmd: []string{"clone {repo} {dir}", "-C={dir} submodule update --init --recursive"}
Issue 1:
Hello,

I'm running atom on Linux and I figured out that multi-combination shortcuts issued within editor does not work anymore. Exemple: split: ctrl-k left works in atom but not if my caret is in the editor…

Issue 2:
I have this on Ubuntu 14.04.

When I use the following default keybindings '.workspace .editor': 'ctrl-k ctrl-u': 'editor:upper-case' and '.workspace .editor': 'ctrl-k ctrl-l': 'editor:lower-case', the second ctrl gets registered as a first key press. I have this with all bindings that have multiple ctrl's.

This is a recording of Keybinding resolver with atom --safe taken from ebbea64.

This is a recording of Keybinding resolver with atom --safe taken from b3c2417. (v0.120.0)

Here the keybindings work correct.
Issue 1:
Context:

Playwright Version:

NuGet: 1.17.3 (installed in the project)

microsoft.playwright.cli: 1.2.2 (from dotnet tool list -g)

Installed on machine: 1.17.1 (playwright -V)

Operating System: Windows

.NET version: .NET 6

Browser: All

Describe the bug

When PWDEBUG is set to 0, Playwright Inspector appears when tests are ran [incorrect behaviour, I believe].

When set to an empty string (PowerShell: $env:PWDEBUG='', then Inspector is not running [correct behaviour].

Solution:

Disable running Inspector when PWDEBUG environment variable is set to 0.

Update documentation.

Issue 2:
playwright/packages/playwright-core/src/utils/utils.ts

Line 324
in
c510819

const debugEnv = getFromENV('PWDEBUG') || '';

the docs say setting PWDEBUG to 1 enables the playwright inspector, so one would assume setting it to 0 disables it
Issue 1:
System information (version)

OpenCV => 4.0.1

Operating System / Platform => Windows 10 64bit

Compiler => Visual C++ 14.0

Detailed description

Hi, this is my first bug report,

I have tried to use this example code:

https://docs.opencv.org/3.4.3/db/da4/samples_2dnn_2text_detection_8cpp-example.html

It doesn't work well on my computer when trying to load images,

I tried replacing

if (parser.has("input"))
cap.open(parser.get<String>("input"));
else
cap.open(0);
...
...
...
cap >> frame;

with a simpler code:

frame = imread(parser.get<String>("input"), cv::IMREAD_COLOR);

and it worked. Before that the command cap >> frame did not load the image.

Steps to reproduce

Change these lines :

cap >> frame;
if (frame.empty())
{
waitKey();
break;
}

to this:

frame = imread(parser.get<String>("input"), cv::IMREAD_COLOR);

Issue 2:
Transferred from http://code.opencv.org/issues/3752

|| Vasili Gulevich on 2014-06-14 06:37
|| Priority: Normal
|| Affected: 2.4.9 (latest release)
|| Category: java bindings
|| Tracker: Bug
|| Difficulty:
|| PR:
|| Platform: Any / Any

BOW*Trainers are missing in Java API

Following functionality is missing in Java API:

* BOWTrainer
* BOWKMeansTrainer

"It is possible to port in Python, but Java automatic binding generation won't work":http://answers.opencv.org/question/34700/bowkmeanstrainer-in-python

Related questions:
http://answers.opencv.org/question/24444/developping-a-java-bag-of-words-implemetation/
http://answers.opencv.org/question/10961/bowtrainer-in-java-api/
http://answers.opencv.org/question/17537/train-kmeans-in-java-api-for-bow/

History

Poyan Nabati on 2015-03-09 12:30

Vasili Gulevich wrote:
> Following functionality is missing in Java API:
>
> * BOWTrainer
> * BOWKMeansTrainer
>
> "It is possible to port in Python, but Java automatic binding generation won't work":http://answers.opencv.org/question/34700/bowkmeanstrainer-in-python
>
> Related questions:
> http://answers.opencv.org/question/24444/developping-a-java-bag-of-words-implemetation/
> http://answers.opencv.org/question/10961/bowtrainer-in-java-api/
> http://answers.opencv.org/question/17537/train-kmeans-in-java-api-for-bow/

Any update on this?