WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Environment

Windows build number: 18917
Windows Terminal version (if applicable): 0.2.1715.0

AntiVirus: Trend Micro PC-Cillin 2019 15.0.1231

Steps to reproduce

Open up Windows Terminal

Expected behavior

Nothing happened, just as normal terminal.

Actual behavior

conhost.exe was marked as HEU_FALCONTroj.Win32.Gen.XXBM100FF005R0001 and got removed by antivirus.

WindowsTerminal.exe and conhost.exe were stopped becase of unauthorized change.

Issue 2:
Environment

Windows build number: 10.0.18362.239
Windows Terminal version: 0.3.2171.0

Additional Software: Ubuntu WSL1

Steps to reproduce

Unknown, happened on first launch after update to v0.3

Expected behavior

Open an Ubuntu WSL1-Tab

Actual behavior

Open an Ubuntu WSL1-Tab and immediately closing it
Issue 1:
The docstring for convert is wonderfully explicit about providing details about the underlying assumptions in many cases, but I've found one that isn't yet covered. convert(T, x) has the behavior that if x already has type T, we just return x. But for AbstractArrays, things get more complicated:

julia> A = rand(3,5)
3×5 Array{Float64,2}:
0.324103 0.45017 0.469432 0.382722 0.241098
0.336333 0.481648 0.165303 0.616973 0.0452947
0.567737 0.964775 0.82846 0.300232 0.140285

julia> pointer(A)
Ptr{Float64} @0x00007fad96e33ba0

julia> pointer(convert(Array, A))
Ptr{Float64} @0x00007fad96e33ba0

julia> S = view(A, :, :)
3×5 SubArray{Float64,2,Array{Float64,2},Tuple{Colon,Colon},true}:
0.324103 0.45017 0.469432 0.382722 0.241098
0.336333 0.481648 0.165303 0.616973 0.0452947
0.567737 0.964775 0.82846 0.300232 0.140285

julia> pointer(convert(Array, S))
Ptr{Float64} @0x00007fad970d8e20

In the first case we didn't copy, in the second we did. Often there is no choice but to copy, for example if we had defined S = view(A, 1:2, 1:3); however, in cases like view(A, :, :) it would be possible to return the original without making a copy (and it wouldn't violate type-stability).

An even more intermediate case comes from array types like

struct MyArray{T,N} <: AbstractArray{T,N}
data::Array{T,N}
end

For this type, convert(Array, A::MyArray) could always return A.data directly. But is this advisable? Or should it be a copy any time typeof(A) != T?

Issue 2:
Consider:

function foo(x)
y = convert(Vector{Float64},x)
y[1] = 10.0
return y
end
julia> x = [1,2,3]
3-element Array{Int64,1}:
1
2
3

julia> foo(x)
3-element Array{Float64,1}:
10.0
2.0
3.0

julia> x
3-element Array{Int64,1}:
1
2
3

julia> x = [1.,2.,3.]
3-element Array{Float64,1}:
1.0
2.0
3.0

julia> foo(x)
3-element Array{Float64,1}:
10.0
2.0
3.0

julia> x
3-element Array{Float64,1}:
10.0
2.0
3.0

The input is modified in one case, and not the other, which is in the realms of "scary". One (The?) solution is to always do a copy, even if the type matches, for mutable types.
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 2.6.3

spring-integration-httpinvoker 2.0.6.RELEASE

Operating System version: win10

Java version: 1.8

Steps to reproduce this issue

protocol.refer(DemoService.class, URL.valueOf("http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?sayHello.timeout=60000"))

或

<dubbo:reference id="demoService" interface="com.wg.dubbo.service.DemoService" url="http://localhost:20880">
<dubbo:method name="sayHello" timeout="6000" retries="2"/>
</dubbo:reference>

provider超时的sayHello执行sleep 5秒，会报超时。

设置为

protocol.refer(DemoService.class, URL.valueOf("http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?timeout=60000"))

或

<dubbo:reference id="demoService" interface="com.wg.dubbo.service.DemoService" url="http://localhost:20880" timeout="6000" retries="2">
<dubbo:method name="sayHello" />
</dubbo:reference>

会timeout会生效

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: 2.6.6

Operating System version: *nix

Java version: 1.7+

Expected Result

throw new IOException("Unknown result flag, expect '0' '1' '2' '3' '4' '5', get " + flag);

