WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Using Firefox 22.0 on a MacBookPro,

http://twitter.github.io/bootstrap/components/

The Scrollspy works, but when clicking on an actual item on the side nav,

Error console give this:

An empty string is passed to GetElementById()

cheers!

Issue 2:
You cannot access on any left-side menu link with Firefox.

Tested with Firefox 22.0 on Mac
Issue 1:
I've recently did a profile of my project, haven't done that in 4-5 months, since then three.js version has been upgraded several times. Currently on 0.132.2

So, profile shows up that getProgramCacheKey takes up close to 20% of the entire time:

For a bit more context, this is in the scope of the entire game, with particle simulation, IK, sound and a bunch of other stuff going on. Not just pure rendering. Here's a screenshot of what's being rendered:

Here's the WebGLRenderer.info:

If you have a look at the cache key computation code, there's a lot wrong there. It's building an array of strings, that's a lot of allocation, and then there's array.join() which results in another string being created. All of that, just to throw the result away in the end (since no new materials are created during profiling period).

I propose offering an override for the cache keys, or building keys in a way that avoids much of the allocation effort. Also, doing equality check on material against what's already cached can be done without materializing this "cache key" at all. I understand that it's "simple" to do what's currently being done, and I understand that doing what I propose is less easy, but we're talking about 20% of the CPU time being wasted on an application that's hardly pure rendering.

As an alternative - perhaps offer an override for cache key computation, something like "customComputeMaterialCacheKey", that would be dirty, but it would allow users like me to work around the issue.

Issue 2:
(*** This section is for bug reports and feature requests only. This is NOT a help site. Do not ask help questions here. If you need help, please use stackoverflow. ***)

Description of the problem

As far as I understand, UVs cannot currently be applied by polygon-vertex and must be applied directly to the vertex. This creates issues with UV-unwrapping objects because the object must be unwrapped into one 2-D mesh rather than being able to split it into multiple parts, and the seams must have duplicated vertices to avoid wrapping issues at the seams.

I'm not 100% sure if it's possible to use two separate buffers for vertices and UVs and use separate indices to both in the Geometry Face, or if we are limited to only using one index for every buffer. It's not as big of an issue for things like normals, but it becomes an issue with UVs. If it's not possible to generate geometry buffers like so, then the loaders need to duplicate the vertices if there is data applied per face rather than per vertex, which is gonna be a large and annoying change, but a necessary one if there is no other option. Wanted to open a dialogue about this and determine the best way to approach this issue.

Three.js version

Dev

r82

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

Linux

Android

IOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
Electron Version:

4.0.^

Operating System:

Ubuntu + Xfce 18.04 x64

hi, when i want to change my keyboard layout with "Alt+Shift" shortcut. in electron apps like

notable

post man

this test

one menu will open ( check screenshots ).

i don't have any shortcut on my app or OS for this action.

Screenshots

Additional Information

please read this issue : issue

Issue 2:
I'm reluctantly convinced that Deno will replace Node as the most used server-side javascript technology. Are there any plans in place already for the development of an Electron that runs on deno?

If not, my suggestion is that such development is inevitable and I'd like to see it started early versus late. This is controversial, but mark my words: Electron, or something like it will be running on Deno sooner than you think.

This is the best video I've watched, so far, that compares node to deno:

https://www.youtube.com/watch?v=mzfw9TwBiQc

Watch it, and give it some thought.
Issue 1:
I have a router definition like this:

const routes: Routes = [
{
"path": "member",
"loadChildren": "app/member/member.module#MemberModule"
},
{
"path": "",
"loadChildren": "app/video/video.module#VideoModule"
},
{
"path": "**",
"redirectTo": ""
}
]

MemberRouter definition like this:

const routes: Routes = [
{
"path": "order",
"component": MemberComponent,
"loadChildren": "app/member/order/order.module#OrderModule"
},
{
"path": "",
"component": MemberComponent,
"loadChildren": "app/member/index/index.module#IndexModule"
}
]

OrderRouter definition like this:

const routes: Routes = [
{
"path": "list",
"outlet": "member",
"component": OrderComponent,
"loadChildren": "app/member/order/list/list.module#ListModule"
},
{
"path": "",
"outlet": "member",
"component": OrderComponent
}
]`

ListRouter definition like this:
`const routes: Routes = [
{
"path": "",
"outlet": "order",
"component": ListComponent
}
]

It dose not work at "/member/order/list"

It is working at "/member/order"

"OrderRouter" rules can not be matched when "MemberRouter" is lazy loaded

"loadChildren" dose not work when nested

Please help me solve, thank you!

Plunker Demo Click "product/detail/item" button dose no work.

Issue 2:
I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ X ] 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

MetaService, or any other service, doesn't support setting/adding <link rel="canonical" href="..."> tags.

Expected behavior

Like the HEAD services that allow addition of <title> and <meta> tags, adding <link> tags should be supported as well.

Minimal reproduction of the problem with instructions

N/A

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

In the universal/server context, it is often useful to be able to set a rel="canonical" link element to prevent search engines from duplicating results. See Canonical Link Element for more details.

Please tell us about your environment:

Angular version: 2.0.X

4.0.1

Browser:

All

Language: [all | TypeScript X.X | ES6/7 | ES5]

All

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

N/A
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report
[ ] 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

Aux-Routes are not found when using two levels of "default routes" (with path:'').

This config works:

