sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Misleading free memory reporting on MacOS in Issue Reporter
Labels: bug,issue-reporter

Issue Type: <b>Bug</b>

1. On MacOS
1. File an issue using VS Code's issue reporter and include system info

**Bug**
The memory usage statistic shows free memory. However the way it calculates this seems misleading as it counts cached files memory as being used (and I believe cached files are managed by the system and should be silently purged when needed)

In this report for example, it shows `1.34GB free` when I actually have more like 20GB free:

<img width="631" alt="Screen Shot 2021-12-05 at 4 37 25 PM" src="https://user-images.githubusercontent.com/212305/144770691-fcf47caf-7ede-4248-98d9-2c4bff7e2f27.png">

VS Code version: Code - Insiders 1.63.0-insider (d09289a2b6dd0e56b2a264a8e9380685498e10d6, 2021-12-04T02:02:08.723Z)
OS version: Darwin x64 21.1.0
Restricted Mode: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 x 4200)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|3, 3, 4|
|Memory (System)|40.00GB (1.34GB free)|
|Process Argv|--crash-reporter-id cefe23df-690f-4b1b-9ce9-e004d3be2745|
|Screen Reader|no|
|VM|0%|
</details>
<!-- generated by issue reporter -->
Repository: rust
Issue: `-C link-arg=-nostartfiles` does not work on musl target
Labels: A-linkage,O-linux,O-musl,C-bug

I tried this code:

```rust
#![no_std]
#![no_main]

// use libcore::run;
const hello: &str = "hello_world";
// Move main to core, and make hal a lib if shellcode - use hal::shellcode etc
extern "C" fn pr(a: usize, b: usize, c: u8) -> u64 // Address is printed
{
    //println!("hello {:?} {:?} {:?}", a, b, c);
    return 4;
}

#[no_mangle]
pub extern "C" fn _start() -> !{
    //println!("func: {:p}", pr as extern "C" fn(usize, usize, u8) -> _);
    //println!("Const: {:p}", hello);
    panic!();
}
#[panic_handler]
fn panic(_panic_info: &core::panic::PanicInfo) -> ! {

    loop {
        unsafe {
        }
    }
}
```
```python
musl_x86 = "x86_64-unknown-linux-musl"
os.environ['RUSTFLAGS'] = '-C link-arg=-nostartfiles'
os.system(f'cargo +nightly build -Zbuild-std=std,panic_abort --release --verbose --target {musl_x86}')
```

I expected to see this happen: 
A static+pie binary with no main.

Instead, this happened:
```
Backtrace
```

### 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.59.0-nightly (efec54529 2021-12-04)
binary: rustc
commit-hash: efec545293b9263be9edfb283a7aa66350b3acbf
commit-date: 2021-12-04
host: x86_64-unknown-linux-gnu
release: 1.59.0-nightly
LLVM version: 13.0.0
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary>Backtrace</summary>
<p>

```
note: /usr/bin/ld: /workspace/dbg/target/x86_64-unknown-linux-musl/release/deps/standard_linuxgdb-b39958c4e33e1b5c.standard_linuxgdb.a819e94f-cgu.0.rcgu.o: in function `_start':
          standard_linuxgdb.a819e94f-cgu.0:(.text._start+0x0): multiple definition of `_start'; /home/gitpod/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o:rcrt1.c:(.text+0x0): first defined here
          /usr/bin/ld: /home/gitpod/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o: in function `__dls2':
          /build/musl-cross-make/build/local/x86_64-linux-musl/obj_musl/../src_musl/crt/rcrt1.c:13: undefined reference to `main'
          /usr/bin/ld: /build/musl-cross-make/build/local/x86_64-linux-musl/obj_musl/../src_musl/crt/rcrt1.c:13: undefined reference to `__libc_start_main'
          collect2: error: ld returned 1 exit status
