WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Challenge Name

Clone an Element Using jQuery

Issue Description

When I finish my code,it shows ok, but when I click the button of "Run tests", it appears different.

Browser Information

Browser Name, Version: chrome 51.0.2704.103 m

Operating System: win10

Mobile, Desktop, or Tablet: Desktop

Your Code

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target2, #target5").clone().appendTo("#left-well");
});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

Screenshot

Issue 2:
Challenge Waypoint: Clone an Element Using jQuery has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36.

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

Issue

I believe I've found bug in the phone simulation in Waypoint: Clone an Element Using jQuery:

I entered the code to clone target5 and append it to left-well, and now I see three target5 buttons in the phone simulator. FCC says my code is correct and advances me to the next challenge. The following challenges also show three target5 buttons:

Waypoint: Target the Parent of an Element Using jQuery

Waypoint: Target the Children of an Element Using jQuery

@qualitymanifest confirms this issue on his Linux box.

My code:

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
Issue 1:
The websocket functionality from std/ws is awesome. However, when writing code that targets deno and browser, it doesn't fare as well. Wondering if RT should provide a browser compatible version that can be wrapped by std/ws or vice versa.

This would allow us to have it both ways, and I for one am sold on it.

Issue 2:
Is this an intended behavior? I expected these properties to be filled with the actual file name and path.

$ deno run --allow-read http://danoweb.site/stat_test.ts test.txt
Downloading http://danoweb.site/stat_test.ts
Compiling http://danoweb.site/stat_test.ts
stat null null
lstat null null

stat_test.ts looks like this:

try {
const stat = Deno.statSync(Deno.args[1]);
console.log("stat", stat.name, stat.path);
const lstat = Deno.lstatSync(Deno.args[1]);
console.log("lstat", lstat.name, lstat.path);
} catch (e) {
console.error("specified file not found");
}

test code is also available at: https://danoweb.site/stat_test.ts?mode=edit
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

win_chocolatey

ANSIBLE VERSION

$ ansible --version
ansible 2.3.0 (devel 01436cf186) last updated 2017/02/21 12:05:34 (GMT -500)
config file =
configured module search path = Default w/o overrides

CONFIGURATION

Ansible configuration from git clone

OS / ENVIRONMENT

Control host macOS 10.12.3

Managed host Windows 7

SUMMARY

Attempting to upgrade powershell4 to powershell5 using the win_chocolatey module.

STEPS TO REPRODUCE

- name: install powershell5
win_chocolatey:
name: '{{ item }}'
state: 'present'
with_items:
- "powershell"
register: check_powershell5
when: "{{ ansible_PSVersionTable.Major|int < 5 }}"
tags: chocolatey

EXPECTED RESULTS

Upgrade/install of powershell5

ACTUAL RESULTS

Ansible/win_chocolatey error out.

https://gist.github.com/basictheprogram/018789574e04104932c002777e5a3a76

Issue 2:
As an alternative solution to bug #8904
Issue 1:
Consider the following equivalent definitions of a function and the benchmarking

mutable struct Agent
R::Float64
V::Float64
end

initi(n) = Agent.(1., zeros(n))
f1(arr) = mean((a->cis(getproperty(a, :R))).(arr))
f2(arr) = mean(cis.(getproperty.(arr,:R)))
agents = initi(10000)
fcompose = @benchmark f1($agents)
fchain = @benchmark f2($agents)
judge(median(fcompose), median(fchain))

The output of the judge is this-

BenchmarkTools.TrialJudgement:
time: -71.13% => improvement (5.00% tolerance)
memory: -49.99% => improvement (1.00% tolerance)

Shouldn't both have equivalent performance? From what I understand, the chained version iterates through the array multiple times, whereas the composed version doesn't. Is this an expected thing? If so, then won't everyone just use for loops or maps instead?

Version Info

Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
JULIA_REVISE_WORKER_ONLY = 1

Issue 2:
Consider two implementations of the same function

julia> function foo2(T, c, f)
d = T.(c)
return sum(f .* d)
end
foo2 (generic function with 2 methods)

julia> bar2(T, c, f) = sum(f .* T.(c))
bar2 (generic function with 3 methods)

bar2 seems like it is just better,

it avoids creating the intermidairy variable, so allows the broadcase to fuse,

