WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Output of node_modules/.bin/electron --version: 4x / 5x

Operating System (Platform and Version): Windows 10/ Windows 7/ Ubuntu 18.04.1

aes gcm mode is missing from the list of available ciphers. it works for on my end so is there any reason for this?

To Reproduce

const crypto = require('crypto');

console.log(crypto.getCiphers())
// returns
[ 'aes-128-cbc','aes-128-ctr','aes-128-ecb','aes-128-ofb','aes-256-cbc',
'aes-256-ctr','aes-256-ecb','aes-256-ofb','aes-256-xts','des-cbc',
'des-ecb','des-ede','des-ede-cbc','des-ede3-cbc','rc2-cbc','rc4'
]

// encrypt with gcm
const encGcm = function(text, secret, salt){
let obj = {},
iv = crypto.randomBytes(32).toString('hex'),
key = crypto.pbkdf2Sync(secret, salt, 10000, 32, 'sha512'),
cipher = crypto.createCipheriv('aes-256-gcm', key, iv),
encrypted = Buffer.concat([cipher.update(text, 'utf8'), cipher.final()]),
tag = cipher.getAuthTag();
obj.iv = iv
obj.tag = tag.toString('hex');
obj.encrypted = encrypted.toString('hex');
return obj;
}

let i = encGcm('text', 'secret', 'salt')

// decrypt with gcm
const decGcm = function(encdata, secret, salt, iv, tag){
let key = crypto.pbkdf2Sync(secret, salt , 10000, 32, 'sha512'),
decipher = crypto.createDecipheriv('aes-256-gcm', key, iv);
decipher.setAuthTag(Buffer.from(tag, 'hex'));
let decrypted = decipher.update(Buffer.from(encdata, 'hex')) + decipher.final();
return decrypted;
}

console.log(decGcm(i.encrypted, 'secret', 'salt', i.iv, i.tag))
// returns
text

Issue 2:
code

header.vue:

import { remote, ipcRenderer, clipboard, shell } from 'electron';
let thisWindow = remote.getCurrentWindow();
const thisview = thisWindow.getBrowserView();
export default {
name: 'header',
created() {
console.log(thisWindow, thisWindow.maximizable, thisview);
this.isMaximizable = thisWindow.maximizable;
},
}

after I change the frame value to true while create the window , the maximizable will return the right value which is set while created the window

Issue Details

Electron Version:

"electron": "8.2.0",
Issue 1:
This commit: #9403

caused this issue to break: #9007

Issue 2:
I have a navbar with 8 links. I've noticed that when I activate the navbar on a phone and view it in landscape, it doesn't scroll all the way down to display the last link.

A live example of this can be shown on the 'Jumbotron' example template. When I drop down the menu I can't view the whole login form.
Issue 1:
Bug Description

Usually, the _id field is known as global unique in a index, right?

But I found it become non-unique when a doc's routing field is modified to another value and reindex to ES. Then, there will be two doc alive in diffrent shard but the same index.

It seems the delete operation is broadcasted to all shards, but the index operation not.

Since it's hard to monitor if the routing filed is modified, the only thing I can do is do an delete operation before each index operation, I really don't like it >_<

how to reproduce the bug

Tested under both v0.90.0

[1] Create A Index

