sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Suggestion for incorrect `repr` use
Labels: A-attributes,A-diagnostics,P-low,T-compiler,A-suggestion-diagnostics,D-papercut,A-repr

[When encountering `#[repr = "C"]`](https://github.com/rust-lang/rust/blob/609ffa1a890fd6b8b0364cd7b35bf1d45abf82d0/src/test/ui/repr.stderr), suggest `#[repr(C)]` instead of the current `#[repr(C, packed, ...)]`. We need to detect specific cases like writing `#[repr("packed")]`, where we should suggest `#[repr(packed)]`, as otherwise provide a list of all the valid `repr`s.

(Follow up to #61140)
Repository: rust
Issue: Support more suggestions in template for bad attribute use
Labels: C-enhancement,A-diagnostics,P-low,T-compiler,A-suggestion-diagnostics,D-papercut

Modify

https://github.com/rust-lang/rust/blob/a6ce9b312354cadb046be40398b7e28b616bad28/src/libsyntax/feature_gate.rs#L873-L877

to allow for [multiple suggestions](https://github.com/rust-lang/rust/pull/61026#discussion_r287482937) of the same type.

The following

https://github.com/rust-lang/rust/blob/a6ce9b312354cadb046be40398b7e28b616bad28/src/test/ui/no_crate_type.stderr#L1-L5

should be

```
error: malformed `crate_type` attribute input
  --> $DIR/no_crate_type.rs:2:1
   |
LL | #![crate_type]
   | ^^^^^^^^^^^^^^ malformed input
help: must be of the form:
   |
LL | #![crate_type = "bin"]
   |
LL | #![crate_type = "lib"]
   |
LL | #![crate_type = "..."]
   |
```

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"Blindspot22"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: terminal
Issue: Feature Request: Clients of terminal need a way to inquire about the capabilities of the terminal
Labels: Issue-Feature,Product-Conhost,Area-Server,Area-VT,Product-Terminal

# Summary 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).
-->

Maybe this is as simple as an environment variable like VSCode uses for its terminal e.g. `TERM_PROGRAM=WindowsTerminal` / `TERM_PROGRAM_VERSION=0.0.1.0`.  

# Proposed technical implementation details (optional)

<!-- 
A clear and concise description of what you want to happen.
-->
Start by creating the environment variables above so those of us using PowerShell can adapt our user experience (via PowerShell profiles) to Windows Terminal.
Repository: TypeScript
Issue: Automatically Update html and *css modules
Labels: Suggestion,Awaiting More Feedback

<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
```
declare module '*.html' {
  const content: string;
  export default content;
}

declare module '*.scss' {
  const content: string;
  export default content;
}
```
```
import template from '../test/test.component.html';
import scss from '../test/test.component.scss';
```
If you move file to another location Automatically Update won't work for them.
Feature request: Automatically Update  should work for them.
Repository: youtube-dl
Issue: Site Support Request: cavelis.net
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.05.20. 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.05.20**
- [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.cavelis.net/view/0EB2B6D91ED640C89352E275B26C6DDF
- Tag (e.g. `AzPainter`): https://www.cavelis.net/tag/AzPainter
- Channel: https://www.cavelis.net/live/0xconfig


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE
Repository: create-react-app
Issue: Add caching to DevOps pipeline
Labels: tag: internal

Once caching is publicly available (https://github.com/microsoft/azure-pipelines-yaml/pull/113) in Azure DevOps build pipelines we should see if we can leverage it to speed up our build times.

Related:
#7096
Repository: flutter
Issue: Scaffold should remove statusBar's GestureDetector if it is not root of page.
Labels: c: new feature,framework,f: material design,c: proposal,P3,team-design,triaged-design

Scaffold should remove statusBar's GestureDetector if it's not root of the page.

<img width="421" src="https://user-images.githubusercontent.com/7019862/58522894-cc3c0680-81f4-11e9-8c9c-3034b83c7ff7.png">

For example, my layout is:
````
Column(
    children:[
        Container(),
        Expanded(
            Scaffold(
                bottomNavigationBar,
                body
            )
        )
    ]
)
````
The touch event on top of the body is eaten by statusBar's GestureDetector
Now, my solution is 
````
MediaQuery.removePadding(
      context: context,
      removeTop: true,
      child:Scaffold(),
)
````
But I think it may be better if there is an option or auto remove the statusBar's GestureDetector
Repository: pytorch
Issue: output values not same and much slower than Python API
Labels: module: cpp,triaged

## Issue description
Hello, when I debug this project, input same images and output different values respectively in Python env. and in c++ env. . However, input torch::ones({1,1,224,224}) and output same values. Am I missing some details in bgr2tensor？
C++ API release is much slower than Python API in the same system environment. Inputting a (1,1,224,224) tensor  resumes about 0.2 s/tensor in Python API inference.(ResNet18 replaced Conv1 and Linear Layers)However, it resumes  about 1.9 s/tensor in C++ API inference. And I sure that loading model time is not included because I set clock_ts respectively at the beginning and the end of "auto output = module->forward(inputs).toTensor();". In addition, my gpu device is RTX2080Ti.


## Code example
void bgr2tensor(const char * path, torch::Tensor &output)
{
	Mat img = imread(path, 0);
	if (img.empty()) {
		printf("load image failed!");
		system("pause");
	}

	cv::resize(img, img, { 224,224 });
	img.convertTo(img, CV_32F, 1.0 / 255.0);
	//cv::cvtColor(img, img, cv::COLOR_BGR2RGB);
	auto img_tensor = torch::from_blob(img.data, { 1,224,224,1 }, torch::kFloat32);// opencv H x W x C  torch C x H x W
	img_tensor = img_tensor.permute({ 0,3,1,2 });
	//img_tensor = img_tensor.toType(torch::kFloat32);
	//img_tensor = img_tensor.div(255);
	
	//img_tensor[0][0] = img_tensor[0][0].sub_(0.485).div_(0.229);
	//img_tensor[0][1] = img_tensor[0][1].sub_(0.456).div_(0.224);
	//img_tensor[0][2] = img_tensor[0][2].sub_(0.406).div_(0.225);

	output = img_tensor.clone();
}
int main()
{
        ..............
        bgr2tensor("D:\\pic1\\Class10\\Class10\\Test\\0045.png", dog);
        dog = dog.to(at::kCUDA);
        at::Tensor output = module->forward({ dog }).toTensor();
        ...............
}

## System Info
Win10,  Visual Studio 2017，OpenCV 3.4.6, libtorch withDebug/withRelease c++, CUDA10.1 cudnn7.5.1，CMake 3.14，ResNet 18 with Single Channel（Grey image）
Repository: create-react-app
Issue: Update Verdaccio
Labels: tag: internal

Let's update Verdaccio once https://github.com/verdaccio/verdaccio/issues/1328 and https://github.com/verdaccio/verdaccio/issues/1329 are sorted. We had to work around these issues in a fork that @willsmythe created. See https://github.com/facebook/create-react-app/pull/7096 and https://github.com/ianschmitz/create-react-app/pull/2 for more context.
Repository: TypeScript
Issue: [site] looks like toc miss Utility Types  and tsconfig.json has 2
Labels: Docs


1. toc miss Utility Types https://www.typescriptlang.org/docs/handbook/utility-types.html#requiredt
2. tsconfig.json has 2



![image](https://user-images.githubusercontent.com/167966/58533463-349dde80-821b-11e9-882d-6a63c731d64a.png) 
![image](https://user-images.githubusercontent.com/167966/58533486-42536400-821b-11e9-9ada-0f1644e14ccf.png) 
![image](https://user-images.githubusercontent.com/167966/58533491-467f8180-821b-11e9-8d32-bc324cb59eb7.png)



![image](https://user-images.githubusercontent.com/167966/58533472-38c9fc00-821b-11e9-9b66-5bfa7e73a421.png) 
![image](https://user-images.githubusercontent.com/167966/58533481-3f587380-821b-11e9-8871-42d60db04c51.png)
Repository: vscode
Issue: Add support to distinguish between diagnostics created by a reconciler and a builder
Labels: feature-request,api,languages-diagnostics

Short summary: currently it is very hard to handle / merge diagnostics that come from to different source having the same owner. This either leads to stale problems or missing problems. For a lengthy discussion see https://github.com/Microsoft/vscode/issues/61140

Having support to distinguish between diagnostics create by a reconciler and a builder would help solve that problem.
Repository: flutter
Issue: Can't use TimeofDay in CupertinoApp due to MaterialLocalization 
Labels: framework,f: material design,a: internationalization,f: cupertino,has reproducible steps,P2,found in release: 3.3,found in release: 3.5,team-design,triaged-design

I'm using Cupertino Widgets in my App where I started from CupertinoApp. Now I'm using **TimeofDay.now** to print time. But it gives an Error of **MaterialLocalization** when I use the Code given below:
Because TimeofDay is only Present in **MaterialApp** but I dont want to import Material.dart or use Material Widgets. Can anyone help me to solve the material localization Error and Guide me how to use **TimeofDay.now** for **CupertinoApp.** Thanks.
Repository: flutter
Issue: Support data layers, GeoJSON in google maps plugin
Labels: c: new feature,customer: crowd,p: maps,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

Hello. 

I can't find data layers features and opportunity to display GeoJson.

Here is descriptions of these features:

https://developers.google.com/maps/documentation/android-sdk/utility/
https://github.com/googlemaps/android-maps-utils
https://developers.google.com/maps/documentation/javascript/datalayer

Here is illustrations on these features:

![image](https://user-images.githubusercontent.com/18647037/58554245-2651c180-821f-11e9-99ee-1940f9512800.png)

![image](https://user-images.githubusercontent.com/18647037/58554268-3669a100-821f-11e9-9ebd-8fbfc66e3529.png)

Do you plan to add these features to the Google Map plugin?
Repository: pytorch
Issue: Misleading Error when doing Large Batch Matrix Multiplication
Labels: module: cuda,triaged

## 🐛 Bug

When doing Batch Matrix Multiplication in Pytorch 1.1.0, when too much memory is needed, instead of throwing a meaningful error (the way it was in previous versions e.g. Buy new RAM!), 
`Pytorch RuntimeError: [enforce fail at CPUAllocator.cpp:56] posix_memalign(&data, gAlignment, nbytes) == 0. 12 vs 0` error is thrown as also mentioned [here](https://discuss.pytorch.org/t/pytorch-runtimeerror-enforce-fail-at-cpuallocator-cpp-56-posix-memalign-data-galignment-nbytes-0-12-vs-0/46072).

## Environment
PyTorch version: 1.1.0
Is debug build: No
CUDA used to build PyTorch: 10.0.130

OS: Ubuntu 18.04.2 LTS
GCC version: (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
CMake version: version 3.10.2

Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce RTX 2080 Ti
Nvidia driver version: 410.93
cuDNN version: Could not collect

Versions of relevant libraries:
[pip3] numpy==1.16.2
[conda] blas                      1.0                         mkl  
[conda] botorch                   0.1.0                    pypi_0    pypi
[conda] gpytorch                  0.3.2                    pypi_0    pypi
[conda] mkl                       2019.1                      144  
[conda] mkl-service               1.1.2            py37he904b0f_5  
[conda] mkl_fft                   1.0.10           py37ha843d7b_0  
[conda] mkl_random                1.0.2            py37hd81dba3_0  
[conda] pytorch                   1.1.0           py3.7_cuda10.0.130_cudnn7.5.1_0    pytorch
[conda] torch-cluster             1.2.4                    pypi_0    pypi
[conda] torch-geometric           1.1.2                    pypi_0    pypi
[conda] torch-scatter             1.1.2                    pypi_0    pypi
[conda] torch-sparse              0.2.4                    pypi_0    pypi
[conda] torchvision               0.3.0           py37_cu10.0.130_1    pytorch
Repository: go
Issue: reflect: decide, document whether custom Type implementations are supported
Labels: Documentation,NeedsDecision,compiler/runtime

Does the reflect package support users who implement Type themselves?

https://golang.org/pkg/reflect/#Type has unexported methods, but it's still possible to implement it by embedding a reflect.Type and using the normal (`*rtype`) type.

The documentation doesn't say that it's not allowed, but apparently people do it:

     https://godoc.org/gorgonia.org/tensor#Dtype

This apparently worked (enough? kinda?) at some point, and then we broke it, probably because we never imagined somebody would do this. That led to sending https://golang.org/cl/179338

This bug is to decide whether that's supported and to document. If it's supported, it needs tests.

/cc @ianlancetaylor @rsc @bcmills @randall77 @aclements @cherrymui
Repository: pytorch
Issue: [JIT] Expose subgraph execution for intermediate output extraction
Labels: oncall: jit,enhancement,TSUsability,TSRootCause:PoorIRVisibility

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->

## Motivation

Let's suppose we have a model (e.g., `torchvision.models.resnet18()`. The user wants to extract a set of intermediate activations of this model (e.g., to get the output of `layer2` and `layer3`). 
The current recommended way of extracting those intermediate outputs of a model generally involves having to rewrite the model so that it returns those outputs.

This is annoying, and makes it harder to compute only a subset of the model (e.g., I just want the output of `layer3`, so I don't need to compute `layer4` and the other layers).

There are several alternatives which only partially work:
- using hooks (doesn't work with the JIT, and always forward through the whole model)
- rewriting forward of the model
- using fragile hacks like [this one in torchvision](https://github.com/pytorch/vision/blob/master/torchvision/models/_utils.py)

One possiblity would be to allow `TorchScript` models to return arbitrary intermediate nodes in the graph (which is static).

One possible API could be
```python
model = torch.jit.script(resnet18(), outputs=['layer3._6', 'layer4._3'])
# model now stops at layer4, and returns a tuple / dict
out1, out2 = model(input)
``` 

One complication is that we would need to know the name of the output tensors that script uses, which I believe is not guaranteed to be consistent between versions. But we could name the return values of all functions / modules in a consistent way (like `output`), so that the users can just do
```python
model = torch.jit.script(resnet18(), outputs=['layer3.output', 'layer4.2.output'])
```

Plus, with this we might even be able to let the user specify the starting point of the graph, so that he can skip parts of the model
```python
model = torch.jit.script(resnet18(), inputs=['layer3.output'], outputs=['fc'])
# now model only goes from layer3 to fc, and input
# is fed directly to layer3.output
output = model(input)
```
even though I'm not sure there is as much interest on such functionality

## Pitch

A simple, easy and robust way to perform intermediate feature extraction in PyTorch that doesn't require rewriting the forward pass.

## Alternatives

The alternatives are not great IMO:
- rewrite the forward pass
- use hooks (and thus no JIT)
- use hacks like [this](https://github.com/pytorch/vision/blob/master/torchvision/models/_utils.py)


cc @suo @gmagogsfm
Repository: PowerToys
Issue: Temporary File Bin
Labels: Idea-New PowerToy

If a user can drag and drop a file in corner of a screen to keep a reference to it there to open or copy or drag and drop later, would be very handy.

Check out [Unclutter](https://unclutterapp.com/panels/files/). This actually has 3 things: clipboard manager (apparently MS is working on one, hope it's any good), file bin, and notes. I'm interested in file bin specially.

It should have basic functionality like keyboard navigation, search functionality, preview etc.

![unclutter](https://unclutterapp.com/images/unclutter/v3/app-pocket-files.png)
Repository: PowerToys
Issue: [Shortcut Guide] Show All Application Shortcuts
Labels: Idea-Enhancement,Idea-New PowerToy,Product-Shortcut Guide,Status-In progress

A hot key that can show all the applications shortcuts, so it makes it easier to remember them. E.g. you press that and it shows this window.
![shortcut](https://www.ergonis.com/images/products/kc/kc_finder-tenaya.png)

It should be able to find all the application's shortcuts which is in focus and list them. 

[ergonis KeyCue](https://www.ergonis.com/products/keycue/)  is a product on a Mac that does this
Repository: go
Issue: x/build: set up Gerrit latency monitoring
Labels: Builders,NeedsInvestigation

I regularly encounter Gerrit latency & server errors lately but my bug reports to the team are rarely found to be detailed enough to be actionable or reproducible, or are viewed as anecdotal.

We should probably start gathering our own data on Gerrit latency & reliability with enough data to file actionable bug reports.

We could also use said data to see if Gerrit is getting better or worse over time, and to inform any migration decisions we make in the future.

Maybe just set up our own Stackdriver probers from a number of regions?

/cc @dmitshur
Repository: go
Issue: syscall: Windows Errno constants invalid
Labels: help wanted,OS-Windows,NeedsFix

These constants: https://golang.org/src/syscall/types_windows.go#L7

Should appear in these constants: https://golang.org/src/syscall/zerrors_windows.go#L16

... because the latter are currently useless for comparison with Errno values, unlike other supported OSes. For example `err.(*os.PathError).Err == syscall.ENOTEMPTY` is never true on Windows.

Filed at request of @rsc 

@gopherbot add OS-Windows
Repository: kubernetes
Issue: OIDC cache returns old token even after the expiration of refresh token in k8s go-client oidc auth provider
Labels: kind/bug,priority/important-soon,sig/auth,help wanted,lifecycle/frozen

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!

If the matter is security related, please disclose it privately via https://kubernetes.io/security/
-->


**What happened**:
When a client's oidc token has expired, even on passing the latest token to create a client, newOIDCAuthProvider() returns the old client with the expired tokens.

In https://github.com/kubernetes/client-go/blob/79226fe1949a01066ee9e3a3f4c53546d72e1194/plugin/pkg/client/auth/oidc/oidc.go#L122
newOIDCAuthProvider()

Cached Client is retrieved as shown below

// Check cache for existing provider.
if provider, ok := cache.getClient(issuer, clientID); ok {
return provider, nil
}

However, when after token expiration, when we make a new call to create a client, the refresh token would be different. Since we use (key := cacheKey{issuer, clientID}) as cached key in this case it will still return old token.

**What you expected to happen**:
On passing the new refresh token, the code should return new client

**How to reproduce it (as minimally and precisely as possible)**:
1. Create a go-client to a cluster with oidc based auth
2. Use the client for cluster based operations, this verifies client works.
3. Do not stop the process using the client.
4. After the token expiry, the code will use the new Kubeconfig with the new token to create a new client.
5. Use the client for cluster based operation. It will fail with token expired error.


**Anything else we need to know?**:
Similar issue opened few years back.
https://github.com/kubernetes/client-go/issues/268

**Environment**:
- Go client version.
    `@k8s.io/client-go` v11.0.0
- Kubernetes version (use `kubectl version`):
  1.14.1
- Cloud provider or hardware configuration:
- OS (e.g: `cat /etc/os-release`):
  Ubuntu
- Kernel (e.g. `uname -a`):
 4.15.0-1037-aws
- Install tools:
- Network plugin and version (if this is a network-related bug):
- Others:

/sig auth
@liggitt
Repository: flutter
Issue: [web] Implement production and test entry point embedders
Labels: tool,engine,platform-web,P2,team-web,triaged-web

On the Web we need to initialize the page for Flutter's consumption, such as load fonts, configure `<meta>` viewport tags, and so on. Let's call such initialization code an "embedding" of Flutter. We currently have two such embeddings:

- **Production embedding**: prepares a web-page for running an app normally. This is the embedding you get when you run `flutter run`.
- **Test embedding**: prepares a web-page for running a test. The test embedding hardcodes some things irrespective of the actual browser window, such as default to device pixel ratio of 3.0, and replace all fonts with the "Ahem" font.

We need to implement these two embeddings such that user code does not need to altered to run on the web. For example, user-written code should not call `ensureTestPlatformInitializedThenRunTest`, or `webOnlyInitializeTestDomRenderer`.
Repository: go
Issue: x/build: alert on "bad" logs
Labels: Builders,NeedsFix

We should get alerts if we see new/many "bad" log messages from our various services.

For some definition of new, many, and bad.

Maybe bad could mean it has "error" in it. Or a dozen other phrases.

(forking from https://go-review.googlesource.com/c/build/+/179419/1/cmd/coordinator/gce.go#b193 )

/cc @bcmills @dmitshur