WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
For some reason the emulator keeps rendering multiple instances once I start writing code.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-line-up-form-elements-responsively-with-bootstrap has an issue.

I think the problem is happening on all Waypoint pages; the device right side of the screen where the CatPhotoApp page displays the information is being displayed duplicated;

Another point is that the HTML / CSS code is not completely displayed when the page is loaded, it is necessary to click or edit the code so that the code from the previous lesson is displayed correctly;
Issue 1:
Vue.js version

2.0.0-rc.3

Reproduction Link

https://jsfiddle.net/eft0d9qe/

Steps to reproduce

Click 'Show Child' button, then 'Close', then 'Show Child' button again, then 'Close' again

What is Expected?

The Child component should be hidden for the second time.

What is actually happening?

TypeError: o.fn is not a function error is throwed in the console, the closeChild event handler is not triggered.

Issue 2:
Vue.js version

2.0.0-rc.3

Reproduction Link

http://codepen.io/analog-nico/pen/dXBRBG

Steps to reproduce

Click the link "Open popup using v-if"

A badly designed popup opens

Click the "Close" link

For this first time the popup closes successfully

Click the link "Open popup using v-if" again

The popup opens again

Click the "Close" link

What is Expected?

Again, the popup closes successfully

What is actually happening?

Vue fails to call an internal function that got missing.

The closePopupUsingVIf function attached to the "Close" link's click event never gets called.

The popup does not close.

For reference the codepen contains the exact same implementation of the popup with the only difference that it uses v-show instead of v-if to show/hide the popup. v-show works perfectly.
Issue 1:
Sorry, don't know where i should report this issue.

If i click on http://twitter.github.io/bootstrap/ on the download button, i'll get an error each time.

https://codeload.github.com/twbs/bootstrap/zip/v3.0.0-rc1-dist seems not to be available. Message; "Not Found"

Regards, Authanram

Issue 2:
I don't know if this is the correct place to post this (in issues as its not really a software issue), but the download on the main GitHub page is broken.

If you head to http://twitter.github.io/bootstrap and click the download button it takes you to the following page to get the zip:

https://codeload.github.com/twbs/bootstrap/zip/v3.0.0-rc1-dist

All the page says us "not found" instead of serving the download. This is also apparently the case for the other downloads.

I use Composer in PHP to download packages and the bootstrap package keeps failing on:

"Could not fetch https://api.github.com/repos/twitter/bootstrap/zipball/d991ef2ab1b4d156c7e5d33d052d66f8eaafc460, enter your GitHub credentials to access private repos"

It doesn't this for all branches, so the private repo message is irrelevant.
Issue 1:
julia> type Foo
"""some docs"""
Foo() = new()
end

help?> Foo
search: Foo floor pointer_from_objref OverflowError RoundFromZero FileMonitor

No documentation found.

Summary:

type Foo <: Any

cc @MichaelHatherly

Issue 2:
If you save the following code to a file and include() it, neither ?f nor ?g will print any documentation. Removing the if fixes the problem. This is annoying when only adding a function depending on the Julia version, notably when extending a Base function which may not exist in older releases.

if false
"""
Do something funny.
"""
f(x) = 1
else
"""
Do something sad.
"""
g(x) = 1
end
Issue 1:
In 3.0.3 the .table-striped class is now overriding the rows' contextual classes like .danger. In prior versions this did not occur.

Here's an example where all three rows should be highlighted, but because table-striped is specified, the alternating rows do not get highlighted with the row specific classes:

<table class="table table-striped">
<tr class="danger">
<td>incorrect</td>
<td>is not drawn as "danger"</td>
</tr>
<tr class="danger">
<td>correct</td>
<td>is highlighted</td>
</tr>
<tr class="warning">
<td>incorrect</td>
<td>is not drawn as "warning"</td>
</tr>
</table>

Issue 2:
i have table with class .table-striped. it has 3 rows with tr.danger. only the middle one is red, the other two are default color.

when i remove .table-striped, it works correctly
Issue 1:
Issue description

torch yields a RuntimeError when assigning a vector to an empty set of indices in an array.

Code example

import torch
x = torch.zeros((2, 2))

mask = torch.tensor([True, True])
print(x[mask])
x[mask] = torch.tensor([1., 2.])

mask = torch.tensor([True, False])
print(x[mask])
x[mask] = torch.tensor([1., 2.])

mask = torch.tensor([False, True])
print(x[mask])
x[mask] = torch.tensor([1., 2.])

mask = torch.tensor([False, False])
print(x[mask])
x[mask] = torch.tensor([1., 2.])

outputs

tensor([[0., 0.],
[0., 0.]])
tensor([[1., 2.]])
tensor([[1., 2.]])
tensor([])
Traceback (most recent call last):
File "bug.py", line 18, in <module>
x[mask] = torch.tensor([1., 2.])
RuntimeError: The expanded size of the tensor (0) must match the existing size (2) at non-singleton dimension 0

System Info

$ python collect_env.py
Collecting environment information...
PyTorch version: 0.4.1
Is debug build: No
CUDA used to build PyTorch: None

OS: Mac OSX 10.13.6
GCC version: Could not collect
CMake version: version 3.11.4

Python version: 3.6
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA

Versions of relevant libraries:
[pip] Could not collect
[conda] torch 0.4.1 <pip>
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
$ pip --version
pip 18.0 from /anaconda3/lib/python3.6/site-packages/pip (python 3.6)

Current workaround

Current workaround involves using an if-statement conditioned on mask.any(), i.e.:

if mask.any(): x[mask] = torch.tensor([1., 2.])

Issue 2:
In numpy, indexing with a list of booleans is equivalent to indexing with a boolean array, which means it performs masking.

In PyTorch, the list of booleans is cast to a long tensor.

I believe this discrepancy should be fixed.

a = torch.rand(3, 3)
print(a)

0.1041 0.6888 0.7988
0.9398 0.9151 0.7642
0.5340 0.4715 0.8128
[torch.FloatTensor of size (3,3)]

