sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: [FR] hub uses default github branch
Labels: triaged,enhancement,module: hub

Currently hub uses the master branch always. But on repos with a custom default branch, wouldn't it be nicer if we use that?

cc @ailzhang
Repository: go
Issue: x/pkgsite: pre-load docker images for CI
Labels: Builders,NeedsInvestigation,pkgsite

We should pre-load docker images for CI, so that they don't timeout. Example:

https://source.cloud.google.com/results/invocations/c1541d77-7aba-4344-983b-8ea400cad638/targets/golang%2Fpkgsite%2Fgcp_ubuntu%2Fpresubmit/log

/cc @findleyr
Repository: material-ui
Issue: [Localization] Add test cases
Labels: test,ready to take

## Summary 💡

Recently with https://github.com/mui-org/material-ui/pull/22293 I broke the locales, but no tests caught this. We should cover the localization with tests, so this won't happen again.
Repository: go
Issue: cmd/objdump: can't read from a pipe
Labels: NeedsFix,compiler/runtime

`cmd/internal/objfile.Open` requires that the passed file is seekable, which prevents using a pipe to pass in an object to analyze.

e.g.,

```bash
$ cat ../bin/go | go tool objdump /dev/stdin
objdump: open /dev/stdin: unrecognized object file
```

On the other hand, connecting the file directly does work:

```bash
$ go tool objdump /dev/stdin < ../bin/go
... normal output ...
```

In these minimal examples, it is trivial to switch to the second form, but more complex programs make need to manually buffer input to a file before passing to the tool. This is annoying, though not the end of the world.

This also affects other tools using this open (addr2line, nm, etc).

Without major changes to object parsing, probably the way to fix this is to just buffer the entire input into memory, which is of course not great. I'm not sure this is worth fixing immediately, though it could at least use a better error message.

cc @cherrymui
Repository: rust
Issue: Should there be a `Once::try_call_once`
Labels: T-libs-api,C-discussion

I wonder if `Once` should have a `try_call_once` method for failable initialization, which accepts a `FnOnce() -> Result<(), E>`.

`OnceCell` has a `get_or_try_init`  method which can fail, so I think it would make sense for `Once` to have a failable initialisation method as well. Note that due to lack of failable init in `Once` right now, `OnceCell` currently need to rely on `pub(crate)` method to posion the `Once` for `get_or_try_init`.

cc #33577

@rustbot modify labels: +T-libs
Repository: pytorch
Issue: c10::string_view pybind11 custom type caster.
Labels: triaged,enhancement,module: pybind

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->

