sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [flutter_tools] "Resource temporarily unavilable" running "/usr/bin/xcrun simctl list"
Labels: platform-ios,tool,P3,team-ios,triaged-ios

Stacktrace on `stable/2.5.1`:

```
Thread 0 main threadProcessException: ProcessException: Resource temporarily unavailable  Command: /usr/bin/xcrun simctl list --json devices
at _ProcessImpl._start(process_patch.dart:390)
at Process.start(process_patch.dart:36)
at _runNonInteractiveProcess(process_patch.dart:565)
at Process.run(process_patch.dart:47)
at LocalProcessManager.run(local_process_manager.dart:74)
at ErrorHandlingProcessManager.run.<anonymous closure>(error_handling_io.dart:669)
at _run(error_handling_io.dart:567)
at ErrorHandlingProcessManager.run(error_handling_io.dart:668)
at _DefaultProcessUtils.run(process.dart:267)
at SimControl._list(simulators.dart:130)
at SimControl.getDevices(simulators.dart:155)
at SimControl.getConnectedDevices(simulators.dart:171)
at IOSSimulatorUtils.getAttachedDevices(simulators.dart:76)
at IOSSimulators.pollingGetDevices(simulators.dart:50)
at PollingDeviceDiscovery._initTimer.<anonymous closure>(device.dart:386)
at PollingDeviceDiscovery._initTimer.<anonymous closure>(device.dart:384)
at _rootRun(zone.dart:1420)
at _CustomZone.run(zone.dart:1328)
at _CustomZone.runGuarded(zone.dart:1236)
at _CustomZone.bindCallbackGuarded.<anonymous closure>(zone.dart:1276)
at _rootRun(zone.dart:1428)
at _CustomZone.run(zone.dart:1328)
at _CustomZone.bindCallback.<anonymous closure>(zone.dart:1260)
at Timer._createTimer.<anonymous closure>(timer_patch.dart:18)
at _Timer._runTimers(timer_impl.dart:395)
at _RawReceivePortImpl._handleMessage(isolate_patch.dart:184)
```
Repository: flutter
Issue: [flutter_tools] "FileSystemException: Cannot open file" "Podfile-ios-swift" errno = 2
Labels: tool,P2,team-tool,triaged-tool

Crash on `beta/2.6.0-5.2.pre`:

```
Thread 0 main threadFileSystemException: FileSystemException: Cannot open file, path = '/Users/Fujino/Desktop/flutter/packages/flutter_tools/templates/cocoapods/Podfile-ios-swift' (OS Error: No such file or directory, errno = 2)
at _File.throwIfError(file_impl.dart:635)
at _File.openSync(file_impl.dart:479)
at ForwardingFile.openSync(forwarding_file.dart:71)
at ErrorHandlingFile.copySync.<anonymous closure>(error_handling_io.dart:315)
at _runSync(error_handling_io.dart:597)
at ErrorHandlingFile.copySync(error_handling_io.dart:314)
at CocoaPods.setupPodfile(cocoapods.dart:260)
at <asynchronous gap>(async)
at injectPlugins(flutter_plugins.dart:1089)
at <asynchronous gap>(async)
at FlutterProject.ensureReadyForPlatformSpecificTooling(project.dart:330)
at <asynchronous gap>(async)
at FlutterCommand.verifyThenRunCommand(flutter_command.dart:1260)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1125)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at CommandRunner.runCommand(command_runner.dart:209)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:288)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:236)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:62)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at main(executable.dart:92)
at <asynchronous gap>(async)
```
Repository: go
Issue: x/net/http2: serverConn.processHeaders has two error paths that don't clean up
Labels: NeedsInvestigation

I continue to hunt a stream accounting bug in either the Go HTTP/2 transport and/or server. Reading code again now, I noticed:

`(*serverConn).processHeaders` does:

```go
st := sc.newStream(id, 0, initialState)
```

... where that `newStream` call is what's responsible for incrementing the stream count:

```
sc.curClientStreams++
```