print(a[[True, False, False]]

0.9398 0.9151 0.7642
0.1041 0.6888 0.7988
0.1041 0.6888 0.7988
[torch.FloatTensor of size (3,3)]

aa = a.numpy()
print(aa[[True, False, False]])
array([[0.10411686, 0.6887991 , 0.7988465 ]], dtype=float32)
Issue 1:
Apparently, the axis argument of np.average can be a tuple:

In [20]: np.average([[1.,2],[3,4]],axis=(0,1))
Out[20]: 2.5

but this case is not documented:

In [21]: np.average?
Signature: np.average(a, axis=None, weights=None, returned=False)
Docstring:
Compute the weighted average along the specified axis.

Parameters
----------
a : array_like
Array containing data to be averaged. If `a` is not an array, a
conversion is attempted.
axis : int, optional
Axis along which to average `a`. If `None`, averaging is done over
the flattened array.
..

Issue 2:
Docs foraverage indicate that axis may be an int but does not indicate that it may be a tuple. the tuple format does work

Docs: https://docs.scipy.org/doc/numpy/reference/generated/numpy.average.html

>>> np.average(np.ones((4,4,4)), axis=(1,2))
array([ 1., 1., 1., 1.])
Issue 1:
I'm submitting a ... (check one with "x")

[x ] feature request

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

For instance, while building a recursive component such as a tree view, I would like to be able to reuse ng-content at least twice in the same template: Once for the node, and once for the recursive child nodes created in a ngFor loop.

Please tell us about your environment:

Angular version: 2.0.X

Browser: [all ]

Language: [all]

Node (for AoT issues): node --version =

Issue 2:
Hi,

So I have a use case and cant seem to find a good way around it.

I have a route that looks like this:

new Route({
path: '/:language/manage-assets/:path',
component: Assets,
name: 'PortalAssets',
data: {id: 'portal-assets'}
})

And my :path parameter looks like this:

folder1/subfolder1/

The path updates and works fine however if I reload the browser the redirect kicks in instead of keeping me in the same component.

It only works if my path looks like:

folder1

but fails and redirects if its:

folder1/subfolder1/

if this is not an issue with the Redirect route then could we possible have support for something like /:path** or /:path? or /:path.*
Issue 1:
Summary of the new feature/enhancement

When remove a window from its zone it will keep the size and dimensions from the zone.

This feature will save time when users had to remove windows from the zones and have to resize them.

I would like to see in FancyZones a kind of option like: "Restore windows previous size and dimensions when removed from zones"

Proposed technical implementation details (optional)

Images to illustrate the "issue"

Original window size:

Windows into zones:

Middle window removed from its zone:

Expected window behavior:

Issue 2:
📝 Provide a description of the new feature

Ability to play a sound when mic is muted/unmuted (like discord), providing us audio feedback to know the status of the mic

What is the expected behavior of the proposed feature? What is the scenario this would be used?

Would be amazing if we could specify which sound to play by providing an mp3 file.

If this functionality is considered, please allow us to provide 2 mp3 files. 1 for mute audio feedback and the other for the unmute audio feedback

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Issue 1:
Description of the new feature/enhancement

When I use make to build application via ssh, I get screen fulls of text going through. Sometimes in that text I get warnings which my eye catches.

It is very difficult to read the text as even if I attempt to scroll up the text keeps on moving forward due to make generating more output to stdout.

I tried to press on the scroll lock and expected that the scroll bar would be locked, however this did not happen.

Could there be a feature where I could lock the scroll bar ? (it doesn't have to be the scroll lock key)

Proposed technical implementation details (optional)

Issue 2:
See also #408
Issue 1:
Hey guys!

I hope you are doing great. I faced an error while working with jax.linalg which I don't understand how to fix or which part it's related to. I mentioned the error and the details in the other issue in the neural tangents repo which I'm referencing here again.

Can you please what can I do?

Thanks!

Another avenue to investigate is to try running this python program

from scipy import linalg
# if the above works, next try
# from jax.scipy import linalg
import numpy as np

A = np.random.normal(size=(1000, 1000))
A = A + A.T + np.eye(1000) * 1000

C = linalg.cho_factor(A)

to see if the issue is with scipy/lapack/xla.

Originally posted by @romanngg in google/neural-tangents#152 (comment)

Issue 2:
The following code is reduced from cloudhan/jax-windows-builder#12 and https://stackoverflow.com/questions/71977751/jax-linear-solve-issues/71991833?noredirect=1 . Open the link to see the context.

import jax
import numpy as np
import jaxlib.mlir.ir as ir

ctx = jax.interpreters.mlir.make_ir_context()
with ctx:
ir.DenseIntElementsAttr.get(np.arange(10, -1, -1), type=ir.IndexType.get())

causes

Traceback (most recent call last):
File "D:\tmp.py", line 7, in <module>
ir.DenseIntElementsAttr.get(np.arange(10, -1, -1), type=ir.IndexType.get())
ValueError: DenseElementsAttr could not be constructed from the given buffer. This may mean that the Python buffer layout does not match that MLIR expected layout and is a bug.

The reason is simple that on windows

>>> np.array([0]).dtype
dtype('int32')
>>> np.arange(10,-1,-1).dtype
dtype('int32')

while on linux

>>> np.array([0]).dtype
dtype('int64')
>>> np.arange(10,-1,-1).dtype
dtype('int64')
Issue 1:
ℹ Computer information

PowerToys version: v0.23.2

PowerToy Utility: FancyZones

Running PowerToys as Admin: yes

Windows build number: Windows 10 Version 1903 (OS Build 18362.1016)

📝 Provide detailed reproduction steps (if any)

Open FancyZones editor

Create a custom layout (e.g. just two zones, arranged simply side by side with their edges touching each other)

Set Space around zones to something bigger than 0 (e.g. 250)

Activate Show space around zones

✔️ Expected result

The set space should be applied to the zones of the custom layout.

❌ Actual result

No spacing is applied to the custom layouts.

📷 Screenshots

Works with templates layouts ✔
Doesn't work with custom layouts ❌

Don't show space around zones

Show space around zones

Issue 2:
Disabling the "space around zones" setting does not work for custom templates. Even when editing the "Selected layout" with Space around zone disabled, the duplicated template has it enabled again.
Issue 1:
When you feed scipy.stats.poisson a mu <= 0 (invalid according to http://en.wikipedia.org/wiki/Poisson_distribution) the outcome is that pmf or logpmf evaluate to nan for all data. Using the Wikipedia definition, nonpositive mu should just raise an invalid value error. This is what I'd probably expect. Using a more general definition, poisson with zero variance could be a dirac delta distribution or something, but I don't think this generality is expected in scipy stats.

Edit: because it's a discrete not continuous distribution the dirac delta wouldn't come into play for a generalized pmf, it would just have probability 1 for count=0 and probability 0 for all other counts.

Issue 2:
The Poisson PMF is well defined when mu is 0, it should be 0 for all k>0 and 1 for k==0.

But poisson.pmf fails (returns NaN) because it computes logpmf and then exponentiates:

def _logpmf(self, k, mu):
Pk = k*log(mu)-gamln(k+1) - mu
return Pk

def _pmf(self, k, mu):
return exp(self._logpmf(k, mu))

>>> scipy.stats.poisson.pmf(0, 0)
nan
>>> scipy.stats.poisson.pmf(1, 0)
nan
>>> mu = 0
>>> k = 1
>>> scipy.stats.poisson.pmf(k, mu)
nan
>>> mu ** k * math.exp(-mu) / math.factorial(k)
0.0
>>> k = 0
>>> mu ** k * math.exp(-mu) / math.factorial(k)
1.0
Issue 1:
Describe what you were doing when the bug occurred:

Start profiling app, record and reload page

going through profilers commits

crush

Please do not remove the text below this line

DevTools version: 4.0.6-a39d9c3

Call stack: at d (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:5745)

at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:8527)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:275553)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55891)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62940)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99536)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84256)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81286)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25364

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)

