sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: DataTable: expose focus-related attributes
Labels: c: new feature,framework,f: material design,c: proposal,a: desktop,f: focus,P3,team-design,triaged-design

## Use case

The use case is to control tab focus traversal on the desktop. For example, the following kind of table might want to have 3 tab-focus traversal steps per row:
- the row as a whole
- the edit button
- the delete button

![image](https://user-images.githubusercontent.com/140617/206154334-778fe1c3-aada-4a85-a341-1fc3ddd66212.png)

`DataTable` creates hidden ink wells/responses under the hood. For these, none of the focus-related attributes are exposed. As a result, the focus chain for the above table becomes "Foo 2" -> "Bar 2" -> "(Baz)" -> "Edit" -> "Delete" where it's hard for the user to understand where the focus is traversing because there are "hidden" steps under the hood.

<details><summary>sample code</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  FocusManager.instance.addListener(() => print(primaryFocus));

  runApp(
    MaterialApp(
      home: Scaffold(
        body: DataTable(
          showCheckboxColumn: false,
          columns: const [
            DataColumn(label: Text('Foo')),
            DataColumn(label: Text('Bar')),
            DataColumn(label: Text('Baz')),
          ],
          rows: [
            for (var i = 1; i <= 5; ++i)
              DataRow.byIndex(
                index: i,
                cells: [
                  DataCell(Text('Foo $i')),
                  DataCell(Text('Bar $i')),
                  DataCell(Row(
                    mainAxisSize: MainAxisSize.min,
                    children: [
                      IconButton(
                        icon: const Icon(Icons.edit),
                        focusNode: FocusNode(debugLabel: 'edit'),
                        onPressed: () {},
                      ),
                      IconButton(
                        icon: const Icon(Icons.delete),
                        focusNode: FocusNode(debugLabel: 'delete'),
                        onPressed: () {},
                      ),
                    ],
                  ))
                ],
                onSelectChanged: (value) => print('Selected $i $value'),
              ),
          ],
        ),
      ),
    ),
  );
}
```
</details>

## Proposal

Expose `autofocus`, `focusNode`, and perhaps `canRequestFocus` for both `DataRow` and `DataCell`.
Repository: kubernetes
Issue: (usage - inactive file) greater than capacity causing eviction
Labels: kind/bug,priority/backlog,sig/node,triage/accepted

### What happened?

/sig node

`free` shows the total memory is 32Gi and used only 6Gi.
Free is 12Gi
Shared 1.6Gi
buff/cache 13Gi
available 19Gi

4.19.90-23.8.v2101.ky10.aarch64 
- https://kubernetes.io/examples/admin/resource/memory-available.sh This is a script to calculate memory.available from https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/

```
memory.capacity_in_bytes   32879017984 (~32Gi)
memory.usage_in_bytes       80342220800 (~80Gi)
memory.total_inactive_file    10048962560 (~10Gi)
memory.working_set             70293258240 (~70Gi)
memory.available_in_bytes -37414240256 (-35Gi)
memory.available_in_kb      -36537344
memory.available_in_mb     -35681
```

- workingset memory(70Gi) = memory.usage_in_bytes(80Gi) - inactive file (10Gi)
- - this will be including active file memory
- availabel = capacity (32Gi) - working set memory(70Gi)  = - 38Gi < 0

With the script, we got a negative value available in bytes which is obviously a bug of the operation system Kylin. 

### What did you expect to happen?

No eviction if the problem is that memory.usage_in_bytes greater than memory.capacity_in_byte.

Before the OS fixes the bug, can kubelet stop evicting pods when `usage_in_bytes` is not properly set? fixes

### How can we reproduce it (as minimally and precisely as possible)?

Yes.

And the workaround is to drop cache and the usage_in_bytes and active file/inactive file will become correct.


### Anything else we need to know?

**Eviction is so dangerous if the condition checking is based on wrong data.**

### Kubernetes version

<details>

```console
$ kubectl version
1.23
```

</details>

1.25 as well

### Cloud provider

<details>
vsphere
</details>


### OS version

4.19.90-23.8.v2101.ky10.aarch64 
<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```

