sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: Tests OCL_Filter/Erode.Mat (Dilate) fail on Android x86
Labels: bug,priority: normal,platform: android,affected: 3.4

OS: Android 4.4 x86

Failed tests:
OCL_Filter/Dilate.Mat/100
OCL_Filter/Dilate.Mat/101
OCL_Filter/Dilate.Mat/124
OCL_Filter/Dilate.Mat/125
OCL_Filter/Erode.Mat/100
OCL_Filter/Erode.Mat/101
OCL_Filter/Erode.Mat/124
OCL_Filter/Erode.Mat/125

Common output ("actual" value differs from test to test):
[ RUN      ] OCL_Filter/Erode.Mat/125
/localdisk/j/workspace/cv/src/modules/imgproc/test/ocl/test_filters.cpp:121: Failure
Expected: (TestUtils::checkNormRelative(dst_roi, udst_roi)) <= (threshold), actual: 0.806538 vs 1e-06
Size: [21 x 15]
[  FAILED  ] OCL_Filter/Erode.Mat/125, where GetParam() = (32FC4, 0, 0x0, BORDER_CONSTANT, 3, true, 1) (336 ms)

These tests are passed on x64 Android 5.1 emulator
Repository: opencv
Issue: Tests in UMat group fail on Haswell
Labels: bug,priority: normal,affected: 3.4,category: t-api

OS: Win7 x86/x64, Win8.1 x86/x64, Win10 x64, CentOS x64
Processor: Intel Core i7 5th generation

Failed tests:
UMat/UMatBasicTests.copyTo/19
UMat/UMatBasicTests.copyTo/9
UMat/UMatTestReshape.reshape/149
UMat/UMatTestReshape.reshape/205
UMat/UMatTestReshape.reshape/37
UMat/UMatTestReshape.reshape/93

UMatBasicTests.copyTo common output:
[ RUN      ] UMat/UMatBasicTests.copyTo/9
..\..\..\..\..\src\modules\core\test\test_umat.cpp(190): error: Expected: (TestUtils::checkNorm2(roi_ua, ua)) <= (0), actual: 99 vs 0
Size: [601 x 371]
[  FAILED  ] UMat/UMatBasicTests.copyTo/9, where GetParam() = (0, 1, 640x480, true) (17 ms)

UMatTestReshape.reshape common output:
[ RUN      ] UMat/UMatTestReshape.reshape/149
..\..\..\..\..\src\modules\core\test\test_umat.cpp(317): error: Expected: (TestUtils::checkNorm2(ua.reshape(nChannels), a.reshape(nChannels))) <= (0), actual: 99 vs 0
Size: [601 x 371]

..\..\..\..\..\src\modules\core\test\test_umat.cpp(350): error: Expected: (TestUtils::checkNorm2(ua.reshape(nChannels, ua.dims, sz), a.reshape(nChannels, a.dims, sz))) <= (0), actual: 99 vs 0
Size: [222971 x 1]
[  FAILED  ] UMat/UMatTestReshape.reshape/149, where GetParam() = (2, 3, 640x480, true) (22 ms)
Repository: opencv
Issue: UMatBasicTests.GetUMat tests fail on Win10
Labels: bug,priority: normal,affected: 3.4,category: t-api

Win10 x64 on Intel Core i7 of 5th generation

Failed tests:
UMat/UMatBasicTests.GetUMat/6 
UMat/UMatBasicTests.GetUMat/7 
UMat/UMatBasicTests.GetUMat/8 
UMat/UMatBasicTests.GetUMat/9 
UMat/UMatBasicTests.GetUMat/16 
UMat/UMatBasicTests.GetUMat/17 
UMat/UMatBasicTests.GetUMat/18 
UMat/UMatBasicTests.GetUMat/19 
UMat/UMatBasicTests.GetUMat/26 
UMat/UMatBasicTests.GetUMat/27 
UMat/UMatBasicTests.GetUMat/28 
UMat/UMatBasicTests.GetUMat/29 
UMat/UMatBasicTests.GetUMat/36 
UMat/UMatBasicTests.GetUMat/37 
UMat/UMatBasicTests.GetUMat/38 
UMat/UMatBasicTests.GetUMat/39 