(that's what's ultimately causing the `return sc.countError("over_max_streams", streamError(id, ErrCodeProtocol))` I'm hitting)

But just after that `newStream` call are two error exit paths:

```go
st := sc.newStream(id, 0, initialState)

if f.HasPriority() {
        if err := sc.checkPriority(f.StreamID, f.Priority); err != nil {
                return err
        }
        sc.writeSched.AdjustStream(st.id, f.Priority)
}

rw, req, err := sc.newWriterAndRequest(st, f)
if err != nil {
        return err
}
// ... [no returns]
go sc.runHandler(rw, req, handler)
return nil
```

Those two `return err` errors are suspect. If those happen, then `curClientStreams` can be left incremented, never to be decremented again.

The decrement happens in `(*serverConn).closeStream`, which is called from:

* `processResetStream`, reading a RSTStream frame from the client (e.g. they canceled the request)
* `wroteFrame`, called after a frame write is successful, including handler panics. But if we `return err` above before starting the handler, we can't ever write anything, as the handler never runs.

I'm not sure whether this is what we're hitting yet, but it looks suspicious.

/cc @neild
Repository: PowerToys
Issue: Powertoys Run: query table using search word and show up the results
Labels: Idea-Enhancement,Product-PowerToys Run,Run-Plugin

I would like to query a table using search word and show the correct table row data in some fancy view.
Hostname:
IP: 127.0.0.1
Description: localhost
Management URL: https://localhost
Repository: create-react-app
Issue: Provide a flag to disable the "File sizes after gzip:" report
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

<!--
  Provide a clear and concise description of what the problem is.
  For example, "I'm always frustrated when..."
-->

Yes, the "File sizes after gzip:" report takes several seconds to run and it's not required during our CI.

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

Ideally there should be a flag available to skip that step.

### Describe alternatives you've considered

<!--
  Let us know about other solutions you've tried or researched.
-->

N/A

### Additional context

<!--
  Is there anything else you can add about the proposal?
  You might want to link to related issues here, if you haven't already.
-->

N/A
Repository: TypeScript
Issue: Spread Operator Doesn't Keep Object Type
Labels: Suggestion,Awaiting More Feedback

# Bug Report

### 🔎 Search Terms
spread operator interface object assign type

### 🕗 Version & Regression Information
Always

- This is the behavior in every version I tried, and I reviewed the FAQ for entries about Spread Operator

### ⏯ Playground Link
[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.5.0-dev.20210928#code/JYOwLgpgTgZghgYwgAgArQM4HsTIN4BQyxyMwUGYAcnALYQBcylUoA5gNxEkYCuUIOo2ZhWITgQC+BAghyVScMAAtoDdBRzIAvPm7EyFakKYByAFJZlIUwBp9zfoPpmAyrWArTUrgQD0fsgAKsrAGMhhyHDIAEQa2CAxsvJgyAAmcLxsypBQOsgA8gBGAFYQCGAAdHAYGMBsIAAUeJK2iirQAJS+AcGh4ZEgWKnRcZg4MW2eyCW8CspwAA6LECDhYFjICwBuKHAANvvIHcxCyItQWCtQYMAQGMlrqQn5eMiVH-AdeZIcQA)

![image](https://user-images.githubusercontent.com/12272970/135214786-34ea0000-52ae-43f6-a4cb-aac7095e6d5d.png)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
interface Person {
    firstName: string;
    surname: string;
}

const father:Person = {
    firstName: 'John',
    surname: 'Smith'
};

// This is a "Person"
const daughter = Object.assign({}, father);

// This is not a "Person", it just happens to have all the same properties
const son = { ...father };
```

### 🙁 Actual behavior
Using the spread operator to clone an object doesn't retain the object type. This isn't a huge problem, but it makes the Intellisense harder to read, and annoys me. I also feel like it would use more memory / CPU validating another object type instead of just referencing the original.

### 🙂 Expected behavior
Using the spread operator to clone the object should keep the same type.
Repository: transformers
Issue: Feature: Tail Free Sampling
Labels: WIP

# 🚀 Feature request

I would like to have Huggingface implement Tail Free Sampling, or TFS for short, to the official repo. The original paper for this can be found here: https://trentbrick.github.io/Tail-Free-Sampling/#tail-free-sampling-algorithm

Implementation of this code can be found here: https://github.com/finetuneanon/transformers/blob/gpt-neo-localattention3-rp-b/src/transformers/generation_logits_process.py#L243-L284

## Motivation

At the moment KoboldAI uses Finetuneanon's version of Transformers for creating stories, however, this version has several changes made to the repository that make it impossible for me to use (eg: I use an aarch64 architecture with an integrated Nvidia chip, which is only supported by Huggingface's main branch). There are calls from the KoboldAI devs to migrate due to the integrated support of GPT-J in Huggingface, however, there are some features in Finetuneanon's Transformer which are not found in the main branch. Tail Free Sampling is one such feature.

## Your contribution

I would like to file a PR with the code, however, I do lack the knowledge on how to implement the required tests and checks. An example is available on Finetuneanon's branch but it will require cherry-picking the commit to the main branch.
Repository: flutter
Issue: integration_test: screenshots from failed tests and machine output available in one command
Labels: a: tests,c: new feature,framework,c: proposal,f: integration_test,P3,team-framework,triaged-framework

## Use case

Assume that we are running tests of flutter mobile app on CI. Test suite of 100 integration tests is run on emulator. Several of them fail. I want to easily find which tests failed, with what error and what was the state of the app in the moment of failure. Without such possibility tests are not very useful.

To achieve that on the one hand I need `--machine` report from tests because looking through console logs is painful for a larger suite.
On the other hand I would like to have screenshots from the moment of test failure to see how UI looked like in this point of time (maybe there was some error message displayed? or wrong widget was loaded? etc.)

With current tools I have to choose between test report in json format and screenshots (for which I haven't found solid method of taking them).

I've tried several approaches but none was satisfying:
1. `flutter test` command - test results in json format but not possible to take screenshots
2. `flutter drive` command - test results in console output only (lack of `--machine` output). Theoretically there is possibility to take screenshots but I couldn't find satisfying method of taking screenshot from multiple failed tests
- `--screenshot` parameter of flutter drive command should take screenshot on test failure but: 
  - it does not use test name for naming files, so matching screenshot with failed test could be difficult
  - screenshot is taken too late - on screenshot I see the state of the app from the next test that was run after failed test, not from the moment of failure 
- I tried to use `tearDown()` method and take screenshot there using example from [integration_test docs](https://github.com/flutter/flutter/tree/master/packages/integration_test), but I have no access to `tester.pumpAndSettle()` method inside `tearDown()` - which is required before taking screenshot

## Proposal

For integration tests prepare consistent mechanism of test results reporting taking into account both:
1. machine readable test output to easily isolate failed tests with their error messages
2. screenshots from failed tests taken in the moment of test failure (before any other test started on the device)
Repository: bitcoin
Issue: Cleanup CFeeRate constructor (sat/vB vs BTC/kvB)
Labels: Refactoring

Tracking issue for discussion in https://github.com/bitcoin/bitcoin/pull/20391#discussion_r668992659
Repository: next.js
Issue: False positive for @next/next/no-html-link-for-pages with API routes
Labels: Linting

### What version of Next.js are you using?

canary

### What version of Node.js are you using?

14.16.0

### What browser are you using?

Chrome

### What operating system are you using?

macOS

### How are you deploying your application?

Vercel

### Describe the Bug

When running the linter, I get the following errors if I link to an API Preview exit route.

> 71:36  warning  Do not use the HTML <a> tag to navigate to /api/exit-preview/. Use Link from 'next/link' instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages  @next/next/no-html-link-for-pages

### Expected Behavior

I don't believe that a link to an API route should always be tested through the `@next/next/no-html-link-for-pages` rule as defined in `eslint-config-next`. Especially when it's following documented behavior from the API previews.

### To Reproduce

Example code on GitHub that would fail the linter
https://github.com/vercel/next.js/blob/canary/examples/cms-sanity/components/alert.js#L19
Repository: You-Dont-Know-JS
Issue: Can I replace 填充 to prollyfill on ch5 of async & performance, branch 1ed-zh-CN?
Labels: foreign language translations

Hi, Kyle, thank you for you books! I already searched for this issue as nobody mentioned "prollyfill" in issues.

**Edition:** 1st

**Book Title:** async & performance

**Chapter:** 5

**Section Title:** SIMD

**Problem:**

I read the paperback version [ISBN 9787115431165](https://www.amazon.com/dp/7115431167) and found a typo (or maybe not?), on the note they use *prolyfill* (shown as the picture below) instead of [*prollyfill*](https://github.com/getify/You-Dont-Know-JS/blob/1st-ed/async%20%26%20performance/ch5.md#simd). It might be a little bit off-the-topic but I wonder 1) future Chinese translators might take a glance at issues or 2) other Chinese readers may check and read the 1ed-zh-CN branch, so I made a [patch](https://github.com/getify/You-Dont-Know-JS/compare/1ed-zh-CN...IronBlood:1ed-zh-CN), and here's my thought.

The community-translated version uses 填补 (polyfill) with quotation marks, which means it's not a real polyfill. Many Chinese readers may have seen polyfill, but prollyfill is rarely used. I think it could be left alone to reduce misunderstandings, at least people may be able to google the word. I also deleted the duplicated adjective 许多.

![footnote-page-294](https://user-images.githubusercontent.com/47433/135231118-65306c94-4e61-4c44-b286-6432163ae677.png)
Repository: pytorch
Issue: Beta distribution yields wrong results for a,b >1 and x=0 or x=1
Labels: module: distributions,triaged

## Issue description

When setting up a beta distribution with concentration parameters >1, the support of this beta should be on the closed interval [0,1]. However, log_prob(0) and log_prob(1) will yield either -inf or NaN values instead.

## Code example

from torch.distributions.beta import Beta
import torch
dist = Beta(torch.tensor(1), torch.tensor(1))
x0 = torch.tensor(0)
x1 = torch.tensor(1)
print(dist.log_prob(x0)) #should be 0
print(dist.log_prob(x1)) #should be 0
dist = Beta(torch.tensor(1.1), torch.tensor(1.1))
x0 = torch.tensor(0)
x1 = torch.tensor(1)
print(dist.log_prob(x0)) #should be some negative value
print(dist.log_prob(x1)) #should be some negative value


## System Info
PyTorch version: 1.9.0
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 10 Enterprise
GCC version: Could not collect
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A

Python version: 3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.18362-SP0
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] numpy==1.19.1
[pip3] torch==1.9.0
[pip3] torchaudio==0.9.0
[pip3] torchvision==0.10.0
[conda] blas                      1.0                         mkl  
[conda] cpuonly                   1.0                           0    pytorch
[conda] mkl                       2020.2                      256  
[conda] mkl-service               2.3.0            py38hb782905_0  
[conda] mkl_fft                   1.2.0            py38h45dec08_0  
[conda] mkl_random                1.1.1            py38h47e9c7a_0  
[conda] numpy                     1.19.1           py38h5510c5b_0  
[conda] numpy-base                1.19.1           py38ha3acd2a_0  
[conda] pytorch                   1.9.0               py3.8_cpu_0  [cpuonly]  pytorch
[conda] torchaudio                0.9.0                      py38    pytorch
[conda] torchvision               0.10.0                 py38_cpu  [cpuonly]  pytorch


cc @fritzo @neerajprad @alicanb @nikitaved
Repository: yt-dlp
Issue: Download Playlist feature for www.xvideos.com.
Labels: NSFW,site-enhancement




## Checklist



- [x] I'm reporting a site feature request
- [x] I've verified that I'm running yt-dlp version **2021.09.25**
- [x] I've searched the bugtracker for similar site feature requests including closed ones


## Description

I am trying to download a xvideos playlist ("https://www.xvideos.com/favorite/79225393/yt-dlp") and yt-dlp gives error

yt-dlp https://www.xvideos.com/favorite/79225393/yt-dlp
[generic] yt-dlp: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] yt-dlp: Downloading webpage
[generic] yt-dlp: Extracting information
ERROR: [generic] Unsupported URL: https://www.xvideos.com/favorite/79225393/yt-dlp


please support playlist and channel downloads from xvideos in yt-dlp.

Note : I am completely aware yt-dlp can download the individual videos from xvideos.com but creating a text file full of links isn't the solution I want thus raising this issue on Github.

If there exists any other way to solve this problem then please let me know.
Repository: rust
Issue: Type inference cannot propagate through `map` combinator
Labels: A-closures,T-compiler,A-inference,A-coercions

Hi! I was surprised to see that in [the following code](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=d5e258f7bb5360d0cdf3ebb412f126a7), explicit return type (or `map` turbofish) annotation has to be specified for the `map` combinator for the code to compile:

```rust
struct A;
struct B;

trait Trait {}

impl Trait for A {}
impl Trait for B {}

fn foo(arg: bool) {
    // Compiles
    let _: Option<Box<dyn Trait>> = match arg {
        true => Some(Box::new(A)),
        false => Some(Box::new(B)),
    };

    // Doesn't compile
    /*let _: Option<Box<dyn Trait>> = match arg {
        true => Some(()).map(|v| Box::new(A)),
        false => Some(()).map(|v| Box::new(B)),
    };*/

    // Compiles
    let _: Option<Box<dyn Trait>> = match arg {
        true => Some(()).map(|v| -> Box<dyn Trait> { Box::new(A) }), // or Some(()).map::<Box<dyn Trait>, _>(...)
        false => Some(()).map(|v| -> Box<dyn Trait> { Box::new(B) }),
    };
}
```
The inference can work it out if I construct the Option directly, but once `map` is added, it cannot see that both of the `map`s should coerce to `Box<dyn Trait>`. Is this a limitation of the current type inference or should this work?
Repository: deno
Issue: Should flock/ funlock honor other in-process locks?
Labels: suggestion,needs discussion,runtime

Currently `flock` and `funlock` follow the posix spec in that locks taken within the same deno process do not interfere with each other (ie the locks are per deno process, and taking a write lock after taking a read lock earlier or similar upgrades the lock and succeeds).

File locks could be very beneficial to eg web-workers, which might try to coordinate writing to the same file. Currently this needs to be handled explicitly by passing a SharedBuffer to implement a lock. But if file locks where respected within the same deno process, workers might coordinate file access transparently (eg if they rely on different libraries to interact with the same file, which may not be aware of each other).

This would also benefit the WASM SQLite port for deno, see: https://github.com/dyedgreen/deno-sqlite/issues/143 and https://github.com/dyedgreen/deno-sqlite/pull/152
Repository: next.js
Issue: Plain with-webassembly example doesn't build
Labels: examples

### What example does this report relate to?

with-webassembly

### What version of Next.js are you using?

11.1.2

### What version of Node.js are you using?

16.10.0

### What browser are you using?

Chrome

### What operating system are you using?

macOS

### How are you deploying your application?

next start

### Describe the Bug

Immediately after bootstrapping the example with `create-next-app`, `yarn build` fails with the following error:

![image](https://user-images.githubusercontent.com/8385528/135246639-c68e9030-3f39-42e7-b5d0-02d9b2f2ae3f.png)

`yarn dev` still appears to work ok and the browser displays the correct number

### Expected Behavior

Next.js would build the example successfully

### To Reproduce

```shell
create-next-app --example with-webassembly with-webassembly-app
cd ./with-webassembly-app
yarn build
```
Repository: pytorch
Issue: [RFC] Low-level speed optimizations for PowerSGD
Labels: oncall: distributed,enhancement,module: ddp

## 🚀 Feature

### Communication compression

PyTorch features several [DDP Communication Hooks](https://pytorch.org/docs/stable/ddp_comm_hooks.html) that compress messages exchanged between workers in distributed optimization. If communication time is a bottleneck, these hooks can speed up distributed training. Of course, compression is only beneficial if the *time required to compress the messages* is significantly smaller than the *time spent communicating*. Speeding up compression times can open up communication savings to a wider range of models and hardware.

### PowerSGD

In training problems with a strong communication bottleneck, the current [PowerSGD](https://arxiv.org/abs/1905.13727) hook in PyTorch already improves training times (@SciPioneer), but a [recent paper](https://arxiv.org/pdf/2103.00543.pdf) argues that in many settings, the gains in communication do not yet weigh up to the added compression time. 

### Proposed optimizations 
The recent [DALL-E paper](https://arxiv.org/abs/2102.12092) uses PowerSGD for large-scale distributed training, and the paper's appendix contains many recommendations on how to implement the algorithm efficiently. The most actionable recommendation is 
- the creation of a specialized CUDA kernel for the orthogonalization of matrices with many rows and few columns.  

Orthogonalization is the most expensive step in PowerSGD compression and based on timing results from the DALL-E authors, there is a potential for speedups up to 100x in this operation. 

### Benefits
- With faster compression times, compression will generate speedups for more models and with faster communication hardware.
- A faster orthogonalization operation will allow PowerSGD to use higher 'rank's (more accurate compression). Currently, such large ranks would make compression too slow. With more accurate compression, we can avoid drops in model accuracy.

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang