sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: deno
Issue: feature: support cidr blocks egress control with --allow-net
Labels: permissions,suggestion

currently --allow-net supports only IPs and domains, unfortunately it doesn't support cidr blocks yet

e.g.
```
deno run --allow-net=xyz.com,abc.com,10.0.0.11/24
```
Repository: react
Issue: react-devtools-inline package now has react@experimental dependency
Labels: Type: Bug,Component: Developer Tools

I recently updated DevTools to use the new, experimental `getCacheForType` API (#20548) which works well for the browser and standalone extension versions, because they bundle their own version of React (the experimental release). This has left the `react-devtools-inline` package (used by e.g. Code Sandbox) in an unreleasable state though until the new Suspense APIs are released as stable.

Perhaps I could go back to the last commit prior to #20548 and do one final release, but then I will be blocked.
Repository: transformers
Issue: EncoderDecoderModel with different model dimensions
Labels: WIP

## Who can help
@patrickvonplaten, @patil-suraj

## Information

When instantiating an `EncoderDecoderModel` from two pretrained models whose model dimensions are different, a `RunTimeError` occurs at the `CrossAttention` calculation step. 

The reason is, that regardless of a potentially different encoder model dimension, the projection layers for key and value are initialized with the decoder model dimension. 

This leads to a dimensionality mismatch when performing the matrix multiplication of encoder outputs (encoder model dimension) in the key and value projection layers (decoder model dimension).

Looking a little bit deeper in the API I would suspect it should be easy to provide the correct encoder model dimension to the `Attention` module in most Model implementations and their key/value projection layers, if the `add_cross_attention=True` argument is set. Also, I think the encoder model dimension should be easily accessible via `self.encoder.config.d_model` or something along these lines.

Generally, I think there is no reason against using `EncoderDecoderModel` with `encoder='bert-large-cased'` (`d_model=1024`) and `decoder='gpt2'` (`d_model=768`), but currently this setup doesnt't work.

Thanks a lot for looking into it :) 

Best regards
Lars
Repository: TypeScript
Issue: Add a "specify type" command to tsserver
Labels: Suggestion,Awaiting More Feedback

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms

<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback.

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
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, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

<!-- A summary of what you'd like to see added or changed -->

I would like to be able to highlight an expression/binding and have typescript let me input the type it should be instead of inferring the type and/or replacing the current type.

## 📃 Motivating Example

<!--
  If you were announcing this feature in a blog post, what's a short explanation that shows
  a developer why this feature improves the language?
-->

```mjs
// a .js file, as I use JSDoc mostly
function double(a) {
  return a * 2;
}
```

I would like to be able to highlight `a` and have a JSDoc in JS or type position in TS open up for me to input the type `number` manually. In particular figuring out nesting for "casting" in JS can be confusing if applied to non-bindings:

```mjs
let a = JSON.parse(_);
```

## 💻 Use Cases

<!--
  What do you want to use this for?
  What shortcomings exist with current approaches?
  What workarounds are you using in the meantime?
-->

I mostly want to use this for tooling that can integrate against existing code without my cursor jumping around to manually specify types. Having this be done and placing my cursor back where it was would be mildly convenient. Having it as an API would also let me do this automatically with some tooling that works on existing code instead of just code generators.
Repository: godot
Issue: Unable to run multiple Skeleton IK on chain
Labels: bug,topic:animation

**Godot version:**
master


**OS/device including version:**
Windows 10


**Issue description:**
Starting a skeleton ik node stops all previous if bones share some of its chain. Similar to #38026 but it's fix only works for complete separated chain (ie left arm and right arm). In this case a "Spine IK" for aiming was getting cleared by a "LeftHand IK" for hand placement (left arm chain should receive both IK influences).

**Steps to reproduce:**
Set up two Skeleton IK nodes, one on parent bone and one on child (ie chest and left arm) and start them both.

**Some suggestion:**
I know this is not the place for it, but saving IK information to animation keyframes could be useful. As it seems right now, IK transforms on bones are not recorded on "pose" property of bones.
Repository: electron
Issue: [Bug]: webContents.print({silent:true}) doesn't respect the print setting from the default printer
Labels: platform/windows,component/printing,bug :beetle:,11-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Electron Version

