sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: DOC: add documentation for undocumented classes and methods
Labels: module: docs,triaged

## 📚 Documentation

Many classes, methods and functions lack docstrings. They should be added or clear reasons provided for not documenting them. xref gh-38244 which refactored the documentation coverage checks: the undocumented items are all listed in `docs/source/conf.py` in `coverage_ignore*` lists
Repository: godot
Issue: Many math_funcs.h float-related functions actually promotes floats to doubles
Labels: bug,topic:core

**Godot version:** 3.2.1.stable (seems that occurs in current master branch also)

**Issue description:** Hi all. I might be wrong with that (then just close the issue), but I thought generally the whole point in switching to `float` related calculations instead of using `double` is a need for speed. For some occasion I've peered into [core/math/math_funcs.h](https://github.com/godotengine/godot/blob/master/core/math/math_funcs.h) and found that many `float`-related functions actually promotes an argument to `double` when interacting with some hand-coded constants. For example, here's a `Math::round()` function implementation:

```c++
static _ALWAYS_INLINE_ float round(float p_val) {
    return (p_val >= 0) ? Math::floor(p_val + 0.5) : -Math::floor(-p_val + 0.5);
}
```

With this implementation, positive `float p_val` is converted to `double` first, added to `double(0.5)` and then resulting `double` is used to call `double floor(double p_x)`, not the (probably) intended proper `float floor(float p_x)`.

Not a very big deal for a result in most use-cases probably, but... well, why bother with all the `floats` then at all, if not to shave some more performance for free?

Almost every function that uses hand-coded constants are suffering from the described issue of unnecessary (I think) float-to-double promotion...

----

I could have provided a fix for the issue, but unfortunately, I'm low on funding now and have no free time for side projects, so just trying to draw some attention... Cheers!
Repository: PowerToys
Issue: [test] generate code coverage report
Labels: Area-Tests,Issue-Task

Generate code coverage report for unit tests.
Repository: TypeScript
Issue: Union in a computed property allows any assignment to property value
Labels: Suggestion,Experimentation Needed

**TypeScript Version:**  4.0.0-dev.20200518

**Search Terms:** computed property, union

**Code**
```ts
type Key = 'a' | 'b';

const index1: Record<Key, string> = { a: '', b: 0 }; // Errors as expected, ok
const index2: Record<Key, string> = { a: '', b: '' };

const b: Key = 'b';

const index3: Record<Key, string> = { ...index2, [b]: 0 }; // Errors as expected, ok

declare var k: Key;

// No errors, allowing anything to be assigned to string
const index4: Record<Key, string> = { ...index2, [k]: [] };
const index5: Record<Key, string> = { a: '', b: '', [k]: 0 };
```

**Expected behavior:**
Expected error for invalid assignments in `index4` and `index5`.

**Actual behavior:**
No error, allowing anything to be assigned to string