curl -XPUT 'http://localhost:9200/user' -d '
{
"mappings": {
"User": {
"store": "no",
"_id": {
"type": "string",
"index": "not_analyzed",
"store": "yes"
},
"_type": {
"enabled": true
},
"_routing": {
"path": "tag",
"required": true
},
"properties": {
"tag": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
'

[2] Input Data

curl -XPOST 'http://localhost:9200/user/User/123' -d '{"tag" : "good"}'

{"ok":true,"_index":"user","_type":"User","_id":"123","_version":1}

curl -XPOST 'http://localhost:9200/user/User/123' -d '{"tag" : "bad"}'

{"ok":true,"_index":"user","_type":"User","_id":"123","_version":1}

[3] Search

curl -XPOST 'http://localhost:9200/user/User/_search' -d '{
"query": {
"term": {
"_id": "123"
}
},
"facets": {
"tag": {
"terms": {
"field": "tag"
}
}
}
}'

Result:

{
"took": 1,
"timed_out": false,
"_shards": {
"total": 10,
"successful": 10,
"failed": 0
},
"hits": {
"total": 2,
"max_score": 0.30685282,
"hits": [
{
"_index": "user",
"_type": "User",
"_id": "123",
"_score": 0.30685282,
"_source": {
"tag": "bad"
}
},
{
"_index": "user",
"_type": "User",
"_id": "123",
"_score": 0.30685282,
"_source": {
"tag": "good"
}
}
]
},
"facets": {
"tag": {
"_type": "terms",
"missing": 0,
"total": 2,
"other": 0,
"terms": [
{
"term": "good",
"count": 1
},
{
"term": "bad",
"count": 1
}
]
}
}
}

Issue 2:
It seems, that it's not possible to create node that could elect but not to become master.

This option could be useful in some cases.

For example, we have 2 master nodes with data and we want to avoid split brain and the existence of two masters. We can create another instance without data and node.master = true. But this third node can become master. So this node must be able to handle a lot of request and must have low latency connection with other nodes.

But in fact we want to have node with minimum hardware requirement.

Is it possible to add option like "weigth" or "priority" which will be considered in master election?

Another way is to add flag which will disallow to elect current node as master.

Current option node.master controls both actions: to elect and to be elected.
Issue 1:
Not sure if it's an intended behavior, anyway it seems that Angular2 doesn't assign the active state (the "router-link-active" class) to a routerLink element when its corresponding route contains query string params.

You can reproduce this situation with the official routing example itself:

https://angular.io/resources/live-examples/router/ts/plnkr.html

Click on "heroes" to step in the Horoes list view (note how the active class has been correctly assigned to the Heroes anchor element in the navbar)

Choose one from the list ( the new route removes the active state from the heroes link)

Click on the back button

You're back in the hero list view, but the Heroes anchor element hasn't been given the router-link-active class in the navbar

The last click triggers the following:

this._router.navigate(['Heroes', {id: heroId, foo: 'foo'} ]);

As stated in the doc "Unfortunately, the browser address bar does not change when running the live example in plunker." anyway "The id value appears in the query string (?id=15&foo=foo), not in the URL path. The path for the "Heroes" route doesn't have an :id token."

Issue 2:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Navigate to a route that has child routes.

Navigate to one of the child routes.

Navigate back to top level route.

Navigate to any other root. (this is where you receive the error)

Expected behavior

Navigate to a route that has child routes.

Navigate to one of the child routes.

Navigate back to top level route.

Navigate to any other root. (without receiving the error)

Minimal reproduction of the problem with instructions

Step1

Step2

Step3

Step4

Error

https://plnkr.co/edit/GuQuWnW2GsfnBOVyWQRh?p=preview

What is the motivation / use case for changing the behavior?

To fix the bug

Please tell us about your environment:

ASP.Net Core

Angular version: 3.1.1

Angular/router Version: 3.3.1

Browser: [Chrome]

Language: [TypeScript 1.0.3.0 | ES6 | ES5]

Node (for AoT issues): node v6.9.2
Issue 1:
So I'm pretty much at the end here.

Every time I make the browser window transparent, a wired title appears.

So in it is the HTML title and when I remove it says index.html or the folder/package name.

(this sort of thing just appears, when I unfocus and focus the app again.

Best Regards

Elias

Issue 2:
We're seeing a bug where BrowserWindows created with transparent: true, frame: false show a title bar in various states of user interaction.

Electron version: 1.8.2-beta.5 (not present on beta.4, like due to this change)

Operating system: Windows

Expected behavior

BrowserWindows created with transparent: true, frame: false should never show a title bar.

Actual behavior

BrowserWindows created with transparent: true, frame: false show a title bar in various states of user interaction.

How to reproduce

Run the following:

git clone https://github.com/felixrieseberg/electron-quick-start
git checkout frame-titlebar-issue
npm start

Then, select the window in the taskbar, or click on it. The repro steps vary a bit, but you should eventually see a title bar.
Issue 1:
for example, kubernetes-e2e-gce-slow, kubernetes-e2e-gce-reboot, kubernetes-e2e-gce, kubernetes-e2e-gce-parallel

@jszczepkowski @wojtek-t

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/7761/

Failed: BeforeSuite {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:138
May 23 21:08:38.707: Error waiting for all pods to be running and ready: Not all pods in namespace 'kube-system' running and ready within 10m0s
Issue 1:
Describe what you were doing when the bug occurred:

1.

2.

3.

Please do not remove the text below this line

DevTools version: 4.2.1-3816ae7c3

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)

at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)

at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)

at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)

at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)