</details>


### Install tools

<details>
kubeadm
</details>


### Container runtime (CRI) and version (if applicable)

<details>
docker 
</details>


### Related plugins (CNI, CSI, ...) and versions (if applicable)

<details>
calico
</details>
Repository: node
Issue: tls: optimize root cert handling during startup, store as DER
Labels: tls,crypto,performance

The root certificates are currently baked into the binary as PEM - basically base64-encoded binary data.

On startup, node dutifully turns each of the ~140 certifcates into a `X509` instance with `PEM_read_bio_X509()`, which decodes the PEM to DER before passing it to `d2i_X509()`.

You can see where this is going: it's a lot more efficient to store the certificates as DER and pass them to `d2i_X509()` directly.

One caveat: `tls.rootCertificates` is documented to be an array of PEM strings. Can be fixed by turning the DER objects into PEM in `GetRootCertificates()` in `src/crypto/crypto_context.cc`.
Repository: flutter
Issue: [go_router] What does 'refreshListenable' do? How does it work? (missing documentation)
Labels: d: api docs,package,P3,p: go_router,team-go_router,triaged-go_router

In `go_router` documentation (not sure that it can be called documentation, probably "API specs" is more appropriate) there is no information at all on `refreshListenable`.

I do not know how to use it. I do not know what happens when the listenable (or the stream via `GoRouterRefreshStream`) has a new value.
I know nothing about it, simply put.

<img width="503" alt="Screenshot 2022-12-07 at 12 59 59" src="https://user-images.githubusercontent.com/14803862/206175095-b6686945-553c-41f7-8313-434670ff09cd.png">

Where can I find this information? If this information is nowhere to be found it‘s okay, but can someone explain?
Thanks

edit: I just found out about [112159](https://github.com/flutter/flutter/issues/112159)... wow guys this is so messed up...
You really were like "if there is no documentation, then there is nothing to update!" 🥴
Repository: PowerToys
Issue: Power rename extra option - rename to a sequence 
Labels: Needs-Triage

### Description of the new feature / enhancement

As a VFX artist it would be lovely if there was a simple way (without REGEX, and just a simple way) to simply replace all the text within a filename with just a number sequence "####.jpg" or something like "filename_####.jpg" 

### Scenario when this would be used?

Renaming large amounts of images and .exr files to act as an image sequence when importing into multiple NLEs (non-linear editors)

### Supporting information

Sorry, Im not a coder, I hope that this isnt that hard :)
Repository: next.js
Issue: Unable to import react-dom/server in a server component
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103
    Binaries:
      Node: 16.18.0
      npm: 8.19.2
      Yarn: 1.22.19
      pnpm: 7.13.6
    Relevant packages:
      next: 13.0.7-canary.1
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0

### Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

### Link to the code that reproduces this issue

https://stackblitz.com/edit/vercel-next-js-arwqsz?file=app%2Fpage.js

### To Reproduce

`app/page.js`:
```
import ReactDOMServer from "react-dom/server";

const staticMarkup = ReactDOMServer.renderToStaticMarkup(<p>TEST</p>);

export default function TestPage() {
  return <p>123</p>;
}
```

Run `next dev` and try opening the index page.

### Describe the Bug

I'm receiving an error message:

Failed to compile.
./app/page.js

You're importing a component that imports react-dom/server. To fix it, render or return the content directly as a Server Component instead for perf and security.

Maybe one of these should be marked as a client entry "use client":
  app/page.js

### Expected Behavior

Be able to use `react-dom/server` on the server.
My usecase it to take some React tree, render it so markup, run it through another postprocessing step which is not aware of anything React specific, and then, return an iframe containing that html.

