sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: Git conflict resolution "accept both changes" deletes lines not related with the conflict
Labels: bug,debt,merge-conflict

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version:1.48.2
- OS Version: Linux Mint 19.3

Steps to Reproduce:

1. I merged a repo and had conflicts
2. For a conflict I clicked on "accept both changes"
3. It did nothing so I clicked again, each time I clicked it deleted some lines not related with the conflict
4. Needed to undo everything and go back to fix manually (accept local, and accept incoming work as expected, but there is something wrong with accept both)
Repository: pytorch
Issue: Why is RTX3080 slower than RTX2020-Ti?
Labels: module: performance,module: cuda,triaged

Time per batch iteration on the same experiment (Siamese network) setup.  

RTX2080Ti - 0.5 sec.
TitanX - 0.69 sec.
RTX3080 - 0.72 sec. 
RTX 2070-Super -- 0.77 Sec

Is it because Pytorch/CUDA etc are not optimized with respect to RTX3080? 

We have a set of [listed resources available on the website](https://pytorch.org/resources). Our primary means of support is our discussion forum:

- [Discussion Forum](https://discuss.pytorch.org/)


cc @ngimel @VitalyFedyunin
Repository: create-react-app
Issue: Include inclusivity rules in default eslint configuration
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..."
-->

No, not related to a problem per se, this is a suggestion relating to the current social climate and how we could, in our code, make a statement about inclusivity.

In recent months we have seen both [github](https://www.bbc.co.uk/news/technology-53050955) and [twitter](https://www.bbc.co.uk/news/business-53273923) drop the use of terms such as "blacklist", "whitelist" and "master/slave". I am proposing that CRA does the same and also takes a stance in encouraging the rest of the industry to follow suit.

Terms like this are very common, and we use them very often, and most probably they are completely harmless. However: It is not all about being politically correct: recent events have demonstrated that we can no longer be passive about these issues, and taking a stance on not using these terms allows us to send a message that we are actively anti-racism as a community.

### Describe the solution you'd like

<!--
  Provide a clear and concise description of what you want to happen.
-->

These good people appear to have [produced an eslint rule](https://github.com/muenzpraeger/eslint-plugin-inclusive-language
) that does the check, let's just put it into the CRA defaults with warnings for blacklist/whitelist and slave.

### Describe alternatives you've considered

<!--
  Let us know about other solutions you've tried or researched.
-->

The only real alternative is not to do it.

### 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 - hope you give this a decent amount of consideration.
Repository: TypeScript
Issue: Class instance property with default value not referenced in destructured object property reassignments
Labels: Bug,Domain: Symbol Navigation

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->
Expected `1 reference` for `Foo.foo`

![Code_2020-09-30_02-05-26](https://user-images.githubusercontent.com/30108880/94628888-792f0380-02c1-11eb-8c4e-9890e036f376.png)
```ts
class Foo {
	foo = 0;
	bar: number;
	leet = 0;
}
declare const f: Foo;
let foo, bar;
({ foo, bar } = f);
let { leet } = f;
```
```json
"typescript.referencesCodeLens.enabled": true,
```
1.49.2
tested on ts 4.0.2 and 4.1.0-dev.20200929
Repository: youtube-dl
Issue: Site support request e926.net/e621.net
Labels: site-support-request

## Checklist
- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2020.09.20**
- [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
- Single video: https://e926.net/posts/2425442
- Single video: https://e926.net/posts/2415776
- Single video: https://e926.net/posts/2362130


## Description
e926 and e621 share the same format and IDs. e926 only contains sfw works, while e621 contains swf and nswf works (so all of the examples also will work with e621.net as domain)

I tried my best to find the (I think) useful information from a source code of the website.

Without having a cookie, a warning message appears at first asking for making sure one is over 18. But the source code for showing the artwork is already existing at this moment.

Example for the last Example URL:
Title
`<meta name="og:title" content="kygen drawn by fattydragonite - e926">`

ID (in case Title is not given maybe?)
`<meta name="post-id" content="2362130">`

Description (copied the whole div for this example; sorry for long line)
```
<div class="expandable-content styled-dtext original-artist-commentary">
<p>From source:</p><blockquote><h2>Break Time (ANIMATED SHORT FILM) - by <a class="dtext-link dtext-external-link" href="https://www.furaffinity.net/user/fattydragonite/">FattyDragonite</a></h2><p>WATCH HERE! <br><a class="dtext-link" href="https://www.youtube.com/watch?v=zUDA3_bxtF8">https://www.youtube.com/watch?v=zUDA3_bxtF8</a> </p><p>A kickboxing kangaroo facing tall hurdles learns that hard grueling work isn't the only ingredient in great accomplishments. </p><p>This short is heavily inspired by a project  a good friend, <a class="dtext-link dtext-external-link" href="https://www.furaffinity.net/user/kygen">Kygen</a> , made, called Chamber Roo, which featured a noire-esque world of intelligent kickboxing kangaroos, and since his birthday happened recently I felt it was the perfect time to pay homage. <br>Check it out here: <a class="dtext-link" href="https://www.furaffinity.net/view/30830484/">https://www.furaffinity.net/view/30830484/</a> </p><p>Overall the short took about one and a half months to complete, I hope you enjoy.</p></blockquote>
</div>
```

Upload date (for file date?)
`<meta itemprop="uploadDate" content="2020-08-08T10:59:56-04:00">`

Video (the src= would be the relevant part I guess)
`<video id="image" class="fit-window" data-original-width="2560" data-original-height="1440" loop="loop" controls="controls" poster="https://static1.e926.net/data/sample/d6/74/d674b2fd4e6bb684e6dc6b145c30509b.jpg" src="https://static1.e926.net/data/d6/74/d674b2fd4e6bb684e6dc6b145c30509b.webm"></video>`
Repository: vscode
Issue: onDidDispose is fired when view is moved
Labels: bug,webview

Testing #105764

If this is expected, then it should be mentioned in the `.d.ts` as the documentation implies that the only case is hiding the view.
Repository: youtube-dl
Issue: How to get audio when watching partially downloaded file
Labels: question


- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

If I download a video using youtube-dl I often want to watch the video already before the download finished. However if I just play the `*.part` file, there is no audio. 

So how should I initiate the download process such that the partial downloaded file also contains the correct audio stream?

If I already initiated a download "the wrong way", i.e. such that the part file doesn't contain audio, is there a way to fix this while the download continues?
Repository: PowerToys
Issue: Adjust how fonts render in Windows
Labels: Idea-New PowerToy

Windows is great at supporting a vast amount of hardware but for some users, they want their fonts to render differently.  This comes into play more and more with higher resolution screens.

**Possible knobs:**

- Default text rendering
- Force symmetric smoothing on
- Force symmetric smoothing on and hinting off

Smashing magazine has a [good overview of different rendering](https://www.smashingmagazine.com/2012/04/a-closer-look-at-font-rendering/).

Note there are two major rendering systems inside Windows, DirectWrite and GDI.  Some applications handle their own rendering as well.

There is an open source project under GPLv3 that does something like this. https://github.com/snowie2000/mactype

Here is additional discussions on ClearType and other Microsoft Typography.
- https://docs.microsoft.com/en-us/typography/cleartype/
- https://docs.microsoft.com/en-us/typography/
Repository: flutter
Issue: Improve embedded FlutterFragment's back button navigation delegation
Labels: c: new feature,platform-android,framework,engine,f: routes,a: existing-apps,customer: google,c: proposal,P2,team-android,triaged-android

Add-to-app Flutter can be used in two ways. It can be embedded in its own dedicated activity, or it can share an activity with other native code. The former strategy works pretty well from what I've seen, however, it lacks a lot of flexibility because it means you can't really put Flutter and native UI side by side. The latter solution on the other hand has some issues. This issue involve navigation. 

The FlutterFragment documents that the activity should call through to the fragment's `onBackPressed()` method. This has two problems:

1. If the FlutterFragment is nested inside a stack of fragments, this call through can be pretty tedious.
2. It's difficult for the native code to decide whether back behavior should be handled natively, or by flutter.

Both of these issues can be resolved using AndroidX's [OnBackPressedCallback](https://developer.android.com/reference/androidx/activity/OnBackPressedCallback) API. They high level summary of the API is that it allows fragments to register an `OnBackPressedCallback` to the fragment's activity. This instantly solves problem 1, but problem 2 requires a bit more work. 

`OnBackPressedCallbacks` have an internal enabled state that controls whether the activity should delegate to the callback or to its own logic. (The callbacks are also associated with the fragment's lifecycle to ensure that they're automatically disabled when the fragment is detached, and there's also a complex algorithm to determine callback precedence if multiple are active simultaneously). It should be possible to add functionality to Flutter's navigation channel such that Dart code can call through to update the enabled state of the callback, resolving problem 2. There's a small chance for race conditions updating the enabled state because of the async nature of channels, but this is still a strict improvement. There are probably ways to improve the raciness too, I just haven't thought too much about them.
Repository: go
Issue: x/build: automatic check to prevent accidental CL submission with mismatch between target branch and subject prefix
Labels: Builders,NeedsInvestigation,FeatureRequest

When working on branches other than the main one, or making cherry-pick CLs, we have a convention of putting the branch name in square brackets before the subject.

From https://golang.org/wiki/MinorReleases:

> The cherry-pick CL must include a message prefix like [release-branch.go1.10]

If there is a mismatch between the actual target branch of the CL and what the prefix says, we should have some automated mechanism to prevent accidental submission.

This could've helped catch:

- #41718, where the [CL subject](https://go-review.googlesource.com/c/go/+/258525/2//COMMIT_MSG#8) correctly indicated the intended branch as "[dev.link]"
- #43628, where the [CL subject](https://go-review.googlesource.com/c/tools/+/280702/1//COMMIT_MSG#8) correctly indicated the intended branch as "[gopls-release-branch.0.6]"
- https://go.dev/cl/405543, which did not have "[release-branch.go1.18]" prefix

Perhaps it can be implemented as gopherbot applying a -2 code review vote (and a comment?), or some other way. This is closely related to #10658, which is about detecting large binaries, and to #18548, which is about various server-side checks.

/cc @golang/release @cherrymui
Repository: youtube-dl
Issue: Support partially downloading videos
Labels: 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 2020.09.20. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature 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 feature request
- [x] I've verified that I'm running youtube-dl version **2020.09.20**
- [x] I've searched the bugtracker for similar feature requests including closed ones


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

I often need to download the whole video only to extract from it a short clip later, with `ffmpeg`'s `-ss` and `-t` keys. Thus downloading the rest of the video is redundant, and consumes lots of traffic and disk space.

For HLS videos, which are present on lots of supported sites including YouTube, only certain chunks 
may be fetched if their timing is known. Thus the time range may be specified via CLI parameters, either the *start point* and the *duration*, or the *start* and *end* points. `youtube-dl` should automatically pick the smallest number of chunks that fit the specified range; optionally it also may pass the parameters to `ffmpeg` after downloading, so it trims the unnecessary parts from the edge chunks. If the video is not chunked, `youtube-dl`  may fall back to downloading the whole video, or trigger an error.
Repository: storybook
Issue: Document and update link for "Add a tab to storybook like (SB Docs)"
Labels: bug,api: addons,ui

**Is your feature request related to a problem? Please describe**
I'm trying to create a Tab addon and while it mostly works - I'm struggling with the auto routing behavior we get with Canvas(story), and Docs(docs).
When registering my addon I setup the `route` and `match` functions just like the addon Docs does. And this mostly works. When clicking on my Tab I see the url update, and also when hovering over the other stories I see that all of them have the correct url to my addon's tab. However as soon as I click a different story, instead of remaining on my addon's tab or even going to the url I saw before clicking - it auto redirects to the story tab putting "story/" in the url.

**Describe the solution you'd like**
On the page: https://storybook.js.org/docs/react/api/addons
There are three links
 - Add a panel to Storybook (like Action Logger).
 - Add a tool to Storybook’s toolbar (like zoom or grid).
 - Add a tab to Storybook (like SB Docs).

The third link is where I would expect to find a useful hello world example of how to setup a simple tab addon complete with the routing behavior I'm struggling to get working. Instead it links out to https://storybook.js.org/docs/react/writing-docs/introduction which isn't very helpful.


**Describe alternatives you've considered**
I've poured through the addon docs' source code and haven't seen anything to indicate a special onRedirect handler or react-router configuration insertion. I'm at a loss for how the Docs tab stays active when clicking through different stories, and what I'm missing to replicate that behavior.
This addon is also incredibly complex and not great for someone looking for a simple example to get them started with their first tab addon.

**Are you able to assist to bring the feature to reality?**
no | I could share a simplified version of what I have so far for a ts react tab addon but I believe someone closer to the storybook source code would be better suited to document creating a tab addon. My code is also mostly from pre- v5.3 so I might be doing some things that are outdated.

**Additional context**
In any storybook with Docs addon try the following.
1. Click on the docs tab.
1. Click on a different story in the laft hand navigation menu
 - Notice how the Docs tab is still active and updated for the newly selected story.

The behavior I'm seeing is that even though the url in the address bar and the urls for all of the stories in the left navigation menu are correctly pointing to my tab - as soon as I click a different story, the url is changed to make the story tab the active tab.
Repository: flutter
Issue: [Add2App iOS] A Flutter view will not render until an OS alert is dismissed first
Labels: platform-ios,engine,a: existing-apps,has reproducible steps,P2,found in release: 3.7,team-ios,triaged-ios

In Flutter 1.19, if an iOS prompt was showing, and a FlutterViewController is launched, the flutter view would be rendered immediately beneath the alert.

In Flutter 1.22, the flutter view will not render until the alert is dismissed.

I'm attaching two videos.

You can see in the 1.19.mov, the OS prompt shows, and 2 seconds later the flutter view renders behind. After dismissing the prompt, you can see the flutter view is already there.

You can see in the 1.22.mov, the OS prompt shows, and 2 seconds later, the flutter view never renders. After dismissing the prompt, you can see the flutter view then render for the first time.

Is this expected? We have automation tests running with flutter driver that break because of this.

Thanks

<details> 
<summary>flutter doctor -v</summary> 

```bash
[✓] Flutter (Channel beta, 1.22.0-12.2.pre, on Mac OS X 10.15.6 19G2021, locale en-US)
    • Flutter version 1.22.0-12.2.pre at /Users/danny.valente/Library/flutter/1.22.0-12.2.pre-beta
    • Framework revision 2bafdc8226 (5 days ago), 2020-09-25 12:48:22 -0700
    • Engine revision f763b5b9b9
    • Dart version 2.10.0 (build 2.10.0-110.5.beta)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/danny.valente/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4.1, Build version 11E503a
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
```

</details>
Repository: pytorch
Issue: fx graph mode quantization tutorials
Labels: oncall: quantization,low priority,triaged

This is to track progress of fx graph mode quantization tutorials:

- [x] post training static quantization
- [x] post training dynamic quantization
- [ ] quantization aware training

cc @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel @jerryzh168 @dzhulgakov
Repository: flutter
Issue: [iOS] Support Text Selection Submenus
Labels: a: text input,c: new feature,platform-ios,framework,a: fidelity,f: cupertino,P2,team-design,triaged-design

On native iOS, some items in the text selection menu may open submenus:

<img width="400" src="https://i.imgur.com/oktVHmQ.jpg" />

Flutter doesn't support this.  With https://github.com/flutter/flutter/issues/31412 ([design doc](https://docs.google.com/document/d/1hyay1TyUZB7DXzWw45-ruGMZM1yCMWEnC3DzOJYemuc/edit#)), Flutter will support much more customization of the text selection menu.  Once that is finished, we should provide an easy way to do submenus, too.

See also:
  * https://github.com/flutter/flutter/issues/35826, an issue that was fixed by adding support for overflowing text selection menus. Opened up support for a more dynamic iOS text selection menu that gets close to submenus.
Repository: flutter
Issue: Flutter Fonts are not rendering correctly, Antialiasing is doubled on desktop
Labels: engine,platform-mac,platform-windows,a: typography,f: inspector,platform-web,platform-linux,c: rendering,a: desktop,has reproducible steps,P2,found in release: 1.22,found in release: 2.0,found in release: 2.3,customer: arias,team-engine,triaged-engine



## Steps to Reproduce

Use the code below in a widget to render the text in MacOS, Web and compare to Photoshop or Sketch rendering of the text.

### Details
Render text with Kerning is not working and rendering system is double sampling antialiasing on fonts on MacOS at least.
Kerning is not working on web rendering either.

The following screen shot shows the difference, the top text is from the Sketch app and rendered at size on a Mac.

The second set of text is rendered in the MacOS APP generated code.  My guess is that the TTF font is being rendered with antialiasing to a texture and then the image is placed BLIT'd as a texture also with antialiasing resulting in thicker font.  This is pretty clear on the 'our' of 'Your' at the top of each letter and also does not happen with the web renderer.  This oversampling causes blurred letters.

The third line of text is the web rendered code and you can see the Kerning is not correct and is ignored but at least the sampling is correct.

![Screen Shot 2020-09-30 at 10 04 00 PM](https://user-images.githubusercontent.com/71915886/94770469-87d0f580-0369-11eb-96d1-19e74dd2dfdb.png)

**Expected results:**

All text in the fonts should match layout and kerning.

```
        Positioned(
          left: 16.895999999999958,
          bottom: 69.69599999999997,
          child: Container(
              width: 229.00,
              height: 19.01,
              child: Text(
                'Your Genius Token address:',
                style: TextStyle(
                  fontFamily: 'Prompt',
                  fontSize: 12.672,
                  fontWeight: FontWeight.w500,
                  fontStyle: FontStyle.normal,
                  letterSpacing: 0.32,
                  color: Colors.white,
                ),
                textAlign: TextAlign.left,
              )),
        ),
```
Repository: flutter
Issue: Flutter's IconButton doesn't match the updated IconButton from Youtube App
Labels: framework,f: material design,a: fidelity,P3,team-design,triaged-design

Looks like material updated their spec. Atleast for `IconButton`.

Source - YouTube