sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: vscode
Issue: VS Code was lost on shutdown with pending update
Labels: bug,install-update,windows

It was the second time ,it happend.
I download VScode's update patch when I was coding , and then  shut down the computer and forgot to update it. 
Next day I turn the computer on and  can't find VScode anywhere , all the file was empty.

- OS Version : Windows 10 Home
Repository: go
Issue: proposal: spec: permit goto over declaration if variable is not used after goto label
Labels: LanguageChange,Proposal,LanguageChangeReview

Right now you get this error: ` goto SKIP jumps over declaration of queryArgs`

```
if len(s.standardDays) == 0 {
goto SKIP
}

queryArgs := []interface{}{}
//Do stuff with queryArgs

SKIP:
//Do stuff here BUT queryArgs is not used ANYWHERE from SKIP onwards
```

Currently I have to refactor all my code like this (including placing `var err error` at the top):

```
var queryArgs []interface{}

if len(s.standardDays) == 0 {
goto SKIP
}

queryArgs = []interface{}{}
//Do stuff with queryArgs

SKIP:
//Do stuff here BUT queryArgs is not used ANYWHERE from SKIP onwards
```
Repository: go
Issue: runtime: use wrappers for op= map operations
Labels: Performance,NeedsInvestigation,compiler/runtime

CL 120255 made mapdelete zero the value all the time, to make sure op= map operations work correctly.
Probably we should do wrapper functions for op= operations so we don't need to zero during all map deletes.

@vkuzmin-uber 
@martisch
Repository: go
Issue: runtime: g0 stack.lo is sometimes too low
Labels: NeedsFix,compiler/runtime

In cgo mode for UNIX platforms, we compute the g0 stack bounds by querying the stack size from `pthread_get_stacksize`, subtracting that from the current SP in `mstart`, and adding a 1k buffer. However, on my Linux laptop, over 4k of the stack has already been consumed by the time we reach `mstart`, so the runtime sets the bottom of the g0 stack to be below the mapped memory. As a result, if we actually overflow the g0 stack, we get a segfault instead of a useful message with a traceback.

We should use `pthread_get_stack` instead to get both stack bounds.

Discovered when writing a test of overflowing the g0 stack for #21382, which I had assumed would pass on linux/amd64 but didn't.
Repository: pytorch
Issue: [Caffe2] Dose caffe2 support the function similar to itersize of caffe 
Labels: caffe2

I don't want to decrease the batch size with limited gpus, so does caffe2 support itersize? The caffe2 doc is incomplete. And I have googled some keywords, but got nothing. I hope you can give me a hand! thanks for your help!
Repository: flutter
Issue: Template for flutter create cupertino
Labels: c: new feature,framework,f: cupertino,P2,team-design,triaged-design

A flutter create template that doesn't import material
Repository: vscode
Issue: Dragging files and folders onto an empty explorer ignores the files
Labels: bug,file-explorer

re #52292

* in the finder select a file and a folder
* drop them onto an empty explorer
* 🐛 only the folder is opened, the file is being ignored
Repository: opencv
Issue: Unable to Play rtsp stream using cv::cudacodec::VideoReader
Labels: priority: low,category: gpu/cuda (contrib)

I am using Opencv 3.1.0, ffmpeg gpu, and nvidia video codec sdk 8.2.15.

ffmpeg version N-91329-g830695b Copyright (c) 2000-2018 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.6) 20160609 configuration: --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --enable-shared --disable-static

`
OpenCV Error: Gpu API call (CUDA_ERROR_FILE_NOT_FOUND [Code = 301]) in CuvidVideoSource, file /usr/deepak/ffmpeg-gpu/opencv/modules/cudacodec/src/cuvid_video_source.cpp, line 66
`

`
OpenCV Error: Unsupported format or combination of formats (Unsupported video source) in nextFrame, file /usr/deepak/ffmpeg-gpu/opencv/modules/cudacodec/src/video_reader.cpp, line 143
terminate called after throwing an instance of 'cv::Exception'
`