Contrary to what the error message says, I think there's nothing to fix about importing react-dom/server, and neither should any of this require using the "use client" directive

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: angular
Issue: Different behaviour in tests when importing zone.js polyfills in angular.json vs test.ts
Labels: area: zones,P3

### Which @angular/* package(s) are the source of the bug?

zone.js

### Is this a regression?

Yes

### Description

There is a different behaviour in tests when importing `zone.js` polyfills in `angular.json` vs. importing `zone.js` polyfills in `test.ts`. In our tests we have asynchronous expectations and wait for macro tasks.

This is a simple reproduction of the different behaviour:

```ts
  it('should not throw unhandled promise rejection', async () => {
    const rejectPromise = Promise.reject('error');
    await new Promise(resolve => setTimeout(resolve));
    await expectAsync(rejectPromise).toBeRejected();
  });
```

When importing `zone.js` and `zone.js/testing` polyfills in `angular.json`, **the test fails with Unhandled promise rejection**.

When importing `zone.js` and `zone.js/testing` polyfills in `test.ts`, **the test succeeds**.

Please find the different configurations in my reproduction repository:

- **projects/lib-one** imports `zone.js` polyfills in `angular.json`
- **projects/lib-two** imports `zone.js` polyfills in `test.ts`

### Please provide a link to a minimal reproduction of the bug

https://github.com/Marcarrian/angular-15-zone-js-issue

### Please provide the exception or error you saw

```true
Unhandled promise rejection: error thrown
```


### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 15.0.2
Node: 16.16.0
Package Manager: npm 8.11.0
OS: win32 x64

Angular: 15.0.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1500.2
@angular-devkit/build-angular   15.0.2
@angular-devkit/core            15.0.2
@angular-devkit/schematics      15.0.2
@angular/cdk                    15.0.1
@schematics/angular             15.0.2
ng-packagr                      15.0.1
rxjs                            7.5.7
typescript                      4.8.4
```


### Anything else?

_No response_
Repository: PowerToys
Issue: Fancy Zones | shortcut to change layouts while dragging the windows with shift pressed
Labels: Needs-Triage

### Description of the new feature / enhancement

Button to change the template while dragging the window with shift pressed. 

### Scenario when this would be used?

When I have got one template selected and I'm starting to drag a window to desired zone - and I realized that this template isn't the best for the job I'm currently on. Then I might press the button (TAB for example) to circle around predefined templates (let's say I will mark two of them with the "star" in Fancy Zone editor - and by pressing button I will change between those). 

### Supporting information

Maybe it's there but I can't see it. I can see that I could assign number form 0 to 9 and use it (y) but circle around them seems to be more convenient.
Repository: PowerToys
Issue: Can we make feature mouse highliter behaviour like find my mouse
Labels: Needs-Triage

### Description of the new feature / enhancement

I really love those features but in my opinion, can we make `find my mouse` is not automatically disappeared when we click the mouse? because I want to make permanent highlights using `find my mouse`

### Scenario when this would be used?

1. Given I opened PoweToys
2. When I use a shortcut to open find `my mouse`
3. When I click left or right the spotlight is not disappeard

### Supporting information

_No response_
Repository: opencv
Issue: ERROR: cv::dnn::dnn4_v20211004::LayerData&) () from /usr/local/lib/libopencv_world.so.4.5 
Labels: incomplete,category: dnn

### 0x0000ffffee8cb194 in cv::dnn::dnn4_v20211004::Net::Impl::forwardLayer(cv::dnn::dnn4_v20211004::LayerData&) () from /usr/local/lib/libopencv_world.so.4.5


##### 

**
- OpenCV => 4.5.4
- Operating System / Platform => Linux : aarch64-gnu , Ubuntu 20.04
- Compiler => Visual Studio 2019
- DARKNET
- CUDA
- JETSON ORIN
- **


I am trying to implement R-CNN Masking on my custom object detection model with yolov3 - DAKRNET  and opencv 4.5.4 on Jetson Orin.

I have succeeded in the Object detection with CUDA backend support

Now in the masking implementation for the same, I followed this tutorial in cpp 
https://github.com/spmallick/learnopencv/blob/master/Mask-RCNN/mask_rcnn.cpp  

```
String textGraph = "./mask_rcnn_inception_v2_coco_2018_01_28.pbtxt";
String modelWeights = "./mask_rcnn_inception_v2_coco_2018_01_28/frozen_inference_graph.pb";

    // Load the network
    Net net = readNetFromTensorflow(modelWeights, textGraph);

    if (device == "cpu")
    {
        cout << "Using CPU device" << endl;
        net.setPreferableBackend(DNN_TARGET_CPU);
    }
    else if (device == "gpu")
    {
        cout << "Using GPU device" << endl;
        net.setPreferableBackend(DNN_BACKEND_CUDA);
        net.setPreferableTarget(DNN_TARGET_CUDA);
    }

