sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [gen_l10n] Support for explicit 0 and 1 rules for number formatting
Labels: c: new feature,framework,a: internationalization,c: proposal,P3,team-framework,triaged-framework

## Use case

Currently ARB files support only following plural forms: `=0`, `=1`, `=2`, ..., `few`, `many`, `other`.
And `gen_l10n` generator ignores `zero`, `one` & `two` plural forms.

However, according to ICU standard [here](http://userguide.icu-project.org/formatparse/messages) and [here](https://localizely.com/blog/quick-guide-to-icu-message-format/) these numeric representation of plural forms (`=0`, `=1`, `=2`, ...) represent cases when the number is **exactly** that.

In order to properly cover plural forms among different languages according to ICU standard, ARB files should support `zero`, `one` & `two` plural forms as well.
These `zero`, `one`, `two` forms are meant to be applied in **more cases than just those exact numbers**.
Check [here](https://localizely.com/language-plural-rules/).


## Proposal

Add support for plural forms like this one:
```"pluralString": "{howMany, plural, zero{...} one{...} two{...} few{...} many{...} other {...}}"```

which should generate the following Dart code:
```
String pluralString(int howMany) {
    return intl.Intl.pluralLogic(
      howMany,
      locale: localeName,
      zero: '...',
      one: '...',
      two: '...',
      few: '...',
      many: '...',
      other: '...',
    );
  }
```
Repository: PowerToys
Issue: [ModuleTemplate] Building fails out of box
Labels: Issue-Docs,Area-Module interface,Priority-3

I've followed the [devdocs](https://github.com/microsoft/PowerToys/tree/master/doc/devdocs) steps and successfully started a new module inside this structure:
  
![image](https://user-images.githubusercontent.com/5433382/121420731-ccbf1a00-c943-11eb-9946-8d9c6a41edc3.png)]
  
Right Clicking and building `VideoEncoderFFMPEG` fails and generate the following error list:
  
![image](https://user-images.githubusercontent.com/5433382/121421163-40612700-c944-11eb-9b19-4cff831ce002.png)
  
I've fixed some of them adding (probably) missing `#include` , commenting out sections not present in recent modules and other minor adjustments.
  
Do we have plans to support/fix this template?
Otherwise anywhere I can look to try creating a module?
Maybe cloning a similar one (in my case imageresizer).
Repository: pytorch
Issue: m.fallback(torch::CppFunction::makeFromBoxedFunction<&my_fallback>) gives bad error message
Labels: module: internals,module: cpp,triaged,module: assert failure

The error is you forgot to put () at the end of the makeFromBoxedFunction call. You get this error:

```
../aten/src/ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h:537:38:   required from ‘static void c10::impl::make_boxed_from_unboxed_functor<KernelFunctor, AllowDeprecatedTypes>::call(c10::OperatorKernel*, const c10::OperatorHandle&, c10::DispatchKeySet, c10::Stack*) [with KernelFunctor = c10::impl::detail::WrapFunctionIntoRuntimeFunctor_<torch::CppFunction (*)(), torch::CppFunction, c10::guts::typelist::typelist<> >; bool AllowDeprecatedTypes = false; c10::Stack = std::vector<c10::IValue>]’
../aten/src/ATen/core/boxing/KernelFunction_impl.h:136:9:   required from ‘static c10::KernelFunction c10::KernelFunction::makeFromUnboxedFunctor(std::unique_ptr<c10::OperatorKernel>) [with bool AllowLegacyTypes = false; KernelFunctor = c10::impl::detail::WrapFunctionIntoRuntimeFunctor_<torch::CppFunction (*)(), torch::CppFunction, c10::guts::typelist::typelist<> >]’
../aten/src/ATen/core/boxing/KernelFunction_impl.h:165:114:   required from ‘static c10::KernelFunction c10::KernelFunction::makeFromUnboxedRuntimeFunction(FuncType*) [with bool AllowLegacyTypes = false; FuncType = torch::CppFunction()]’
../torch/library.h:108:64:   required from ‘torch::CppFunction::CppFunction(Func*, std::enable_if_t<c10::guts::is_function_type<FuncType_>::value, std::nullptr_t>) [with Func = torch::CppFunction(); std::enable_if_t<c10::guts::is_function_type<FuncType_>::value, std::nullptr_t> = std::nullptr_t]’
../torch/library.h:658:17:   required from ‘torch::Library& torch::Library::fallback(Func&&) & [with Func = torch::CppFunction (&)()]’
../aten/src/ATen/core/PythonFallbackKernel.cpp:34:72:   required from here
../aten/src/ATen/core/ivalue_inl.h:1675:7: error: static assertion failed: You are calling from with a type that it doesn't support, and isn't a potential custom class (ie: is an intrusive_ptr)
       guts::false_t<T>::value,
       ^~~~
```

not very nice

cc @yf225 @glaringlee @ezyang @bhosmer @smessmer @ljk53 @bdhirsh @ailzhang
Repository: go
Issue: x/tools/gopls: include modifiers in completion candidate labels
Labels: gopls,Tools

Consider whether gopls should include full expressions in candidate labels. For example:

```go
var foo func() int
var bar *int
var _ int = <>
```

At `<>` we currently offer candidates with labels `foo` and `bar` (as of https://go-review.googlesource.com/c/tools/+/323449), but they are inserted as `foo()` and `*bar`. We could change their labels to `foo()` and `*bar`, respectively.

There will be lots of test fallout from this change. We should consider changing the mark based completion tests to depend less directly on the candidate labels.

/cc @findleyr
Repository: pytorch
Issue: [c10d] Work objects should have a general operator<< 
Labels: high priority,oncall: distributed,triaged,better-engineering,pt_distributed_rampup,module: c10d

## 🚀 Feature
`ProcessGroupNCCL`'s `WorkNCCL` object has a useful operator<< (https://github.com/pytorch/pytorch/blob/master/torch/lib/c10d/ProcessGroupNCCL.cpp#L198) which developers can use for enhanced debugging when there are hangs/crashes and it is useful to print out what sort of collective communication was going on.

However, ProcessGroupGloo's work objects and the general `ProcessGroup::Work` object does not have this (https://github.com/pytorch/pytorch/blob/master/torch/lib/c10d/ProcessGroup.hpp), but it would be similarly useful to have one to aid debugability for non-NCCL backends.

In addition, when we've added this we can enable its usage in `ProcessGroupWrapper` (https://github.com/pytorch/pytorch/blob/master/torch/lib/c10d/ProcessGroupWrapper.cpp) to improve error messaging when a collective desync is detected.


cc @ezyang @gchanan @zou3519 @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @agolynski @mrzzd @cbalioglu @gcramer23
Repository: terminal
Issue: Consider making conhost internal interfaces derive form IUnknown, be COM-like
Labels: Product-Conhost,Issue-Task,Area-CodeHealth,Priority-3

This would solve a bunch of our internal ownership issues in a way that's slightly better than "sometimes it has a `shared_ptr`, but the class doesn't know".

Depending on which runtimeclass implementation we use, we could also get weak references. We could also just use non-owning pointers where there would be a reference cycle.

Consider:

* `IUiaData` -- this would also help clear up ownership in Terminal between TermControl and TermControlFrameworkAutomationPeer
* `IRenderData`
* `IControlAccessibilityInfo`
* `IUiaEventDispatcher`
* `ITerminalApi` and `ITerminalInput`?
* Many of the things in interactivity- `IConsoleWindow`, `IHighDpiApi`, `IConsoleControl`, `IConsoleInputThread`, `IWindowMetrics`, etc.
* `IRenderEngine` `IRenderTarget` `IRenderThread` (let the renderer keep itself alive if necessary, fix some ownership issues with render engines and render base)
Repository: go
Issue: x/net/route: parseInterfaceMessage broken on Dragonfly
Labels: OS-Dragonfly,NeedsInvestigation

Note: I think I know how to fix this, and hope to have a patch ready soon. I'm filing this bug first to organize my thoughts and in case it's helpful.

### What version of Go are you using (`go version`)?

Git commit f21be2fdc.
<pre>
falsifian angel-dfly go $ bin/go version
go version go1.16 dragonfly/amd64
</pre>

### Does this issue reproduce with the latest release?

I haven't tried, but it almost certainly will, since no Dragonfly implementation of `parseInterfaceAddrMessage` is there.

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
falsifian angel-dfly go $ bin/go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/falsifian/.cache/go-build"
GOENV="/home/falsifian/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="dragonfly"
GOINSECURE=""
GOMODCACHE="/home/falsifian/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="dragonfly"
GOPATH="/home/falsifian/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/falsifian/src/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/falsifian/src/go/pkg/tool/dragonfly_amd64"
GOVCS=""
GOVERSION="go1.16"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1287776679=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

`route.ParseRIB` can't parse messages of type `RTM_IFINFO`, and omits them instead.

For example, a call to `net.InterfaceByName("tun0")` (in the `net` package) returns an error, even if `tun0` exists.

The list returned by `route.ParseRIB` omits all the routing messages of type `RTM_IFINFO`, which in turn is because the library is trying to use the generic `parseInterfaceMessage` implementation in `interface_classic.go`, which doesn't work since DragonflyBSD's `RTM_VERSION` got bumped to 7 in [commit 43a37315](https://gitweb.dragonflybsd.org/dragonfly.git/commit/43a37315). Related: #34368.

I guess the solution will be to implement a Dragonfly-specific `parseInterfaceMessage`; this is already done for FreeBSD and OpenBSD.
Repository: godot
Issue: Visual script canvas flicker when panning . .
Labels: discussion,topic:editor

### Godot version

4.0 dev . .

### System information

Windows 10, nVidia 1050 Ti laptop

### Issue description

The visual script canvas flickers, when one pan the canvas . . It's a bit annoying, like looking at a strobe light, or so, not THAT bad . . But, over time it will mean, it'll be really annoying to work with visual script, might be same for visual shader graph . . . .

I'm not sure why it's happening, recently got a QLED tv, maybe it has to do with the way the ' pixels ' are weird, in my particular panel . . .

### Steps to reproduce

Open a visual script, I set my default editor color to almost 100 %, ie. the color of the entire editor . . When panning in visual script, the canvas flickers when panning, but it looks super-good, when not moving . . .

I'm sort of hoping to save many hours of head-aches, also in the visual shader editor . . . Tried it, it also happens in visual shader graph set-ups . . .

Basically, when panning the ' canvas ' lines flicker, almost like a bad electrical light, it sort of makes it really difficult to 'read' the graphs, and even after 5 minutes, gives me head-aches, working in visual script . . .

### Minimal reproduction project

Make a new Godot project, go into Editor settings >> interface >> theme and, set Base color to almost black ( I use 7,7,7 RBG ), and try to pan the script, for any visual script, also visual shaders . . .

Well, not sure it's a bug, just means I get massive head-aches, every time I pan or, so . .

ps. Godot 4 is looking so rad, totally excited . . <3
Repository: flutter
Issue: Share code between RenderParagraph and RenderEditable
Labels: a: text input,framework,a: typography,P2,c: tech-debt,team-framework,triaged-framework

In https://github.com/flutter/flutter/pull/83537, we realized that a lot of code is shared between RenderParagraph and RenderEditable, especially for WidgetSpan support.

As we consider adding WidgetSpan support for SelectableText as well (https://github.com/flutter/flutter/issues/38474), this leads us to prefer code reuse rather than three extremely similar codebases to maintain.

We may be able to restructure it to inherit, or potentially a mixin, though I am still unclear how sharable the code actually is.
Repository: TypeScript
Issue: Auto split strings if press enter in a string literal
Labels: Suggestion,Awaiting More Feedback

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms
string, editor
<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback.

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

Improve the experience of string literal edit.

<!-- A summary of what you'd like to see added or changed -->

## 📃 Motivating Example

```ts
let str = 'a very very /*cursor*/very long string'
```

Press Enter at cursor.

```ts
let str = 'a very very ' +
    'very long string'
```

And should not provide this in template literal.

<!--
  If you were announcing this feature in a blog post, what's a short explanation that shows
  a developer why this feature improves the language?
-->

## 💻 Use Cases

<!--
  What do you want to use this for?
  What shortcomings exist with current approaches?
  What workarounds are you using in the meantime?
-->
Repository: terminal
Issue: Combine Fonts, Appearance and Color Schemes into "appearances"
Labels: Issue-Feature,Area-Settings,Product-Terminal

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement

I like making and switching between "themes" - I would define a theme as a combination of:
* Font size, face
* Cursor shape
* Background image, acrylic
* Antialiasing setting
* Retro terminal effects on/off
* Colour scheme

Example:

![image](https://user-images.githubusercontent.com/38451588/121464900-19642d00-c9f8-11eb-822e-4ab619b99d02.png)

More examples on my github here:

https://github.com/campbellkerr/WindowsTerminalThemes



Currently, when changing "themes", I have to adjust all of these settings individually through the GUI - adjusting the .json is not any faster.



# Proposed technical implementation details (optional)

Some thoughts: 
* Have a Theme section, each theme has a name and you can combine a colour scheme (already setup in the Colour Schemes section) and fonts, font settings, cursor shape etc
* Even better - combine appearance/advanced and Colour Schemes into a Themes area, then for each profile, you simply choose a theme instead of going through numerous settings
* Include a theme switcher/selector in the drop down menu so you can switch themes without diving into settings here:

![image](https://user-images.githubusercontent.com/38451588/121465293-e0788800-c9f8-11eb-83a9-93d9e33e71d1.png)

Thanks!
Repository: godot
Issue: Game crashes after pressing ^ (Circumflex) and W Key in sequence
Labels: bug,topic:editor,topic:input

### Godot version

3.3.stable

### System information

Windows 10, german keyboard layout

### Issue description

Pressing ^ (Circumflex) and W Key in sequence does crash the game without an error message. This happens only when running the game from the Editor, not on exported projects.

### Steps to reproduce

Create a minimal project without content and play it. After pressing ^ and W in sequence the window closes, no error message is printed.

### Minimal reproduction project

_No response_
Repository: flutter
Issue: A Way to Query Localization Translations
Labels: c: new feature,framework,a: internationalization,c: proposal,P3,team-framework,triaged-framework

Hi everyone,

I'm creating custom exception handling for my application, and I need `BuildContext` to show my translated error messages to my users. I find myself doing the following a lot. 

This would be in some `Widget` 

```dart
try {
// Something that can throw CustomException.
} on CustomException catch(e) {
String errorMessage;
if (e == CustomException.entryNotAvailable) {
errorMessage = context.l10n.entryNotAvailable;
} else if (e == CustomException.someOtherError) { 
errorMessage = context.l10n.someOtherError;
} 
// Repeated...
showErrorMessage(errorMessage);
} catch (e) {
 debugPrint(e.toString());
}
```

I want a method where I can pass a `String`  and get the correct translation from my `.arb` file like so 

in `.arb` file
```
"entry_not_available": "This entry is not available",
"@entry_not_available": {
"code": "ERRORCODE123"
}
```
Using it like so

```dart
try {
// Something that can throw CustomException.
} on CustomException catch(e) {
String errorMessage = context.l10n.getTranslationByCode(e.code);
showErrorMessage(errorMessage);
} catch (e) {
 debugPrint(e.toString());
}
```


Here is my extension method for the sake of completeness

```dart
extension L10nBuildContext on BuildContext {
  MyL10n get l10n => MyL10n.of(this)!;
}
```

and in my `CustomException` I have

```dart
final String code;

  @override
  bool operator ==(Object other) {
    if (other is CustomException) code == other.code;
    return false;
  }

  @override
  int get hashCode => code.hashCode;
```

I hope this is clear. I don't know if you can add any property to the translation `.arb` like `code` above, but I don't see why not since it's just JSON

thank you
Repository: angular
Issue: `preserveWhitespaces: false` strips whitespace from CDATA text
Labels: area: compiler,P3,compiler: parser

<!--

Oh hi there!

To expedite issue processing please search open and closed issues before submitting a new one.
Existing issues often contain information about workarounds, resolution, or progress updates.

-->


# Bug Report

### Affected Package
<!-- Can you pin-point one or more @angular/* packages as the source of the bug? -->
<!-- edit: --> The issue is caused by package @angular/core


### Is this a regression?

<!-- Did this behavior use to work in the previous version? -->
<!-- edit: --> Yes, the previous version in which this bug was not present was: ....


### Description

I am trying to create a code component with line-number and syntax highlighting, unfortunately I cannot get line-breaks working with it. It seems ng-content just strips them. I don't really know if this is a bug or something I have missed, but it seems like one.


## Minimal Reproduction
<!--
Please create and share minimal reproduction of the issue starting with this template: https://stackblitz.com/fork/angular-ivy
-->
<!-- edit: --> https://stackblitz.com/edit/angular-ivy-p3kmma?file=src/app/code/code.component.ts

<!--
If StackBlitz is not suitable for reproduction of your issue, please create a minimal GitHub repository with the reproduction of the issue.
A good way to make a minimal reproduction is to create a new app via `ng new repro-app` and add the minimum possible code to show the problem.
Share the link to the repo below along with step-by-step instructions to reproduce the problem, as well as expected and actual behavior.

Issues that don't have enough info and can't be reproduced will be closed.

You can read more about issue submission guidelines here: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#submit-issue
-->

## Exception or Error
<pre><code>
<!-- If the issue is accompanied by an exception or an error, please share it below: -->

</code></pre>


## Your Environment

**Angular Version:**
<pre><code>
Angular CLI: 12.0.3
Node: 14.17.0
Package Manager: npm 6.14.13
OS: darwin x64

Angular: 12.0.4
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic, router
... service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.3
@angular-devkit/build-angular   12.0.3
@angular-devkit/core            12.0.3
@angular-devkit/schematics      12.0.3
@angular/cli                    12.0.3
@schematics/angular             12.0.3
rxjs                            6.6.7
typescript                      4.2.4
</code></pre>

**Anything else relevant?**
<!-- Is this a browser specific issue? If so, please specify the browser and version. -->

<!-- Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. -->
Repository: pytorch
Issue: CUDA Memory Error: PyTorch doen't allocate memory even though it's available
Labels: module: cuda,module: memory usage,triaged

`CUDA out of memory. Tried to allocate 2.26 GiB (GPU 0; 6.00 GiB total capacity; 781.59 MiB already allocated; 3.03 GiB free; 1.24 GiB reserved in total by PyTorch) `
I am unable to understand this error. If memory is available then why is PyTorch not allocating it? :sweat_smile:


cc @ngimel
Repository: go
Issue: x/pkgsite: no horizontal scroller on <pre> text containing function signature on overflow
Labels: NeedsInvestigation,pkgsite,UX

<!--
Please answer these questions before submitting your issue. Thanks!
-->
 
### What is the URL of the page with the issue?
 All package's page
 
 
### What is your user agent?
 
<!-- 
You can find your user agent here:
https://www.whatismybrowser.com/detect/what-is-my-user-agent
-->
 Mozilla/5.0 (Linux; Android 9; Unspecified Device) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.0.0 Mobile Safari/537.36
 
 
### Screenshot
 
Not necessary
 
 
 
### What did you do?
 
I visited a package's docs on a mobile device
 
 
 
### What did you expect to see?
 pre text containing function signature to have horizontal scroller on overflow due to longer line length
 
 
### What did you see instead?
Those pre text don't have horizontal scroller on overflow, text are wrap around.