sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: ant-design
Issue: Calender: There is no option to have custom 4 weeks view in calender control.
Labels: Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
There should be customizable view based on date range, suppose I want to show only 4-weeks date without disabling other dates. By this feature user can show the calendar based on the given range instead of showing it monthly/ yearly/weekly

### What does the proposed API look like?
By this feature user can show the calendar based on the given range instead of showing it monthly/yearly/weekly.


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vue-element-admin
Issue: tree-shaking无效
Labels: not vue-element-admin bug

<!--
    注意：为更好的解决你的问题，请参考模板提供完整信息，准确描述问题，信息不全的 issue 将被关闭。

    Note: In order to better solve your problem, please refer to the template to provide complete information, accurately describe the problem, and the incomplete information issue will be closed.
-->


## Bug report（问题描述）
访问路由/example/list，这个页面用了 import { fetchList } from '@/api/article'，作者本意是只想引入fetchList，其它的不用，在tree-shaking的作用， '@/api/article' 下的其它模块将不会引入。但是打包后确引入了
#### Steps to reproduce（问题复现步骤）
在 /example/list页面中，该页面只用了fetchList模块，但是fetchArticle等无用模块代码也被引入进来了。

#### Screenshot or Gif（截图或动态图）
![image](https://user-images.githubusercontent.com/13363861/57213725-46280800-701a-11e9-9eb6-772d0c574059.png)


#### Link to minimal reproduction（最小可在线还原demo）

<!--
Please only use Codepen, JSFiddle, CodeSandbox or a github repo
-->

#### Other relevant information（格外信息）
- Your OS:
- Node.js version:
- vue-element-admin version:
Repository: angular
Issue: SVG animate tag don't work in ng-content with ngIf
Labels: type: bug/fix,area: animations,freq2: medium,P3

# 🐞 bug report

### Description
The problem is that the animation of the SVG (`<animate>` tag) contained in a  `<ng-content>` is only evaluated during the first display if a `ngif` conditions the display of the `<ng-content>`.

## 🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-issue-svganim-ko

Reproduction steps :

1. Display the page: the circle is animate from black to red
2. Click to the "toggle" button: the circle is not displayed
3. Click to the "toggle" button: the circle is displayed **with no animation**

This case work only if the `ngIf` is applied on the component which use `content` (like this: https://stackblitz.com/edit/angular-issue-svganim-ok).

## 🌍  Your Environment

**Angular Version:**
<pre>Angular CLI: 7.3.4
Node: 8.9.4
OS: win32 x64
Angular: 7.2.8
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.13.5
@angular-devkit/build-angular      0.13.5
@angular-devkit/build-optimizer    0.13.5
@angular-devkit/build-webpack      0.13.5
@angular-devkit/core               7.3.4
@angular-devkit/schematics         7.3.4
@angular/cdk                       7.3.3
@angular/cli                       7.3.4
@angular/flex-layout               7.0.0-beta.24
@angular/material                  7.3.3
@angular/material-moment-adapter   7.3.3
@ngtools/webpack                   7.3.5
@schematics/angular                7.3.4
@schematics/update                 0.13.4
rxjs                               6.4.0
typescript                         3.2.4
webpack                            4.29.0<code>
<!-- run `ng version` and paste output below -->
<!-- ✍️-->

</code></pre>
Repository: rust
Issue: doc-tests do not compile in release mode with --release
Labels: T-rustdoc,A-macros,C-bug,A-doctests

doc-tests do not compile in release mode with --release

```rust
#[cfg(debug_assertions)]
compile_error!("use --release mode!");
```

```
   Compiling playground v0.0.1 (/playground)
    Finished release [optimized] target(s) in 0.58s
     Running target/release/deps/playground-c4b7af53795dc52c
   Doc-tests playground
error: use --release mode!
 --> /playground/src/lib.rs:2:1
  |
2 | compile_error!("use --release mode!");
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Standard Output

running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
```
Repository: go
Issue: net/http: allow ListenAndServeTLS to omit PEM file values if TLSConfig.GetConfigForClient set
Labels: NeedsFix

If I set GetConfigForClient and start the server using ListenAndServeTLS the arguments of ListenAndServeTLS, the server certificate and its key are lneeded to be given and they are also loaded. I have set the server certificate and its key in the configuration TLSConfig served by GetConfigForClient before. So using GetConfigForClient ListenAndServeTLS should ignore its arguments and they should also be optional.
Repository: TypeScript
Issue: spread operator for enum
Labels: Suggestion,Awaiting More Feedback

<!-- 🚨 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

<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->
- Enum
- Spread operator

## Suggestion

<!-- A summary of what you'd like to see added or changed -->
I would like to use the spread operator to spread the values (or maybe the keys) of an enum.

## Use Cases

<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->
I want to use this to check or print available types of enum type.

## Examples
<!-- Show how this would be used and what the behavior would be -->
```typescript
enum TestStatus{
    PENDING,
    ACCEPTED,
    WRONG_ANSWER
}
console.log(...TestStatus); // prints: "PENDING"  "ACCEPTED"  "WRONG_ANSEWR"
```

## Checklist

My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: go
Issue: x/build: netbsd-amd64-8_0 builder timing out frequently
Labels: Testing,OS-NetBSD,Builders,NeedsInvestigation

Four of the last five failures on the `netbsd-amd64-8_0` builder are timeouts in various tests.
I can't tell whether the builder is slow or the test is triggering some sort of deadlock.

https://build.golang.org/log/a64cd49d7d367f90e6b79ab84714b4c065763168
https://build.golang.org/log/f7f50b085698aa5480d2c34a3e6c250595317bf6
https://build.golang.org/log/7b749c8616a9b7e9a77c7735038673f9a9dc5d37
https://build.golang.org/log/26dd20510233ec659adf0d5987690164d8abaa6a

CC @bsiegert @bradfitz
Repository: create-react-app
Issue: TypeScript support makes test with certain deps fail
Labels: issue: needs investigation,issue: typescript

### Is this a bug report?

Yes.

Certain dependencies (specifically carbon-charts) make the tests fail. The bug ist that the relevant settings for jest can not be overwritten. See https://github.com/carbon-design-system/carbon-charts/issues/126 for the correspondent issue at carbon-charts.

### Did you try recovering your dependencies?

Yes

### Steps to Reproduce

    npx create-react-app test --typescript
    cd test
    npm i @carbon/charts --save
    echo "import '@carbon/charts';" >> src/App.tsx
    npm test

### Expected Behavior

Tests should run fine.

### Actual Behavior

```
 FAIL  src/App.test.tsx
  ● Test suite failed to run

    Jest encountered an unexpected token

    This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.

    By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".

    Here's what you can do:
     • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
     • If you need a custom transformation specify a "transform" option in your config.
     • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

    You'll find more details and examples of these config options in the docs:
    https://jestjs.io/docs/en/configuration.html

    Details:

    /tmp/test/node_modules/@carbon/charts/index.js:2
    import { BaseChart } from "./base-chart";
           ^

    SyntaxError: Unexpected token {

      25 | 
      26 | export default App;
    > 27 | import '@carbon/charts';
         | ^
      28 | 

      at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:471:17)
      at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:513:25)
      at Object.<anonymous> (src/App.tsx:27:1)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        1.65s
```

### Reproducible Demo

See commands above.
Repository: go
Issue: x/text: Get unicode script name in addition to script code
Labels: NeedsInvestigation

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version = 1.12.4

</pre>

### Does this issue reproduce with the latest release?
Yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env GOARCH="amd64"
GOBIN="/Users/user/dev/apl/pp/parsec/fed/_vendor/bin"
GOCACHE="/Users/user/go/cache"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/user/dev/apl/pp/parsec/fed:/Users/user/dev/apl/pp/parsec/fed/_vendor"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12.4/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12.4/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wm/mbpr1q9j5vsb67r0yn4zl4m40000gn/T/go-build893585754=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->

I want to get the `RangeTable` of a script given a specific language.

```
import (
    "golang.org/x/text/language"
    "unicode"
)

...

script, confidence := language.French.Script() 
scriptAsString := script.String() // here scriptAsString = "Latn"
rangeTable, ok := unicode.Scripts[scriptAsString] // here ok = false, because the Scripts map has key "Latin" and not "Latn"
```

The problem is that the following function returns the `script code`
```func (s Script) String() string ```

Whereas the map unicode.Scripts has all of its keys using the `script name`

FIY: https://en.wikipedia.org/wiki/ISO_15924#List_of_codes

### What did you expect to see?
I would expect one of those:
1. Be able to get a `script name` in addition to get the `script code`.
2. Have a translation table between `script code` and `script name`
3. Have a map `unicode.Scripts` that goes from `script code` to `RangeTable`

Open thread on stack overflow here: 
https://stackoverflow.com/questions/56003838/get-unicode-script-name-in-go
Repository: go
Issue: net/http: Client.Do returns different errors on context deadline depending on req/conn state
Labels: help wanted,NeedsInvestigation

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
go version go1.12.4 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/m.laletin/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/m.laletin/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build654146316=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?
Run multiple times program on my server (24 cpu)
https://play.golang.org/p/d00_wxKDN5f
With single goroutine - problem did not appears.
Problem appeared not every run, but in 3-4 runs at least one was faulty.


### What did you expect to see?
all goroutines: done = true, err = Get http://240.0.0.1/test: context deadline exceeded

### What did you see instead?
all gouroutines returned at the same time, after 4 seconds, like i specified in parent context.WithTimeout. But some goroutines returned before parentContext.Done was closed (error was i/o timeout), and some gorotines returned after parentCtx.Done was closed (with expected error "context deadline exceeded").
<pre>
2019-05-06T18:29:37.969098118+03:00 start
2019-05-06T18:29:41.969304132+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969347778+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969298753+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969580442+03:00 done = true, err = Get http://240.0.0.1/test: context deadline exceeded
2019-05-06T18:29:41.969298324+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969589394+03:00 done = true, err = Get http://240.0.0.1/test: context deadline exceeded
2019-05-06T18:29:41.969461857+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969294915+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969336744+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
2019-05-06T18:29:41.969433802+03:00 done = false, err = Get http://240.0.0.1/test: dial tcp 240.0.0.1:80: i/o timeout
</pre>
Repository: pytorch
Issue: torch.nn.threshold cannot accept tensor as a threshold
Labels: module: nn,triaged,enhancement

## 🚀 Feature
I think it will be useful if we can pass threshold as a tensor to the threshold function. in this way we can compute the backprop of the threshold tensor and use it in training process.

right now the threshold function just takes non-tensor threshold
Repository: flutter
Issue: Marker infoWindow isn't updating on Android
Labels: platform-android,p: maps,package,has reproducible steps,P2,found in release: 2.0,found in release: 2.3,team-android,triaged-android

## Minimal code
```
void main() => runApp(MaterialApp(home: Scaffold(appBar: AppBar(), body: MyPage())));

class MyPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _MyPageState();
}

class _MyPageState extends State<MyPage> {
  LatLng _latLng = LatLng(39.819976, -123.806769);
  String _title = "Good";

  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        SizedBox(
          width: 300,
          height: 300,
          child: GoogleMap(
            initialCameraPosition: CameraPosition(target: _latLng, zoom: 12),
            markers: [
              Marker(markerId: MarkerId("id"), position: _latLng, infoWindow: InfoWindow(title: _title)),
            ].toSet(),
          ),
        ),
        RaisedButton(
          child: Text("Update"),
          onPressed: () {
            setState(() {
              _title = "Morning";
              _latLng = LatLng(39.809990, -123.792213);
            });
          },
        ),
      ],
    );
  }
}
```

When you tap on `Update` button, it simply changes the `title` of the `InfoWindow`, iOS seems to update the title with `InfoWindow` opened but Android fails. 

### Screenshot for iOS (working fine)
![ezgif com-video-to-gif](https://user-images.githubusercontent.com/40364434/57240968-8c4a8f00-704d-11e9-8718-af6fdf8712a1.gif)


### Screenshot for Android (not working fine)
![ezgif com-video-to-gif (1)](https://user-images.githubusercontent.com/40364434/57240972-8eace900-704d-11e9-9b89-79988c6b04e9.gif)



### Flutter doctor
```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v1.3.13, on Mac OS X 10.14 18A389, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.4)
[✓] Connected device (1 available)

• No issues found!
```
Repository: flutter
Issue: Marker InfoWindow not showing multilines snippet for Android (works for iOS)
Labels: platform-android,customer: crowd,p: maps,package,has reproducible steps,P2,found in release: 2.0,found in release: 2.3,team-android,triaged-android

## Minimal code
```
void main() => runApp(MaterialApp(home: Scaffold(appBar: AppBar(), body: MyPage())));

class MyPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _MyPageState();
}

class _MyPageState extends State<MyPage> {
  LatLng _latLng = LatLng(39.819976, -123.806769);

  @override
  Widget build(BuildContext context) {
    return GoogleMap(
      initialCameraPosition: CameraPosition(target: _latLng, zoom: 12),
      markers: [
        Marker(
          markerId: MarkerId("id"),
          position: _latLng,
          infoWindow: InfoWindow(title: "Title", snippet: "Good\nMorning"),
        ),
      ].toSet(),
    );
  }
}
```

### Screenshot for iOS (working 
<img width="223" alt="ios_snippet" src="https://user-images.githubusercontent.com/40364434/57241191-14309900-704e-11e9-9c3b-968c5e69c2f9.png">


### Screenshot for Android (not working)
<img width="208" alt="android_snippet" src="https://user-images.githubusercontent.com/40364434/57241199-172b8980-704e-11e9-9abe-01255979b1d1.png">


You can see `Morning` isn't getting printed in Android but it does in iOS. 

### Flutter doctor
```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v1.3.13, on Mac OS X 10.14 18A389, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.4)
[✓] Connected device (1 available)

• No issues found!
```
Repository: flutter
Issue: Create onLoad event in SearchDelegate
Labels: c: new feature,framework,f: material design,P3,team-design,triaged-design

## Use case

I need to show a list of users when loading the SearchDelegate screen. Taking in consideration the [API](https://docs.flutter.io/flutter/material/SearchDelegate-class.html) there is nothing that allows me to load something based or not in the query and that is only triggered once.

Playing with `buildResults` and `buildSuggestions` take me nowhere, specially because the events keep firing whenever I write anything in the SearchInput.

## Proposal

Create an event that fires only on load.
Repository: flutter
Issue: Allow to disable AutoFocus in input using SearchDelegate
Labels: c: new feature,framework,f: material design,P2,workaround available,team-design,triaged-design

## Use case

Allow to disable the auto-focus being done in the input of the SearchDelegate. This feature is also related to [this feature request](https://github.com/flutter/flutter/issues/32153).  If something is being fired in the `onLoad` event it might be counterproductive to have the keyboard immediately open because of the focusness.

## Proposal

Convert this:
```
showSearch(
    context: context,
    delegate: MyDelegate(),
    query: '',
);
```
Into this:
```
showSearch(
    context: context,
    delegate: MyDelegate(),
    query: '',
    autoFocus: false,
);
```
Repository: flutter
Issue: Support iOS short task execution
Labels: c: new feature,platform-ios,would be a good package,package,P3,team-ios,triaged-ios

iOS supports running short tasks in a way that gives them a little extra time to complete if the app moves out of the foreground.

iOS Docs:
https://developer.apple.com/library/archive/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html

Flutter should support the ability to schedule tasks on the Dart side in a way that they will take advantage of this iOS feature. This can either be built into Flutter or built as a plugin.
Repository: flutter
Issue: Consider removing Matrix4.fromFloat32List from the engine
Labels: engine,c: performance,platform-web,c: proposal,P3,team-web,triaged-web

If we do not allocate `Matrix4` using externally instantiated lists, we can communicate to the compiler that the size of the list is always exactly 16 element. Using this information the compiler can eliminate range checks.