WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
This has happened in the last 5 html exercises.

These are lines 42 to 46.

flea treatment

thunder

other cats

If I click within the last LI's text my insertion point appears within the LI tag itself. If I then press a letter key the letter will appear after the closing OL tag. After pressing backspace to delete the error the code editor behaves normally.

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:
Challenge http://www.freecodecamp.com/challenges/waypoint-add-images-to-your-website has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

When I complete the challenge it takes me to this challenge: http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-shift

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-add-images-to-your-website has an issue. When you complete it and click the button to go to the next challenge, it redirects you to: http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-push

Instead it should redirect you to the correct waypoint which is: http://www.freecodecamp.com/challenges/waypoint-size-your-images
Issue 1:
It is very common use case when user wants to add reference of module file (external file) by dragging and dropping it to editor. But right now VScode is not supporting this feature. When user try to drag a file from the explorer window it is opening that file in the editor.

In the below screen shout you can compare Visual studio and VS code action for drag and drop.

Issue 2:
VSCode Version: 1.1.1

OS Version: Windows 10

Steps to Reproduce:

if we have two or more functions with the same name, there is no syntax highlighting error !!

is this feature not yet available in the language services or I miss samething here ?
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

13.1.2

What operating system are you using?

Windows

Operating System Version

Windows 7 SP1 incl. latest patches

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Calling webContents.print() with the absolute minimal set of options and an existing device as returned from contents.getPrinters() should add the document to be printed to the printer's print queue and subsequently trigger the printing of said document.

const options = {
silent: true,
deviceName: 'My-Printer',
}
await win.webContents.print(options);

Actual Behavior

The call to win.webContents.print just silently returns, indicating success, yet no document is ever added to the printer's print queue and no document is ever printed.

Testcase Gist URL

No response

Additional Information

The printer in question is working fine with every other application, so it is definitely not a printer or driver or operating system issue.

Issue 2:
Can the documentation clearly state how to comprehensively prevent the user from accessing the dev tools.

remove from top menu

remove toggle code when app starts up so it's initially hidden

What else must I do? Perhaps this should be in the documentation.

I read in a few places about handling the --remote-debugging-port command line argument. I read that if it exists, the app should just immediately exit.

There might be some other ways that the user can access it. What are they? It would be great if the documentation stated it for security reasons.
Issue 1:
Excuse me If this question is duplicate, i can not find solution in issues. I want to set Image to background.

Issue 2:
From @Tolriq: It's not possible to setLog to higher than Error.

So no way to disable some logs in release mode, like

E/Glide: class com.bumptech.glide.load.engine.GlideException: Received null model
E/Glide: class com.bumptech.glide.load.engine.GlideException: Failed to load resource

That in some cases are perfectly normal (user supplied ressources, no need to do a precheck for existence as Glide does it already, simplifies code).

Did I miss something ?

Strange related thing searching again before pressing comment:

// Only log at more verbose log levels if the user has set a fallback drawable, because
// fallback Drawables indicate the user expects null models occasionally.
int logLevel = getFallbackDrawable() == null ? Log.WARN : Log.DEBUG;
onLoadFailed(new GlideException("Received null model"), logLevel);

Yet the errors are at Error level in logcat. (And I use listeners to handle errors not fallback drawable but not important).
Issue 1:
The issue is related to using the 'navbar' in smalll devices (320x480).

The 'navbar-fixed-top' cannot be scrolled down to the bottom of 'navbar-collapse' div.

This can easily be reproduced in the jumbotron sample page: http://getbootstrap.com/examples/jumbotron/.

After fitting the page to a small device (320x480), when you press on the 'navbar-toggle' button, then the scroll bar cannot reach the "email" & "password" elements.

Thanks!

Issue 2:
I have a navbar with 8 links. I've noticed that when I activate the navbar on a phone and view it in landscape, it doesn't scroll all the way down to display the last link.

A live example of this can be shown on the 'Jumbotron' example template. When I drop down the menu I can't view the whole login form.
Issue 1:
After I upgrade to alpha version 34 of the router I get errors related to the routeConfig object at runtime:

\router_2.RouteConfig is not a function

Running against alpha.33 does not produce the same error.

The typings seem ok, so this is a runtime error when using version 34

Issue 2:
im getting router_1.RouteConfig is not a function on 34 but when i switch back to 33 its okay. Is there a change in name?
Issue 1:
Bug

jnp.flatnonzero and jnp.argwhere mention fill_value option in documentation, but calling with fill_value leads to 'unexpected keyword argument' error.

In the below code, the last two lines will raise errors due to unexpected argument fill_value

import jax.numpy as jnp
d = jnp.array([True,False,True])
jnp.nonzero(d, size=20, fill_value=100)
jnp.flatnonzero(d, size=20, fill_value=100)
jnp.argwhere(d, size=20, fill_value=100)