and indeed with a plain vector it is:

julia> @btime foo2(Float32, [0.1,0.2], [1.0,2.0]);
473.802 ns (9 allocations: 512 bytes)

julia> @btime bar2(Float32, [0.1,0.2], [1.0,2.0]);
369.920 ns (8 allocations: 416 bytes)

But with a StaticArray foo2 is much better.

julia> @btime foo2(Float32, @SVector[0.1,0.2], @SVector[1.0,2.0]);
0.031 ns (0 allocations: 0 bytes)

julia> @btime bar2(Float32, @SVector[0.1,0.2], @SVector[1.0,2.0]);
946.536 ns (22 allocations: 528 bytes)

I think what is happening is that something about foo2 is constant fold-able for StaticArrays.

and that bar2 isn't.

Those number were taken on 1.5., but i saw similar on master
Issue 1:
Keith Donald opened SPR-9051 and commented

When a @ContextConfiguration test class references a config class missing a @Configuration annotation, @Bean dependencies are wired successfully but the bean lifecycle is not applied (no init methods are invoked, for example). Adding the missing @Configuration annotation solves the problem, however the problem and solution isn't obvious since wiring/injection appeared to work.

It would be better if an integration test failed-fast if you reference a config class with no @Configuration annotation.

Affects: 3.1 GA

Issue Links:

#14114 Missing @Configuration annotation will cause transaction not working ("is duplicated by")

#14061 Document @Bean 'lite' mode and annotated classes in the reference manual

#15002 Log warning when using inner-bean referenced without @Configuration

#15599 Throw exception when @ContextConfiguration#classes are not annotated with @Configuration

#14037 Improve documentation for @Bean 'lite' mode and annotated class support in the TestContext Framework ("is superseded by")

Referenced from: commits 500a4dd, 2017b24, 1cec0f9, 78c6d70

0 votes, 5 watchers

Issue 2:
Chris Beams opened SPR-6922 and commented

also add public int[] batchUpdate(String sql, List<Object[]> batchArgs) as well as any other methods that exist only on SimpleJdbcTemplate at that time.

Issue Links:

#11106 Merge JdbcTemplate and SimpleJdbcTemplate, deprecate SimpleJdbcTemplate ("is duplicated by")

#13873 Deprecate SimpleJdbcTestUtils in favor of JdbcTestUtils

#16514 Delete deprecated SimpleJdbc* classes

#13630 Provide JdbcTemplate in abstract transactional base classes in the TestContext framework

Referenced from: commits f5f738f
Issue 1:
Windows 10 Version 1909

Windows build number: [Version 10.0.18363.476]
PowerToys version: 0.14
PowerToy module for which you are reporting the bug (if applicable): FanzyZones

Simply opening Store apps

Expect these apps to remember their last location/FanzyZone and open there.

All Store apps open in the same FanzyZone area even though they have been moved into other areas. Only seems to happen with Store apps.

Screenshots

Issue 2:
Environment

Windows build number: [Version 10.0.17134.1069]
PowerToys version: 0.13.0
PowerToy module for which you are reporting the bug (if applicable): FancyZone

Steps to reproduce

Have a two-monitor setup

Primary monitor: on the left, 3840x2160, 150% scaling

Secondary monitor: on the right, 1920x1080, 100% scaling

Choose (for example) three columns layout on primary screen

Set space around zones below 6

Drag Emacs window to rightmost column (adjacent to secondary screen)

Expected behavior

Emacs window is placed in rightmost column.

Actual behavior

Emacs window spans across rightmost column and secondary screen.

Note: A Powerpoint window gets placed in the rightmost column only, as expected.

Screenshots
Issue 1:
Question

How to get a list of all cached files in deno?

If not

Maybe we need something like deno cache --info to get the cached paths as well as the download dates?

Issue 2:
I'd like to take on this, if this proposal seems like a good idea to you

A valid question came to me today. What if I'm not using a module I imported remotely anymore and want to delete it from my disk?

Asking someone to delete it in their DENO_DIR folder seems like quite a hassle, and is not really intuitive. A module manager in Deno (not a package manager) that allow the users to list and delete the modules available for import in their system seems like a good idea.

