sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: three.js
Issue: Examples get scrollbars when resizing the window and custom scaling in the os.
Labels: Addons

##### Description of the problem

II noticed today all the examples currently get scrollbars as I resize them on Windows. Depending on the size they appear and disappear.

Chrome 80

![コメント 2020-04-15 133410](https://user-images.githubusercontent.com/234804/79299095-1d90d980-7f1e-11ea-9108-90814fe5838e.jpg)

Firefox 75

![コメント 2020-04-15 133452](https://user-images.githubusercontent.com/234804/79299107-28e40500-7f1e-11ea-8ecc-5796fa9ae5d5.jpg)

I'd like to suggest again that I think the default CSS for the examples should effectively be

```css
html,
body,
canvas {
  margin: 0;
  width: 100%;
  height: 100%;
  display: block;
}
```

or if you want it separated

```css
html {
  height: 100%;
}
body {
  margin: 0;
  height: 100%;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
}
```

* The height: 100% in body is needed to make sure the body covers the entire window
* The height: 100% in html is needed on firefox

And I'd suggst at a minimum the example code should be changed to

1. not have a container. AFAICT it has no point

    ```js
    container = document.createElement( 'div' );
    document.body.appendChild( container );
    ...
    container.appendChild( renderer.domElement );
    ```

    to just

    ```js
    document.body.appendChild( renderer.domElement );
    ```

    3 lines to 1

2.  pass false to `setSize`

    ```js
        renderer.setSize( window.innerWidth, window.innerHeight, false );
    ```

Of course I'd still suggest switching the default to do this all deeper in three and just make CSS the sizing the default and mostly get rid of the need for `setSize` in most apps as somewhat suggested in #4903

In any case how you fix it or if you fix it is up to you. I just assumed you didn't want scrollbars to appear.

##### Three.js version

- [x] Dev
- [x] r115
- [ ] ...

##### Browser

- [x] All of them
- [x] Chrome
- [x] Firefox
- [?] Internet Explorer

##### OS

- [ ] All of them
- [x] Windows
- [ ] macOS
- [ ] Linux
- [ ] Android
- [ ] iOS

##### Hardware Requirements (graphics card, VR Device, ...)
Repository: flutter
Issue: [Image_picker][iOS] get actual image path
Labels: platform-ios,p: image_picker,package,has reproducible steps,P3,found in release: 3.10,found in release: 3.11,team-ios,triaged-ios

I am extracting images from my mobile phone so that I differentiate gallery and whatsapp images but the problem occurs is that I can not get actual path of image in IOS.In android I am getting the actual path so I easily differentiate the gallery and whatsapp images but in ios I get path like `private/var/mobile/Containers/Data/Application/89e/image_picker/113.jpg`
Repository: flutter
Issue: Flex() make it easier to reverse child order
Labels: c: new feature,framework,a: quality,c: proposal,P3,team-framework,triaged-framework

## Use case

Given that Flutter is also used for web development, flex layout in native web technology have this "comprehensive" property values for the direction, for example in CSS we can do:

`flex-direction: row` equivalent with `direction: Axis.horizontal`
`flex-direction: column` equivalent with `direction: Axis.vertical`

**But, how about these?**

`flex-direction: row-reverse`
`flex-direction: column-reverse`

Let say I have code like below:

```
final _isPortrait = MediaQuery.of(context).orientation == Orientation.portrait;
```

```
Flex(
  direction: _isPortrait ? Axis.horizontal : Axis.vertical,
  children: <Widget>[
    Expanded(flex: _isPortrait ? 2 : 1, child: MyWidget1()),
    Expanded(flex: _isPortrait ? 1 : 0, child: MyWidget2()),
  ],
),
```

When orientation is portrait, of course the `MyWidget1()` will be on the left side as a first child.

However, when orientation is landscape, I want to swap the position of `MyWidget1()` and `MyWidget2()`, thus first child's position is now below of the second child. How to do that in Flutter?

**Current solution:** (Use more ternary)

```
Flex(
  direction: _isPortrait ? Axis.horizontal : Axis.vertical,
  children: <Widget>[
    Expanded(
      flex: _isPortrait ? 2 : 1,
      child: _isPortrait ? MyWidget1() : MyWidget2(),
    ),
    Expanded(
      flex: _isPortrait ? 1 : 0,
      child: _isPortrait ? MyWidget2() : MyWidget1(),
    ),
  ],
),
```

How if the child not just two, but three or more? Use additional "over-the-hood" script like `_isPortrait 
 ? widgets : widgets.reversed.toList()` is not good in my opinion.

## Proposal

Why not add more property to make it cleaner and easier?

```
Flex(
  direction: _isPortrait ? Axis.horizontal : Axis.vertical,
  reverseOrder: !_isPortrait,
  children: <Widget>[
    Expanded(flex: _isPortrait ? 2 : 1, child: BottomButton1()),
    Expanded(flex: _isPortrait ? 1 : 0, child: BottomButton2()),
  ],
),
```
Repository: go
Issue: x/tools/present: issues with preformatted text
Labels: NeedsInvestigation,Tools

commit 0037cb7812fa1343616f77d5e8457b530a8f5bcc of x/tools.

The following presentation doesn't display correctly. The comment in the code block is ignored. The indented text after the bullet point is not displayed in preformatted style as it should be by my reading of the [docs](https://pkg.go.dev/golang.org/x/tools/present?tab=doc).

	# Title
	
	## This talk
	
	```
	// This comment should be displayed.
	There's a comment above this.
	```
	
	- point
	
		This text is should be
		preformatted but is not
Repository: flutter
Issue: flavor flag should support multiple values: flutter build apk --flavor channelA,channelB,channelC
Labels: c: new feature,tool,P3,team-tool,triaged-tool

Can support flutter build apk --flavor channelA,channelB,channelC...
Repository: pytorch
Issue: RuntimeError: Expected cuda::check_device({sparse_, r_, t, dense}) to be true, but got false.  
Labels: needs reproduction,triaged,module: data parallel

I try to use  DataParallel to model ,and i get this.I don't know why and how to fix it ，is there any suggestion?
I use DataParallel  like this:
if cmd_args.mode == 'gpu':
        classifier = classifier.cuda()
        classifier = nn.DataParallel(classifier)

Exception has occurred: RuntimeError
Caught RuntimeError in replica 1 on device 1.
Original Traceback (most recent call last):
  File "/home/server/anaconda3/envs/pytorch1.4/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 60, in _worker
    output = module(*input, **kwargs)
  File "/home/server/anaconda3/envs/pytorch1.4/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/server/disk/lt/androfcg/classifier.py", line 32, in forward
    embed,labels= self.s2v(batch_graph, S2VLIB)
  File "/home/server/anaconda3/envs/pytorch1.4/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/server/disk/lt/androfcg/classifier.py", line 89, in forward
    h = self.mean_field(node_feat, n2n_sp)
  File "/home/server/disk/lt/androfcg/classifier.py", line 99, in mean_field
    input_message = self.w_n2l(node_feat[i])
  File "/home/server/anaconda3/envs/pytorch1.4/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/server/anaconda3/envs/pytorch1.4/lib/python3.7/site-packages/torch/nn/modules/linear.py", line 87, in forward
    return F.linear(input, self.weight, self.bias)
  File "/home/server/anaconda3/envs/pytorch1.4/lib/python3.7/site-packages/torch/nn/functional.py", line 1370, in linear
    ret = torch.addmm(bias, input, weight.t())
RuntimeError: Expected cuda::check_device({sparse_, r_, t, dense}) to be true, but got false.  (Could this error message be improved?  If so, please report an enhancement request to PyTorch.)
  File "/home/server/disk/lt/androfcg/main.py", line 28, in loop_dataset
    _, loss, acc = classifier(selected_idx,S2VLIB)
  File "/home/server/disk/lt/androfcg/main.py", line 77, in <module>
    avg_loss = loop_dataset(S2VLIB, classifier, train_idx, optimizer=optimizer)
Repository: godot
Issue: _draw() function behaving weirdly when resizing window - even WITHOUT randomize()
Labels: documentation,topic:gui

**Godot version:**
3.2.1

**OS/device including version:**
macOS Catalin 10.15.4 / MacBookPro11,1

**Issue description:**
I have a Godot project with standard configuration. Nothing has been changed.
I wrote a simple line of code in func _draw():
draw_circle(Vector2(rand_range(0, 600), rand_range(0, 600)), rand_range(100, 300), Color(0.39, 0.58, 0.93, 1))
The (possible) problem: When I run the project, then maximise and minimise the window, the circle gets rearranged on the screen randomly even though I haven't used the randomise() function.
Check the screen recording for proof:
[Godot_Draw_Anomaly_without_randomise.mov.zip](https://github.com/godotengine/godot/files/4480434/Godot_Draw_Anomaly_without_randomise.mov.zip)

**Steps to reproduce:**
Use the attached Godot project.

**Minimal reproduction project:**
[Apocalypse Now_without_randomise.zip](https://github.com/godotengine/godot/files/4480423/Apocalypse.Now_without_randomise.zip)
Repository: create-react-app
Issue: LESS is very good, why not consider supporting it?
Labels: issue: proposal,needs triage

LESS is very good, why not consider supporting it?
Repository: vscode
Issue: Git - Timeline support for folders
Labels: feature-request,git,timeline,timeline-git

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

The timeline should support folders as well: the timeline of a file X is equivalent to `gitk -- X`, and the timeline of a folder X should be equivalent to `gitk -- X`.
Repository: godot
Issue: Mono: mscorlib.dll.so not found
Labels: topic:buildsystem,topic:dotnet

Hello,

I have a problem with generating mono glue.
With running command:
_bin/godot.linuxbsd.tools.64.mono --generate-mono-glue modules/mono/glue_
I get an error:

> ERROR: Condition "!valid" is true. returned: false
> at: _populate_object_type_interfaces (modules/mono/editor/bindings_generator.cpp:2401)

Here is the log:
```
Config attempting to parse: '/etc/mono/config'. (in domain Mono, info)
Config attempting to parse: '/home/bartlomiej/.mono/config'. (in domain Mono, info)
Image addref mscorlib[0x91c3c30] (asmctx DEFAULT) -> /usr/lib/mono/4.5/mscorlib.dll[0x91c2780]: 2 (in domain Mono, info)
Prepared to set up assembly 'mscorlib' (/usr/lib/mono/4.5/mscorlib.dll) (in domain Mono, info)
AOT: image '/usr/lib/mono/4.5/mscorlib.dll.so' not found: /usr/lib/mono/4.5/mscorlib.dll.so: cannot open shared object file: No such file or directory (in domain Mono, info)
AOT: module (null) is unusable: not compiled for debugging. (in domain Mono, info)
Assembly mscorlib[0x91c3c30] added to domain GodotEngine.RootDomain, ref_count=1 (in domain Mono, info)
Assembly mscorlib[0x91c3c30] added to domain GodotEngine.Domain.Scripts, ref_count=2 (in domain Mono, info)
```

**Mono version:**
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb  4 21:20:20 UTC 2020)

1. In /usr/lib/mono/4.5/ is only mscorlib.dll file.
2. mscorlib.dll.so is in /usr/lib/mono/aot-cache/amd64/ directory.
3. I tried to move the file from amd64 dir to 4.5 dir, but then I got another error:

```
Config attempting to parse: '/etc/mono/config'. (in domain Mono, info)
Config attempting to parse: '/home/bartlomiej/.mono/config'. (in domain Mono, info)
Image addref mscorlib[0x7d0fdf0] (asmctx DEFAULT) -> /usr/lib/mono/4.5/mscorlib.dll[0x7d0e940]: 2 (in domain Mono, info)
Prepared to set up assembly 'mscorlib' (/usr/lib/mono/4.5/mscorlib.dll) (in domain Mono, info)
AOT: module /usr/lib/mono/4.5/mscorlib.dll.so is unusable: not compiled for debugging. (in domain Mono, info)
Assembly mscorlib[0x7d0fdf0] added to domain GodotEngine.RootDomain, ref_count=1 (in domain Mono, info)
Assembly mscorlib[0x7d0fdf0] added to domain GodotEngine.Domain.Scripts, ref_count=2 (in domain Mono, info)
```

I thought it was because of 'garbage' after previous Mono version.
I totally removed Mono (apt purge) and removed directories /usr/lib/mono & /etc/lib/mono.
Then installed Mono again using https://www.mono-project.com/download/stable/

After couple hours I have no idea what else can I do to fix it.
Does anyone know?
Repository: youtube-dl
Issue: How to force use of libfdk_aac
Labels: question

Hello,

I miss an option to specify that ffmpeg uses libfdk_aac to encode the aac audio output. When using ffprobe, it says, that audio files are encoded with Lavf58.29.100. I wish to use libfdk instead.
Repository: godot
Issue: No notification for virtual keyboard hide
Labels: enhancement,topic:porting

**Godot version:**
3.2.1
**OS/device including version:**
Android 10
**Issue description:**
There is a notification in the MainLoop for 
NOTIFICATION_WM_GO_BACK_REQUEST:
and
NOTIFICATION_WM_QUIT_REQUEST:

These notifications try to catch the use of the BACK button.  However, when the Virtually Keyboard is open, Godot is not catching the BACK button being pressed.
It looks like the BACK button changes its state when the keyboard is open.  Even the icon for the BACK button changes to a down arrow (v).  When the virtual keyboard is open, the back button simply hides the keyboard.  After the keyboard in hid, the BACK button returns to normal BACK button.
Repository: youtube-dl
Issue: ymca360.org site request
Labels: site-support-request

## Checklist
- [X] I'm reporting a new site support request
- [X] I've verified that I'm running youtube-dl version **2020.03.24**
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've checked that none of provided URLs violate any copyrights
- [X] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs
- Single video: https://ymca360.org/on-demand#/category/22/videos/94
- Single video: https://ymca360.org/on-demand#/category/85/videos/102

## Description
From their FAQ:
"YMCA 360 is an on-demand video platform for our Y community. We’re bringing you group exercise classes, youth sports classes, wellbeing classes and more to serve you wherever you are. Whether you are at home or on the road, take the Y with you with your favorite classes, instructors and more."

No credentials are required to view these videos.
Repository: flutter
Issue: onPanStart and onPanEnd doesn't work when there is a PageView widget inside GestureDetector
Labels: framework,f: scrolling,f: gestures,has reproducible steps,P2,found in release: 3.7,found in release: 3.10,team-framework,triaged-framework

```dart
class Demo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('demo'),),
      body: GestureDetector(
        onPanCancel: () {
          print('pan cancel');
        },
        onPanDown: (_) {
          print('pan down');
        },
        onPanUpdate: (_) {
          print('pan update'); // won't trigger
        },
        onPanStart: (_) {
          print('pan start'); // won't trigger
        },
        onPanEnd: (_) {
          print('pan end'); // won't trigger
        },
        child: PageView.builder(
          itemBuilder: (ctx, index) {
            return Container(
              height: 100,
              color: Colors.blue,
              child: Text('$index')
            );
          },
        ),
      ),
    );
  }
}
```

I want to listen to `PageView`'s `onPanStart` and `onPanEnd` event, but it doesn't work. The code above only triggered `onPanDown` and `onPanCancel`, other event won't fire.

How can I add listener to these events?
Repository: go
Issue: cmd/go/internal/auth: readNetrc: detect exposed .netrc files
Labels: Security,NeedsDecision,FeatureRequest

It is a common practice for security-conscious code to return an error when a file holding secret material is not stored safely.

For example, you may have already encountered an ssh error saying a user's private key has unsafe mode. Similarly, the python netrc library throws an exception when file permissions aren't sufficiently narrow.

Go's internal `readNetrc` does not implement such a check as of `1.14.1`.
Repository: go
Issue: cmd/go/internal/list: Wildcard expansion inside `testdata` does not work
Labels: NeedsInvestigation,GoCommand

<!--
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.14 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
Yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/tbe/.cache/go-build"
GOENV="/home/tbe/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/tbe/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/x86_64-pc-linux-gnu/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/x86_64-pc-linux-gnu/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="x86_64-pc-linux-gnu-cc"
CXX="x86_64-pc-linux-gnu-c++"
CGO_ENABLED="1"
GOMOD="/home/tbe/repos/go/packagesTest/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="x86_64-pc-linux-gnu-pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build133136046=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

```
$ go list k8s.io/gengo...
k8s.io/gengo/args
k8s.io/gengo/examples/deepcopy-gen
k8s.io/gengo/examples/deepcopy-gen/generators
k8s.io/gengo/examples/deepcopy-gen/output_tests
[...]
$ go list k8s.io/gengo/testdata/a
k8s.io/gengo/testdata/a
$ go list k8s.io/gengo/testdata/a...
go: warning: "k8s.io/gengo/testdata/a..." matched no packages
$ go list k8s.io/gengo/testdata/a/b
k8s.io/gengo/testdata/a/b
```


### What did you expect to see?
```
$ go list k8s.io/gengo/testdata/a...
k8s.io/gengo/testdata/a
k8s.io/gengo/testdata/a/b
```

### What did you see instead?
see above

While it is a wanted behavior, that `testdata` is excluded from wildcard lists, i't seems rather counter-intuitive, that wildcard expansion _inside_ `testdata` does not work.
Repository: react
Issue: Bug: window as new portal will break event delegation
Labels: Type: Discussion

<!--
  Please provide a clear and concise description of what the bug is. Include
  screenshots if needed. Please test using the latest version of the relevant
  React packages to make sure your issue has not already been fixed.
-->

React version: any?

## Steps To Reproduce

1. Button attach to a window portal with window.open
2. Event not triggering


<!--
  Your bug will get fixed much faster if we can run your code and it doesn't
  have dependencies other than React. Issues without reproduction steps or
  code examples may be immediately closed as not actionable.
-->

Link to code example:
```javascript
const { useState, useEffect } = React;


function WindowPortal({ children }) {
  const [container, setContainer] = useState(document.createElement('div'));
  useEffect(() => { 
    const newWindow = window.open('', '', 'width=600,height=400,left=200,top=200');
    newWindow.document.body.appendChild(container);
  });
  return ReactDOM.createPortal(children, container);
}
function App() {
  const [value, setValue] = useState('unclicked');
  const handleClick = () => setValue('clicked'); 
  return (
    <div>
      <div>Portal Test</div>
      <WindowPortal>
        <button onClick={handleClick}>{value}</button>
      </WindowPortal>
    </div>
  );
}

ReactDOM.render(
  React.createElement(App),
  document.getElementById('root')
);
```
<!--
  Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
  repository on GitHub, or provide a minimal code example that reproduces the
  problem. You may provide a screenshot of the application if you think it is
  relevant to your bug report. Here are some tips for providing a minimal
  example: https://stackoverflow.com/help/mcve.
-->
Any event in the new window will not be triggered since all events are bind to the original window. I think react can support a new mode for using native event binding rather than event delegation if it makes sense. [Preact](https://github.com/preactjs/preact) actually uses native browser event and don't use react event delegation system.
## The current behavior
Event not trigger for components in new window

## The expected behavior
Event will trigger
Repository: terminal
Issue: Media and other keys autoscroll the terminal
Labels: Help Wanted,Area-Input,Issue-Bug,Area-TerminalControl,Product-Terminal,Priority-2

# Description
Keys that aren't meant to insert characters seem to jump the terminal to the bottom where input is being awaited. This includes media buttons.

# Steps to reproduce
Open any terminal tab (tested with both Ubuntu and Powershell) and run anything to fill up the screen (e.g. run `ls` 5 times). Scroll up until the text input area is off the page. 

Press any non-typing character that isn't a modifier (tested with "calculator" key, play/pause, and volume control keys) 

# Expected Behavior
These keys should have no effect on terminal

# Actual behavior
Terminal scrolls to the bottom of the page where a new line is 

![ezgif-7-c7e99acf7c07](https://user-images.githubusercontent.com/13724985/79384807-8d5e8e80-7f35-11ea-943a-c395332eff09.gif)

In this video I press the mute key or the calculator key, causing the terminal to jump

# Version Info
Windows Terminal
Version: 0.10.781.0
Repository: go
Issue: cmd/compile: allow inlining of open-coded defer calls
Labels: Performance,NeedsInvestigation,compiler/runtime

Inlining happens before SSA conversion, while open-coded defers happen after, thus the open-coded deferred call can never be inlined. It would be nice to fix this.

@danscales:

> It definitely is not trivial, since inlining happens before SSA conversion, whereas there are a bunch of reasons why at least some of the open-coded defer work have to be done during SSA conversion.  Among other things, we need to force storing defer args to stack slots and keeping those stacks slots live even though they sometimes appear to be dead (but are actually needed to run the open-coded defers when there is a panic).

@randall77 @aclements
Repository: godot
Issue: EditorPlugin edit() is called multiple times when selecting a node
Labels: bug,topic:editor

Godot 3.2.1
Windows 10 64 bits

I noticed `edit` is called twice, sometimes even 3 times in a row when I select a node my plugin handles. This can have negative impact if heavy lifting is done on in that function.
In my plugin this happens with a custom node type.

Repro:
[EditCalledMultipleTimes.zip](https://github.com/godotengine/godot/files/4483683/EditCalledMultipleTimes.zip)
1) Open main.tscn
2) Click on the `Spatial` node: observe `EDIT` is printed twice.
3) Click on the `Node`: nothing prints as expected
4) Click again on the `Spatial`: observe `EDIT` is printed twice again.