sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: react
Issue: [bug] click not disabled on <fieldset disabled><button onClick={() => alert('clicked')}><span>click me</span></button></fieldset>
Labels: Type: Bug,Component: DOM

**bug**

In the following

``` jsx
const Component = () =>
        <fieldset disabled>
            <button
              onClick={() => alert('clicked by React')}
            >click me here and <span style={{color: 'red'}}>here</span></button>
        </fieldset>;
```

clicking on `click me here and` will not trigger `alert('clicked by React')` whereas clicking on the red `here` will trigger `alert('clicked by React')`.

Demo: https://jsfiddle.net/ropbvL3y/

Thanks for React, it's an incredibly well designed tool.
Repository: opencv
Issue: Python interface does not report missing parameters
Labels: bug,category: python bindings,category: video

##### System information (version)
- OpenCV => 3.1
- Operating System / Platform => Linux 64 Bit
- Compiler => gcc
##### Detailed description

The function `calcOpticalFlowFarneback` offers a flag: `OPTFLOW_USE_INITIAL_FLOW`, which when set needs an additional input field `flow`. If this flag is set, but the parameter is not given, the function acts non-deterministic and returns mostly garbage. Identifying this problem took me quite some time.
##### Expected behaviour

There should be an error message stating:
"The field `flow` is not given, but expected, as `OPTFLOW_USE_INITIAL_FLOW` is set"
##### Steps to reproduce

```
import numpy as np
import cv2
image1 = np.random.rand(100,100)
image2 = np.random.rand(100,100)
flow = cv2.calcOpticalFlowFarneback(image1, image2, 
                                    pyr_scale=0.5, levels=3, 
                                    winsize=15, iterations=3, 
                                    poly_n=5, poly_sigma=1.2,
                                    flags=cv2.OPTFLOW_USE_INITIAL_FLOW)
# flow now contains garbage.
```
Repository: go
Issue: runtime: expose number of running/runnable goroutines
Labels: NeedsFix,early-in-cycle

### Summary

I'd like to propose a way to expose the number of active (running + runnable) goroutines.
### Background

My primary use case for this metric is to estimate application load (`num-active-goroutines / num-cpu`) in order to implement load shedding. Other metrics, like the `times()` syscall, don't expose application overload and don't work well in the presence of noisy neighbours.
### Plan

Currently the runtime package includes `runtime.NumGoroutine() int` which returns the number of live, non-system goroutines.

The runtime package could be extended to include `runtime.NumActiveGoroutine() int`. `NumActiveGoroutine()` should count all goroutines where `isSystemGoroutine()` is false and where status is `_Grunnable|_Grunning|_Gsyscall`.

It seems that such a function would need to acquire `sched.lock` and `allglock`. This could have some performance implications.
Repository: youtube-dl
Issue: Site Request: dailydrip.com
Labels: site-support-request,account-needed

## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your _issue_ (like that [x])
- Use _Preview_ tab to see how your issue will actually look like

---
### Make sure you are using the _latest_ version: run `youtube-dl --version` and ensure your version is _2016.09.11.1_. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [X] I've **verified** and **I assure** that I'm running youtube-dl **2016.09.11.1**
### Before submitting an _issue_ make sure you have:
- [X] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [X] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your _issue_?
- [ ] Bug report (encountered problems with youtube-dl)
- [X] Site support request (request for adding support for a new site)
- [ ] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---

`youtube-dl` is able to download the free videos without an issue from dailydrip.com (as expected), but is unable to authenticate to download the paid. I've tried using the cookie, but am still unable to download.
Repository: javascript
Issue: no-global-assign should include all browser global variables when environment is browser
Labels: question

We're using Airbnb style guide. Today I faced a bug that root of it was the fact that I had a variable named `location` which is a global object available in browser. So instead of getting `variable not defined: location` ESLint just passed. 