11.2.0

### What operating system are you using?

Windows

### Operating System Version

Window 10 1909 (OS Build 18363.1279)

### What arch are you using?

x64

### Last Known Working Electron version

not sure

### Expected Behavior

Calling webContents.print({silent:true}), the default printer settings are not respected.

### Actual Behavior

Calling webContents.print({silent:true}) should use the printer preferences defined in the default printer.

### Testcase Gist URL

_No response_

Reproduction steps:
1. Open window's Printers &Scanners setting
2. Click Microsoft Print to PDF printer and click Manage button
3. In Manage your device screen, clicks Printing preferences and change the Orientation to Landscape
4. Save the printing preference and Set "Microsoft Print to PDF" as the default printer
5. npm start the app
6. Save the PDF file and open it with any PDF viewer
7. See the file prints in _portrait_ instead of _landscape_ orientation. 

main.js
```
(async () => {
  const {app, BrowserWindow} = require("electron");

  await app.whenReady()

  const window = new BrowserWindow();
  await window.loadURL("https://google.com");
  window.webContents.print({silent: true});
})();
```
Repository: terminal
Issue: Delay when launching terminal from jump list compared to launching directly
Labels: Area-Performance,Issue-Bug,Product-Terminal,Priority-3,Tracking-External

# Environment

```none
Windows build number: 10.0.19042.0
Windows Terminal version: 1.6.10571.0
```

# Steps to reproduce

Open Windows Terminal from jump list with any profile.

# Expected behavior

Windows Terminal starts as quick using jump list as when started without using it.

# Actual behavior

Windows Terminal launches a few seconds longer when using jump list compared to startup without using it.
I attached video below to better show what I mean (excuse me for Windows in Polish).

https://user-images.githubusercontent.com/11475524/111529692-bb121000-8762-11eb-86bd-349330d0fa8b.mp4

This issue occurs to me on both my desktop PC and my laptop logged to the same Microsoft account. But I was able to also reproduce it on other, local account on my desktop (I used this account to record the above video).
Repository: pytorch
Issue: Provide half-away-from-zero rounding mode on Tensor::round
Labels: module: cpp,triaged,enhancement,function request

## 🚀 Feature

Currently Tensor::round rounds half-to-nearest-even, however, some platforms and tools round half-away-from-zero by default. One of such examples is XLA, which uses half-away-from-zero by default (and half-to-nearest-even is emulated in libraries like JAX).

Operations like Tensor::div already support `rounding_mode` as an option, so hopefully a similar option - but with different values - can be added to round.

## Motivation

I am writing bindings for both PyTorch and XLA for the Elixir programming language and one of the discrepancies we found were the rounding operations. Both XLA and Elixir rounds half-away-from-zero, which is inconsistent to PyTorch default behaviour (which actually aligns with Python 3).

## Pitch

The current behaviour rounds both `-0.5` and `0.5` to `0`. A new rounding option should round them to `-1.0` and `1.0` respectively.

Thank you!


cc @yf225 @glaringlee
Repository: pytorch
Issue: [docs] Incomplete examples for torch.Generator
Labels: module: docs,triaged

https://pytorch.org/docs/stable/generated/torch.Generator.html?highlight=generator#torch.Generator :
the docs mention that `Used as a keyword argument in many In-place random sampling functions.`, but the code examples don't show any actual usage

cc @brianjo @mruberry
Repository: pytorch
Issue: [docs] torch.clamp / torch.clip do support None as placeholder of min/max, but this is not documented
Labels: module: docs,triaged

https://pytorch.org/docs/stable/generated/torch.clamp.html?highlight=torch%20clamp#torch.clamp does not mention it in the first overload

cc @brianjo @mruberry
Repository: pytorch
Issue: Add inplace variant for torch.minimum / torch.maximum
Labels: module: autograd,triaged,function request

Currently the supported mode is only out-mode which does not support autograd if IIUC.

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer
Repository: flutter
Issue: [plugin] espresso/integration_test Documentation for Integrated UI Testing - Android
Labels: a: tests,d: api docs,a: quality,package,f: integration_test,P2,p: espresso,team-android,triaged-android