(Couple crazy ideas regarding a CLI app and an API to allow interop with possible GUI implementations to be discussed)
Issue 1:
If you create a MenuItem with a role it will not respect the enabled property.

electronMenu.append(new electron.remote.MenuItem({
type: 'normal',
label: 'Cut',
role: 'cut',
accelerator: 'CommandOrControl+X',
enabled: false, // this does nothing
}));

You can see that the Cut menu item is still enabled:

Here it is without the role:

electronMenu.append(new electron.remote.MenuItem({
type: 'normal',
label: 'Cut',
accelerator: 'CommandOrControl+X',
enabled: false, // this works now
}));

And you can see it is now disabled:

- Electron version: 1.3.3
- Operating system: macOS

Issue 2:
Run the below and notice that the Select All menu item is enabled even though enabled: false is specified. Remove role: 'selectall' and it's correctly disabled. The enabled option should override the role. I need this so I can enable some role based menu items only in some cases.

const electron = require('electron');

electron.app.on('ready', () => {
electron.Menu.setApplicationMenu(electron.Menu.buildFromTemplate([{
submenu: [{
label: 'Select All',
role: 'selectall',
enabled: false
}]
}]));

(new electron.BrowserWindow())
.loadURL(`https://github.com`);
});

Electron version: 1.2.0

Operating system: OS X 10.11.5
Issue 1:
I have the following navbar on my website:

<div class="navbar navbar-inverse">
<div class="navbar-inner">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="index.php">Home</a></li>
<li><a href="one2one.php">One to One</a></li>
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown" id="dLabel">Classes <b class="caret"></b></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<li><a href="classes.php">Classes</a></li>
<li><a href="online-yoga-classes.php">Online Yoga Classes</a></li>
<li><a href="free-downloads.php">Free Downloads</a></li>
<li><a href="gallery.php">Gallery</a></li>
</ul>
</li>
<li><a href="retreats-workshops.php">Retreats &amp; Workshops</a></li>
<li><a href="pregnancy-mums.php">Pregnancy Mums</a></li>
<li><a href="treatments.php">Treatments</a></li>
<li><a href="about-me.php">About Me</a></li>
<li><a href="testimonials.php">Testimonials</a></li>
<li><a href="about-yoga.php">About Yoga</a></li>
</ul>
</div>
</div>
</div>

The issue I am having is that when the navbar is collapsed on mobile devices (it works correctly when collapsed using a desktop computer), the links within my dropdown do not navigate to the new page, selecting a link within the dropdown just closes the dropdown as though the click is being registered on the dropdown parent li, not the link itself.

As I say when the navbar is expanded, or is collapsed on a device which uses a mouse the link navigates to the new page correctly, it seems to be when I press a link using a touch device that I have issues, you can view the problem live on http://yogarelax.harpoonmysite.com

Any assistance with this would be much appreciated, thank you

Issue 2:
I had a project using more or less the same menu and it worked. Found out it was using Bootstrap version 2.3.1. Compared version 2.3.2 and 2.3.1 and found that in version 2.3.2 there's this snippet of CSS that reads:

.dropdown-backdrop {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: 990;
}

and the rule: position: fixed; seems to cause all the problems.

I still don't undertand the point of the markup that is added by the bootstrap dropdown plugin:

<div class="dropdown-backdrop"></div>

So I've temporarily fixed the bug on my end by adding a style to override the style causing the problem:

.dropdown-backdrop {
position: static;
}

To me this looks like a bug introduced from version 2.3.1 to 2.3.2. Maybe I'm wrong. If someone could explain the purpose of the empty div, it would be helpful.
Issue 1:
I apologise if I'm using this incorrectly, but I could not find anything relevant in the issue list, and as far as I can work out, this really should work.

If I pass an array with unicode objects (instead of 'string' objects) into savetxt, it bombs out, trying to run the unicode object through the 'asbytes' function.

It does not change things if the dtype of the array is 'U' instead of 'S'.

>>> import numpy as np; np.savetxt('test.csv', np.array(['this wörks', u'this dös not']), fmt=['%s'])
---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-5-6a3125624190> in <module>()
----> 1 import numpy as np; np.savetxt('test.csv', np.array(['this wörks', u'this dös not']), fmt=['%s'])
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal not in range(128)'