[no-global-assign](http://eslint.org/docs/rules/no-global-assign) accepts an array of variable names that should be forbidden to use. All variable names like `location`, `document`, `window` and `navigator` should be in the blacklist as variable names.
Repository: kubernetes
Issue: kubeconfig lock files change behavior of KUBECONFIG
Labels: priority/important-soon,area/kubectl,sig/api-machinery,lifecycle/frozen

Previously, if KUBECONFIG pointed to an empty directory that you don't have permission to write to, config would safely ignore that directory in its load path.  Now, the lock file raises a permission denied error which prevents normal operations from passing.

To recreate against 1.4

```
sudo mkdir /foo
KUBECONFIG=/foo/foo.config go test ./pkg/kubectl/cmd/config
# error is because of a lock failure, we don't print the error in the test
```

In 1.2:

```
git checkout origin/release-1.3
```

This is a regression and causes old clients to break when they upgrade to 1.4 - if you had a KUBECONFIG before that pointed to a dir you can't  write to, we can't fail.
Repository: go
Issue: x/build: meta bug tracking trybot build speed (goal: 15 minutes; further improvements are blocked on completing LUCI migration and robust metrics)
Labels: Builders,NeedsInvestigation,umbrella

*Updated in 2021:* The goal is to make most trybot runs take complete within the time specified in the issue subject. It's currently blocked on creating a mechanism to systematically measure and track TryBot completion time.

*Updated in 2024:* Also blocked on finishing the build system migration to LUCI.
Repository: go
Issue: cmd/compile: combine contiguous multi-byte comparisons to a constant
Labels: Performance,compiler/runtime

On architectures that allow unaligned loads, we should rewrite `b[0] == c1 && b[1] == c2` to `*(*uint16)(&b[0]) == (c1 << 8) + c2`. And do all architectures for cases in which we know b[0] is appropriately aligned. Also uint32 and uint64 (as appropriate).

See CL 26758 for more discussion; that CL will cause many of these to be generated.

We might also independently want to update the front end (near OCMPSTR) to generate the larger comparisons directly.

``` go
package p

import "testing"

var (
    sink   bool
    b1, b2 byte
)

func Benchmark8(b *testing.B) {
    for i := 0; i < b.N; i++ {
        sink = b1 == 5 && b2 == 9
    }
}

func Benchmark16(b *testing.B) {
    u16 := uint16(b1<<8) + uint16(b2)
    const c16 = (5 << 8) + 9
    for i := 0; i < b.N; i++ {
        sink = u16 == c16
    }
}
```

```
Benchmark8-8                2000000000           0.99 ns/op
Benchmark16-8               2000000000           0.68 ns/op
```
Repository: three.js
Issue: Feature: HDR cubemap from a single file
Labels: Enhancement

In the example [materials / envmaps / hdr](http://threejs.org/examples/webgl_materials_envmaps_hdr.html), a cubemap is textured using six `.hdr` files, using [`HDRCubeTextureLoader`](http://threejs.org/examples/js/loaders/HDRCubeTextureLoader.js). How about texturing a cubemap from a single `.hdr` file?
Repository: go
Issue: cmd/compile: avoid reloads of temp register on ppc64le, others
Labels: Performance,NeedsFix,compiler/runtime

Please answer these questions before submitting your issue. Thanks!
### What version of Go are you using (`go version`)?

go version devel +9fcbde7 Wed Sep 14 10:07:17 2016 -0500 linux/ppc64le
### What operating system and processor architecture are you using (`go env`)?

Ubuntu 16.04 ppc64le
### What did you do?

Built the test from the math package, then inspected the objdump.
### What did you expect to see?

Looking for opportunities for improvement.
### What did you see instead?

In main.main, this code is generated:
111c8:       1f 00 e0 3f     lis     r31,31
   111cc:       98 29 9f e8     ld      r4,10648(r31)
   111d0:       1f 00 e0 3f     lis     r31,31
   111d4:       90 29 bf e8     ld      r5,10640(r31)
   111d8:       1f 00 e0 3f     lis     r31,31
   111dc:       e0 29 df e8     ld      r6,10720(r31)
   111e0:       1f 00 e0 3f     lis     r31,31
   111e4:       d8 29 ff e8     ld      r7,10712(r31)
   111e8:       1f 00 e0 3f     lis     r31,31
   111ec:       d0 29 1f e9     ld      r8,10704(r31)
   111f0:       1f 00 e0 3f     lis     r31,31
   111f4:       a0 29 3f e9     ld      r9,10656(r31)
   111f8:       1f 00 e0 3f     lis     r31,31
   111fc:       b0 29 5f e9     ld      r10,10672(r31)
   11200:       1f 00 e0 3f     lis     r31,31
   11204:       b8 29 7f e9     ld      r11,10680(r31)
   11208:       1f 00 e0 3f     lis     r31,31
   1120c:       c0 29 9f e9     ld      r12,10688(r31)

r31 is reloaded each time with the same value.  I believe this happens because this is a MOVD based on SB which implicitly generates two instructions, and uses r31 for the temp register and possibly that is not visible to the register allocator.
Repository: kubernetes
Issue: openapi static init is 50% of startup time for binary that links to it
Labels: priority/important-soon,area/apiserver,sig/api-machinery,lifecycle/frozen

`github.com/go-openapi/spec` calls MustLoadSwagger20Schema which loads an asset via JSON unmarshal on every init.  Anything that pulls in that dependency (genericapiserver, which is a lot) will get slower (hyperkube, and maybe kubectl if it accidentally pulls it in).

Looks like we'll need to support a patch upstream to make it lazy.
Repository: go
Issue: math: Lgamma got slower from Go 1.6 to Go 1.7
Labels: Performance,help wanted,NeedsInvestigation

Please answer these questions before submitting your issue. Thanks!
### What version of Go are you using (`go version`)?

go1.6.3, go version devel +8086e7c
### What operating system and processor architecture are you using (`go env`)?

```
GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build584510834=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
```

### What did you do?

Investigating slowdown of Lgamma benchmark.
1.6 vs 1.7 gives:
name      old time/op  new time/op  delta
Lgamma-4  11.9ns ± 0%  14.2ns ± 0%  +19.33%  (p=0.000 n=29+29)

It might be compiler issue(code not changed). Looking into objdump of lgamma function for both versions I see different instruction order and registers used:
In 1.7:

```
REPNE MOVSD_XMM 0x14a4b5(IP), X3
REPNE MOVSD_XMM 0x14a4bd(IP), X5
REPNE MOVSD_XMM 0x14a4c5(IP), X6
REPNE MOVSD_XMM 0x14a4cd(IP), X7
REPNE MOVSD_XMM 0x14a4d4(IP), X8
REPNE MOVSD_XMM 0x14a4db(IP), X9
REPNE MULSD X4, X9
REPNE ADDSD X9, X8
REPNE MULSD X4, X8
REPNE ADDSD X8, X7
REPNE MULSD X4, X7
REPNE ADDSD X7, X6
REPNE MULSD X4, X6
...
```

In 1.6:

```
REPNE MOVSD_XMM 0x1f94c0(IP), X0
REPNE MOVSD_XMM 0x1f94c0(IP), X1
REPNE MULSD X3, X1
REPNE ADDSD X1, X0
REPNE MULSD X3, X0
REPNE MOVSD_XMM 0x1f949c(IP), X1
REPNE ADDSD X1, X0
REPNE MULSD X3, X0
REPNE MOVSD_XMM 0x1f9484(IP), X1
REPNE ADDSD X1, X0
REPNE MULSD X3, X0
...
```

Tried force scheduler to generate instruction order like in 1.6
(for that expanded all expressions like `p1 := _lgamT[0] + w_(_lgamT[3]+w_(_lgamT[6]+w_(_lgamT[9]+w__lgamT[12])))` with tmp variables).
But result was still bad:
name      old time/op  new time/op  delta
Lgamma-4  11.9ns ± 0%  13.1ns ± 0%  +10.08%  (p=0.000 n=29+19)

Also tried to generate random registers - no much effect:
name      old time/op  new time/op  delta
Lgamma-4  11.9ns ± 0%  13.5ns ± 0%  +13.45%  (p=0.000 n=29+10)
Repository: go
Issue: build: provide a mechanism to disable architectures?
Labels: help wanted,NeedsInvestigation,FeatureRequest

For build speed & binary size reasons, I would like to run make.bash with certain architectures disabled.

(my motivation: when I'm cross-compiling an ARM toolchain from Linux for #17105, there's no need for ppc64, mips64, s390x, arm64, 386, or even amd64 in my resulting binaries)

I started a prototype in https://golang.org/cl/29230 which defines build tags like "without_ppc64", "without_386", "without_s390x", etc.

The compiler and linker were easy. I decided to wait on `cmd/asm` until more discussion.

What do people think of something like this?

/cc @ianlancetaylor @mdempsky @randall77 @robpike @griesemer @josharian @rsc
Repository: angular
Issue: Better Typing for `forwardRef` and `resolveForwardRef`
Labels: type: bug/fix,breaking changes,freq1: low,area: core,P4

We have a fix but wanted to make sure a pull request for `forwardRef` would be accepted. It's marked as`@experimental`, are there any plans to change it?

**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** 
When using `forwardRef` and `resolveForwardRef`, types will not be tracked.

```
class MyType {}
let myForwardRef = forwardRef(() => MyType);
resolveForwardRef(myForwardRef) //=> any
```

**Expected behavior**

```
class MyType {}
let myForwardRef = forwardRef(() => MyType);
resolveForwardRef(myForwardRef) //=> MyType
```

**Reproduction of the problem**
Just import  `forwardRef` and `resolveForwardRef` and observe the types in a supporting editor

**What is the motivation / use case for changing the behavior?**
To keep code type-safe and tooling effective

**Please tell us about your environment:**
MacOS Sierra 10.12, VSCode
- **Angular version:** 2.0.0-rc.7
- **Browser:** N/A
- **Language:**  TypeScript 2.0.2
- **Node (for AoT issues):** N/A
Repository: youtube-dl
Issue: [techtalks] Add support for authentication
Labels: account-needed

### Make sure you are using the _latest_ version: run `youtube-dl --version` and ensure your version is _2016.09.15_. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.09.15**
### Before submitting an _issue_ make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your _issue_?
- [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---

```
$ youtube-dl -v -u PRIVATE -p PRIVATE http://techtalks.tv/talks/lecture-sep-14th-2/61647
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '-u', 'PRIVATE', '-p', 'PRIVATE', 'http://techtalks.tv/talks/lecture-sep-14th-2/61647']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.09.15
[debug] Python version 3.5.2 - Darwin-15.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.8.6, ffprobe 2.8.6
[debug] Proxy map: {}
[generic] 61647: Requesting header
[redirect] Following redirect to http://techtalks.tv/account/login/?next=/talks/lecture-sep-14th-2/61647/
[generic] 61647: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 61647: Downloading webpage
[generic] 61647: Extracting information
ERROR: Unsupported URL: http://techtalks.tv/account/login/?next=/talks/lecture-sep-14th-2/61647/
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 694, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 347, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2393, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: http://techtalks.tv/account/login/?next=/talks/lecture-sep-14th-2/61647/
```
Repository: youtube-dl
Issue: [redtube] Extract categories and tags
Labels: request,nsfw

## Please follow the guide below
- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your _issue_ (like that [x])
- Use _Preview_ tab to see how your issue will actually look like

---
### Make sure you are using the _latest_ version: run `youtube-dl --version` and ensure your version is _2016.09.15_. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x ] I've **verified** and **I assure** that I'm running youtube-dl **2016.09.15**
### Before submitting an _issue_ make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your _issue_?
- [ ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [x] Other

---
### verbose output as follows:

$ youtube-dl -v 
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.redtube.com/1622217']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2016.09.15
[debug] Python version 3.4.4 - Windows-10-10.0.10586
[debug] exe versions: none
[debug] Proxy map: {}
### example URLs :

http://www.redtube.com/1622217
### Description of your _issue_, suggested solution and other information

Metadata like "categories" and "tags" are not included when downloading videos from redtube.com
This is most likely to be solved if 'categories': list, or 'tags': list, will be added to current extractor command.
Repository: go
Issue: cmd/compile: optimizing multiple accesses to same key in map
Labels: Performance,NeedsFix,compiler/runtime

I was reviewing some code for performance issues, and the profile pointed me to a function that was accessing the same map element multiple times like this:

``` go
data[key].Foo = 1
data[key].Bar.Baz += 4
[...]
```

The profile showed many calls to `runtime.mapaccess1_fast32`. I was wondering if it would be legal for the compiler to optimize this straight code to do only one map access, and then of course if it's worth doing it or not.
Repository: opencv
Issue: Unexpected non const behaviour in InputArray.getMat()  and Mat::operator= 
Labels: RFC

##### System information (version)
- OpenCV = 3.1
- Operating System / Platform = Windows 7/64 Bit
- Compiler = Visual Studio 2013
##### Detailed description

As is defined `InputArray`  _is the proxy class for passing read-only input arrays into OpenCV functions_ but the `getMat()` method returns a read-write object.
In addiction the `Mat::operator=` returns a non-const Mat even if source is defined as `const`
##### Steps to reproduce

In the following test the function changes content of the `in` param while caller expects a read-only behaviour .
As you can see  the test function can also changes content of the `const Mat &src` param 

``` .cpp
void TestConsts(const Mat &src, InputArray in)
{
    Mat dst1;
    dst1 = src;
    dst1 = 1;

    Mat dst2 = in.getMat();
    dst2 = 2;
}
int main(int argc, char** argv)
{
    Mat A = Mat::zeros(Size(3, 3), CV_8UC1);
    Mat B = Mat::zeros(Size(3, 3), CV_8UC1);
    TestConsts(A, B);
    cout << A << endl;
    cout << B << endl;
    return 0;
}
```

result is 1 and 2 instead of zeros

``` .text
A = [  1,   1,   1]
B = [  2,   2,   2]
```
Repository: youtube-dl
Issue: Add Support for YouTube Channels Owned by a Google+ Page
Labels: account-needed

#### Make sure you are using the _latest_ version: run `youtube-dl --version` and ensure your version is _2016.09.15_. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.09.15**
#### Before submitting an _issue_ make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
#### What is the purpose of your _issue_?
- [x] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---
# The issue

YouTube videos can not only be owned by users, [but by Google+ pages as well](https://support.google.com/youtube/answer/4642409). Please add support for [authenticating as a Google+ Page](https://youtube-eng.googleblog.com/2013/06/google-page-identities-and-youtube-api_24.html), so that we can download our private YouTube videos from these channels.

Thanks!
Repository: flutter
Issue: Expansion panels should have a smart way to expand.
Labels: c: new feature,framework,f: material design,P3,team-design,triaged-design

Right now, expansion panels always grow, push all children downwards but never scroll.  A smarter way to do this would be to consider scrolling the list s that it causes least movement and makes the currently expanding items easiest to follow.
Repository: youtube-dl
Issue: [fc2] Playlist support
Labels: request

- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.09.15**
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
- [x] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)

The current fc2 plugin is kind of incomplete. There is a playlist system on fc2 that's not currently supported.

Here's a random example I picked: http://video.fc2.com/list.php?m=scont&sobj_up_mb_id=82206749
Note that it can be both `/list.php` and `/a/list.php`.

Would appreciate support being extended to this feature.