sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: macOS packages and Windows MSIs are not signed
Labels: O-windows,O-macos,C-enhancement,P-medium,T-infra

This possibly applies to other platforms as well.

<img width="532" alt="screen shot 2015-08-12 at 14 35 56" src="https://cloud.githubusercontent.com/assets/47542/9224034/b2a452de-40ff-11e5-88c0-fd3b9f38d930.png">

Currently, the Rust installer comes up with this nice warning, making the user navigate to a settings pane and acknowledge to really start the installer. Administrators can also decide to completely deactivate this.

I think at least the official installers of Rust should be signed using an Apple Developer Certificate.
Repository: rust
Issue: Tracking issue for string patterns
Labels: T-libs-api,B-unstable,C-tracking-issue,A-str,Libs-Tracked

(Link to original RFC: https://github.com/rust-lang/rfcs/pull/528)

This is a tracking issue for the unstable `pattern` feature in the standard library. We have many APIs which support the ability to search with any number of patterns generically within a string (e.g. substrings, characters, closures, etc), but implementing your own pattern (e.g. a regex) is not stable. It would be nice if these implementations could indeed be stable!

Some open questions are:
- Have these APIs been audited for naming and consistency?
- Are we sure these APIs are as conservative as they need to be?
- Are we sure that these APIs are as performant as they can be?
- Are we sure that these APIs can be used to implement all the necessary forms of searching?

cc @Kimundi
Repository: TypeScript
Issue: Hierarchy with getNavigationBarItems with modules
Labels: Bug,Help Wanted,API

Calling getNavigationBarItems on a file with the following code:

```
module A {
    class Hello {

    }
}

module B {

}
```

will return 3 items, a module, a class and a module:
![nodes](https://cloud.githubusercontent.com/assets/5351764/9232539/8b4b155e-412e-11e5-84a8-82f4a99c9c6b.png)

I had expected to find the Hello class item as a childItem for the first module A item. Is this a bug or by design?
Repository: go
Issue: syscall: add bind/mount operations to SysProcAttr on Linux
Labels: Thinking,FeatureRequest,compiler/runtime

It would be nice to be able to pass a list of bind mounts to ForkAndExec via SysProcAttr, that Go bind mounts after forking (and execing): https://golang.org/pkg/syscall/#SysProcAttr. Alternatively, it would be nice to have the ability to pass a lambda to it that would call some syscalls (or raw syscalls) before it execs.
Repository: thefuck
Issue: "history" rule runs very slow when bash history is huge
Labels: enhancement

thefuck became very slow since a few versions ago. After specifying `THEFUCK_DEBUG=true` I have found the problem:

```
...
DEBUG: Trying rule: history; took: 0:00:07.860372
...
```

I have 100k+ lines in ~/.bash_history, and that should be the reason. Is there any way to speed up the rule, or maybe I have to clean up bash history regularly?

Thanks!
Repository: rust
Issue: add pop() to HashSet etc.?
Labels: A-collections,T-libs-api,C-feature-accepted

In Python I've often found the `set.pop()` method useful which would remove and return a single arbitrary element of the set (or raise if empty). In Rust this should return an `Option<T>`, of course.

I haven't found such a method on `HashSet`, have I just not looked hard enough?
Repository: rust
Issue: FreeBSD i386 test failures
Labels: O-x86_64,O-freebsd,C-bug,O-x86_32

FreeBSD 32-bit has never passed the tests since the buildbot was set up.
Repository: rust
Issue: Tracking issue for crates that are compiler dependencies
Labels: T-libs-api,B-unstable,C-tracking-issue,Libs-Tracked

This is a tracking issue for the unstable `rustc_private` feature of the standard distribution. It's pretty unfortunate that we have to explicitly prevent everyone from linking to compiler internals via stability attributes, it'd be better if we just didn't ship them at all perhaps.

Is there a better solution? Must we rely on instability forever?
Repository: opencv
Issue: videostab: trim-ratio must not be greater than 0.44
Labels: bug,priority: normal,category: samples,affected: 3.4

Contrary to the docu in the [videostab sample](https://github.com/Itseez/opencv/blob/09b9b0fb9e9c9dd8c9e0d65705f8f19aa4c27f8a/samples/cpp/videostab.cpp#L118) where it states that the value range of trim-ratio is between 0 and 0.5,
- when trim-ratio >= 0.44, you get an "buffer smaller than minimum size" warning on the console (probably from FFmpeg) but the program seems fine
- when trim-ratio == 0.5, the program just stops with the message "processed frames: 0"
- when trim-ratio > 0.6, an assertion is thrown inside the OpenCV core (a given matrix roi has negative width). Maybe checking the parameter inside of the videostab module would be better

**Steps to reproduce**:
Run the [videostab example](https://github.com/Itseez/opencv/blob/09b9b0fb9e9c9dd8c9e0d65705f8f19aa4c27f8a/samples/cpp/videostab.cpp#L509-L514) 

> videostab test.avi --est-trim=no --trim-ratio=0.44
> videostab test.avi --est-trim=no --trim-ratio=0.5
> videostab test.avi --est-trim=no --trim-ratio=0.6
Repository: rust
Issue: False ambiguity due to overlap between higher-ranked and other where clause
Labels: A-trait-system,T-compiler,C-bug,T-types,A-higher-ranked

The test at http://is.gd/xHYV2z was extracted from the `qcollect-traits` package on crates.io. It fails to compile due to a false ambiguity between the higher-ranked where-clause and the other one. This is particularly frustrating because the ambiguity occurs as part of projection and the higher-ranked where clause doesn't even list a binding for `Output`.

The correct fix is probably to prune one where clause or the other as part of selection, but this is a bit tricky with the current region setup due to https://github.com/rust-lang/rust/issues/21974.

``` rust
pub trait ImmutableSequenceTypes<'a, T:'a>{
    type Output;
}

pub trait MutableSequenceTypes<'a, T:'a>: ImmutableSequenceTypes<'a, T> {
}

fn foo<'t,X,T:'t>()
    where X: for<'a> ImmutableSequenceTypes<'a, T>,
          X: ImmutableSequenceTypes<'t, T, Output=&'t T>
{
    bar::<<X as ImmutableSequenceTypes<'t,T>>::Output>();
}

fn bar<A>() { }

fn main() { }
```

(Due to this bug, PR #27641 causes a regression in `qcollect-traits`, but the problem is pre-existing.)
Repository: youtube-dl
Issue: Support for Hudl
Labels: site-support-request

Would it be possible to support http://www.hudl.com ?  It uses JSON for the video URLs, so hopefully it won't be too difficult :)
Repository: TypeScript
Issue: Consider exporting 'getOwnEmitOutputFilePath'
Labels: Suggestion,Help Wanted,API

Courtesy of @ivogabe on [Gitter on August 14, 2015 5:26 AM](https://gitter.im/Microsoft/TypeScript?at=55cdde93057d8c9d3a6d55d2):

> Question about the API, is there an exported method that returns the output filename of a source file? It should follow the options `outDir` & `rootDir` of course.
Repository: nvm
Issue: Should export functions to the shell
Labels: needs followup

NVM suffers from the following:

```
    $ tail -n +1 entrypoint.sh childscript.sh
    ==> entrypoint.sh <==
    #!/bin/bash
    function inheritedfunction() {
      echo "I am an inherited function"
    }
    exec ./childscript.sh
    ==> childscript.sh <==
    #!/bin/bash
    function localfunction() {
      echo "I am a local function"
    }
    localfunction
    inheritedfunction
    $ ./entrypoint.sh
    I am a local function
    ./childscript.sh: line 8: inheritedfunction: command not found
```

Essentially if you `exec` (either explicitly with `exec ./childscript` or implicitly by `./childscript`) then NVM becomes unavailable. 

`gvm` and `rbenv` solve this by having a shell shim that modifies the path and making sure that the binaries are real binaries, really on the $PATH.

Short term suggestion would be to `export -f every_function_in_nvm` (it's a long list):

``` diff
+  export -f nvm
+  export -f nvm_add_iojs_prefix
+  export -f nvm_alias
+  export -f nvm_alias_path
+  export -f nvm_binary_available
+  export -f nvm_checksum
+  export -f nvm_download
+  export -f nvm_ensure_default_set
+  export -f nvm_ensure_version_installed
+  export -f nvm_ensure_version_prefix
+  export -f nvm_find_nvmrc
+  export -f nvm_find_up
+  export -f nvm_format_version
+  export -f nvm_get_arch
+  export -f nvm_get_latest
+  export -f nvm_get_os
+  export -f nvm_has
+  export -f nvm_has_system_iojs
+  export -f nvm_has_system_node
+  export -f nvm_install_iojs_binary
+  export -f nvm_install_node_binary
+  export -f nvm_install_node_source
+  export -f nvm_iojs_prefix
+  export -f nvm_is_alias
+  export -f nvm_is_iojs_version
+  export -f nvm_is_valid_version
+  export -f nvm_ls
+  export -f nvm_ls_current
+  export -f nvm_ls_remote
+  export -f nvm_ls_remote_iojs
+  export -f nvm_ls_remote_iojs_org
+  export -f nvm_match_version
+  export -f nvm_node_prefix
+  export -f nvm_normalize_version
+  export -f nvm_npm_global_modules
+  export -f nvm_num_version_groups
+  export -f nvm_prepend_path
+  export -f nvm_print_implicit_alias
+  export -f nvm_print_npm_version
+  export -f nvm_print_versions
+  export -f nvm_rc_version
+  export -f nvm_remote_version
+  export -f nvm_remote_versions
+  export -f nvm_resolve_alias
+  export -f nvm_resolve_local_alias
+  export -f nvm_strip_iojs_prefix
+  export -f nvm_strip_path
+  export -f nvm_supports_source_options
+  export -f nvm_tree_contains_path
+  export -f nvm_validate_implicit_alias
+  export -f nvm_version
+  export -f nvm_version_dir
+  export -f nvm_version_greater
+  export -f nvm_version_greater_than_or_equal_to
+  export -f nvm_version_path
+}

```

But, with this `childscript` is able to at least run nvm. Unfortunately this means that `$ env` becomes essentially useless, as this `export -f` is a bashism which exports the function body as an environment variable with the same name as the function to allow it to pass through `man (3) execv`
Repository: rust
Issue: DST coercions fall over with UFCS
Labels: A-DSTs,T-compiler,C-bug

``` rust
#![feature(core, rc_weak)]

use std::cell::RefCell;
use std::rc::{Rc, Weak};

trait Baz { fn get(&self) -> i32; }
impl Baz for i32 { fn get(&self) -> i32 { *self } }

fn main() {
    let a: Rc<RefCell<i32>> = Rc::new(RefCell::new(42));
    let c1: Weak<RefCell<Baz>> = Rc::downgrade(&a);             // Doesn't work
    let c2: Weak<RefCell<Baz>> = Rc::downgrade(&a) as Weak<_>;  // works
    let c3: Weak<RefCell<Baz>> = a.downgrade();                 // works
}
```

CC @nrc
Repository: java-design-patterns
Issue: Data-Context-Interaction (DCI) pattern
Labels: info: help wanted,epic: pattern,type: feature

**Description:**
The Data-Context-Interaction (DCI) design pattern focuses on separating data storage, business logic, and interaction context within a system. It aims to improve code readability and maintainability by clearly defining these three components:

1. **Data**: Represents the structure and storage of data, typically using simple data objects.
2. **Context**: Defines the environment or situation in which the data operates, establishing roles and interactions for the objects involved.
3. **Interaction**: Contains the business logic and processes that manipulate the data within a specific context.

By implementing the DCI pattern, we aim to enhance the separation of concerns, making the system more modular and easier to understand.

**References:**
- [Project Contribution Guidelines](https://github.com/iluwatar/java-design-patterns/wiki)
- [DCI Architecture Overview](https://en.wikipedia.org/wiki/Data,_Context_and_Interaction)
- [The DCI Architecture: A New Vision of Object-Oriented Programming](http://www.artima.com/articles/dci_vision.html)
- [Video - Re-thinking foundations of OO programming](http://oredev.org/videos/dci--re-thinking-the-foundations-of-oo)
- [DCI in Ruby](http://dci-in-ruby.info/)

**Acceptance Criteria:**
1. Create a new pattern named `data-context-interaction` under the project.
2. Implement classes representing the Data, Context, and Interaction components of the DCI pattern.
3. Provide example usage and tests demonstrating the functionality and benefits of the DCI pattern in the project.
Repository: TypeScript
Issue: Re-exporting namespace declarations in ES6 ambient declaration
Labels: Suggestion,In Discussion

Right now many declaration files take this form:

``` typescript
declare namespace MyLib {

}

declare module 'myLib' {
  export = MyLib;
}
```

However, there doesn't seem to be an equivalent for ES6 modules:

``` typescript
declare module 'myLib' {
  export default MyLib; // this works for exporting the default, but other exported items in MyLib are not considered to be named exports of the ES6 module
  export * from MyLib; // this is essentially what I'm trying to accomplish
}
```
Repository: go
Issue: go/printer: "Line of stars" detection false positive for commented out block of code with each line dereferencing a pointer.
Labels: NeedsInvestigation

#### What version of Go are you using (go version)?

```
go version go1.4.2 darwin/amd64
```
#### What operating system and processor architecture are you using?

OS X 10.10.5, amd64.
#### What did you do?

Consider the following program:

``` Go
package main

import "fmt"

func main() {
    var i [3]int
    p0 := &i[0]
    p1 := &i[1]
    p2 := &i[2]

    *p0 = 5
    *p1 = 6
    *p2 = 7

    fmt.Println("Hello, playground:", *p0, *p1, *p2)
}
```

If you comment out the first block of code and run `gofmt` on it, you get:

``` Go
package main

import "fmt"

func main() {
    /*
        var i [3]int
        p0 := &i[0]
        p1 := &i[1]
        p2 := &i[2]
    */

    *p0 = 5
    *p1 = 6
    *p2 = 7

    fmt.Println("Hello, playground:", *p0, *p1, *p2)
}
```

However, if you comment out the second block of code like this:

``` Go
package main

import "fmt"

func main() {
    var i [3]int
    p0 := &i[0]
    p1 := &i[1]
    p2 := &i[2]

    /*
    *p0 = 5
    *p1 = 6
    *p2 = 7
    */

    fmt.Println("Hello, playground:", *p0, *p1, *p2)
}
```
#### What did you expect to see?

After formatting the [above code](http://play.golang.org/p/XYoKp-oEhk) with `gofmt`, I would expect it to be formatted similarly to when any other piece of code is commented out, so it should be:

``` Go
package main

import "fmt"

func main() {
    var i [3]int
    p0 := &i[0]
    p1 := &i[1]
    p2 := &i[2]

    /*
        *p0 = 5
        *p1 = 6
        *p2 = 7
    */

    fmt.Println("Hello, playground:", *p0, *p1, *p2)
}
```
#### What did you see instead?

``` Go
package main

import "fmt"

func main() {
    var i [3]int
    p0 := &i[0]
    p1 := &i[1]
    p2 := &i[2]

    /*
    *p0 = 5
    *p1 = 6
    *p2 = 7
     */

    fmt.Println("Hello, playground:", *p0, *p1, *p2)
}
```

Which is not consistent with anything.

I'm pretty sure I know why it happens. It has to do with go/printer detecting a so called "line of stars" style of comments, which normally look like this:

``` Go
/*
 * Line
 * of
 * stars.
 */
```

See relevant code at https://github.com/golang/go/blob/467a2cb73ca867ccdb1dd22be220fa51b6d52491/src/go/printer/printer.go#L529-L539.

However, in this case, it's not a comment block because there is no space after the \* as in normally formatted comments, it's just commented out code that happens to falsely trigger the line of stars comment block handling.
Repository: youtube-dl
Issue: Add support for universalmusic.fr site
Labels: site-support-request

Hi,

Is this possible to add support for this website: http://www.universalmusic.fr/ ?

Here is an example of a video to support: http://www.universalmusic.fr/artiste/10732-calogero/videos/18522-tien-an-men

Thanks :)
Repository: youtube-dl
Issue: extractor for edx.org courses
Labels: site-support-request,account-needed

Course page: https://courses.edx.org/courses/HarvardX/CS50x3/2015/info

Course wage (list of pages with lectures): https://courses.edx.org/courses/HarvardX/CS50x3/2015/courseware/b2f7d86728354866a2c4438e76c3ec55/

Lecture (actual video): https://courses.edx.org/courses/HarvardX/CS50x3/2015/courseware/b2f7d86728354866a2c4438e76c3ec55/99a3e898bd0c43aab9757d71b114529f/
Repository: go
Issue: cmd/dist: race detector should run test/ tests
Labels: RaceDetector

There are lots of interesting code patterns in test/ dir. It would be useful to at least build them with race detector in race.bash.
Repository: go
Issue: x/mobile: gomobile test
Labels: mobile

This may turn into a design for a `gomobile test` subcommand, but for now I'm writing down some notes on what I've been thinking about this topic, as I have a tendency to forget parts of this story when I switch work.

Current and potential testing systems for app programmers:

**All-Go apps:**
- `go test` runs unit tests on the host. Works today. Fast, portable, and friendly to development.
- `gomobile test` same UI as `go test` but they run on device. Can this be made easy to configure? (Provisioning issues on iOS, app permission issues on Android, or they would run via adb shell which rules out GUI tests.) Is this useful?
- GUI tests. Right now x/mobile/app/app_test.go has some primitive GUI tests driven by the host. Can these be run on-device as part of `gomobile test`?

**Go libraries used by android apps:**
- `go test` runs unit tests on the host.
- `gomobile test` runs tests on the device. Same discussion as above.
- Integration tests. As Go is the library, these have to be driven by the primary app environment, Android Studio, Xcode, etc. (For example, x/mobile/bind tests do this with gradle from the Android SDK.)

If we created a `gomobile test` mode, it would be built out of the go_darwin_arm_exec and go_android_arm_exec scripts used to run unit tests from the standard library. These are tricky to setup (in particular the ios-deploy dependency) and very tricky to debug. It i not clear we could make that easier with the gomobile tool.

So it’s not clear yet that it is worth building `gomobile test`, but a worthwhile first experiment would be rewriting x/mobile/app/app_test.go to be a unit test running under an .apk. If that is possible, the second step would be to rewrite go_android_arm_exec so that it builds app packages like go_darwin_arm_exec. In some ways it is easier to install and start an app on Android than it is on iOS, but extracting stdio usefully on a device without root (most development devices) is a bit of work.
Repository: go
Issue: x/review/git-codereview: does not work with 'git worktree'
Labels: NeedsInvestigation

See https://github.com/blog/2042-git-2-5-including-multiple-worktrees-and-triangular-workflows for info about 'git worktree'.

At the least, the hook checker needs updating:

``` bash
$ git sync
git-codereview: checking hook: stat /Volumes/Data/src/go.ssa/.git/hooks/commit-msg: not a directory
```

There might be other stuff as well.
Repository: rust
Issue: FreeBSD x86_64 test failures
Labels: O-x86_64,O-freebsd,C-bug

After the new snapshots landed, test failures showed up.
Repository: go
Issue: x/tools/go/ssa: expected "Output:" text not instantiated for testing.InternalExample struct
Labels: Tools

go version go1.5rc1 darwin/amd64

For bonzo_test.go

```
package bonzo
import "fmt"
import _ "testing"
func ExampleHello() {
    fmt.Println("hello")
    // Output: hello
}
```

x/tools/go/ssa generates code:

```
function: test$main.main
block 0:
     t0 = new [1]testing.InternalExample (test main)
     t1 = &t0[0:int]
     t2 = &t1.Name [#0]
     *t2 = "ExampleHello":string
     t3 = &t1.F [#1]
     *t3 = github.com/tardisgo/tardisgo-samples/errors/exampletests/bonzo.ExampleHello
     t4 = slice t0[:]
     t5 = testing.Main(main$1, nil:[]testing.InternalTest, nil:[]testing.InternalBenchmark, t4)
     return
```

A program demonstrating this SSA code generation is at https://github.com/tardisgo/tardisgo-samples/tree/master/errors/exampletests

The Output field of structure testing.InternalExample is not being set to the text following "// Output:", which means that when the code runs (not currently possible in x/tools/go/ssa/interp) the output is:

```
Input: github.com/tardisgo/tardisgo-samples/errors/exampletests/bonzo
--- FAIL: ExampleHello (0.00s)
got:
hello
want:

FAIL
FAIL
The following tests failed:
    github.com/tardisgo/tardisgo-samples/errors/exampletests/bonzo
```

Rather than the test passing as expected:

```
PASS
ok      github.com/tardisgo/tardisgo-samples/errors/exampletests/bonzo  0.006s
```
Repository: opencv
Issue: Organize project management with github issue
Labels: RFC

Now that we have migrated from chilliproject  to github it could be helpful to evaluate one of this tool at http://liftux.com/posts/using-github-issues-project-management/.
Most of this solutions are free for open source projects (like github account itself). Waffle it is also open source. Not reviewed and opensource also Taiga.io it is interesting at https://taiga.io/
Repository: opencv
Issue: videoio last frame forever when usb camera disconnected
Labels: bug,priority: normal,category: videoio,affected: 3.4

Hi I am using opencv 3.0.0 compiled under mingw 4.9.2 and I found out a bug, when the camera is disconnected no empty frame is returned but instead the last captured image from the camera, over and over again. There is no way how to find out if the camera was disconnected even .opened still returns true over the camera.
Repository: go
Issue: image/jpeg: specify APP1 segment for outputting EXIF data in jpeg.Encode()?
Labels: Thinking

Currently there is no way to output EXIF in jpeg.Encode() so if a JPEG file is modified use image/jpeg the EXIF info is lost.

Reading EXIF using jpeg.Decode() has a similar problem but reopening the file and reading a few kilo bytes is probably an acceptable workaround. Reopening a file to insert a segment is much more cumbersome and inefficient.

One way to do this is to introduce a new field in jpeg.Options. Something like below diff. Thoughts?

```
diff --git a/src/image/jpeg/reader.go b/src/image/jpeg/reader.go
index adf97ab..5942609 100644
--- a/src/image/jpeg/reader.go
+++ b/src/image/jpeg/reader.go
@@ -64,6 +64,7 @@ const (
        // but in practice, their use is described at
        // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/JPEG.html
        app0Marker  = 0xe0
+       app1Marker  = 0xe1
        app14Marker = 0xee
        app15Marker = 0xef
 )
diff --git a/src/image/jpeg/writer.go b/src/image/jpeg/writer.go
index 91bbde3..e404efa 100644
--- a/src/image/jpeg/writer.go
+++ b/src/image/jpeg/writer.go
@@ -541,6 +541,7 @@ const DefaultQuality = 75
 // Quality ranges from 1 to 100 inclusive, higher is better.
 type Options struct {
        Quality int
+       App1Data []byte
 }

 // Encode writes the Image m to w in JPEG 4:2:0 baseline format with the given
@@ -597,6 +598,12 @@ func Encode(w io.Writer, m image.Image, o *Options) error {
        e.buf[0] = 0xff
        e.buf[1] = 0xd8
        e.write(e.buf[:2])
+
+       // Write APP1 data if specified
+       if o != nil && o.App1Data != nil {
+               e.writeMarkerHeader(app1Marker, 2 + len(o.App1Data))
+               e.write(o.App1Data)
+       }

```
Repository: TypeScript
Issue: Provide suggested fixes for unresolved entities
Labels: Suggestion,Help Wanted

Something like the following:

![image](https://cloud.githubusercontent.com/assets/972891/9373302/c205a9c8-469d-11e5-929f-80988968fb77.png)

See https://github.com/Microsoft/TypeScript-Sublime-Plugin/issues/327 for the original suggestion.