sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: electron
Issue: [Feature Request]: Add "--disable-spellcheck" commandline flag.
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

Admitting that spellcheck dictionaries download option has a very shady implementation and very dubious behavior, while not being absolutely required for most cases, I just need a way to disable it. As I've stated in https://github.com/electron/electron/issues/27403 - this problem dramatically reduces the scope of Electron's application. The framework is really nice, it has big advantages over QT, GTK, FLTK and VxWidgets. But others - don't download its components in runtime. This is a critical suggestion for disconnected environments and secure ones, that don't permit undeclared functionality.

This will also resolve(not just close, but resolve for sure) a couple of other issues, specifically this one - https://github.com/electron/electron/issues/22995

### Proposed Solution

Implement   "--disable-spellcheck" commandline flag. That just wraps around downloader code.

### Alternatives Considered

All other alternatives are not as good as Electron.

### Additional Information

_No response_
Repository: rust
Issue: CTFE: there is no way to compute the difference between two ptrs in the same allocation if they might be out-of-bounds
Labels: A-const-eval,A-raw-pointers,T-opsem

[`offset_from`](https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.offset_from) is the only way to do pointer subtraction during CTFE (since casting pointers to integers is not possible). However, `offset_from` requires both pointers to be *in-bounds* of the same allocation, making it unsuited for code that handles possibly out-of-bounds pointers. The need for this arises, for example, in the typical way that array/slice iterators support ZSTs, see e.g. https://github.com/slightlyoutofphase/staticvec/issues/48.

We should provide some way for `const` code to subtract pointers to the same allocation even if they are not in-bounds. Example code:
```rust
const C: isize = {
    let start_ptr = &() as *const ();
    let length = 10;
    let end_ptr = (start_ptr as *const u8).wrapping_add(length) as *const ();
    unsafe { (end_ptr as *const u8).offset_from(start_ptr as *const u8) }
};
```

Also see [this Zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/offset_from.20in-bounds.20constraint.3F).
Cc @rust-lang/wg-const-eval
Repository: pytorch
Issue: JIT magic method which returns class instance fails.
Labels: oncall: jit

### 🐛 Describe the bug

JIT'ing a magic method which returns an instance of the JIT'd class fails.

```python
import torch

class F:
  def __init__(self, x: int):
    self.x = x

  def __add__(self, other: "F") -> "F":
      return F(self.x + other.x)

f = F(5)

script_f1 = torch.jit.script(f)
script_f2 = torch.jit.script(f)

# OK until this line
assert (script_f1 + script_f2).x == 10
```

fails with

```text
Traceback (most recent call last):
  File "test.py", line 16, in <module>
    assert (script_f1 + script_f2).x == 10
  File "/Users/erip/opt/miniconda3/envs/test/lib/python3.8/site-packages/torch/jit/_script.py", line 447, in method_template
    return self.forward_magic_method(method_name, *args, **kwargs)
  File "/Users/erip/opt/miniconda3/envs/test/lib/python3.8/site-packages/torch/jit/_script.py", line 430, in forward_magic_method
    raise TypeError()
TypeError
```

### Versions

PyTorch version: 1.10.1
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 10.15.7 (x86_64)
GCC version: Could not collect
Clang version: 12.0.0 (clang-1200.0.32.29)
CMake version: version 3.22.1
Libc version: N/A

Python version: 3.8.12 (default, Oct 12 2021, 06:23:56)  [Clang 10.0.0 ] (64-bit runtime)
Python platform: macOS-10.15.7-x86_64-i386-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] mypy==0.812
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.22.0
[pip3] torch==1.10.1
[pip3] torchvision==0.11.2
[conda] blas                      1.0                         mkl
[conda] cpuonly                   2.0                           0    pytorch
[conda] mkl                       2021.4.0           hecd8cb5_637
[conda] mypy                      0.812                    pypi_0    pypi
[conda] mypy-extensions           0.4.3                    pypi_0    pypi
[conda] numpy                     1.22.0                   pypi_0    pypi
[conda] pytorch                   1.10.1                  py3.8_0    pytorch
[conda] pytorch-mutex             1.0                         cpu    pytorch
[conda] torchvision               0.11.2                   pypi_0    pypi
Repository: youtube-dl
Issue: Tiktok 
Labels: duplicate