**Playground Link:** [here](https://www.typescriptlang.org/play/?ts=4.0.0-dev.20200518&ssl=8&ssc=60&pln=8&pc=85#code/C4TwDgpgBA0hJQLxQOQEMVQD6oEYoG4AoIgYwHsA7AZ2CgEtKATCADwEYAuKAJQgoBOTADxwQAGii0BjAOYA+JFADeUNNxQpJubgAYoAXwJQA9CagBRAQPIDqa+20ilgEJpPIBrMlVoNmbABM3HyCImKS0nKKyKrqqFpQOgmGxD40dMliSij4aRQZ-iysAMwh-Lbh8JHAMpQKSqoAdC2MxYGSANq4ALp6qabmVjZ2DlBO-K7uUF4kLKQANmgC0ABuy1Ce3GJpZlAAcuTj1rbUkmgLC+QA7nJqlCDAABZ3wEe40GjU1PSylG5QN5SWpydJ+NpsAAs5TComqwLqDViUBaTQhrA6UE6nj6WJ6qTBdHRAFYYZU4RIEdFGmoNIlkpoujj+kYgA)

**Related Issues:**
https://github.com/microsoft/TypeScript/issues/36920: perhaps the computed property is deemed an excess property, though I don't think it should be
Repository: godot
Issue: PHashTranslation.get_message_count and get_message_list always return 0 and [] in GDScript
Labels: bug,topic:core

**Godot version:**
3.2.1

**OS/device including version:**
Windows 10

**Issue description:**
See title. As a positive control for a non-empty Translation resource, method get_message **does** work.

**[EDIT:** I changed the title to reflect insight from PapaFl below. Basically, everything in this post applies specifically to a loaded PHashTranslation (which happens when imported with `compress=true`). The two methods work as expected in a Translation that is not a PHashTranslation.**]**

**Minimal reproduction project:**
Make a small csv file for translation with path "res://test_text.csv":
```
id,en
TXT_TEST,Test
```

Allow editor to make its translation file. Run code:
```
func _ready() -> void:
	var translation: Translation = load("res://test_text.en.translation")
	print(translation.get_message_count()) # prints "0"
	print(translation.get_message_list ()) # prints "[]"
	print(translation.get_message("TXT_TEST")) # prints "Test"
```
Repository: PowerToys
Issue: Save Desktop Icon Positions
Labels: Idea-New PowerToy

It would be great to have a tool to save AND restore the location of all shortcut icons on the desktop.

For some reason with single monitor, or multiple monitors with different resolutions, different zoom/font size/icon size and spacing/etc. The location of these icons is reset and you're left with all icons Auto-Arranged on the left of the screen, like Windows threw its hands up and said IDK, forget whatever locations they are and now set them up in the default grid.

There used to be a tool for this years ago. Can't seem to find it. It was third-party and not part of Power Toys. Worked in Windows 7. 

Use a Desktop [optional Shift] Right Click menu that allows you to SAVE the current icon positions and the same to RESTORE the last saved locations.
If new icons were added after the last save, then place them as appropriately as possible.
Only stores the last saved location. Can have profiles, but not necessary on the first iteration.
Repository: PowerToys
Issue: [Run] Provide history of last commands in search results
Labels: Idea-Enhancement,Product-PowerToys Run

# Summary of the new feature/enhancement

Provide a history of the last x commands via arrow up and down keys. This would help to prevent typing similar commands. 

~For example I typed > ping x.x.x.x and after that I opened I don't know code and then I would like to execute the ping command again. It would be nice to just open the launcher (PowerToys Run) and click the down arrow to get the last command "> ping x.x.x.x" before I typed code~ (EDIT: I commented out this part since the `>` action key already works similarly to this feature request, what it's not implemented it's the general history outside of specific plugins)

# Proposed technical implementation details (optional)

make the implementation configurable to have the history or not and let users define the amount of entries like 20 entries.
Repository: godot
Issue: Wrong gdns inheritance information in project.godot
Labels: bug,topic:editor,confirmed,topic:gdextension

**Godot version:**

3.2.1

**OS/device including version:**

Windows 10 and Ubuntu 18.04 LTS

**Issue description:**

Importing addon containing gdns script won't set inheritance in project.godot. ie you have something like :
```
{
"base": "",
"class": "IsometricMap",
"language": "NativeScript",
"path": "res://addons/IsometricMap/GdnsScripts/positionable/IsometricMap.gdns"
}
```
for all nativescript.
Note the base field.
Bug only on Windows and Linux, all fine in OSX.

**Steps to reproduce:**

1 - Download addons folder of [fake release of 2.5D Isometric map editor](https://github.com/utopia-rise/godot-2.5D-isometric-map-editor/releases)
2 - Add it to new project.
3 - Add res://addons/IsometricMap/IsometricServer.tscn to autoload with name IsoServer.
4 - Restart Godot and try to create an isometric map using custom node in a new scene.

It will say it cannot find class ''. 

**Minimal reproduction project:**

See steps to reproduce
Repository: kubernetes
Issue: Allow setting EmptyDir Medium Disk
Labels: sig/storage,kind/feature,lifecycle/frozen

would be nice to be able to call this out instead of being stuck with not setting it
https://github.com/kubernetes/kubernetes/blob/323f34858de18b862d43c40b2cced65ad8e24052/pkg/volume/emptydir/empty_dir.go#L219-L228
Repository: rust
Issue: Counting bytes with high bit set optimizes badly for x86_64
Labels: A-LLVM,I-slow,O-x86_64,T-compiler,C-bug

I tried this code:

```rust
pub fn count_non_ascii(buffer: &[u8]) -> u64 {
    let mut count = 0;
    for &b in buffer {
        if b >= 0x80 {
            count += 1;
        }
    }
    count
}
```
[Godbolt link](https://rust.godbolt.org/z/qfppbo)

I expected to see this happen: I expected the compiler to autovectorize along the lines of
```rust
pub fn count_non_ascii_sse2(buffer: &[u8]) -> u64 {
    let mut count = 0;
    let (prefix, simd, suffix) = unsafe { buffer.align_to::<core::arch::x86_64::__m128i>() };
    for &b in prefix {
        if b >= 0x80 {
            count += 1;
        }
    }
    for &s in simd {
        count += unsafe {core::arch::x86_64::_mm_movemask_epi8(s)}.count_ones() as u64;
    }
    for &b in suffix {
        if b >= 0x80 {
            count += 1;
        }
    }
    count
}
```

Instead, this happened: It is autovectorized to something more complex and considerably slower than the manual vectorization given above. (The above manual vectorization becomes even faster when compiled with a `target_cpu` that supports the `POPCNT` instruction.)

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.45.0-nightly (a74d1862d 2020-05-14)
```
Repository: PowerToys
Issue: [Run] Launching a process starts it in `c:\Program Files\PowerToys` (default working directory)
Labels: Issue-Bug,Help Wanted,Product-PowerToys Run

<!--
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.
-->

# Environment

```
Windows build number: `_dep.200508`
PowerToys version: 0.18
PowerToy module for which you are reporting the bug (if applicable): Launcher
```

# Steps to reproduce

* Configure your default profile in the Windows Terminal to _not_ have a `startingDirectory`, so that the Terminal will use your current path as the starting directory.
* Run `> wt` to launch the terminal

# Expected behavior

When I run programs in the <kbd>Win+R</kbd> run dialog, they use `C:\windows\system32` as the CWD.

This is probably expected, but I was definitely a little surprised. I think the best solution might be letting the user set the CWD to use for launched processes, instead of defaulting to `...\PowerToys\`
Repository: rust
Issue: align_to prefix max length not taken into account in optimization
Labels: A-LLVM,I-slow,T-compiler,A-SIMD,C-bug,A-autovectorization

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
pub fn count_non_ascii_sse2(buffer: &[u8]) -> u64 {
    let mut count = 0;
    let (prefix, simd, suffix) = unsafe { buffer.align_to::<core::arch::x86_64::__m128i>() };
    for &b in prefix {
        if b >= 0x80 {
            count += 1;
        }
    }
    for &s in simd {
        count += unsafe {core::arch::x86_64::_mm_movemask_epi8(s)}.count_ones() as u64;
    }
    for &b in suffix {
        if b >= 0x80 {
            count += 1;
        }
    }
    count
}
```
[Godbolt link](https://rust.godbolt.org/z/-ckzGe)

I expected to see this happen: I expected the compiler to conclude that `prefix.len() < 16` and, therefore, not emit autovectorization for the first scalar loop.

Instead, this happened: The compiler emitted an autovectorization for the first scalar loop even though the prefix is never long enough for the autovectorization to be useful.

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.45.0-nightly (a74d1862d 2020-05-14)
```
Repository: PowerToys
Issue: Please allow individual tools to be installed
Labels: Idea-Enhancement,Area-Setup/Install,Area-Enterprise

# Please allow individual tools to be installed
The PowerToys are great - but not always all at once.
Therefore: please allow us to select which Toys should be installed.

# Proposed technical implementation details (optional)
It would be great if the individual Toys could be installed by using Winget, for example:

- This installs all Toys:
`WinGet install powertoys`
- This installs just the Shortcut Guide:
`WinGet install powertoys-ShortcutGuide`

Thanks a lot, kind regards,
Thomas
Repository: PowerToys
Issue: File Explorer (Preview Panes) - Open document format
Labels: Idea-Enhancement,Product-File Explorer

# Summary of the new feature/enhancement

Currently to preview open document formats (ODF) like .odt you need certain 3rd party software installed. The PowerToys preview pane should render (at least basic text) a scrollable/first page representation of the document.
Repository: flutter
Issue: Make keyboard events easier to use on Android PlatformViews
Labels: platform-android,framework,engine,a: quality,a: platform-views,c: proposal,P3,team-android,triaged-android

https://github.com/flutter/flutter/issues/55046 reported that the keyboard doesn't work for Android EditText's inside of PlatformViews.  After researching the problem we found that things like `webview_flutter` use a complex setup of `InputConnection`'s in order to make keyboard access work.  So, it isn't a problem of being impossible, but it is unacceptably difficult to implement.  The workaround is detailed in the issue.

We should find a way to take the `InputConnection` manipulation and push it higher so it lives in PlatformView's code so no one has to apply this workaround.  Additionally we might need to provide a more convenient way to use the workaround for plugins who don't want to accept the dependency on the latest engine.

Relevant code:
- [ThreadedInputConnectionProxyAdapterView](https://github.com/flutter/plugins/blob/8e17ab64d40136b6b097eac3ba25425d10a0291b/packages/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter/ThreadedInputConnectionProxyAdapterView.java#L27)  the class that swaps out the "InputConnection" for the one provided to the plugin, for the PlatformView's view in `webview_flutter`
- [InputAwareWebView](https://github.com/flutter/plugins/blob/dacab3a353c721c5d61c017bab926a1292746f15/packages/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter/InputAwareWebView.java#L111) where the proxy used to hook up the keyboard input to the WebView.

cc @letsar @mklim
Repository: flutter
Issue: Feature request: Ability to hide cursor pointer (Android)
Labels: a: text input,c: new feature,framework,c: proposal,P3,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case
It's **only for Android**

Messaging app:
Usual native apps (Telegram, Slack) that have "edit message" feature have 3 first points but flutter app will have all 4

Edit your message:
1) TextField has an initial value
2) TextField is focused and the keyboard is open
3) There is a blinking cursor
4) There is cursor pointer (not desired) 


## Proposal
Have the ability to hide cursor pointer programmatically but only for one time so if user tap on the text cursor pointer will appear as Usual 

Thanks!

Ps For more info you can view my question on [StackOverflow](https://stackoverflow.com/questions/61889124/flutter-how-to-hide-textfield-text-pointer-cursor-when-use-initial-value-text)
Repository: TypeScript
Issue: Polymorphic TypedArray methods return wrong type in subclasses
Labels: Bug,Domain: lib.d.ts

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  4.0.0-dev.20200519

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
typedarray subarray polymorphic
**Code**

```ts
class Buf extends Uint8Array {
  foo() {}
}

new Buf(10).subarray().foo()
```

**Expected behavior:**
No error.
**Actual behavior:**
error TS2339: Property 'foo' does not exist on type 'Uint8Array'.
**Playground Link:** [Playground Link](https://www.typescriptlang.org/play/?ts=4.0.0-dev.20200518&ssl=1&ssc=1&pln=25&pc=26#code/MYGwhgzhAEBCCuAzaBTAHgFxQOwCYwFUBLbDADgEEAnKsAT2gG8BYAKGmkQHsuAKASiYBfNiNZtsKAO5wkvAIwAGfgDoI8AEZga9ASu59+QA)

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Repository: terminal
Issue: Split panes equally in size
Labels: Issue-Feature,Area-UserInterface,Product-Terminal

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement

<!-- 
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).
-->

When splitting twice into three panes, I would like the option to split by parent equally.

Instead of:

```
+-------+---+---+
|       |   |   |
+-------+---+---+
```

Ideally it would be like this:

```
+----+----+----+
|    |    |    |
+----+----+----+
```

Coming from iTerm this makes much more sense to me.

When splitting vertically within a horizontal pane, it would work in the same fashion.

This could be a new shortcut that when splitting, e.g. "split horizontally and keep parent" where all children are resized when a new child is added or removed. (I don't how how it currently works internally, so I'm guessing here.)
Repository: PowerToys
Issue: Key remapper doesn't recognize Office key
Labels: Product-Keyboard Shortcut Manager

<!--
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue.
-->

# Environment

```
Windows build number: 10.0.19041.264
PowerToys version: 0.18
PowerToy module for which you are reporting the bug (if applicable): Remap Keyboard
```

# Steps to reproduce

Try to add a key mapping for the Office key (on the new Ergonomic 4000 keyboard). The key isn't detected correctly

# Expected behavior

I expect the Office key to be detected correctly so I can remap it.

# Actual behavior

It's either detected as `Space` or `Win (Left)` 
<!-- What's actually happening? -->

# Screenshots

<!-- If applicable, add screenshots to help explain your problem. -->
Repository: rust
Issue: `unsafe` blocks do not apply to array length expressions they contain
Labels: T-compiler,C-bug,A-const-eval,A-array

The [following example](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=53cd554bc1f6829ebeb6b37a58375f40) fails to compile on the latest nightly.

```rust
#![feature(core_intrinsics)]
#![feature(const_int_unchecked_arith)]

fn main() {
    let _ = unsafe { [0i32; std::intrinsics::unchecked_add(4, 2)] };
}
```

Output:

```
warning: unnecessary `unsafe` block
 --> src/main.rs:5:13
  |
5 |     let _ = unsafe { [0i32; std::intrinsics::unchecked_add(4, 2)] };
  |             ^^^^^^ unnecessary `unsafe` block
  |
  = note: `#[warn(unused_unsafe)]` on by default

error[E0133]: call to unsafe function is unsafe and requires unsafe function or block
 --> src/main.rs:5:29
  |
5 |     let _ = unsafe { [0i32; std::intrinsics::unchecked_add(4, 2)] };
  |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
  |
  = note: consult the function's documentation for information on how to avoid undefined behavior

error: aborting due to previous error; 1 warning emitted
```

I would have expected this to compile successfully, but it seems that `unsafe` is not applied to array length expressions. The nightly features are only needed because there are no stable `const unsafe` functions. A user-defined `const unsafe fn` runs into the same error [on stable](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=e0292c531ef391ca227bf6947dfb9bc1).

This arose from discussion in rust-lang/rfcs#2920. 

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"LeSeulArtichaut"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: godot
Issue: Line2d's antialiased is not working correctly in GLES 3 
Labels: bug,topic:rendering,topic:2d

Godot_v3.2.2-beta2_win64

windows 10

Godot_v3.2.2-beta2_win64

Gles3
![image](https://user-images.githubusercontent.com/13883739/82368246-bdb4b380-9a32-11ea-805c-9769dfb2e152.png)

Gles2
![image](https://user-images.githubusercontent.com/13883739/82368303-d6bd6480-9a32-11ea-8e5d-8ac8e2294dfe.png)

Querry - Is Gles2 deprecating?
Repository: PowerToys
Issue: [Run] Support Extensions
Labels: Idea-Enhancement,Product-PowerToys Run,Run-Plugin,Run-Plugin Manager

Is the plugin environment the same as with Wox? The Wox.Plugin package seems to still be present. Can existing wox plugins be used? I can't drag any files into the launcher like I could with wox.

Do you have any guides or tips for creating a plugin otherwise?