Improve readme.mds on Espresso and integration_test to address two questions please
1) When would we want to use espresso plugin vs setting the integration_test plugin as tests that could use gradle task - is it just a matter of style - if someone is used to Espresso api syntax?
https://pub.dev/packages/integration_test#android-device-testing

2) Under what situations would we "need' either since integration_test testWidgets() dart syntax can generate an apk - when would we need/want to use the gradle task vs flutter driver?  flutter driver wants a UUID and the gradle task doesn't need that, and that feels like a slight downside for ci/cd (grep, sed, waiting, flakiness, etc is what we are working through today)
Repository: rust
Issue: rustc could explain that dyn Trait sometimes implies 'static
Labels: C-enhancement,A-diagnostics,A-lifetimes,A-trait-system,T-compiler,D-confusing

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur. 
-->

In the following code: [(playground link)](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=e90dff4021cba2a17e9215ce587df6cb)

```rust
trait Foo {}
impl<'a> Foo for &'a u32 {}
impl dyn Foo {
    fn hello(&self) {}

}
fn convert<'a>(x: &'a &'a u32) {
    let y: &dyn Foo = x;
    y.hello();
}
```

The current output is:

```
error[E0759]: `x` has lifetime `'a` but it needs to satisfy a `'static` lifetime requirement
 --> src/lib.rs:8:23
  |
7 | fn convert<'a>(x: &'a &'a u32) {
  |                   ----------- this data with lifetime `'a`...
8 |     let y: &dyn Foo = x;
  |                       ^ ...is captured here...
9 |     y.hello();
  |       ----- ...and is required to live as long as `'static` here
```

The error is correct, yet I didn't write `'static` anywhere in the program.  What gives?  This made me scratch my head for a few minutes.  As it turns out, in `impl dyn Foo`, `dyn Foo` is treated as short for `dyn Foo + 'static`.  The issue can be fixed by changing `impl dyn Foo` to `impl<'a> dyn Foo + 'a`.

I wouldn't say the current error is *bad*, exactly, but it would be nice if rustc could somehow warn the user about what's going on – either by warning on the impl itself, or by somehow attaching an explanation to the type error (though that might not be worth the complexity).
Repository: rust
Issue: Support importing enum variants through type aliases
Labels: A-resolve,T-lang,C-bug

[RFC 2338](https://github.com/rust-lang/rfcs/blob/master/text/2338-type-alias-enum-variants.md) made it possible to access enum variants through type aliases, like so:
```rust
enum Foo { F1, F2 }
type Bar = Foo;
let x = Bar::F1;
```
However, the following code still fails to compile:
```rust
enum Foo { F1, F2 }
type Bar = Foo;
use Bar::F1;
```
with:
```
error[E0432]: unresolved import `Bar`
 --> src/main.rs:6:5
  |
6 | use Bar::F1;
  |     ^^^ `Bar` is a type alias, not a module