Actual Result

throw new IOException("Unknown result flag, expect '0' '1' '2', get " + flag);

since dubbo add new type for class dubbocodec for issue #1843

we should also change the exception message .

For example, if dubbo provides new protocol version(higher than 2.0.2) .then the high version dubbo invoke the lower version dubbo[2.0.2] with no support codec ,then the lower version dubbo throws ioexception with incorrect message.

So we need fixit
Issue 1:
now i know that nodejs can be build into android os and can be work well.

like the url:

https://github.com/dna2github/dna2oslab

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

9.0.5

Operating System:

macOS 10.15.5

Last Known Working Electron version:

N/A

Expected Behavior

When making a request through NodeJS using request-promise, I get an output with the following headers.

This is the output that I expect to see, where there are two cookies in "Set-Cookie", the "Access-Control-Allow-Headers" header only contains "Content-Type", and the "Access-Control-Allow-Origin" header is specific.

Actual Behavior

However, when I run the same exact script within an Electron context, where the same function is called from the frontend, I get different behavior. The following response headers are from when run in an Electron context.

There are significant discrepancies between the two, and, most importantly, one of the cookies in the 'set-cookie' header is missing, when run from an Electron context. I am unable to find an explanation as to why this is happening. Interestingly enough, when I used Electron's native Net module, I was able to get the correct HTTP response, so I have narrowed it down to some sort of NodeJS issue from within an Electron context.

UPDATE

I have been able to narrow it down even further. It looks like the request is working perfectly within an electron context, until I create a BrowserWindow instance. At that point, the response headers start going missing, as in the second picture.

To Reproduce

Since this is a company project, I am unable to provide source code. However, my question still stands: is there some sort of difference in NodeJS when running natively versus in an electron context, and can that different be detected in an HTTP request?
Issue 1:
systemjs when there are duplicate dependence in system.register entry,

the problem occur because the below systemjs function

function dedupe(deps) {
var newDeps = [];
for (var i = 0, l = deps.length; i < l; i++)
if (indexOf.call(newDeps, deps[i]) == -1)
newDeps.push(deps[i])
return newDeps;
}

They really delete dumplicate dependence, and the system.register dependence array length can't match the setter array then I see a lot of red in my console... ...

#3444 (comment)

fix solution in my local https://github.com/xsilen/TypeScript/commit/751fde222f2973acb04067b95a04daf773974742?diff=unified