`
  what():  /usr/deepak/ffmpeg-gpu/opencv/modules/cudacodec/src/video_reader.cpp:143: error: (-210) Unsupported video source in function nextFrame
`

I looked at the solution https://github.com/opencv/opencv/issues/9739 and had exactly the same issue. Unfortunately, the problem wasn't resolved using the given solution.

As mentioned in the link above I had the same issue that,
ffmpeg detected the stream as YUVJ420P so I made the changes mentioned in the link.
However I still get the same error.

When I run gdb on opencv/modules/cudacodec/src/ffmpeg_video_source.cpp,

`
(gdb) n
OpenCV Error: Gpu API call (CUDA_ERROR_FILE_NOT_FOUND [Code = 301]) in CuvidVideoSource, file /usr/deepak/ffmpeg-gpu/opencv/modules/cudacodec/src/cuvid_video_source.cpp, line 66
[New Thread 0x7fffe1328700 (LWP 31246)]
[New Thread 0x7fffe0b27700 (LWP 31247)]
[New Thread 0x7fffdba98700 (LWP 31248)]
[Thread 0x7fffdba98700 (LWP 31248) exited]
22	        if (!d_reader->nextFrame(d_frame))
`

`
(gdb) n
OpenCV Error: Unsupported format or combination of formats (Unsupported video source) in nextFrame, file /usr/deepak/ffmpeg-gpu/opencv/modules/cudacodec/src/video_reader.cpp, line 128
terminate called after throwing an instance of 'cv::Exception'
  what():  /usr/deepak/ffmpeg-gpu/opencv/modules/cudacodec/src/video_reader.cpp:128: error: (-210) Unsupported video source in function nextFrame
`

Any help would be greatly appreciated!!!
Repository: vue
Issue: Transitions classes are added after `before-enter` or `before-leave`
Labels: transition

### Version
2.5.16

### Reproduction link
[https://codesandbox.io/s/zq5mw2zk9x](https://codesandbox.io/s/zq5mw2zk9x)

### Steps to reproduce
1. Open browser console (to trigger the debugger)
2. Click on "Page 2"
3. Inspect elements inside `<main`>`

### What is expected?
The two children `<sections>` are supposed to have the transitions classes.

### What is actually happening?
The two children`<sections>` are already added but without any transition class, which are added on next tick. So the new `<section>` is visible on top on the old one for 1 frame, causing a flickering effect.

---
Remove this fix in `App.vue`:

```css
main > :first-child {
  z-index: 1; /* Prevent flickering on first frame when transition classes not added yet */
}
```

And navigate through the app to see the flicker effect.

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: rust
Issue: s390x intrinsic has incorrect return type - stdsimd cross-link
Labels: O-SystemZ

On `s390x-unknown-linux-gnu` `coresimd` fails to compile due to errors in the following floating-point vector functions: abs, cos, fma, sin, sqrt.

The errors are all of the form:

```shell
Intrinsic has incorrect return type!
void (<16 x float>*, <16 x float>*, <16 x float>*, <16 x float>*)* @llvm.fma.v16f32
LLVM ERROR: Broken function found, compilation aborted!
```

This is a cross-link to the `stdsimd` issue: https://github.com/rust-lang-nursery/stdsimd/issues/501
Repository: go
Issue: x/mobile: unexpected fault address 0x30ad1040
Labels: OS-Android,NeedsInvestigation,mobile

Please answer these questions before submitting your issue. Thanks!


### What version of Go are you using (`go version`)?

go version go1.10.3 linux/amd64
### Does this issue reproduce with the latest release?

Yes
### What operating system and processor architecture are you using (`go env`)?
linux amd64 and android 7.1.1

### What did you do?
I'm trying to run a code which ran successfully on my computer but keeps failing on android.
The error message doesn't give enough information. I need some information to know what is going on with the error. I've tested the same code several times on my computer and It doesn't fail.
Android code: https://github.com/C-ollins/dcrandroid/tree/spv_bug
Golang code: https://github.com/C-ollins/btcwallet/tree/spv_bug


### What did you expect to see?
A successful run

### What did you see instead?

Error log: https://bpaste.net/show/61c2f48d8d49
Repository: neovim
Issue: API: nvim_buf_lines_event after checktime ?
Labels: api,needs:design

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`: NVIM v0.3.1-96-g883858269
- Vim (version: ) behaves differently? No
- Operating system/version: MacOS
- Terminal name/version: ITerm2
- `$TERM`: xterm-256color

### Steps to reproduce using `nvim -u NORC`

``` vim

async function setup(nvim) {
  let id = await nvim.channelId
  let buffer = await nvim.buffer
  let lines = await buffer.lines
  let cb = (buf, tick, firstline, lastline, linedata, more) => {
    console.error('----------')
    console.error('result:', tick, firstline, lastline, linedata, more)
  }
  buffer.listen('lines', cb)
  buffer.listen('detach', buf => {
    console.error('detached')
  })
}

module.exports = (plugin) => {
  let {nvim} = plugin
  plugin.registerAutocmd('VimEnter', setup.bind(null, nvim), {pattern: '*'})
}
```
Open a file and change the file outside vim and run `:checktime`, the new content is loaded, but no `nvim_buf_detach_event` is fired,  the `nvim_buf_detach_event` is fired when I use `:edit`.

### Actual behaviour

No `nvim_buf_detach_event` fired.

### Expected behaviour

Should have `nvim_buf_detach_event` fired.
Repository: pytorch
Issue: [Caffe 2] Does caffe2 support Galaxy 5S with Android 6? 
Labels: caffe2

I convert the detectron model to .PB format, and it runs on Google Pixel Android 7 & 8, but not Galaxy 5S with Android 6. Has anyone had experience with it?
Repository: TypeScript
Issue: Allow Program#getSemanticDiagnostics to ignore @ts-ignore
Labels: Suggestion,In Discussion,API

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Please read the FAQ first, especially the "Common Feature Requests" section.

-->

## Search Terms

`ts-ignore`

## Suggestion

Add a parameter to `program.getSemanticDiagnostics` to turn off filtering by `// @ts-ignore` comments.

## Use Cases

#25166 proposes an option to report unused `// @ts-ignore` comments. Since this would require yet another compilerOption, I think this should better be done by external tooling like a linter. 

Currently there is no way for external tools to know if there would actually be a semantic diagnostic without the comment. With the proposed API one could check that there is at least one diagnostic per ignore comment.
Repository: vue
Issue: Style bindings with !important don't work properly in IE 11.540
Labels: browser quirks

### Version
2.5.16

### Reproduction link
[https://codepen.io/anon/pen/QxVRyW?editors=1010](https://codepen.io/anon/pen/QxVRyW?editors=1010)

### Steps to reproduce
I've only seen this occur in IE 11.540 (through BrowserStack). The issue is not present in IE 11.0.

1. Click "toggle" button
2. "Surprise!!" should show up
3. Click "toggle" button again
4. "Surprise!!" is still visible

### What is expected?
Clicking "toggle" should hide the message. This works properly in chrome, and probably other browsers as well.

### What is actually happening?
The message is still visible, and has the `display: block !important` styling applied.

---
This causes problems with modals in semantic ui vue. See Semantic-UI-Vue/Semantic-UI-Vue#191

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: TypeScript
Issue: navigateTo: special property assignment should have containerName set
Labels: Suggestion,Awaiting More Feedback

See `navigationItemsSpecialPropertyAssignment.ts` as of #25239 -- `Cls.prototype.instanceMethod` should have `containerName` of `Cls`.
Repository: pytorch
Issue: Multiprocessing Self Test Error
Labels: todo,module: multiprocessing,triaged

Getting this error in multi processing self test. The bug surfaces when I issue the `run_test` command like two more times one after another.

System:
Pytorch (cca24763), CUDA 9, V100

```
Running test_multiprocessing ...
s..........FTraceback (most recent call last):
  File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/multiprocessing/queues.py", line 240, in _feed
    send_bytes(obj)
  File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/multiprocessing/connection.py", line 404, in _send_bytes
    self._send(header + buf)
  File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
.EFTraceback (most recent call last):
  File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/multiprocessing/queues.py", line 234, in _feed
    obj = _ForkingPickler.dumps(obj)
  File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/multiprocessing/reduction.py", line 51, in dumps
    cls(buf, protocol).dump(obj)
  File "/opt/conda/envs/pytorch-py3.6/lib/python3.6/site-packages/torch/multiprocessing/reductions.py", line 112, in reduce_storage
    metadata = storage._share_filename_()
RuntimeError: unable to open shared memory object </torch_34959_822569775> in read-write mode at ../aten/src/TH/THAllocator.cpp:334
```
Repository: rust
Issue: Lint warnings for "unused #[must_use]" should be emitted even if typeck fails.
Labels: C-enhancement,A-lints,T-compiler

In a situation like this (feel free to suggest less contrived examples):
```rust
#[must_use]
struct Foo<T> {
    text: String,
    children: Vec<T>,
}

impl<T> Foo<T> {
    fn combine(mut self, other: Self) -> Self {
        self.text.push_str(&other.text);
        self.children.extend(other.children);
        self
    }
}

fn text<T>(text: impl Into<String>) -> Foo<T> {
    Foo {
        text: text.into(),
        children: vec![],
    }
}

fn bar<T>(mut foo: Foo<T>) -> Foo<T> {
    if foo.text.is_empty() {
        // Incomplete/incorrect code, #[must_use] should warn.
        // However, we already have a type inference error.
        text("bar");
        // Correct code:
        foo = text("bar").combine(foo);
    }
    foo
}
```
Because of the type-checking error caused by an uninferrable `T`, the `#[must_use]` lint never gets to run. But the fact that the return value isn't used is, in this case, quite relevant to the error.

If the `#[must_use]` lint is moved to typeck, it could run even on incomplete inference. Alternatively, the lint could stay independent, but somehow always run, even if typeck errored. The `test("bar")` expression would need to have the type `Foo<_>` with the `_` being a `TyError`.

cc @nikomatsakis @Manishearth
Repository: flutter
Issue: Examples on moving large structured data between Java/Obj-C and Dart
Labels: engine,c: performance,d: api docs,P2,a: plugins,team-engine,triaged-engine

This comes up when authoring plugins, or using existing 3rd party frameworks.  Sometimes one wants to move large amounts of structured data in/out of Dart.

I've heard at least anecdotal reports that this is slow (I've not personally benchmarked this).

I believe lack of documentation/direction here is also part of what is motivating upvotes for https://github.com/flutter/flutter/issues/7053.

No urgency on this, just a percieved opportunity.  FYI @RedBrogdon @mjohnsullivan
Repository: TypeScript
Issue: In JS, typedef tags are not bound on non-expression statements
Labels: Suggestion,Awaiting More Feedback,Domain: JavaScript

```js
/** @typedef {number} A */
var ok;
/** @typedef {number} B */
ok = 1; // also ok
/** @typedef {number} C not ok */
;
/** @typedef {number} D not ok */
if (ok) {
}
/** @type {[A, B, C, D]} */
var t = [1,2,3,4]
```

**Expected behavior:**
All of A, B, C, and D are type aliases for number.

**Actual behavior:**
Cannot find name 'C' and 'D'.
Repository: three.js
Issue: Changing RenderTarget's texture parameters on the fly
Labels: Suggestion

Sometimes, when we want to save some memory, it happens that we have to reuse a render target, by just changing some possible parameters on the fly. I am talking about wrapping and filtering, obviously not format and type. Changing these parameters is (generally) fast enough (depending on the drivers).

However, it is not currently possible to do that, because of this part of the code:

https://github.com/mrdoob/three.js/blob/dev/src/renderers/webgl/WebGLTextures.js#L225-L244

As a `WebGLRenderTarget` has obviously no image attribute.

Maybe I am missing something, but it looks like the data uploading and the parameters and couple together. Am I the only one looking for a change on this side?

It would be nice to separate the data uploading from the parameters. 

##### Three.js version

- [X] All of them
 
##### Browser

- [x] All of them

##### OS

- [x] All of them
Repository: rust
Issue: NLL: `if let` not detecting proper lifetime
Labels: T-compiler,A-NLL,NLL-polonius

Hello,

I have recently been pointed to [this example](https://play.rust-lang.org/?gist=289c6fe73106c3fee425f1d50062076a&version=nightly&mode=debug):
```rust
#![feature(nll)]

fn find_best(vec: &mut Vec<i32>) -> Option<&mut i32> {
    vec.get_mut(0)
}

fn foo(vec: &mut Vec<i32>) -> &mut i32 {
    if let Some(best) = find_best(vec) {
        best
    } else {
        &mut vec[1]
    }
}

fn main() {
    let mut x = vec![1, 2, 3];
    *foo(&mut x) = 42;
}
```

To me, the code looks sane, and looks like it should compile with NLL enabled (as the borrow to `vec` ends at the end of the `if` block, and shouldn't propagate to the `else` block), yet it looks like it doesn't.

Hope that helps, and as always thank you for your work on `rustc`!
Repository: pytorch
Issue: [feature request] More methods for PackedSequence
Labels: feature,module: nn,triaged

As a person who works a lot with recurrent networks and sequences, I wish it was easier to work with `PackedSequence`. I frequently find myself packing/unpacking sequence to perform some simple operation such as
```
sequence, lengths = pad_packed_sequence(input, batch_first=True)
sequence = elementwise_function(sequence)
pack_padded_sequence(sequence, lengths, batch_first=True)
```
 This complicates code, introduces bugs (setting `batch_first` incorrectly), and makes me write two versions of code for tensors and sequences.

`PaddedSequence` can be extended to act more like `torch.Tensor`. More specifically, it can be extended with following methods (I tried to choose ones which make sense):

# Element-wise unary operations (wrt to the tensor)

- abs, acos, asin, atan, atan2, ceil, clamp, contiguous, cos, cosh,  exp, expm1, frac, log, log10, log1p, log2, mul, pow, reciprocal, neg, renorm, round, rsqrt, sigmoid, sign, sin, sinh, sqrt, tan, tanh, trunc 
- fill_, pin_memory

# Boolean functions

- is_contiguous, is_pinned

# Element-wise binary operations

Two sequences can be added, subtracted, compared, etc when they have same shape and lengths.

- add, div, eq, fmod, ge, gt, le, lt, ne, remainder, sub
- map_

# Autograd functions

- detach

cc @albanD @mruberry @jbschlosser
Repository: TypeScript
Issue: refactoring for turning // comments to /**
Labels: Suggestion,In Discussion,Domain: Refactorings

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Please read the FAQ first, especially the "Common Feature Requests" section.

-->

## Search Terms

https://github.com/Microsoft/TypeScript/search?q=refactoring+comments&type=Issues

## Suggestion

Turn a selected block of double-slash comments to a slash-star-star comments.

## Use Cases

Turning conventional `//` into JSDoc
Repository: opencv
Issue: expose 'cv::partition' function to python
Labels: wontfix,category: python bindings,RFC

can expose  'cv::partition' function to python? 



- OpenCV => 3.4.1(python-opencv)
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
Repository: awesome-mac
Issue: Awesome Mac application sharing recommendation - Awesome Mac
Labels: Gitalk,/awesome-mac/

http://wangchujiang.com/awesome-mac/ 

  A curated list of awesome applications, softwares, tools and shiny things for Mac osx. - Awesome Mac
Repository: vscode
Issue: Snippet transform leaves conditional operator
Labels: feature-request,snippets

```
	"fffff": {
		"prefix": "ffff",
		"body": [
			"- (${1:void})${2:methodName}{",
			"${1/void$|(.+)/(?1:\n\treturn nil;)/}",
			"}"
		]
	},
```

* have the snippet above
* type number for the first placeholder
* press tab
* 🐛 there `?1:` in the editor...
Repository: pytorch
Issue: [caffe2] Is there any method to implement learning rate scheduler?
Labels: caffe2

Hello, everyone. 

since tensorflow or pytorch can adjust learning rate easily by using a scheduler function.

```python
epochs = 200
def step_decay_scheduler(epoch):
    if epoch < 81:
        return 0.1
    if epoch < 122:
        return 0.01
    return 0.001

def step_decay_scheduler2(epoch):
    if epoch < 100:
        return 0.1
    if epoch < 150:
        return 0.01
    return 0.001

def cos_scheduler(epoch):
    return (start_lr+end_lr)/2.+(start_lr-end_lr)/2.*math.cos(math.pi/2.0*(epoch/(epochs/2.0)))
```

Is there anyway to use a different learning rate scheduler(e.g. cos scheduler)???
Repository: pytorch
Issue: [caffe2] UnicodeDecodeError when running LeNet
Labels: caffe2


## Issue description

I am getting the following error [UnicodeDecodeError: 'ascii' codec can't decode byte 0x90 in position 131: ordinal not in range(128)]  when following similar code to this: https://caffe2.ai/docs/tutorial-MNIST.html

## Code example
    workspace.ResetWorkspace()

    device_opts = core.DeviceOption(caffe2_pb2.CUDA, 0)
    init_def = caffe2_pb2.NetDef()
    net_def = caffe2_pb2.NetDef()

    with open(INIT_NET, 'r') as f:
        init_def.ParseFromString(f.read())
        init_def.device_option.CopyFrom(device_opts)
        workspace.RunNetOnce(init_def.SerializeToString())

    
    with open(PREDICT_NET, 'r') as f:
        net_def.ParseFromString(f.read())
        net_def.device_option.CopyFrom(device_opts)
        workspace.CreateNet(net_def.SerializeToString(), overwrite=True)

I am getting an error in the last line

## System Info
`

-  Caffe2
- How you installed PyTorch (conda, pip, source): pip
- Build command you used (if compiling from source):
- OS: Ubuntu 16.04
- PyTorch version:
- Python version:
- CUDA/cuDNN version:
- GPU models and configuration:
- GCC version (if compiling from source):
- CMake version:
- Versions of any other relevant libraries:
Repository: vscode
Issue: Show 'Source' actions in file explorer context menu
Labels: help wanted,feature-request,editor-code-actions

**Feature request**
Show source actions in the file explorer context menu. This would allow triggering actions such as `organize imports` on file

I believe this would require a new activation event and a new way to present source actions (instead of using the editor right click context menu)

**Alternatives**
- A generic `source` context menu could be contributed by an extension

- Or individual extensions could contribute new items to the file explorer context menu
Repository: go
Issue: go/types: string(1 << s) should be an error
Labels: NeedsFix

```Go
package main

func main() {
	var s uint
	_ = string(1 << s)
}
```
(https://play.golang.org/p/owHsmdZd32v) is an error: The `1` in `1 << s` assumes the type it would have without the shift, which is `string`. Both cm/compile and gccgo correct report an error.

go/types appears to accept it.
Repository: neovim
Issue: Switch (Python) provider(s) dynamically
Labels: enhancement,provider

Currently `g:python3_host_prog` is used to initialize the given provider lazily once.

It would be nice if there was a way to change this during runtime, e.g. a command or a function, that would update the global variable and handle setting up the new version.