Component stack: in bi

in div

in div

in div

in Ir

in Unknown

in n

in Unknown

in div

in div

in Wa

in ce

in be

in So

in Vl

Issue 2:
Please do not remove the text below this line

DevTools version: 4.0.2-2bcc6c6

Call stack: at d (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:5744)

at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:8526)

at Ai (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:274200)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)

Component stack: in Ai

in div

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ua

in le

in ve

in ko

in Fl
Issue 1:
I'm building something similar to search lookahead, and with each change event to a text input I want to fire off a new set of axios get requests. When the change event occurs, I need to cancel all uncompleted axios requests from the last change event (as they will no longer be needed)... and fire of a new set of axios requests. Is this possible?

Issue 2:
Is there a simple way to expose the XHR object so that it can be aborted, or is this better off being handled somehow in a response interceptor?
Issue 1:
Hi,

I have one of my pages inside a subfolder called admin. I called it index, so that it would be rendered when I navigate to the root of the route in the browser. I would like routing in the browser to work like this: localhost/admin/ returns my page. However, instead I do get a 404.

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

Expected Behavior

I named my page inside of the admin folder index.js. I was expecting that navigating to /admin/ in a browser would lead to my page, just like navigating to the root of my project renders index.js located in pages folder.

Current Behavior

A 404 is returned instead of my page being rendered. Calling my page dashboard and navigating to admin/dashboard works fine though. I would like to see similar behavior to the index page located inside of the pages folder.

Steps to Reproduce (for bugs)

create a subfolder inside your pages folder

put any page there and call it index.js

navigate in your browser to localhost/subfolder/

Context

Your Environment

Tech
Version

next
5.7.1

node
8.2.1

OS
Mac OS

browser
Chrome

etc

Issue 2:
Feature request

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

Yes. I have an user case that makes sense have two or more dinamic routes in the same folder.

A clear and concise description of what you want and what your use case is.

When we use dynamic routes we cant use different slug names for the same dynamic path as it throws the error 'You cannot use different slug names for the same dynamic path.'.

