sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: SliverAppBar with FlexibleSpaceBar and TabBar
Labels: framework,f: scrolling,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-framework,triaged-framework

## Steps to Reproduce
https://docs.flutter.io/flutter/widgets/NestedScrollView-class.html
Just use the same code in this example it have SliverAppBar with the TabBar and also SliverList as a content.In this example SliverAppBar doesnt have flexibleSpace i'm trying to use flexibleSpace with background there is no error but TabBar also having the background image ..
TabBar shouldnt have background image its different and also title of FlexibleSpaceBar mixing with the TabBar's texts..


Flutter Doctor
```
[✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.UTF-8)
    • Flutter version 1.0.0 at /home/taliptako/flutter
    • Framework revision 5391447fae (3 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /home/taliptako/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] Android Studio (version 3.2)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 31.3.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] VS Code (version 1.30.1)
    • VS Code at /usr/share/code
    • Flutter extension version 2.21.1

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)

• No issues found!

```
Repository: TypeScript
Issue: TS2409 is an invalid error.
Labels: Suggestion,Awaiting More Feedback

**TypeScript Version:**  3.3.0-dev.20181222

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** TS2409

**Code**

```ts
class A {
  constructor() {
    // return an arrow function
    return message => {
      this._message = message;

      return this;
    };
  }

  bar() {
    console.log(this._message);
  }
}

const a = new A();
a('hello world').bar(); // 'hello world'
```

**Expected behavior:**
No error.

**Actual behavior:**
src/test.ts(4,5): error TS2409: Return type of constructor signature must be assignable to the instance type of the class.

I should be able to override the object returned from a constructor. 

> Normally constructors don't return a value, but they can choose to do so if they want to override the normal object creation process.

