sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Translation keys containing a newline (\n) aren't translated when using the tr() function
Labels: bug,topic:core,confirmed

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
3.3 RC 8


**OS/device including version:**
Windows 10


**Issue description:**
If the translation key you give to the `tr()` function contains one or more newline (`\n`) characters, the function will return the key itself instead of the translated version, even if the key is present in the translation file.

Something to note is that if you plug the key in a standard Label (without calling the `tr()` function), the translation does work as expected.


**Steps to reproduce:**
1. Create a translation.csv with just a column for 'key' and 'en'
2. Add a line to the csv file, with key `This is a test string\nwith a newline` and translation `This is a test string\nwith a newline (translated)`
3. From anywhere, call `print(tr("This is a test string\nwith a newline"))`
4. In the console, the untranslated key will be printed

**Minimal reproduction project:**
The project contains 3 test cases: printing to console, setting the string in a normal Label, setting the string in the bb_code field of a RichTextLabel. Only the Label version works as expected.
[godot-translation-bug.zip](https://github.com/godotengine/godot/files/6309589/godot-translation-bug.zip)
Repository: go
Issue: all: remove existing uses of io/ioutil package
Labels: NeedsFix

The `io/ioutil` package is still used in `go/build` and `net/http`.

It is also widely used in the `cmd` module. I'm not sure if there was a reason why it was removed in `std` but not in `cmd`.
Repository: pytorch
Issue: NNAPI support for torch.cat([...]) when dim=-1
Labels: enhancement,oncall: mobile

## 🚀 Feature
NNAPI model should support concatenation when dim=-1

## Motivation

In both **PyTorch** & **TorchScript** format, using torch.cat([...], dim=-1) runs succesfully. But although the conversion from **TorchScript** to **NNAPI** is succesfull, the model fails to run on the **Android device** when axis is **NOT** >=0 for the concatenation opperation.

## Pitch

Using torch.cat([...], dim=-1) in python code (as in: passing _-1_ to _dim_) should also be supported when running model on the Android device.

## Alternatives

An alternative behaviour would be the conversion from TorchScript to NNAPI to fail with a message saying that **only dim >=0 is currently supported**.
Repository: deno
Issue: Cancellation APIs
Labels: public API,suggestion

Hey,

It would be really cool if Deno aligned with the web platform's cancellation primitive AbortSignal/AbortController which Deno already supports but not in most of its APIs.

Myself and a few others have been adding support for AbortSignal to all of the APIs it fits in Node.js to make it easier for people to write universal JavaScript code. For example:

```js
Deno.readTextFile('./someFile', { signal });
Deno.writeTextFile('./someFile', { signal });
```

And more generally - in Deno's stream abstractions. Would you be open to adding this?

(Sorry for not being too available on Discord with the baby/health stuff/new job :))
Repository: godot
Issue: Save scene as branch disconnects all signals to and from the branch
Labels: bug,topic:editor

**Godot version:**
3.2.3


**OS/device including version:**
GTX 1060 6GB, gles 3.0



**Issue description:**
When saving a branch as a scene you would expect the signals connected to (at least) the root of that branch to remain connected
When saving as branch all signals to and from that branch are disconnected.


**Steps to reproduce:**
Create a button. 
Add a child with a script. 
Connect the button's pressed signal to it's child (e.g make it print "hello world")
Run the program, prints hello world when the button is pressed
Save the child as a branch
Run the program, pressing the button does nothing.

**Minimal reproduction project:**
[SignalDisconnect.zip](https://github.com/godotengine/godot/files/6310325/SignalDisconnect.zip)

(This is the project before saving branch as scene, save the child as branch and it disconnects the signal)
Repository: flutter
Issue: AutofillHints suggestion window and TextField glitches when pressing backspace when TextField is empty
Labels: a: text input,platform-ios,framework,f: material design,has reproducible steps,P2,found in release: 3.10,found in release: 3.11,team-ios,triaged-ios

As you can see on the gif the UI gets jumpy when using empty TextField with `AutofillHints.telephoneNumber` and trying to hit backspace. Well it seems that the reason UI jumps is that autofill suggestion disappears for a second but that doesn't happen when e.g using `AutofillHints.givenName`

<img src="https://user-images.githubusercontent.com/29712386/114701334-41ffdb80-9d55-11eb-8595-3bc844313c13.gif" width="300">

Code to reproduce the issue:
```dart
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('Test TextField')),
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(20),
            child: TextField(
              keyboardType: TextInputType.phone,
              autofillHints: [AutofillHints.telephoneNumber],
              decoration: InputDecoration(
                labelText: 'Phone number',
              ),
            ),
          ),
        ),
      ),
    );
  }
}

```


Flutter doctor output:
```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.4, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.55.0)
[✓] Connected device (2 available)

• No issues found!
```
Repository: rust
Issue: Tracking Issue for `nonzero_ops`
Labels: T-libs-api,C-tracking-issue

Feature gate: `#![feature(nonzero_ops)]`

This is the tracking issue for #82703. The common arithmetic operators that keep the invariants of `NonZero*` types enforced are implemented for these types.

### Public API

Example with `U8`/`I8`, but same for `U16`/`I16` *etc.*
```rust
// core::num

impl NonZeroU8 {
    pub const fn checked_add(self, other: u8) -> Option<Self>;
    pub const fn saturating_add(self, other: u8) -> Self;
    pub const unsafe fn unchecked_add(self, other: u8) -> Self;
    pub const fn checked_next_power_of_two(self) -> Option<Self>;
}

impl NonZeroI8 {
    pub const fn abs(self) -> Self;
    pub const fn checked_abs(self) -> Option<Self>;
    pub const fn overflowing_abs(self) -> (Self, bool);
    pub const fn saturating_abs(self) -> Self;
    pub const fn wrapping_abs(self) -> Self;
    pub const fn unsigned_abs(self) -> NonZeroU8;
}

impl NonZeroU8 /* and NonZeroI8 */ {
    pub const fn checked_mul(self, other: Self) -> Option<Self>;
    pub const fn saturating_mul(self, other: Self) -> Self;
    pub const unsafe fn unchecked_mul(self, other: Self) -> Self;
    pub const fn checked_pow(self, other: u32) -> Option<Self>;
    pub const fn saturating_pow(self, other: u32) -> Self;
}

/* Not yet on nightly, as it is insta-stable:
impl Neg for NonZeroI8 {
    type Output = Self;
    fn neg(self) -> Self;
}
*/
```

### Steps / History

- [x] Implementation: #82703
- [x] Merge #87910 marking unsafe methods as `const`.
- [x] Final commenting period (FCP)
- [x] Stabilize checked methods in #97547.
- [ ] Stabilize `unchecked_` methods.
- [x] Add `impl Neg for NonZeroI*`, which could not be feature-gated.

### Unresolved Questions

- [x] Should `unchecked_add` and `unchecked_mul` be marked `const` and how? Would it imply that their `const`-ness for the underlying types be upgraded in `std`? 
-> Leave as-is (non-const) until https://github.com/rust-lang/rfcs/pull/3016 lands. (https://github.com/rust-lang/rust/pull/82703#issuecomment-825086380)
-> It has landed now, mark them `const` in #87910.
- [x] Naming: how to avoid confusion regarding the term `(un)checked`, referring to checking for nonzeroness in std with the `NonZeroInt::new_unchecked` method, but here referring to checking overflow? Discussion [here](https://github.com/rust-lang/rust/pull/82703#issuecomment-825127657).
-> `check` consistently means "check everything that needs be checked in the current context, and refer to the doc to verify what needs to be checked in this context". The doc has been made explicit about what needs to be checked for every method above.
Repository: pytorch
Issue: [tensorboard] Expected data-type of images in tensorboard SummaryWriter
Labels: oncall: visualization

## 📚 Documentation OR Bug

Hi,
I tried to save a uint8 numpy image to tensorboard using SummaryWriter.add_image, and the result was a "overflowed" image.
Once I cast the image to numpy.float, the image was ok.

Pytorch 1.7.1

Not sure if this is a bug or a documentation problem.

Thanks
Repository: go
Issue: net/http: client closes persistent connections when context deadline is exceeded without reuse
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
1.14.4
</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="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/godia/Library/Caches/go-build"
GOENV="/Users/godia/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/godia/dev"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14.4/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14.4/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=<redacted>
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/r0/ggt8ftqn467cckf8r_y58vqr0000gp/T/go-build603942499=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?
Ran into a scenario while using the http client, when there is a surge in the number of requests and in certain requests when context deadline is exceeded at the client side.
<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->



### What did you expect to see?
Persistent connection remains intact when not explicitly closed due to request context timeouts.


### What did you see instead?
Persistent connections should be reused. But a lot of new dials happen due to closing of persistent connections which could have been potentially avoided.

Relevant code in question: https://github.com/golang/go/blob/master/src/net/http/transport.go#L2219
Repository: create-react-app
Issue: Customize the name of the service-worker file?
Labels: issue: proposal,needs triage

Hello,
I'm wondering if it may be possible to customize the name of the generated service worker.
I have some libraries that require an specific service worker name
Repository: pytorch
Issue: Failure in complex CUDA numerics tests for sigmoid
Labels: triaged,module: complex

I am adding [support for complex datatype to sigmoid on cuda](https://github.com/pytorch/pytorch/pull/55975). The corresponding hard and extremal tests failed due to comparison between NaN and 0, skipping these for now. For more information please refer to: https://github.com/pytorch/pytorch/pull/55975#pullrequestreview-635223906

cc @ezyang @anjali411 @dylanbespalko @mruberry
Repository: go
Issue: x/website: mode=json&include=all does not include go1.4-bootstrap-20171003.tar.gz
Labels: NeedsInvestigation,website

https://golang.org/dl/?mode=json&include=all shows `go1.4-bootstrap-20170518.tar.gz` and `go1.4-bootstrap-20170531.tar.gz` but not the latest `go1.4-bootstrap-20171003.tar.gz`, linked in https://golang.org/doc/install/source.
Repository: TypeScript
Issue: Playground incorrectly requests displayparts for jsdoc from TS 4.3
Labels: Bug,Rescheduled

With the playground set to nightly, jsdoc comment text renders as "*[object Object]" because Monaco is incorrectly requesting displayparts from the language server and then doesn't know how to render them:

https://www.typescriptlang.org/play?ts=4.3.0-dev.20210413&useJavaScript=true#code/PQKhFgCgAIWhJADgZwK4Fsq2gAQC4CeiApgCbEBm0A3tRQPb0Bc0A5A-awL5fQBijaABl6AJ2LpYwKDMgVUAOwDGeAJb0F0CgAoAlDShdZxyFFBx8RYjQH1eIaZABuAQ1HQXAblk7dQA

Expected: quickinfo for f: "@typedef - Foo Lorem"
Actual: "@typedef - [object Object] [object Object] [object Object]"

I checked this with Code, Code Insiders and emacs on the latest build and none shows the problem.
Repository: TypeScript
Issue: String(number) does not return `${number}` type
Labels: Suggestion,In Discussion,Domain: lib.d.ts

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->
string constructor number type template literal

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->

4.2.3

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
[Playground link with relevant code](https://www.typescriptlang.org/play?#code/MYewdgzgLgBBYC4YAMAkBvMBXAtgIwFMAnAX2RgF4YBlKIgSzAHMAKARgCYBmASgCggA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
const stringNumber: `${number}` = String(123)
```

### 🙁 Actual behavior

Error: Type 'string' is not assignable to type '`${number}`'.(2322)

### 🙂 Expected behavior

No error.

### Why
`String`, according to ES ([`String(value)`](https://tc39.es/ecma262/#sec-string-constructor-string-value), and [`ToString(argument)`](https://tc39.es/ecma262/#sec-tostring)), uses `toString` method on passed in values, so ideally the fix should include only changes on `Number` interface, but currently it's `String`'s def does not care about `toString`, so these two signature would have to be generic:
```ts
// lib.es5.d.ts
interface StringConstructor {
    new(value?: any): String;
    (value?: any): string;
}
```
And this one would need to be generic as well as the type of returned string would depend on the radix.
```ts
// lib.es5.d.ts
interface Number {
    toString(radix?: number): string;
}
```
This approach would make `String` easily extensible and compatible with template literal types, but I'm not sure how drastic of a change it is.

Most likely would be related to https://github.com/microsoft/TypeScript/issues/42996
Repository: go
Issue: crypto/rsa: can generate digital signature when hash algorithm (digest method) is set to MD5 in FIPS mode
Labels: NeedsInvestigation

I am able to generate signature with md5 hash algorithm in FIPS mode.  According to FIPS 140-2 md5 should not be use for digital signature.



<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.15.4 linux/amd64


</pre>

### Does this issue reproduce with the latest release?
Not checked


### What operating system and processor architecture are you using (`go env`)?
GOARCH="amd64"
GOHOSTOS="linux"
OS=redhat 7.5


### What did you do?
<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->
below code I'm using to generate digital signature

```go
data := []byte("Checking fips mode")
hash := md5.New()
hash.Write(data)
bytesData := hash.Sum(nil)

signData, err := rsa.SignPKCS1v15(nil, privKeyObj, crypto.MD5, bytesData[:])
if err != nil {
        return "", err
}
```

I have build this code with go-toolset 
`GOOS=linux GOARCH=amd64 scl enable go-toolset-1.14 'go build -v -o fips-compliance-check'`

When I run generated go binary in FIPS enabled host it should fail but unfortunately code is generating signature

I don't know whether is this issue or not.
Or am I lacking some understanding here?
Repository: pytorch
Issue: when building apk with libtorch
Labels: needs reproduction,module: build,triaged

error: no template named 'hash'; did you mean '::std::hash'?


cc @malfet @seemethere @walterddr
Repository: PowerToys
Issue: [FancyZones] Does not activate with GTK3 Window
Labels: Product-FancyZones,Area-App Compat

### Microsoft PowerToys version

0.35.0

### Running as admin



### Area(s) with issue?

FancyZones

### Steps to reproduce

While dragging a GTK3 Window it does not activate the zones when pressing SHIFT or secondary mouse buttons.

### ✔️ Expected Behavior

Pressing secondary mouse button or SHIFT, while dragging the window, to activate the zones.

### ❌ Actual Behavior

Zones do not activate

### Other Software

Viking GPS 1.9 ([https://github.com/viking-gps/viking](https://github.com/viking-gps/viking)).
Repository: pytorch
Issue: [Opinfo] Better ErrorMsg for test_out with wrong shape
Labels: module: tests,triaged

While I implement Opinfo for `inner` https://github.com/pytorch/pytorch/pull/55536, the SkipInfo is added due to `AssertionError: UserWarning not triggered : Resized a non-empty tensor but did not warn about it.`

We assume the output tensor with wrong shape will be resized into expected shape
https://github.com/pytorch/pytorch/blob/b1d17bc55f250383e5814a6ee6c7d11e52ef9c62/test/test_ops.py#L614-L627

But `torch.inner` doesn't resize the output tensor as we expected, even if it's a bug (reported #56022).
```py
>>> a = torch.randn(5)
>>> b = torch.randn(5)
>>> torch.inner(a, b)
tensor(-4.2595)
>>> c = torch.randn(2)
>>> torch.inner(a, b, out=c)
tensor([-4.2595, -4.2595])
```

We should have a better error message in this case like raising an error of `Output tensor is not resized as expect` rather than assertion for resizing.

cc @mruberry @VitalyFedyunin @walterddr
Repository: flutter
Issue: ☂️  TextOverflow in TextStyle does not work for SelectableText (basically all editable text widgets)
Labels: a: text input,framework,a: typography,c: rendering,P2,team-framework,triaged-framework

In https://github.com/flutter/flutter/pull/78927 I introduced `TextOverflow` in the `TextStyle` class but when applied in a `SelectableText` (or any editable text field) widget it does not work.

From my research I found out that all kind of overflow does not work for Editable widgets so maybe this can be worked in batches.

- [ ] Make `TextOverflow.fade` work for editable widgets. 
- [ ] Make `TextOverflow.ellipsis` work for editable widgets. https://github.com/flutter/flutter/issues/80435 

From my tests all other overflows seems to work as expected (please do your tests and share feedback).
Repository: pytorch
Issue: Support for mkldnn + ddp
Labels: oncall: distributed,module: mkldnn

## Issue
Issue was brought in https://discuss.pytorch.org/t/using-mkl-dnn-with-distributed-data-parallel-ddp/116974. MKL DNN does not work with DDP because it changes the model layers and DDP cannot detect any gradients. Probably need some more context from the mkldnn folks (https://github.com/pytorch/pytorch/blob/master/torch/utils/mkldnn.py)

## Example

```python
import torch
import torch.nn as nn
import torch.distributed as dist
from torch.nn.parallel import DistributedDataParallel as DDP
from torch.utils import mkldnn as mkldnn_utils
import os
os.environ["MASTER_ADDR"] = "localhost"
os.environ["MASTER_PORT"] = "4678"

class BasicModel(nn.Module):
    def __init__(self, **kwargs):
        super().__init__()
        self.layer =  nn.Linear(in_features=1, out_features=1)

dist.init_process_group("gloo", rank=0, world_size=1)

model = BasicModel()
print(model)
DDP(model) # fine
mkldnn_model = mkldnn_utils.to_mkldnn(model)
print(mkldnn_model)
DDP(mkldnn_model) # error
```

output:
```
BasicModel(
  (layer): Linear(in_features=1, out_features=1, bias=True)
)
BasicModel(
  (layer): MkldnnLinear()
)
Traceback (most recent call last):
  File "distributed_rpc_tutorial.py", line 99, in <module>
    ddp_mkldnn_model = DDP(mkldnn_model) # error
  File "/Users/howardhuang/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/nn/parallel/distributed.py", line 344, in __init__
    assert any((p.requires_grad for p in module.parameters())), (
AssertionError: DistributedDataParallel is not needed when a module doesn't have any parameter that requires a gradient.
```

cc @gujinghui @PenghuiCheng @XiaobingSuper @jianyuh @VitalyFedyunin @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @agolynski @SciPioneer @H-Huang @mrzzd @cbalioglu
Repository: pytorch
Issue: Add an extensibility point for ThreadLocalState
Labels: triaged,function request

## 🚀 Feature

An extensibility point for [ThreadLocalState](https://github.com/pytorch/pytorch/blob/99d77c55ddb8bcfec0ec916faeaf8325a4153fe3/aten/src/ATen/ThreadLocalState.h#L14) that allows extension writers to define their own custom TLS that gets saved and propagated through the various PyTorch subsystems that use ThreadLocalState.

## Motivation

For the composable function transforms prototype (eager-mode vmap+grad), we have a TLS stack that controls how dispatching happens. For example, if the TLS stack looks like [grad, vmap, grad], we'd like to dispatch all operations on VariableType first, then run the batching rule, then dispatch on VariableType again. This TLS state should be propagated to threads, especially when autograd runs.

## Pitch

One possible implementation is to offer extension writers a `REGISTER_TLS` function and a subclass-able `ThreadLocalStateInterface` struct. `REGISTER_TLS` would accept two functions, `save_tls: () -> ThreadLocalStateInterface` and `restore_tls: (ThreadLocalStateInterface) -> void`.

## Alternatives

No clue

## Additional context

This should ideally be close to zero-cost if no one is using the extensibility feature. There should also be low unit-cost for folks who are using the extensibility feature.