at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)

at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)

Component stack: in vl

in div

in div

in div

in wo

in Unknown

in n

in Unknown

in div

in div

in Li

in $e

in dn

in Ca

in Pc

Issue 2:
Describe what you were doing when the bug occurred:

I did profiling on a list, that gets updated on each pagination api call.

Once the profiling was done, I moved around in the Profiler to view the Flamegraph

Moving to second capture, the Profiler crashed.

DevTools version: 4.6.0-6cceaeb67

Component stack: in ec
in div
in div
in div
in So
in Unknown
in n
in Unknown
in div
in div
in rl
in Ze
in fn
in Ga
in _s
Issue 1:
When a request is made through AJAX Symfony correctly knows that the request is an XMLHttpRequest. This can be retrieved from the isXmlHttpRequest method of the Request class. However, this doesn't set the _format parameter in the request to the correct value. For example, making an AJAX request with JQuery.ajax sends the content-type application/json which isn't then used to set the response format. This means that for example when an exception is thrown and returned as response it will always be in HTML format except when a route has the _format parameter explicitly set. I don't find anything about the fact that this behaviour is intended. I resolved by setting manually that parameter if I detect that the request is an XMLHttpRequest. However, I really think that this is a bug because Symfony should always use the content-type if detected to generate the appropriate response

Issue 2:
The symfony default _format which is used to determine the right template should be aware of the HTTP Accept header(http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html)

This shouldn't effect the default behavior like it is right now for websites, but if you're building an (REST[FUL]) API this would be a really great improvement.

As far as I discovered it now, the format is determined here: [...]/symfony/src/Symfony/Component/HttpFoundation/Request.php:833

What do you think?
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.3

Operating System version: macos 10.14.6

Java version: 1.8

Steps to reproduce this issue

rpc接口返回值对象包含有Money类型的值，在调用方会提示：

希望后续版本能实现jsr354的Money序列化处理

Pls. provide [GitHub address] to reproduce this issue.

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Issue 1:
TypeScript Version:

1.8.10

Code

// A self-contained demonstration of the problem follows...
function bool_fun(value: string) : boolean {
return value && value == "bug";
}

console.log(bool_fun(null)); // should log false or throw a compiler error, but logs null
console.log(bool_fun("false"));
console.log(bool_fun("bug"));

