sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: when inferencing via object detection api pb files and pbtxt.
Labels: category: dnn

OS : ubuntu 16.04 LTS
Opencv : 4.4.0 (with CUDA)
Tensorflow version : 1.13.2


I've found that the height stride and width stride work very well with 16.

I made a pb file by modifying the stride of resnet 101 config through the tensorflow object detection api. (16 -> 4)

feature_extractor {
  type: "faster_rcnn_resnet101"
  first_stage_features_stride: 16
}
first_stage_anchor_generator {
  grid_anchor_generator {
    **height_stride: 4
    width_stride: 4**
    scales: [0.25, 0.5, 1.0, 2.0]
    aspect_ratios: [0.5, 1.0, 2.0]
  }
    }

The width_strides and height_strides were modified, and pbtxt was created by using tf_text_graph_faster_rcnn.py.

In TensorFlow, the inference is very good through the learned pb file.
However, no object is detected if opencv calls through pb files and pbtxt files.

Does opencv only work when width_stride and height_stride are 16?
When I modify width_stride and height_stride, is there any way to work well?
Repository: flutter
Issue: Allow passing chrome flags/options through web runner
Labels: c: new feature,tool,platform-web,c: proposal,P3,team-web,triaged-web

## Use case

I need the '--allow-secure-localhost' flag passed into the chrome runner for development purposes.

## Proposal

It would be very nice if support for passing commands through to chrome was added.


(although as a 'workaround' I just stopped being lazy and create a root certificate)
Repository: terminal
Issue: add option to enable Scroll Forward like on cmd
Labels: Issue-Feature,Help Wanted,Area-Output,Area-TerminalControl,Product-Terminal

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

# Description of the new feature/enhancement


it would be nice to have an option that would allow scrolling under the end of the text so everything is not stacked at the bottom and I don't have to do `clear` every time

there is no need to be able to scroll indefinitely,  just a bit so we can see a bit better