```

I replaced the respective above lines of this code with the following lines
```
String modelConfig = "/home/.../darknet/cfg/yolo-obj-3classes.cfg";
String modelWts = "/home/.../darknet/yolo-obj_final_3classes.weights";

    // Load the network
Net net = readNetFromDarknet(modelConfig, modelWts);
net.setPreferableBackend(DNN_BACKEND_OPENCV);
net.setPreferableTarget(DNN_TARGET_CPU);
```

P.S: while the exact same lines worked prefectly good with the plain object detection 

And my error when I run this on the Visual Studio 2019 is as follows:

**0x0000ffffee8cb194 in cv::dnn::dnn4_v20211004::Net::Impl::forwardLayer(cv::dnn::dnn4_v20211004::LayerData&) () from /usr/local/lib/libopencv_world.so.4.5**

Seeking for help and suggestions.

Kind regards,
Karishma
Repository: TypeScript
Issue: Code transpilation does not work with any target later than es5.
Labels: Needs More Info

# Bug Report

Typescript transpiles the attached code into something not possible to execute in browser, when targeting later versions than es5.

ng_reflect.ts:24        
ERROR TypeError: X is not a constructor
    at e.t (oidc-client.min.js:1:12082)
    at new e (oidc-client.min.js:49:27046)
    at new e (oidc-client.min.js:49:9187)
    at new AppComponent (app.component.ts? [sm]:51:25)
    at NodeInjectorFactory.AppComponent_Factory [as factory] (app.component.ts? [sm]:52:2)
    at getNodeInjectable (di.ts:642:17)
    at createRootComponent (component_ref.ts:426:4)
    at ComponentFactory.create (component_ref.ts:262:10)
    at ApplicationRef.bootstrap (application_ref.ts:1126:4)
    at eval (application_ref.ts:623:1)

### 🔎 Search Terms

Transpile, error, es5, es2015

### 🕗 Version & Regression Information

I started seeing this problem today, when I updated from angular 13 to 14 and typescript transpile target was changed in tsconfig from es5 to es2020, but the problem seems to exist from es6 and forward.

### ⏯ Playground Link

Changing from target "ES2015" to "ES5", in tsconfig, makes it transpile correctly for browser to execute.
https://stackblitz.com/edit/angular-ivy-qlrq14

### 💻 Code

https://stackblitz.com/edit/angular-ivy-qlrq14

```ts
class ResponseValidatorCtor {
  private _settings: any;

  constructor(
    settings,
    metadataServiceCtor?: MetadataServiceCtor,
    userInfoServiceCtor?: any
  ) {
    this._settings = settings;
  }

  public validateSigninResponse(state, response) {
    response.state = state._data;
    return response;
  }

  public validateSignoutResponse(state, response) {
    // validation goes here
    return Promise.resolve(response);
  }
}

