sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Add optional iterations output to libtest benchmark
Labels: C-enhancement,A-libtest

The `ns / iter` output of libtest's benchmarking harness can hide subtle differences for fast operations (also for some programs you just want to measure throughput). Could we have an option to output the number of iterations per second instead?

I note that `src/libtest/lib.rs` has a `fn ns_per_iter(&mut self)` which calculates this and should be easy enough to extend.
Repository: TypeScript
Issue: Intellisense behaviour of functions and parameters
Labels: Suggestion,Help Wanted,VS Code Tracked,Experience Enhancement

Some odd/unintuitive Intellisense behaviour:

``` typescript
/**
 * Function description A
 * @param name Parameter description A
 */
function uniqueName(name: string): string {
}

export const Uid = {
    /**
     * Function description B
     * @param name Parameter description B
     */
    uniqueName
};
```

The intellisense description for the 'Uid.uniqueName' property is now description B, however the intellisense for the parameter is description A. There isn't anything overriding here - the description of the function is always taken from the export, and the parameter description is always taken from the function definition. As such, I need to do the following to get full intellisense support for this pattern:

``` typescript
/**
 * @param name Parameter description
 */
function uniqueName(name: string): string {
}

export const Uid = {
    /**
     * Function description
     */
    uniqueName
};
```

i.e. function definitions in one place, parameter definitions in another place. I know I can work around this by restructuring the code, but it still feels like I should be able to achieve it in the above format.
Repository: rust
Issue: Clarify story on libm bindings
Labels: C-tracking-issue,T-libs,A-floating-point,Libs-Tracked