Example:

This works:

This dont (throws the error on yarn dev):

The difference between both is that on second example I have 2 dinamic paths inside [city] ([valuezone] and [neighborhood]) and on first I have only [valuezone].

The point is that the valuezone is our bussiness name to a group of neighborhoods and we have some neighborhoods under our valuezone and some out of it. So, we have 2 types of url.

The neighborhood is under a mapped valuezone

/comprar/[realtyType]/[state]/[city]/[valuezone]/[neighborhood]

The neighborhood wont have a mapped valuezone

/comprar/[realtyType]/[state]/[city]/[neighborhood]

To archieve the behavior I need to add both [valuezone] and [neighborhood] under [city], but this throws the error I describe above.

Describe the solution you'd like

It would be awesome if we could use thing like the second image, as we redirect especifying the path and the variables we want, that dont leaves doubts of what path we want to render.

Describe alternatives you've considered

In my especific case if I just change the order of [neighborhood] and [valuezone] the problem is solved, but this only works because I have only one conditional path, in other user cases I cant see an solution with friendly URL.
Issue 1:
Compiling the code below:

function identity<T>(arg: T): T {
return arg;
}

var myIdentity: <T>(arg: T) => string = identity;

var a = myIdentity<string>("string")
var b = myIdentity<number>(100)

outputs the following javascript:

function identity(arg) {
return arg;
}
var myIdentity = identity;
var a = myIdentity("string");
var b = myIdentity(100);

I put the type signature of the variable myIdentity as <T>(arg: T) => string

where the return type is string instead of T (that I expect to be correct).

I expected the Typescript compiler to show an error because the return types

don't match. However, the code compiled without any error.

Specs:

Mac OS X 10.11

tsc --version outputs:

message TS6029: Version 1.6.2

Issue 2:
The following code snippet compiles without type errors though the type variable T is constrained to string type.

function foo1(f: (s: string) => string)
{
return f("hello world");
}

function foo2(f: (s: number) => number)
{
return f(123);
}

function genericBar<T extends string>(arg: T): T
{
return arg;
}

var x1 = foo1(genericBar);
var x2 = foo2(genericBar);

Non generic version nonGenericBar works as expected.

function nonGenericBar(arg: string)
{
return arg;
}

var y1 = foo1(nonGenericBar);
var y2 = foo2(nonGenericBar); // Type error

Of course, genericBar function is useless because constraining a type variable to a primitive type can be replaced by a non generic function like nonGenericBar. However, the behaviour is somewhat unexpected and inconsistent.
Issue 1:

Issue 2:
📝 Advanced Keyboard mappings

If the power toy could support the ability to make it so that holding a key would treat it as a modifier, but tapping it treated it as a keypress, I would switch from Mac OS. I'm not kidding.

An example for me as a user of vi bindings everywhere is that I remap my capslock key to act as ctrl when I hold it, or esc when I tap it. This reduces pinky finger strain on me to an unbelievable degree as I am normally reaching or curling it to hit esc or ctrl, but with this mapping, it is most comfortable to just rest my pinky on A and shift one key over for ctrl or esc.

Another example (for programmers, which I think are probably a large portion of the target audience for keyboard remapping...) is "Space cadet shift", which is where holding left shift acts as normal, but tapping it produces an opening parenthesis, while tapping right shift produces a closing paren.

Another option I would like is a hyper key (ctrl-alt-shift-win) option for mapping, but I think that collides with other windows keyboard stuff, so maybe it's a pain.

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Issue 1:
In my application, I would like to restrict the movement and rotation to XZ plane. I don't think TransformControls allows for that as of now. I can add the logic if someone can guide me on the easiest way to add that logic.

Issue 2:
I wish there was an easy way to prevent users from moving an object about a particular axis. For example, it would be nice to say

var controls = new THREE.TransformControls(camera, domElement);
controls.disableAxis('x');

Then the transformControls would have draggable arrows pointing in the Y and Z directions, but not the X direction. Thanks for your consideration!