Issue 2:
An alternative to extends that is mostly identical but with the following variation: instead of erroring when properties are re-declared with different types, it would resolve to the type unions instead (properties having a function type are already overloaded in inheritance, so there's no need to address them):

interface A {
x: boolean;
}

interface B extends A { // Error! Incorrectly extends A. Types of x are incompatible.
x: number;
}

interface C overloads A { // OK! x is now of type boolean | number
x: number;
}

interface D overloads A { // OK! x is now of type boolean | number | string
x: number | string;
}

interface E overloads A { // OK! x is now of type boolean | (param: number): string
x(param: number): string;
}

An operator based on this variation of inheritance would have the property that for any two (object or function) interfaces A, B, A overload B (illustrative, not suggested, name) can never fail, even if the operands contain incompatible property types (note: this assumes cycles are ignored in the operator version). In contrast to intersection, it wouldn't even fail if A is an object type and B is a function type, as hybrid object/function types are already allowed by standard inheritance.

This an attempt to address the challenge presented by @ahejlsberg of having an inheritance-like operation that is guaranteed not to fail when applied to generic type parameters:

declare function combine<T, U>(obj1: T, obj2: U): T overload U;

and thus may be used as a replacement to intersection that would be more consistent with the rest of the language (and inheritance logic in particular).

Even though I'm not a computer scientist or a language expert I tried to do my best for giving a basic direction (that is, at least a possible idea) on how to solve this. I'm not in a position to be able to see all the details, nuances or problems for integrating something like this into the language.
Issue 1:
Some render (I think) issues occur while using the gallery demo app downloaded from Google Play (not complied by me)

Shrine demo doesn't show cards while scrolling. While using the Animation demo the text and logos in the app turns into weird characters. For a better understanding I have uploaded a video https://youtu.be/5yhP94L-AGo

Issue 2:
I recently tested the Gallery App from the Play Store on my Lenovo Vibe K5 (Android 5.1.1) using the latest version in the Play Store (0.4.2). When I go to the animation screen and scroll a bit around, all text in the whole app becomes flickering triangles and stays this way. Clicking back or opening new pages several times can sometimes reinitialise the normal font, but it seems rather random. Here are some screens:
Issue 1:
Challenge http://freecodecamp.com/challenges/bonfire-return-largest-numbers-in-arrays has an issue.

The console outputs 'Cannot read property 'eql' of undefined' and the user cant run the code.

I am using chrome.

Issue 2:
This is just a suggestion for improvement, when the code is edited in exercises 20s and 30s of HTML5 and CSS, the context text ( the content in the left hand side ) keeps scrolling up and down, probably because of the check to see if the code entered answers the current exercise. This does not provide a good user experience to see something scrolling for every keystroke. It would be great if the validation happens without the context text scrolling up and down.

I am using a 15" MBP and chrome.
Issue 1:
Migrated issue, originally created by Alex Fraser (@z0u)

I want to use Postgres' unnest function in a JOIN clause. If I use func.unnest(), I can't use the WITH ORDINALITY feature. If I use text(), the expression gets wrapped in parentheses which is illegal. If I use select(), the query fails because it needs the LATERAL keyword, which is apparently unsupported (#2857).

Attached is a script that demonstrates the problem. I would like the final query to produce SQL like this:

SELECT a.id AS a_id, a.refs AS a_refs, unnest AS unnest, ordinality AS ordinality, b.id AS b_id, b.ref AS b_ref
FROM a
LEFT OUTER JOIN unnest(a.refs) WITH ORDINALITY ON TRUE
LEFT OUTER JOIN b ON unnest = b.ref
ORDER BY a.id, ordinality

But actually it produces this:

SELECT a.id AS a_id, a.refs AS a_refs, unnest AS unnest, ordinality AS ordinality, b.id AS b_id, b.ref AS b_ref
FROM a
LEFT OUTER JOIN (unnest(a.refs) WITH ORDINALITY) ON TRUE
LEFT OUTER JOIN b ON unnest = b.ref
ORDER BY a.id, ordinality

Which gives this error:

sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) syntax error at or near ")"
LINE 2: ... a LEFT OUTER JOIN (unnest(a.refs) WITH ORDINALITY) ON TRUE ...
^

I'd really to give an alias to the set, so that unnest could be used multiple times:

SELECT a.id AS a_id, a.refs AS a_refs, x.unnest AS x_unnest, x.ordinality AS x_ordinality, b.id AS b_id, b.ref AS b_ref
FROM a
LEFT OUTER JOIN unnest(a.refs) WITH ORDINALITY AS x(unnest, ordinality) ON TRUE
LEFT OUTER JOIN b ON x.unnest = b.ref
ORDER BY a.id, x.ordinality

But x.alias('x(unnest, ordinality)') results in constructs like AS "x(unnest, ordinality)" and "x(unnest, ordinality)".unnest = b.ref.

So, is there a way to use text in a join clause without it being put in parentheses? Or is there something else I'm missing? I would be happy to concede that I'm going about this the wrong way.

SA version 1.0.9, Python 3.4.3, Postgres 9.4.3

Attachments: join_text.py

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

that is, all the functions in http://www.postgresql.org/docs/9.4/static/functions-json.html need to be possible without building subclasses of functions.
Issue 1:
I'm submitting a ... (check one with "x")

[X] bug report
[ ] feature request
[ ] support request

Current behavior

A secondary child named outlet inside an empty primary outlet does not match.

Expected behavior

A secondary child named outlet inside an empty primary outlet should match.

Minimal reproduction of the problem with instructions

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

Just click on link "show bar in secondary outlet".

Going to http://.../(foo:bar) does not init the Bar component inside the foo named router-outlet

Going to http://.../(foo:bar) should init Bar component inside the foo named router-outlet

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

Please tell us about your environment:

Angular version: 4.0

Browser: [all]

Language: [all | TypeScript X.X | ES6/7 | ES5]

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

[x] bug report
[ ] 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

Aux-Routes are not found when using two levels of "default routes" (with path:'').

This config works:

RouterModule.forRoot([
{
path: 'tasks', component: TasksComponent, //container-component has two outlets!
children: [
{ path: '', component:TaskListComponent },
{ path: 'overview/:id', component: TasksComponent, outlet: 'right' },
]
}
],

I can open the Tasks-overview by doing:

http://localhost:4200/tasks/(right:overview/3)

See this plnkr and click "to list", "open aux"

As I want to extract the whole Tasks-Functionality into a TasksModule I need to be able to do something like this:

RouterModule.forRoot([
{
path: 'tasks', : children: [ // this one would be in main module
//this is defined in the TasksModule:
{ path: '', component: TasksComponent, //container-component has two outlets!
children: [
{ path: '', component:TaskListComponent },
{ path: 'overview/:id', component: TasksComponent, outlet: 'right' },
]
}
],

I would assume both configs are equivalent, and all of the "normal" routing works perfectly fine. But now the link above http://localhost:4200/tasks/(right:overview/3) leads to:

Uncaught (in promise): Error: Cannot match any routes: 'tasks'

See this plnkr: http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview

Expected/desired behavior

Aux-Routes should also work with empty-path parents

Reproduction of the problem

Working version: http://plnkr.co/edit/Twx4hXQ0TLfHfrYSe4MO?p=preview

Non-working version: http://plnkr.co/edit/xd77Mkpqfq6U9tKM4USU?p=preview

What is the expected behavior?

Both versions of route definition should lead to the same behavior

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

With the current implementation it is impossible to create an encapsulated Config / Module for the tasks behaviour and include it under a certain path into the main config e.g. "myTasks".

/cc @vsavkin

Please tell us about your environment:

Angular version: 2.0.0-rc.5

Browser: [all ]

Language: [TS ]
Issue 1:
When using a Drawer component with a ModalProps attribute, TS encounters a compile error error TS2339: Property 'ModalProps' does not exist on type 'IntrinsicAttributes & DrawerProps & { children?: ReactNode; }'.

[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Drawer TS DrawerProps definitions should support using ModalProps={{...}} prop in a TS project.

Current Behavior

Error as stated above

Steps to Reproduce (for bugs)

import * as React from 'react';
import './Header.css';
import { AppBar, Toolbar, Typography, IconButton, Hidden, Drawer } from 'material-ui';
import { Menu as MenuIcon, NavigateBefore as NavigateBeforeIcon } from 'material-ui-icons';

export default () => {
return (
<div className="Header">
<AppBar position="static">
<Toolbar>
<IconButton className="menu" color="contrast" aria-label="Menu">
<NavigateBeforeIcon />
</IconButton>
<Typography type="title" color="inherit" className="title">
Sample
</Typography>
<IconButton className="menu" color="contrast" aria-label="Menu">
<MenuIcon />
</IconButton>
</Toolbar>
</AppBar>
<Hidden mdUp>
<Drawer
type="temporary"
anchor="right"
open={true}
ModalProps={{
keepMounted: true, // !---------- HERE'S THE ISSUE
}}
>
List stuff here
</Drawer>
</Hidden>
</div>
);
};

Context

Your Environment

Tech
Version

Material-UI
^1.0.0-beta.21

React
^16.1.1

browser
Chrome 62

etc
Typescript@^2.6.2

Issue 2:
I am trying to use the builtin material-ui-icons and I was wondering if it is possible to get the light (white) version of the material icons instead of the dark ones.

[ x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

ability to import light version of material icons

Current Behavior

cannot import

Steps to Reproduce (for bugs)

import material-ui-icons/Dashboard (no option to get light version)
Issue 1:
hey,everyone!

At first,i can run the demo in /ios_examples/camera successfully.then I use retrain.py to retrain with my own dataset,and get a output_graph.pb flie and a output_labels.txt file.after that, I replace the files in /ios_examples/camera/data with them,and run the demo again,but it failed ,error description are as follow:

####error#########

:Could not create TensorFlow Graph: Invalid argument: No OpKernel was registered to support Op 'DecodeJpeg' with these attrs. Registered devices: [CPU], Registered kernels:

[[Node: DecodeJpeg = DecodeJpeg[acceptable_fraction=1, channels=3, dct_method="", fancy_upscaling=true, ratio=1, try_recover_truncated=false](DecodeJpeg/contents)]];

:Couldn't load model: Invalid argument: No OpKernel was registered to support Op 'DecodeJpeg' with these attrs. Registered devices: [CPU], Registered kernels:

[[Node: DecodeJpeg = DecodeJpeg[acceptable_fraction=1, channels=3, dct_method="", fancy_upscaling=true, ratio=1, try_recover_truncated=false](DecodeJpeg/contents)]]

Can someone tell me how to fix it?

Issue 2:
Environment info

Operating System: iOS

Steps to reproduce

Follow the contrib/makefile/README to install the tensorflow iOS core lib

Create my own model with the Image Retraining tutorial

Run the iOS example, error is logged.

Logs or other output that would be helpful

Running model failed:Invalid argument: No OpKernel was registered to support Op 'DecodeJpeg' with these attrs [[Node: DecodeJpeg = DecodeJpeg[acceptable_fraction=1, channels=3, fancy_upscaling=true, ratio=1, try_recover_truncated=false](DecodeJpeg/contents)]]

Related to

#2754 except that I want to use the pd file generated from the Image Retraining tutorial
Issue 1:
Link in the corner at docs.julialang.org is not working. I assumed should be reported at julialang.org website Github. Letting know as here seems to be the right place, FYI also other issues:

JuliaLang/www.julialang.org#684

[EDIT] in corner at, at least: https://github.com/JuliaLang/julia/blob/master/doc/src/NEWS.md

Issue 2:
On NEWS page, Edit on GitHub link is broken.

It is going to https://github.com/JuliaLang/julia/blob/master/doc/src/NEWS.md but should go to https://github.com/JuliaLang/julia/blob/master/NEWS.md
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/1816/

Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] Deployment Should scale from 5 pods to 3 pods and from 3 to 1 {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:52
Jul 28 22:14:33.656: timeout waiting 15m0s for pods size to be 3
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/autoscaling_utils.go:284

Previous issues for this test: #27406 #27669

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

Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] Deployment Should scale from 1 pod to 3 pods and from 3 to 5 {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:49
Aug 28 09:38:39.413: timeout waiting 15m0s for pods size to be 5
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/autoscaling_utils.go:284

Previous issues for this test: #30317
Issue 1:
Please:

Check for duplicate issues.

Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

In essence, when an input is passed into a fan out, and then a fan in concat, regardless of n on the FanOut, element wise operations do not work.

import jax
import jax.example_libraries.stax as stax
from jax import random
import jax.numpy as jnp

input_rows = 10
input_columns = 5
key = random.PRNGKey(42)
input = random.normal(key, (input_rows, input_columns))

out_stack = 5 # bugged with any value
input_comparison = jnp.column_stack([input]*out_stack)

s = stax.serial(
stax.FanOut(out_stack),
stax.FanInConcat(),
stax.Selu,
# stax.Elu,
# stax.Exp,
)
params, shape = s[0](key, input.shape)
assert jnp.isclose(s[1](params, input), input_comparison).all()

If applicable, include full error messages/tracebacks.

N/A

Python 3.9.7 (default, Sep 16 2021, 08:50:36)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import jax
>>> jax.__version__
'0.2.25'

Issue 2:
Please:

Check for duplicate issues.

Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

import jax
import jax.numpy as jnp
import numpy as np
def apply(mask, scores):
attention_mask = -1. * 1e30 * (1.0 - mask)
scores += attention_mask
unnormalized = scores - scores.max()
return unnormalized
mask = np.array(1.0)
scores = jax.numpy.array([0.7, 0.5])
apply(mask, scores), jax.jit(apply)(mask, scores)

If applicable, include full error messages/tracebacks.

The code above produces:

(DeviceArray([ 0. , -0.19999999], dtype=float32),
DeviceArray([0., 0.], dtype=float32))

on a CPU machine but correctly produces:

(DeviceArray([ 0. , -0.19999999], dtype=float32),
DeviceArray([ 0. , -0.19999999], dtype=float32))

on GPU and TPU

The issue seems to be around -0.0 and adding it to the score.

If the key part of the code snippet that adds the -0.0 is rephrased as the equivalent:

attention_mask = 1. * 1e30 * (1.0 - mask)
scores -= attention_mask

Then the CPU produces the same results as GPU and TPU
Issue 1:

Issue 2:
I can't align the label of TextFields from right to left. I need it for Farsi (or Arabic) language because they're written from right to left.

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

Expected Behavior

Ability to change label position (direction) to right.

Current Behavior

Textfield label is positioned only on the left.

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.10