sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: _network_image_io.dart does not play well with HttpOverrides
Labels: a: tests,framework,P2,team-framework,triaged-framework

## Steps to Reproduce

Make a unit test something like
```
testWidgets('a', (tester) async {
  await HttpOverrides.runZoned(() async {
    tester.pumpWidget(Image.network('http://example.com/a'));
  }, createHttpClient: (_) => StubHttpClient([
  HttpTestData('http://example.com/a', data: Uint8List()),
  ]),
});
testWidgets('b', (tester) async {
  await HttpOverrides.runZoned(() async {
    tester.pumpWidget(Image.network('http://example.com/b'));
  }, createHttpClient: (_) => StubHttpClient([
  HttpTestData('http://example.com/b', data: Uint8List()),
  ]),
});
```

The outcome is the second test to run will fail, because the `http.Client` generated during the first test will persist into the second test, leading the cached StubHttpClient to complain that there is no data for `http://example.com/b`.

The problem is _network_image_io.dart uses `static final HttpClient _sharedHttpClient = HttpClient()..autoUncompress = false;`

Which, since it's essentially a global variable that initializes once lazily, means HttpOverrides is not honored.

My suggested fix would be to replace that declaration with
```
static HttpClient? _sharedHttpClient;
static HttpOverrides? _previousHttpOverrides;
```
and replace the _httpClient getter with
```
  static HttpClient get _httpClient {
    if (_sharedHttpClient == null || _previousHttpOverrides != HttpOverrides.current) {
      _sharedHttpClient?.close();
      _sharedHttpClient = HttpClient()..autoUncompress = false;
      _previousHttpOverrides = HttpOverrides.current;
    }
    HttpClient client = _sharedHttpClient;
    assert(() {
      if (debugNetworkImageHttpClientProvider != null)
        client = debugNetworkImageHttpClientProvider!();
      return true;
    }());
    return client;
  }
```
Repository: flutter
Issue: [in_app_purchase] IAPSource removed
Labels: d: api docs,p: in_app_purchase,package,team-ecosystem,P2,triaged-ecosystem

I'm just migrating to Flutter 2.0 and upgraded this package to see `IAPSource` enum has been removed, it was the type for `PurchaseVerificationData.source` however it's now of type `String`. It's not been commented in the [changelog](https://pub.dev/packages/in_app_purchase/changelog) (unless I've missed it) and now it's a String I'm uncertain as to what the valid values are. I would assume `AppStore` and `GooglePlay`? but uncertain as could be camelCase.

I would suggest adding a comment to the `PurchaseVerificationData.source` method so people know how to use this?
Repository: flutter
Issue: [video_player] No way to tell when buffering has stalled
Labels: p: video_player,package,team-ecosystem,P3,triaged-ecosystem

I'm trying to figure out when the video stalls but i end up in a situation where the video is stopped but _isPlaying_ and _isBuffering_ are both **true**.

Is it possible to have a solution to this problem?
Repository: godot
Issue: When enumerations of a global script are called, it gives an error in the editor (it does not affect the execution of the game)
Labels: topic:gdscript


**Godot version:**
3.3.2


**OS/device including version:**
GLES2


**Issue description:**
when I call an enum from a global script, it gives the following error in the editor: invalid index 'YouEnumName' in constant expression



this only happens when you open the project, it is solved when you change the enum to a constant or a variable. But as I said if you close and open the error appears
Repository: pytorch
Issue: Energy-efficiency benchmarks?
Labels: feature,triaged

## 🚀 Feature

Would it be a good idea to have energy-efficiency benchmarks?

## Motivation
Deep Learning is power-hungry.

Not to sound like a luddite, but better energy-efficiency is eco-friendly, and can save money if performance isn't adversely affected (running models on a cloud would actually save the cloud platform some money, but not the end-user). 

