sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: cmd/go: support -buildmode=c-archive on android/arm64
Labels: help wanted,OS-Android,NeedsInvestigation,FeatureRequest

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.12.9 linux/amd64
</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
GOARCH="arm64"
GOBIN=""
GOCACHE="/home/vagrant/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="android"
GOPATH="/usr/local/go/go_packages:/vcb"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="/toolchain/aarch64-linux-android//bin/aarch64-linux-android-clang"
CXX="/toolchain/aarch64-linux-android//bin/aarch64-linux-android-clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build250707415=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

```
go build -o libtest.a -buildmode=c-archive -x
```

### What did you expect to see?

An archive file targeting android/arm64 to be built

### What did you see instead?

```
invalid value "c-archive" for flag -buildmode: buildmode c-archive not supported on android/arm64
```
Repository: pytorch
Issue: [RFC] NestedTensor - 0.0.2
Labels: triaged

This issue tracks discussion around [NestedTensor RFC 0.0.2](https://docs.google.com/document/d/1hrIV14FvQajiUbkF43Cor8fii51XY6fMkEw5Q4tMOak/edit). 

The linked document is a view-only Google doc. Please leave your comments here.

For a general overview over the project [see the FYI issue](https://github.com/pytorch/pytorch/issues/25032).
Repository: tensorflow
Issue: How to create Python extension module that uses TensorFlow C API?
Labels: stat:awaiting tensorflower,type:support,comp:runtime,TF 2.8

<em>Please make sure that this is a build/installation issue. As per our [GitHub Policy](https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md), we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em>

**System information**
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS 10.13.6
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
- TensorFlow installed from (source or binary): binary
- TensorFlow version: 1.14.0
- Python version: 3.7.3
- Installed using virtualenv? pip? conda?: conda
- Bazel version (if compiling from source):
- GCC/Compiler version (if compiling from source):
- CUDA/cuDNN version: n/a
- GPU model and memory: n/a



**Describe the problem**



I've written a Python extension module that uses TensorFlow through the C API. I installed the API as described in https://www.tensorflow.org/install/lang_c. On its own, my module works correctly. But if I import my extension module and then also `import tensorflow`, Python crashes with this error.

```
[libprotobuf ERROR external/protobuf_archive/src/google/protobuf/descriptor_database.cc:58] File already exists in database: tensorflow/core/protobuf/master.proto
[libprotobuf FATAL external/protobuf_archive/src/google/protobuf/descriptor.cc:1370] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size): 
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size): 
Abort trap: 6
```

I believe this happens because the C API includes its own complete copy of TensorFlow, so now I get two different copies loaded into the same process at the same time.

What is the solution to this? How can I have Python code that uses TensorFlow, and also invokes C code that uses TensorFlow?


**Provide the exact sequence of commands / steps that you executed before running into the problem**


**Any other info / logs**
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
Repository: flutter
Issue: GPUSurfaceGL::CreateOrUpdateSurfaces creates surfaces twice on startup
Labels: engine,P2,team-engine,triaged-engine

I was debugging an issue about how we create our offscreen surfaces for iOS and found that this function creates surfaces twice on startup.

Such behavior could be explained if the second surface was a different size, but both report being created with the same size. @chinmaygarde indicated that this shouldn't be happening and needs investigation.
Repository: pytorch
Issue: Feature request: Fix dimension convention for masks in transformer
Labels: feature,module: nn,triaged

In PyTorch 1.2,

For `nn.Transformer`, the `src` dimensions correspond to `S, N, E` (sequence position, batch index, embedding feature), but the `src_key_padding_mask` dimensions correspond to `N, S`. That is, the batch is the second dimension of `src` but the first dimension of `src_key_padding_mask` (and other masks). I find this pretty confusing and inconsistent: either all parameters should be batch-first or they all should be batch-second.

Relatedly, there should probably be an option analogous to the LSTM's `batch_first` argument.
Repository: flutter
Issue: "flutter bash-completion" fails when the tool needs to rebuild itself
Labels: tool,P2,team-tool,triaged-tool

A fix for this was proposed in https://github.com/flutter/flutter/pull/37845 but it unfortunately broke some tests so it was reverted in https://github.com/flutter/flutter/pull/39160.

cc @gspencergoog @christopherfujino @ryenus
Repository: pytorch
Issue: Serialization does not work for quantized modules
Labels: module: serialization,triaged,quantization_release_1.3

## 🐛torch.load() followed by torch.save() does not work for quantized modules as super class state is not preserved.
<!-- A clear and concise description of what the bug is. -->
Problem is related to quantized modules directly implementing __setstate() and __getstate() functions 
without calling parent class (nn.Module) __setstate() function. Module expects state to be a dict:
https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/module.py#L568
## To Reproduce
```
import torch
myMod = torch.nn.quantized.Conv2d(2,2,1)
torch.save(myMod, 'test.pt')
print(myMod._modules)
```
prints:
```
Conv2d(2, 2, kernel_size=(1, 1), stride=(1, 1), scale=1.0, zero_point=0)
OrderedDict()
```
```
testMod = torch.load('test.pt')
print(testMod._modules)
```

Errors out with:
```
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-7-d7a4bb2ceef8> in <module>
      1 testMod = torch.load('test.pt')
----> 2 print(testMod._modules)

/mnt/xarfuse/uid-172846/7eacb818-ns-4026531840/torch/nn/modules/module.py in __getattr__(self, name)
    589                 return modules[name]
    590         raise AttributeError("'{}' object has no attribute '{}'".format(
--> 591             type(self).__name__, name))
    592 
    593     def __setattr__(self, name, value):

AttributeError: 'Conv2d' object has no attribute '_modules'
```
Repository: flutter
Issue: flutter fails to detect adb network device
Labels: c: new feature,tool,P3,team-tool,triaged-tool

I am trying to develop with Android device on adb network so that it will be easy for development.
I am able to detect the device on cmd but flutter devices fail to detect.


#### Adb devices 
![adb-devices](https://user-images.githubusercontent.com/12843168/63634467-6b499080-c674-11e9-886a-06a12e65012b.png)

#### Flutter devices 
![flutter-devices](https://user-images.githubusercontent.com/12843168/63634496-e57a1500-c674-11e9-994c-ae771db1c244.PNG)

If this was not considered before then please add this feature to make the development more easier. (Dream of cable-less development) :)
Repository: rust
Issue: null trait object raw pointers are UB
Labels: T-lang,A-raw-pointers,C-discussion,T-opsem,A-trait-objects

Opening after some discussion in https://github.com/rust-lang/miri/issues/918#issuecomment-524554552

This playground snippet crashes on an illegal instruction on release: https://play.rust-lang.org/?version=stable&mode=release&edition=2018&gist=7c69493026add62256996d204e1278c0
Are vtable ptrs in trait object ptrs NonNull? Is that intended? This (2 year old) comment would suggest so https://github.com/rust-lang/rfcs/issues/433#issuecomment-345497470

CC @RalfJung
Repository: rust
Issue: Unnecessary HasParamEnv bound on C for FnTypeExt
Labels: C-cleanup,T-compiler

https://doc.rust-lang.org/nightly/nightly-rustc/rustc/ty/layout/trait.FnTypeExt.html
Repository: flutter
Issue: [Proposal]ExpansionTile should allow flexible content
Labels: c: new feature,framework,f: material design,customer: crowd,c: proposal,P3,team-design,triaged-design

`ExpansionTile` makes it very hard to get the following behavior:

![image](https://user-images.githubusercontent.com/2412819/63640660-1bce8900-c6a3-11e9-8a94-f3402d3de965.png)

(The size of the `ExpansionTile` adapts to the size of the `ListView` inside, until it takes all the available space, at which point the `ListView` allows scrolling.)

My naive attempts give a layout exception, and the proposed solutions (see #23464) are unsatisfactory: Using a `SizedBox` is not an option as the size must adapt to the list content. Using `shrinkWrap` fails with big lists: the list doesn't scroll, it overflows.

I think the difficulty comes from the way `ExpansionTile` wraps its `children` argument:

```dart
Container(
  ...
  child: Column(
    mainAxisSize: MainAxisSize.min,
    children: <Widget>[
      ListTile holding expand icon...,
      ClipRect(
        child: Align(
          heightFactor: _heightFactor.value,
          child: Column(children: widget.children),
        ),
      ),
    ],
  ),
);
```

I got the desired result by replacing this code with the following:

```dart
Container(
  ...
  child: Column(
    mainAxisSize: MainAxisSize.min,
    children: <Widget>[
      ListTile holding expand icon...,
      Flexible(
        child: ClipRect(
          child: Align(
            heightFactor: _heightFactor.value,
            child: Column(
              mainAxisSize: MainAxisSize.min,
              children: widget.children,
            ),
          ),
        ),
      ),
    ],
  ),
);
```

There's a `Flexible` added around the `ClipRect`, and the inner `Column` now has `mainAxisSize: MainAxisSize.min` like the outer `Column` already has. With these changes I can implement the desired behavior like this:

```dart
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('Test App')),
        body: Column(
          children: <Widget>[
            ListTile(title: Text('First tile')),
            Flexible(
              child: ExpansionTile(
                title: Text('Expansion tile'),
                children: [
                  Flexible(
                    child: ListView(
                      shrinkWrap: true,
                      children: [
                        for (var i = 0; i < 30; ++i)
                          ListTile(title: Text('Tile $i')),
                      ],
                    ),
                  ),
                ],
              ),
            ),
            ListTile(title: Text('Last tile')),
          ],
        ),
      ),
    );
  }
}
```

Would it be appropriate to make such changes to `ExpansionTile` to make it more flexible?
Repository: youtube-dl
Issue: BBC athletics which is not on iplayer cannot be downloaded by youtube-dl currently
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.08.13. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2019.08.13**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://www.bbc.co.uk/sport/live/athletics/49397903


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

This is 2hr 20min of athletics as covered by the BBC. It is not available currently on the iPlayer so only via this web page.

YouTube-dl does not know how to parse the page.

youtube-dl  https://www.bbc.co.uk/sport/live/athletics/49397903[bbc] 49397903: Downloading webpageERROR: no suitable InfoExtractor for URL https://www.bbc.co.uk/programmes/None
Repository: create-react-app
Issue: Add option to watch all file changes in project tree
Labels: issue: proposal

### Problem

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

When I import GLSL files as strings using https://github.com/pveyes/raw.macro as discussed in #3722, changes to the GLSL files don't trigger HMR. This is a bit cumbersome for WebGL development in React, since WebGL requires having the GLSL code available as a string in Javascript.

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

An optional behavior for HMR, where changes to any file in the tree trigger reload, similar to that of https://github.com/napcs/node-livereload would help with this. This way a user that has special HMR needs 

### Describe alternatives you've considered

<!--
  Let us know about other solutions you've tried or researched.
-->

#### Template literals

Putting the GLSL code in a template literal like this:
```js
const shaderSource = `
void main() {
  gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);;
}
`
```
It works with HMR since you change Javascript code instead of a separate shader file, but this breaks currently available tooling for GLSL since they require having the code in a separate .glsl file.

#### Ejecting CRA

Ejecting and using https://github.com/webpack-contrib/raw-loader with custom webpack config. I don't know if this would trigger a reload on .glsl file change.
Repository: godot
Issue: NodePath `^` operator doesn't have auto-completion (`@` in `3.x`)
Labels: enhancement,topic:gdscript,topic:editor,usability

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
89bcfa4b3

**Issue description:**
Sooo there's this `@` operator, which is mostly used for NodePaths, like, you can export a NodePath and give it a default value with `@"path/to/node"`. But the operator doesn't provide any nice autocompletion like `$` does. It's probably disputable whether it should have it or not, but it occurred to me once that it could be useful sometimes.
Repository: pytorch
Issue: euclidean distance between two tensors
Labels: triaged,function request,module: distance functions

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
euclidean distance as used in prototypical networks, included in standard PyTorch library.

## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
code from prototypical networks

```
def euclidean_dist( x, y):
    # x: N x D
    # y: M x D
    n = x.size(0)
    m = y.size(0)
    d = x.size(1)
    assert d == y.size(1)

    x = x.unsqueeze(1).expand(n, m, d)
    y = y.unsqueeze(0).expand(n, m, d)

    return torch.pow(x - y, 2).sum(2)
```
## Pitch

<!-- A clear and concise description of what you want to happen. -->

## Alternatives

<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->

## Additional context

<!-- Add any other context or screenshots about the feature request here. -->
Repository: flutter
Issue: Compiler error messages get buried
Labels: tool,a: first hour,a: quality,P2,team-tool,triaged-tool

```
ianh@burmese:~/dev/dummy$ flutter run
Launching lib/main.dart on Pixel 3 XL in debug mode...
Initializing gradle...                                              0.6s
Resolving dependencies...                                           1.4s
Running Gradle task 'assembleDebug'...                          


Compiler message:

lib/main.dart:4:23: Error: Method not found: 'BoxToRenderFrameAdapter'.

void main() => runApp(BoxToRenderFrameAdapter(

                      ^^^^^^^^^^^^^^^^^^^^^^^

Compiler failed on /home/ianh/dev/dummy/lib/main.dart



FAILURE: Build failed with an exception.



* Where:

Script '/home/ianh/dev/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 765



* What went wrong:

Execution failed for task ':app:compileFlutterBuildDebugArm64'.

> Process 'command '/home/ianh/dev/flutter/bin/flutter'' finished with non-zero exit value 1



* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.



* Get more help at https://help.gradle.org



BUILD FAILED in 6s
Running Gradle task 'assembleDebug'...                              6.5s
Gradle task assembleDebug failed with exit code 1
ianh@burmese:~/dev/dummy$ 
```

This is way too long (in part because we seem to be adding extra newlines in the output? But also because Gradle.) In fact when I just saw this it was so long that it went off the top of my screen and all I saw was the text from "What went wrong" to the bottom, which is entirely unactionable and useless.

It need not, and should not, be more than the following:

```
ianh@burmese:~/dev/dummy$ flutter run
Launching lib/main.dart on Pixel 3 XL in debug mode...
Initializing gradle...                                              0.6s
Resolving dependencies...                                           1.4s
Running Gradle task 'assembleDebug'...                          
Compiler error:
lib/main.dart:4:23: Error: Method not found: 'BoxToRenderFrameAdapter'.
void main() => runApp(BoxToRenderFrameAdapter(
                      ^^^^^^^^^^^^^^^^^^^^^^^
ianh@burmese:~/dev/dummy$ 
```
Repository: godot
Issue: Button: Instead of having action modes, let's have seperate "button pressed", "button just pressed"and "button released" signals
Labels: discussion,topic:core

**Godot version:**
3.1 stable

Input maps and buttons should follow the same train of thought. I don't see the benefit of another system (maybe some can explain what the benefits of action modes might be). It just makes it harder to learn and more confusing imho.

https://github.com/godotengine/godot/issues/4625
https://www.reddit.com/r/godot/comments/bsrc6k/button_toggle_mode_button_release/
Repository: pytorch
Issue: Incorrect Validation Accuracy Due to Distributed Sampler
Labels: oncall: distributed,module: dataloader,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

The new `DistributedSampler` pads the number of samples to make it divisible by the number of processes, which is a bit similar to `drop_last` in `DataLoader` while here `DsitributedSampler` duplicates the last few samples instead of dropping them.

This will definitely cause incorrect validation accuracy when you want to use distributed validation.

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
```Python
    def __iter__(self):
        # deterministically shuffle based on epoch
        g = torch.Generator()
        g.manual_seed(self.epoch)
        if self.shuffle:
            indices = torch.randperm(len(self.dataset), generator=g).tolist()
        else:
            indices = list(range(len(self.dataset)))


        # add extra samples to make it evenly divisible
        indices += indices[:(self.total_size - len(indices))]
        assert len(indices) == self.total_size

        # subsample
        indices = indices[self.rank:self.total_size:self.num_replicas]
        assert len(indices) == self.num_samples

        return iter(indices)
```


## Environment
 - PyTorch Version (1.2.0):

## Feature Request
Add `drop_last` or `duplicate_last` option in `DistributedSampler`.

cc @SsnL @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera
Repository: react
Issue: onMouseEnter event missing when component hides on top of another (i.e. contextual menu)
Labels: Component: DOM,Type: Needs Investigation

I provide a codepen example showcasing the issue here,
https://codepen.io/ivalduan/pen/VwZpmMQ

1. The component on the screen tracks correctly a hover state of the mouse pointer
2. With the right button you create a contextual menu without covering the text and the hover state is correct when the mouse is over the menu
3. When you select and option of the contextual menu on top of the background component the second does not receive an onMouseEnter event and the hover state remains false when it should be true