sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: VideoWriter quality property causes open to fail
Labels: question (invalid tracker),category: videoio

### System Information

opencv-python          4.8.1.78
MacOS 12.7 (21G816)
Python 3.9.17

### Detailed description

When using the `VIDEOWRITER_PROP_QUALITY` flag with the `VideoWriter` constructor (or open), an error is produced and the file fails to open for writing.

```
[ERROR:0@0.012] global cap_ffmpeg_impl.hpp:2726 open VIDEOIO/FFMPEG: unsupported parameters in VideoWriter, see logger INFO channel for details
[ERROR:0@0.014] global cap.cpp:645 open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.8.1) /Users/runner/work/opencv-python/opencv-python/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): sample.avi in function 'icvExtractPattern'
```

When attempting to `set()` the property, it returns `False` (setting not supported on backend FFMPEG).

Surely, if it indeed is not supported, then construction/open should not fail?

### Steps to reproduce

```python
import cv2 as cv
import numpy as np

img = np.random.randint(0, 255, (100, 100, 3), dtype=np.uint8)
writer = cv.VideoWriter(
    "sample.avi", cv.VideoWriter_fourcc(*"MPEG"), 5, (100, 100), [cv.VIDEOWRITER_PROP_QUALITY, 100]
)
writer.write(img)
writer.release()
```

Running the above produces the log errors, but removing the `, [cv.VIDEOWRITER_PROP_QUALITY, 100]` works as expected.

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: flutter
Issue: Crash while type some characters and double click in textfield: 'NSInternalInconsistencyException', reason: 'Expected a valid text range.'
Labels: a: text input,c: crash,platform-ios,f: material design,e: OS-version specific,P2,team-design,triaged-design

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. type "hdjdd" 
2. double click textfield
3. crash

work in iOS 17.0.0 well. While update to 17.1.1 crash.
### Expected results

no crash

### Actual results


*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Expected a valid text range.'
*** First throw call stack:
(0x1a277c870 0x19aa97c00 0x1a1ce6d18 0x10af72f54 0x1a5560928 0x1a555ec90 0x1a5557724 0x1a55573ec 0x1a55539ac 0x1a54d37e0 0x1a4bc3c2c 0x1a4bc3b10 0x1a551b738 0x1a54d34a0 0x10af71a78 0x10af79d04 0x10b4fe1c8 0x10af6b590 0x10a678f50 0x10a67ab34 0x10a68afec 0x10a68aba0 0x1a26c720c 0x1a26c3f18 0x1a26c3668 0x1e5a8e5ec 0x1a4ae02b4 0x1a4adf8f0 0x104ae49cc 0x1c5116dcc)



### Code sample

<details><summary>Code sample</summary>

```dart

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
 
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: const Center(
        child: TextField(),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

https://github.com/flutter/flutter/assets/113404168/c9f63266-ef88-4abf-aa48-34ca9874656e



</details>


### Logs

<details><summary>Logs</summary>

```console

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Expected a valid text range.'
*** First throw call stack:
(0x1a277c870 0x19aa97c00 0x1a1ce6d18 0x10af72f54 0x1a5560928 0x1a555ec90 0x1a5557724 0x1a55573ec 0x1a55539ac 0x1a54d37e0 0x1a4bc3c2c 0x1a4bc3b10 0x1a551b738 0x1a54d34a0 0x10af71a78 0x10af79d04 0x10b4fe1c8 0x10af6b590 0x10a678f50 0x10a67ab34 0x10a68afec 0x10a68aba0 0x1a26c720c 0x1a26c3f18 0x1a26c3668 0x1e5a8e5ec 0x1a4ae02b4 0x1a4adf8f0 0x104ae49cc 0x1c5116dcc)


```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.13.9, on macOS 13.5.2 22G91 darwin-arm64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.84.2)
[✓] Connected device (5 available)
[✓] Network resources

```

</details>
Repository: PowerToys
Issue: Screen Ruler showing behind applications, visible only from desktop
Labels: Issue-Bug,Needs-Triage,Area-App Compat,Product-Screen Ruler

### Microsoft PowerToys version

0.75.1

### Installation method

PowerToys auto-update

### Running as admin

Yes

### Area(s) with issue?

Screen ruler, System tray interaction