![power consumption](https://user-images.githubusercontent.com/76181208/120686227-62e7d180-c466-11eb-8a42-f81659b5d113.PNG)


From [_Energy and Policy Considerations for Deep Learning in NLP_, ACL 2019](https://www.aclweb.org/anthology/P19-1355.pdf)

## Pitch

Currently, I don't know how to go about this - even if we'd have energy-efficiency benchmarks, would there always be a way to achieve high energy-efficiency without sacrificing on performance?

The PyTorch community has always been very helpful, so I'm hoping others will weigh in.

## Alternatives

Cloud platforms already seem to be offering optimized custom PyTorch builds in some of their product-offerings. They might be interested in energy-efficiency as well.

cc @bertmaher @kimishpatel @robieta @ezyang
Repository: vscode
Issue: Setting service should return default value when json scheme is invalid
Labels: debt,config

To protect against invalid values the setting service should provide some sort of sanitization. Reading back a broken user setting can cause unexpected behavior. This is particularly evident in the rare cases where we update a setting in insiders and it syncs to stable causing unrecoverable exceptions.

My proposal is to sanitize user input to ensure that the expected type is what is in the user's settings.json if not then we return the default value.

/cc @bpasero As this relates to our discussion earlier. Feel free to add anything
Repository: kubernetes
Issue: Exec timeout does not kick users out on kubectl client 1.21
Labels: kind/bug,sig/node,priority/important-longterm,triage/accepted

<!-- 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:
Exec-ing onto a pod does not kick you out.
#### What you expected to happen:
To get kicked out of the pod after the container runtime specified time is reached.
#### How to reproduce it (as minimally and precisely as possible):
- configure your kubectl client to 1.21
- `kubectl exec -it <any pod> -- sh`
- wait however long your container runtime is set to and see that it doesn't kick you out.
#### Anything else we need to know?:

#### Environment:
- Kubernetes version (use `kubectl version`):
```
$ k version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-12T14:18:45Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1+IKS", GitCommit:"04e16b9d6c7af21e462f7ac675c34b667cd6149e", GitTreeState:"clean", BuildDate:"2021-05-24T08:19:13Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}
```
- Cloud provider or hardware configuration:
- OS (e.g: `cat /etc/os-release`):
- Kernel (e.g. `uname -a`):
- Install tools:
- Network plugin and version (if this is a network-related bug):
- Others:
We're using containerd 1.5.2 and konnectivity 0.19

/sig cli
Repository: storybook
Issue: [BUG] Arrows in markdown code snippets are way off on the right
Labels: bug,addon: docs,block: description

### Describe the bug

Arrows in markdown code snippets are way off on the right


### Steps to reproduce the behavior

1. Install Storybook 6.2.9 in a new project
2. Create a story with this content

```jsx

import React from 'react';

const Template = (args) => <button {...args} />;

const DESCRIPTION = ```

\`\`\`js
const arrowFunction = () => 42;
\`\`\`

```

```jsx
export default {
  title: 'ButtonCategory/Button',
  component: Button,
  parameters: {
    docs: {
      description: {
        component: DESCRIPTION,
      }
    },
  },
};
```

### Expected behavior

The arrow should be where it is in the text and not far out on the right.

### Screenshots and/or logs

![image](https://user-images.githubusercontent.com/11246258/120689169-ae937e80-c458-11eb-9786-edf17765bb2b.png)

### Environment

 - OS: MacOS Big Sur 11.2.3
 - Node.js version: v14.16.0
 - NPM version: 6.14.11
 - Browser: Chrome, Firefox and Safari
 - Browser version 90.0.4430.212
 - Device MacBook Pro (Intel)

### Additional context

**Unrelated**: Safari doesn't have ligatures on the arrow
![image](https://user-images.githubusercontent.com/11246258/120689543-1649c980-c459-11eb-91f7-4becd148ae42.png)
Repository: terminal
Issue: ViM mousing only partially works, works different across different platforms
Labels: Product-Conpty,Area-Input,Issue-Bug,Area-TerminalControl,Product-Terminal,Priority-1

### Windows Terminal version (or Windows build number)

1.9.1445.0

### Other Software


Software                 | Version
---------------------|------------------
Windows Terminal  | 1.9.1445.0
PowerShell              | 7.1.1
ViM (Windows)       | 8.2 patches 1-2920
ViM (Git)                 | 8.2 patches 1-2859
ViM (WSL)              | 8.1 patches 1-875
ViM (Remote)         | 8.1 patches 1-2269
OpenSSH                | 8.5p1

This is the newest ViM from the vim for windows github

### Steps to reproduce

Install WT (Windows Terminal), ViM, Git, WSL for testing (see combinations tested below)
Create `vimrc-test` file with the contents:
     set mouse=a

Run command with `vim -u vimrc-test textfile` where `textfile` is some file that is long enough to have room to scroll.

### Expected Behavior

Clicking, Selecting, Scrolling to work across all Windows Terminal combinations (except for `cmd.exe`, I don't expect that)

### Actual Behavior

Is scrolling supposed to work at this point? I've tested a number of options, and my findings are currently:

`#` | Console                                             | Selection | Click | Scrolling | Note
---|------                                                 |-------       |-----  |  ---------|--------
1 | WT + WSL (Debian)                           | ✔          | ✔    | ✔ |
2 | WT + PowerShell + Windows ViM    | ✔          | ✔    | ❌ |
3 | WT + PowerShell + Git ViM              | ❌          | ❌    | ❌ |
4 | WT + PowerShell + Remote ViM      | ❌          | ❌    | ❌ |
5 | ~WT + PowerShell + Windows ViM~   | ~✔~          | ~✔~    | ~❌~ | _this is a duplicate of the above_
6 | WT + cmd            + Windows ViM   | ✔          | ✔    | ❌ | 
7 | WT + cmd            + Git ViM             | ❌          | ❌    | ❌ | 
8 | pwsh + PowerShell + Git ViM           | ✔          | ✔    | ✔ |
9 | pwsh + PowerShell + Remote Vim   | ✔          | ✔    | ✔ |

By remote ViM I mean using ViM over an ssh connection to a linux machine.

Referencing #376
Repository: flutter
Issue: Support screenshot tests in macOS embedder test harness
Labels: a: tests,engine,P2,team-engine,triaged-engine

We should add support for screenshot tests in FlutterEngineTest on macOS desktop.
Repository: godot
Issue: Error while using 'call', 'callv' and 'get' in 'const Scripts' and 'class_name Scripts'
Labels: bug,topic:gdscript

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:** Godot 3.3.2 stable
<!-- Specify commit hash if using non-official build. -->


**OS/device including version:** Windows 10
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->


**Issue description:**
<!-- What happened, and what was expected. -->
Trying to use the `call` method on a 'class_name' or 'const preload' `Script` shows the error: 
**Non-static function "call" can only be called from an instance.**

```gdscript
const ConstPreloadStaticMethods = preload('res://StaticMethods.gd')

ConstPreloadStaticMethods.call('method_name') # Non-static function "call" can only be called from an instance.
ClassNameStaticMethods.call('method_name') # Non-static function "call" can only be called from an instance.
```

But using the `call` method works fine for 'var preload' and 'var load' `Script`.

```gdscript
var VarPreloadStaticMethods = preload('res://StaticMethods.gd')
var VarLoadStaticMethods = load('res://StaticMethods.gd')

VarPreloadStaticMethods.call('method_name') # OK
VarLoadStaticMethods.call('method_name') # OK
```

The same occurs for `callv` and `get`;

I think the following methods should be alowed for 'class_name' and 'const preload'.
- `call`;
- `callv`;
- `get`.

**Steps to reproduce:**
**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[gdscript_call_static_method_inconsistency.zip](https://github.com/godotengine/godot/files/6594220/gdscript_call_static_method_inconsistency.zip)
Repository: frp
Issue: Feature Request: HTTP Traffic Inspector
Labels: todo

**The solution you want**
I'd love to have the ability to inspect all traffic that flows through the tunnel. Something similar to [ngrok's](https://ngrok.com/docs) would be great:

![image](https://user-images.githubusercontent.com/40401643/120712822-fbd21900-c475-11eb-8321-6710bfcbb063.png)

**Alternatives considered**
I've used the `http_proxy` config line to route through Fiddler, but that only works for outgoing requests.

**How to implement this function**
Unknown. Not a small feature.

**Application scenarios of this function**
If Client has the admin dashboard enabled, they should be able to click an "Inspect" tab and see any HTTP request/responses that went through the tunnel, represented in JSON.
Repository: TypeScript
Issue: Add performance coverage for builder/incremental/watch scenarios
Labels: Infrastructure,Domain: Performance

> I'm pretty sure we have no perf suite coverage of the builder, but why not?

_Originally posted by @amcasey in https://github.com/microsoft/TypeScript/issues/44402#issuecomment-853509833_

There's no good reason except for "it's work", but we really should come up with a way to measure our performance characteristics in the perf suite; however, that's not necessarily an easy thing to accomplish.

Some challenges

1. What are good "representative" codebases?
1. What is a good "representative" set of changes to benchmark for rebuilds?
1. How does this integrate with existing perf tests?
Repository: vscode
Issue: Command Palette skips results due to one missing letters
Labels: bug,quick-open

As far as I understand Command Palette, the ability to skip letters is what makes it quick and customizable. When I search for opening logs I just type "oplog".

Somehow though, this case of "pyton issue" does not find "Python: Report Issue":

![pyto-what](https://user-images.githubusercontent.com/8599/120732803-c3910180-c49a-11eb-9bb7-22169309b608.gif)
Repository: terminal
Issue: Crash when creating two tabs from within a batch script launched in the same terminal window
Labels: Issue-Bug,Product-Terminal,Needs-Tag-Fix,Priority-2,Area-Remoting

### Windows Terminal version (or Windows build number)

1.8.1444

### Other Software

_No response_

### Steps to reproduce

Crash when creating two tabs from within a batch script launched in the same terminal window.

Create the following files.

test1.bat:
```
wt -w test -d . -p "Command Prompt" test2.bat
```

test2.bat:
```
wt -w test -d . -p "Command Prompt" test3.bat
wt -w test -d . -p "Command Prompt" test3.bat
```

test3.bat:
```
echo Test
pause
```

There should be no window named "test" at first.

Double click on test1.bat.

### Expected Behavior

A window with two tabs showing the "Test" output.

### Actual Behavior

Terminal crashes as it attempts to launch the additional tab.
Repository: flutter
Issue: [web][Html]: TextOverflow.ellipsis is not rendered if Row contains an image followed by Text.  Vice-versa is rendered correctly.
Labels: framework,engine,f: material design,platform-web,e: web_html,has reproducible steps,P2,found in release: 2.2,team-web,triaged-web

> the problem code:

```
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData.dark(),
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Material App Bar'),
      ),
      body: Row(children: [
        Container(
          width: 50,
          height: 50,
          child: Image.asset('images/ic_avatar_default.png', fit: BoxFit.cover, width: 50, height: 50, cacheHeight: 50, cacheWidth: 50,),
        ),
        Container(
          constraints: BoxConstraints(maxWidth: 52),
          child: Text(
            'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
            overflow: TextOverflow.ellipsis,
          ),
        ),
      ]),
    );
  }
}
```

> Command line input and render width  window.flutterWebRenderer = "html";
```
flutter run -d edge --web-hostname 127.0.0.1 --web-port 5678 --web-renderer html --profile
```

> What I expect is 

![image](https://user-images.githubusercontent.com/18207642/120739904-bddffe00-c524-11eb-90e7-256b6d4cc859.png)


> But, actually is 

![image](https://user-images.githubusercontent.com/18207642/120739625-57f37680-c524-11eb-88f4-268ce0c76ede.png)

> flutter environment is

![image](https://user-images.githubusercontent.com/18207642/120740029-00a1d600-c525-11eb-8c35-bd7fadb32c38.png)
Repository: flutter
Issue: TextField fires onWindowShown event inappropriately on  Android platform.
Labels: a: text input,platform-android,engine,a: internationalization,has reproducible steps,P2,found in release: 2.2,found in release: 2.4,team-android,triaged-android

## TextField calls onWindowShown of IME inappropriately.

The following video shows an example where onWindowShown is called every time text is entered, causing input problems.

https://user-images.githubusercontent.com/58111771/120742708-621c7180-c532-11eb-8b3d-80cd3b2dea44.mov

I tried` flutter doctor -v`

```
[✓] Flutter (Channel stable, 2.2.1, on macOS 11.2.3 20D91 darwin-x64, locale ja-JP)
    • Flutter version 2.2.1 at /Users/chiakikajiwara/develop/flutter
    • Framework revision 02c026b03c (7 days ago), 2021-05-27 12:24:44 -0700
    • Engine revision 0fdb562ac8
    • Dart version 2.13.1
```
This behavior occurs in Flutter version >= 2.2.0.
And I have confirmed that this does not occur on iOS platform.
Thank you for your cooperation.
Repository: TypeScript
Issue: Probable bug: Intellisense doesn't work in case of circular type parameter constraints like `T extends M<T>`
Labels: Bug,Domain: Completion Lists

# Bug Report

### 🔎 Search Terms

Circular type parameter constraint, intellisense.
Related - #40439

### 🕗 Version & Regression Information

Tested with version 4.3.2

### ⏯ Playground Link

[Link](https://www.typescriptlang.org/play?#code/CYUwxgNghgTiAEYD2A7AzgF3gWwFzwB4AVeEADwxBWDXgFliA+RgCj3iIEp4BeRjgFAYAngAcEDAMogIAMwA08ANK94AUTKQArqAIBrEMKSz40uYoBEei814D48AN7woAfnwot2AEYgY9+EVvd3hPHz8AxTAQsN9-B0VgGK84yPg9EKUAgF8BAQB6fPhcTgFsFkcAqHwARnkA73wAJnqHMnwAZlb4QtIycTBKYHg0LQBzMZA0TABLVDR8METFPQDeqEGtKAgR8cnpjDn0ReX0gWzSgqLcFjKKqtruxvgWgPb4LoC9fAsoC27euQBkNdhMprN5id4MA1kUNhgtjtRmCDkcFqFUCBzqUgA)

### 💻 Code

```ts
declare const m: <T extends M<T>>(m: T) => T
type M<Self, K = Exclude<keyof Self, "k">> =
  { a?: number
  , b?: number
  , c?: number
  , d?: number
  , k?: K
  }

// :)
m({
  a: 1,
  b: 2,
  x: 3,
  // expected suggesstions: c, d, k
  // actual suggesstions: c, d, k
})

// :(
m({
  a: 1,
  b: 2,
  x: 3,
  k: "a",
  // expected suggesstions: c, d
  // actual suggesstions: none
})
```

### 🙁 Actual behavior

In second function call, intellisense suggested no properties

### 🙂 Expected behavior

In second function call, intellisense should suggest properties `c` and `d`
Repository: flutter
Issue: GradleBuildStatus.retry should backoff
Labels: platform-android,tool,t: gradle,P3,team-android,triaged-android

Currently, it retries immediately

This probably works out most of the time because gradle does lots of things before getting to the point we want to retry anyway, but we should have some kind of pause before retrying.

/cc @blasten
Repository: youtube-dl
Issue:  Show progressbar only in console titlebar, use --console-title and --no-progress at the same time
Labels: request

- [X] I'm reporting a feature request
- [X] I've verified that I'm running youtube-dl version **2021.05.16**
- [X] I've searched the bugtracker for similar feature requests including closed ones

## Description
I would like to remove the progress line in my console output but keep it on the console titlebar. With
`./youtube-dl --console-title <URL>`
I see a progress bar in the console and additionally on the titlebar. With
`./youtube-dl --no-progress --console-title <URL>`
or
`./youtube-dl --quiet --console-title <URL>`
I see no progress-bar at all.

I would like to have the option --console-title working independant of the option --no-progress to only see relevant information in the console window.
--no-progress: Don't show progress in the output of the console
--console-title: Show progress in titlebar (independant of --no-progress)

Today I have this:
![120064657-a1981900-c06d-11eb-98bc-6a8a4db9e604](https://user-images.githubusercontent.com/71550657/120766065-237abd00-c51a-11eb-8323-0d607343ca7b.png)
Repository: vscode
Issue: Touch feedback on actions does not go away after touch
Labels: bug,ios-ipados
Repository: opencv
Issue: Object Detection Support in Point Cloud
Labels: RFC

Hi, we are undergraduates in SUSTech. In last year, we planed to implement an object detection algorithm based on point cloud , as mentioned in #18893. Now, We have already finished our work. We are able to use the `opencv/dnn` module to load the model and do inference successfully.  This is our [repository](https://github.com/cqn2219076254/Car_Detection_In_3D_Poind_Cloud). 

Now we want to contribute our code to `opencv_contrib`. The trouble is, we implemented over 30 [custom layers](https://github.com/cqn2219076254/Car_Detection_In_3D_Poind_Cloud/tree/main/src/opencvCustomOps). Some custom layers have been implemented by tensorflow but they haven't been implemented by `opencv/dnn`. For such layers, should we commit them to `opencv/dnn` module or just put them in the `opencv_contrib` as custom layers for now, cause our implementation are not very efficient.  

We hope to get some help to finish our contribution.@alalek