sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Build PyTorch-1.4.0 from source failed
Labels: module: build,triaged

## 🐛 Bug

I am trying to build pytorch 1.4.0 from source and i am seeing this error. 

```
gmake: *** [all] Error 2
Traceback (most recent call last):
  File "setup.py", line 755, in <module>
    build_deps()
  File "setup.py", line 316, in build_deps
    cmake=cmake)
  File "/local/home/yingleiz/workspace/PyTorchWS/build/PyTorch/PyTorch-1.4.x/AL2012/DEV.STD.PTHREAD/build/private/src/tools/build_pytorch_libs.py", line 62, in build_caffe2
    cmake.build(my_env)
  File "/local/home/yingleiz/workspace/PyTorchWS/build/PyTorch/PyTorch-1.4.x/AL2012/DEV.STD.PTHREAD/build/private/src/tools/setup_helpers/cmake.py", line 337, in build
    self.run(build_args, my_env)
  File "/local/home/yingleiz/workspace/PyTorchWS/build/PyTorch/PyTorch-1.4.x/AL2012/DEV.STD.PTHREAD/build/private/src/tools/setup_helpers/cmake.py", line 141, in run
    check_call(command, cwd=self.build_dir, env=env)
  File "/home/yingleiz/brazil-pkg-cache/packages/CPython36Runtime/CPython36Runtime-release.316387.0/AL2012/DEV.STD.PTHREAD/build/python3.6/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '36']' returned non-zero exit status 2.
```

Here is the full log of this build: https://gist.github.com/YingleiZhang/fc98c94d493ac39506daacefa0298b38

Can someone provide some guidance on this issue? I don't have problem build Pytorch 1.2.0 with the same env. 

cc @ezyang @yf225 @peterjc123
Repository: pytorch
Issue: Copy activations from one parts to another part in tensor, but report error
Labels: triaged

## 🐛 Bug
I want to copy the activations from one region in image (tensor, shape=(3, 800, 800)) to another region with same shape, and after dealing with parts of dataset, a bug will be reported.

ValueError: could not broadcast input array from shape (3,97,39) into shape (3,97,40)

Parts of my code is :
tmp = image[:, old_y0:old_y1+1, old_x0:old_x1+1]
image[:, old_y0+offset_y:old_y1+offset_y+1, old_x0+offset_x:old_x1+offset_x+1] = tmp

What I confused is that the location interval is exactly the same between two parts, but a bug was reported.

Version:
Pytorch 1.4
Repository: PowerToys
Issue: [Run][WindowWalker plugin] Allow spaces to be treated as implicit AND operators 
Labels: Idea-Enhancement,Product-PowerToys Run,Priority-2,Run-Plugin

# Summary of the new feature/enhancement

I usually know the application I'm searching for.  If I have 20 or 30 open powershell consoles it would be convenient if I could type "power foo" and have the search results be the intersection of searching for "power" AND "foo" rather than the current mechanism of searching for the literal string "power foo".

# Proposed technical implementation details (optional)

It seems likely this is a straightforward change though the default of treating spaces as AND (vs OR) operators may be controversial. To me this seems like a sensible policy short of implementing a full logical expression parser though perhaps it could be a user-option?
Repository: react-native
Issue: ScrollView doesn't scroll to focused element
Labels: Help Wanted :octocat:,Platform: Android,Component: ScrollView,Newer Patch Available,Needs: Attention

## Environment
Android API: 28
Device: AndroidTV emulator and Xiaomi MI BOX
React Native: 0.61.5

## Description
Sometimes ScrollView doesn't scroll to currently focused element on AndroidTV devices. Looks like issue is triggered because of two scroll events, one from _ReactScrollView.java_ _arrowScroll_ method and one from _requestChildFocus_. Issue seems to occur only when scrolling on the bottom of _ScrollView_.

## React Native version:
"0.61.5"

## Steps To Reproduce
1. Navigate with keyboard/remote controller up and down on between last rows of ScrollView.

## Expected Results
Scroll follows focused element