A boolean value should always be true or false, but never null (even if it's a falsy value). This would break strict comparisons like ===. The spec is also very clear: https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#3.2.2

Expected behavior:

Either we have a compiler error or the console prints:

false
false
true

Actual behavior:

The console prints:

null
false
true

Issue 2:
This code does not end the compilation on Windows 7 using master branch of TypeScript.

$ node built/local/tsc.js hang.ts

And VS2013 was hangup. devenv.exe consume memory about 3.5GB.

// hang.ts
interface LazyChain<T> extends LAZYCHAIN.Stream<T> {
}

interface LazyMonad<T, M> extends LAZYCHAIN.MonadStream<T, M> {
}

interface Array<T> extends LAZYCHAIN.StreamMethod<T> {
}

declare module LAZYCHAIN {

interface Callback<T, U, V> {
(value?: T, index?: number, array?: T[], env?: V): U
}

interface CallbackAsync<T, U, V> {
(value?: T, index?: number, array?: T[], env?: V, deferred?): any
}

interface StreamMethod<T> {
// lazy
// - basic
lazy(onmessage: CallbackAsync<T, T, {}>): LazyChain<T>
lazy(onmessage: CallbackAsync<T, T, {}>, sequential: boolean): LazyChain<T[]>
}

interface Stream<T> extends StreamMethod<T> {
// pattern
pattern(...patterns: Array<[T|Function]|[T|Function, (...args: T[]) => T]|[T|Function, (...args: T[]) => boolean, (...args: T[]) => T]>): LazyChain<T>
// monad
monad<M>(monad: Monad<T, M>, convert?: boolean): LazyMonad<T, M>
monad<M>(monad: Monad<T, M>, type: T|((...args: any[]) => T)): LazyMonad<T, M>
// array
array(): T[]
}

interface MonadStream<T, M> {
// pattern
pattern(...patterns: Array<[M]|[M, (...args: M[]) => M]|[M, (...args: M[]) => boolean, (...args: M[]) => M]>): LazyMonad<T, M>
// monadic
monadic(...patterns: Array<[M]|[M, (...args: T[]) => M]|[M, (...args: T[]) => boolean, (...args: T[]) => M]>): LazyMonad<T, M>
// lazy
// - basic
lazy(onmessage: CallbackAsync<M, M, {}>): LazyMonad<T, M>
lazy(onmessage: CallbackAsync<M, M, {}>, sequential: boolean): LazyMonad<T, M[]>
// array
array(): T[]
}

interface Monad<T, M> extends Monoid<M> {
return(arg: T): M
bind(m: M, f: (arg: T) => M): M
fail?(arg: any): M
}

interface Monoid<M> {
mempty?(): M
mappend?(m1: M, m2: M): M
mconcat?(ms: M[]): M
}

}

function f<T, U>(): LazyChain<T|U> {
return <LazyChain<T|T[]|U|U[]>>null;
}

Update:

I was able to get the error message after 3 hours.

$ node built/local/tsc.js hang.ts
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Issue 1:
It's really hard to see what tests failed across different runs, especially if you don't have access to Jenkins (#17443).

Issue 2:
Right now visibility is the biggest problem we have with e2e tests. We have too many jenkins jobs to keep track of test history for each one manually, and with test filters becoming increasingly targeted, there is no easy way to know what job a particular test is running in. Moreover, because test filters are shared across jobs, changing them can result in a set of tests that should be running on a particular provider/branch/job becoming silently disabled and no one is the wiser, as the test still looks green.

Case in point, filter updates caused reboot tests to be skipped on gke-ci-reboot. So the job is green but it isn't even testing what it's meant to.

In order to avoid this kind of confusion and get proper visibility into what tests are running, it would be immensely helpful to have a single test dashboard that aggregates latest test results across all jobs for every defined e2e test in one big grid. Ideally it would also make results viewable by provider (GCE, GKE) and release name.
Issue 1:
System information (version)

OpenCV => 4.1.0

Operating System / Platform => Mac OS Mojave 10.14

Compiler => n/a python 3.7

Detailed description

https://docs.opencv.org/4.1.0/d3/d96/tutorial_basic_geometric_drawing.html

python version of tutorial throws the following error:

'''TypeError: ellipse() takes at most 5 arguments (9 given)'''

This error appears to be a bit misleading. Instead the problem seems to be the way python 3 treats integer division (converts to float). Casting positional arguments to int should solve this.

Steps to reproduce

cv.ellipse(img,
(W / 2, W / 2),
(W / 4, W / 16),
angle,
0,
360,
(255, 0, 0),
thickness,
line_type)

Issue 2:
OpenCV => master

Operating System / Platform => Windows 64 Bit

Compiler => Visual Studio 2017

CMake option WITH_OPENMP=ON

Here: https://github.com/opencv/opencv/blob/master/modules/core/src/parallel.cpp#L553

pbody need integer value: https://github.com/opencv/opencv/blob/master/modules/core/src/parallel.cpp#L428
Issue 1:
The following code

struct Struct([u8]);

fn as_slice(s: &Struct) -> &[u8] {
let &Struct(ref this) = s;
this
}

fn main() { }

fails to compile, the error message is:

Assertion failed: (Ty && "Invalid GetElementPtrInst indices for type!"), function checkGEPType, file /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/llvm/include/llvm/IR/Instructions.h, line 782.
Abort trap: 6

Issue 2:
Trying to build this:

struct Foo(pub str);

impl Foo {
fn print(&self) {
match self {
&Foo(ref s) => println!("f\"{}\"", s),
}
}
}

fn main() {}

and I get this:

rustc: /home/shum/src/rust/rust/src/llvm/include/llvm/Support/Casting.h:237: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::PointerType; Y = const llvm::Type; typename llvm::cast_retty<X, Y*>::ret_type = const llvm::PointerType*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
Issue 1:
when i use like this:

Glide.with(mContext).load(mUrl).placeholder(R.drawable.placeholder).crossFade().into(mViewHolder.getImageView());

on android may cause picture looks smaller than imageview .note that i have set imageview scale fitXY.

Issue 2:
How can I load app icons to listView or RecyclerView. A app icon is a drawable. If i set the drawable to listview directly,the listview often caton that get a bad experience.
Issue 1:
Environment

Windows build number: Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Any other software?
Windows Terminal built from git clone 9/92019. Have noticed it in the past.

Steps to reproduce

Build Microsoft Terminal

git clone https://github.com/microsoft/Terminal.git

cd Terminal

git submodule update --init --recursive

nuget restore OpenConsole.sln

Open VS2019

Set build to release X64

Build Solution

Deploy Solution

Launch Terminal from Start menu.

Expected behavior

At this point the build directory should be able to be deleted. Solution was deployed. Build dirs should not be used

Actual behavior

Build dir tree is still used by running deployed release build app

Terminal\src\cascadia\CascadiaPackage\bin\x64\Release\AppX

Files opened by running "Windows Terminal.exe" verified by Process Explorer.

Not sure why it does this, but it shouldn't

Issue 2:
Environment

Microsoft Windows [Version 10.0.18936.1000]
Windows Terminal version (if applicable): Version: 0.3.2171.0

Any other software?

Steps to reproduce

Run powershell as admin

Run the following command: choco upgrade microsoft-windows-terminal

Expected behavior

I expect Chocolatey to install the latest version of Terminal (0.4.2382.0)

Actual behavior

The installation fails with the following error:

RROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Deployment failed with HRESULT: 0x80073CFB, The provided package is already installed, and reinstallation of the package was blocked. Check the AppXDeployment-Server event log for details.

Deployment of package Microsoft.WindowsTerminal_0.3.2171.0_x64__8wekyb3d8bbwe was blocked because the provided package has the same identity as an already-installed package but the contents are different. Increment the version number of the package to be installed, or remove the old package for every user on the system before installing this package.

NOTE: For additional information, look for [ActivityId] a1d00f98-5894-0000-f26c-d5a19458d501 in the Event Log or use the command line Get-AppPackageLog -ActivityID a1d00f98-5894-0000-f26c-d5a19458d501

The upgrade of microsoft-windows-terminal was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyinstall.ps1'.
See log for details.

Chocolatey upgraded 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
- microsoft-windows-terminal (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-windows-terminal\tools\chocolateyinstall.ps1'.
See log for details.

Full logfile:

https://gist.github.com/Taubin/57643031f49ab624cfe5375d79f7b93e
Issue 1:
Minimal example of the problem:

App component that uses ContenteditableModel component which allows to edit bonded property and emit changes to parent component via two-way data binding - [()]

ContenteditableModel is able to change App.text property

App.OnChanges should be executed.

http://plnkr.co/edit/teURR9?p=preview

Problem is that OnChanges hook is not executed in the App component , although value {{text}} is changing properly.

My app setup:

"angular2": "2.0.0-beta.13",

"es6-promise": "^3.1.2",

"es6-shim": "^0.35.0",

"reflect-metadata": "0.1.2",

"rxjs": "5.0.0-beta.2",

"systemjs": "0.19.22",

"zone.js": "^0.6.6"

Issue 2:
Not sure if this is the right forum but opening an issue nevertheless

I was looking at the bio page at https://angular.io/about/. I clicked on a bio once to view the person profile. I then close the bio and then click on the same bio again. Voila!! I get a 404. This is happening across bios and is easily reproducible.

https://angular.io/about/