RouterModule.forRoot([
{
path: 'tasks', component: TasksComponent, //container-component has two outlets!
children: [
{ path: '', component:TaskListComponent },
{ path: 'overview/:id', component: TasksComponent, outlet: 'right' },
]
}
],

I can open the Tasks-overview by doing:

http://localhost:4200/tasks/(right:overview/3)

See this plnkr and click "to list", "open aux"

As I want to extract the whole Tasks-Functionality into a TasksModule I need to be able to do something like this:

RouterModule.forRoot([
{
path: 'tasks', : children: [ // this one would be in main module
//this is defined in the TasksModule:
{ path: '', component: TasksComponent, //container-component has two outlets!
children: [
{ path: '', component:TaskListComponent },
{ path: 'overview/:id', component: TasksComponent, outlet: 'right' },
]
}
],

I would assume both configs are equivalent, and all of the "normal" routing works perfectly fine. But now the link above http://localhost:4200/tasks/(right:overview/3) leads to:

Uncaught (in promise): Error: Cannot match any routes: 'tasks'

See this plnkr: http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview

Expected/desired behavior

Aux-Routes should also work with empty-path parents

Reproduction of the problem

Working version: http://plnkr.co/edit/Twx4hXQ0TLfHfrYSe4MO?p=preview

Non-working version: http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview

What is the expected behavior?

Both versions of route definition should lead to the same behavior

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

With the current implementation it is impossible to create an encapsulated Config / Module for the tasks behaviour and include it under a certain path into the main config e.g. "myTasks".

/cc @vsavkin

Please tell us about your environment:

Angular version: 2.0.0-rc.5

Browser: [all ]

Language: [TS ]

Issue 2:
According to the doc of setTimeout the fuction supports the syntax setTimeout(string code, [delay])

The version in angular2-polyfills.js does not support this syntax and this is casing problems with ASP.NET which generates code using this version.

I understand that this version should be avoided but I am only able to replace the old asp.net code in stages
Issue 1:
Issue Type:

“Bug Report”

Ansible Version:

ansible 1.6 (master 1b3f77f) last updated 2014/03/30 19:39:04 (GMT +800)

Environment:

host: ubuntu 12.04 python: 2.7.3

guests: ubuntu 12.04.4 python: 2.7.3

Summary:

This is a same task on different remote servers. fail happen on v1.4.5 successors. one server success and one fail.

Steps To Reproduce:

part of tasks/main.yml

- name: create /var/www directory
file: dest=/var/www/ state=directory owner=www-data

- name: extract kibana tarball
unarchive: src=kibana.tar.bz2 dest=/var/www/

Expected Results:

all servers success.

Actual Results:

TASK: [kibana | create /var/www directory] ************************************
ok: [cnbjlx9913] => {"changed": false, "gid": 33, "group": "www-data", "item": "", "mode": "0755", "owner": "www-data", "path": "/var/www/", "size": 4096, "state": "directory", "uid": 33}
ok: [cnbjlnx006] => {"changed": false, "gid": 33, "group": "www-data", "item": "", "mode": "0755", "owner": "www-data", "path": "/var/www/", "size": 4096, "state": "directory", "uid": 33}

TASK: [kibana | extract kibana tarball] ***************************************
failed: [cnbjlx9913] => {"failed": true, "item": ""}
msg: dest '/var/www/' must be an existing dir
ok: [cnbjlnx006] => {"changed": false, "check_results": {"cmd": "tar -v -C \"/var/www/\" --diff -f \"/home/CORPUSERS/xp013826/.ansible/tmp/ansible-tmp-1396339364.42-237678010154795/source\"", "err": "", "out": "kibana/\nkibana/app/\nkibana/app/app.js

Issue 2:
Issue Type:

Feature Idea

Ansible Version:

1.7.1

Environment:

OS X 10.9.4

Summary:

For the following, I will only talk about tagging tasks. However, this could be applied to any resource (play, role, task) that can be tagged.

When you want to use tags to include and exclude specific tasks from a playbook, you need to use the --tags and --skip-tags options. However, the issue is that all of your tasks must be tagged. Would it make sense that every task declared is automatically tagged with a default tag. For the sake of this issue, let's say that tag is default.

An example:

My plays and roles are initially designed to be run against our environments in our data centers. When I want to use those same scripts for a Vagrant setup, there are certain tasks that I want to include and exclude. Just to reiterate, I don't tag all of my tasks. Currently, I can exclude tasks by assigning a tag like skip-vagrant and use --skip-tags "skip-vagrant". However, when I want to also include a task, I can't simply tag it as vagrant and use --tags "vagrant" because Ansible won't run my other non-tagged tasks. If every task (i.e. resource) was automatically tagged with a default tag, I could include and exclude tasks using --tags "default,vagrant" --skip-tags "skip-vagrant". This also prevents me from adding noise to my configurations with tags: [default] to every task.
Issue 1:
Hello,

Here is my code:

let value: any
if (value instanceof MyClass) {
// value is any. needs to typecast like this to get intellisense working:
(<MyClass>value).prop=true;
}

It would be great to support this feature.

Thanks in advance and I hope this could help others.

Issue 2:
I am using the following example that I took directly from the blog post (http://blogs.msdn.com/b/typescript/archive/2014/11/18/what-s-new-in-the-typescript-type-system.aspx)

var x: any = "foo";
if(typeof x === 'string') {
console.log(x.subtr(1)); // Error, 'subtr' does not exist on 'string'
}
// x is still any here
x.unknown(); // OK

I am not seeing the error or intellisense for the console.log statement.

Are type guards actually supported in this case or only for union types?
Issue 1:
Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Access the download page,
http://code.google.com/p/go/downloads/list?can=2&;q=OpSys-Darwin
2. Download both packages
3. Install one and then the other
4. Both Installers fail at the end in the package scripts phase

What is the expected output?
Installation successful

What do you see instead?
Failed

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

Which operating system are you using?
Mac OS X Lion 10.7.4

Which version are you using? (run 'go version')
1.0.2

Please provide any additional information below.
This is the second thing I've ever tried to do with Go! (the first one failed too)
I'm on the page 2 of the tour!
Most folks would just give up at this point

Issue 2:
by krolaw:

This would be useful when parsing (really) large JSON documents in low memory
environments.

At the moment one would need to write their own comma and key handling code. Since this
is available in the encoding/xml package (through RawToken), it would be consistent to
have similar functionality in the json package.

Thanks.
Issue 1:
I have encountered some performance issues with JAX version 0.2.26 and 0.2.27. This has surfaced while running the TestU01 small-crush RNG testsuite against the jax.random RNG as well as my own implementation in https://github.com/DPBayes/jax-chacha-prng which run significantly slower than in previous versions. Running JAX version 0.2.26 with JAXlib version 0.1.74 took me 30:47.50 minutes (close to that with JAX version 0.2.27). With JAX version 0.2.25, same JAXlib version, took only 0:38.59 minutes.

I'm not sure what causes this and it's hard to track down. It could of course be an issue in my wrapping code around the Python rngs as I haven't yet found a simpler working example that demonstrates this behaviour. I'm trying to narrow it down further, but wanted to ask whether anyone else has encountered something similar or if there were any changes in JAX version 0.2.26 that I'm not aware of and that could explain this.

Please:

Check for duplicate issues.

Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

As said above, I have not boiled this down to a simple complete example.

Issue 2:
import jax
import jax.numpy as jnp
f = lambda x: jnp.add(x, 1)
x = jax.pmap(f)(jnp.array([1])) # x is a SDA

# jnp.add will use the JAX C++ jit path which has SDA handling falling back to numpy-like handling
x = jnp.add(x, 1)

Handling: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/compiler/xla/python/py_values.cc#L220-L223
Issue 1:
Problem description

The UI jitters time to time, mostly when the drawer pops out/off for the first time. Even the home page www.material-ui.com has this problem when opening/closing the drawer by clicking the 3-lines icon at top-left corner.

It happens more often on Chromium:

Version 55.0.2883.87 Built on Ubuntu , running on Ubuntu 16.04 (64-bit).

It also happens on Opera (43.0.2442.806) although not so frequently as Chromium.

It never happens on Firefox (51.0.1 (64-bit)).

Link to minimally-working code that reproduces the issue

www.material-ui.com

Versions

Material-UI: www.material-ui.com

React: www.material-ui.com

Browser: Chromium 55.0.2883.87, Opera 43.0.2442.806

Issue 2:
Problem description

Once i tap the the drawer button there is a significant lag until a menu appears. it does not feel fluid or native like. I'm assuming you used the react drawer component on your own site as well.

Steps to reproduce

open http://www.material-ui.com/#/ in chrome browser mobile on mobile device and touch the top left menu drawerbutton.

In comparison this Drawer demo( https://googlechrome.github.io/ui-element-samples/side-nav/ ) runs native like fluid on my chrome mobile browser.
Issue 1:
Challenge Show the Local Weather has an issue.

I didn't manually mess with most challenges but I doubt this is the only instance of this. Like most privacy aware users, I run HTTPS-Everywhere and it makes codepens fail when they load insecure ressources.

Change http: for https:

Issue 2:
Challenge Name

Show the Local Weather

https://www.freecodecamp.com/challenges/show-the-local-weather

Issue Description

getCurrentPosition does not work over http. I think that changing the url to codepen.io in that particular challenge would help others campers not thinking their code isn't correct.

Browser Information

Browser Name, Version: Chrome 51.0.2704.84 m

Operating System: Windows 10

Mobile, Desktop, or Tablet: Desktop

Your Code

// If relevant, paste all of your challenge code in here

Screenshot
Issue 1:
Bug report

When you build next.js when the index page is located in /index/index.js instead of /index.js The client side script will not be executed when you access http://localhost/.

The built index page will register with /index (as shown below)

(window.__NEXT_P = window.__NEXT_P || []).push(["/index", function () {
var e = n("gDgk");
return {
page: e.default || e
}
}])

Moving the index.js to the pages root will restore the wanted behaviour.

It took a while for me to figure out what the actual issue is as it's working just fine in dev mode.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Check out https://github.com/adlk/nextjs-index-issue

Run npm install && npm run build && npm start

Check in DevTools if you have a log with Home: component did mount

System information

Version of Next.js: 8.0.0

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

Current Behavior

Components lose all references when staticly exporting the app

Context

In my project i have multiple components which use refs to determine dom-specific stuff (e.g. height of elements), they work as expected when building for production and running next. I intend to use the static export of the app. When i run the exported build on my server (apache), all refs that should be populated, are set to null. i also tried to wrap these components with react-no-ssr to no avail.

One of my Components which produce this behaviour

import React,{Component} from 'react'
import ReactDOM from 'react-dom'

function isElementInViewport (el) {

const rect = el.getBoundingClientRect();

return (
rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
rect.right <= (window.innerWidth || document.documentElement.clientWidth)
);
}

export default class Runningback extends Component {
state = {visible:false}

componentDidMount(){
window.addEventListener('scroll',this.handleScroll,false);
this.handleScroll();
}
componentWillUnmount(){
window.removeEventListener('scroll',this.handleScroll);
}

handleScroll = ()=>{
const el = ReactDOM.findDOMNode(this.refs[0]);
if(!el) return;
const visible = isElementInViewport(el);
const {both=false} = this.props;
if(this.state.visible !== visible && (visible || both)){
// console.log(`el switched ${visible?'visible':'invisible'}`);
this.setState({visible});
}
}
render(){
const {children} = this.props;
const {visible} = this.state;
if(typeof(children) !== 'function') throw new Error('expects a function as children-prop');

return React.Children.map(children(visible),(child,index)=>{
//debugger;
return <child.type {...child.props} ref={index} />;
});
}
}

Your Environment

Tech
Version

next
v5.0.1-canary.11

node
v9.1.0

OS
macOS High Sierra

browser
Google Chrome

etc
Issue 1:
Introduced with c2f6078. Is this on purpose? 3.0.3 lacked the -DEV part. I assumed that the 3.x.x release branch is stable.

Issue 2:
After upgrading Symfony to version 3.0.4 I see "3.0.4-DEV" instead of "3.0.4" as version in console and debug toolbar. Would you be so kind to fix this issue?

Thank you.
Issue 1:
Q
A

Bug report?
yes

Symfony version
3.4.1

PHPUnit
5.7.26

I have a problem after the upgrade to symfony 3.4. I have a login in my unit test. I've implemented the login like the documentation describes here:

https://symfony.com/doc/current/testing/http_authentication.html

I use that code for years now and before 3.4 is was working well.

$session = $client->getContainer()->get('session');
$token = new UsernamePasswordToken($testUser, $testUser->getPassword(), $firewall, $roles);
$session->set('_security_'.$firewall, serialize($token));
$session->save();

$cookie = new Cookie($session->getName(), $session->getId());
$client->getCookieJar()->set($cookie);

if i run the phpunit command over the bridge. I get the following error:

#bin/simple-phpunit
1) Tests\APIBundle\Controller\AutoresponderApiControllerTest::testAutoresponderInsAPI
RuntimeException: Failed to start the session because headers have already been sent by "/xxxx/.phpunit/phpunit-5.7/src/Util/Printer.php" at line 110.

/xxx/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:141
/xxx/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:302
/xxx/vendor/symfony/http-foundation/Session/Session.php:260
/xxx/vendor/symfony/http-foundation/Session/Session.php:80
/xxx/tests/MainBundle/ExtendedWebTestCase.php:151
/xxx/tests/MainBundle/ExtendedWebTestCase.php:62

without the lines with the login it's working.

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
yes

RFC?
no

Symfony version
3.4.x

I have a project that depends on symfony/http-foundation. With 3.4.x-dev I'm getting some RuntimeErrors recently:

RuntimeException: Failed to set the session handler because headers have already been sent
by ".../vendor/phpunit/phpunit/src/Util/Printer.php" at line 110.

.../vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:397
.../vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:112
.../classes/Http/SessionProvider.php:128
.../vendor/autarky/container/classes/Factory/Factory.php:89
.../vendor/autarky/container/classes/Container.php:256
.../vendor/autarky/container/classes/Container.php:226
.../classes/Application.php:511
.../tests/unit/Session/SessionProviderTest.php:20

I tracked down the line to #23711 which was merged 2 days ago. If I remove the if headers_sent thing from setSaveHandler, my test runs fine again.

PHPUnit 5.7.22, symfony/http-foundation is at 0fe9b3d