## expected:
![image](https://user-images.githubusercontent.com/58974586/102687783-f64b8400-41f1-11eb-9b9a-f5940dbc11a6.png)
## actual:
![image](https://user-images.githubusercontent.com/58974586/102687807-1bd88d80-41f2-11eb-895f-fb64cbb4c2d3.png)

# Proposed technical implementation details


an option in the settings.json like

`"ScrollForward": true,`
Repository: pytorch
Issue: Turn deprecation warnings into errors in CI
Labels: module: ci,module: tests,triaged

This was a suggestion by @t-vi on Slack after seeing gh-49152. I agree that'd be really useful, when something is deprecated it makes sure that nothing in PyTorch itself still uses that functionality. The only valid uses will be in test code, and there the warnings should be explicitly silenced with `warnings.filterwarnings`.

This same idea could be extended to other warning classes. In NumPy and SciPy all warnings are turned into errors in CI, and it's extremely useful. Getting to that state will be a painful cleanup exercise, but once the warning count in CI is zero, it stays there. Right now the test suite output is many thousands of lines long and very different to read through, which means people don't bother and keep writing code that emits new warnings.

For reference, here's how NumPy does it: https://github.com/numpy/numpy/blob/master/numpy/_pytesttester.py#L17. In principle it's very easy with `pytest`, putting something like the following in `pytest.ini`:
```
filterwarnings =
    error
# Filter out annoying import messages.
    ignore:Not importing directory
    ...
```

cc @ezyang @seemethere @malfet @walterddr @pytorch/pytorch-dev-infra @mruberry @VitalyFedyunin
Repository: TypeScript
Issue: Private `[Symbol.asyncIterator]` and `[Symbol.iterator]` methods incorrectly reported as unused
Labels: Bug

<!-- 🚨 STOP 🚨 STOP 🚨 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 the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  4.2.0-dev.20201219

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**

`Symbol.iterator` `Symbol.asyncIterator`

**Code**

```ts
export class Polling {
  private async *[Symbol.asyncIterator]() {}
  private *[Symbol.iterator]() {}

  async loop() {
    for await (const updates of this) {
      void updates
    }
  }
  syncLoop() {
    for (const updates of this) {
      void updates
    }
  }
}
```

**Expected behavior:**
No errors.

**Actual behavior:**

    '[Symbol.asyncIterator]' is declared but its value is never read.
    '[Symbol.iterator]' is declared but its value is never read.


[**Playground Link**](https://www.staging-typescript.org/play?noUnusedLocals=true&noUnusedParameters=true&target=6&ts=4.2.0-dev.20201219#code/KYDwDg9gTgLgBAYwDYEMDOa4AUJKQSwDsBzOAbwCg44wp8A3FGYOdAT0ITgCoBtAZTYBbAEa4AdO04BJZlCbQAugAoAlOQC+VGnUbMeA4WKTj8chVBXqyW7VK5IIEMGvLbqAM2isA7ijNwyggQhGjwAK5gACZMwJgQHnAwABb4aNbu1HD0EPhRcJExzGiZWtRlcGgcCAAyTi4ZWXBeUIHBoRHRsfGJKWmNTdm5+YXdpdpaWkA)
Repository: godot
Issue: Saving branch as scene loses script variable data and some built in overrides such as layer masks
Labels: bug,topic:editor

**Godot version:**
3.2.3


**OS/device including version:**
Linux


**Issue description:**
On saving a node branch as a scene file, it has lost script variable overrides for some of my nodes, breaking the configuration in my game, and also removed some layer mask information. Hopefully these steps will let you know whether it's a known fault or not?

1. I have the following structure and have selected to save 'Map_Container_Disableable' node. If you observe I have child node Missile_Launcher3 selected and is as follows. Please observe 'Facing', which is -1 from the default.

![image](https://user-images.githubusercontent.com/12863685/102695576-2a3d9e00-4220-11eb-9eb4-746fac5ff6f8.png)

The data for this selected child node looks like this:
[node name="Missile_Launcher3" parent="Map_Containers_Disableable/Container_Missile_Launcher" instance=ExtResource( 4 )]
position = Vector2( 343, 3074 )
z_index = -1
facing = 1

2. I then save 'Map_Container_Disableable'  as a scene branch file and the data is now as follows. As you can see 'facing' has gone and when I look at this branch in Godot it has reverted to the default of 1 for evert item, wiping ever -1. 

[node name="Missile_Launcher3" type="KinematicBody2D" parent="." instance=ExtResource( 2 )]
position = Vector2( 343, 3074 )
z_index = -1
collision_layer = 8
collision_mask = 0
script = ExtResource( 1 )
firing = 0.25

facing has disappeared and on loading the new scene, it is the default of 1. 

As you can see, facing has been put in, but it's the default of -1, when the original was overrriden with 1

It is also doing it with built in data such as collision layer masks too.

For example, 
![image](https://user-images.githubusercontent.com/12863685/102698964-3bdf6f80-4239-11eb-93af-eb8c6c5484a6.png)

The Collision Mask which is shown as overridden completely disappears on saving as a branch, i.e. the mask is 0.

It seems as if the bug is related to overridden values on inherited scenes.

Please let me know if this is a known fault or whether you would like a sample, but I you may need to download the whole project from git, however the fault is simply limited to the activity above so knowledge of the project is irrelevant.

This is not good when you cannot rely on Godot to keep integrity of your data :(
Repository: excalidraw
Issue: improve library performance
Labels: performance ⚡️

When you have too many or too complex items in the library, it tends to have very poor performance.

I suggest 2 things:

- [ ] Split the rendering of each item ((or a group of items) into individual animation frames so that opening the library doesn't leave users staring at a blank library for a long time.
- [ ] Cache rendered canvases for each item separately so that repeatedly opening the library (or modifying it such as adding/removing items) doesn't need to go through all the rendering again.
Repository: TypeScript
Issue: Can't destruct a Partial<T> into T that uses default values
Labels: Bug

<!-- 🚨 STOP 🚨 STOP 🚨 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 the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  4.2.0-dev.20201219

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** Destructuring with partial and default value

**Code**
```ts
type T = {a: number};
const t: Partial<T> = {};
const {a = 10}: T = t;
```

**Expected behavior:**

This should be allowed. For each prop with a default value, the `undefined` type should be Exclude'd from the source object.

**Actual behavior:**

Throws:

 `Type 'Partial<T>' is not assignable to type 'T'.
  Types of property 'a' are incompatible.
    Type 'number | undefined' is not assignable to type 'number'.
      Type 'undefined' is not assignable to type 'number'.`


**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
https://www.typescriptlang.org/play?ts=4.2.0-dev.20201219#code/C4TwDgpgBAKlC8UDeBDAXFAdgVwLYCMIAnAXwG4BYAKAGMB7TAZ2CmAwAUUjgBLFAGwA8MAHwJk5avSYtU4gIwAGEhjiJgZIA
**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Repository: create-react-app
Issue: CRA does not transpile static class properties from ES6 modules
Labels: needs triage

I have created a blank CRA app with npx create-react-app test and installed one of my self-written ES6 modules. Some modules contain classes with static class properties. I get an error when I do "npm start": 

Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation. If you want to leave it as-is, add @babel/plugin-syntax-class-properties (https://git.io/vb4yQ) to the 'plugins' section to enable parsing.

However, if I use static class properties within a class in the /src - Directory, all is fine and CRA transpiles it OK.

What am I am doing wrong?
Repository: TypeScript
Issue: Autocomplete Filepath Strings. 
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 help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ

-->

## Search Terms
Autocomplete, fs, require, strings. 

<!-- List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily -->

## Suggestion

I would like to be able to mark a string as a relative path, and get autocomplete for it if it's initialised with a constant. 

<!-- A summary of what you'd like to see added or changed -->

## Examples

<!-- Show how this would be used and what the behavior would be -->

``` Typescript 
var path: tsRelativePath;
path = "./fi 
//pressing ctrl-space should autocomplete to ./file or ./file.txt.
```

``` Typescript 
fs.readFile("./fi 
//pressing ctrl-space should autocomplete to ./file or ./file.txt.
```

Obviously some name for the type that doesn't conflict with common type names will have to be chosen. 

## Use Cases

It would be nice to have autocomplete for fs.read etc. 

I'm making a modified require.js library which allows me to use a custom import function on the client to load resources (html templates, css, 3D models, animations, shaders, etc.) relative to the current script file. I'd like to be able to get auto-complete on the paths and compiler errors if the resource doesn't exist (e.g. i forgot to build my scss files). 

I would also like these paths to update when you move or rename a resource the same way paths update when you move or rename a script file. 

<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->

I'm aware this functionality can be enabled in VSCode with plugins but I'm stuck using Visual Studio and would like it to be supported natively. 

## Checklist

My suggestion meets these guidelines:

* [ y] This wouldn't be a breaking change in existing TypeScript/JavaScript code (as long as the type name is chosen well)
* [ y] This wouldn't change the runtime behavior of existing JavaScript code
* [ y] This could be implemented without emitting different JS based on the types of the expressions
* [ y] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [ y] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
Repository: electron
Issue: Use flatpak-spawn when in Flatpak
Labels: enhancement :sparkles:

<!--  As an open source project with a dedicated but small maintainer team, it can sometimes take a long time for issues to be addressed so please be patient and we will get back to you as soon as we can.
-->

### Preflight Checklist
<!-- Please ensure you've completed the following steps by replacing [ ] with [x]-->

* [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 for a feature request that matches the one I want to file, without success.

### Problem Description
Electron’s sandbox doesn’t work under Flatpak.  [Zypak](/refi64/Zypak) can be used as an alternative, but it relies on `LD_PRELOAD` hacks, [which lead to bugs.](/flathub/im.riot.Riot/issues/152)


### Proposed Solution

A better solution would be to use `flatpak-spawn`, which is a fully supported method for sandboxed Flatpak app to execute a program under an even tighter sandbox.

### Alternatives Considered
Don’t use the sandbox when under flatpak, or rely on `LD_PRELOAD` indefinitely.

### Additional Information
<!-- Add any other context about the problem here. -->
Repository: godot
Issue: Custom Resource loses all methods in editor after scene reload
Labels: bug,topic:editor

**Godot version:**
3.2.3 stable


**OS/device including version:**
Macbook Pro
macOS Mojave


**Issue description:**
A setter for a variable in a custom Resource does not get called after reloading the saved scene.

Minimal example: I have a custom resource (MyResource) with an exported float x. I define a setter for x that sets the value and prints it:
```
extends Resource
class_name MyResource

export (float, 0, 1) var x = 0 setget on_set_x

func on_set_x(value):
	x = value
	print(x)
```

I also have a tool Node2D with an exported resource, which is set to a new MyResource if it is null upon enter tree:

```
extends Node2D
tool

export (Resource) var resource

func _enter_tree():
	if not resource: 
		resource = MyResource.new()
```

Expected behavior: setter is called (and value of x is printed) whenever slider for x is dragged in inspector.

Actual behavior: setter gets called as expected at first, but no longer gets called if the saved scene is reloaded.


EDIT: It seems that the resource actually loses access to all its methods after the reload.

**Steps to reproduce:**
Described above.

**Minimal reproduction project:**
[ResourceSetterIssue.zip](https://github.com/godotengine/godot/files/5720374/ResourceSetterIssue.zip)
Repository: opencv
Issue: ABI: re-enable quaternion code for ABI/API check
Labels: category: build/install

Due to active ongoing development it is disabled in OpenCV 4.5.1 release: #19168

We need to re-enable it later.
Repository: godot
Issue: Cannot use keyword self as a pattern in a match expression
Labels: discussion,topic:gdscript

**Godot version:** 3.2.3
**OS/device including version:** Windows 10

**Issue description:**
I can't reference a class variable using self as a pattern in a match expression. I get the error "Only constant expression or variables allowed in a pattern".

**Example script:**
```
var a = 2
var b = 3;

func _ready():
	match self.a:
		self.b: # error
			print(self.b)
		b: # works
			print(b)
```
Repository: TypeScript
Issue: Async generator typing
Labels: Needs Investigation,Rescheduled

v4.1.2

Code:

```js
async function* foo() {}
foo().next(); // error
```

Result:

Return type of foo is `{}`

Expected:

Should be `AsyncGenerator`

---

Edit: apparently this isn't a bug with TS per se, however it still affects intellisense in vscode for vanilla JS.
Repository: node
Issue: doc: Clarify what <string> means in path option of fs.readFile, fs.readFileSync etc. 
Labels: question,doc,fs

- **Version**:  14.15.3 x64 
- **Platform**:  Windows 10 64-bit
- **Subsystem**: fs

Affected URL(s):
https://nodejs.org/dist/latest-v14.x/docs/api/fs.html#fs_fs_readfile_path_options
https://nodejs.org/dist/latest-v14.x/docs/api/fs.html#fs_fs_readfilesync_path_options

## Description

I am not sure if this a documentation issue or a bug. I get a ENOENT error when I use a url string as path for fs.readFile. However, if I convert the url string to a file path, I am able to read the file.  

It needs to be clarified if path strings are exclusively file paths and not urls. If it can also be a url string (and I see no reason for not supporting them?) , then this is bug/feature request!
Repository: pytorch
Issue: Annotating submodule with correct type fails scripting
Labels: oncall: jit,TSRootCause:InvalidCustomClass,TSUsability

## 🐛 Bug

`torch.jit.script` isn't happy with type annotations for sub-modules, even though those type annotations are technically correct. Error message also isn't clear enough for users who lack inner-workings of TorchScript to take action.

This is because `torch.nn.Module` is a `ignoredBuiltinClass` in `try_ann_to_type`.

## To Reproduce
```
import torch

class TestSubModule(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self.v = torch.rand((2, 3))

    def forward(self):
        return self.v

class TestModule(torch.nn.Module):
    sub: TestSubModule   # Comment out this line to make test case pass

    def __init__(self):
        super().__init__()
        self.sub = TestSubModule()

    def forward(self):
        return self.sub()

m = TestModule()
print(m())

scripted_m = torch.jit.script(m)
print(scripted_m())
```

Error:
```
ValueError: Unknown type annotation: '<class '__main__.TestSubModule'>' at
```


## Expected behavior

Either this type annotation is accepted (preferred behavior) or give an error telling user how to fix the error. This can be done by enhancing type inference from annotation so that it conditionally supports `torch.nn.module` children classes rather than always rejecting them.



cc @gmagogsfm
Repository: rust
Issue: parse error in `#[feature(...)]` discards all mentioned features.
Labels: A-attributes,A-parser,C-bug

```rust
#![feature(const_generics, use std::mem)]

pub struct Bar<const N: usize>;
```
and
```rust
#![feature(const_generics, 'other_feature)]

pub struct Bar<const N: usize>;
```
Both emit both a parse error and 
```
error[E0658]: const generics are unstable
 --> src/lib.rs:3:22
  |
3 | pub struct Bar<const N: usize>;
  |                      ^
  |
  = note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information
  = help: add `#![feature(min_const_generics)]` to the crate attributes to enable
```
Ideally we should still accept the features parsed before that error, so it would be nice to only emit the parse error here.

Split out from #80077, thanks @leonardo-m for opening that issue.
Repository: flutter
Issue: Reorder widgets in ReorderableListView with a Controller
Labels: c: new feature,framework,f: scrolling,c: proposal,P3,team-framework,triaged-framework

## explanation 
what I mean that I need to reorder a widget without long pressing on it an moving it above or under its current position, instead I want move the widget I press on to the top of the list with the same effect and i can control the duration of the moving time from point A to B 

## Example 
Video of the effect I'm looking to do

https://user-images.githubusercontent.com/28146110/102709361-a5e82b00-42b2-11eb-8877-794d362a9aa6.mp4