## Snack, code example, screenshot, or link to a repository:
App.ts example:
```
import React from 'react';
import {View, StyleProp, TextStyle, ViewStyle, TouchableOpacity, ScrollView, Text} from 'react-native';
const styles: {[name: string]: StyleProp<ViewStyle> | StyleProp<TextStyle>} = {
  container: {
    position: 'absolute',
    width: '100%',
    height: '100%',
    backgroundColor: '#000',
    justifyContent: 'flex-end',
    alignContent: 'center'
  }
};
const rows = [1,2,3,4,5,6,7,8,9];
const columns = ['a', 'b', 'c', 'd', 'e', 'f'];
type Props = {
  text: string;
  number: number;
}
const MyButton = (props: Props) => {
  return (
    <TouchableOpacity
      style={{width: 200, height: 200, margin: 50, backgroundColor: `rgba(100,255,0,0.3)`}}
      key={props.text + props.number}
      onPress={() => {}}
    >
      <Text>{props.text + props.number}</Text>
    </TouchableOpacity>
  );
};
const App = () => {
  return (
    <View style={styles.container}>
      <ScrollView>
        {rows.map((number) => (
          <ScrollView
            horizontal={true}
            key={'scrollview' + number}
          >
            {columns.map((text) => <MyButton text={text} number={number} key={text + number} />)}
          </ScrollView>
        ))
        }
      </ScrollView>
    </View>
  );
};
export default App;
```