We have custom [type casters for pybind11](https://github.com/pytorch/pytorch/blob/11a40410e755b1fe74efe9eaa635e7ba5712846b/torch/csrc/utils/pybind.h#L26).

pybind11 has support for std::string_view from C++17 onward and we've seen good performance improvements using that for NLP preprocessing, but PyTorch restricts itself to C++14. But luckily PyTorch has c10::string_view. To benefit from this for Python binding code written with pybind11 we need custom type caster to support c10::string_view.

Luckily [pybind11 already has the necessary code](https://github.com/pybind/pybind11/blob/56df3c4649170dba69662271693f3352beb37796/include/pybind11/cast.h#L1310).

## Motivation

string_view prevents a string copy when calling into a Python function for read-only purposes such as when passing a string to a vocabulary.

## Pitch

Landing this type caster allows us to write efficient NLP operators in torchtext that avoid the overhead of converting a [Python string to a std::string via a copy](https://github.com/pybind/pybind11/blob/3618bea2aadc220055ed0f00ac113909da7b9466/include/pybind11/pytypes.h#L936).

## Alternatives

We could roll our own string abstraction that has 0 FFI cost similar to how numpy has chararrays.

## Additional context

Preliminary benchmarks show us about a 20% improvement when using std::string_view in the context of [our Vocab microbenchmarks](https://github.com/pytorch/text/blob/master/benchmark/benchmark_experimental_vocab.py).
Repository: youtube-dl
Issue: certain video won't download when downloaded with a playlist/channel
Labels: question

Hey,

I've been running with this issue for several years now.

My problem is that when I try to download an entire youtube channel (as .m4a since i'm downloading music channels only) some of the songs i try to download won't download with this command :

youtube-dl -o "musiques\%%(title)s.%%(ext)s" -f 140 --download-archive downloadedlist.txt --no-post-overwrites -ci "https://www.youtube.com/channel/UCxsYR3_7CKZeRfdJpqGxmdw"

The entire channel should start to be downloaded but i'm left with only one song from this artist (not only with this artist, that's a recurrent problem i've been running through but that's one of the most revelant channel I can use to illustrate my issue).

I've already tried downloading a more recent version of youtube-dl or just running the update command but that won't help.
Also tried downloading a song alone (that won't normally download with the rest of the channel) like : 
youtube-dl -o "musiques\%%(title)s.%%(ext)s" -f 140 --download-archive downloadedlist.txt --no-post-overwrites -ci "https://www.youtube.com/watch?v=HoTYytnjCb0"

And it does download itself ! but what i'm really looking for is a solution that download the entire channel with the only need of running a single command.

I wonder if this issue is because of a copyright claim by the artist or so.
And if it is, is there any way to bypass this ?
Repository: go
Issue: x/pkgsite: add option to group/filter importers
Labels: NeedsInvestigation,FeatureRequest,pkgsite

<!--
Please answer these questions before submitting your issue. Thanks!
-->
 
### What is the URL of the page with the issue?
one example is https://pkg.go.dev/github.com/Azure/go-ansiterm?tab=importedby
 
 
### What is your user agent?

Not applicable
 
### Screenshot
 
Not applicable 
 
 
### What did you do?
 
View a package's `importedby` tab
 
 
### What did you expect to see?
 
Similar importers grouped, or an option to filter. For the example url, I'd like to see one of docker and one of moby. 

The end goal is that unique importers are easier to find.

This could be realized with 
 * a tree view grouping things that seem to be related, defaulting to collapsed
 * or a filter field, allowing positive or negative matches
    * positive: enter `term` to show only packages with term in their import path
    * negative: enter `-docker` to hide everything with docker in the import path
 
### What did you see instead?

A long list that might be 90% duplication (forks of docker and moby).

For many packages, this isn't an issue. But for ones imported by something else that's extremely popular (and thus having many forks) the importedby list gets diluted by duplicates.

Examples would be any package used by docker, k8s, hashicorp products, etc.
Repository: storybook
Issue: Unable to set environment variables
Labels: feature request,has workaround,core

**Describe the bug**

I'm setting up my project to use [env-cmd](https://www.npmjs.com/package/env-cmd) to set environment variables using different `.env.{environment}` files (ex. `.env.dev`, `.env.staging`, etc). Unfortunately storybook isn't loading my environment variables. I've also tried setting environment variables in the command when running `start-storybook` (ex. `REACT_APP_TEST_VAR=testing start-storybook -p 9009 -s public`), and storybook isn't picking up that environment variable either.

**To Reproduce**

Steps to reproduce the behavior:

Setting env vars in the command:
 
1. Add `console.log(process.env.REACT_APP_TEST_VAR)` to a js story file
2. Run `REACT_APP_TEST_VAR=testing start-storybook -p 9009 -s public`
3. In the console, you should see `undefined`

Setting env vars with `env-cmd`:

1. Install `env-cmd` (ex. `yarn add env-cmd`)
2. Add `console.log(process.env.REACT_APP_TEST_VAR)` to a js story file
3. Create a `.env.dev` file in the same directory as `package.json` that has the line `REACT_APP_TEST_VAR=testing`
4. Run `env-cmd -f .env.dev start-storybook -p 9009 -s public`
5. In the console, you should see `undefined`


**Expected behavior**

I expect `process.env.REACT_APP_TEST_VAR` to be set to `testing`, and for `testing` to get logged out in the console.

**System:**

Environment Info:

  System:
    OS: macOS 10.15.6
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 13.12.0 - ~/.nvm/versions/node/v13.12.0/bin/node
    Yarn: 1.19.1 - /usr/local/bin/yarn
    npm: 6.14.4 - ~/.nvm/versions/node/v13.12.0/bin/npm
  Browsers:
    Chrome: 84.0.4147.135
    Safari: 13.1.2
  npmPackages:
    @storybook/preset-create-react-app: ^3.1.4 => 3.1.4
    @storybook/react: ^6.0.6 => 6.0.7

**Additional context**

A similar issue was brought up in https://github.com/storybookjs/storybook/issues/5166, which is now closed.
Repository: three.js
Issue: EXRLoader - non-image parts
Labels: Enhancement,Loaders

I am not able to parse the following EXR file with EXRLoader. It has the bit 9 of flags set - “long names”, and the bit 10 - "nonimage parts". The compression is ZIP and is already supported by EXRLoader.

Could you implement the missing features?

https://drive.google.com/file/d/1fuQXEjaiLu9tUibvVdQKwlr0W289SzKO/view?usp=sharing
Repository: pytorch
Issue: Exploring supporting some cases of `__bool__` on Proxy
Labels: triaged,module: fx

From @bradleyhd: 
> Would anyone here mind speaking about the reasons behind the __bool__ impl of Proxy always raising an Exception and the risks of not doing things this way? I'm trying to hack my way through symbolically tracing a dper exported module and am encountering this left and right, e.g. with every use of the "in" keyword, casts like list(tensor_var.size()), etc

Conceivably it's possible to check that we do not jump on the boolean (like we do for `__iter__`) using some bytecode introspection. I'm not sure if this would actually work, but it would be worth diving into some code examples to see if it is possible.

Even if it is possible, we should weigh whether relying on particular bytecode patterns will be too fragile.


cc @ezyang @SherlockNoMad
Repository: rust
Issue: Transmute from one function pointer to another produces "can't transmute zero-sized type"
Labels: A-diagnostics,T-compiler,C-bug,A-raw-pointers,A-zst

<!--
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.
-->

Compiling the following cursed code:

```rust
use std::ffi::CStr;

#[repr(C)]
struct ObjCObject {
  isa: isize
}

#[repr(transparent)]
#[derive(Clone,Copy)]
struct Selector(*const u8);

#[link(name = "objc")]
extern "C" {
  fn sel_registerName(name: *const u8) -> Selector;
  fn objc_getClass(name: *const u8) -> Option<&'static ObjCObject>;
  fn objc_msgSend(); // see below
}

fn main() {
  #[link(name = "Foundation", kind = "framework")]
  extern {}

  unsafe {
    let url_class = objc_getClass("NSURL\0".as_ptr()).unwrap();
    let description_sel = sel_registerName("description\0".as_ptr());
    let description_method = std::mem::transmute::<_, unsafe extern "C" fn(_, _) -> _>(objc_msgSend);
    let description_obj: *const ObjCObject = description_method(url_class, description_sel);

    let utf8_sel = sel_registerName("UTF8String\0".as_ptr());
    let utf8_method = std::mem::transmute::<_, unsafe extern "C" fn(_, _) -> _>(objc_msgSend);
    let utf8_ptr = utf8_method(description_obj, utf8_sel);
    println!("{}", CStr::from_ptr(utf8_ptr).to_string_lossy());
  }
}
```

Produces the following opaque error:

```
error[E0591]: can't transmute zero-sized type
  --> <anon>:26:30
   |
26 | ...hod = std::mem::transmute::<_, unsafe extern "C" fn(_, _) -> _>(objc_...
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: unsafe extern "C" fn() {objc_msgSend}
   = note: target type: unsafe extern "C" fn(&ObjCObject, Selector) -> *const ObjCObject
   = help: cast with `as` to a pointer instead
```

I'm not exactly sure why `transmute` won't let me go from one function pointer type to another, but even if that restriction remains, the error message could be more helpful. (My workaround was to use `as isize` before invoking `transmute`.)

### Meta
<!--
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.
-->

`rustc --version --verbose`:
```
rustc 1.47.0-nightly (5180f3da5 2020-08-23)
binary: rustc
commit-hash: 5180f3da5fd72627a8d38558ad1297df38793acd
commit-date: 2020-08-23
host: x86_64-apple-darwin
release: 1.47.0-nightly
LLVM version: 11.0
```
Repository: flutter
Issue: Add-to-app sample isn't straightforward to execute
Labels: platform-ios,d: examples,a: quality,a: existing-apps,P3,team-ios,triaged-ios

In order to run the sample app at https://github.com/flutter/samples/tree/master/add_to_app/ios_fullscreen I had to perform the following steps before the app would build and run on device:
```sh
cd ../flutter_module
sed -i 's/dev.flutter.example.flutterModule/dev.flutter.gaaclarke.flutterModule/g' pubspec.yaml
flutter build ios
cd -
pod install
```

I had to replace the module name because i couldn't register the one in the repo.  I had to "flutter build ios" because the podhelper.rb file was missing.  I had to run pod install because it wasn't finding the xcconfig files.

xcode version: 12.0 beta 5

cc @jmagman @xster
Repository: rust
Issue: rustdoc: please provide way to filter out out-of-document included resources
Labels: T-rustdoc,C-feature-request

I run `cargo doc` quite a lot because I like to have documents locally.  This means I can work without an internet connection; it means docs load very quickly; it means they are the versions I have selected; and it provides better privacy because it means no-one outside my systems is seeing which docs I load when.

However, there is a fly in this ointment: the docs sometimes contain offsite links.  For example, my copy of the top-level page for `rocket` contains these:
```
<link rel="shortcut icon" href="https://rocket.rs/v0.4/images/favicon.ico">
<img src='https://rocket.rs/v0.4/images/logo-boxed.png' alt='logo'>
```
The top-level of `rocket_cors` contains these:
```
<img src="https://travis-ci.org/lawliet89/rocket_cors.svg" alt="Build Status" />
<img src="https://img.shields.io/github/tag/lawliet89/rocket_cors.svg" alt="Repository" />
<img src="https://img.shields.io/crates/v/rocket_cors.svg" alt="Crates.io" />
```

These are just two examples and I don't mean to criticise these crates.  I don't think it would be sensible to try to solve my issue by asking every crate to refrain from using these kind of badges.  (Although rocket's favicon and logo could surely be in the crate itself.)

The consequences are: if I don't have an internet connection, these docs don't load properly.  (They load eventually but only after an http timeout.)  If I do have an internet connection, these references tell shields.io and travis what I am doing, and I would prefer to avoid that.

I think instead that it would be best for there to be a way to ask rustdoc to eliminate all offsite resource inclusions in the generated outputs.  This would probably best be done at late in the output stage, so that it is comprehensive.

As a stretch goal it would be nice for offsite links to be marked somehow.  Thanks for your attention.
Repository: pytorch
Issue: Make `torch.Generator` picklable
Labels: feature,module: serialization,triaged

## 🚀 Feature
It would be nice to make `torch.Generator` picklable to checkpoint and restore random number generator states, as well as enabling `copy.deepcopy` of `Module`s and other classes that store the random state.

## Motivation
I'm currently rewriting https://github.com/Yusufma03/pfrnns, which samples particle candidates from a normal distribution. Rather than fixing the global random seed with `torch.random.manual_seed`, I would like to store the random number generator within the model. However, because `torch.Generator` is currently not picklable, the `Module` cannot be easily copied with `copy.deepcopy`.
Repository: terminal
Issue: Add test for null Profile.StartingDirectory
Labels: Product-Terminal,Issue-Task,Area-CodeHealth

# Description of the new feature/enhancement

`"startingDirectory": null` has significant value. It inherits the starting directory of its parent process.

There is no testing today that covers this case.
Repository: pytorch
Issue: Some largeCUDATensorTest fails with OOM when running with the entire test suit, but not when running standalone
Labels: module: tests,triaged

As discussed in https://github.com/pytorch/pytorch/pull/43257, when working on https://github.com/pytorch/pytorch/pull/43092, I observed that after I changed some unrelated things, the `test_reduction_split` starts to fail with OOM. The failure only happens when running this test together with other tests. When ran standalone, this test does not fail. This might suggest that the test suite is holding CUDA memory between tests, which it probably shouldn't do.

cc @mruberry @VitalyFedyunin
Repository: pytorch
Issue: [FX] List unpacking is broken
Labels: triaged,module: fx

List unpacking in Python calls `__iter__` of the object being unpacked. We introspect the bytecode to look for UNPACK_SEQUENCE bytecodes:

https://github.com/pytorch/pytorch/blob/0bf27d64f49cb7b801a7be3bde08ab2f5ca7448d/torch/fx/proxy.py#L59

But that is not sufficient, there is a callchain within the Python interpreter itself that calls `__iter__` on the object. Positional arguments are passed as an iterable (tuple or list etc) in Python. So the stack before a function call looks like [callable, args, kwargs]. In the interpreter, there's a call to PySequence_Tuple: https://fburl.com/t8g3ws5m which then ultimately calls PyObject_GetIter: https://fburl.com/8867rz7r which ultimately calls the __iter__ function on the object: https://fburl.com/k7m45wdx. Note that the previous is the case in python 3.7 (the one I tested), it's likely different in different versions

In the case of list unpacking like `f(*args)`, the `args` object directly appears on the stack before the call bytecode, so the interpreter itself ends up calling `__iter__` on the object. This object could be a `Proxy` in certain scenarios


```
import torch
import torch.nn as nn

class InnerModule(nn.Module):
    
    def __init__(self):
        super().__init__()
        
    def forward(self, *args):
        return torch.rand(4)
        
class OuterModule(nn.Module):
    
    def __init__(self, inner):
        super().__init__()
        self.inner = inner
        
    def forward(self, *args):
        return self.inner.forward(*args)

import torch.fx

inner = InnerModule()
outer = OuterModule(inner)

gm = torch.fx.symbolic_trace(outer)

=====

Traceback (most recent call last):
  File "repro.py", line 26, in <module>
    gm = torch.fx.symbolic_trace(outer)
  File "/data/users/jamesreed/pytorch/torch/fx/symbolic_trace.py", line 154, in symbolic_trace
    graph.output(delegate.create_arg(fn(*args)))
  File "repro.py", line 19, in forward
    return self.inner.forward(*args)
  File "/data/users/jamesreed/pytorch/torch/fx/proxy.py", line 61, in __iter__
    self._no_control_flow()
  File "/data/users/jamesreed/pytorch/torch/fx/proxy.py", line 64, in _no_control_flow
    raise TraceError('symbolically traced variables cannot be used as inputs to control flow')
torch.fx.proxy.TraceError: symbolically traced variables cannot be used as inputs to control flow
```

Can we further introspect the bytecode stream to detect such a callsite?

cc @ezyang @SherlockNoMad
Repository: youtube-dl
Issue: [UFLASHTV] Support
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.07.28. 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.07.28**
- [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.
-->

http://www.uflash.tv/video/45609/flash-big-perky-tits-in-car

## 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
youtube-dl cannot address this site because needing script.
This issue resolves it,  using PhantomJS.
Sorry for not using git because I cannot use  it in my env.
[support-uflash.zip](https://github.com/ytdl-org/youtube-dl/files/5133812/support-uflash.zip)