sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: “Fully qualified syntax” seems poorly defined or documented: Type::method is not necessarily fully qualified
Labels: A-docs,C-discussion

The key question: is `Type::method()` or `<Type>::method()` *fully* qualified syntax?

[The book](https://doc.rust-lang.org/book/ch19-03-advanced-traits.html#fully-qualified-syntax-for-disambiguation-calling-methods-with-the-same-name) speaks of “fully qualified syntax” and treats the answer as “yes”, but chooses only examples where it has the effect of uniquely disambiguating.

[The grammar](https://doc.rust-lang.org/reference/paths.html#qualified-paths) defines “qualified paths” but then in its brief description speaks of fully qualified paths and is completely ambiguous as to whether `Type::method` counts under that classification. (And strictly speaking that’s only `<Type>::method`; grammatically, `Type::method` goes through *PathInExpression* rather than *QualifiedPathInExpression*. But I overlook that as an irrelevant technicality, especially since the qualified docs example uses `S::f()` rather than spelling it `<S>::f()`!)

I’d like to see the situation clarified about (fully?) qualified (path?) syntax. I’m not sure whether any distinction should be drawn between qualified syntax and qualified *path* syntax. Or between fully- and partially-qualified paths. But I don’t think all qualified syntax should be considered fully-qualified.

This is the key difficulty of classification: `Type::method()` is only *fully*-qualifying (*uniquely* identifying) iff there’s an inherent member for it to find; if there isn’t, then it’s only partially-qualifying, involving trait lookup. Thus, the word “syntax” in the term becomes problematic since the question of full qualification is not actually resolved by the syntax. In this specific regard, universal function call syntax was a less problematic name. (Of course, the “function call” part became problematic, so it’s definitely not a suitable name either.)

`<Type as Trait>::method()` is definitely using fully qualified syntax and has a fully qualified path.

`Type::method()` and `<Type>::method()` are using qualified syntax, but syntactically you can’t say whether they’re fully qualified paths or not.
Repository: rust
Issue: Improve diagnostics when accidentally making str instead of &str
Labels: A-diagnostics,T-compiler

<!--
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.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur.
-->

Given the following [code](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=b7315a886856a6f0f0868bf2fce36b99): <!-- Please provide a link to play.rust-lang.org -->

```rust
fn first_three(s: &str) -> String {
    String::from(s[0..3])
}

fn main() {
    println!("{}", first_three("hello"));
}
```

The current output is:

```
error[E0277]: the size for values of type `str` cannot be known at compilation time
   --> src/main.rs:2:18
    |
2   |     String::from(s[0..3])
    |                  ^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `Sized` is not implemented for `str`
note: required by `from`

error[E0277]: the trait bound `String: From<str>` is not satisfied
   --> src/main.rs:2:5
    |
2   |     String::from(s[0..3])
    |     ^^^^^^^^^^^^ the trait `From<str>` is not implemented for `String`
    |
    = help: the following implementations were found:
              <String as From<&String>>
              <String as From<&mut str>>
              <String as From<&str>>
              <String as From<Box<str>>>
            and 2 others
note: required by `from`

error[E0277]: the size for values of type `str` cannot be known at compilation time
 --> src/main.rs:2:5
  |
2 |     String::from(s[0..3])
  |     ^^^^^^^^^^^^ doesn't have a size known at compile-time
  |
  = help: the trait `Sized` is not implemented for `str`
  = note: all function arguments must have a statically known size
  = help: unsized fn params are gated as an unstable feature

```

<!-- The following is not always necessary. -->
Ideally the output should look like:

```
help: borrow as a &str slice: &s[0..3]
```

(and perhaps a bit less verbosity on the errors; #56607 will help)

<!--
If the problem is not self-explanatory, please provide a rationale for the
change.
-->

<!--
If dramatically different output is caused by small changes, consider also
adding them here.

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. The output might also be
different depending on the Edition.
-->
Repository: TypeScript
Issue: Incorrect generic inference inside a discriminated union
Labels: Bug,Rescheduled

# Bug Report

### 🔎 Search Terms

discrimated union generic extra property

### 🕗 Version & Regression Information

- This changed between versions 4.1.5 and 4.2.3

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.2.3#code/C4TwDgpgBAMg9gQwCYIEYBsIB4AqA1BdAVwgD4oBeAKClqgB8oBvGut2gZ2AWAgC4oAInSIkASwB2Ac0Gs2AXzkNmS9lC49+QgMZwAtmEy9ZatgDdCJAfksRVURVSoAzIhO3AxcCVD0Iw8MhomLgExGQAFCJBGFqBKLGhtqQANL7+AhEW4dZhJACUlORmcGJI+QIlZSqOoJBQAIJEUnoQErxI8cHQ1GyMLKZ0GrwCwqKSMvbmtgISRHqoEABO9op9KoOc3CM6+oYQxlN02VbqwEsTq06u7p7e6WBNLW0dEQjNre0QSAJPnx1dWKFAZ0PwBUTdN4fF7fNIRQoUchMeSFAD0qKggBlyKAAUSWSzgSw4UAA7mJgAALIQNJZSeYvKBwZxQOrQADkfxhnQhsTZUDExIkcGAUAQHA4YikEm6LLgUDACCWCFavCWjOZrKgbMBITmC2WpDZJlB-h12C4F2kpChzy+SDhCKRKKg6KggFByKAAdUJAGtBXASSyKTwWeBoAKoFI2ssxNp+cSOJBtGJnGJvlRHEA)

### 💻 Code

```ts
type Loadable<TValue> =
    | {
          state: "loading"
      }
    | {
          state: "complete"
          value: TValue
      }


function mapLoadable<TValue>(loadable: Loadable<TValue>, map: (value: TValue) => void): void {
}

type AugmentedLoadable =
    | {
          state: "loading"
          value: number
      }
    | {
          state: "complete"
          value: string
      }

function mapAugmented(augmented: AugmentedLoadable) {
    mapLoadable(augmented, () => {}) // ❌ Errors with "Argument of type 'AugmentedLoadable' is not assignable to parameter of type 'Loadable<number>'"
    mapLoadable<string>(augmented, () => {}) // ✅ Works now that type is generic is specified
}
```

### 🙁 Actual behavior

TypeScript incorrectly infers that `augmented` should be assignable to `Loadable<number>` rather than a `Loadable<string>`, because we've added an unrelated `value: number` property to it. It can be nudged into working by writing out the generic type.

### 🙂 Expected behavior

TypeScript to infer the correct generic of `string`.
Repository: electron
Issue: Showing a window should not take focus away from other apps by default
Labels: enhancement :sparkles:

If I launch an app on macOS, and then switch to another app, I expect that the app that I launched and switched away from will finish launching in the background and not interrupt whatever else I've chosen to move on to. Unfortunately, apps built using Electron seem to steal focus every time they show a window. 

I understand that there are situations where making your app frontmost is important, such as apps that live in the status bar, or when an app is background-only, such as LSUIElement apps - but it's disheartening to see that this is the default for _all_ apps that use the Electron framework. It makes using these apps incredibly frustrating, because they seem to think that they are more important than whatever else I'm doing, and I'd like to believe that that is not the intent of the authors of the apps.

Could you please consider making this an option, and defaulting it to false like AppKit does? You'd be doing the workflows of so many users much, much nicer.

Here are the examples of this happening that I found with a quick search: 

https://github.com/electron/electron/blob/57d088517ceef0d6c7bd6dde6fd740813c3cf943/shell/browser/native_window_mac.mm#L521-L523

https://github.com/electron/electron/blob/44491b023ac2653538b7ac36bb73f3085a938666/shell/browser/ui/cocoa/electron_bundle_mover.mm#L91-L95

https://github.com/electron/electron/blob/64ba8feb9379d9c16ab1473d0abe48ddcd728c45/shell/browser/browser_mac.mm#L100-L114

Are these calls all necessary? I can see the steal option as a result of #22612, and that's good - there are legitimate reasons to force an app to the front, but the other two seem like they shouldn't be defaulting to `YES`. The "work-around for focus issues related to "scary file from internet" OS dialog." seems especially egregious?

I can see that #21897 made progress toward this, and then got dropped because testing the feature was difficult. Even without a working test for this, this change would dramatically improve how Electron apps behave on macOS.
Repository: godot
Issue: OS.execute argument string conversion off by one?
Labels: bug,platform:windows,topic:porting

### Godot version

3.3.stable.official

### System information

Windows 10

### Issue description


executing this in the _ready event for a control node...

`OS.execute("start",["cmd /k echo hello!"])`

results in a new cmd window being opened and it printing out

`hello!"`
![image](https://user-images.githubusercontent.com/6888784/132788437-6b48f1cc-5b98-4c7f-9390-25f953b13614.png)


should not print the extra '"' symbol.

### Steps to reproduce

run OS.execute("start",["cmd /k echo hello!"]) in _ready event

### Minimal reproduction project

_No response_
Repository: pytorch
Issue: linalg.lstsq out variant fails internal assert because it uses non-inplace view op for some inputs
Labels: high priority,module: ci,triaged,module: linear algebra

`linalg_lstsq_out_info` in `aten/src/ATen/native/BatchLinearAlgebra.cpp` uses `narrow` which returns a new tensor

```
RuntimeError: solution__impl_saved == solution_.getIntrusivePtr()INTERNAL ASSERT FAILED at "../torch/csrc/autograd/generated/VariableType_0.cpp":4521, please report a bug to PyTorch. 
```
To replicate:
 - `run_with_asan python test/test_ops.py -k test_out_linalg_lstsq_cpu_float32`
 - I built with [asan](https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md#building-pytorch-with-asan), but should fail on debug builds too

This means that there aren't non-NDEBUG tests running on CI

cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @anjali411 @seemethere @malfet @lg20987 @pytorch/pytorch-dev-infra @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano
```[tasklist]
### Tasks
```
Repository: go
Issue: database/sql: make maxBadConnRetries configurable
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?
v1.16.2

### Does this issue reproduce with the latest release?
Yes

### What operating system and processor architecture are you using (`go env`)?
n/a 

### What did you do?
The value of `maxBadConnRetries` is hardcoded to 2  -> https://github.com/golang/go/blob/master/src/database/sql/sql.go#L1511. 
I was wondering if there is a specific reason for this, as there seems to be attempts to make this variable in the past which were abandoned -> https://github.com/golang/go/issues/15608

Making it variable would be very much appreciated in our particular use-case. 

#### Scenario
- Running a k8s cluster with various services running as pods in the cluster. Each of these pods has a sidecar Health-Monitor container which simply pings certain dependencies on a regular interval (10s). Should the health-check fail, the dependency is marked as down and potentially the pod can be marked as not-ready. 
- One of our dependency types is SQL, and the go-sql lib is used. 
- There are times where we need to bring down our DB (during patching etc) 
  - and during these times we see connections to the DB spike to triple in traffic (makes sense now that we have looked at the code)
  -  this causes the DB instance to be hit hard and load to increase, during a period where load is already high due to an external process 
  - this also means that the HM acts differently according to different scenarios (happy/sad)
 
Note that we cannot simply block connections to the entire DB instance as it needs to be contactable during this period.
Repository: flutter
Issue: support test tags in `flutter build apk` for Firelab Test Lab
Labels: c: new feature,tool,c: proposal,f: integration_test,P3,team-tool,triaged-tool

## Use case
When I run integration tests locally I can select specific test tags via the command `flutter test --tags tag-name integration_test` (or `--exclude-tags`).

I would like to be able to pass the same argument to the build commands for Android/iOS, in order to execute on Firebase Test Lab only the selected tests, without the need to change the test files.

## Proposal
I imagine we could pass test tags to include/exclude as arguments to the build commands currently used to build app packages for cloud execution:

`./gradlew testVariantNameUnitTest --tests *.sampleTestMethod`

like described [here](https://developer.android.com/studio/test/command-line) and [here](https://docs.gradle.org/current/userguide/java_testing.html#test_filtering), or

```
xcodebuild test-without-building [-workspace <your_workspace_name>]
                                 [-project <your_project_name>]
                                 -scheme <your_scheme_name>
                                 -destination <destination-specifier>
                                 [-only-testing:<test-identifier>]
                                 [-skip-testing:<test-identifier>]
```
like described [here](https://developer.apple.com/library/archive/technotes/tn2339/_index.html#//apple_ref/doc/uid/DTS40014588-CH1-UNIT).
Repository: pytorch
Issue: RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation
Labels: needs reproduction,module: nn,triaged

## 🐛 Bug

The first version:
```
class Model(nn.Module):
    def __init__(self):
        self.net = resnet50()
    def forward(self, x):
        out = self.net(x)
        return out
```
```
out1 = model(x1)
out2 = model(x2)
loss = criterion(out1, out2)
loss.backward()
```
`RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [2048]] is at version 5; expected version 4 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later. Good luck!`

--------------------------
The second version:
```
class Model(nn.Module):
    def __init__(self):
        self.net = resnet50()
    def forward(self, x1, x2):
        out1 = self.net(x1)
        out2 = self.net(x2)
        return out1, out2
```
```
out1, out2 = model(x1, x2)
loss = criterion(out1, out2)
loss.backward()
```
Everything is OK! 

------------------------

What's wrong with the first version?


cc @albanD @mruberry @jbschlosser @walterddr
Repository: youtube-dl
Issue: [Keep2Share] site support request
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.06.06. 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.06.06**
- [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





## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE

Site : https://k2s.cc/

Demo url : https://k2s.cc/file/cd6a622a2dd84/-5889913980330290200_109.jpg
Repository: angular
Issue: Improve JIT compiler unavailable error
Labels: hotlist: error messages,regression,area: compiler,P3,compiler: linker

# 🐞 Bug report

### Command (mark with an `x`)

N/A. The app is built in AOT mode using `@ngtools/webpack@12.2.4` and a custom Webpack config file.

### Is this a regression?
Yes, the previous version in which this bug was not present was: `@ngtools/webpack@11.2.14`

### Description

The AOT build in Webpack 5 (and also Webpack 4) succeeds with no errors, but the app fails to render and the browser shows the following error in the console:

```
Uncaught Error: JIT compiler unavailable
    at qn (app.d58833d2c8eb48cf8f29.js:2)
```

Releated app.js source code:
```
function qn(e) {
  const t = Q.ng;
  if (t && t.\u0275compilerFacade) return t.\u0275compilerFacade;
  throw new Error('JIT compiler unavailable')
}
```

## 🔬 Minimal Reproduction

I created a new Angular CLI project using a custom webpack config to try to mimic our environment, including identical tsconfig.json and main.ts files, but I was unable to reproduce the error. The only change we made was upgrading all Angular packages from `11.2.14` to `12.2.4`. No changes were made to our webpack config files or any other code.

I thought this might be a conflict with Angular 12 and Webpack 4 (i.e. `@ngtools/webpack@11.2.14`), so I upgraded to Webpack 5 (i.e. upgraded @ngtools/webpack, zone.js, and all other packages to the "latest" versions). Both the Webpack 4 and Webpack 5 builds succeed with no errors, but the Angular run-time error still occurs.

Note: The error occurs when running the AOT build locally on an Express server and when deploying it to our Nginx Server. Our Webpack config does _not_  include webpack-dev-server.

Here is the @ngtools/webpack config:

```
new AngularWebpackPlugin({
      tsconfig: helpers.root('src', 'prod.tsconfig.json'),
      jitMode: false
}),
```

## 🔥 Exception or Error

<pre><code>
Uncaught Error: JIT compiler unavailable
    at qn (app.d58833d2c8eb48cf8f29.js:2)
</code></pre>

## 🌍 Your Environment

<pre><code>
Angular CLI: 12.2.4
Node: 14.16.1
Package Manager: npm 6.14.12
OS: darwin x64

Angular: 12.2.4
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, localize, material, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1202.4
@angular-devkit/build-optimizer   0.1202.4
@angular-devkit/core              12.2.4
@angular-devkit/schematics        12.2.4
@ngtools/webpack                  12.2.4
@schematics/angular               12.2.4
rxjs                              6.6.7
typescript                        4.3.2
webpack                           5.51.1
</code></pre>

**Anything else relevant?**
Someone else posted a similar error on [Stack Overflow](https://stackoverflow.com/questions/68942317/jit-compiler-unavailable-after-upgrading-angular-from-11-to-12).
Repository: youtube-dl
Issue: RapidGator Site support request
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.06.06. 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.06.06**
- [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




## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

WRITE DESCRIPTION HERE

Site: https://rapidgator.net/
other domain : https://rg.to/
Example URL : https://rapidgator.net/file/80b7f7fa19603613978a2d71e037dcd5/sample.mkv