Issue 2:
numpy.savetxt uses under the hood the numpy.compat.py3k.asbytes utility function. In python 3 and above the function forces decoding of the data into 'latin1'.

File "C:\Python33\lib\site-packages\numpy\lib\npyio.py", line 1073, in savetxt
fh.write(asbytes(format % tuple(row) + newline))
File "C:\Python33\lib\site-packages\numpy\compat\py3k.py", line 31, in asbytes
return str(s).encode('latin1')
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2009' in position 12: ordinal not in range(256)

It would be better to allow overriding the default encoding for the function (or even default it to 'utf-8').
Issue 1:
Instead of going to the "NEXT" challenge when we click the green box "Submit and go to the next challenge", the page should go to the "NEXT UNSOLVED" challenge.

I know this is really a cherry on the cake type of issue but in major updates such as the last one, it is really annoying to go through each challenge even though I've already completed it.

Issue 2:
Hello,

I would like to suggest that FCC defaults to "Go to next undone challenge" once a challenge is done.

Mentioned it on Gitter and some people liked it.

Thank you for all the great work.
Issue 1:
These links are misrepresented as /#.

Repro:

http://localhost:4200/guide/setup

Examine the link within "You should develop locally on your own machine ... "

It is http://localhost:4200/#why-locally which yields doc-not-found

Should be http://localhost:4200/guide/setup.html#why-locally.

Issue 2:
Hi, I just updated my starter project to angular2.0.0@beta.1 and when running in development, it was okay, but when I run production build and serve it, it showed error as follows:

It's not happening in angular2.0.0@beta.0

you can reproduce it by cloning my repo using repro-mangle-error branch, then run gulp serve-build

I'm using SystemJS builder for bundling, thanks!
Issue 1:
by quaggy:

What steps will reproduce the problem?
1. Compile bug.go
2. Run bug

What is the expected output?
EOF EOF

What do you see instead?
<nil> EOF

What is your $GOOS? $GOARCH?
darwin and amd64

Which revision are you using?
7d7941a84d46 tip

Please provide any additional information below.

f() always returns nil. g() always returns the err from h(). Both functions
should behave the same way.

func f() (err os.Error) {
if n, err := h(); err == nil {
fmt.Println(n)
}
return
}

func g() (err os.Error) {
n, err := h()
if err == nil {
fmt.Println(n)
}
return
}

Attachments:

bug.go (332 bytes)

Issue 2:
by mikaelbrg:

When building my project using "go build" (or "go install"), I get
an error "main.init: nosplit stack overflow":

C:\Users\mikaelbe\work\tigerslam>go build robot
# robot
main.init: nosplit stack overflow
120 guaranteed after split check in main.init
112 on entry to robot/web.init
104 on entry to robot/controller.init
96 on entry to robot/slam.init
88 on entry to robot/slam/hector.init
80 on entry to hectormapping/map/mapimages.init
72 on entry to hectormapping/map/maprep.init
64 on entry to hectormapping/map/mapproccontainer.init
56 on entry to hectormapping/scanmatcher.init
48 on entry to hectormapping/map/gridmap/occbase.init
40 on entry to hectormapping/map/gridmap/base.init
32 on entry to hectormapping/map/gridmap.init
24 on entry to github.com/skelterjohn/go%2ematrix.init
16 on entry to math.init
8 on entry to math.init┬À1
0 on entry to runtime.panicindex
-8 on entry to runtime.morestack00
runtime.main: nosplit stack overflow
120 guaranteed after split check in runtime.main
128 after runtime.main uses -8
120 on entry to main.init
112 on entry to robot/web.init
104 on entry to robot/controller.init
96 on entry to robot/slam.init
88 on entry to robot/slam/hector.init
80 on entry to hectormapping/map/mapimages.init
72 on entry to hectormapping/map/maprep.init
64 on entry to hectormapping/map/mapproccontainer.init
56 on entry to hectormapping/scanmatcher.init
48 on entry to hectormapping/map/gridmap/occbase.init
40 on entry to hectormapping/map/gridmap/base.init
32 on entry to hectormapping/map/gridmap.init
24 on entry to github.com/skelterjohn/go%2ematrix.init
16 on entry to math.init
8 on entry to math.init┬À1
0 on entry to runtime.panicindex
-8 on entry to runtime.morestack00

("┬À1" is displayed like that in the console. I don't know if this is a
hint at where the bug might arise.)

This happened after I moved some code to create more logical and reusable packages. If I
remove all references to the "hectormapping" package, the program will build
successfully. "go build hectormapping" also works.

What steps will reproduce the problem?
1. Build "robot" package: https://bitbucket.org/mikaelbe/tigerslam

What is the expected output?
robot executable

Which compiler are you using (5g, 6g, 8g, gccgo)?
?

Which operating system are you using?
Windows 7 (x64)

Which version are you using? (run 'go version')
go version go1.0.3
Issue 1:
There are four IDCount functions:

THREE.GeometryIdCount()

THREE.MaterialIdCount()

THREE.Object3DIdCount()

THREE.TextureIdCount()

They are part of the API (can be accessed via THREE.GeometryIdCount() etc. ) so they should be documented.

The question is, where? Should they get a separate page, or be included in the Geometry, Material... pages?

Issue 2:
When loading the website on an Android phone with a Adreno 300 series, get a weird black glitch in diffuse textures causing black flickering. I am using MeshPhongMaterial for the meshes with point lights.

The same is reproduced in the threejs examples from the website, which i am giving links for instead of a jsfiddle.

https://threejs.org/examples/?q=texture#webgl_materials_texture_filters

https://threejs.org/examples/?q=texture#webgl_materials_texture_manualmipmap

Screenshots -

From my application -

In my project, the floor outside which is a Plane Geometry does not have this issue. Only the mesh I have loaded using the SEA3d loader.

Strangely there was no issue when viewing the anisotropy example too.

It is a major issue because a lot of phones use Adreno 300 series GPU's.

Three.js version

Dev

r81

...

Browser

[] All of them

Chrome

Firefox

Internet Explorer

OS

[] All of them

Windows

Linux

Android

IOS

Hardware Requirements (graphics card, VR Device, ...)

Tested with the following android devices. Work fine on other GPU series.

Oneplus X - Adreno 330

Moto G3 - Adreno 306

Moto G2 - Adreno 305
Issue 1:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Part of our dependency tree:

@client/root@2.3.5
├─┬ @client/base@2.3.15
│ └─┬ @client/app-files@1.8.8
│ └─┬ pixel@0.0.4
│ └─┬ pixel-util@0.0.2
│ └── mime@1.6.0
├── mime@2.2.0

But importing pixel fails, because it actually ends up with mime@2.2.0 (which is incompatible).

If the current behavior is a bug, please provide the steps to reproduce.

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.

Node 9.5.0

webpack-dev-middleware@1.12.2

webpack-dev-middleware@2.0.5

webpack-dev-server@2.11.1

webpack-inline-source-plugin@0.0.9

webpack-log@1.1.2

webpack-manifest-plugin@1.3.2

webpack-plugin@0.1.2

webpack-plugin@0.11.4

webpack-plugin@0.4.6

webpack-plugin@0.6.2

webpack-plugin@1.2.0

webpack-plugin@2.30.1

webpack-sources@1.1.0

webpack-sources@1.1.0 deduped

webpack-sources@1.1.0 deduped

webpack-sources@1.1.0 deduped

webpack-visualizer-plugin@0.1.11

webpack@3.11.0

Issue 2:
This would be a nice feature for the debug view. :)
Issue 1:
Environment

Windows build number: 10.0.18362.175
Windows Terminal version (if applicable): 0.2.1715.0

German Windows installation and keyboard.

Steps to reproduce

Try to type an at-sign by pressing ALTGR+Q. Doesn't matter if it's Cmd, Ubuntu or PowerShell

Expected behavior

@ sign is printed to console

Actual behavior

Ubuntu: Clears part of the previous executed commands

Cmd: prints just a q

PowerShell: no output

Issue 2:
Your Windows build number:

10.0.18362.86

What you're doing and what's happening:

Trying to enter the @ sign on a Swedish keyboard in a PowerShell console using Alt Gr + 2.

See animated gif:

What's wrong / what should be happening instead:

Windows terminal shows digit-argument instead of outputting the @ sign as expected.

It's possible this is a PEBKAC error somehow but the problem doesn't show up in the normal PowerShell console... 😓