```
Type aliases being limited in this way is a problem for libstd because it means that deprecating/renaming any enum must inevitably involve a breaking change, since re-exporting cannot be used (https://github.com/rust-lang/rust/issues/30827). This was encountered in https://github.com/rust-lang/rust/pull/82122#pullrequestreview-614863261 .
Repository: flutter
Issue: NDEBUG is defined for Windows host debug builds
Labels: engine,platform-windows,P2,c: tech-debt,team-engine,triaged-engine

Not sure what's going on here, but if I generate the builds with e.g.:

```flutter\tools\gn --no-lto```

The resulting build seems to have NDEBUG defined, which messes up our `DCHECK` calls.
Repository: flutter
Issue: Google Maps Places plugin support
Labels: would be a good package,package,c: proposal,team-ecosystem,P3,would require significant investment,triaged-ecosystem

## Use case
There is currently no first-party plugin for the Google Maps Places library:
[Android](https://developers.google.com/maps/documentation/places/android-sdk/overview)
[iOS](https://developers.google.com/maps/documentation/places/ios-sdk/overview)
[Web](https://developers.google.com/maps/documentation/javascript/places)

There are a few third-party plugins available that use the Places web service API directly ([example](https://pub.dev/packages/flutter_google_places)), but these do not work for web apps because the Places APIs don't allow CORS.

## Proposal
The solution is to provide a Flutter plugin that relies on the platform-specific SDKs (linked above).

I would also like the Places Autocomplete SDK (a ready-to-use UI framework for searching for places and retrieving place details) available for Android, iOS & Web on Flutter.
Repository: frp
Issue: Statistics update
Labels: enhancement

Hello,

I have noticed that TCP statistics are only updated when the socket is closed and not when the data is actually sent or received.
For example, as seen in the attached image, if an application keeps sending traffic for days without closing the socket, all the traffic is counted when the socket is finally closed.

It would be useful to control how often statistics are updated, with some setting in the ini file (real time, once per hour, per day, only at socket closure, etc)

Thanks

![image](https://user-images.githubusercontent.com/54985643/111592092-9e102800-87c8-11eb-9a78-0787ca620b42.png)
Repository: vscode
Issue: Notebook doesn't recompute heights
Labels: bug,notebook-layout

* opened `my-work.github-issues`
* from the milestone work query I opened a few items and moved them to April
* re-ran the query
* the height/rendering didn't update

Initially some old content was intermixed with current content. Then only the height was wrong

<img width="971" alt="Screenshot 2021-03-18 at 09 09 53" src="https://user-images.githubusercontent.com/1794099/111593153-f267d780-87c9-11eb-80a9-dc76768bcf99.png">
Repository: angular
Issue: Expose tree-shakable validator functions via public API
Labels: feature,area: forms,feature: in backlog

# 🐞 bug report

### Affected Package
@angular/forms


### Is this a regression?

<!-- Did this behavior use to work in the previous version? -->
No


### Description

Following https://github.com/angular/angular/pull/41189 in NG 11.2.6. I was expecting to be able to use the new validator functions directly.

e.g. use requiredValidator instead of Validators.required.

After a bit of digging it would seem that they are marked for internal use (?).

In the forms.d.ts, I expected `ɵangular_packages_forms_forms_bb` to be `requiredValidator`.

```
/**
 * @description
 * Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.
 */
export declare const ɵangular_packages_forms_forms_bb: StaticProvider;

/**
 * @description
 * Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.
 */
export declare const ɵangular_packages_forms_forms_bc: StaticProvider;

/**
 * @description
 * Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.
 */
export declare const ɵangular_packages_forms_forms_bd: any;

/**
 * @description
 * Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.
 */
export declare const ɵangular_packages_forms_forms_be: any;

/**
 * @description
 * Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.
 */
export declare const ɵangular_packages_forms_forms_bf: any;
```


## 🔬 Minimal Reproduction
N/A

## 🔥 Exception or Error
N/A

## 🌍  Your Environment

**Angular Version:**
11.2.6
Repository: TypeScript
Issue: Emitter helper function could be override by user code
Labels: Suggestion,Awaiting More Feedback

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms
emit, helper
<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
https://www.typescriptlang.org/play?target=1#code/MYewdgzgLgBA+nApgDyosATCMC8MAUAlLgHwwDeMUAFgE4gDuMYiTAorfbUTAL4CwAKCHAANgEMI2AEIUY43DACMfERKkwAIjBRpMMigOGCAbuNowMilk01ER4CCFGIAdKJABzfBlfjCQA

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
const __extends = () => { throw new Error() }

class B { a = 1 }
class D extends B {}

var d = new D()
console.log(d.a)
```

### 🙁 Actual behavior

Exception

<!-- What happened, and why it was wrong -->

### 🙂 Expected behavior

console.log(1)

<!-- What you expected to happen instead, and why -->
Repository: storybook
Issue: Controls: Add `table` type for arrays
Labels: feature request,addon: controls

As of Storybook 6.2, arrays are inferred to use the `object` control, which renders the JSON editor.

I propose to introduce a `table` control type for arrays, which renders a row for each value with a column for each property, just like [`console.table`](https://developer.mozilla.org/en-US/docs/Web/API/Console/table).

<img width="587" alt="Screenshot 2021-03-18 at 10 58 12" src="https://user-images.githubusercontent.com/321738/111607765-d881c100-87d8-11eb-8415-b7e20e36c98b.png">

Of course, values should be editable.

> This was originally [suggested](https://github.com/storybookjs/storybook/issues/13503#issuecomment-751412459) by @hydrosquall.