Why?

The implementation of jnp.flatnonzero and jnp.argwhere link back to jnp.nonzero but the fill_value argument wasn't threaded through (just the size argument).

The threading is there in jnp.where and other cases, just those two have been missed as far as I've noticed.

Fix

Pull request:

#8926

just threads the argument

Images

Issue 2:
Please:

Check for duplicate issues.

I'm not sure if there's an elegant way to fix this. I noticed that when I differentiate jnp.linalg.norm when the input is 0, the gradient is nan. I believe this is due to the vanishing denominator in the derivative. However, the numerator compensates for this in reality and the gradient should be 0. For example,

import jax
import jax.numpy as jnp

x = jnp.array([1., 2., 3.])
jax.grad(jnp.linalg.norm)(x - x) #[nan nan nan]

l2_dist_sq = lambda x, y: jnp.linalg.norm(x - y) ** 2
jax.grad(l2_dist_sq)(x, x) #[nan nan nan]

# This should be the same as l2_dist_sq
oracle_l2_dist_sq = lambda x, y: (x - y).dot(x - y)
jax.grad(oracle_l2_dist_sq)(x, x) #[0 0 0]

Of course, I highly doubt jnp.linalg.norm is the only instance of this "bug", but I suspect this is a very commonly used function. It took me fairly long to deduce that my nans were coming from this gradient. I suppose a simple fix in this case would be something like

def norm(x, eps=1e-9):
norm_sq = x.dot(x)
return jnp.where(norm_sq < eps, 0, jnp.sqrt(norm_sq))

Having said that, perhaps there's a more conventional way of achieving this?
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

In the transition to Angular 4, AbstractControl documentation seems to be missing some functions.

Expected behavior

The documentation should match with https://v2.angular.io/docs/ts/latest/api/forms/index/AbstractControl-class.html

Minimal reproduction of the problem with instructions

Compare https://angular.io/docs/ts/latest/api/forms/index/AbstractControl-class.html with https://github.com/angular/angular/blob/4.0.0/packages/forms/src/model.ts

Angular version: 4.0

Moved from angular/angular.io#3454

Issue 2:
We have a library of components for angular that we are currently migrating to Angular 2. We have a container that injects content using ng-content. We would like to have a child component that injects the parent if you nest it inside of the parent, like so:

<parent>
<child></child>
</parent>

This works beautifully in angular 2. However, since are in the process of migration, we would like to use the ngUpgrade adapter for this. The dependency injection seems to fail if the parent and child are specified in an angular 1 context. Any insights on this issue? Is this something that is going to be supported in the ngUpgrade adapter?

I have a working plunker that illustrates the problem:

http://plnkr.co/edit/9qb6ZK9SpJyrWoJDEFEj?p=preview

In both cases, the template includes a parent with the child transcluded/projected into it. The child tries to inject the parent and then calls a function on it when you press the button. The ng2 example works, but not the ng1/ngUpgrade one.
Issue 1:
I was expecting to download a portable package (.whl or .egg) and use it as such:

import sys; sys.path.append( '/extensions/TensorFlow...win32.egg' )
import tensorflow # if this line doesn't work, the egg/whl is not portable.
# ...

when you say "provided binary packages" that just means I expect .pyd files within the egg or whl.

for an example of a portable egg, just look at pillow ;)

Issue 2:
I was excited to see tensorflow, but as many other users, we are on Windows, would be nice to see this support happen. Will you accept Windows port contributions?

In the meantime, Microsoft recently released their Deep Learning toolkit which scales on multiple machines with GPUs for both Linux and Windows. https://github.com/Microsoft/CNTK
Issue 1:
Hello!

I noticed that in my Google Chrome and IE Bootstrap's labels and badges contain strange padding. In Firefox all looks OK.

Please find attached a screenshot of official Bootstrap web site in my browsers.

P.S. I thought there is some problem with my computer or OS (Windows 7, 1366x769 resolution), but anyway I'd like to share this issue

Alex

Issue 2:
The "Helvetica Neue" font is somehow causing problems in Bootstrap in any (tested) browser other than Firefox.

Removing this font has no (apparent) negative effect on either Firefox or IE9, except that the latter one has its boldness problem resolved.

I've made a screenshot composition to show the differences between browsers: http://i39.tinypic.com/keyybs.png

Its rather odd that Firefox is the only (tested) browser that is not affected?
Issue 1:
It seems in certain cases that a machine's environment will include an array.

We seem to see this when using Assetic to compile a less file with the less compiler.