### Steps to reproduce

1. Click the powertoys icon in system tray
2. Select the screen ruler icon from the shortcuts menu which is now open.
3. Screen ruler will now only display behind applications. Using shortcut key (Win+Shift+M) shows screen ruler in front of applications.

### ✔️ Expected Behavior

The on screen ruler bar (defaulted to top of screen) is visible in front of all applications.

### ❌ Actual Behavior

Screen ruler bar only displays behind applications. Using shortcut key (Win+Shift+M) shows screen ruler in front of applications.

### Other Software

_No response_
Repository: godot
Issue: renaming a node`s name in parent scene corrupt the children scene
Labels: bug,topic:core,topic:editor,crash

### Godot version

4.1.3.stable

### System information

win11

### Issue description

renaming a (not root) node`s name in the parent scene does not update the children's scene file correctly,  and after that, trying to close the child's scene causes the editor to crash.

the error shown in the console before the crash
![image](https://github.com/godotengine/godot/assets/91177204/ebd6b64d-356e-42a5-84a0-966e189d7aa4)


### Steps to reproduce

1. create a scene
![image](https://github.com/godotengine/godot/assets/91177204/341c4d68-0dfd-44f8-b8d7-4cc7c721d42f)
2. make a new inherited scene from it
3. add nodes to the new scene as children of the last node
![image](https://github.com/godotengine/godot/assets/91177204/700bb736-b919-44b5-a7e5-5cfbae778aee)
4. with both tabs open, rename the first scene`s node(as below) to another name
![image](https://github.com/godotengine/godot/assets/91177204/f2975dd4-4f3d-440e-8793-aaea3d502b0e)
5. save, reopen the other tab
6. The node tree is incorrect and may crash when reloading or switching tabs.
![image](https://github.com/godotengine/godot/assets/91177204/a796e18f-e5ef-4346-bf34-807aae15c0d0)
_inherited inherited scene_
![image](https://github.com/godotengine/godot/assets/91177204/453a2268-82e7-421c-8b9e-742e0c4beb30)


### Minimal reproduction project

[BugTestParentSceneName.zip](https://github.com/godotengine/godot/files/13361861/BugTestParentSceneName.zip)
Repository: go
Issue: x/telemetry/internal/counter: TestParallel failures
Labels: NeedsInvestigation,telemetry

```
#!watchflakes
default <- pkg == "golang.org/x/telemetry/internal/counter" && test == "TestParallel"
```

Issue created automatically to collect these failures.

Example ([log](https://build.golang.org/log/d97275b6450b8a7bacc897493c1f51fb780dc9d3)):

    --- FAIL: TestParallel (0.00s)
        counter_test.go:83: GOOS netbsd GOARCH arm64
        counter_test.go:101: counter: disabled by GOTELEMETRY=off


— [watchflakes](https://go.dev/wiki/Watchflakes)
Repository: next.js
Issue: next/third-parties type declarations not found in typescript
Labels: bug

### Link to the code that reproduces this issue

https://github.com/JasperDeLanghe/next-third-parties-types

### To Reproduce

1. `npm install`
2. `npm run build`

![image](https://github.com/vercel/next.js/assets/25288931/786eeca4-3af0-4dae-b4fd-8a2c42628ef5)

Inside `app/layout.tsx` you will find the import statement for the GoogleTagManager component which errors with "Cannot find module '@next/third-parties' or its corresponding type declarations.ts(2307)"

### Current vs. Expected behavior

I expected TypeScript to find the module or type declarations, instead it could not.

### Verify canary release

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

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000
Binaries:
  Node: 18.17.0
  npm: 9.6.7
  Yarn: 1.22.17
  pnpm: N/A
Relevant Packages:
  next: 14.0.3-canary.8
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Not sure

### Additional context

_No response_
Repository: ant-design
Issue: Input.TextArea 希望能够在 ConfigProvider 上配置组件通用属性
Labels: 💡 Feature Request,Inactive,unconfirmed

### What problem does this feature solve?

https://ant-design.antgroup.com/components/config-provider-cn#%E7%BB%84%E4%BB%B6%E9%85%8D%E7%BD%AE
当前为 Input 配置组件通用属性时
无法同时在 Input.TextArea 下起作用

希望能够支持或者单独列出 Input.TextArea 的可配置属性

### What does the proposed API look like?

<ConfigProvider  inputTextArea={{ classname: 'hello' }}></ConfigProvider>

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: opencv
Issue: Unable to load ONNX model
Labels: incomplete

### System Information

OpenCV version: 4.6.0
Operating System: ubuntu 20.04
GCC version: 9.4.0
Rust Binding Version: 0.86.1


### Detailed description

I have been trying to load an onnx model using **readNetFromONNX** and I get the following error.
![updated](https://github.com/twistedfall/opencv-rust/assets/83204531/4c2d7eb8-a6dd-4423-95c0-256891e36ec3)
I just want to know how to import the onnx model correctly into the function.

P.S: I used OpenCV Rust bindings for the code but the error is coming from the C++ header. 


### Steps to reproduce

`
let onnx_path = "/home/Projects/rust-inference-onnx/model.onnx";
let model: dnn::Net = dnn::read_net_from_onnx(onnx_path).expect("Unable to load model");
`

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: go
Issue: proposal: cmd/go: add support for explicitly providing vcs metadata 
Labels: Proposal,GoCommand

The addition of `-buildvcs` reduces the amount of boilerplate needed to track VCS metadata in binaries, but also adds a certain amount of overhead when building in limited environments (notably, within Docker containers). In particular, one must load `.git` (or other VCS directory/config) into the build context, and one must install their VCS tool of choice within the docker build environment.

I'd like to propose as a lighter-weight alternative we introduce `-buildvcs` option to directly provide the metadata key(s).  This could take a few different forms. Three come to mind as potentially realistic:

1. Environment variables

    `-buildvcs=env` means that the environment variables `GO_VCS`, `GO_VCS_REVISION`, `GO_VCS_TIME` and `GO_VCS_MODIFIED` will be used to populate `vcs`, `vcs.revision`, `vcs.time`, and `vcs.modified`, respectively.

2. External file

    `-buildvcs=metadata.json` means that the file `metadata.json`* will be consulted, and expected to contain data in the form `{"vcs":"git","revision":"860db4b0de1e5551871da59301d3cf5b41131cd6","time":"Wed Nov 1 09:14:15 2023 +0100","modified":false}`

   *Format, and whether an arbitrary filename is allowed, are open for debate. maybe for e.g. `-buildvcs=json` is better, with a fixed filename.

3. CSV on the command line

    `-buildvcs="git,860db4b0de1e5551871da59301d3cf5b41131cd6,Wed Nov 1 09:14:15 2023 +0100,false"` provides the metadata fields directly. Any omitted fields are ignored.

My personal preference is probably option 1, environment variables. It's probably the most directly compatible with Docker build environments (where I most care about this), and is also probably the least ambiguous and error-prone of the three.

Both option 1 and the fixed filename variant of option 2 have the potential to be triggered by `-buildvcs=auto` or `-buildvcs=true` as well, if the existing criteria for metadata detection are not met.
Repository: pytorch
Issue: New feature: Balanced Sampler
Labels: module: dataloader,triaged,module: data

### 🚀 The feature, motivation and pitch

Implement a new sampler class [here](https://github.com/pytorch/pytorch/blob/main/torch/utils/data/sampler.py).

I added a new sampler called  `BalancedSampler` that, given a list of target classes (for example from a `Dataset` object), and a parameter called `strategy`, it automatically balance the data depending on given strategy as follows:

|Value| Description|
|---|---|
|`"oversample"`| the dataset will be balanced by yielding indexes of minority classes several times until the majority classes are equalized|
|`"undersample"` | the dataset will be balanced by yielding only a subset of indexes of majority classes with the cardinality of the set of minority classes indexes|

## Motivation, pitch

While working with an unbalanced dataset, I find extremely useful to balance it at runtime instead of copying/removing data in the filesystem.
In case of a images dataset, after a oversample balanced sampler is defined, you can also apply data augmentation when you define the data loader to not use the exact copy of the images and avoid overfitting.

### Alternatives

I opened a pull request [here](https://github.com/pytorch/pytorch/pull/113633).

### Additional context

_No response_

cc @SsnL @VitalyFedyunin @ejguan @dzhulgakov
Repository: pytorch
Issue: [docs] Add reference/decomp impl snippets to functions in online docs for hackability and educational purposes / compensate for some unclear language in existing docs
Labels: module: docs,triaged,better-engineering,module: norms and normalization

### 📚 The doc issue

E.g. for various Norm layers (as discussed in https://github.com/pytorch/pytorch/issues/51455). I think this already done now for MHA/SDPA. Ideally, these code snippets would be auto-copied from the refs/decomps code. And if not, they should be auto-tested to produce matching output to the real function impl.

This would help a lot in education of users of what exactly formulas are used and sometimes clarify what's going on. If decomps are now tested to match the original functions, it would

Importantly, these snippets should not get indexed by Google (as discussed in https://github.com/pytorch/pytorch/issues/3428#issuecomment-1824280822 by using `data-nosnippet` attribute)

### Suggest a potential alternative/fix

_No response_

cc @svekars @carljparker
Repository: vscode
Issue: Add terminal highlighting support
Labels: feature-request,terminal-rendering

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->
This reopen the issue #192671:
MobaXterm 's  terminal seems able to highlight keywords.
This feature allow user to save bunch of  time while extracting part or displaying log files with shell commands.
This enable highlighting output of grep commands with keywords that has nothing in common with the searched pattern of the grep command.

I would appreciate same kind of functionality on VS code terminals with default regular expressions as in Moba.
 
Adding a configuration to add it's own keyword pattern would be nice. 

In this exemple , terminal  has colorized "warning" keyword and the gcc standard warning "[-Wxxx]" 
![image](https://github.com/microsoft/vscode/assets/148204731/0d7e2a04-1e9a-4391-a3ef-a5edd81cdeab)

This feature is part of the MobaXterm Termnal setting
![image](https://github.com/microsoft/vscode/assets/148204731/b52494bf-3d25-4233-bc6d-7838f8f663a5)
Repository: deno
Issue: Implement net.Socket#ref for TTY handles
Labels: node compat,node API

I'm trying to use [`useStdin()`](https://github.com/vadimdemedes/ink#usestdin) in [term.ink](https://term.ink) but it crashes with:

```sh
  ERROR  unreachable

 ext:deno_node/_util/asserts.ts:16:9

 - unreachable (ext:deno_node/_util/asserts.ts:16:9)
 - TTY.ref (ext:deno_node/internal_binding/handle_wrap.ts:38:5)
 - ReadStream.ref (node:net:658:20)
 ...
 ```

More specifically, it fails [here](https://github.com/vadimdemedes/ink/blob/168244470cd3e4b85e19b968a55938d013232761/src/components/App.tsx#L166).

The problem seems to be `ref()` not being implemented in `net.Socket`. Being new to Deno, the documentation confuses me, since [std / node / net.ts > Socket#ref](https://deno.land/std@0.158.0/node/net.ts?s=Socket&p=prototype.ref) suggests that it's indeed implemented?

---

Reference: https://github.com/denoland/deno/issues/20855#issuecomment-1812244894
Repository: pytorch
Issue: device_mesh documentation in FSDP ctor
Labels: oncall: distributed,module: fsdp

### 📚 The doc issue

FSDP is moving towards device_mesh, so it would be good to ensure it shows up on the doc page where each initialization param is described (currently it doesn't): https://pytorch.org/docs/main/fsdp.html#module-torch.distributed.fsdp

### Suggest a potential alternative/fix

_No response_

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu
Repository: next.js
Issue: Unable to download swc package - Next.js project in Android Termux
Labels: bug,SWC

### Link to the code that reproduces this issue

https://github.com/Clever-Shivanshu/file-upload-api

### To Reproduce

1. Start the Application by npm run dev
2. Visit localhost:3000/api/fileUpload
3. It crashes in Android termux after it 

### Current vs. Expected behavior

I am getting trying to create a api which takes files and save in public/uploads

But when go to 
http://localhost:3000/api/fileUpload

It crashes and getting this 
`$ npm run dev

> file-upload@0.1.0 dev
> next dev

   ▲ Next.js 14.0.2
   - Local:        http://localhost:3000

   Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc" https://nextjs.org/docs/messages/swc-disabled
 ✓ Ready in 5.6s
 ⚠ Attempted to load @next/swc-android-arm64, but it was not installed
 ⚠ Found lockfile missing swc dependencies, patching...
 ⨯ Failed to patch lockfile, please try uninstalling and reinstalling next in this workspace
TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11522:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fetchPkgInfo (/data/data/com.termux/files/home/file-upload-api/node_modules/next/dist/lib/patch-incorrect-lockfile.js:64:17)
    at async Promise.all (index 0)
    at async patchIncorrectLockfile (/data/data/com.termux/files/home/file-upload-api/node_modules/next/dist/lib/patch-incorrect-lockfile.js:160:26) {
  cause: Error [ERR_SOCKET_CONNECTION_TIMEOUT]: Socket connection timeout
      at new NodeError (node:internal/errors:399:5)
      at internalConnectMultiple (node:net:1099:20)
      at Timeout.internalConnectMultipleTimeout (node:net:1638:3)
      at listOnTimeout (node:internal/timers:575:11)
      at process.processTimers (node:internal/timers:514:7) {
    code: 'ERR_SOCKET_CONNECTION_TIMEOUT'
  }
}
 ⨯ Failed to load SWC binary for android/arm64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc`


### Verify canary release

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

### Provide environment information

```bash
OS: Android 13
App: termux
```


### Which area(s) are affected? (Select all that apply)

SWC minifier (swcMinify: true)

### Additional context

I tried to fix it but not working
Repository: vscode
Issue: Extension View: Theming Issue
Labels: bug,extensions

Theme: Light+. Happens when a disabled extension is selecte.d

![Image](https://github.com/microsoft/vscode/assets/2931520/ac588845-457f-4ec2-920a-abf3914fe9cb)
Repository: vscode
Issue: Quick chat should not listen to main container changes only
Labels: bug,debt,quick-chat,workbench-auxwindow

Code:

https://github.com/microsoft/vscode/blob/43b0558cc1eec2528a9a1b9ee1c7a559823bda31/src/vs/workbench/contrib/chat/browser/chatQuick.ts#L249

https://github.com/microsoft/vscode/blob/e6bd28f57f446006a60c98e794eca7e0d0c102c2/src/vs/workbench/contrib/chat/browser/chatQuick.ts#L245

Quick chat can be in any floating window, so the main container might not be the one you want. There is a way to listen to active container layout changes but the best would be to listen on the container change where quick chat is visible.

![image](https://github.com/microsoft/vscode/assets/900690/d4f37d63-ec8f-46d4-9fa5-07d92ad309cf)
Repository: rust
Issue: Bootstrap: Build compiler crates that ought to compile on stable without `RUSTC_BOOTSTRAP=1`
Labels: C-enhancement,T-bootstrap

Uplifted from https://github.com/rust-lang/rust/pull/117819#issuecomment-1806851136.

There exist some compiler crates (e.g., `rustc_lexer` and `rustc_parse_format`) which ought not use unstable features since they are used by other tools like rust-analyzer which has a “no nightly” policy. The aforementioned crates do contain comments informing rustc devs about it, they are easy to miss however.

If bootstrap were to compile those crates without `RUSTC_BOOTSTRAP=1`, the issue of PRs accidentally adding `#![feature]`s to such crates could be prevented in the future.

Alternative: A rustc-internal or regular lint triggering on `#![feature]`s.
Repository: svelte
Issue: Attributes/props aren't updated when the transition is reversed
Labels: transition/animation

### Describe the bug

See this minimal repro: https://svelte.dev/repl/faaa860132a4424d84a6b58f7636f752?version=4.2.3

### Reproduction

- Click on `Toggle Foo` to set `foo` to `false` and thereby trigger the square's "out" transition.
- **Before** the out transition is complete and the element is removed from the DOM, click on `Toggle Bar`, so that the transition gets reversed.
- Notice how the text node inside the element got updated as expected (from `foo` to `bar`), but the value of the `data-value` attribute didn't (it got stuck on `foo`, but it should be `bar` now):

![image](https://github.com/sveltejs/svelte/assets/26527405/93cc639f-14db-4e03-9757-2c3be36d5d99)



The same behavior can be observed for props as well, this isn't limited to attributes on HTML tags.

### Logs

_No response_

### System Info

```shell
(see REPL above)
```


### Severity

annoyance