sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: x/net: expose LOWER_UP flag in NICs
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version 1.15.4

</pre>

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/x1unix/.cache/go-build"
GOENV="/home/x1unix/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/x1unix/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/x1unix/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS="-w"
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build478690309=/tmp/go-build -gno-record-gcc-switches"

</pre></details>

### What did you do?

Hello. I want to be able to detect if network interface is physical or virtual.
In Linux, there is a special [`LOWER_UP`](https://stackoverflow.com/questions/36715664/using-ip-what-does-lower-up-mean) flag that indicates that NIC is physical, not virtual.

Currently, `net` package exposes only a few flags, but not `LOWER_UP` flag:

``` go
const (
	FlagUp           Flags = 1 << iota // interface is up
	FlagBroadcast                      // interface supports broadcast access capability
	FlagLoopback                       // interface is a loopback interface
	FlagPointToPoint                   // interface belongs to a point-to-point link
	FlagMulticast                      // interface supports multicast access capability
)
```

`LOWER_UP` is described as `IFF_LOWER_UP` at [include/uapi/linux/if.h](https://github.com/torvalds/linux/blob/master/include/uapi/linux/if.h#L103)

### What did you expect to see?

Can you add please `LowerUp` flag to `net` package?

### What did you see instead?
Repository: rust
Issue: Heavy usage of traits & generics causes incredibly slow compile times & code bloat
Labels: I-compiletime,T-compiler,C-bug,I-heavy

[`differential-datalog`](https://github.com/vmware/differential-datalog/tree/master/rust/template/differential_datalog) makes heavy use of [`timely-dataflow`](https://github.com/TimelyDataflow/timely-dataflow) and [`differential-dataflow`](https://github.com/TimelyDataflow/differential-dataflow). When using this library, compile times are excessively slow (even when no changes are made to the library itself), taking up to 10 minutes to build in debug mode and *much* longer in release mode.

Running `llvm-lines` reveals a lot of code being generated, with `ptr::drop_in_place()` leading the bunch
```
  Lines           Copies        Function name
  -----           ------        -------------
  2588400 (100%)  99062 (100%)  (TOTAL)
   135564 (5.2%)   8866 (8.9%)  core::ptr::drop_in_place
    82119 (3.2%)   1994 (2.0%)  core::option::Option<T>::map
    63887 (2.5%)    269 (0.3%)  timely::dataflow::operators::generic::builder_rc::OperatorBuilder<G>::build
    63484 (2.5%)    269 (0.3%)  timely::dataflow::operators::generic::builder_rc::OperatorBuilder<G>::build::{{closure}}
    59040 (2.3%)    144 (0.1%)  differential_dataflow::operators::join::JoinThinker<V1,V2,T,R1,R2>::think
    55626 (2.1%)    438 (0.4%)  alloc::raw_vec::RawVec<T,A>::grow_amortized
    ...
```
*[Full output](https://gist.github.com/Kixiron/bb3a819fe3f4e67c49129ba79cfa7317)*

Running `cargo-bloat` shows that the crate takes up almost 17mb in debug mode and a still sizeable 2mb in release mode

*Debug mode*
```
 File  .text     Size Crate
26.1%  55.7%  16.5MiB differential_datalog
```
*Release mode*
```
 File  .text     Size Crate
12.4%  18.9%   1.9MiB differential_dataflow
```

### Meta

`rustc --version --verbose`:

*Both windows and linux were tested*

```
rustc 1.47.0 (18bf6b4f0 2020-10-07)
binary: rustc
commit-hash: 18bf6b4f01a6feaf7259ba7cdae58031af1b7b39
commit-date: 2020-10-07
host: x86_64-pc-windows-msvc
release: 1.47.0
LLVM version: 11.0
```
```
rustc 1.47.0 (18bf6b4f0 2020-10-07)
binary: rustc
commit-hash: 18bf6b4f01a6feaf7259ba7cdae58031af1b7b39
commit-date: 2020-10-07
host: x86_64-unknown-linux-gnu
release: 1.47.0
LLVM version: 11.0
```
Repository: pytorch
Issue: ARM Mac 16-core Neural Engine
Labels: feature,triaged

## 🚀 Feature
Support 16-core Neural Engine in PyTorch

## Motivation

PyTorch should be able to use the Apple 16-core Neural Engine as the backing system.

## Pitch

Since the ARM macs have uncertain support for external GPUS. It would be wise to support the Apple Neural Engine.

## Alternatives

Use AMD64 Macs.

## Additional context

https://www.apple.com/ca/mac-mini/
Repository: terminal
Issue: Terminal should support Taskbar.AppId so that different Terminal groups can glom separately on the taskbar
Labels: Help Wanted,Area-UserInterface,Product-Terminal,Issue-Task

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement

<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

The current Terminal implementation always ends up with the same Taskbar.AppId so all Terminal instances on the system will "glom" (aka combine) into a single entry on the taskbar.  My ideal workflow is to have separate taskbar entries for my separate Git clones and to use this separation (and distinct icons) to help me keep them straight.  Within a given glom it would still be useful and good to support multiple tabs within Terminal.

In the past I have done this by having different shortcut files to cmd.exe and the /k flag allows them to have different enough identities to glom separately.  Terminal doesn't seem to be compatible with this approach so they all still combine together.  It would be nice if they could be separated back out.

If it is easier to implement it would still be valuable if this glomming was based on which Terminal profile was launched (e.g. cmd vs. powershell).

# Proposed technical implementation details (optional)

<!-- 
A clear and concise description of what you want to happen.
-->

The best documentation I could find on this old-style API is here: [https://docs.microsoft.com/en-us/archive/msdn-magazine/2009/brownfield/windows-7-taskbar-apis](https://docs.microsoft.com/en-us/archive/msdn-magazine/2009/brownfield/windows-7-taskbar-apis).  This concept has indeed existed since Win7 and as far as I know should continue to work essentially the same even on the latest versions of Win10.
Repository: pytorch
Issue: pyre not able to infer the type of torch.jit.script
Labels: oncall: jit

## 🐛 Bug

It seems pyre is not compatible with torch.jit.script decorator. It also cannot find some attributes of module. 

## To Reproduce

Steps to reproduce the behavior:
```
# pyre-fixme[56]: Pyre was not able to infer the type of the decorator
    #  `torch.jit.ignore`.
    @torch.jit.ignore
    def get_optimizer_buffer(self, state: str) -> torch.Tensor:
```

```
# pyre-fixme[16]: `SplitTableBatchedEmbeddingBagsCodegen` has no
        #  attribute `named_buffers`.
        for name, buffer in self.named_buffers():
```

Internal user see D24811011 for the examples

## Expected behavior

pyre won't complain




cc @gmagogsfm
Repository: pytorch
Issue: DCNv2 Layers
Labels: module: nn,triaged,function request

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->

## Motivation

DCNv2 is a very widely used layer type in modern computer vision models ([example implementation](https://github.com/CharlesShang/DCNv2)). However, due to the third party implementation, several features remain incompatible, such as AMP and TorchScript.


## Pitch

I'd love it if the DCNv2 layers were implemented in `torch.nn`. 

## Additional context

Another more up to date implementation can be found here: https://github.com/jinfagang/DCNv2_latest


cc @albanD @mruberry
Repository: go
Issue: x/blog/content: images and embedded YouTube content in pkgsite-redesign.article renders poorly on mobile
Labels: NeedsFix

![9B35A945-9D8A-4055-B602-0286395BC981](https://user-images.githubusercontent.com/7171/98735247-318ab400-23f7-11eb-83f7-f38945a6b57c.png)

The recent blog post on pkg.go.dev renders poorly on mobile browsers.
Repository: storybook
Issue: Spurious warnings on Docs tab
Labels: bug,addon: docs

In the 6.1 beta there are two new warnings in the Docs tab:

1. `storyFn is deprecated and will be removed in Storybook 7.0.`
2. Unable to find source for story ID 'xxx--yyy'
Repository: flutter
Issue: Build native UI testing support for Windows plugins
Labels: platform-windows,package,a: desktop,P2,team-windows,triaged-windows

file_selector shows native UI, so automated testing for it will require building out native UI test support for Windows in `integration_test`. It seems like WinAppDriver is the recommended approach for UI testing.
Repository: flutter
Issue: Build native UI testing support for macOS plugins
Labels: platform-mac,package,a: desktop,P2,team-macos,triaged-macos

file_selector shows native UI, so automated testing for it will require building out native UI test support for macOS in `integration_test`. We will almost certainly want to use XCUITest for this, as on iOS.
Repository: flutter
Issue: Build native UI testing support for Linux plugins
Labels: platform-linux,package,a: desktop,P2,team-linux,triaged-linux

file_selector shows native UI, so automated testing for it will require building out native UI test support for Linux in `integration_test`.
Repository: pytorch
Issue: GPU acceleration for Apple's M1 chip?
Labels: module: performance,triaged

## 🚀 Feature
Hi, 

I was wondering if we could evaluate PyTorch's performance on Apple's new M1 chip. I'm also wondering how we could possibly optimize Pytorch's capabilities on M1 GPUs/neural engines. 

I know the issue of supporting acceleration frameworks outside of CUDA has been discussed in previous issues like #488..but I think this is worth a revisit. In Apple's big reveal today, we learned that Apple's on a roll with 50% of product usage growth being as a result of new users this year. Given that Apple is moving to these in-house designed chips, enhanced support for these chips could make deep learning on personal laptops a better experience for many researchers and engineers. I think this really aligns with PyTorch's theme of facilitating deep learning from research to production.

I'm not quite sure how this should go down. But these could be important: 
1. A study on M1 chips
2. Evaluation of Pytorch's performance on M1 chips
3. Assessment on M1's compatibility with acceleration frameworks compatible with PyTorch (best bet would be CUDA transpilation..from what I see at #488)
4. Investigating enhancements to PyTorch that can take advantage of M1's ML features.

cc @VitalyFedyunin @ngimel
Repository: flutter
Issue: Disable tool crash logging when running with a locally built engine
Labels: c: crash,tool,P2,team-tool,triaged-tool

These crashes tend not to be informative and are generally not possible to reproduce/fix without access to the locally built engine.

/cc @jonahwilliams
Repository: flutter
Issue: dartdoc.dart generate pubspec.yaml doesn't use Dart language versioning
Labels: tool,c: proposal,P3,team-tool,triaged-tool

Split off from https://github.com/flutter/flutter/issues/70084, reported by @mit-mit 

The logic in `dev/tool/dartdoc.dart` calculates package versions by writing a temporary pubspec.yaml file. This file doesn't have an SDK constraint, so it's language version is undefined.
 
 ```dart
   // Create the pubspec.yaml file.
   final StringBuffer buf = StringBuffer();
   buf.writeln('name: $kDummyPackageName');
   buf.writeln('homepage: https://flutter.dev');
   // TODO(dnfield): Re-factor for proper versioning, https://github.com/flutter/flutter/issues/55409
   buf.writeln('version: 0.0.0');
```
https://github.com/flutter/flutter/blob/master/dev/tools/dartdoc.dart#L53
Repository: TypeScript
Issue: Preserve property comment and insert @default value, if provided
Labels: Suggestion,Awaiting More Feedback

## Search Terms

default initial initializer value preserve comment tsdoc type options option bag

## Suggestion

As the title suggests, insert a `@default` comment to the TSDoc AST if an initializer is provided, preserving the original comment.

## Use Cases

I have a default value for an option and I want the consumer of the library to know what the default value is.

## Examples

```ts
interface Options {
  /**
   * The server host.
   */
  host?: string;
  port?: number;
}

function serve({ host = 'localhost', port }: Options) {
  return { host, port };
}
```

[Playground](https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgPIAczAPYgM7IDeAUMsgPQBUlpZlyAKgBYp7QBu0yT2eYAdLWSVytHnwD8ALmR8ooAOYBuWumxQw05CACuAWwBG0FQF9ixGDpAIsuWRwgAKQt15hkAXmQByADbYEOF9xMG8AGmQ1DWQTGQxbfABKIlooCDAdKBAiVz4IqPcTU2IgA)

Hovering over `host` in the `return` statement shows the following in vscode:

![Screen Shot 2020-11-10 at 6 39 31 PM](https://user-images.githubusercontent.com/1058243/98750631-15016400-2384-11eb-8cec-a67e28809eba.png)

Not only is the TSDoc comment lost for this property, but it could furthermore be improved if `@default "localhost"` were added to it, seeing as that information is available in this context.

It should look like this:

![Screen Shot 2020-11-10 at 6 49 35 PM](https://user-images.githubusercontent.com/1058243/98751298-7c6be380-2385-11eb-83ea-f3efd323cec5.png)

Much ❤️ for the TS team!

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: deno
Issue: Make resources implement Transferable
Labels: deno_core,suggestion

Related to #5965 (and possibly others)

It would be really nice if resources could be Transferable between web workers. This would allow for proper multi-threading for HTTP and WebSocket servers.

This can provide multiple benefits:

- Isolated code exposure.  
If someone finds a exploit it has a lower likelihood of affecting the entire server, only the worker it was executed on.
- Load Balancing.  
This allows for balancing across all cores. This could be useful in a number of situations. Now obviously you could just make a new worker for each request and then delete the worker upon completion, but it may be easier conceptually for a programmer to just transfer the connection.
- Fault Tolerance.  
You can use workers similar to Erlang for fault tolerance. It's easy enough to ensure workers are alive with heartbeats and if they are not you can kill them and re-instate. Would that kick any WebSockets (or any other connection)? Yes. But it is probably better to kick 10% of the server intentionally then for the server to kick 100% due to lag.

There are probably others but those are the reasons I can think of.

This is probably not high up on the priority board, but it would be very nice if only for the use case of WebSockets.
Repository: TypeScript
Issue: Type check TS file instead of index.d.ts in node_modules leads to build error that cannot be ignored
Labels: Needs Investigation

<!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  4.1 RC

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** node_module check

**Code**

Run `tsc` on this PR:

https://github.com/DimensionDev/Maskbook/pull/1879

Emitting this error (I have `skipLibCheck` on but `tsc is going to read `.ts` source file not `.d.ts` file):

```
node_modules/promievent/PromiEvent.ts:28:33 - error TS2345: Argument of type '(resolve: Resolve<T>, reject: Reject) => void' is not assignable to parameter of type '(resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void'.
  Types of parameters 'resolve' and 'resolve' are incompatible.
    Types of parameters 'value' and 'value' are incompatible.
      Type 'T | PromiseLike<T> | undefined' is not assignable to type 'T | PromiseLike<T>'.
        Type 'undefined' is not assignable to type 'T | PromiseLike<T>'.

28      this.promise = new Promise<T>(executor)
                                      ~~~~~~~~


Found 1 error.
```
Repository: flutter
Issue: [Video Player] - Clockwise android recorded videos are displayed as black screen with audio on iOS devices
Labels: platform-ios,p: video_player,package,P2,team-ios,triaged-ios

I'm working in an app that records media (image/video) using android/iOS devices and then upload that media to Firebase Storage. All recorded videos are working fine, just one edge case:

Videos recorded in clockwise mode (landscape-right rotated) in Android devices are shown as black screen with audio in iOS devices (when play it). Videos recorded and then reproduced in android works ok when i try to play it using an iOS device is when it fails.

```
I'm using the latest video player and chewie=https://pub.dev/packages/chewie
video player version: 1.0.0
chewie version: 0.10.4
```

i've tried without chewie using just the video player and i got the same output (black screen with audio), using VLC player it works fine, so i guess is something related with how the video is encoding when it's recorded in android and iOS can't decoded it.

This is an example video that i'm using: 
[Video FIle for Testing](https://firebasestorage.googleapis.com/v0/b/semy-staging.appspot.com/o/3fmcgBM22FhUmf2XFDs2j2vZOcI3%2F08ec8141-8df2-4211-94f8-fa5215d11722.mp4?alt=media&token=adebf2fb-b328-414f-9ca2-243e3ee3885b)

```
flutter doctor -v 
[✓] Flutter (Channel stable, 1.22.3, on Mac OS X 10.15.6 19G2021, locale en-US)
    • Flutter version 1.22.3 at /
    • Framework revision 8874f21e79 (12 days ago), 2020-10-29 14:14:35 -0700
    • Engine revision a1440ca392
    • Dart version 2.10.3

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /
    • Platform android-30, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.7, Build version 11E801a
    • CocoaPods version 1.10.0

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin installed
    • Dart plugin version 201.9002
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

• No issues found!
```
Repository: godot
Issue: AnimationPlayer with local-to-scene animation in inherited scene unnecessarily makes resource built-in to that scene
Labels: discussion,topic:core

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
3.2.3

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Gentoo Linux

**Issue description:**
<!-- What happened, and what was expected. -->

When an AnimationPlayer has local-to-scene animations in some specific configurations of inherited scenes, they can't reference the on-disk resources that the parent does.  I need this because I have a root node with an AnimationPlayer that I have subscenes of, but I need to modify the animations in each instance in code (specifically, I'm using it for some really cool rewind behavior) and have them behave separately.  I want each AnimationPlayer to reference the same on-disk resource because they all start with some primitive set of animations and keys that are modified per-instance.  This doesn't prevent it from working, but it does mean that I have to manually reupdate each inherited scene whenever I change the root.

This doesn't appear to happen when the animation is not "Local To Scene", but I wouldn't expect local to scene to do something like this, based on its description, which claims that the resource is made unique in each instance of the scene, not that the resource can't be inherited.

**Steps to reproduce:**

* Create a scene with a root Node2D named `Root`
* Create an AnimationPlayer underneath it
* Create an animation, making it "Local To Scene"
* Save the animation to a .tres file (making sure the animation references that resource)
* Create an inherited scene of `Root` named `Child`, and save it.
* Create an inherited scene of `Child` named `Grandchild`, and save it.
* Suddenly, `Child` and `Grandchild` animations don't reference the .tres file, but are built-in.  No amount of fiddling can make Godot not make them reference the same tres.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->

[InheritanceTestLocal.zip](https://github.com/godotengine/godot/files/5521968/InheritanceTestLocal.zip)