```

</p>
</details>
Repository: flutter
Issue: [shared engine] Consider letting developers take over life cycle events in add-to-app scenarios if they want
Labels: c: new feature,platform-android,platform-ios,engine,customer: alibaba,P3,team-engine,triaged-engine

The current life cycle of `AppLifecycleState` is associated with the life cycle of `FlutterActivity`/`FlutterViewController`.
It seems that because we did not consider the add-to-app scenario when it was originally designed.

But in an add-to-app scenario, this may not work. This is because the application may have multiple `FlutterViewController`/`FlutterActivity`, and they share one `FlutterEngine`.

The wrong setting of `AppLifecycleState` may cause the frame to fail to be scheduled and rendered correctly.

So I guess we can provide a option to developers to let them take over life cycle events if they want. If so, flutter will no longer send life cycle events, but let developers send life cycle events themselves.

related issue:
https://github.com/flutter/flutter/issues/52456

/cc @gaaclarke @blasten
Repository: neovim
Issue: It's not possible to detect concealment from matchadd
Labels: enhancement,conceal

### Feature already in Vim?

No

### Feature description

# Problem

If a [row,col] position is concealed through `matchadd("Conceal", ...)` then there's no way to detect its concealment, unlike positions concealed through `syn match [pattern]` which can be detected through `synconcealed`.

# Demonstration

```vim
set conceallevel=2 concealcursor=nvic
call feedkeys("i \<esc>", "n")
call matchadd("Conceal", '^\s*', 10, -1, { "conceal": "" })
fun! OnVimEnter(...)
  echo synconcealed(line('.'), col('.'))
endfun
autocmd VimEnter * call timer_start(0, function("OnVimEnter"))
```

Using the above script, `[0, '', 0]` will be printed from `synconcealed` even though the character is, in fact, concealed.

The same approach, but replacing `matchadd("Conceal",...)` for `syn match [pattern]`:

```vim
set conceallevel=2 concealcursor=nvic
call feedkeys("i \<esc>", "n")
syntax match Concealment /^\s*/ conceal
fun! OnVimEnter(...)
  echo synconcealed(line('.'), col('.'))
