sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Pytorch BatchNorm2D Unstable
Labels: triaged,module: norms and normalization

I was tuning the following customed nn module:

```class ConvE(nn.Module):
    def __init__(self, args, num_entities):
        super(ConvE, self).__init__()
        self.entity_dim = args.entity_dim
        self.relation_dim = args.relation_dim
        assert(args.emb_2D_d1 * args.emb_2D_d2 == args.entity_dim)
        assert(args.emb_2D_d1 * args.emb_2D_d2 == args.relation_dim)
        self.emb_2D_d1 = args.emb_2D_d1
        self.emb_2D_d2 = args.emb_2D_d2
        self.num_out_channels = args.num_out_channels
        self.w_d = args.kernel_size
        self.HiddenDropout = nn.Dropout(args.hidden_dropout_rate)
        self.FeatureDropout = nn.Dropout(args.feat_dropout_rate)

        # stride = 1, padding = 0, dilation = 1, groups = 1
        self.conv1 = nn.Conv2d(1, self.num_out_channels, (self.w_d, self.w_d), 1, 0)
        self.bn0 = nn.BatchNorm2d(1)
        self.bn1 = nn.BatchNorm2d(self.num_out_channels)
        self.bn2 = nn.BatchNorm1d(self.entity_dim)
        self.register_parameter('b', nn.Parameter(torch.zeros(num_entities)))
        h_out = 2 * self.emb_2D_d1 - self.w_d + 1
        w_out = self.emb_2D_d2 - self.w_d + 1
        self.feat_dim = self.num_out_channels * h_out * w_out
        self.fc = nn.Linear(self.feat_dim, self.entity_dim)

    def forward(self, e1, r, kg):
        E1 = kg.get_entity_embeddings(e1).view(-1, 1, self.emb_2D_d1, self.emb_2D_d2)
        R = kg.get_relation_embeddings(r).view(-1, 1, self.emb_2D_d1, self.emb_2D_d2)
        E2 = kg.get_all_entity_embeddings()

        stacked_inputs = torch.cat([E1, R], 2)
        stacked_inputs = self.bn0(stacked_inputs)

        X = self.conv1(stacked_inputs)
        X = self.bn1(X)                            # <= problem line
        X = F.relu(X)
        X = self.FeatureDropout(X)
        X = X.view(-1, self.feat_dim)
        X = self.fc(X)
        X = self.HiddenDropout(X)
        X = self.bn2(X)
        X = F.relu(X)
        X = torch.mm(X, E2.transpose(1, 0))
        X += self.b.expand_as(X)

        S = F.sigmoid(X)
        return S```

If I include the "problem line" in code, the model performance became very unstable and the loss declines slowly. If I commented out the line, the model performance becomes normal.

The strange part is that it used to be fine to include this line in my code and this problem caught my attention after I switched to 0.4.0+.

I wonder if it is caused by any changed in the BatchNorm2d operator.