Currently the f32 and f64 types provide a number of functions that are just bindings to libm (e.g. trigonometric functions). There are many unbound functions, however (see https://github.com/rust-lang/rust/pull/25780 for some), which can in theory be added over time. It's unclear, however, whether we want to continue this trend and bind all functions or instead try to move away from libm (one possibility being deprecating existing functionality in favor of an external crate).

It would be nice to have a comprehensive understanding on the functions libm provides (beyond those we bind today) and what our story here should be!
Repository: go
Issue: cmd/go: "go list" option to display accumulated cgo LDFLAGS for -buildmode=c-archive/c-shared
Labels: help wanted,NeedsFix,GoCommand

Trying to build a simple Go library that spins up an `http.Server` from a call in C, but it fails to compile the C against the produced library object. Similar examples without involving `http` work just fine.

```
$ go version
go version devel +a2aaede Wed Jun 17 14:55:39 2015 +0000 darwin/amd64
$ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-241.9
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7m armv7em
LTO support using: LLVM version 3.5svn
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
```

Error:

```
$ gcc -o gohttp-c examples/c/main.c gohttplib.a -lpthread
Undefined symbols for architecture x86_64:
  "_CFArrayGetCount", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_CFArrayGetValueAtIndex", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_CFDataAppendBytes", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_CFDataCreateMutable", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_CFDataGetBytePtr", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
      __cgo_6dbb806e9976_Cfunc_CFDataGetBytePtr in gohttplib.a(000003.o)
     (maybe you meant: __cgo_6dbb806e9976_Cfunc_CFDataGetBytePtr)
  "_CFDataGetLength", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
      __cgo_6dbb806e9976_Cfunc_CFDataGetLength in gohttplib.a(000003.o)
     (maybe you meant: __cgo_6dbb806e9976_Cfunc_CFDataGetLength)
  "_CFRelease", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
      __cgo_6dbb806e9976_Cfunc_CFRelease in gohttplib.a(000003.o)
     (maybe you meant: __cgo_6dbb806e9976_Cfunc_CFRelease)
  "_SecKeychainItemExport", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_SecTrustCopyAnchorCertificates", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
  "_kCFAllocatorDefault", referenced from:
      _FetchPEMRoots in gohttplib.a(000003.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [example-c] Error 1
```

More thorough description and full code examples are [available in this StackOverflow question](https://stackoverflow.com/questions/30896892/using-go-1-5-buildmode-c-archive-with-net-http-server-linked-from-c).

This might be related to the OSX/darwin arch as a commenter was able to get it working on Ubuntu.
Repository: TypeScript
Issue: Bug with resolveClassOrInterfaceMembers
Labels: Suggestion,Help Wanted

https://github.com/Microsoft/TypeScript/blob/6db4faf4883636e70ef7a99401b9dbc5d1a58631/src/compiler/checker.ts#L2894

```
interface monster {
    (a: "a"): void;
    (b: "b"): void;
    (c: "c"): void;
    (d: "d"): void;
    (e: "e"): void;
    (x: string): void;
}

interface m1 extends monster {
    a();
}
interface m2 extends monster {
    b();
}
interface m3 extends monster { }
interface m4 extends monster { }

interface m5 extends m1, m2, m3, m4 { }

var waa: m5;
waa("a")
```

The compiler finds 24 call expressions because it appends 'monster' from each base type.
Repository: go
Issue: os: TestStartProcess and TestHostname fail on android
Labels: OS-Android

See http://build.golang.org/log/8f8c15bb002fa2ba25799e34e155095462700a47

```
go_android_exec: adb shell mkdir -p /data/local/tmp/os.test-7203
go_android_exec: adb push /tmp/go-build611040176/os/_test/os.test /data/local/tmp/os.test-7203/os.test-7203-tmp
199 KB/s (2565204 bytes in 12.544s)
go_android_exec: adb shell cp '/data/local/tmp/os.test-7203/os.test-7203-tmp' '/data/local/tmp/os.test-7203/os.test-7203'
go_android_exec: adb shell rm '/data/local/tmp/os.test-7203/os.test-7203-tmp'
go_android_exec: adb shell export TMPDIR="/data/local/tmp/os.test-7203"; export GOROOT="/data/local/tmp/goroot"; export GOPATH="/data/local/tmp/gopath"; cd "/data/local/tmp/goroot/src/os"; '/data/local/tmp/os.test-7203/os.test-7203' -test.short=true -test.timeout=4m0s; echo -n exitcode=$?
--- FAIL: TestStartProcess (0.00s)
    os_test.go:780: StartProcess: fork/exec /bin/pwd: no such file or directory
--- FAIL: TestHostname (0.01s)
    os_test.go:1210: fork/exec /bin/hostname: no such file or directory
FAIL
exitcode=1go_android_exec: adb shell rm -rf /data/local/tmp/os.test-7203
FAIL    os  13.867s
```

There needs to have some proper access methods to android-specific system properties.
Repository: You-Dont-Know-JS
Issue: "this & object prototypes": ch2 issue about polyfill of Function.prototype.bind()
Labels: for second edition

The snippet in the polyfill of Function.prototype.bind() :

```
this instanceof fNOP && oThis 
? this : oThis
```

I cannot really understand why still need `&& oThis` even though `this instanceof fNOP` already indicate that the function invoked with `new` operater.

I try this polyfill with below snippet

```
function foo(p1,p2) {
        this.val = p1 + p2;
}
var bar = foo.bind( null, "p1" );
var baz = new bar( "p2" );
baz.val; // p1p2
```

but the result is `undefined`  :(
The correct result can appear once I comment `&& oThis`.
Repository: react
Issue: Use Inline Event Handlers for trapBubbledEventsLocal and the iOS Safari Click Hack
Labels: Type: Enhancement,Component: DOM,React Core Team

We currently do a lot of work at the end of mount to find all the nodes and attach listeners after the fact. This is severely impacting initial rendering performance of `<form />`, `<img />` and click handlers.

Instead we can just use inline event handlers in the innerHTML string. For the iOS Safari hack it should be trivial. The handler doesn't even have to do anything.

The inline event handler would need to either redispatch the event, or call into some other event handler system. Probably a global listeners.

``` js
window._handleReactEvent = ...;
```

``` html
<img onload="_handleReactEvent(event)">
```

Since there could potentially be multiple Reacts, they should probably chain the handler if there already is one registered. (Although multiple Reacts in the same document is already pretty broken in this regard.)

It doesn't have to be a global. Since inline event handlers gets the element added as a `with(element)` scope around itself. It is equivalent to add it to the prototype:

``` js
Element.prototype._handleReactEvent = ...;
```

or

``` js
HTMLImgElement.prototype._handleReactEvent = ...;
```

This makes them a bit more hidden, unobtrusive.

We still need to render this string for server-side rendering to avoid needing to change the HTML or wire up handlers after-the-fact on the client.

Since these events can fire before React has loaded, we need to check for the existence of the handler before it is used.

``` js
<img onload="this._handleReactEvent&&_handleReactEvent(event)">
```

It is critical that this string is short - for innerHTML string concat performance and network performance. Yet it needs to be unlikely to collide with anything else.

Is there a unicode character we could use?
Repository: youtube-dl
Issue: RSS feed parser doesn't respect --dateafter
Labels: request

I'm running:

`youtube-dl --dateafter now-5day http://www.escapistmagazine.com/rss/videos/list/1.xml`

Which correctly gets the most recent video, however it then proceeds to get the next 50 videos from the RSS feed.

Would it be possible to implement the --dateafter switch to look at the posted date of the RSS feed?
Repository: youtube-dl
Issue: Brightcove empty playlist
Labels: geo-restricted

 ./youtube-dl --verbose http://aptn.ca/blackstone/video/season-1/

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'http://aptn.ca/blackstone/video/season-1/']
[debug] Encodings: locale US-ASCII, fs US-ASCII, out US-ASCII, pref US-ASCII
[debug] youtube-dl version 2015.06.15
[debug] Python version 2.7.9 - FreeBSD-8.2-STABLE-amd64-64bit-ELF
[debug] exe versions: ffmpeg 0.11.3, ffprobe 0.11.3
[debug] Proxy map: {}
[generic] season-1: Requesting header
WARNING: Falling back on generic information extractor.
[generic] season-1: Downloading webpage
[generic] season-1: Extracting information
[generic] Brightcove video detected.
[download] Downloading playlist: Blackstone  |  SEASON 1
[generic] playlist Blackstone  |  SEASON 1: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[Brightcove] AQ~~,AAAAEQEb72E~,MYPTzvrWinzoYROX3AWqzRir9E-Up5Qk: Downloading playlist information
ERROR: Empty playlist; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 650, in extract_info
    ie_result = ie.extract(url)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 273, in extract
    return self._real_extract(url)
  File "./youtube-dl/youtube_dl/extractor/brightcove.py", line 239, in _real_extract
    return self._get_playlist_info(player_key[0])
  File "./youtube-dl/youtube_dl/extractor/brightcove.py", line 277, in _get_playlist_info
    raise ExtractorError('Empty playlist')
ExtractorError: Empty playlist; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Repository: youtube-dl
Issue: Add option for checking if youtube-dl is outdated
Labels: request

please include an auto update option like Google Chrome which will notify users that an update is available instead of manually checking for an update.

This can be achieved by checking for the version information whenever youtubedl is run to download some video.
Repository: neovim
Issue: External programs called from :r cannot accept input
Labels: enhancement

Let's say I want to use :r with a command that requires input.
For example:

```
:r !gpg -d ~/test.gpg 2>/dev/null
```

On vim, this would decrypt the file `test.gpg` and put its contents into the buffer. The [vim-gnupg](https://github.com/jamessan/vim-gnupg) plugin uses this behaviour to allow transparent editing of GPG encrypted files.

When you run the above command, Vim's :r will show something like this at the bottom of the window:

```
You need a passphrase to unlock the secret key for
user: "User <user@email.com>"
4096-bit RSA key, ID 12345678, created 1970-01-01 (main key ID 12345678)

Enter passphrase:
```

Naturally, the cursor is placed after "Enter passphrase: " so that you can enter your passphrase and decrypt the file. 

In Neovim however, the message is printed but the cursor just disappears, and I have to kill the process to get back to a terminal.
Repository: kubernetes
Issue: Generalize prevention of accidental deletion / mutation
Labels: priority/important-soon,area/api,sig/api-machinery,kind/feature,area/teardown,lifecycle/frozen

PR #9975 added hardcoded protection of the default namespace to the Lifecycle admission controller. This mechanism at least needs to be configurable, since Openshift and Kubernetes have additional infrastructure namespaces they'd like to protect. However, it also needs to be possible to remove the protection to shut down a cluster #4630, without making it susceptible to accidents. One solution would be to add a `protected` field to metadata of any object. `protected: true` would prevent deletion until the object was updated to set `protected: false`. This would also make it straightforward to protect the special Kubernetes services, addons, and other self-hosted components, while still making it possible to update them and to delete all resources during shutdown. 

cc @derekwaynecarr @lavalamp
Repository: youtube-dl
Issue: "enseignemoi.com" support
Labels: site-support-request

Hi, can you please add support for "enseignemoi.com" : 

$ youtube-dl -v http://www.enseignemoi.com/mamadou-karambiri/video/l-adoration-5571.html
[debug] System config: []
[debug] User config: [u'--ignore-errors', u'--continue', u'-o', u'%(title)s__%(format_id)s__%(id)s.%(ext)s', u'-f', u'mp4/flv', u'--add-metadata', u'--write-description', u'--embed-subs', u'--embed-thumbnail']
[debug] Command-line args: [u'-v', u'http://www.enseignemoi.com/mamadou-karambiri/video/l-adoration-5571.html']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.15
[debug] Python version 2.7.8 - Linux-3.16.0-41-generic-x86_64-with-Ubuntu-14.10-utopic
[debug] exe versions: avconv 11-6, avprobe 11-6, ffmpeg 2.6.2, ffprobe 2.6.2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] l-adoration-5571: Requesting header
WARNING: Falling back on generic information extractor.
[generic] l-adoration-5571: Downloading webpage
[generic] l-adoration-5571: Extracting information
ERROR: Unsupported URL: http://www.enseignemoi.com/mamadou-karambiri/video/l-adoration-5571.html
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 1020, in _real_extract
    doc = parse_xml(webpage)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/utils.py", line 1558, in parse_xml
    tree = xml.etree.ElementTree.XML(s.encode('utf-8'), **kwargs)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: mismatched tag: line 46, column 3
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 650, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 273, in extract
    return self._real_extract(url)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 1571, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://www.enseignemoi.com/mamadou-karambiri/video/l-adoration-5571.html
Repository: rust
Issue: Installer on OS X displays wrong install sizes
Labels: O-macos,E-help-wanted,C-bug

![image](https://cloud.githubusercontent.com/assets/9854/8286728/3347b52e-18d9-11e5-863b-f8e732b329db.png)

Installing on OS X goes well, in general, but there is a minor problem: the sizes quoted for installation of the compiler, Cargo, and of the documentation are all Zero KB.
Repository: go
Issue: cmd/vet, go/types: make it easier to handle architecture-dependent constant values correctly
Labels: Analysis

CL 11252 introduces a vet check for integer comparisons. It has false positives when checking code like `u > uint64(^uintptr(0))` where u is a `uint64`. This expression is always false when compiled for 64 bit machines but not for 32 bit machines. IIRC, something similar occurred for the suspicious shift vet check.

It would be nice if vet checks could inquire about types and values on a per-int-size basis.

go/types uses the host machine's integer size as a default. We could override that in vet and typecheck twice, once with 32 bit ints and once with 64 bit ints, but that would be expensive. Maybe there's a better way?

/cc @robpike @griesemer
Repository: youtube-dl
Issue: Feature request: use ffprobe/avprobe to fetch extra metadata for use in _sort_formats
Labels: request

Hi, I have noticed that the "-f bestaudio" does not really download the best audio quality : 

$ youtube-dl --ignore-config -o "%(title)s__%(format_id)s__%(id)s.%(ext)s"  -f bestaudio --restrict-filenames https://www.youtube.com/watch?v=NLYggpNyQuo
[youtube] NLYggpNyQuo: Downloading webpage
[youtube] NLYggpNyQuo: Extracting video information
[youtube] NLYggpNyQuo: Downloading DASH manifest
[download] Kacou_Severin_-Le_secret_de_l_onction_1__140__NLYggpNyQuo.m4a has already been downloaded
[download] 100% of 136.33MiB
[ffmpeg] Correcting container in "Kacou_Severin_-Le_secret_de_l_onction_1__140__NLYggpNyQuo.m4a"

Using the options "-f best -x" gets a file with better audio quality : 

$ youtube-dl --ignore-config -o "%(title)s__%(format_id)s__%(id)s.%(ext)s"  -f best -x -k --restrict-filenames https://www.youtube.com/watch?v=NLYggpNyQuo
[youtube] NLYggpNyQuo: Downloading webpage
[youtube] NLYggpNyQuo: Extracting video information
[youtube] NLYggpNyQuo: Downloading DASH manifest
[download] Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.mp4 has already been downloaded
[download] 100% of 375.25MiB
[avconv] Destination: Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a

$ avprobe Kacou_Severin_-Le_secret_de_l_onction_1__140__NLYggpNyQuo.m4a 2>&1 | grep Audio:
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, fltp, 125 kb/s (default)

$ avprobe Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.mp4 2>&1 | grep Audio:
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, fltp, 191 kb/s (default)
Repository: youtube-dl
Issue: Feature : Please add a command line option (--no-OPTION) to disable one parameter already set in the "youtube-dl.conf" file (--OPTION value).
Labels: request

Hi,

I have the "--embed-thumbnail" option set in my "youtube-dl.conf".

The problem is when I download the audio of a youtube stream, youtube-dl embeds the thumbnail but I don't want the thumbnails in my audio files otherwise my hardware won't be to play them, see the last line of this output : 

$ youtube-dl -f best -x -k https://www.youtube.com/watch?v=NLYggpNyQuo
[youtube] NLYggpNyQuo: Downloading webpage
[youtube] NLYggpNyQuo: Extracting video information
[youtube] NLYggpNyQuo: Downloading DASH manifest
[info] Writing video description to: Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.description
[youtube] NLYggpNyQuo: Downloading thumbnail ...
[youtube] NLYggpNyQuo: Writing thumbnail to: Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.jpg
[download] Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.mp4 has already been downloaded
[download] 100% of 377.53MiB
[ffmpeg] Adding metadata to 'Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.mp4'
[avconv] Destination: Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a
[ffmpeg] Subtitles can only be embedded in mp4 or mkv files
[atomicparsley] Adding thumbnail to "Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a"

$ avprobe Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a 2>&1 | egrep "Input|Duration:|Stream"
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a':
  Duration: 02:28:30.14, start: 0.000000, bitrate: 194 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, stereo, fltp, 191 kb/s (default)
    Stream #0.1: Video: mjpeg, yuvj420p, 1440x1080 [PAR 1:1 DAR 4:3], 90k tbn

A work around would be to specify another configuration file dedicated to audio downloads, such as : 

--config=FILE               Specify the location of a startup file you wish to use.

Can you help ?
Repository: youtube-dl
Issue: [Suggestion] Please add an option to skip starting segments together with --hls-prefer-native
Labels: request

Downloading seems to be segment-by-segment with the experimental --hls-prefer-native option, it could be very convenient if there is an additional option to control over the starting segment number so that one can choose to record partial footage from a lengthy youtube video.
Repository: java-design-patterns
Issue: Blackboard architectural pattern
Labels: info: help wanted,epic: pattern,type: feature


### Description:
Implement the Blackboard design pattern in the project. The Blackboard pattern is an architectural pattern used in situations where multiple subsystems need to collaborate to solve a problem that is beyond the individual capabilities or knowledge of each subsystem. The main elements of the Blackboard pattern include:

- **Blackboard**: A shared global memory structure that holds the data or state of the solution space. All subsystems read from and write to the blackboard.
- **Knowledge Sources**: Independent subsystems or modules that have specialized knowledge and can operate on the data in the blackboard. They can contribute partial solutions or refine existing data.
- **Control Component**: Manages the flow of control among the knowledge sources. It determines which knowledge source will get access to the blackboard at any given time based on certain criteria or heuristics.

### References:
- https://en.wikipedia.org/wiki/Blackboard_system
- Pattern-Oriented Software Architecture, Volume 1: A System of Patterns
- Pattern-Oriented Software Architecture: A System of Patterns

### Acceptance Criteria:
1. A blackboard component that allows multiple knowledge sources to read and write data.
2. At least three independent knowledge sources that interact with the blackboard to contribute to or refine the solution.
3. A control component that manages the interaction between the knowledge sources and ensures orderly access to the blackboard.

For more details on contributing to this project, please refer to our [contribution guidelines](https://github.com/iluwatar/java-design-patterns/wiki).