@Component({
  selector: 'my-app',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css'],
})
export class AppComponent {
  private userManagerSettings: UserManagerSettings = {
    ResponseValidatorCtor: (settings, metadata, userInfo) =>
      new ResponseValidatorCtor(settings),
    authority: 'https://login.microsoftonline.com/common/v2.0',
    client_id: '',
    redirect_uri: `${window.location.origin}/login/oidc/azure`,
    silent_redirect_uri: `${window.location.origin}/login/oidc/azure`,
    post_logout_redirect_uri: `${window.location.origin}/login`,
    response_type: 'id_token',
    scope: 'openid email profile',
  };
  private userManager = new UserManager(this.userManagerSettings);
}
```

### 🙁 Actual behavior

Website fails loading due to error in code.

### 🙂 Expected behavior

Expects website to load without failures.
Repository: react
Issue: [DevTools Bug]: Electron support broken in 4.27
Labels: Type: Bug,Component: Developer Tools

### Website or app

[Electron.js](https://electronjs.org)

### Repro steps

React devtools 4.27 no longer works in Electron[1] because `chrome.scripting` isn't implemented, which it started using due to the manifest v3 upgrade: https://github.com/facebook/react/pull/25145

When opening React devtools 4.27 in any Electron project (installed with [`electron-devtools-installer](https://github.com/MarshallOfSound/electron-devtools-installer/) for example) you'll see that the devtools panel is shown but no React components are ever found. Earlier versions worked well with Electron

[1] https://github.com/electron/electron/issues/36545 and https://github.com/MarshallOfSound/electron-devtools-installer/issues/232

### How often does this bug happen?

Every time

### DevTools package (automated)

_No response_

### DevTools version (automated)

_No response_

### Error message (automated)

_No response_

### Error call stack (automated)

_No response_

### Error component stack (automated)

_No response_

### GitHub query string (automated)

_No response_
Repository: flutter
Issue: Unit tests don't fail if an exception is thrown inside ChangeNotifier callback
Labels: a: tests,framework,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-framework,triaged-framework

## Steps to Reproduce

1. Create a unit test (not widget test) to test a change notifier implementation.
2. Add a listener with expectAsync0 that will throw an exception when called

**Actual results:**
- The exception is logged to the console, but the test completes successful.

**Expected results:**
- The test should fail

 I assume, that the issue is, that inside ChangeNotifier callback errors are caught and not propagated to the test runner.
If I set the error reporter explicitly like so:
```
 FlutterError.onError = (details) => reportTestException(
            details,
            'should set error when summaries are empty',
          );
```
At the beginning of the test, the test fails as I would expect it to.

<details>
<summary>Code sample</summary>

```dart
// ChangeNotifier
class MyController extends ChangeNotifier {
  bool isLoading = false;
Future<void> fetch() async {
    isLoading = true;
    notifyListeners();
   await Future.delayed(Duration(seconds:1, () {});
    isLoading = false;
    notifyListeners();
  }
}

// test
void main() {
  test('my test', () async {
   final controller = MyController();
   controller.addListener(expectAsync0((){
     expect(1,2); // supposed to fail for demonstration
    }));
   await controller.fetch();
  })
}
```

</details>

<details>
  <summary>Logs</summary>

This will log something like this:

```
═╡ EXCEPTION CAUGHT BY FOUNDATION LIBRARY ╞════════════════════════════════════════════════════════
The following TestFailure was thrown while dispatching notifications for MyController:
Expected: <2>
  Actual: <1>

...

✓ MyController my test

```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.9, on macOS 13.0.1 22A400 darwin-x64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] IntelliJ IDEA Community Edition (version 2021.1.1)
[✓] VS Code (version 1.73.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!
```

</details>

Update 1:
if I use testWidgets(...) instead of test(...) the test behaves as expected and fails. So it seems to me that the configuration of the error reporter is missing inside the test method.

Maybe this is somehow intended, but at least from my perspective it is not clear, why the test of a plain ChangeNotifier should be a widget test.