endfun
autocmd VimEnter * call timer_start(0, function("OnVimEnter"))
```

Using the above script, `[1, '', 1]` will be printed from `synconcealed` and that can be used to detect the concealment.

# Solution

Extend `synconcealed` (perhaps also rename it) to work for characters concealed through `matchadd` or create a new `matchconcealed` API for detecting them.

---

This ticket was also opened in Vim https://github.com/vim/vim/issues/9283. I chose to also open the issue here because Neovim's implementation for dealing with match items seems a bit different from Vim's.
Repository: ant-design
Issue: Render props for the header column of Antd Table with TableRowSelection
Labels: Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
Currently, for a table with rowSelection [TableRowSelection](https://ant.design/components/table/#rowSelection), we have a props to customize `renderCell` which allow us to write our own checkboxes, however for the `select all` checkbox inside the header we do not have such an API to access it.

### What does the proposed API look like?
maybe an attribute named `renderHeader` somehow inside `TableRowSelection` may fit the demand as above


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: PowerToys
Issue: Multiple monitors using FancyZones doesn't recognize the laptop hood closed!
Labels: Idea-Enhancement,Product-FancyZones,Priority-2

### Microsoft PowerToys version

0.51.0

### Running as admin

- [X] Yes

### Area(s) with issue?

FancyZones Editor

### Steps to reproduce

have a laptop setup with two monitors.


### ✔️ Expected Behavior

Unpo laptopnhood closed or open adapt the maximum screen resolution
or manualaly override the multiple monitors to be used for FancyZones .

### ❌ Actual Behavior

The FancyZone editor seems to calculate the full maximum resolution based upon the three monitors it has detected, which is incorrect, because the laptop hood is closed!
Hence the total resolution is too large and i can manually override it.
Therefore there is always a unreachable zone on the laptop screen 


### Other Software

UMLStudio
Segger J-Link
STM32 ST-Link Untility
nRFStudio
ProcessExplorer
LockHunter
Github
TortoiseGit
MSVisual Code
MS VisualStudio Communicty 2022
Docker
DisplayFusion
Slack
WinSCP
Repository: pytorch
Issue: The formula for KL-divloss is wrong in the document
Labels: module: docs,module: nn,triaged,Stale

## 📚 Documentation
https://pytorch.org/docs/stable/generated/torch.nn.KLDivLoss.html#torch.nn.KLDivLoss

l_n should be y_n * (log(y_n) - log(x_n)) instead of y_n * (log(y_n) - x_n)

<!-- A clear and concise description of what content in https://pytorch.org/docs is an issue. If this has to do with the general https://pytorch.org website, please file an issue at https://github.com/pytorch/pytorch.github.io/issues/new/choose instead. If this has to do with https://pytorch.org/tutorials, please file an issue at https://github.com/pytorch/tutorials/issues/new -->


cc @brianjo @mruberry @albanD @jbschlosser @walterddr @kshitij12345
Repository: youtube-dl
Issue: 8K video support for `bilibili.com`
Labels: duplicate

### Checklist

- [X] I'm reporting a site feature request
- [X] I've verified that I'm running yt-dlp version **2021.12.01**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [X] I've checked that all provided URLs are alive and playable in a browser
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

_No response_

### Example URLs

https://www.bilibili.com/video/BV1KS4y197BN
https://www.bilibili.com/video/BV1Zr4y1Q75j

### Description

refer to: 
- https://github.com/yt-dlp/yt-dlp/issues/1878
- https://github.com/ytdl-org/youtube-dl/issues/30315
Repository: rust
Issue: [ER] Unused lifetime warning
Labels: A-lifetimes,C-feature-request

In code like this rustc could warn that the 'b lifetime is not needed:

```rust
fn select<'a, 'b, const N: usize>(data: &'a mut [u32; N],
                                  keep: &'b mut [bool; N]) -> &'a [u32] {
    let mut pos = 0;
    for (i, &b) in keep.iter().enumerate() {
        if b {
            data[pos] = data[i];
            pos += 1;
        }
    }
    &data[.. pos]
}

fn main() {
    let mut data = [1, 2, 3, 4, 5];
    let mut keep = [true, false, true, false, true];
    println!("{:?}", select(&mut data, &mut keep));
}
```

(Currently rustc also doesn't spot that the 'keep' function argument doesn't need to be &mut).
Repository: pytorch
Issue: RuntimeError: PyTorch convert function for op 'inverse' not implemented.
Labels: needs reproduction,triaged

## ❓ Questions and Help
when i convert a pth file to coreml model, an error is shown as title.

how can i solve this, [thanks.](url)
Repository: godot
Issue: Changes to theme constants after saving/running the project don't get applied correctly
Labels: bug,topic:editor,topic:gui

### Godot version

3.4

### System information

Windows 10

### Issue description

Setting a constant in a theme, then saving/running the project leads to later changes to the constant being visible in the editor, but not in-game, including when re-running the project.
Restarting Godot leads to the constant being reset to the previous value.

### Steps to reproduce

Import provided MRP
Open my_theme.tres, and select constants in the theme editor
Change the value of "separation", notice that the spacing between the buttons changes in the scene viewer
Run the project, notice that the spacing didn't update in-game

~Add a node with some constant overridable by a theme (e.g. VBoxContainer with two Buttons as children)~
~Create a theme and add it to the node/a parent~
~Add the associated node type item to the theme, and set some value for the desired constant (e.g. seperation for VBoxContainer)~
~Save/run the project~
~Modify the constant's value, and run the project~

### Minimal reproduction project

[ThemeConstantsMRP.zip](https://github.com/godotengine/godot/files/7661977/ThemeConstantsMRP.zip)
Repository: go
Issue: cmd/compile: “dumb” slice zeroing is faster than “normal” ones
Labels: Performance,NeedsFix

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.17.4 linux/amd64
go version devel go1.18-ecf6b52b7f Sun Dec 5 12:50:44 2021 +0000 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes, see the second line of `go version` output.

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ainar/.cache/go-build"
GOENV="/home/ainar/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/ainar/go/pkg/mod"
GONOPROXY="REMOVED"
GONOSUMDB="REMOVED"
GOOS="linux"
GOPATH="/home/ainar/go"
GOPRIVATE="REMOVED"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/ainar/go/go1.17"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/ainar/go/go1.17/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.17.4"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2360179353=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

https://go.dev/play/p/QAzxEwqCboZ

The “dumb” zeroing version:

```go
func anonDumb(ip net.IP) (res net.IP) {
	_ = ip[15]

	ip[net.IPv6len-10],
		ip[net.IPv6len-9],
		ip[net.IPv6len-8],
		ip[net.IPv6len-7],
		ip[net.IPv6len-6],
		ip[net.IPv6len-5],
		ip[net.IPv6len-4],
		ip[net.IPv6len-3],
		ip[net.IPv6len-2],
		ip[net.IPv6len-1] =
		0, 0, 0, 0, 0, 0, 0, 0, 0, 0

	// Return a value to make sure that the function isn't
	// eliminated.
	return ip
}
```

The non-dumb versions:

```go
func anonLoop(ip net.IP) (res net.IP) {
	_ = ip[15]

	for i := 6; i < net.IPv6len; i++ {
		ip[i] = 0
	}

	return ip
}

func anonCopy(ip net.IP) (res net.IP) {
	_ = ip[15]

	var a [10]byte
	copy(ip[6:], a[:])

	return ip
}
```

### What did you expect to see?

One of the non-dumb versions working as fast as the dumb one.

### What did you see instead?

The dumb one is much faster.  Judging by the output of `--gcflags '-S'`, the dumb version compiles to two register moves (`MOVQ` and `MOVW`), while the other two call `runtime.memmove`.

```none
goos: linux
goarch: amd64
cpu: AMD Ryzen 7 PRO 4750U with Radeon Graphics
BenchmarkIP/dumb-16             901660257                1.230 ns/op           0 B/op          0 allocs/op
BenchmarkIP/loop-16             155647414                7.581 ns/op           0 B/op          0 allocs/op
BenchmarkIP/copy-16             160617816                7.264 ns/op           0 B/op          0 allocs/op
PASS
ok      command-line-arguments  4.618s
```
Repository: pytorch
Issue: Exponentially scalable modified Bessel function of the second kind
Labels: feature,triaged,module: special

## 🚀 Feature

Exponentially scaled modified Bessel function of the second kind equivalent to [scipy.special.kve](https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.kve.html#scipy.special.kve) or [besselk](https://www.mathworks.com/help/matlab/ref/besselk.html) from MATLAB.

## Motivation

Implementing a Bessel filter

cc @mruberry @kshitij12345
Repository: pytorch
Issue: Complete elliptic integral of the first kind
Labels: feature,triaged,module: special

## 🚀 Feature

Complete elliptic integral of the first kind equivalent to [scipy.special.ellipk](https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.ellipk.html) or [ellipke](https://www.mathworks.com/help/matlab/ref/ellipke.html) from MATLAB.

## Motivation

Implementing a Bessel or elliptic filter

cc @mruberry @kshitij12345
Repository: pytorch
Issue: Jacobian elliptic functions
Labels: feature,triaged,module: special

## 🚀 Feature

Jacobian elliptic functions equivalent to [scipy.special.ellipj](https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.ellipj.html) or [ellipke](https://www.mathworks.com/help/matlab/ref/ellipke.html) from MATLAB.

## Motivation

Implementing an elliptic filter

cc @mruberry @kshitij12345
Repository: PowerToys
Issue: [Color Picker] Allow rounding to whole numbers for formats, example CIELAB
Labels: Idea-Enhancement,Help Wanted,Product-Color Picker

### Microsoft PowerToys version

0.51.1

### Running as admin

- [X] Yes

### Area(s) with issue?

ColorPicker

### Steps to reproduce

activate color checker (win+shift+c shortcut works fine)  and mouse over screen color

### ✔️ Expected Behavior

1. To display CIELAB color as natural whole numbers per the color picker drop down choice in settings; see .jpg's
2. When active, colors list display window is always able to be fully seen; regardless of mouse position on any screen
![PT color errors](https://user-images.githubusercontent.com/3689169/144872457-129a27c6-39c8-4302-8be7-be34d4527418.jpg)
![PT colors](https://user-images.githubusercontent.com/3689169/144872478-6d6134e2-45e4-4957-b1a4-64b0d99c6380.jpg)

.

### ❌ Actual Behavior

1. Settings are set to display whole numbers; display shows decimal numbers.

2. If you position cursor at far right edge of any screen (I use 3 display monitors) part of the displayed colors list window is either cut-off on right side, or is overlapping next screen. Overlap is understandable and acceptable; however losing the display info on most farthest right screen makes color checking on far right edge useless. Other 3 monitor screen edges behave correctly. Decimal numbers display also contributes causing a larger width window.

### Other Software

n/a
Repository: vscode
Issue: Feature Request: Allow Custom Editors To Gracefully Handle Diff Views
Labels: feature-request,custom-editors

It would be awesome if custom editors could influence the diff view (or opt out of it).

These are examples where the default diff view does not really work:

* ![](https://user-images.githubusercontent.com/659555/81764204-2082e800-9525-11ea-858d-824785a01b60.png)
* ![](https://user-images.githubusercontent.com/2546219/144639617-d8edce1e-d79e-4fec-a88b-1cb86a3ae775.png) 

Unfortunately, the individual custom editor only knows if it is readonly, but not if it is right or left of a diff view.

Related:
* https://github.com/TranquilMarmot/YarnLoom/issues/19
* https://github.com/microsoft/vscode/issues/97683
Repository: flutter
Issue: [web][iOS] Colors are not applied to images
Labels: platform-web,a: images,e: web_html,has reproducible steps,browser: safari-macos,P2,browser: safari-ios,found in release: 2.10,found in release: 2.11,team-web,triaged-web



## Steps to Reproduce

1.Open https://fir-quickstart-30f7f.web.app
2.On a Desktop or Android the image is green.
3.On iOS is the real image without the color change (red)

**Expected results:** <!-- what did you want to see? -->
![Screen Shot 2021-12-06 at 12 13 16 PM](https://user-images.githubusercontent.com/8235588/144891455-ce41b224-3add-4a7f-b441-bacccd2f8abc.png)


**Actual results:** <!-- what did you see? -->

![IMG_DB0E2C13193A-1](https://user-images.githubusercontent.com/8235588/144891526-697b67cc-168a-4491-8465-5cedeab2ffa3.jpeg)

<details>
<summary>Code sample</summary>


```
import 'package:flutter/material.dart';

void main() => runApp(MaterialApp(home: MyApp()));

class MyApp extends StatefulWidget {
  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    //  final wordPair = WordPair.random();

    return MaterialApp(
      title: 'Welcome to Flutter',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Welcome to Flutter'),
        ),
        body: Center(
          child: Image.network(
            "https://i.ibb.co/Xtk9z3T/flechita-Invu.png",
            color: Colors.green,
            width: 100,
            alignment: Alignment.center,
            fit: BoxFit.fitWidth,
            colorBlendMode: BlendMode.srcIn,
          ),
        ),
      ),
    );
  }
}

```

</details>

<details>

<!-- Finally, paste the output of running `flutter doctor -v` here. -->
Latest Master
```
Flutter (Channel master, 2.6.0-12.0.pre.926, on macOS 12.0.1 21A559 darwin-x64, locale en-US)
    • Flutter version 2.6.0-12.0.pre.926 at /usr/local/Caskroom/flutter/2.2.2/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 1aabe314a9 (74 minutes ago), 2021-12-06 11:04:04 -0500
    • Engine revision 68d320d449
    • Dart version 2.16.0 (build 2.16.0-80.0.dev)
    • DevTools version 2.9.1
```

</details>
Repository: vscode
Issue: Allow better progress notifications (eg. percentage/text status) for progress notifications VS code shows during events like willRenameFiles etc.
Labels: feature-request,workspace-edit

If a user renames a folder that contains a lot of files, the server might take some time to compute the edits in `willRenameFiles`. It would be nice to show a real progress indicator that shows how many files there are and the current progress of compiling edits. This can be done today with a custom notification (either in the extension or LSP), however VS Code shows its own "Running Rename Participants" notification that would result in two notifications being seen by the user.

It would be better if either VS Code's notification would handle some progress notifications, or it could be suppressed if an extension/server is providing its own progress/cancellation.