In gif below i navigated up and down only:
![brokenScrolling2](https://user-images.githubusercontent.com/1708218/78352839-55f0f900-75a9-11ea-8ac2-66c1577919f7.gif)
Repository: youtube-dl
Issue: please add for https://aikidojournal.vhx.tv/
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 2020.03.24. 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 **2020.03.24**
- [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.
-->
https://aikidojournal.vhx.tv/videos/morihei-ueshiba-divine-techniques-os05




## 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
This video is available only for one weeks it is for educational purpose
Repository: TypeScript
Issue: Exclude<keyof T, 'x'> should be assignable to Exclude<Exclude<keyof T, 'x'>, 'x'>
Labels: Bug

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  3.8.3

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
* type Exclude keyof is not assignable to type Exclude Exclude keyof
* exclude idempotent

**Code**

```ts
const f = <T>(arg: Omit<T, 'field'>) => {
    const a = { ...arg, field: 'value' };
    const { field, ...b } = a;
    const c: Omit<T, 'field'> = a;
    const d: Omit<T, 'field'> = b;
    return { c, d };
};
```

**Expected behavior:**
Code compiles.

**Actual behavior:**
Compilation error on `d` initialization (but not on `c` initialization):
```
tmp.ts:5:11 - error TS2322: Type 'Pick<Pick<T, Exclude<keyof T, "field">> & { field: string; }, Exclude<Exclude<keyof T, "field">, "field">>' is not assignable to type 'Pick<T, Exclude<keyof T, "field">>'.
  Type 'Exclude<keyof T, "field">' is not assignable to type 'Exclude<Exclude<keyof T, "field">, "field">'.
    Type 'keyof T' is not assignable to type 'Exclude<keyof T, "field">'.

5     const d: Omit<T, 'field'> = b;
            ~


Found 1 error.
```

**Playground Link:**  [Playground Link](https://www.typescriptlang.org/play/?ssl=8&ssc=1&pln=1&pc=1#code/MYewdgzgLgBAZjAvDAPAFQHwAoCGAnAcwC4YB5AWwEsp0AaGAcjkoFMAbAEwYwEokMYAbwBQMMTFCRYOJEJgA6RfgL1m7DiQYA3HGwCuLBjAC+AblHjJ0OWs71F8gEYnZOc+InhrwEhWp1GWy4BZDcLMStYDTIqGjR6JlZObllHd3E8Fig9PDA5YHoOE3MzYSA)

**Related Issues:** I did not find other related issues.
Repository: terminal
Issue: Feature request: Parenthesis matching in text
Labels: Area-TerminalControl,Area-Extensibility,Product-Terminal,Issue-Task

Wonderful work. This might finally persuade some of us Mac diehards to move to Windows! 
**Request**: Create a new feature to allow the user to invoke parenthesis matching in text by double clicking on a parenthesis, anywhere in the terminal. If a match exists, the text from the clicked  parenthesis until the matching parenthesis gets selected. If no match exists, the parenthesis that the user clicked on, is shown in red, or the terminal blinks. This is similar to xemacs' behavior, when initialized with the correct options.
Repository: vscode
Issue: vscode://file/ URI not working from chromium
Labels: bug,upstream,linux,snap

<!-- ⚠️⚠️ 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.43.2
- OS Version: Ubuntu 18.04
- Chromium version: 80.0.3987.163 (installed from snap in Ubuntu Software)

Steps to Reproduce:

1. Click on vscode://file/xxx link in chrome

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
Repository: flutter
Issue: EventChannel.setStreamHandler(null) should cancel previous Stream Handler
Labels: platform-android,engine,c: proposal,P3,team-android,triaged-android

## Use case

Plugin may publish continuous values using an EventChannel.

As plugins go through lifecycle, they should clean up event channels in the same way that method call handlers are cleaned up: By setting the handler on the channel to null. 

EventChannel's do pose a little more complexity as they have a `onCancel` method which should help to clear up any used memory.

Given a V2 plugin, a setup & clean up method currently could look like this:
``` java
  @Override
  public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
    aEventChannel = new EventChannel(messenger, CHANNEL_NAME);
    aEventChannelHandler = new StreamHandler() { ... };
    aEventChannel.setStreamHandler(aEventChannelHandler);
  }

  @Override
  public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
    aEventChannelHandler.onCancel(null);
    aEventChannel.setStreamHandler(null);
    aEventChannelHandler = null;
  }
```

## Proposal

When setting the StreamHandler to `null`, the framework should internally call `onCancel`, so that above method becomes:

``` java
  @Override
  public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {
    aEventChannel = new EventChannel(messenger, CHANNEL_NAME);
    aEventChannel.setStreamHandler(new StreamHandler() { ... });
  }

  @Override
  public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) {
    aEventChannel.setStreamHandler(null);
  }
```

From a glimpse in the code, `DartMessenger.setMessageHandler()` should maybe be adjusted to read like this:

```
  @Override
  public void setMessageHandler(
      @NonNull String channel, @Nullable BinaryMessenger.BinaryMessageHandler handler) {
    if (handler == null) {
      Log.v(TAG, "Removing handler for channel '" + channel + "'");
      BinaryMessenger.BinaryMessageHandler previous = messageHandlers.remove(channel);
      if (previous != null) {
        previous.onCancel();
      }
    } else {
      Log.v(TAG, "Setting handler for channel '" + channel + "'");
      messageHandlers.put(channel, handler);
    }
  }

```
Repository: flutter
Issue: [animations] [proposal] OpenContainer not inherit closed/openColor from app theme
Labels: c: new feature,package,c: proposal,p: animations,team-ecosystem,P3,triaged-ecosystem

<!-- 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 our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

I'm using the amazing `animations` Flutter package and it works as expected.
The only one thing that I cannot understand is why we need to specified properties like `closedColor` or `openColor` that has a default value (`Colors.white` in this case).
This is my code snippet that use `OpenContainer` widget:
```dart
return OpenContainer(
                      closedColor: Theme.of(context).scaffoldBackgroundColor,
                      closedShape: const RoundedRectangleBorder(),
                      tappable: true,
                      transitionType: ContainerTransitionType.fade,
                      closedBuilder:
                          (BuildContext _, VoidCallback openContainer) {
                        return MyHomeCard(
                            title: _getCardTitle(tour));
                      },
                      openBuilder: (BuildContext context, VoidCallback _) {
                        final String _currentLocale =
                            AppLocalizations.of(context).locale.languageCode;
                        return TourPage(
                          tour: tour,
                          langCode: _currentLocale,
                        );
                      },
                    );
```

## Proposal

In my opinion in most of cases these two colors are comparable to `backgroundColor` widgets property. 
It will be beautiful if, as other widgets (like ListView, Center, etc..), by default animations widgets automatically inherit the closed/openColor from the app theme. 
Using this strategy we can avoid unnecessary code as `Theme.of(context).scaffoldBackgroundColor` due to te fact that colors are inherited by the default app theme. 
I think that this behaviour can improve developers themes usage and it's more Flutter oriented.
Thank you
Repository: TypeScript
Issue: Add feature to re-declare variable
Labels: Suggestion,Awaiting More Feedback

## Search Terms
redeclare variable, re-declare variable, augment variable, merge variable declaration, declaration override

## Suggestion

define a `redeclare` keyword which allows re-declaration of a typed variable.
e.g.
```typescript
redeclare var foo: {
  prop: string
};
```

## Use Cases

<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->

When an external library declares a variable, e.g.
```typescript
declare var x: {
  prop: string;
};
```

The `redeclare` keyword can be used somewhere else to override the declaration:
```typescript
redeclare var x: number;
```

or augment it:
```typescript
redeclare var x: typeof x & {
  augmentedProp: number;
}
```

This would allow to type the pure JavaScript case of:
```javascript
// lib.js
var x = {
  prop: "foo"
};

// app.js
x.augmentedProp = 10;

console.log(x.prop, x.augmentedProp);
```
## Examples

<!-- Show how this would be used and what the behavior would be -->

> ```typescript
> declare var URLSearchParams: {
>     prototype: URLSearchParams;
>     new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
>     toString(): string;
> };
> ```
> defined in [`lib.dom.d.ts`](https://github.com/microsoft/TypeScript/blob/712967b2780e8ecd28f8f1e2e89c1ebd2592bb4c/lib/lib.dom.d.ts#L16156)

to extend the variable with additional static methods to `URLSearchParams` is not possible currently (see [here](https://stackoverflow.com/questions/60856144/how-to-augment-a-global-variable-type-with-static-methods)).

The feature can be used in the following way:
```typescript
redeclare var URLSearchParams: typeof URLSearchParams & {
  fromObject(obj: object): URLSearchParams;
};

if (!URLSearchParams.fromObject) {
  URLSearchParams.fromObject = function(obj: object): URLSearchParams { /* implementation */  }
}
```

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: TypeScript
Issue: Exposing canonical filename logic
Labels: API

## Search Terms
canonical filename

## Suggestion
I'd like to re-use the get-canonical-filename logic:
https://github.com/microsoft/TypeScript/blob/d68295e74e4897f588e73edf72089eb238904f02/src/compiler/core.ts#L1906-L1909

## Use Cases
I want to use `ts.resolveModuleName` and the accompanying `ts.createModuleResolutionCache` to resolve `ImportDeclaration`s (as per [this comment's suggestion](https://github.com/microsoft/TypeScript/issues/28276#issuecomment-435016356)).
`createModuleResolutionCache` requires a parameter `getCanonicalFileName`. I think it makes the most sense to use the same logic as the compiler itself here, which is the function I linked above.

I *could* just copy-and-paste this function, but that *feels* wrong and might lead to discrepancies in the future if [`toFileNameLowerCase`](https://github.com/microsoft/TypeScript/blob/d68295e74e4897f588e73edf72089eb238904f02/src/compiler/core.ts#L1407-L1445) (which is not exposed either) is ever updated.

## Examples
```ts
const cache = ts.createModuleResolutionCache(currentDirectory, ts.createGetCanonicalFileName(true/false));
const resolved = ts.resolveModuleName(name, file, compilerOptions, host, cache);
```

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: PowerToys
Issue: Queue files automatically on copy/move to same target
Labels: Idea-New PowerToy

Maybe I'm asking too much of PowerToys but I would really like to see a feature like this:

Make it possible to automatically queue files when copying different files to the same harddisk.

I just hate that Windows itself is just starting to copy everything simultaneously. This is ok if the targets are different devices. But if everything copied goes to the same target this causes performance issues. 

I know there is tooling like "TeraCopy" out there which does exactly that. But I rather trust an open source tool managed by Microsoft than some tool from some guy.
In a perfect world this functionality would already be part of Windows 10, but my Feedback request didn't get any response yet.
Repository: go
Issue: x/tools/gopls: show progress report when gopls is downloading a module
Labels: FeatureRequest,gopls,Tools

@ardan-bkennedy suggested that we should try to use the progress reporting functionality of LSP to indicate when a module is being downloaded by go/packages. Otherwise, we just have a slow save that don't give the user any indication that `gopls` is communicating with the network.

This will be tricky because only go/packages knows that it's downloading a module. My current best guess at how to do this is to put something in the config's Logf function...or maybe use a trick like packagesinternal?
Repository: node
Issue: doc: Should `runMain()` and `globalPaths` of module add in doc?
Labels: doc,module

By chance, I find `runMain()` method was used in [babel-node](https://github.com/babel/babel/blob/master/packages/babel-node/src/_babel-node.js#L207) but it can't be found in API.

I also checked issue and code, but nothing. 

```bash
$ git grep runMain $(git rev-list --all doc/api/modules.md) -- doc/api/modules.md
# nothing

$ git grep globalPaths $(git rev-list --all doc/api/modules.md) -- doc/api/modules.md
# nothing

$ git grep builtinModules $(git rev-list --all doc/api/modules.md) -- doc/api/modules.md
534c204e223d85c44cd6b1b642f29143095077f6:doc/api/modules.md:### `module.builtinModules`
534c204e223d85c44cd6b1b642f29143095077f6:doc/api/modules.md:const builtin = require('module').builtinModules;
a220202a47ee87d1ef91fa8f65a3e048f298b7c1:doc/api/modules.md:### `module.builtinModules`
```

However [the `builtinModules` property near `globalPaths`](https://github.com/nodejs/node/blob/master/lib/internal/modules/cjs/loader.js#L176-L182) can be found. Should `runMain()` and `globalPaths` of module add to doc? If needed, I would be pleased to write them.