sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rust
Issue: Refiling "Deprecate "implicit ()" by making it a compilation error."
Labels: A-frontend,C-enhancement,A-diagnostics,T-compiler,WG-diagnostics

Refiled from https://github.com/rust-lang/rfcs/issues/2098#issuecomment-320580803 as a diagnostics issue:

> 
> clippy can't do anything right now if a compiler error occurs before our lints run and most our lints are run after type checking.
> 
> I agree though that example A should backtrack the source of the value and see if there's the possibility of removing a semicolon in the presence of `()`.
> 
> Note that there are many other situations, e.g. the reverse of the above comparison:
> 
> ```rust
> fn main() {
>     let v = {
>         println!("hacky debug: v is being initialized.");
>         42;
>     };
>     assert!(42 == v);
> }
> ```
> 
> produces
> 
> ```
>    Compiling playground v0.0.1 (file:///playground)
> error[E0277]: the trait bound `{integer}: std::cmp::PartialEq<()>` is not satisfied
>  --> src/main.rs:6:16
>   |
> 6 |     assert!(42 == v);
>   |                ^^ can't compare `{integer}` with `()`
>   |
>   = help: the trait `std::cmp::PartialEq<()>` is not implemented for `{integer}`
> ```
> 
> I do not think that this requires an RFC. Simply implementing improved diagnostics and opening a PR is totally fine (I've not seen a denied diagnostic improvement PR so far).

cc @oli-obk @estebank
Repository: godot
Issue: `KinematicBody.move_and_collide(rel_vec)` returns appears to return `GridMap` (not a PhysicsBody)
Labels: discussion,topic:core

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
`v3.0.6-stable`

**Issue description:**
`KinematicBody.move_and_collide(rel_vec)` returns appears to return `GridMap` as the `KinematicCollision.collider`.  This is an issue if you want to handle **all** collisions by looping through and adding collision exceptions after each is handled.   You cannot add a collision exception with `GridMap` since it is not a `PhysicsBody` and any looping and calling `move_and_collide` will just return `GridMap` .


**Steps to reproduce:**
Cause a collision with a gridmap element that contains a collision shape.

**Minimal reproduction project:**
I'll drop one up here if needed.


I'll take a look at the code soon to see if this is an easy fix.  For now I'm just documenting this issue.
Repository: pytorch
Issue: how to store a bounding box in Tensor?
Labels: caffe2

how to store a bounding box of image in TensorProto of caffe2 ?
Repository: TypeScript
Issue: Enforce definite initialization of `static` members
Labels: Suggestion,Awaiting More Feedback

Is there some clever reason why TSC can't check this (maybe... related to semantics of JS inheritance?)?

**TypeScript Version:**  3.2.0-dev.20181011

**Search Terms:** strictPropertyInitialization, static, initialized, uninitialized, assigned, property

**Code**

```ts
class A {
  static s: number
  a() {
    A.s * 3 // Should be a compile error
  }
}
A.s * 7 // Should be an compile error
```

**Expected behavior:** Both lines should produce compile errors.

**Actual behavior:** Both lines result in runtime exceptions.

[**Playground Link**](https://www.typescriptlang.org/play/index.html#src=class%20A%20%7B%0D%0A%20%20static%20s%3A%20number%0D%0A%20%20a()%20%7B%0D%0A%20%20%20%20A.s%20*%203%20%2F%2F%20Should%20be%20a%20compile%20error%0D%0A%20%20%7D%0D%0A%7D%0D%0AA.s%20*%207%20%2F%2F%20Should%20be%20an%20compile%20error)

**Related Issues:**

- https://github.com/Microsoft/TypeScript/issues/21976
Repository: gin
Issue: How to use multiple domains?
Labels: question

How to use multiple domains with one  port ?
Repository: go
Issue: x/crypto/acme/autocert: verify the beginning time of an issued cert is not necessary
Labels: NeedsInvestigation

autocert.go line 1095 compares the current time and the time the cert is issued to check if the cert is valid.
But the time of the server is not always 100% accurate, and if the server time is behind the acme server time (i.e. the real time), autocert judges the cert as not valid, and will request for another cert on the next request which will hit the rate limit in a very short time.


### What did you expect to see?
Verify the beginning of the time of the cert is not necessary. Only the expiry date is needed to be verified. Since the valid duration of an acme cert is typically 3 months long, I don't think any server will have such a huge time difference.

### What did you see instead?
Cert judged as not valid. More cert requests will be sent subsequently (they will be judged as invalid too) and hits the rate limit. No cert can be successfully issued until the server time is corrected.
Repository: pytorch
Issue: fail to visualize caffe2 model
Labels: caffe2

Refer to caffe2 official website, I tried to visualize caffe2 model by these code:

from caffe2.python import net_drawer
from IPython import display
graph=net_drawer.GetPydotGraph(train_model.net.Proto().op,"train_model",rankdir="LR")
display.Image(graph.create_png(),width=800) 

I've also tried:
graph = net_drawer.GetPydotGraph(train_model.net.Proto().op, "train_model", rankdir="LR")
graph.write_png('graph.png')

I've installed graphviz by command:
sudo apt-get install graphviz
pip install pydot

But I will meet error as follows:
Traceback (most recent call last):
  File "/mnt/xiongcx/R2Plus1D-master/tools/train_net.py", line 535, in <module>
    main()
  File "/mnt/xiongcx/R2Plus1D-master/tools/train_net.py", line 530, in main
    Train(args)
  File "/mnt/xiongcx/R2Plus1D-master/tools/train_net.py", line 418, in Train
    explog
  File "/mnt/xiongcx/R2Plus1D-master/tools/train_net.py", line 144, in RunEpoch
    graph = net_drawer.GetPydotGraph(train_model.net.Proto().op, "train", rankdir="TB")
  File "/home/xiongcx/anaconda2/envs/r21d/lib/python2.7/site-packages/pydot.py", line 1673, in new_method
    encoding=encoding)
  File "/home/xiongcx/anaconda2/envs/r21d/lib/python2.7/site-packages/pydot.py", line 1756, in write
    s = self.create(prog, format, encoding=encoding)
  File "/home/xiongcx/anaconda2/envs/r21d/lib/python2.7/site-packages/pydot.py", line 1884, in create
    assert p.returncode == 0, p.returncode
AssertionError: -11

Do you have ideas to solve it? Or do you have any other ideas to visualize caffe2 model? Thanks in advance.
Repository: pytorch
Issue: Caffe2 Installation inside Pytorch
Labels: caffe2

i am getting this error message (please see the attached) after run the command "python setup.py install":
![pytorch_question](https://user-images.githubusercontent.com/8035201/46946663-b2551580-d0a2-11e8-9f9e-afd34fd2454d.png). 
I followed this office guide of pytorch: https://caffe2.ai/docs/getting-started.html?platform=ubuntu&configuration=compile.
But the weird thing is I can print the coffee2 sucessfully
![coffe2](https://user-images.githubusercontent.com/8035201/46946767-03fda000-d0a3-11e8-8de5-4ccbba7c3d36.png)

i would like to ask if does anybody knows how to fix this?
Repository: rust
Issue: Unreasonably large stack frames
Labels: C-enhancement,T-compiler,I-heavy

Consider the following function:

```rust
pub struct Tree {
    children: Vec<Tree>,
}

pub fn traverse(t: &Tree) {
    println!();
    for c in &t.children {
        traverse(c);
    }
}
```

When compiled in release mode, it uses 72 bytes of stack per tree level on x86-64, see [Godbolt](https://godbolt.org/z/AyjJM6).

For comparison, the equivalent C++ function

```c++
struct Tree {
    vector<Tree> children;
};

void traverse(const Tree &t) {
    cout << endl;
    for (const auto &c : t.children) {
        traverse(c);
    }
}
```

uses only 24 bytes per tree level (when compiled with either gcc or clang), see [Godbolt](https://godbolt.org/z/17JCSX).

------

Version info:
I noticed it on a recent nightly
```
rustc 1.31.0-nightly (b2d6ea98b 2018-10-07)
binary: rustc
commit-hash: b2d6ea98b0db53889c5427e5a23cddb3bcb63040
commit-date: 2018-10-07
host: x86_64-pc-windows-msvc
release: 1.31.0-nightly
LLVM version: 8.0
```
But it's the same on stable 1.29.0 as well.
Repository: rust
Issue: Support uftrace (and other fentry consumers)
Labels: A-LLVM,T-compiler,C-feature-request

[uftrace](https://github.com/namhyung/uftrace) should work already with `-Zprofile` but seems it is not.

Related issues 
- [LLVM instrument functions](https://github.com/rust-lang/rust/issues/34701) 
- [-Zprofile tracking issue](https://github.com/rust-lang/rust/issues/42524)
Repository: pytorch
Issue: pytorch/torch/utils/cpp_extension.py ignores compiler setting, 
Labels: module: cpp-extensions,triaged

Every way of setting the compiler is ignored by the buildextension script 

eg. CC=gcc-6 CXX=g++-6 python setup.py, 
will use /usr/bin/gcc not /usr/bin/gcc-6. 


example code:

```python
import os
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension

# it will just ignore everything... 
#os.environ["CC"] = "/usr/bin/gcc-6"
#os.environ["CXX"] = "/usr/bin/g++-6"
setup(
    name='andreas',
    ext_modules=[
        CUDAExtension('example', ['example.cu',
            'example.cpp'],
)
    ],
    cmdclass={
        'build_ext': BuildExtension
    },
	)
```

Pytorch version 4.1 


cc @yf225 @glaringlee
Repository: vscode
Issue: Sort lines sorts quoted values inconsistently
Labels: under-discussion,wont-fix,editor-sorting


Issue Type: <b>Bug</b>

Sort lines sorts quoted values inconsistently with the same values without double-quotes. I searched for [similar bugs](https://github.com/Microsoft/vscode/issues?q=is%3Aissue+is%3Aopen+%22sort+lines%22+label%3Abug) but didn't find much. Although, there's some complaint about [sorting with mixed case](https://github.com/Microsoft/vscode/issues/18315#issuecomment-352255186), but I specifically avoid that in my examples.

![vscode-sort-lines](https://user-images.githubusercontent.com/217842/46959997-70f54380-d06b-11e8-9c3a-cf2002ca5522.gif)

Sort the following lines (asc)

```
a
abc-def
ab
abc
```

You should get

```
a
ab
abc
abc-def
```

Now sort the same lines, but wrapped in double-quotes (like items in a JSON literal often are)

```
"a"
"abc-def"
"ab"
"abc"
```

I expect to get

```
"a"
"ab"
"abc"
"abc-def"
```

But I actually get this, which _must_ be incorrect, right?

```
"a"
"ab"
"abc-def"
"abc"
```


VS Code version: Code 1.28.0 (431ef9da3cf88a7e164f9d33bf62695e07c6c2a9, 2018-10-05T14:58:53.203Z)
OS version: Windows_NT x64 10.0.17134

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)|
|GPU Status|2d_canvas: enabled<br>checker_imaging: disabled_off<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>native_gpu_memory_buffers: disabled_software<br>rasterization: enabled<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Memory (System)|15.89GB (2.21GB free)|
|Process Argv|.|
|Screen Reader|no|
|VM|0%|

</details><details><summary>Extensions (7)</summary>

Extension|Author (truncated)|Version
---|---|---
tslint|eg2|1.0.40
vscode-gitk|how|1.3.2
csharp|ms-|1.16.2
Go|ms-|0.6.91
PowerShell|ms-|1.9.0
vsliveshare|ms-|0.3.790
vscode-docker|Pet|0.3.1

(1 theme extensions excluded)

</details>
<!-- generated by issue reporter -->
Repository: TypeScript
Issue: TS2367: This condition will always return 'false' since the types 'Constructor<T>' and 'typeof Child' have no overlap.
Labels: Suggestion,Help Wanted,Good First Issue,Domain: Error Messages,Experience Enhancement,PursuitFellowship

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**   3.2.0-dev.20181011

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** TS2367

**Code**

```ts
abstract class Base<T> {
    get Item(): T { return null }
}

class Child extends Base<Item> {
    constructor(public data: any) { super() }
}

interface Item { }
declare type Constructor<T> = new (data: any) => Base<T>

function func<T>(constructor: Constructor<T>): void {
    // TS2367: This condition will always return 'false' since the types 'Constructor<T>' and 'typeof Child' have no overlap.
    if (constructor === Child) {
        // do something
    }
    new constructor(null)
}

func(Child) // No errors
```

**Expected behavior:**

Compiles without errors.

**Actual behavior:**
```
test.ts:14:9 - error TS2367: This condition will always return 'false' since the types 'Constructor<T>' and 'typeof Child' have no overlap.

14     if (constructor === Child) {
           ~~~~~~~~~~~~~~~~~~~~~
```

[**Playground Link** ](https://www.typescriptlang.org/play/#src=abstract%20class%20Base<T>%20%7B%0D%0A%20%20%20%20get%20Item()%3A%20T%20%7B%20return%20null%20%7D%0D%0A%7D%0D%0A%0D%0Aclass%20Child%20extends%20Base<Item>%20%7B%0D%0A%20%20%20%20constructor(public%20data%3A%20any)%20%7B%20super()%20%7D%0D%0A%7D%0D%0A%0D%0Ainterface%20Item%20%7B%20%7D%0D%0Adeclare%20type%20Constructor<T>%20%3D%20new%20(data%3A%20any)%20%3D>%20Base<T>%0D%0A%0D%0Afunction%20func<T>(constructor%3A%20Constructor<T>)%3A%20void%20%7B%0D%0A%20%20%20%20if%20(constructor%20%3D%3D%3D%20Child)%20%7B%20%2F%2F%20TS2367%3A%20This%20condition%20will%20always%20return%20'false'%20since%20the%20types%20'new%20(data%3A%20any)%20%3D>%20Base<T>'%20and%20'typeof%20Child'%20have%20no%20overlap.%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20do%20something%0D%0A%20%20%20%20%7D%0D%0A%20%20%20%20new%20constructor(null)%0D%0A%7D%0D%0A%0D%0Afunc(Child)%20%2F%2F%20No%20errors%0D%0A)

**Related Issues:** #25642
Repository: pytorch
Issue: Move BigTensorSerialization tests out of default caffe2_cpu_tests
Labels: caffe2

Every time I run Caffe2 CPU tests, I have to wait minutes for the very slow BigTensorSerialization tests to first run. This is dumb. If the test is slow, it should get put somewhere else.
Repository: pytorch
Issue: Differentiation through Module parameters updates
Labels: feature,module: autograd,module: nn,module: optimizer,triaged

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
So far, it is possible to get a second order gradient by extracting the first-order gradient as a differentiable tensor:
objective = loss(module, target)
gradients = torch.autograd.grad(objective, module.parameters, create_graph=True)

However, as far as I understand, it is not possible to differentiate through module updates (using optimizers). For example, let say that Z is an independent parameter I want to optimize, and I have a module M with parameter P (P is not Z). I update P as follow:
cost1 = loss( f(P,Z), target1)
cost1.backward()
M_optimizer.step() # P(Z) = P + g1(Z)
cost2 = loss( f(P,Z), target2)
cost2.backward()
M_optimizer.step() # P(Z) = P + g1(Z) + g2(Z)

And now, I want to update Z in order to maximize a meta-objective meta_loss( P(Z), meta-target ). 

## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
This king of meta-update is common in meta-learning approaches, such as MAML (https://arxiv.org/abs/1703.03400). As mentioned in this post (https://discuss.pytorch.org/t/pytorch-implementation-of-maml-that-works-with-module-style-networks/26278) MAML implementations are limited to functional-based structure and gradient descent are done by hand. For more complex models (CNN + LSTM) a user would have to re-implement everything by hands.

## Pitch

<!-- A clear and concise description of what you want to happen. -->
An optimizer that would change a module's parameters with a differentiable operation, e.g. that would first extract the gradient as a differentiable tensor, and sum the parameter with this differentiable gradient.

## Alternatives

<!-- A clear and concise description of any alternative solutions or features you've considered, if any. -->
At least (if the solution above is not possible), the possibility to sum a module's parameter with a differentiable tensor (and then the gradient descent can be easily implemented by hands).

## Additional context

<!-- Add any other context or screenshots about the feature request here. -->
Repository: react-native
Issue: [Android][Animation] Interpolated translateY value causes android view to jump. 
Labels: Platform: Android,Priority: Mid,Bug

<!-- Requirements: please go through this checklist before opening a new issue -->
  - [+] Review the documentation: https://facebook.github.io/react-native
  - [+] Search for existing issues: https://github.com/facebook/react-native/issues
  - [+] Use the latest React Native release: https://github.com/facebook/react-native/releases

## Environment

 React Native Environment Info:
    System:
      OS: macOS 10.14
      CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
      Memory: 862.68 MB / 16.00 GB
      Shell: 3.2.57 - /bin/sh
    Binaries:
      Node: 10.9.0 - ~/.nvm/versions/node/v10.9.0/bin/node
      Yarn: 1.10.1 - ~/.nvm/versions/node/v10.9.0/bin/yarn
      npm: 6.2.0 - ~/.nvm/versions/node/v10.9.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 11.2, macOS 10.13, tvOS 11.2, watchOS 4.2
    IDEs:
      Android Studio: 3.1 AI-173.4819257
      Xcode: 9.2/9C40b - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728
      react-native: ^0.57.3 => 0.57.3
    npmGlobalPackages:
      react-native-cli: 2.0.1




## Description
 I'm trying to implement collapsible header using React Native Animated API. using event method i get AnimatedHeaderValue and interpolate it into translateY value.
This value i apply to container of my listView (so listView moves vertically).
IOS animation works perfectly, but Android animation jumping and lagging when i scroll. I tried to inscrease scroll value and Android animation became more smooth.



This is scrollView container that passes onScroll to scrollView (listView)

`
 <ScCompanyNewsFeedList optimizeHeight 
                getRef={scrollView => {
                  console.log("SCROLL VIEW", scrollView)
                  this._scrollView = scrollView;
                }}  
                scrollEventThrottle = { 2 }
                onScroll={Animated.event(
                    [{ nativeEvent: { contentOffset: { y: this.AnimatedHeaderValue }}}],
                )} 
                companyId={this.props.companyId}/>
              }
`


this is base container that contains tabs and my scrollView. It's moving when scroll.

`
  <Animated.View style={[{flex: 1}, {transform: [{translateY: headerHeight}]}]}>
...
</Animated.View>
`

Interpolation

`
   const animationRange = this.AnimatedHeaderValue.interpolate({
      inputRange: [0, scrollRange],
      outputRange: [0, 1],
      extrapolate: "clamp"
    });
    const headerHeight2 = animationRange.interpolate({
      inputRange: [0, 1],
      outputRange: [0, -200]
    });
`
Repository: material-ui
Issue: [Dialog] Form + scroll in DialogContent
Labels: component: dialog,priority: important


- [x] This is not a v0.x issue. <!-- (v0.x is no longer maintained) -->
- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.

I know this has been discussed in #12126, but there is still an issue with the scrolling, the title and the actions aren't fixed and they scroll

Here is the codesandbox: https://codesandbox.io/s/qlo16r5v59

Here is the code 
```jsx
<Dialog open aria-labelledby="form-dialog-title">
  <form
    onSubmit={e => {
      alert("form submit!");
      e.preventDefault();
    }}
  >
    <DialogTitle id="form-dialog-title">Log in</DialogTitle>
    <DialogContent>
      <DialogContentText>
        Please enter your account number and password.
      </DialogContentText>
      <TextField
        autoFocus
        margin="dense"
        label="Account Number"
        type="text"
        fullWidth
      />
      <TextField
        margin="dense"
        label="Password"
        type="password"
        fullWidth
      />
      <div style={{ height: 1000 }} />
    </DialogContent>
    <DialogActions>
      <Button onClick={() => alert("cancel")} color="primary">
        Cancel
      </Button>
      <Button
        type="submit"
        onClick={() => alert("login")}
        color="primary"
        variant="contained"
      >
        Log in
      </Button>
    </DialogActions>
  </form>
</Dialog>
```
Repository: kubernetes
Issue: All Kubernetes components should offer an option for structured logs
Labels: kind/feature,sig/instrumentation,lifecycle/frozen

**Is this a BUG REPORT or FEATURE REQUEST?**:

/kind feature

**What happened**:

From the documentation, it appears that only the audit log has a JSON format available (`--audit-log-format string    Default: "json"`). All Kubernetes components (including the kubelets) should provide an option to write logs in JSON format for easier processing and indexing.

**How to reproduce it (as minimally and precisely as possible)**:

Other than for the audit logs, I do not see any options to turn on JSON/structured logging in the CLI reference documentation, which I believe is autogenerated from the source code. https://kubernetes.io/docs/reference/command-line-tools-reference/

**Environment**:
- Kubernetes version (use `kubectl version`): 1.8.7-21 with custom patches, but this appears to affect the most recent 1.12 release
- Cloud provider or hardware configuration: On premise