`youtube-dl -v https://www.tiktok.com/@sweetbodymary4/video/7045707407799880965
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.tiktok.com/@sweetbodymary4/video/7045707407799880965']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 2.7.18 (CPython) - Linux-5.4.0-91-generic-x86_64-with-LinuxMint-20.2-uma
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4
[debug] Proxy map: {}
[TikTok] Setting up session
[TikTok] 7045707407799880965: Downloading webpage
ERROR: Unable to extract data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/tiktok.py", line 112, in _real_extract
    webpage, 'data'), video_id)['props']['pageProps']
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1012, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract data; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.`
Repository: youtube-dl
Issue: https://yugen.to/watch/9947/ousama-ranking/9/
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.12.17. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.12.17**
- [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

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://yugen.to/watch/9947/ousama-ranking/9/
- Single video: https://yugen.to/watch/9947/ousama-ranking/9/
- Playlist: https://yugen.to/watch/9947/ousama-ranking/9/


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

It is a website that will crape from anilist.co and I don't know where they host their videos/where it is taken from. I don't think it is violating any copyright. If this works, essentially an AIO site for information and viewership.
Repository: rust
Issue: Trait lifetime bounds seem to be insufficient
Labels: A-lifetimes,T-compiler,C-bug,T-types,A-trait-objects

I have a lifetime issue where the `'global: 'a` lifetime bound does not seem to be honored by an HRTB. Adding a generic default parameter fixes this. The original code was something like this:

```rust
trait Trait<'global: 'a, 'a> {
    fn foo(&self) -> u8 {
        todo!()
    }
}

struct Result<'global>(&'global ());

impl<'global> Result<'global> {
    fn run(
        &self,
        _callback: impl for <'a> FnMut(&dyn Trait<'global, 'a>)
    ) {
        todo!()
    }
}

fn main() {
    let var = ();
    let r = Result(&var);
    let mut x = 0;
    r.run(|some_trait| {
        // Both uncommenting this line and removing the 'global: 'a make this compile. 
        x += some_trait.foo();
    });
}
```

[Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e804b85d0603f9d514bdbb0300177b12)

I expected to see this compile.

Instead, lifetime errors are raised.

However if I change the trait signatures to `trait Trait<'global: 'a, 'a, HackyProof = &'a &'global ()>`, type inference ensures that the trait has the lifetime bounds `'db: 'a` and it compiles. ([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a571480ec24b1712f6665e7d50e39def))

### Meta

Same issue for stable/nightly.

`rustc --version --verbose`:
```
rustc 1.59.0-nightly (c14569225 2022-01-01)
```
Repository: rust
Issue: Tracking Issue for `const_box`
Labels: T-libs-api,C-tracking-issue,F-const_trait_impl,A-box

Feature gate: `#![feature(const_box)]`

This is a tracking issue for implementing const `Box<T, A>` methods.

### Public API

```rust
impl<T, A: Allocator> Box<T, A> {
    pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Self;
    pub const fn allocator(b: &Self) -> &A;
    pub const fn into_pin(boxed: Self) -> Pin<Self>
    where
        A: 'static;
}
```

### Steps / History

- [x] Implementation: #91884
- [ ] Final comment period (FCP)
- [ ] Stabilization PR

### Unresolved Questions

- None
Repository: electron
Issue: [Bug]: GPU crashed in all recent Versions: Passthrough is not supported, GL is disabled, ANGLE is
Labels: platform/windows,platform/linux,bug :beetle:,status/confirmed,component/gpu

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

all recent 16x, 15x, ...

### What operating system are you using?

Windows

### Operating System Version

Win 10, latest

### What arch are you using?

x64

### Last Known Working Electron version

13.6.3

### Expected Behavior

GPU behaves normally, no errors logged.

### Actual Behavior

After a few minutes upon starting the App, the following message logs:

> [16060:0103/160518.653:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is disabled, ANGLE is

the application doesn't crash directly but it seems as though hardware acceleration is disabled anf it quietly fallsback to software rendering, which leads to worse performance / dropped frames.

Did some intense Google search and found a lot of similar errors throughout the Web, all relating back to Chromium. This error doesn't appear in older version of Electron but affects all recent ones.

It may have also todo with an Nvidia driver, since I recently updated that to the latest version.

### Testcase Gist URL

_No response_

### Additional Information

_No response_
Repository: rust
Issue: Tracking Issue for `const_alloc_error`
Labels: T-libs-api,C-tracking-issue

Feature gate: `#![feature(const_alloc_error)]`

This is a tracking issue for implementing `const fn handle_alloc_error`. This feature is needed to implement const `Box<T, A>`.

### Public API

```rust
// alloc::alloc
pub const fn handle_alloc_error(layout: Layout) -> !;
```

### Steps / History

- [x] Implementation: #91884
- [ ] Final comment period (FCP)
- [ ] Stabilization PR

### Unresolved Questions

- None yet.
Repository: flutter
Issue: [image_picker] Save picked live photos as HEIC or JPEG + MOV on iOS
Labels: c: new feature,platform-ios,p: image_picker,package,c: proposal,P3,team-ios,triaged-ios

<!-- 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 out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case
I want to get video data when picking live photo on iOS. 
<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal
Add a bool flag to the class methods or class constructor to save the picked image as HEIC or JPG.

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: rust
Issue: calling functions casue STATUS_STACK_OVERFL on Windows
Labels: T-compiler,C-bug,I-heavy,E-needs-mcve

I can't provide a minum reproducable code, but it can be reproduce by running the example in project https://github.com/derivator/egui_vulkano, just git clone it, and run `cargo run --example example`, the program will crash with message:

```
thread 'main' has overflowed its stack
error: process didn't exit successfully: `target\debug\examples\example.exe` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)
```
What the crate does is not important (it's for some graphic thing), the crash happens when calling the function `let pipeline = create_pipeline(device.clone(), subpass.clone())?;` in lib.rs: 120, the CPU never run into the function `create_pipeline`, but cause the stack overflow problem.

I don't have a macOS or Linux by hand, I'll test this on macOS tomorrow. 

Here's the information of my machin:
Window: 10
Rustc: rustc 1.57.0 (f1edd0429 2021-11-29)
MSVC: 15.9.37
CPU: AMD 5900X
Repository: PowerToys
Issue: Using UIAccess for dealing with elevation
Labels: Idea-Enhancement,Needs-Spec

### Description of the new feature / enhancement

Rather than require that PowerToys be run elevated in order for Fancy Zones to work with elevated app windows, wouldn't configuring PowerToys to request UIAccess achieve the same objective without the need to run elevated?

### Scenario when this would be used?

All scenarios involving elevated apps.

### Supporting information

Tested with custom code that an app with UIAccess can move and resize windows belonging to elevated apps without itself running elevated.
Repository: pytorch
Issue: Add nondeterministic alert to `torch.scatter_`
Labels: module: cuda,triaged,module: determinism

`torch.scatter_` is nondeterministic if there are duplicate indices, according to its documentation: https://pytorch.org/docs/stable/generated/torch.Tensor.scatter_.html#torch.Tensor.scatter_

So it needs to have a nondeterministic alert and be added to the list of nondeterministic operations: https://pytorch.org/docs/master/generated/torch.use_deterministic_algorithms.html#torch.use_deterministic_algorithms.

cc @ngimel @mruberry @kurtamohler
Repository: youtube-dl
Issue: [AlphaPorno] ERROR: Unable to extract video url
Labels: Good first issue

$ youtube-dl --verbose https://www.alphaporno.com/videos/amazing-inches-hammering-her-pussy-in-such-addictive-ways/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.alphaporno.com/videos/amazing-inches-hammering-her-pussy-in-such-addictive-ways/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.8.10 (CPython) - Linux-5.4.0-91-generic-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4
[debug] Proxy map: {}
[AlphaPorno] amazing-inches-hammering-her-pussy-in-such-addictive-ways: Downloading webpage
ERROR: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/alphaporno.py", line 41, in _real_extract
    video_url = self._search_regex(
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1012, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Repository: godot
Issue: TextEdit `get_` functions return incorrect coordinates when font hinting is disabled
Labels: bug,needs testing,topic:gui

### Godot version

3.4.2 stable

### System information

MacOS 12.1 Monterey, M1 Macbook Air

### Issue description

```
I am using a mono editor font (JetBrains-Regular) but the images are appearing on the top left of the screen. They do try to follow the cursor, but they begin at the top left corner and move less than a line space vertically or a character space horizontally.

EDIT:
I think the Godot get_ functions in TextEdit are having issues on macOS because they are def returning weird values (the get_line, get_column functions are really messed up and the line_space one is pretty bad as well).

This should work but it does not at all:
pos.y = (line - vscroll) * (fontsize.y + line_spacing) + 6
('6' is the #pixels between the top of the editor viewport and the first line)

After playing around with the cursor location formula in 'plugin.gd', I was able to get it working for a few font sizes:
this will work well for a size 14 font
pos.x = (column)(11.0/6.0) * (fontsize.x) - hscroll + 140
pos.y = (line - vscroll)(11.0/6.0) * (fontsize.y + line_spacing) + 28
for a size 16 font:
pos.x = (column)(9.0/5.0) * (fontsize.x) - hscroll + 140
pos.y = (line - vscroll)(9.0/5.0) * (fontsize.y + line_spacing) + 30

The ratios in those formulas I got by finding the slope between two points of error visually. IE, cursor on line 25, image at line 14 = (25,14); cursor on 15, image at line 9 = (15,9). Slope = (25-14)/(15-9) = 11/6. idk why that worked really, but it did for every font size I tried. So if you prefer another font size, you can just do that and then enter the ratio in the formula and it should work lol.
```
This is the issue described here: https://github.com/jotson/ridiculous_coding/issues/2
The issue here hasn't been reported yet as far as I know.

### Steps to reproduce

1. Start a Godot project on MacOS
2. Include the RidiculousCoding addon either via AssetLib or GitHub download and extraction
3. Enable the plugin
4. (Go back to the project list and go back into the project)
5. Start typing and you will see the texture from the addon appearing at the top left of the script editor

### Minimal reproduction project
[RidiculousCoding.zip](https://github.com/godotengine/godot/files/7803398/RidiculousCoding.zip)
Repository: kubernetes
Issue: Add suspend subresource
Labels: sig/scheduling,sig/api-machinery,kind/feature,sig/apps,lifecycle/frozen,triage/needs-information,triage/accepted,wg/batch

### What would you like to be added?

Add `suspend` subresource to allow agnostically suspending/restarting apps, especially jobs. This is similar to the `scale` subresource.


### Why is this needed?

This is useful to develop job management operators (such as job queueing controllers) that aim to control when to start/stop jobs, whether that being the k/k [batch/v1.Job](https://kubernetes.io/docs/concepts/workloads/controllers/job/#suspending-a-job) API or custom defined jobs.

The idea is that given only a reference to the job, the controller can start/stop jobs just like HPA is able to scale up/down apps that implement the scale subresource (see [scaleTargetRef](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/horizontal-pod-autoscaler-v2/#HorizontalPodAutoscalerSpec), which identifies CRDs for HPA).

/sig apps
/sig scheduling