Common output for all failed tests:
[ RUN      ] UMat/UMatBasicTests.GetUMat/28
unknown file: error: C++ exception with description "..\..\..\..\..\src\modules\core\src\ocl.cpp:4520: error: (-215) u->mapcount == 0 in function cv::ocl::OpenCLAllocator::deallocate" thrown in the test body.
[  FAILED  ] UMat/UMatBasicTests.GetUMat/28, where GetParam() = (6, 1, 640x480, false) (19 ms)
Repository: kubernetes
Issue: Possible future improvements for Job object
Labels: priority/backlog,sig/apps,help wanted,area/workload-api/job,lifecycle/frozen

1. (COMPLETE) set a deadline and kill the job after that deadline . This was called ActiveDeadlineSeconds in the original proposal.  I argued for removing it for now and it was dropped during review.  @bgrant0607 argues that we have tried (on Borg) offering users many options for managing/throttling failures, and none of them worked well for users except deadlines for non-serving jobs. 
2. automatically throttle creation of new pods when failures are frequent.
3. distinguish between "application failures" and "cluster failures" (e.g. machine-level OOM, node failure) in reporting failures, and in throttling. 
4. consider interaction of Pods of a Job with Vertical Autoscaler.  That is, I should be able to start a job with an initial prediction of memory usage, and then if it OOMs, modify the request and retry.  
5. ensure that successful pods are not automatically deleted before the Job finishes (because then the Job Manager will forget about the success).  Either mark the pod as do-not-garbage-collect, or else record the success somewhere else.
6. Show relevant pod events in Job describe output.
7. Ensure graceful deletion works when reducing parallelism
8. Indexed Job feature: when each Pod is created, manager decides which "completion index" it is trying to do.  Ensures one completion for each index from 0 to `completions - 1`.  Expose that index via the downward API.  Pods can pick up pod-specific options by e.g. indexing into bash-array env var.  #14188
Repository: rust
Issue: Nonparametric dropck (tracking issue for RFC 1238)
Labels: P-medium,T-lang,B-unstable,B-RFC-implemented,C-tracking-issue,S-tracking-design-concerns

Tracking issue for rust-lang/rfcs#1238.
- [x] subtask: `#[may_dangle]` attribute #34761
- [ ] can't close this until we have _stable_ support for 3rd party collection types

cc @pnkfelix
Repository: kubernetes
Issue: Refactor Volume Code
Labels: priority/backlog,kind/cleanup,sig/storage,help wanted,lifecycle/frozen

The `Volume` interface defined in `pkg/volume/volume.go` defines methods that are used for mounting/unmounting/attaching/detaching but also volume creation/deletion. The former is used by the kubelet binary on the node, and the later by the persistent volume controller on the master.

While we should keep all volume related code in the same directory, we should consider refactoring to separate kubelet only/master only code into different packages and move common code into a shared dependent package.
Repository: youtube-dl
Issue: site support requested for Muenchen.tv's live webcams
Labels: site-support-request

please add support for Muenchen.tv Oktoberfest webcams
their m3u8 wowsa url keeps on changing so it would be great to be able to watch / record this via YTDL:

(this live stream is already working with YTDL https://www.muenchen.tv/livestream/ )

they have two additional live webcam streams for the next two weeks for Oktoberfest, one pointing towards the band, hopefully with sound:

https://www.muenchen.tv/mediathek/videolivestream/wiesn-webcam-im-hofbraeu-festzelt/

and one to the street in between beer tents and joy rides:

https://www.muenchen.tv/mediathek/videolivestream/wiesn-webcam-auf-die-wirtsbudenstrasse/

cheers
Repository: TypeScript
Issue: Request: Class Decorator Mutation
Labels: Suggestion,Needs Proposal

If we can get this to type check properly, we would have perfect support for boilerplate-free mixins:

``` typescript
declare function Blah<T>(target: T): T & {foo: number}

@Blah
class Foo {
    bar() {
        return this.foo; // Property 'foo' does not exist on type 'Foo'
    }
}

new Foo().foo; // Property 'foo' does not exist on type 'Foo'
```
Repository: You-Dont-Know-JS
Issue: "es6 & beyond": ch2, "tagged template literals", cover explicit multiline string literals
Labels: for second edition

Illustrate a tagged template literal function that makes multiline string literals require explicit linebreaks instead of assuming them.

`````` js
function multiline(strings,...values) {
   return Function(`return "${strings.raw.join("").replace(/\n/g,"") }"`)();
}
// TODO: fix this so it adds in the interpolated values
//    (but does not strip linebreaks in those values!)
// TODO: also, don't use the `Function(..)` option; just find
//    actual "\n" occurrences in the raw strings and make them
//    into linebreaks

// WIP:
// function multiline(strings,...values) {
//  var strs = strings.raw.map(function mapper(v){
//      return v.replace(/\n/g,"")
//          .replace(/(^|[^\\]|(?:\\\\)+)((?:\\n)+)/g,function(match,p1,p2){
//              return `${p1}${p2.replace(/\\n/g,"\n")}`;
//          });
//  });
//  return strs.join("");
// }```

```js
console.log( `hello

 world` );
// hello
// 
//  world
``````

``` js
console.log( multiline`hello

 world` );
// hello world
```

``` js
console.log( multiline`hello\n
\n
 world` );
// hello
//
//  world
```
Repository: TypeScript
Issue: "design:paramnames" metadata key
Labels: Suggestion,In Discussion,Domain: Decorators

From https://github.com/Microsoft/TypeScript/pull/2589

> A few notes on metadata:
> - Type metadata uses the metadata key "design:type".
> - Parameter type metadata uses the metadata key "design:paramtypes".
> - Return type metadata uses the metadata key "design:returntype".

Can you please add support for a `"design:paramnames"` metadata key? It would return the design-time names of the arguments of a function

I can convert a function to string at runtime using [Function.prototype.toString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString) and then use a couple of Regex to get the parameter names:

```
STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
ARGUMENT_NAMES = /([^\s,]+)/g;
```

But when a minifier/compressor is used the param names become `"a"`, `"b"` ... 

I would like to have a way to access the design-time names of the arguments of a function at run-time even after compression.
Repository: youtube-dl
Issue: Avoid bandwith throttling
Labels: request

Hola Ricardo,

I Wondered if there's a way of implementing an option for circumventing a specific kind of bandwidth throtling?

Let me explain: I noticed quite a few providers, for example soundcloud and mixcloud, will serve the first few megabytes of a stream at maximum speed, but after this the speed drops just to the amount needed for streaming the served media at its bitrate.
Like this it takes a long time to download certain media with youtube-dl. How I used to circumvent this is by stopping & resuming the download for example 20 times for a 100mb file, in case they serve the first 5mb unthrottled.

Technically this works very well, but it's not very handy in a practical way. So I created my little helper script where I use youtube-dl to generate the download-url, and let Curl download the actual file, by downloading the first XXkb block, than the second XXkb block, etc... using the range header start & end values, and a while loop.

This works out great for me, but I wonder if it would be very difficult to implement this in the downloader classes of youtube-dl? With an optional switch to activate this 'chunk-downloading', or even the ability for contributors to implement it in the extractors - if the specific service is known for using these 'first part fast' throttling mechanisms - would really benefit the download speed for a lot of users, in my humble opinion :)

So, my questions are: Do you think it's a good idea to implement this kind of functionality and how difficult will it be to do so? If you consider implementing this in the future, I like to help in any way I can
to make this possible.

Thanks for creating this great 'little' tool, I use it regularly and am very happy it exists!

Saludos,

Erik
Repository: opencv
Issue: Fisheye calibrate failure with specific arguments
Labels: bug,priority: normal,category: calib3d,affected: 3.4,Hackathon

Fisheye `calibrate()` function fails with seg fault when `std::vector<cv::Mat>` is used instead of `std::vector<cv::Vec3d>` as `OutputArrayOfArrays` parameters `rvecs`, `tvecs`.
Repository: go
Issue: x/mobile: android bind/java/Seq.java forces application context binding on library load
Labels: mobile

## Problem

1) It is not required to bind an application context for go <-> jni code to work. For native activities that uses context, this might be case, but not all go library code needs this.

2) Compatibility issues if context is auto-bound. In the wild we have experienced wild/random crashes that is related to the order of webview native libary loading before/after golib plus other jni libraries. Our fix required us to load each library in a specific order and/or not binding to application context.
## Source

At Line 29 of bind/java/Seq.java, application context is passed/set to golib via jni.

``` java
static {
        // Look for the shim class auto-generated by gomobile bind.
        // Its only purpose is to call System.loadLibrary.
        try {
            Class.forName("go.LoadJNI");
        } catch (ClassNotFoundException e) {
            // Ignore, assume the user will load JNI for it.
            Log.w("GoSeq", "LoadJNI class not found");
        }

        try {
            // TODO(hyangah): check proguard rule.
            Application appl = (Application)Class.forName("android.app.AppGlobals").getMethod("getInitialApplication").invoke(null);
            Context ctx = appl.getApplicationContext();
            setContext(ctx);

        } catch (Exception e) {
            Log.w("GoSeq", "Global context not found:" + e);
        }

        initSeq();
        new Thread("GoSeq") {
            public void run() { Seq.receive(); }
        }.start();
    }
```
## Proposal

Do not auto bind application context on library load. Let user decide. 

``` java
static {
        // Look for the shim class auto-generated by gomobile bind.
        // Its only purpose is to call System.loadLibrary.
        try {
            Class.forName("go.LoadJNI");
        } catch (ClassNotFoundException e) {
            // Ignore, assume the user will load JNI for it.
            Log.w("GoSeq", "LoadJNI class not found");
        }

        initSeq();
        new Thread("GoSeq") {
            public void run() { Seq.receive(); }
        }.start();
    }
```
Repository: nvm
Issue: Add tests: `nvm run --silent` and `nvm exec --silent`
Labels: testing,pull request wanted

I added support for `--silent` to `nvm run` and `nvm exec` in eb81fba8f7fda7342472256040597a8e59261552 for #842.

However, I was lazy, and didn't write any tests.

This issue is a reminder for me, or a request to anyone else, to write these tests. They should ensure that the output is correct without `--silent`, with `--silent`, and also that `--silent` is only swallowed and respected when it's in the third argument position (immediately after `run` or `exec`).
Repository: opencv
Issue: OutputArray::create fails for vector<Mat>
Labels: priority: normal,feature,category: core,affected: 3.4

example:

``` cpp
    vector<Mat> test;
    OutputArray(test).create(3, 1, CV_32FC3);
    cout << test.size() << endl;
    cout << test[2].size() << endl;
    test[2].at<Vec3f>(0)[2] = 1;
```

output:

```
3
[0 x 0]
SEGFAULT
```

The issue seems to be that OutputArray::create does only resize the vector without allocating the individual matrices.
Repository: You-Dont-Know-JS
Issue: Async & Performance - Ch1 - process.nextTick()
Labels: for second edition

Great book series BTW

A word of caution about using process.nextTick to 'chunk' your work. Consider the following node app...

``` javascript
var a = 0;
var count = parseInt(process.argv[2]);

setTimeout(function() {
    var b = a; // careful to get the instant 'now' version of a
    console.log(b);
}, 0);

function work() {
    if (++a < count) {
        process.nextTick(work);
    }
}

work();
```

In this code, I've chunked the work (incrementing a up to count) by calling process.nextTick and you might expect the setTimeout callback to happen sometime before the work finishes but it doesn't. Even for gigantic values of count. The problem is process.nextTick adds the function to the event queue without giving setTimeout (or any other IO for that matter) a chance to get a look in. It's like a DOS attack inside your JS program.

A slightly better function to use is setImmediate - which lets IO et al have a go before scheduling the callback.

Guyon
Repository: youtube-dl
Issue: youtube-dl repeats thumbnail embedding if file already exists
Labels: request

Using latest version (2015-09-22) as of this post.The thumbnail is downloaded before youtube-dl checks the video and sees it has already been downloaded. Then the thumbnail logic embeds the thumbnail file since it is there. This results in a video with duplicate thumbnails.

![capture](https://cloud.githubusercontent.com/assets/692914/10079154/17c51df4-62ae-11e5-9276-d9f65e21299a.PNG)

If the video already exists maybe youtube-dl should assume a thumbnail was already embedded and discard the downloaded one.
Repository: kubernetes
Issue: RFC: Support user defined and extensible deployment strategies
Labels: priority/backlog,area/app-lifecycle,kind/feature,area/workload-api/deployment,sig/apps,lifecycle/frozen

The new deployment API (#1743) specifies some out of the box strategies (recreate, rolling) which will be implemented inside the deployment controller. It's possible these strategies may not cover all deployment needs for end users, or for downstream users (such as OpenShift). The deployment system should enable:
1. Users to define their own deployment strategy logic in a custom Docker image.
2. Downstream systems to define deployment strategies in a delegate controller.

It's possible these two capabilities are related but orthogonal in their design/implementation. I'm starting the discussion here so we can collect initial thoughts and start linking any existing relevant issues.
Repository: kubernetes
Issue: RFC: Deployment hooks
Labels: area/app-lifecycle,priority/awaiting-more-evidence,kind/feature,area/workload-api/deployment,sig/apps,lifecycle/frozen

Users often need a means to inject custom behavior into the lifecycle of a deployment process. The deployment API (#1743) could be expanded to support the execution user-specified Docker images which are given an opportunity to complete at various points during the recon process for a deployment.

Use cases and various design approaches were discussed previously in an [OpenShift deployment hooks proposal](https://github.com/openshift/origin/blob/master/docs/proposals/post-deployment-hooks.md).

This RFC is to capture initial thoughts on the topic and to link any existing related issues.
Repository: youtube-dl
Issue: Extractor for NPR music
Labels: site-support-request

Here's an example: http://www.npr.org/player/embed/439491238/440274224

I can look into adding an extractor for it but thought I'd first post a bug in case anyone had any pointers, experience with npr, etc.  BTW, it looks like it's jwplayer underneath...
Repository: go
Issue: x/text: localization support
Labels: umbrella

This issue is intended as an umbrella tracking issue for localization support.

Localization support includes:
- formatting values, such as numbers, currencies, and dates in a language- and region-specific way.
- marking text to be translated in fmt-ed text and templates.
- integration into translation pipeline

Details to be covered in design docs.
Repository: youtube-dl
Issue: Problem with download videos from mirror.co.uk/video
Labels: site-support-request

hey guys first of all thank you for this amazing app it really useful, but unfortunately i cant download videos from http://www.mirror.co.uk/video/ i wish if you can fix this problem also make new option that can give me the download link directly for example site.com/video.mp4.

thank you
Repository: opencv
Issue: Bug: cv::CascadeClassifier window advances prematurely for no obvious reason
Labels: bug,priority: normal,category: objdetect,affected: 3.4

In the code below:

``` C++
class CascadeClassifierInvoker : public ParallelLoopBody
{
public:
    CascadeClassifierInvoker( CascadeClassifierImpl& _cc, int _nscales, int _nstripes,
                              const FeatureEvaluator::ScaleData* _scaleData,
                              const int* _stripeSizes, std::vector<Rect>& _vec,
                              std::vector<int>& _levels, std::vector<double>& _weights,
                              bool outputLevels, const Mat& _mask, Mutex* _mtx)
    {
...
    }

    void operator()(const Range& range) const
    {
...
        for( int scaleIdx = 0; scaleIdx < nscales; scaleIdx++ )
        {
...
            for( int y = y0; y < y1; y += yStep )
            {
                for( int x = 0; x < szw.width; x += yStep ) // <---------- Increment
                {
                    int result = classifier->runAt(evaluator, Point(x, y), scaleIdx, gypWeight);
                    if( rejectLevels )
                    {
                        if( result == 1 )
...
                        if( classifier->data.stages.size() + result == 0 )
                        {
...
                        }
                    }
                    else if( result > 0 )
                    {
...
                    }
                    if( result == 0 )
                        x += yStep; // // <---------- Increment Again!
                }
            }
        }
    }
```

When result is 0, which I assume means classification has failed on the 0th's step, the code manually changes the step for no obvious reason. One may argue that when the first weak classifier fails, there is very little change that the next window passes all weak classifiers, but this argument is invalid for multiple reasons:
1. there is no mathematical reason behind the statement above
2. we cannot assume any limit on the number of weak classifiers. If a model has two weak classifiers, then the next window could probably be a positive candidate
3. it is not consistent in all conditions of the inner `if` statement
4.  this behavior interferes with correct grouping

It appears that this behavior only happens when rejectLevels **is not** set, which means almost 99% of the common usage of this method.

Simplest Fix: Remove the following block:

```
                    if( result == 0 )
                        x += yStep;
```

Warning: the patched code may cause regression.
Repository: youtube-dl
Issue: option for log file
Labels: request

Hi,
I know that the output from youtube-dl can be redirected to a log file.
I am looking for an log option of youtube-dl, so that I can configure it in youtube-dl.conf permanently and not bother with providing a log redirection for each download.
Infact, if the log file can also have options like -o parameter(then we can have log file with id in it's filename $id.log)

regards
Chumma