/*
[exception] 500 | Internal Server Error | ErrorException
[message] Notice: Array to string conversion in /[edited]/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 141
[1] ErrorException: Notice: Array to string conversion in /[edited]/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 141
at n/a
in /[edited]/vendor/symfony/symfony/src/Symfony/Component/Process/Process.php line 141

at Symfony\Component\HttpKernel\Debug\ErrorHandler-&gt;handle(&#039;8&#039;, &#039;Array to string conversion&#039;

Offending line of code is here:

$this->env = array();
foreach ($env as $key => $value) {
$this->env[(binary) $key] = (binary) $value;
}

The problem happens on the casting of $value to (binary).

I'll try to submit a patch.

(Note we were using Symfony 2.2, but it's probably in master as well)

Issue 2:
Line 138-142 of Process.php:

if (null !== $env) {
$this->env = array();
foreach ($env as $key => $value) {
$this->env[(binary) $key] = (binary) $value;
}

In certain circumstances, ProcessBuilder.php will grab $_ENV and merge it into the array passed into Process.php

ProcessBuilder.php line 148-154:

if ($this->inheritEnv) {
$env = $this->env ? $this->env + $_ENV : null;
} else {
$env = $this->env;
}

return new Process($script, $this->cwd, $env, $this->stdin, $this->timeout, $options);

The problem is that there are certain cases where $_ENV['something'] can be an array.

Right now in one of our environments, I'm seeing $_ENV['argv'] as an array, for example. This happens during Less to CSS generation.
Issue 1:
.container {

padding-right: 15px;

padding-left: 15px;

margin-right: auto;

margin-left: auto;

}

.container:before, #1

.container:after {

display: table;

content: " ";

}

.container:after { #2

clear: both;

}

.container:before, DUPLICATE OF #1

.container:after {

display: table;

content: " ";

}

.container:after { DUPLICATE OF #2

clear: both;

}

.row {

margin-right: -15px;

margin-left: -15px;

}

.row:before, #3

.row:after {

display: table;

content: " ";

}

.row:after { #4

clear: both;

}

.row:before, DUPLICATE OF #3

.row:after {

display: table;

content: " ";

}

.row:after { DUPLICATE OF #4

clear: both;

}

Issue 2:
show on bootstrap.css

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L581

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L723

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L743

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2023

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2433

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2617

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2637

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3032

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3296

https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3453
Issue 1:
System information (version)

OpenCV => 4.5.2

Operating System / Platform => Ubuntu 20.04

Tested with Python 3.8.5

Detailed description

I have been working with VideoCapture, everything working fine until I tested my code with an older video in .mpg format. In that video occurs the following:

When doing cap.set(cv2.CAP_PROP_POS_FRAMES, 0), the frame is not set to the first frame, but rather to a posterior frame. The same happens for other intermediate frames, where it seems to be skipping some frames.

When doing cap.read() it works properly (beginning from the frame 0 and reading all the intermediate frames).

When re-encoding the video with ffmpeg, doing cap.set(cv2.CAP_PROP_POS_FRAMES, 0) works properly (i.e. doesn't skip initial frames). If the video codec is copied (-c:v copy), it follows the same wrong behaviour.

I think it might be related to the IBP frame encoding, positioning to the closes "I" frame, but I believe it should be considered a bug if the intention of cap.set() is to position specifically to the frame of interest.

2001_10_20_19_00_trim.mpg.zip

EDIT: Link to the video was in the middle of the text.

Steps to reproduce

cap = cv2.VideoCapture('2001_10_20_19_00_trim.mpg')
# Works as expected
_, frame = cap.read()
cv2.imwrite('0_read.jpg', frame)
# Returns a posterior frame
cap.set(cv2.CAP_PROP_POS_FRAMES, 0)
_, frame = cap.read()
cv2.imwrite('0_set.jpg', frame)

Issue submission checklist

I report the issue, it's not a question

I checked the problem with documentation, FAQ, open issues,

forum.opencv.org, Stack Overflow, etc and have not found solution

I updated to latest OpenCV version and the issue is still there

There is reproducer code and related data files: videos, images, onnx, etc

Issue 2:
Example and confirmed effect:

http://answers.opencv.org/question/162781/videocaptureset-cap_prop_pos_frames-framenumber-not-exact-in-opencv-32-with-ffmpeg/
Issue 1:
When transpiling js files with the new allowJs param and jsx:"preserve", all js files are output with jsx extention. Here is my tsconfig.json:

{
"compilerOptions": {
"module": "es2015",
"allowJs": true,
"target": "es2015",
"jsx": "preserve"
}
}

Issue 2:
With the change to allow JSX syntax in JavaScript files by default ( #6562 ), the compiler now emits all JavaScript files with a .jsx extension if the compiler option "jsx" is set to "preserve".
Issue 1:
It is an easy task and had provided the answer in the description.

However it doesn't give me a tick.

Waypoint: Style the HTML Body Element

Now let's start fresh and talk about CSS inheritance.

Every HTML page has a body element.

We can prove that the body element exists here by giving it a background-color of black.

We can do this by adding the following to our style element:

body {

background-color: black;

}

My Code:

<style>
body {
background-color: black;
}
</style>

Issue 2:
I've done what was expected but still can't move on. The code is correct since it was simply changing the color black to its hex code. Please help.
Issue 1:
I want to use glide in a library and in my application.

I know that I have to extends my glide module in the library from "LibraryGlideModule" but when I use that and build my library project this classes not generated "GlideRequest, GlideApp" . is there any example of using LibraryGlideModule in glide 4.x?

thanks.

Issue 2:
I have to load multiple GIF in Activity, it works fine but getting continuously this message Called reconfigure on a bitmap that is in use! This may cause graphical corruption!

i am using GIF from Drawable folder

this new gradle version i am using right now compile 'com.github.bumptech.glide:glide:4.0.0-RC0'

this is how m calling image to set using my holder.

Glide.with(mContext).load(arrayList.get(position))
.apply(new RequestOptions()
.placeholder(R.mipmap.ic_launcher)
.diskCacheStrategy(DiskCacheStrategy.AUTOMATIC))

.into(holder.ivSponser);
Issue 1:
Version

2.5.17

Reproduction link

https://jsfiddle.net/Herteby/r2nb09eg/

Steps to reproduce

As the title says, or just look at the fiddle :)

What is expected?

The slots should be rendered properly.

The combination of v-for and "fragment" should return an Array of VNodes.

What is actually happening?

The slots render as "undefined"

It returns an Array of Arrays of Vnodes.

The problem seems to be that the result becomes an Array of Arrays of VNodes. Seems like it ought to be flattened.

For some reason, if you add an extra element as a sibling, it fixes it.

Issue 2:
there is a code, which clones the array element

var self = this, item, arr = [];
for(var i in self.items){
arr.push(self.items[i]);
if( i == idx){
item = arr.slice(idx, idx+1);
arr.push( item.name ? item : item[0] );
}
}
self.items = arr;

the code works correctly, but the template glues source element and copied
Issue 1:
To save you time, I've already checked appropriate closures of tags as well as quotes

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

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

Which led to the following bug:

You can find this as the main file in osxauditor.py.
Issue 1:
It looks like when using the JSONLoader in r74, the first named bone in an exported Maya scene gets a duplicate of all the geometry.

Here's a JSFiddle that shows my current code and the issue.

In this example I have 2 boxes. Each box is bound to a single bone, and each of those bones has keyframes that animate the position and rotation. There is another bone that has no geometry bound to it, and has keyframes that make no change to its position or rotation.

The stationary bone is called "joint1" in Maya. The bones that actually have geometry bound to them are called "joint2" and "joint3". If I were to rename the stationary bone "joint4" the result would be a duplicate of both boxes attached to the currently animating "joint2".

Issue 2:
Is your feature request related to a problem? Please describe.

It would be nice to have HDR environment maps mapped onto flat planes or circles that are flatted near the bottom centre.

Describe the solution you'd like

It should be possible to set a vertical ground height and also a bias parameter that determines how much the sphere is flatted to this ground plane.

Demo:

https://twitter.com/repalash/status/1494270181027508224

Describe alternatives you've considered

Modelling a flatted sphere, but that is a lot of work.
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.2.1831.0

Steps to reproduce

Fire up WSL

Run vim

Enter some Chinese characters, they seems to be fine.

Press Esc, press o to insert a new line above

Start typeing some English letter...

And the Chinese characters become smaller than normal size...

If I type English letter beneath, It works OK

Expected behavior

Chinese characters should stay the same size no matter I type something above or beneath it

Actual behavior

Chinese characters turn into smaller size if I type English above the line.

Issue 2:
Environment

Windows Terminal (Preview)
Version: 0.3.2171.0

Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Docker for Windows
Version 2.1.0.1(37199)
Channel stable

h2 database image running in docker

Steps to reproduce

Start Windows Terminal (Preview) with PowerShell as a default environment

Open Linux Ubuntu tab as a second tab

In the second tab execute ls command

Close the second tab

In the first tab execute docker ps command

Expected behavior

Docker list of running images is shown

Actual behavior

CONTAINER ID is printed in the console and then the terminal window closes.

Logs attached: Terminal.zip
Issue 1:

Issue 2:
It would be great if I could login with a GitHub account and have Atom store my settings either in Dropbox, or GitHub as a repository, or in some way that is easy to access and maybe even sync them across all my installations of Atom so that when I download a new package, it is downloaded everywhere. Another suggestion is to be able to manually export a .atomconfig JSON file that I could just import to Atom at any point to configure settings, install packages, change themes, etc.

I think having the first would be more important for most people, but for anyone who is offline and for anyone who likes to keep their own backups in other places, the manual settings export is really useful.

If this sounds like a good idea to Atom contributors and consumers, I'd like to help out with the PR to make this happen.