sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tensorflow
Issue: tf.ragged.constant does not detect dense dimensions
Labels: stat:awaiting tensorflower,type:feature,comp:ops,TF 2.9

**System information**
- Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 x64
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: NA
- TensorFlow installed from (source or binary): Binary
- TensorFlow version (use command below): 2.2.0
- Python version: 3.7.6
- Bazel version (if compiling from source): NA
- GCC/Compiler version (if compiling from source): NA
- CUDA/cuDNN version: NA
- GPU model and memory: NA

**Describe the current behavior**

Note: I am reporting this as a bug but I am not sure if it may actually be a feature request, as I am not entirely sure if the described behaviour is fully expected or not.

[`tf.ragged.constant`](https://www.tensorflow.org/api_docs/python/tf/ragged/constant) does not properly detect which dimensions should be ragged from the given Python list. By default, only the outermost dimension is considered as dense, even if other coherent dimensions exist in the data. One can use `ragged_rank` and/or `inner_shape` to mark a number of innermost dimensions as dense, but it does not seem to be possible to do the opposite, that is, marking some outermost dimensions after the first one as dense. And, in general, it does not detect nor allow to make a ragged tensor with an arbitrary combination of ragged and dense dimensions (even though it is possible to build such ragged tensors in other ways).

**Describe the expected behavior**

I would expect that all coherent dimensions of a Python nested list are detected as dense dimensions:

```python
import tensorflow as tf
print(tf.ragged.constant([[[1], [2, 3], [4]], [[5, 6], [], [7]]]).shape)
# (2, 3, None)
```

As a feature addition, having the possibility to specify which arbitrary dimensions are ragged or not would also be nice, although it would have to be with a different API. Maybe I could have for example:

```python
import tensorflow as tf
tf.ragged.constant([[[1], [2, 3], [4]], [[5, 6], [], [7]]], shape=[2, -1, None])
```

With `-1` meaning "detect automatically from data" and `None` meaning `ragged dimension`.

**Standalone code to reproduce the issue**

```python
import tensorflow as tf
# Dense inner dimensions are not detected
print(tf.ragged.constant([[[1], [2, 3], [4]], [[5, 6], [], [7]]]).shape)
# (2, None, None)
# The outermost dimension is always dense
print(tf.ragged.constant([[1], [2, 3], [4]]).shape)
# (3, None)
# But simply adding a couple of brackets makes the dimension ragged
print(tf.ragged.constant([[[1], [2, 3], [4]]]).shape)
# (1, None, None)
```

**Other info / logs**
NA
Repository: go
Issue: regexp: doc: lead with the precise syntax rather than referring to Perl, Python, etc.
Labels: Documentation,help wanted,NeedsFix

<!--
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>
1.13.5

</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> darwin/amd64</summary><br><pre>
$ go env

</pre></details>

### What did you do?

- Regexp is not catching all of the whitespace values that is should
- In particular `\s` is not matching [hair spaces](https://www.compart.com/en/unicode/U+200A) (whereas perl regex does)

Here's a [go playground link](https://play.golang.org/p/Q7qOkm_QsMv)

### What did you expect to see?

It should match the white space.

### What did you see instead?

It did not recognize the hair space as valid white space.

If this is indeed the intended behavior, the docs should be more clear that golang's regex does not conform with perl's and will not match all of the standard regex special characters.

If the docs already say this loudly and clearly and I just missed that section, apologies for being an idiot.
Repository: godot
Issue: Node self-reference leaks on quit if it is typed
Labels: bug,topic:gdscript

Godot 3.1
Godot 3.2.2 beta3

If you do this in a script, Godot will leak on quit:
```gdscript
extends Node

var _tilemap := self
```
```
ERROR: ~List: Condition ' _first != __null ' is true.
   At: ./core/self_list.h:111
ERROR: ~List: Condition ' _first != __null ' is true.
   At: ./core/self_list.h:111
WARNING: cleanup: ObjectDB Instances still exist!
     At: core/object.cpp:2092
```

It won't leak if the variable is not typed.

I suspect that happens because the type system tried to reference the script itself, which creates an embarrassing cyclic reference.

Curiously, that doesn't happen if you do it on a local variable.
Repository: go
Issue: crypto/tls: cleanup handshake state
Labels: NeedsFix

We should refactor where and when the hs and Conn state is accessed and modified during the handshake. For example checkForResumption should probably be side-effect free.
Repository: godot
Issue: Less than comparisons between arrays and sorting arrays of arrays is unpredictable 
Labels: discussion,topic:core,confirmed,documentation

**Godot version:**
3.2.1.stable

**OS/device including version:**
Windows10

**Issue description:**
I just tried to sort an array of pairs of numbers `[[2.061036, 1], [2.599602, 100], [-0.833468, 1]]` and the answer wasn't right.  

It appears that Array objects are not compared by the value of their contents, even when they are arrays of one element, as shown in the example below.  It is not obvious what is being compared.  Object pointer addresses?  

Sorting arrays of tuples is a technique I use a lot in C++ to avoid the hassle of having to define a comparison function pointer required by `sort_custom()`.  Python used to have a similar `cmp(a, b)` function for its sort feature, but it was [taken out](https://portingguide.readthedocs.io/en/latest/comparisons.html#the-cmp-argument) of Python3 in favour of a simpler `key(a)` function.

The [class_array.html documentation](https://docs.godotengine.org/en/3.2/classes/class_array.html#class-array-method-sort-custom) gives an example use of `sort_custom()` which would have worked with a normal `sort()` in Python.  If this is a message about how to do it, it's probably too subtle.  There is a warning about sorting strings containing numbers, but no warning that sorting arrays of arrays is going to be a problem.  

If comparing Arrays doesn't work in the way expected, then it would be better if it gave an Invalid Operation Type error (as it does when you compare to Dictionaries) than to allow it to be written.

**Steps to reproduce:**
```Python
	print("0.8 < 2.5: ", 0.8 < 2.5)          # ---> True
	print("[0.8] < [2.5]: ", [0.8] < [2.5])  # ---> False
	print("[9.8] < [2.5]: ", [9.8] < [2.5])  # ---> True
```


**Minimal reproduction project:**

I've put the above code into the run() function of an editorscript .gd file and used Control-Shift-X to run it:

```
tool
extends EditorScript
func _run():
    ...
```
Repository: godot
Issue: A tilemap created in 3.0 will break if you use `Fix Invalid Tiles`
Labels: bug,topic:editor

Godot 3.2.1

I created a lot of levels with tilemaps in Godot 3.0.6, and later migrated the project to 3.1, then 3.2. Levels still worked fine, until I notice a few occurrences of "invalid cell" errors in some levels.
So I tried using `Fix Invalid Tiles` on these levels, but it completely messed it up with a checkerboard pattern:

![image](https://user-images.githubusercontent.com/1311555/83805329-92bf9600-a6a7-11ea-804a-97084434e16c.png)

After failing to create a minimal repro with only the tilemap in the scene, I came to the conclusion that `Fix Invalid Tiles` will break *if you did not re-save the scene before, using Godot 3.2*. So you have to edit something and save on every level to "upgrade" them.
However this is very unintuitive. This should be fixed, and if it can't be, this should be indicated somehow.

I tried to create another repro from scratch but could not get the checkerboard pattern to appear, I only get it in my project until I save the scenes...

Here is the diff detail from my project after I re-save:
![image](https://user-images.githubusercontent.com/1311555/83806885-14b0be80-a6aa-11ea-8107-8202bbe2fae1.png)
Repository: pytorch
Issue: Segfault = docker + tensorboard + pytorch
Labels: triaged,module: tensorboard

## 🐛 Bug

I have this program:

```python
from torch.utils.tensorboard import SummaryWriter
writer = SummaryWriter()
writer.add_scalar('test', 1)
writer.close()
```

Whenever I try to run it on a cell of a jupyter-lab instance in a docker container with tensorboard, **if it is the first time it crashes the kernel, otherwise it runs forever**. Basically it's unusable.

My suspition was a segfault, since no log appears anywhere while it blocks. Here's  `sudo dmesg` that gives me this everytime i try to run a cell using the writer:

![segfault](https://user-images.githubusercontent.com/5663725/83787119-9a753f80-a693-11ea-84a2-20cc180b1998.png)

## To Reproduce

Steps:

0. pull the docker image to reproduce the bug `docker pull fpelosin/tboardbug`

1. Watch me reproducing the bug instead of listing the passages: [asciinema](https://asciinema.org/a/CxtaVfej4QHkZxgJXiljMbyXn)

## Expected behavior

Whenever I run the cell it should just run.

## Environment

_Run inside the container:_

```
Collecting environment information...
PyTorch version: 1.5.0
Is debug build: No
CUDA used to build PyTorch: 10.1

OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.17.20200320-g6bea0b2

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.1.243
GPU models and configuration: GPU 0: GeForce RTX 2080 Ti
Nvidia driver version: 440.64
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5

Versions of relevant libraries:
[pip3] numpy==1.18.2
[pip3] torch==1.5.0
[pip3] torchvision==0.6.0
[conda] Could not collect

```


## Additional context

_Run inside the container:_

```
cython --version
Cython version 0.29.15

tensorflow.__version__
2.2.0

tensorboard --version
2.2.2

torch.__version__
1.5.0

jupyter-lab --version
2.1.4

python --version
Python 3.6.9

uname -a
Linux e13c9d2cf9a9 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
```

_Run outside the container:_
```
docker --version
Docker version 19.03.11, build 42e35e61f3
```

with nvidia docker (dunno how to check the version). The docker image is based on [ufoym/deepo](https://github.com/ufoym/deepo) and it is very simple:
```Dockerfile
FROM ufoym/deepo
RUN pip install jupyterlab
RUN pip install torch==1.5.0
RUN pip install torchvision==0.6.0
RUN pip install tensorflow==2.2.0
```

This is the tensorboard diagnose:
[tboard.log](https://github.com/tensorflow/tensorboard/files/4731264/tboard.log)

[They](https://github.com/tensorflow/tensorboard/issues/3704) pointed me here.
Repository: pytorch
Issue: [JIT] Print out mutation in IR Dumps
Labels: triage review,oncall: jit

## 🚀 Feature 

When we print out the IR of a function like:
```
@torch.jit.script
def foo(x):
    res = []
    for i in range(len(x)):
        res.append(x[i])
    return res
```

We should make visible the mutation that is occurring. Below, the first argument of `aten::append` has a `(!)` after it to indicate it is being mutated.

 ```
graph(%x.1 : Tensor):
  %12 : int = prim::Constant[value=0]()
  %6 : bool = prim::Constant[value=1]()
  %res.1 : Tensor[] = prim::ListConstruct()
  %3 : int = aten::len(%x.1)
   = prim::Loop(%3, %6)
    block0(%i.1 : int):
      %13 : Tensor = aten::select(%x.1, %12, %i.1)
      %14 : None = aten::append(%res.1 (!), %13)
      -> (%6)
  return (%res.1)
```


TorchScript developers often come from IRs that are completely functional. TorchScript IR might look very similar to TF / Caffe2 / ONNX, but there are additional semantics that are not being represented. I've also had a number of instances where someone asked me why a node wasn't getting optimized, and the answer was because an argument was marked as being mutated. If that had been made visible they probably would have figured it out. 

There are a number of other properties of nodes which are not made explicit when we print IR, such as `hasSideEffects`, `isNondeterministic()`, aliasing, etc. I don't think we should go too far into the weeds with adding other properties, but mutation would be helpful to add.

cc @suo @jamesr66a
Repository: flutter
Issue: More graceful handling of INSTALL_FAILED_VERIFICATION_FAILURE
Labels: tool,a: quality,P3,team-tool,triaged-tool

I am required by device policy to have apps installed via USB verified. It turns out that if you have airplane mode enabled, this fails during `flutter run` as follows:

```
Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install /Users/ianh/dev/ui-exp-dg/microbenchmarks/gc/flutter/build/app/outputs/flutter-apk/app.apk: Failure [INSTALL_FAILED_VERIFICATION_FAILURE]
Error running application on Pixel 3 XL.
```

We should catch that case and report it more gracefully, and suggest turning off airplane mode if appropriate.
Repository: flutter
Issue: Allow devicelab A/B test to compare 2 local engines
Labels: a: tests,c: new feature,engine,c: performance,P3,team-engine,triaged-engine

The current A/B test only tests the --local-engine=xxx and the default engine

The default engine and the local engine might be compiled with different settings (e.g., default engine probably has --lto while the local engine has --no-lto), so the comparison isn't completely controlled if we just want to test a local engine change.

A more fair comparison would be a local-to-local testing with the exact same compilation setting, but just with different engine code (say two git branches)
Repository: flutter
Issue: Use an always true BotDetector in fuchsia_asset_builder.dart
Labels: team,customer: fuchsia,tool,a: quality,P2,team-tool,triaged-tool

The fuchsia_asset_builder tool runs during the Fuchsia build, and should never *not* be considered a bot. Analytics is already disabled for the entrypoint, but bot detection runs beforehand. Running the real bot detector is likely resulting in stray files in the Fuchsia source tree. This can be worked around by injecting a bot detector that always returns true here:

https://github.com/flutter/flutter/blob/3ec6978c9c20d7372cd0d416042fd32a457c184f/packages/flutter_tools/bin/fuchsia_asset_builder.dart#L33

Example hardwired bot detector:

https://github.com/flutter/flutter/blob/e216eec7b483f3030547df48ec35b52ad05df199/packages/flutter_tools/test/src/mocks.dart#L702

/cc @iskakaushik @jonahwilliams
Repository: PowerToys
Issue: [PowerRename] Allow for padding prefix/suffix
Labels: Idea-Enhancement,Help Wanted,Product-PowerRename

# Summary of the new feature/enhancement
Allow for padding a filename with a character(s) to a certain number of total characters. 

I often need to rename a large number of image files which are named as UPC/PLU codes. The existing file names are variable length and I need to left pad the file names with 0's to 13 digits. For example I may have the following file names:
1234.bmp
123.bmp
1234567890.bmp

The result after the batch rename would need to be:
0000000001234.bmp
0000000000123.bmp
0001234567890.bmp
 
<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->
Repository: react-native
Issue: TextInput controlled selection broken on both ios and android.
Labels: Platform: iOS,Issue: Author Provided Repro,Component: TextInput,Platform: Android

**This issue is a continuation of the discussion:** 
https://github.com/facebook/react-native/commit/dff490d140010913d3209a2f3e987914b9c4eee4#commitcomment-39332764
**The link to the sample project that demonstrates the issues:**
https://github.com/Ginger-Labs/Input-bug

## Description
Controlled selection seems to be broken on both ios and android, to demonstrate the issues I created a sample project (find the link above).

## React Native version:
System:
    OS: macOS 10.15.4
    CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
    Memory: 1.55 GB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 10.14.2 - /usr/local/bin/node
    Yarn: 1.13.0 - /usr/local/bin/yarn
    npm: 6.14.5 - ~/.npm-global/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK:
      API Levels: 23, 24, 25, 26, 27, 28, 29
      Build Tools: 26.0.3, 28.0.3, 29.0.0, 30.0.0
      System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom_64
      Android NDK: 21.1.6352462
  IDEs:
    Android Studio: 3.6 AI-192.7142.36.36.6392135
    Xcode: 11.5/11E608c - /usr/bin/xcodebuild
  npmPackages:
    react: ~16.9.0 => 16.9.0 
    react-native: ~0.62.2 => 0.62.2 
  npmGlobalPackages:
    create-react-native-app: 3.4.0
    react-native-app-id: 0.0.5
    react-native-cli: 2.0.1

## Steps To Reproduce
The reproduction steps are in the sample project's ReadMe file.
For simplicity purposes, I will post them here as well:

SIM - iPhone 11 (13.4.1):
1) Click on the "Click Me" Button, set the cursor in the middle, add some text, click on the button again: Notice the text is set to needed one but the selection is not 10
2) Input text: "Hello world", move cursor in between words, click on "@":
  Expected: "Hello @Mihailworld" with the cursor at 13
  Actual: "Hello @Mihailworld" with the cursor at the end of the whole string.

SIM - nexus 6P API28
1) Add text, click on enter (new line).
  Expected: The text stays and a new line is created with "-" in front.
  Actual: The first line becomes empty and the second line "-".
2) Press enter twice and you will get a:
   `Exception in native call java.lang.IndexOutOfBoundsException: setSpan (6 ... 6) ends beyond length 3`
3) Press "@" twice and observe the same bug above.

## Expected Results
I expect the TextInput to work as intended (unless I am missing something conceptual).

## Snack, code example, screenshot, or link to a repository:
https://github.com/Ginger-Labs/Input-bug
Repository: godot
Issue: Godot try to load addon before it import it all resources.
Labels: bug,topic:editor,topic:plugin

**Godot version:**
3.2.1


**OS/device including version:**
Ubuntu 20.04, Windows 10


**Issue description:**
So I making addon with a lot of resources called Rakugo.
And I publish template project that use it.
When people try to open it for first time it crashes Godot with bug simmilar this:
```
ERROR: Failed loading resource: res://.import/sound-on.png-c7069ca607a583f763fc164615f5a3ee.stex.
   At: core/io/resource_loader.cpp:278
ERROR: Failed loading resource: res://gui/OptionsBox/icons/sound-on.png.
   At: core/io/resource_loader.cpp:278
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502
ERROR: Failed loading resource: res://.import/sound-on.png-c7069ca607a583f763fc164615f5a3ee.stex.
   At: core/io/resource_loader.cpp:278
ERROR: Failed loading resource: res://gui/OptionsBox/icons/sound-on.png.
   At: core/io/resource_loader.cpp:278
WARNING: _parse_ext_resource: Couldn't load external resource: res://gui/OptionsBox/icons/sound-on.png
     At: scene/resources/resource_format_text.cpp:175
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502
ERROR: Failed loading resource: res://.import/rakugo_var_h_slider.svg-078a6aa2c49fda8df315869911b0f882.stex.
   At: core/io/resource_loader.cpp:278
ERROR: Failed loading resource: res://addons/Rakugo/icons/rakugo_var_h_slider.svg.
   At: core/io/resource_loader.cpp:278
WARNING: _parse_ext_resource: Couldn't load external resource: res://addons/Rakugo/icons/rakugo_var_h_slider.svg
     At: scene/resources/resource_format_text.cpp:175
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502
``` 
But when they try to open it once again every thing works fine.

**Steps to reproduce:**
1. Download attached zip project
1. Try to open in Godot
1. If it crashes try to reopen the project


**Minimal reproduction project:**
1. The empty project just with addon [Rakugo-bug-test.zip](https://github.com/godotengine/godot/files/4734348/Rakugo-bug-test.zip)
2. [The Rakugo Template](https://github.com/rakugoteam/Rakugo/releases/download/v2.1.01/Rakugo-2.1.01.7z)
Repository: go
Issue: net/http/httputil: ReverseProxy is not allowing to change the status message for the response
Labels: NeedsInvestigation,FeatureRequest

<!--
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>
$ go1.13.3 windows/amd64

</pre>

### Does this issue reproduce with the latest release?

Have not upgraded to latest version yet

### What operating system and processor architecture are you using (`go env`)?
set GO111MODULE=
set GOARCH=amd64
set GOBIN=C:\Users\xyz\Documents\GitHub\Go\workspace\bin
set GOCACHE=C:\Users\xyz\AppData\Local\go-build
set GOENV=C:\Users\xyz\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\xyz\Documents\GitHub\Go\workspace
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\xyz\Documents\GitHub\integration-gateway\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\xyz\AppData\Local\Temp\go-build906736114=/tmp/go-build -gno-record-gcc-switches
<details><summary><code>go env</code> Output</summary><br><pre>
$ go env

</pre></details>

### What did you do?
Overwrote the ModifyResponse method in Reversproxy and set the status of Response to a custom value. In addition to that changed the status code of the response as well

resp.StatusCode = 201
resp.Status = "Custom object created"

<!--
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?

Expected to see the status-code as well as the status message to change in the final response

### What did you see instead?

Only the status code was changed, but the status message was never changed.