Souce: [MDN - new operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new#Description)
Repository: rust
Issue: Remove first instance of item that matches predicate
Labels: A-collections,T-libs-api,C-feature-request

There is currently no method on `Vec<T>` to remove the first item that matches a given predicate (closure). `retain` can of course be used remove *all* items that match a predicate, and `remove_item` to remove the first item *equal* to a given value, but that's it.

What I'd like to see is something like the following method:

```rust
fn remove_pred<F, T>(&mut self, f: F) -> bool where F: FnOnce(&T) -> bool {
    if let Some(pos) = self.iter().position(f) {
        self.remove(pos);
        true
    } else {
        false
    }
}
```

I'm not sure if this is the most efficient way to accomplish this, however. Either way, writing the above code is not particularly ergonomic for what I envisage is a common task. (A quick Google seems to support this.)

CC @Centril (for tagging and to give feedback)
Repository: TypeScript
Issue: Autocomplete: Prefer matches with the same capitalisation
Labels: Suggestion,In Discussion,Domain: Completion Lists

## Suggestion

When there are autocomplete matches with the same or similar name but different capitalisation, the matching capitalisation should be preferred. Or the match should be at least consistent - currently, there is no clear behavior. 

## Examples

How it looks when it doesn't work:  
![unbenannt](https://user-images.githubusercontent.com/17641229/50396774-48c14980-076c-11e9-95ff-44dd8bd56d7c.PNG)

How it looks when it works:  
![unbenannt2](https://user-images.githubusercontent.com/17641229/50396816-9047d580-076c-11e9-8373-d2afb7a9d875.PNG)

## 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: rust
Issue: sparc64: passing structures with floats in registers should use floating point registers
Labels: T-compiler,O-SPARC,C-bug

`librustc_target/abi/call/sparc64.rs` passes structures as `Uniform`, which get allocated to stack or "promoted" to integer registers by LLVM. According to the SPARC v9 64 Bit ABI definition in the SPARC Compliance Definition, floating point members should be promoted into floating point registers instead of integer registers, see page 47 in SCD 2.4.1. This also affects returning of structures, and makes `run-pass/structs-enums/struct-return.rs` fail. gcc returns the members of `struct Floats` in `%d0`, `%o1` and `%d4`, whereas Rust expects the members to be in `%o0`, `%o1` and `%o2`.

I guess we need to create a `CastTarget` that contains a mixture of Int and Float registers in the prefix with an empty tail. As structures with at most 256 bits (8 * 32 bits) can be returned in registers, the eight class items in the prefix are enough. I expect that the structures needs to be flattened, so a structure containing a structure containing a float also has the float value passed in a floating point register.

Unaligned Floats and Doubles (with `__attribute__((packed))`) end up being put in integer registers by `gcc` and `clang`, whereas "accidently" aligned floating point members get passed in integer registers by `gcc` and floating point registers by `clang`:

```c++
// Structure without "packed" declaration
struct str1 {
  float f;  // passed in %f0
  int i;    // passed in least-significant half of %o0
};

// Structure that gets misalignment due to packed declaration
struct str2 {
  short s;  // passed in bits 48..63 of %o0
  float f;  // passed in bits 16..47 of %o0 (due to misalignment)
} __attribute__((packed));

// Layout exactly as str1, but has alignof() 1. Different behaviour between gcc 8.2 and clang 7.0
struct str3 {
  float f;  // passed in most-significant half of %o0 (gcc) or in %f0 (clang)
  int i;    // passed in least-significant half of %o0
} __attribute__((packed));
```
Repository: vscode
Issue: RTL layout for paragraphs starting with 
Labels: feature-request,editor-RTL

#11770 is so vague that I can't even understand what is the requested feature... a clear and achievable change to VSCode for RTL is I believe starts from this, please make a paragraph RTL if it starts with RTL text.

Steps to reproduce:
Put this on gedit:
```
متن
متن
متن
متن
text
text
text
text
```
![image](https://user-images.githubusercontent.com/833473/50404768-23125f80-07c1-11e9-973e-7a477690be5b.png)

Now try the same with VSCode

![image](https://user-images.githubusercontent.com/833473/50404780-44734b80-07c1-11e9-92b1-04a457bf90a0.png)

Expected:
Easily achievable by adding `dir=auto` to div element and remove `dir=ltr` from the span, I just did it for the first line

![image](https://user-images.githubusercontent.com/833473/50404833-da0edb00-07c1-11e9-9294-86bda463d797.png)

Alternatively, you can put a switch (toggle-able with command switch, something like > Toggle Direction) and apply document direction switch to whole document and detect whether a document needs RTL direction behind the scene, if you don't like per paragraph direction setting.
Repository: TypeScript
Issue: Typecast for generic hashes not works as expected
Labels: Bug,Domain: Contextual Types

**TypeScript Version:**  3.2.2

**Search Terms:**
* object generic

**Code**

```ts
type Scope = {
    $scan: () => void;
}

type HashItemAsFunction<S> = <S extends Scope>(element: HTMLElement, scope: S) => void;

type HashItemAsObject<S extends Scope> = {
    link?: HashItemAsFunction<S>;
};

type HashItem<S extends Scope> = HashItemAsFunction<S> | HashItemAsObject<S>;

interface HashDefinitionValues<S extends Scope> {
    [Identifier: string]: HashItem<S>;
}

type HashDefinition<S extends Scope = Scope> = {
    [key: string]: HashDefinitionValues<S>;
}

class Test {
    static hash: HashDefinition;
}

// Module code

type ModuleScope = Scope & {
    myKey: string;
}

(Test.hash as HashDefinition<ModuleScope>).subType1.child = {
    link: (element, scope) => {
        scope.myKey = '123';
        scope.$scan();
    },
};

(Test.hash.subType1 as HashDefinitionValues<ModuleScope>).child = {
    link: (element, scope) => {
        scope.myKey = '123';
        scope.$scan();
    },
};

(Test.hash.subType1.child as HashItem<ModuleScope>) = {
    link: (element, scope) => {
        scope.myKey = '123';
        scope.$scan();
    },
};
```

**Expected behavior:**

One of type casts should provide `ModuleScope` type to the `scope` variable, but it only provides base `Scope` in any case.

**Actual behavior:**

```
src/test.ts:33:15 - error TS2339: Property 'myKey' does not exist on type 'S'.

33         scope.myKey = '123';
                 ~~~~~

src/test.ts:40:15 - error TS2339: Property 'myKey' does not exist on type 'S'.

40         scope.myKey = '123';
                 ~~~~~

src/test.ts:47:15 - error TS2339: Property 'myKey' does not exist on type 'S'.

47         scope.myKey = '123';
                 ~~~~~
```

**Playground Link:**
https://goo.gl/4kQHBW

**Related Issues:**
Didn't find any.
Repository: rust
Issue: Bad mask behavior with pcmp + pblendvb 
Labels: A-LLVM,I-slow,T-compiler

```rust
pub unsafe fn foo(y: __m128i, mut x: __m128i) {
    let mut mask = _mm_cmplt_epi32(x, y);
    while _mm_extract_epi32(mask, 0) == 0 {
        x = _mm_blendv_epi8(y, x, mask);
        mask = _mm_cmplt_epi32(x, y);
    }
}
```
I would expect something like this as the loop:
```asm
LBB0_1:
	movdqa	%xmm2, %xmm3
	movdqa	%xmm1, %xmm2
	blendvps	%xmm0, %xmm3, %xmm2
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pextrb	$0, %xmm0, %eax
	testb	$1, %al
	je	LBB0_1
```
but it produces:
```asm
LBB0_1:
	movdqa	%xmm2, %xmm3
	pslld	$31, %xmm0 ; unnecessarily selects the lowest bit
	movdqa	%xmm1, %xmm2
	blendvps	%xmm0, %xmm3, %xmm2
	movdqa	%xmm1, %xmm0
	pcmpgtd	%xmm2, %xmm0
	pextrb	$0, %xmm0, %eax
	testb	$1, %al
	je	LBB0_1
```

https://play.rust-lang.org/?version=nightly&mode=release&edition=2018&gist=9b7d2b661dbd2cca154b878cbce30184

This is as minimal an example I could find. More minimal code doesn't reproduce it.

```console
$ rustc --version --verbose
rustc 1.33.0-nightly (e40548bc4 2018-12-21)
binary: rustc
commit-hash: e40548bc43f2a0375a466c98e174e71561dc98d2
commit-date: 2018-12-21
host: x86_64-apple-darwin
release: 1.33.0-nightly
LLVM version: 8.0
Repository: godot
Issue: Button is not pressed by InputEventScreenTouch when Emulate Mouse From Touch is disabled in the Project Settings
Labels: enhancement,confirmed,topic:input

**Godot version:**
3.0.6

**OS/device including version:**
windows 10 pro / GT 1030 gpu


**Issue description:**
In the script extending button, when using _gui_input() and InputEventScreenTouch, it does not cause the button to be pressed down. Visually also the button does not go button_down.


**Steps to reproduce:**
Create a button, and in the code do:

```gdscript
func _gui_input():
   if event is InputEventScreenTouch and event.is_pressed():
       self.pressed = true
```

// Also if you connect the pressed() signal with this button, it will not trigger the signal when self.pressed = true. Visually the button does not go down and it does not trigger the Pressed() signal. HOWEVER, IF THE BUTTON IS SET TO TOGGLE MODE, IT WILL REGISTER THE BUTTON AS PRESSED CORRECTLY

**Minimal reproduction project:**
[InputEventScreenTouch Bug.zip](https://github.com/godotengine/godot/files/2709107/InputEventScreenTouch.Bug.zip)
Repository: opencv
Issue: imwrite/imencode Python binding fails with SystemError when using Numpy int type in params
Labels: bug,category: python bindings,priority: low

##### System information (version)
- OpenCV => 4.0.1
- Operating System / Platform => Arch Linux x86_64
- Compiler => I don't know. Installed from repo.

##### Detailed description

The following code:
```py
import cv2
import numpy as np

orig = np.random.randint(0, 256, size=(512, 512, 3), dtype=np.uint8)
for q in np.linspace(0, 100, 11, dtype=int):
    param = (cv2.IMWRITE_JPEG_QUALITY, q)
    cv2.imwrite("q%03d.jpg" % q, orig, params=param)
```
fails with:
```
Traceback (most recent call last):
  File "test.py", line 9, in <module>
    cv2.imwrite("q%03d.jpg" % q, orig, params=param)
SystemError: <built-in function imwrite> returned NULL without setting an error
```

If I manually run `cv2.imwrite("xxx.jpg", orig, params=(cv2.IMWRITE_JPEG_QUALITY, 0))`, there is no error. It took me sometime to understand the difference. In the above code, `q` is `numpy.int64` type instead of native `int` type:

```
In [4]: type(q)                                                                                                                                                                                                      
Out[4]: numpy.int64
```

The workaround is to explicitly convert `q` to `int` type with `int(q)`. However, if I change `np.linspace(0, 100, 11, dtype=int)` to `np.linspace(0, 100, 11, dtype=float)` which yields `numpy.float64` type, there is no error as well.

It was really hard to figure out the reason when I encontered this issue. The error message doesn't give useful information. Maybe additional type check/conversion should be performed.
Repository: vscode
Issue: Temporarily Set Configuration For Save Operation
Labels: feature-request,api

I'm maintaining the [EditorConfig](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) extension and am in dire need of a feature that would eliminate some issues with respect to the following settings and potentially more in the future (e.g., end of line setting):

- `files.insertFinalNewline`
- `files.trimFinalNewlines`
- `files.trimTrailingWhitespace`

Specifically, I need a way to short-circuit / override these settings temporarily for a file-save operation, because allowing vscode to perform any kind of trimming is destructive and either irreversible or extremely hacky to fix. It's like asking me to unpunch someone.

Basically, I need a way to change the way that vscode does a built-in save operation on a per-file basis (which is how EditorConfig works). Pre-save TextEdits are not good enough, because whatever I do before a save could potentially be wiped out with vscode's destructive trimming after the fact.

Another option, of course, would be to make EditorConfig a built-in feature of vscode, which I think makes all the sense in the world.

_Note: these issues only surfaced after vscode introduced these editor settings, because now we have 2 things trying to do the same thing._

### Related issues
- https://github.com/editorconfig/editorconfig-vscode/issues/153
- https://github.com/editorconfig/editorconfig-vscode/issues/208
- https://github.com/editorconfig/editorconfig-vscode/issues/209
- https://stackoverflow.com/questions/46069467/vs-code-does-not-insert-final-new-line-even-if-files-insertfinalnewline-is-set
Repository: flutter
Issue: Logspam when decoding invalid image
Labels: engine,P2,team-engine,triaged-engine

If you try to decode an image using instantiateImageCodec but the data is invalid, instead of (or in addition to?) throwing an exception, it prints `Shell: [ERROR:flutter/lib/ui/painting/codec.cc(97)] Failed decoding image. Data is either invalid, or it is encoded using an unsupported format.` to the console.
Repository: gin
Issue: why  donot support  fcgi method to serve?
Labels: feature

- With issues:
  why  donot support  fcgi method to serve?

- go version: 1.11.2
- gin version (or commit ref): 1.30
- operating system: centos

## Description
see the rel issue #673 , the reason is much slower than unix http proxy.

But, in go  1.11.2, unix http is slower than unix fcgi

go:

```go
// fcgi usocket
func (engine *Engine) RunFcgiUnix(file string) (err error) {
	debugPrint("Listening and serving FCGI on unix:%s", file)
	defer func() { debugPrintError(err) }()

	os.Remove(file)
	listener, err := net.Listen("unix", file)
	if err != nil {
		return
	}

	os.Chmod(file, 0777)
	defer listener.Close()
	err = fcgi.Serve(listener, engine)
	return
}
```

nginx conf:
```nginx
# fcgi usocket
location ~ ^/(\S+)/{
        #fastcgi_pass   unix:/data/usock/demo.sock;
        include        fastcgi_params;
}

# http usocket
location ~ ^/(\S+)/{
        proxy_pass  http://unix:/data/usock/demo.sock;
}
```


## Screenshots
fcgi usocket

![image](https://user-images.githubusercontent.com/772787/50421113-f02aa300-0876-11e9-80cf-1cafbf3e4fd4.png)

http usocket

![image](https://user-images.githubusercontent.com/772787/50421203-b73efe00-0877-11e9-91b8-5d1364fc3c52.png)
Repository: opencv
Issue: Documentation calib3d. R - same name for different matrix.
Labels: category: documentation,category: calib3d

Perhaps renaming the matrix of rectification transformations will make [this formula](https://github.com/opencv/opencv/blob/4.1.2/modules/calib3d/include/opencv2/calib3d.hpp#L2887) more readable.
Also, [extra (](
https://github.com/opencv/opencv/blob/4.1.2/modules/calib3d/include/opencv2/calib3d.hpp#L2896)
Repository: godot
Issue: Mouse selection exist, even if no mouse button is pressed.
Labels: bug,topic:editor,confirmed

**Godot version:**
3.1 10e9221


**OS/device including version:**
Ubuntu 18.04.1


**Issue description:**
When I create selection and then click outside editor and back to it, then selection still exist without any mouse button pressed.


**Steps to reproduce:**
1. Select some area in viewport
2. Move mouse outside editor.
3. Click RMB at some window(I tested with terminal) (Probably it must be repeat once)
4. Back to editor and click at output text

![jfile](https://user-images.githubusercontent.com/41945903/70704537-759aa380-1cd2-11ea-94c2-342b5f204fa4.gif)
Repository: opencv
Issue: compile error Mat.hpp
Labels: bug,priority: low,category: build/install,platform: win32,category: g-api / gapi

have a persistent issue compiling opencv 401. it all comes down to a few modules with mat.hpp. 


##### System information (version)
- OpenCV => 4.0.1
- Operating System / Platform => Windows 10 64 Bit
- Compiler => Visual Studio 2015
-Cmake => 3.12.4

##### Detailed description
OpenCV => module opencv_gapi_SSE_1 is giving me just one more compilation error I am unable to resolve

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2131	expression did not evaluate to a constant	opencv_gapi_SSE4_1	D:\Documenten\opencv-4.0.1\opencv-4.0.1\modules\gapi\include\opencv2\gapi\own\mat.hpp	130	

Line 130 and further is filling TABLE_ENTRY

##### Steps to reproduce
1) developer command prompt for VS15
in build folder : msbuild /t:clean /t:build .\modules\gapi\opencv_gapi_SSE4_1.vcxproj /v:diag

2) powershell administrator
cmake.exe --build . --config Release --target INSTALL

3) build or analyze code in MSV15
Repository: godot
Issue: Creating a new EditorSettings variable then run in a visual script reports SOCKET ERROR
Labels: bug,topic:editor,confirmed,topic:visualscript

**Godot version:**
Godot3.1 Aplha4


**OS/device including version:**
manjaro gnome x64
Intel® Core™ i3-2350M CPU @ 2.30GHz × 4
Intel® Sandybridge Mobile
OpenGL ES 3.0 Renderer: Mesa DRI Intel(R) Sandybridge Mobile
intel hd 3000


**Issue description:**
![2018-12-26 21-41-14](https://user-images.githubusercontent.com/33272474/50447881-204a7280-0959-11e9-9025-7e8ba241f5fa.png)
Creating other variable is normal(I just tested a little bit. I can't rule out hiding anything else.).


**Steps to reproduce:**
Creating a new EditorSettings variable

**Minimal reproduction project:**
[test11.zip](https://github.com/godotengine/godot/files/2710345/test11.zip)
Repository: kubernetes
Issue: Investigate cleanup of orphaned pod volumes
Labels: kind/bug,priority/important-soon,sig/storage,lifecycle/frozen

<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!-->


**What happened**:
TODO from https://github.com/kubernetes/kubernetes/pull/72291#discussion_r243855759.  The getMountedVolumePathListFromDisk call may be redundant with getPodVolumePathListFromDisk.  See if there's opportunity to cleanup here.  Maybe see if it's safe to skip the in-memory check, and just check for the on-disk directories?

@kubernetes/sig-storage-bugs 

<!-- DO NOT EDIT BELOW THIS LINE -->
/kind bug