Below the pink curve is the result obtained w/ the problem line and the orange curve is obtained w/o it.
![screen shot 2018-10-18 at 1 32 19 am](https://user-images.githubusercontent.com/4227871/47141498-af5e4e80-d275-11e8-8a90-356829ce8768.png)

The experiment code repo can be found here:
https://github.com/salesforce/MultiHopKG/blob/master/src/emb/fact_network.py#L131
Repository: godot
Issue: Godot reimporting file after changing its name inside editor
Labels: enhancement,topic:editor

**Godot version:**
3.1 b550f93

**OS/device including version:**
Windows 10


**Issue description:**
When I rename an asset inside editor, then file is reimported instead just rename files in import.

In .import folder I have 4 files
![aaaaaaa](https://user-images.githubusercontent.com/41945903/47143990-b9f50400-d2c6-11e8-93a1-0ce50a1aafb4.png)

renamed file has different name in .import but inside md5 file has same hash as original
> source_md5="43733c76d1d3d2c3f44a9548970ee53c"
dest_md5="3e65b9d26c534f673719d0ae2210f1ab"

**Steps to reproduce:**
![jfile](https://user-images.githubusercontent.com/41945903/70703894-46376700-1cd1-11ea-863c-37d97a3b5fcc.gif)
Repository: TypeScript
Issue: Subclass method is not allowed (TS2425) if the parent class has a property of type any with the same name
Labels: Suggestion,Awaiting More Feedback

TypeScript appears to treat class methods as something fundamentally different from a class prototype property of type function. This is not in agreement with the standard semantics of ES6.

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  all versions, as far as I have been able to test.

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** method member property any parent class subclass

**Code**

```ts
class Super {
    prop: any;
}

class Derived extends Super {
    prop() {}
}
```

**Expected behavior:** should compile without a problem. Note that by the ES6 standard, the above definition of `Derived` is equivalent to the following, which TypeScript compiles without a problem:

```ts
class Derived extends Super {}

Derived.prototype.prop = function(){};
```

**Actual behavior:**

```console
Error TS2425: Class 'Super' defines instance member property 'prop', but extended class 'Derived' defines it as instance member function.
```

**Playground Link:** https://www.typescriptlang.org/play/#src=class%20Super%20%7B%0D%0A%20%20%20%20prop%3A%20any%3B%0D%0A%7D%0D%0A%0D%0Aclass%20Derived%20extends%20Super%20%7B%0D%0A%20%20%20%20prop()%20%7B%7D%0D%0A%7D%0D%0A

**Related Issues:** I didn't find similar issues, although I started by looking for issues requesting for the ability to disable particular errors (TS2425 in this case). There are several (closed) issues in which such an ability is requested or suggested, but I believe the proper solution would be to bring TypeScript in agreement with ES6. After all, it claims to be a superset!
Repository: pytorch
Issue: Initialization error when moving data to the GPU
Labels: module: cuda,triaged

I want to move my data to the GPU in **collate_fn**
because it will be done in parallel and **moving the data to the GPU** is my main **bottleneck**.

But I have the following error message.

How to make it possible?

I search a way to transfer my data in parallel so **I don't have to wait every mini batch**

`RuntimeError: Traceback (most recent call last):
  File "/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 57, in _worker_loop
    samples = collate_fn([dataset[i] for i in batch_indices])
  File "<ipython-input-18-8366151b8664>", line 17, in collate_fn
    data= data.to(torch.device('cuda'))
RuntimeError: cuda runtime error (3) : initialization error at /opt/conda/conda-bld/pytorch_1524586445097/work/aten/src/THC/generic/THCStorage.c:60
`
Repository: material-ui
Issue: [MobileStepper] Way to access a custom slide number by clicking on one of the dots
Labels: new feature,component: stepper

I would like to create a stepper similar to the "Mobile with carousel effect" one on the [Steppers demo page](https://material-ui.com/demos/steppers/#mobile-stepper---text-with-carousel-effect), but where clicking on each of the dots would actually make the slide update accordingly.


I didn't find an option to do that in the [API](https://material-ui.com/api/mobile-stepper/), did I miss something or do I need to duplicate the MobileStepper and add this behavior manually?

Thanks in advance!
Repository: go
Issue: net/http: no way to get server Handler's write error to client (sometimes)
Labels: NeedsDecision,FeatureRequest

### What version of Go are you using (`go version`)?
1.11

### Does this issue reproduce with the latest release?
Yes

### What operating system and processor architecture are you using (`go env`)?
linux/amd64

### What did you do?
I wrote an http response after the client socket was closed.

https://play.golang.org/p/upytSYnrYmL

### What did you expect to see?
I expected to be able to get the write error somehow.

### What did you see instead?

There does not seem to be any way to get the write error, even after flushing.

More background:

The use case is we had an http handler that took too long to respond. After figuring out what happened, we wanted to make sure our http server logged all errors writing responses so it would be easy to see this happening in the future.

In our particular case, we weren't actually writing a body (we only called `WriteHeader`). I was hoping I could do something like this in a middleware to log response errors in a generic way:

```
nextHandler(w, r)
if flusher, ok := w.(http.Flusher); ok {
  flusher.Flush()
  if _, err := w.Write(nil); err != nil {
    // log "err" for posterity
  }
}
```

Perhaps this could be achieved by having `http.response.write` return `conn.werr` if it is set?

It is worth mentioning that the request context is cancelled in this case, so that could be used to detect the client is gone. However, I expected there to be someway to get the actual `Write` error.
Repository: node
Issue: fs.lchmod opens file with O_WRONLY unnecessarily, fails on directories and non-writable files
Labels: help wanted,fs

* **Version**: v10.12.0
* **Platform**: Darwin geegaw.local 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
* **Subsystem**: fs

https://github.com/isaacs/chmodr/pull/20

Node's fs.lchmod implementation opens the file in write-only mode.  (On Darwin, at least.)

This is unnecessary, and fails for read-only files.

Additionally, this approach (open and then use fchmod) fails for directories.  Is there a reason why native lchmod isn't being used?  Systems that have `O_SYMLINK` also have `lchmod(3)`, don't they?

This is important because lchmod is the only way to avoid a (minor) security vulnerability when doing recursive mode setting on directories.  If we have to restrict the use of lchmod to only symlinks, then we're back in TOCTOU territory.
Repository: pytorch
Issue: Test that (cd build && ninja) immediately after build is no-op in CI
Labels: module: build,module: ci,triaged

## 🐛 Bug

If I do a build like `python setup.py build_deps develop`, and then I say `(cd build && ninja)`, this should NOT run cmake, and it should be no-op. This is not currently true.

Once we fix it, we should add a test for it so it doesn't regress.

cc @malfet @seemethere @walterddr @ezyang @pytorch/pytorch-dev-infra
Repository: electron
Issue: Feature request: get back selected file format from showSaveDialog
Labels: enhancement :sparkles:

It's great that https://github.com/electron/electron/issues/10335 is now implemented.

As a follow-up feature, is there also a way to get the selected file format back, e.g. in the callback? There is no way to tell what the user selected, if two formats have the same extension.

If I have, say:

    dialog.showSaveDialog({filters: [
      { name: 'EPUB 3', extensions: ['epub'] }
      { name: 'EPUB 2', extensions: ['epub'] }
    ]}, function(fileName, bookmark, fileFormatName){
      console.log(fileFormatName)
    });

Actual: `undefined`
Desired: `EPUB 3`

Thanks for considering.
Repository: go
Issue: x/mobile: Memory crash in iOS devices
Labels: NeedsInvestigation,mobile

Please answer these questions before submitting your issue. Thanks!


### What version of Go are you using (`go version`)?

go1.10.3 darwin/amd64

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

GOARCH="amd64"
GOOS="darwin"

### What did you do?

```
key, err := scrypt.Key(password, salt, 262144, 8, 1, keyLen)
if err != nil {
    return
}

debug.FreeOSMemory()
```

### What did you expect to see?

A successful run

### What did you see instead?

A crash https://bpaste.net/show/308796b08e4c
Same code runs fine on android but happens to crash on iOS.
Repository: youtube-dl
Issue: [SoundCloud] Add support to download 256kbps AAC from SoundCloud Go+ accounts
Labels: account-needed

## Please follow the guide below

- You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly
- Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`)
- Use the *Preview* tab to see what your issue will actually look like

---

### Make sure you are using the *latest* version: run `youtube-dl --version` and ensure your version is *2018.10.05*. If it's not, read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2018.10.05**

### Before submitting an *issue* make sure you have:
- [x] At least skimmed through the [README](https://github.com/rg3/youtube-dl/blob/master/README.md), **most notably** the [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
- [x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

### What is the purpose of your *issue*?
- [ ] Bug report (encountered problems with youtube-dl)
- [ ] Site support request (request for adding support for a new site)
- [x] Feature request (request for a new functionality)
- [ ] Question
- [ ] Other

---

### Description of your *issue*, suggested solution and other information

[As of October 17, 2018](https://www.engadget.com/2018/10/17/soundcloud-brings-lossless-streaming-go-subscribers/), users of SoundCloud Go+ can stream all audio in 256kbps AAC. Once you have upgraded to Go+, you opt-in your account to the feature by visiting Settings > Streaming > High quality audio. Only accounts with Go+ enabled are eligible to use this feature. A 30-day free trial is available.

I request that functionality is added to allow the ability to download user-uploaded content at this higher bitrate. Current youtube-dl users are limited to 128kbps MP3 or 64kbps Opus.

Thanks for your continued hard work.
Repository: TypeScript
Issue: Overloads do not emit JSDoc on non-implementation signatures
Labels: Suggestion,Domain: Comment Emit,Experience Enhancement

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨

Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ

Please fill in the *entire* template below.
-->

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  3.2.0-dev.201xxxxx

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**

**Code**

> .ts file

```ts
/**
 * this will lost
 */
function a()
function a() { }

/**
 * this will keep
 */
function b() { }

function c()
/**
 * this will keep, but i don't think this is good way
 */
function c() { }
```

**Expected behavior:**

all will keep

```ts
/**
 * this will lost
 */
function a() { }
/**
 * this will keep
 */
function b() { }
/**
 * this will keep, but i don't think this is good way
 */
function c() { }
```

**Actual behavior:**

a is lost

> output .js file

```ts
function a() { }
/**
 * this will keep
 */
function b() { }
/**
 * this will keep, but i don't think this is good way
 */
function c() { }
```

----------------

> and when it at .d.ts

* a will keep
* b will keep too
* but c will lost

**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
http://www.typescriptlang.org/play/index.html#src=%2F**%0D%0A%20*%20this%20will%20lost%0D%0A%20*%2F%0D%0Afunction%20a()%0D%0Afunction%20a()%20%7B%20%7D%0D%0A%0D%0A%2F**%0D%0A%20*%20this%20will%20keep%0D%0A%20*%2F%0D%0Afunction%20b()%20%7B%20%7D%0D%0A%0D%0Afunction%20c()%0D%0A%2F**%0D%0A%20*%20this%20will%20keep%2C%20but%20i%20don%27t%20think%20this%20is%20good%20way%0D%0A%20*%2F%0D%0Afunction%20c()%20%7B%20%7D

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Repository: vue
Issue: 'inject' Properties are not added to the CombinedVueInstance type definition
Labels: typescript

### Version
2.5.17

### Reproduction link
[https://codesandbox.io/s/rr18r3vm9p](https://codesandbox.io/s/rr18r3vm9p)





### Steps to reproduce
1. Copy Minimal reproduction link into a local environment, and run the webpack compilation process.

**OR**

1. Initialize a vue vm
```typescript
let vm = new Vue({
    el: "#app",
    render: (h: any) => h(someComponent, {}),
    provide: { service: { something: "Hello, World" } }
});
```
2. Try and access service in a SFC

```typescript
export default Vue.extend({
    name: "someComponent",
    inject: ["service"],
    data() {
        return {
            accessService: this.service.something // Property 'service' does not exist on type CombinedVueInstance...
        }
    }
});
```

### What is expected?
When declaring injections in a component in typescript, you should be able to access the injection with `this.injection`

### What is actually happening?
When accessing an injection in a vue single file component, it is currently throwing an error during the webpack compilation process, stating that the injection `Property 'injection' does not exist on type 'CombinedVueInstance<Vue...`

---
**Please note:** that the link to minimal reproduction won't show the error logs from the webpack compiling, as it will compile successfully, but with errors. This will need to be tested in a local environment to see what is happening. 

As this is in typescript, we're currently using Webpack to compile it to a single file, and then use this on our application.

The compilation will complete successfully, however will print multiple errors to the console after compiling, about not being able to access properties, etc. When running in the browser it works successfully.

We've dug around in the `vue/types` folder, and to the best of our knowledge think that Inject should be a part of the `type DataDef` or something of this sort.

Is there possibly a temporary workaround that we can use to avoid having these errors, until a fixed release is proposed?

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: flutter
Issue: VideoProgressIndicator does not give correct buffer values
Labels: c: new feature,a: video,p: video_player,package,team-ecosystem,P2,triaged-ecosystem

VideoProgressIndicator  cannot display buffer progress correctly.
I try to get the value of controller.value.buffer[0].end.inMillseconds.
It shows a value between 0 and 100 which is just the progress value that has been shown.
Repository: opencv
Issue: I guess there is a mistake with the source code of stereosgbm.cpp.
Labels: incomplete

I have read the source code of stereosgbm.cpp of OpenCV2.4.13. and the related articles. I found it maybe a mistake in the source code.

The 8 directions around a special pixel X:
1 2 3
0 X 4
7 6 5

The code uses dynamic program to aggregate the BT cost after SAD windows. Firstly, it uses the index from 0 to width-1 for directions {0, 1, 2, 3}. as shown above. But then it uses the index from width-1 to 0 for direction 4. The code is like this:

```
                for( x = width1 - 1; x >= 0; x-- )
                {
                    CostType* Sp = S + x*D;
                    int minS = MAX_COST, bestDisp = -1;

                    if( npasses == 1 )
                    {
                        int xm = x*NR2, xd = xm*D2;

                        int minL0 = MAX_COST;
                        int delta0 = minLr[0][xm + NR2] + P2;
                        CostType* Lr_p0 = Lr[0] + xd + NRD2;
                        Lr_p0[-1] = Lr_p0[D] = MAX_COST;
                        CostType* Lr_p = Lr[0] + xd;

                        const CostType* Cp = C + x*D;

                       .......

                       {
                            for( d = 0; d < D; d++ )
                            {
                                int L0 = Cp[d] + min((int)Lr_p0[d], min(Lr_p0[d-1] + P1, min(Lr_p0[d+1] + P1, delta0))) - delta0;

                                Lr_p[d] = (CostType)L0;
                                minL0 = min(minL0, L0);

                                int Sval = Sp[d] = saturate_cast<CostType>(Sp[d] + L0);
                                if( Sval < minS )
                                {
                                    minS = Sval;
                                    bestDisp = d;
                                }
                            }
                            minLr[0][xm] = (CostType)minL0;
                        }

                       ......

}
```

I think the correct expression should be:
```
                        int minL4 = MAX_COST;
                        int delta4 = minLr[0][xm + NR2 + 4] + P2;
                        CostType* Lr_p4 = Lr[0] + xd + NRD2 + D2 * 4;
```
and 
```
                        minLr[0][xm + 4] = (CostType)minL4;
```

where the number '4' indicate the direction 4 as shown above.

Has anyone else found this mistake?
Repository: vscode
Issue: Show Timestamp while Debugging
Labels: feature-request,debug,debug-console

Geetings,
I am debugging my JavaScript files in VSCode with the ChromeDebugger extension. I recognized that I cant activate timestamps in the DebugConsole in VSCode. 
Is it possible to show timestamps like in Chrome DevTools? Or is this a ChromeDebugger extension Feature request?

**No Timestamps:**
![vscode_notimestamps](https://user-images.githubusercontent.com/24226141/47206346-b9bd3d00-d388-11e8-8d61-85e7d44fa8bf.png)



**Want Timestamps:**
![inkedchromedevtools_withtimestamps_li](https://user-images.githubusercontent.com/24226141/47206551-36e8b200-d389-11e8-88a4-aa14a187d956.jpg)
Repository: pytorch
Issue: [CAPI] Increase of memory usage when exporting a Adam optimzer
Labels: module: cpp,module: optimizer,module: memory usage,triaged

## 🐛 Bug
Similarly than bug #12284 but with an instance of Adam optimizer.
The stored file and gpu memory usage grow very quick.
## Expected behavior
No memory increase.

## Environment

Collecting environment information...
PyTorch version: 1.0.0a0
Is debug build: No
CUDA used to build PyTorch: 9.0.176

OS: Ubuntu 16.04.5 LTS
GCC version: (GCC) 8.2.0
CMake version: version 3.12.0

Python version: 3.5
Is CUDA available: Yes
CUDA runtime version: 9.0.176
GPU models and configuration: GPU 0: GeForce GTX 1070
Nvidia driver version: 396.54
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.3.1
/usr/lib/x86_64-linux-gnu/libcudnn_static_v7.a

Versions of relevant libraries:
[pip] Could not collect
[conda] Could not collect
## Additional context

Note that I have the patch of bug #12284. This seem to be a similar but disjoint bug.


cc @yf225 @glaringlee @vincentqb
Repository: godot
Issue: Project.godot and exported class names with multiple repositories.
Labels: enhancement,discussion,topic:editor

**Godot version:**
`328679fd`

**Issue description:**
Preface: I am working with multiple git repositories, a main one and others that are in sub folder.

The problem that I am facing right now is that when someone does not have one of the submodules, project.godot is edited and the path to those scripts that export the classname are deleted.
It is not a big problem(since they are generated again when I open the project), but I am basically ping-ponging the project.godot file between me, that i have all the submodules installed, and another person which only has one of them. Checking out branches then require to also reset the project.godot file.

**Proposal:**

Save classnames in a different file that can be handled on its own.