sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: CharFXTransform Dictionary throws InvalidCastException when casting stored value to int
Labels: bug,topic:dotnet,topic:gui

### Godot version

4.0.dev (5268786)

### System information

Windows 10

### Issue description

When using the `Env` property on `CharFXTransform` the `Dictionary<object, object>` throws an error if trying to cast a stored `object` to `int`.
`float` and `long` work fine.

![image](https://user-images.githubusercontent.com/21325943/153083929-f3f408ce-f335-4d30-9559-eda34133da08.png)


### Steps to reproduce

1. Create new C# project.
2. Add the code above to a scene.
3. Run the project.

### Minimal reproduction project

[DictBug.zip](https://github.com/godotengine/godot/files/8027861/DictBug.zip)
Repository: flutter
Issue: Unresponsive debug session on every run
Labels: platform-android,tool,platform-mac,a: debugging,P2,d: intellij,platform-host-arm,team-android,triaged-android

Thanks for the feedback! If your issue is related to the Flutter framework itself,
please open an issue at
[github.com/flutter/flutter](https://github.com/flutter/flutter/issues/new).

## Steps to Reproduce

During debugging Flutter app, Android Studio stop(red rect icon) becomes unresponsive & hot reload(saving) becomes unresponsive. Because clicking on a stop button doesn't do anything, I have to force quit Android Studio and restart.

Env: M1 Macbook 
1. Run debugger on Android emulator
2. Make changes to the code that causes exception(unbounded widget constraints, etc)
3. hot reload and let it cause exception
4. click play on debugger until it doesn't stop
5. click stop button (cmd+F2) to stop debugger

Actual: Nothing happens 
Excepted: Debugger stop

## Version info

Please paste the output of running `flutter doctor -v` here (available from the command
line or from `Tools > Flutter > Flutter Doctor`). It will provide the version of the
Flutter framework as well as of the IntelliJ plugin.

```
$ flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-arm, locale en-US)
    • Flutter version 2.8.1 at /Users/c/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (6 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/c/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
```
Repository: flutter
Issue: Eliminate Windows-specific codecvt workaround
Labels: engine,platform-windows,P2,c: tech-debt,team-engine,triaged-engine

On Windows, we rely on a temporary workaround for a link error related to codecvt when using `std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t>`

Details can be found on this Visual Studio bug VSO#143857 at:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/8f40dcd8-c67f-4eba-9134-a19b9178e481/vs-2015-rc-linker-stdcodecvt-error

Related: https://github.com/flutter/flutter/issues/98061
Related: https://github.com/flutter/flutter/issues/50053
Repository: pytorch
Issue: Enforce quotas on CI users
Labels: module: ci,triaged,enhancement

e.g., one user cannot spawn 10 concurrent PR workflows or something so that no one can hoard our limited resources

cc @seemethere @malfet @pytorch/pytorch-dev-infra
Repository: pytorch
Issue: Clarify test dependencies (e.g., into a test-requirements.txt file)
Labels: module: bootcamp,module: ci,triaged

Followup to #72432: figure out how to specify dependencies in a clearer way (e.g., test-requirements.txt). We should also add owners for each dependency so we know why they are there.

Currently, our installations are sprawled across the repo and it's hard to know what's getting downloaded where. This task involves moving as many of these dependencies as possible into a test-requirements.txt for clarity.

- [ ] Move dependencies (look for `pip install` in the repo [.github, .circleci, .jenkins]) into a test-requirements.txt
- [ ] Add a comment next to each dependency regarding what the dependency is used for/which team owns it. e.g., module: fft owns librosa dependency

cc @seemethere @malfet @pytorch/pytorch-dev-infra
Repository: pytorch
Issue: Pin dependencies + expand the current linter 
Labels: module: bootcamp,module: ci,triaged

Followup to #72432: Expand current linter that checks all installs are pinned to also check other

Would be easier to do AFTER https://github.com/pytorch/pytorch/issues/72556! 

- [ ] Pin all pip installs in our ci scripts
- [ ] Expand the current existing lint in Lint.yml to cover more than the .github directory
- [ ] Modify the linter regex to also disallow unbounded > or < versioning specs.

cc @seemethere @malfet @pytorch/pytorch-dev-infra
Repository: flutter
Issue: Make ephemeral platform directories editable by default in add-to-app
Labels: platform-android,platform-ios,tool,a: existing-apps,c: proposal,P2,team-tool,triaged-tool

The content of the `.android` and `.ios` directories cannot be modified since `flutter pub get` or any 
build command will override the file changes. 

This breaks `flutter run` on Android if a dependency requires to modify AndroidManifest.xml or build.gradle. 
For example, adding webview to a module.

My suggestion is to make these directories editable, so there's no this one-off special case.

@jmagman any thoughts?
Repository: flutter
Issue: Support web interop in Pigeon
Labels: c: new feature,platform-web,package,p: pigeon,P3,team-web,triaged-web

Expand Pigeon generated code to include js interops on the web. 

cc @gaaclarke
Repository: node
Issue: Process hangs after calling `readline.emitKeypressEvents` and having attached a "keypress" event handler
Labels: readline

### Version

v16.13.0

### Platform

Darwin MBP.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64

### Subsystem

_No response_

### What steps will reproduce the bug?

When executing the following code the process never exits:

```js
const readline = require ( 'readline' );

process.stdin.setRawMode ( true );

readline.emitKeypressEvents ( process.stdin );

const cb = () => {};

process.stdin.on ( 'keypress', cb );
process.stdin.off ( 'keypress', cb );
```

Interestingly when executing the following it exits:

```js
const readline = require ( 'readline' );

process.stdin.setRawMode ( true );

readline.emitKeypressEvents ( process.stdin );

const cb = () => {};

// process.stdin.on ( 'keypress', cb );
// process.stdin.off ( 'keypress', cb );
```

And when executing the following it exits too:

```js
const readline = require ( 'readline' );

process.stdin.setRawMode ( true );

// readline.emitKeypressEvents ( process.stdin );

const cb = () => {};

process.stdin.on ( 'keypress', cb );
process.stdin.off ( 'keypress', cb );
```

So it's not attaching the event handler nor calling `readline.emitKeypressEvents` on their own that cause the issue, but when both things are done for whatever reason the process never exits, even if I remove the event handler.

### How often does it reproduce? Is there a required condition?

Always.

### What is the expected behavior?

The process shouldn't hang for nothing.

### What do you see instead?

The process hangs for (what seems to be) nothing.

### Additional information

_No response_
Repository: go
Issue: strconv: non-UTF8 bytes are being unescaped in strconv.Unquote
Labels: Documentation,NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.17.2 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?
yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
```
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/fffonion/Library/Caches/go-build"
GOENV="/Users/fffonion/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/fffonion/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/fffonion/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.17.2/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.17.2/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.17.2"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/fffonion/bbb/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug
```
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->
```go
package main

import (
	"fmt"
	"strconv"
)

func main() {
	// `"\147\\u0001"`
	in := []byte{34, 147, 92, 117, 48, 48, 48, 49, 34}

	str0, _ := strconv.Unquote(string(in))
	fmt.Println([]byte(str0))

}
```
It seems neither does UnquoteChar (https://github.com/golang/go/blob/go1.17.6/src/strconv/quote.go#L267) nor does its caller Unquote (https://github.com/golang/go/blob/go1.17.6/src/strconv/quote.go#L267) handles the error from `utf8.DecodeRuneInString(s)`, so any single byte non-UTF8 sequence are being escaped to `utf8.RuneError` and stored in output.

In Python for example, such cases are handled properly:
```python
a=bytes([147,92,117,48,48,48,49])
a.decode('raw_unicode_escape')
# '\x93\x01'
```

### What did you expect to see?
`[147 1]`


### What did you see instead?
`[239 191 189 1]`
Repository: react-native
Issue: Dimensions reports wrong sizes on Chromebooks
Labels: API: Dimensions,Needs: Triage :mag:,Never gets stale

### Description

All values from `Dimensions` and `useWindowDimensions` are wrong when running Android apps on a Chromebook. The reported dimensions seem to match the size of the full Chromebook screen, not the actual window in which the app is running. As the app's window is resized, the reported dimensions do not change.

For now I was able to work around this issue by using `useSafeAreaFrame` from the [react-native-safe-area-context](https://github.com/th3rdwave/react-native-safe-area-context#usesafeareaframe) package. 

### Version

0.67.2

### Output of `npx react-native info`

System:
    OS: macOS 12.0.1
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
    Memory: 79.57 MB / 32.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 14.15.1 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.1.0 - /usr/local/bin/npm
    Watchman: 2021.10.18.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3
    Android SDK:
      API Levels: 21, 22, 23, 28, 29, 30
      Build Tools: 21.1.2, 22.0.1, 23.0.1, 23.0.2, 26.0.2, 28.0.2, 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0
      System Images: android-10 | Intel x86 Atom, android-15 | Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.2 AI-202.7660.26.42.7322048
    Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_40 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.67.2 => 0.67.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

### Steps to reproduce

To setup a Chromebook for debugging, follow this guide: `https://developer.android.com/topic/arc/development-environment`. Afterwards, follow these steps:

1.  Run an Android app built with RN on a Chromebook in debug mode
2. If the app fills the full screen, resize it to not fill the screen
3. Add `const { height, width } = useWindowDimensions()` into any component and log the height and width
4. Note that the height and width values are wrong

Bonus:
1. Install `react-native-safe-area-context`
2. Add `const { height: fHeight, width: fWidth } = useSafeAreaFrame()` into any component and log fHeight and fWidth
3. Note that the frame height and width are correct and do not match the values from `useWindowDimensions`

### Snack, code example, screenshot, or link to a repository

Repro is trivial if you have access to a Chromebook
Repository: create-react-app
Issue: Build failed while raising PR 
Labels: needs triage

While raising PR to upgrade webpack version build is getting failed and showing error
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR! 
npm ERR! Missing: cra-docs@ from lock file
npm ERR! 


Thanks!
Repository: opencv
Issue: Suppress warnings from OpenCV in iOS.
Labels: category: build/install,platform: ios/osx


- OpenCV => 4.4
- Operating System / Platform => iOS
- Compiler => Xcode 13 Compiler

We are building an OpenCV framework from the source code and integrating it with our framework.
But when I use our framework in the sample app, I see below warnings from the OpenCV files

ld: warning: direct access in function '___cxx_global_var_init' from file '../XXX/XXX.framework/XXX(miniflann.o)' to global weak symbol 'guard variable for cvflann::anyimpl::SinglePolicy<cvflann::anyimpl::empty_any>::policy' from file '../XXXX/XXXX.framework/XXX(Blur.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

We have observed many warnings like above, Could you suggest how to suppress these warnings?
Repository: flutter
Issue: Add a constraint to ShellTest that prevents/discourages `RunConfiguration` construction after calling `PlatformViewNotifyCreated`
Labels: a: tests,engine,P2,team-engine,triaged-engine

`RunConfiguration` writes to global state that the create event reads when using the Metal backend. This resulted in a tricky test flake here: https://github.com/flutter/flutter/issues/96807

One possibility: Add a factory func to ShellTest for `RunConfiguration` and a tripwire flag?

Another [suggestion](https://github.com/flutter/engine/pull/31343#pullrequestreview-876914231) from @zanderso: 
> Maybe require passing a RunConfiguration to PlatformViewNotifyCreated?
Repository: godot
Issue: Integer samplers in shaders don't seem to provide integers representing the integer values set in the texture
Labels: bug,topic:rendering,confirmed,topic:shaders

### Godot version

v3.4.2.stable.arch_linux

### System information

Linux, GLES3

### Issue description

[This link provides context and a workaround](https://stackoverflow.com/questions/67479596/cant-read-a-format-r8-uniform-sampler2d-texture-correctly-from-within-a-shader).

Values are expected to be passed as 32 bit integers that directly map to the RGBA values of a texture, but it seems that floating point values are passed and encoded into an integer.

### Steps to reproduce

Create an image from data and apply its texture to a shader like so:
`img.create_from_data(num_samples, 1, false, Image.FORMAT_RGBA8, rgba)
var texture = ImageTexture.new()
texture.create_from_image(img, 0)
material.set_shader_param("traces", texture)`

In the shader, have:
`shader_type canvas_item;
uniform usampler2D traces;`

### Minimal reproduction project

_No response_
Repository: go
Issue: x/website/_content/doc/tutorial: "Developing a RESTful API with Go and Gin" has unmentioned race condition
Labels: NeedsDecision

This tutorial https://go.dev/doc/tutorial/web-service-gin uses package variable `album` to read and write from http handlers.
However there is no synchronization applied to avoid race condition.

```go
// postAlbums adds an album from JSON received in the request body.
func postAlbums(c *gin.Context) {
    var newAlbum album

    // Call BindJSON to bind the received JSON to
    // newAlbum.
    if err := c.BindJSON(&newAlbum); err != nil {
        return
    }

    // Add the new album to the slice.
    albums = append(albums, newAlbum)                       // <-- DATA RACE.
    c.IndentedJSON(http.StatusCreated, newAlbum)
}
```

If this is intentional to keep the tutorial simple I think it makes sense to warn the reader about code limitations, because high level of concurrency is natural for http servers.

Or maybe it would be even better to avoid race with a different design.

Thanks.
Repository: flutter
Issue: [Proposal] `flutter build aar` should use version from pubspec.yaml
Labels: c: new feature,platform-android,tool,a: existing-apps,c: proposal,a: build,P2,team-android,triaged-android

Simply, I realized that the build-number option is acting weirdly.

for pubspec.yaml with

```yaml
version: 1.0.0
```

when providing --build-number option to 
`flutter build apk --build-number 3`,

build apk with version 1.0.0+3.

But when providing --build-number option to 
`flutter build aar --build-number 3`,

aar version is set with just "3", not 1.0.0+3. It seems not to be intented right..?
Repository: opencv
Issue: unification of findContours and connectedComponents
Labels: category: imgproc,RFC

I propose a new procedure in `imgproc`:

MATLAB has [`bwboundaries`](https://de.mathworks.com/help/images/ref/bwboundaries.html), which produces both a label map _and_ a list of contours at once. The labels and contours match up (index-wise). To my knowledge, OpenCV doesn't have that.

OpenCV only produces each piece of information individually, and there's no guarantee that the labels map from `connectedComponents` must match the list of contours from `findContours`.

I believe it'd be convenient if this new procedure also approached MATLAB's `bwboundaries` in usage.

Motivation: https://stackoverflow.com/questions/71034691/label-associated-to-findcontour-with-opencv

While we're at it, *I* would be thrilled to see contours sitting on pixel boundaries, so points sit on half-integer values. That could be done as a flag/mode, or if pixel corners won't be cut, assume that integer results need a -0.5 to sit right.
Repository: rust
Issue: Tracking Issue for `used_with_arg`
Labels: T-compiler,C-tracking-issue

The feature gate for the issue is `#![feature(used_with_arg)]`.

This extends the existing `#[used]` attribute with two variants `#[used(compiler)]` and `#[used(linker)]`:

* The `#[used(compiler)]` attribute indicates that the symbol should be considered used at the compiler level. It should not be eliminated by the compiler even if it appears unreferenced. This attribute guarantees that the symbol will make it to the linker.
* The `#[used(linker)]` attribute indicates that the symbol should additionally be considered used at the linker level. The linker should not eliminate the symbol even if it appears unreferenced.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps

- [x] Initial implementation: https://github.com/rust-lang/rust/pull/91504
- [ ] Adjust documentation ([see instructions on rustc-dev-guide][doc-guide])
- [ ] Stabilization PR ([see instructions on rustc-dev-guide][stabilization-guide])

[stabilization-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs

### Unresolved Questions

- [ ] What should `#[used]` default to? It is currently specified to only guarantee `#[used(compiler)]` but has historically acted like `#[used(linker)]` on non-ELF platforms. See https://github.com/rust-lang/rust/issues/47384 for extended discussion on the topic.
- [ ] `#[used(linker)]` currently uses SHF_RETAIN on ELF platforms, which is a relatively new flag. This means that the symbol may not actually be retained if an old linker is used.
Repository: rust
Issue: Call Box with FnMut closure requires explicit dereferencing
Labels: A-closures,T-compiler,regression-from-stable-to-stable,C-bug

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->


I tried this code:

```rust
fn main() {
    let mut x = 1;
    let mut b = Box::new(||{
        x += 1;
        println!("{}", x);
    });
    (*b)();
    (*b)();
    b();
}
```

I expected it to compile OK, because Box implements FnMut if its content implements it.

Instead, (*b)() is Ok, but b() -- is not!



`rustc --version --verbose`:
```
rustc 1.58.1 (db9d1b20b 2022-01-20)
binary: rustc
commit-hash: db9d1b20bba1968c1ec1fc49616d4742c1725b4b
commit-date: 2022-01-20
host: x86_64-unknown-linux-gnu
release: 1.58.1
LLVM version: 13.0.0
```
[playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=9ba611033bfc2e2cb584de6be5970576)
Repository: pytorch
Issue: Setting a list of Modules as an attribute does not work like setting a Module as an attribute, and throws no warning
Labels: module: nn,triaged

### 🐛 Describe the bug

For nn.Module, setting a Module as an attribute `self.module = nn.Conv2d()` will at it to its module list, while setting a list of Modules `self.my_modules = [nn.Conv2d(), nn.Conv2d()]` will add the list as an attribute.

Furthermore, getting the Module parameters will need the Modules to be in the nn.Module module list, where Modules of an added list will not be seen as parameters. This results in potential errors for users, which think of both as assignments and are ignorant of the underlying algorithms, resulting in some Modules being not returned as parameters and therefore not trained without an error or warning.

It happened to a Master Thesis I oversee, so I would like to resolve this issue.

A solution would be to either add Modules of a list of Modules to its module list, or to at least show a warning when you want to set the list as an attribute.

### Versions

This is not dependend on the version

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345