sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: excalidraw
Issue: Self hosting Excalidraw - Umbrella issue
Labels: docker

So I'm opening the self-hosting thread.

## Current architecture
First an architecture overview. Excalidraw is made of three main parts at the moment.

- The client, what you see when you visit `excalidraw.com` which is this repo
- The sockets server, which powers the collaboration feature, [it's this repo](https://github.com/excalidraw/excalidraw-room), a Node.js server running `socket.io`
- The store server, which powers the sharing feature, [it's this repo](https://github.com/excalidraw/excalidraw-json), a Python server running on GAE with some kind of a DB

At the moment, we are planning on publishing a Docker image of the Excalidraw client only. That means that people will be able to self-host the client but they won't be able to use sharing/collaboration features because the client will still have to talk to our cloud-hosted backend servers on which there are CORS restrictions.

## For now

For the image that we are planning on publishing soon (in the next few days), we have already stripped out the google tag manager but I see the visible sharing/collaboration icons as an issue. People will be frustrated by not understanding why they don't work.

I suggest we strip them out too on the Docker image only. Temporarily until we have a plan for the rest two services. It's the best UX we can offer IMO.

## For the future

Moving forward we would like people to be able to self-host a full-fledged Excalidraw environment. My suggestion is to publish a Docker image for each of the two backend servers so people can self-host these as well. Having separate images promotes better scalability and also follows the one service/per container practice. They will be easier to maintain and also people can opt-out of a feature if they don't want to support, e.g. they only want collaboration features but not the storing feature.

Then we will be able to point the client image to specific URLs and it will simply work. 

For that to work, the socket server will be much simpler as it has no dependencies. On the other hand, the storing server has a DB dependency which we will have to consider. Ideally, it should be something easy to use and maintain, like a postgres or a redis instance. 

We could consider how the future of that service looks like, but for now, we can focus on what it actually needs. 

Let me know your thoughts and we can start planning right away.

_I should also mention the [embedded Excalidraw instance](https://github.com/excalidraw/excalidraw-embed) we are working on that would also benefit from being able to connect to a self-host backend server but also have a better UX without icons that don't work._

## Todo

- [x] Dockerize [main frontend client](https://hub.docker.com/r/excalidraw/excalidraw)
- [x] Dockerize [colab server](https://hub.docker.com/r/excalidraw/excalidraw-room)
- [ ] Dockerize storage server
Repository: TypeScript
Issue: TS variable type changes depending on whether typing triggers intellisense or ctrl+space triggers
Labels: Suggestion,Awaiting More Feedback

*TS Template added by @mjbvz*

**TypeScript Version**: 4.0.0-dev.20200615

**Search Terms**
- suggest, completions
- type guards

---

Repro below, note that at the end I press esc then ctrl+space to trigger intellisense again.

![recording (11)](https://user-images.githubusercontent.com/2193314/81695802-fb548380-9417-11ea-8157-b799fbaeb345.gif)
Repository: flutter
Issue: Document how to include .so in windows application
Labels: d: api docs,a: desktop,P2,team-windows,triaged-windows

I want execute a native library in windows across DynamicLibrary.open(), but I not found  recommendations about make this. 

I am tried include .so in assets files and they are included in profile/release compilation, but the path in debug/release are distinct

Debug 
`build/flutter_assets/assets/file.so`

Release 
`data/flutter_assets/assets/file.so`

A possibility is change path dynamically, but I believe that there is a more suitable solution
Repository: pytorch
Issue: [JIT][to-backend] Support type refinement for container types in the generated code
Labels: oncall: jit,triaged

The custom class function used for interfacing to custom backend execution functions uses `AnyListTy` for inputs and outputs. 
```
c10::FunctionSchema getExecuteSchema() {
  auto any_list_ty = c10::ListType::create(c10::AnyType::get());
  c10::Argument self("self", c10::AnyType::get());
  c10::Argument handle("handle", c10::AnyType::get());
  c10::Argument input("input", any_list_ty);
  c10::Argument output("output", any_list_ty);
  return c10::FunctionSchema(
      "execute",
      /*overload_name=*/"",
      /*arguments=*/{self, handle, input},
      /*returns=*/{output});
}
```
The generated Python for the lowered module using type refinement (`i.e. assert isinstance(x, type)`) to make sure that the custom backend returns values of the same type as the annotation on the corresponding scripted method on the original `ScriptModule`. At present, these refinements only work for primitive types. The goal of this task is to get them to work for container types so that backends can returns lists and tuples.

cc @suo
Repository: flutter
Issue: Focus change when tab key is pressed
Labels: a: text input,c: new feature,framework,engine,a: desktop,f: focus,has reproducible steps,P2,found in release: 2.10,found in release: 2.13,team-framework,triaged-framework

When a user implement a custom focus change between text elements, `TAB` key does not respect to the new focus order. 

example code: https://dartpad.dev/09bccb26e883c04d53f5525f3a721989

reproduction steps:
1) in the example code, when `ENTER` is pressed to navigate between fields focus order is correct: firstName, lastName, email, firstName 
2)If `TAB` is used to jump between fields. Order is wrong. Focus jumps from 3rd field (email) to 4th field tel. 

I observed this on Flutter for Web, yet I believe this issue will persist on Desktop and Mobile (when a keyboard is connected to the device).

flutter doctor -v
```
[✓] Flutter (Channel unknown, 1.19.0-5.0.pre, on Mac OS X 10.15.4 19E287, locale en-US)
    • Flutter version 1.19.0-5.0.pre at /Users/nurhan/development/flutter
    • Framework revision 28138ec5e3 (9 days ago), 2020-06-04 00:33:01 -0400
    • Engine revision 2608f2ee9f
    • Dart version 2.9.0 (build 2.9.0-13.0.dev 54adfeb93f)

 
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/nurhan/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] VS Code (version 1.46.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.11.0

[✓] Connected device (2 available)
    • Web Server • web-server • web-javascript • Flutter Tools
    • Chrome     • chrome     • web-javascript • Google Chrome 83.0.4103.97
```

note: example is inspired by the usage in this [post](https://medium.com/flutterpub/flutter-keyboard-actions-and-next-focus-field-3260dc4c694).
Repository: pytorch
Issue: [JIT][to-backend] Finalize the PyTorchBackendInterface API/naming for external sharing
Labels: oncall: jit,triaged

The goal of this task is to finalize the API and naming for the `to_backend` extension so that it can be shared externally.

cc @suo
Repository: flutter
Issue: [Documentation] Need more guidance on using environment variables in Dart
Labels: framework,dependency: dart,d: api docs,P2,team-framework,triaged-framework

`String.fromEnvironment()`

fromEnvironment() functions were added recently. I want more guidance on what are the ways of setting these environment variables.

One way that I know of is --dart-define. 
Is there a way to set these variables in something like a .env file equivalent of how things are in JS?
Repository: flutter
Issue: iOS 13 VoiceControl accessibilityUserInputLabels
Labels: c: new feature,platform-ios,framework,engine,a: accessibility,a: quality,P3,team-ios,triaged-ios

It looks like accessibilityUserInputLabels is not configurable via Semantics Widget. For some scenarios it would be really helpful for VoiceControl Users.
Repository: flutter
Issue: TextField should support typing accented words with external keyboard
Labels: a: text input,framework,engine,f: material design,a: internationalization,has reproducible steps,P2,found in release: 3.7,found in release: 3.9,team-design,triaged-design

## Steps to Reproduce

<!-- You must include full steps to reproduce so that we can reproduce the problem. -->

```
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: TextField(
          autofocus: true
        ),
      )
    );
  }
}
```

1. run above sample in iOS
2. change keyboard input language to `Spanish (Spain)`
3. type `[`
4. type `a`

**Expected results:** à

**Actual results:** `à

we tested it on iOS/Android with external keyboard. both native behaviors showing the accented a without additional prefix \`. in Flutter, it shows two words ` and à.

<details>
<summary> flutter doctor -v</summary>

```
$ flutter doctor -v
[✓] Flutter (Channel stable, v1.17.0-4.0.pre.7, on Mac OS X 10.15.5 19F96,
    locale en)
    • Flutter version 1.17.0-4.0.pre.7 at
      /Users/jerrychen/Documents/project/flutter
    • Framework revision b041144f83 (12 days ago), 2020-06-04 09:26:11 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/jerrychen/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.1
[✓] Connected device (1 available)
    • iPhone 11 Pro • B39B2840-47A2-4280-A589-D86B4AC8A69F • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)
```
</details>
Repository: vscode
Issue: Git - Support `subst` drives
Labels: bug,help wanted,git,windows

Issue Type: <b>Bug</b>

1. Create a subst drive (`mkdir C:\subst_dir && subst Z: C:\subst_dir`)
2. Create a git repo in there (`mkdir Z:\repo && cd /d Z:\repo && git init && echo Hello > test.txt && git add test.txt && git commit -m first`)
3. Open the repo in VSCode (`code repo`)
4. Make some changes to the file and save.

Bug effects (non-exhaustive):

- The file shown on the explorer sidebar does not show as modified. (Expected results: there should be an "M" annotation and the filename should be in orange, the tooltip should also say "Modified" at the end.)
- The source control sidebar lists changes with the full "actual" path `C:\subst_dir\repo\test.txt` (Expected results: it should just show `test.txt` without the full path, and the tooltip will show the full path as `Z:\repo\test.txt`)
- When the file is opened, pressing the "Open Changes" button on the toolbar (top-right) does not navigate to the git changes view.
- When the git changes view is opened from the source control sidebar, pressing the "Open File" button on the toolbar opens the file on the "actual" path instead of the file in the workspace. If the workspace file was already opened, there will now be two tabs for the same file but with a different path.

This starts happening only after I recently updated Git for Windows to `git version 2.27.0.windows.1`. ~~Unfortunately, I don't remember which version I updated it from (it was probably a few months old). I do have another  system with a rather old version (`git version 2.16.2.windows.1`) that does not show this behaviour even on lastest stable VSCode.~~

VS Code version: Code 1.46.0 (a5d1cc28bb5da32ec67e86cc50f84c67cc690321, 2020-06-10T09:03:20.462Z)
OS version: Windows_NT x64 10.0.18363

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: enabled<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off_ok<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|23.86GB (14.54GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
</details>Extensions: none
<!-- generated by issue reporter -->
Repository: pytorch
Issue: TestListwiseL2rOps::test_lambda_rank_loss fails
Labels: caffe2,module: tests,triaged

## 🐛 Bug

The test `TestListwiseL2rOps::test_lambda_rank_loss` fails with the following error. 
```
>           np.testing.assert_allclose(loss, ref_dcg_loss, rtol=1e-5, atol=1e-6)
E           AssertionError:
E           Not equal to tolerance rtol=1e-05, atol=1e-06
E
E           Mismatch: 25%
E           Max absolute difference: 3.35683789e-06
E           Max relative difference: 2.46456226e-05
E            x: array([2.484184, 1.783562, 0.136208, 2.755914], dtype=float32)
E            y: array([2.484185, 1.783562, 0.136204, 2.755913])
```


## To Reproduce
Execute the caffe2 test using the following command:
`python -m pytest --disable-pytest-warnings -v  caffe2/python/operator_test/listwise_l2r_operator_test.py::TestListwiseL2rOps::test_lambda_rank_loss`

## Expected behavior
The test should pass

## Environment

PyTorch version: 1.5.0
Is debug build: No
CUDA used to build PyTorch: 10.2
OS: Red Hat Enterprise Linux Server 7.7 (Maipo)
GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
CMake version: version 2.8.12.2
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: Could not collect
Versions of relevant libraries:
[pip] numpy==1.17.4
[pip] torch==1.5.0
[pip] torchtext==0.6.0
[pip] torchvision==0.6.0a0

Hypothesis version: 5.16.1

cc @mruberry
Repository: pytorch
Issue: Make Scaling in BatchNorm optional 
Labels: triaged,enhancement

## 🚀 Feature

Using the learnable scale γ in batch normalization (`weights` in [_BatchNorm)](https://pytorch.org/docs/1.1.0/_modules/torch/nn/modules/batchnorm.html) should be optional.

## Motivation

If batch normalization is used before a piecewise linear function such as ReLU, the learnable scale γ is practically redundant. It is therefore common to set it equal to 1 in such cases. (See, for example, last paragraph in Section 4 in [https://arxiv.org/ab/1710.05941.pdf](https://arxiv.org/ab/1710.05941.pdf)].

## Pitch

A boolean flag `scale` in `class _BatchNorm(Module)` which sets `self.weights` to ones if `False`.

I am implementing this. If you also think this is useful in general, I can create a PR.
Repository: deno
Issue: Starting REPLServer manually
Labels: cli,suggestion

Node has: https://nodejs.org/api/repl.html#repl_repl_start_options

So I can simply start a webserver and spawn a REPL in the same context to manipulate the server object for example:

```ts
require("repl").start("custom repl>");
```

 How can I do the same in deno?
Repository: godot
Issue: Visual script node for index.y for translation outputs a vector3, not float
Labels: bug,topic:editor,topic:visualscript

**Godot version:**
Godot 3.2, current download . . .

**OS/device including version:**
Windows 10, HP gaming laptop, nVidia . .

**Issue description:**
When I make a GET translation visual script box, and set the it to only output y coordinate, in 3.1 it became a float, in 3.2 it stays a vector3, and makes it difficult to connect it, to other boxes . . .

**Steps to reproduce:**

![2020-06-16 1334](https://user-images.githubusercontent.com/61069740/84769486-32e5bb00-afd6-11ea-85d9-7aeb358bebf6.jpg)

**Minimal reproduction project:**
It happens when I try to select, the y value, of a GET translation box, in Godot 3.2, not 3.1 . .

I'm not sure if it's a bug, or intended, when I print the value, it prints not as a vector3 ( (flt, flt, flt) ), but as a single number, a float . .? I just use a deconstruct vector3, but it's weird, that I have to, since it's printed, as a float . . It's, confusing, for me . . .

Thx <3
Repository: create-react-app
Issue: SVG files imported as React components should not end up in build directory
Labels: issue: needs investigation,issue: bug report

### Intro

SVG files can be imported as React component, and thus inlined into the bundle, using the following syntax:

```
import { ReactComponent as MySvg } from '../../assets/icons/my-svg.svg'
```

### Actual behaviour

Although inlined, the original SVG files will still be processed (by Webpack?) and end up

- in the `build/static/media` folder
- in the `asset-manifest.json` file

Overall, this isn't critical - it only means that unused files end up in the `build` folder. Nevertheless, it's a very confusing behaviour, developers might assume those files are being used or even that SVGs imported the way described above are not being inlined.

### Expected behaviour

The expected behaviour is that inlined resources do not end up in the build folder, resulting in a smaller and clean `build` folder.

### Related

- Follow up on https://github.com/facebook/create-react-app/issues/7941 which was marked as stale
- Related to https://github.com/facebook/create-react-app/issues/9009
Repository: flutter
Issue: DropDownButton widget inside a RotatedBox doesn't have its popup rotated
Labels: framework,f: material design,has reproducible steps,found in release: 3.3,found in release: 3.7,team-design,triaged-design

## Steps to Reproduce
Create a DropDownButton widget inside a RotatedBox with quarterTurns:2 (or other value)

**Expected results:**
Dropdown menu button to be rotated 180°, menu items to also be rotated 180° when pressed.

**Actual results:**
Menu button rotated 180°, but menu items still oriented to main direction of screen
Repository: node
Issue: Provide a way to dynamically change loader hook
Labels: esm

I am looking at the possibility at doing something like [mitogen](https://github.com/dw/mitogen) in node.

How it would work, in really broad strokes, is : 

- Spawn an child node process through sudo/ssh/whatever. Initial code is passed with `-e`.
- This initial code reads commands from stdin, push results on stdout
- One command is EVAL, which just evals a javascript string
- ESM modules imported by the evaluated code are expected to be imported from the parent context. It therefore needs a loader hook which would communicate (via stdin/stdout) to get the module from the parent

However, it's impossible generally to pass a meaningful  `--loader` argument to the child : think of the case of a read-only file-system where we cannot write a temporary loader.mjs that does the job, for example.

In the Python world, mitogen just dynamically add a module loader. It would be nice if we could do the same thing, something in the lines of : 

```
import.meta.hooks = {
  async resolve() { ... },
  ...
}
```
Repository: flutter
Issue: Documentation is not clear if ActivityAware is supported with v1 embedding.
Labels: platform-android,engine,d: api docs,e: embedder,P2,team-android,triaged-android

## Steps to Reproduce
1. Go to https://flutter.dev/docs/development/packages-and-plugins/plugin-api-migration or https://api.flutter.dev/javadoc/io/flutter/embedding/engine/plugins/activity/ActivityAware.html to learn about the Android Plugin API Migration and ActivityAware.
2. Observe `(Optional) If your plugin needs an Activity reference, also implement the ActivityAware interface.` in the first link.
3. Read documentation that states if `ActivityAware` will function on pre Flutter 1.12 Android projects.

**Expected results:** Documentation exists. 

**Actual results:** Not clear if ActivityAware is supposed to work on pre Flutter 1.12 Android projects.

I am unable to get it to work but I'm not sure if its a bug or an unsupported scenario.

```
[✓] Flutter (Channel stable, v1.17.3, on Mac OS X 10.15.5 19F101, locale en-CA)
    • Flutter version 1.17.3 at /Users/jrai/dev/flutter
    • Framework revision b041144f83 (12 days ago), 2020-06-04 09:26:11 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/jrai/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Users/jrai/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6514223/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Users/jrai/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6514223/Android Studio.app/Contents
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.46.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.11.0

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

• No issues found!

```
Repository: pytorch
Issue: Bump up NCCL to 2.7.3
Labels: oncall: distributed,triaged,module: nccl

NCCL 2.7 has been release with p2p communication. Let's upgrade our NCCL submodule to 2.7.

https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/usage/p2p.html#sendrecv

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar