WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I do kube-push to my cluster and meet the following issue:

In my push, I update control plane manifest as well as kubelet command line arguments.

After push, old static pods still running while new pods failed to run. Take apiserver as an example:

There are 3 running containers after push: old apiserver, old apiserver pause, new apiserver pause.

Run docker ps -a | grep apiserver and find that new apiserver container exit because of error.

To solve the problem, I do docker rm -f on old apiserver and old apiserver pause containers.

I think this should be fixed since there is high risk for kube-push failure.

Issue 2:
I'm getting this error on my Google Cloud cluster:

I1117 22:56:55.385576 3509 kubelet.go:977] Unable to register kubernetes-minion-frx1 with the apiserver: Post https://kubernetes-master/api/v1/nodes: x509: cert
ificate signed by unknown authority

Using the default ./cluster/kube-up.sh

To reproduce:

kube-up

everything is working fine

delete one of the instances from the autoscaling group

the new instance will fail with this error continuously
Issue 1:
Currently, Categorical.unique and CategoricalIndex.unique drop unused categories:

>>> categories = ['very good', 'good', 'neutral', 'bad', 'very bad']
>>> cat = pd.Categorical(['good','good', 'bad', 'bad'], categories=categories, ordered=True)
>>> cat
[good, good, bad, bad]
Categories (5, object): [very good < good < neutral < bad < very bad]
>>> cat.unique()
[good, bad]
Categories (2, object): [good < bad] # unused categories dropped

So, .unique() both uniquefies and drops unused categories (does two things in one operation)

Often, even if you want to uniquefy values, you still want to control whether to drop unused categories or not. So Categorical/CategoricalIndex.unique should IMO keep all categories, and categories should be dropped in a seperate action. So, this would be a better API:

>>> cat.unique()
[good, bad]
Categories (5, object): [very good < good < neutral < bad < very bad] # unused not dropped

If you want to drop unused categories, you should do it explicitly like so: cat.unique().remove_unused_categories().

The proposed API is also faster, as dropping unused categories requires recoding the categories/codes, which is potentially expensive.

Issue 2:
Code Sample, a copy-pastable example if possible

In [2]: pd.Categorical([1,3,2,4], categories=[4,2,3,1,5]).unique()
Out[2]:
[1, 3, 2, 4]
Categories (4, int64): [1, 3, 2, 4]

same happens with CategoricalIndex and Series of dtype=category (as long as ordered=False).

Problem description

The general pandas approach to categoricals seems to change the .categories field as seldom as possible. So I see no reason why unique(), which by definition does not affect the set of distinct values, should change the categories (reordering them based on appearance, and dropping unused ones).

Expected Output

In [2]: pd.Categorical([1,3,2,4], categories=[4,2,3,1,5]).unique()
Out[2]:
[1, 3, 2, 4]
Categories (4, int64): [4, 2, 3, 1, 5]

Output of pd.show_versions()

In [3]: pd.show_versions()

INSTALLED VERSIONS

commit: 63e8527

python: 3.5.3.final.0

python-bits: 64

OS: Linux

OS-release: 4.9.0-3-amd64

machine: x86_64

processor:

byteorder: little

LC_ALL: None

LANG: it_IT.UTF-8

LOCALE: it_IT.UTF-8

pandas: 0.22.0.dev0+131.g63e8527d3

pytest: 3.2.3

pip: 9.0.1

setuptools: 36.7.0

Cython: 0.25.2

numpy: 1.12.1

scipy: 0.19.0

pyarrow: None

xarray: None

IPython: 6.2.1

sphinx: 1.5.6

patsy: 0.4.1

dateutil: 2.6.1

pytz: 2017.2

blosc: None

bottleneck: 1.2.0dev

tables: 3.3.0

numexpr: 2.6.1

feather: 0.3.1

matplotlib: 2.0.0

openpyxl: None

xlrd: 1.0.0

xlwt: 1.1.2

xlsxwriter: 0.9.6

lxml: None

bs4: 4.5.3

html5lib: 0.999999999

sqlalchemy: 1.0.15

pymysql: None

psycopg2: None

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: 0.2.1
Issue 1:
julia> rank(BigFloat[1 1;1 0])
ERROR: MethodError: no method matching svdvals!(::Array{BigFloat,2})
Closest candidates are:
svdvals!(::SymTridiagonal) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\LinearAlgebra\src\tridiag.jl:350
svdvals!(::StridedArray{T, 2}) where T<:Union{Complex{Float32}, Complex{Float64}, Float32, Float64} at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\LinearAlgebra\src\svd.jl:193
svdvals!(::StridedArray{T, 2}, ::StridedArray{T, 2}) where T<:Union{Complex{Float32}, Complex{Float64}, Float32, Float64} at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\LinearAlgebra\src\svd.jl:501
...
Stacktrace:
[1] svdvals(::Array{BigFloat,2}) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\LinearAlgebra\src\svd.jl:218
[2] #rank#15 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\LinearAlgebra\src\generic.jl:985 [inlined]
[3] rank(::Array{BigFloat,2}) at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\LinearAlgebra\src\generic.jl:984
[4] top-level scope at none:1

Issue 2:
This issue continues on from #3014 and #5381 as a placeholder to track what is left to put into place a useful skeleton of basic linear algebra for generic element types.

Routines for special matrices (#3688)

Tridiagonal linear solver (#39701)

`Tridiagonal eigensystem solver (@andreasnoack mentioned he had some code for this?)

Factorizations

LL' Cholesky

pivoted LU

QR

Should we just pick one of: modified Gram-Schmidt, Givens and Householder algorithms?

Want both the basic and pivoted (rank-revealing) variants?

SVD

Check that with the necessary factorizations in place, that inv and eig work.
Issue 1:
Similar to some X11 window managers, it would be nice feature if window could be moved by holding down specific key (e.g. Alt) and dragging window - not only by holding & dragging title bar, but holding window anywhere.

This kind of functionality has been provided in the past by Taekwindow and other tools:

http://taekwindow.net/

This could be a great addition to Fancy Zones feature.

Issue 2:
Summary of the new feature/enhancement

Moving windows using the mouse relies on hitting a small target, especially on high-resolution screens. Add an option to move entire windows by alt-dragging or windows-dragging them, anywhere on the window except perhaps the resize area.

Proposed technical implementation details

Stefan Sundin has done great work on AltDrag: https://stefansundin.github.io/altdrag/ . With permission, I'd use this as an initial reference.

Alt+Drag or Windows+Drag could be implemented as part of FancyZones, activated with a toggle.
Issue 1:
Year Range in Localized Datepicker is not correct . while you set a localized calendar like the persian calendar just you must see year button for localized range of years .

it seems in CalendarYear.js file and getYears method the min and max value for year range not localized .

Steps to reproduce

1.declare const dtf_fa = Intl.DateTimeFormat;

2. in render method <DatePicker hintText="Portrait Dialog" DateTimeFormat={dtf_fa} locale="fa-IR-u-ca-persian" />

3. run and see year button value . its shows different number .(in my case show 2016 that equals to localized persian calendar 1395) .

Versions

Material-UI: 0.15.2

React: 15.2

Browser: Chrome 51

Issue 2:
Problem description

Days and Years in DatePicker are always in Gregorian no matter what locale and DateTimeFormat you choose.

You can clearly see that in jalali it's 9 mordad 1395 and actually when you submit it chooses the right date but in the calendar it STILL shows 30th of august and the year is STILL 2016 (although it's 1395 in jalali).

BTW the direction of the month arrows are not right either.

Steps to reproduce

change locale and DateTimeFormat to (for example) jalali. so locale="fa" and DateTimeFormat={global.Intl.DateTimeFormat}

Versions

Material-UI: 0.15.4

React: 15.3.0

Browser: Chrome 52.0.2743.116
Issue 1:
Modern browsers implement a security measure for third party files loaded from a different domain: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity

Are there any plans to "port" this security feature into deno?

I believe that considering Deno's mission around security and browser interoperability, it should be supported somehow.

What do you think?

Issue 2:
This project looks very promising and exciting. I like how simple it is to use external packages. My question would be how would you go about ensuring that external dependencies haven't been changed?
Issue 1:
Oliver Drotbohm opened SPR-7931 and commented

The Jaxb2Marshaller is only supporting classes annotated with @XmlRootElement currently and there's no way to override that behaviour as supportsInternal(Class, boolean) is private. There are cases when you want to (un)marshal classes that are @XmlType annotated only. Especially when working with XJC, you get the @XmlRootElement annotation only for classes that have their xsd:simpleType or xsd:complexType nested inside the xsd:element declaration (see this blog entry for why that's the case). However, if you have a type that can be reused and used as a root element's type, XJC will not create the @XmlRootElement annotation but rather a factory method inside the ObjectFactory class. To get those classes (un)marshalled, you currently have to copy large parts of Jaxb2Marshaller as there's no way to disable the check for the annotation. So it would be cool if this was configurable through a bean property or at least changeable so that a subclass could potentially call supportsInternal(clazz, false).

Issue Links:

#14376 Jaxb2Marshaller should support JaxbElement ("is duplicated by")

Referenced from: commits 01d2082

Issue 2:
Dave Syer opened SPR-8077 and commented

There is currently no "standard" way to do this, so users have to write their own and there are literally thousands of implementations out there with very common features. CommandLineJobRunner from Spring Batch has some useful ideas in it, but it also has batch-specific options. Ideally I'd like to simply extend or configure a standard component that does the context loading and autowiring piece, maybe collects some arguments from stdin, etc. Maybe in the name of DRY, it would be useful to pick out some useful features and implement something now we have a new major point release in progress.

Suggested features:

An API for command line options (probably duplicating commons-cli here, so maybe depend on that, or maybe just allow override for options gathering so users can plugin external library if needed?)

Accept arguments on command line and optionally append from stdin.

Standard (e.g. first) argument for locating a Spring configuration (XML, package or class name - I recommend sticking to a single config file and import from there if there are more, or else the argument could accept wildcards).

Autowiring of fields in the runner instance, so extensions can add @Autowired fields and have them supplied magically.

Clear semantics and documentation about how to shutdown the application and ensure the application context is closed (depends on whether there are any non-daemon threads), and allow shutdown when main() ends or on CTRL-C according to taste.

Optional call to System.exit() with status determined through e.g. a protected method

A way to initialize the Environment by plugging in a context initializer a la web.xml

Optional bootstrap properties in a file or Resource, or some other way to initialize the Environment without writing code

Issue Links:

#13684 Support simplified main class application context / dependency management

5 votes, 6 watchers
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.6.6

Operating System version: windows

Java version: jdk8

Steps to reproduce this issue

provider export service ,use kryo Serialization , service's return object is a user define class.

consumer use generic style reference:<dubbo:reference generic="true"/>

consumer invoke service.

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

Expected Result

if not exist class define,use map instead

Actual Result

What actually happens?

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

Just put your stack trace here!

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.

线上dubbo偶尔会抛出异常，异常信息如下：

com.caucho.hessian.client.HessianRuntimeException: java.net.NoRouteToHostException: No route to host

是不是dubbo本身存在一些问题？求大神指教
Issue 1:
Instead of having to create seperate custom layouts for each monitor, an option to instead create a single custom layout for all or select monitors. This would allow for making zones that can be spanned across multiple displays.

ex. I have my Discord app spanning across my main display and onto my left display so that when i'm in full screen applications I can still see part of it.

Issue 2:
Support zones which span several monitors

Could you please add the capability to define zones across several monitors? For instance I would like to define one single zone spanning two monitors (this is my current setup with ultramon for instance).

Thanks very much
Issue 1:
[Power Toys Settings-Keyboard Manager>Remap Key]

User Experience:

This will impact all the users as they will not able to use this feature with keyboard as application is getting closed.

Test Environment:

"OS Version: 20221.1000

App Name: Power Toy Preview

App Version: v0.23.0

Screen Reader: Narrator"

Repro-steps:

"1. Open Power Toys Settings App.

2. Navigate to Keyboard Manager list item and activate it.

3. Navigate to Remap a key button present in right pane and activate it.

4. Remap Key window will open.

5. Navigate to 'Type' button in window and activate it. A 'Press a key in selected keyboard' pane will open.

6. Hold 'enter' key to continue and verify the issue.

"

Actual Result:

"In 'Press a key on selected Keyboard' dialog on holding 'Enter' to continue, the PowerToys application is getting closed.

Note:

Same issue is repro in 'Remap a Shortcut'.

Same issue is repro on holding Esc key."

Expected Result:

In 'Press a key on selected keyboard' dialog on holding 'Enter' to continue, the PowerToys application should not be getting closed. It should continue and save the key.

18_Remap k key_Functional_on holding enter button app is getting close.zip

Issue 2:
Summary of the new feature/enhancement

If it's possible, I would really like to be able to set the shortcut to open PowerToys Run to Win + Space to emulate the behavior of launching Spotlight on Mac with a Windows keyboard. I already have the muscle memory from it and would love to have this option.
Issue 1:
When un-marshaling, go json decode does not report the context ( field name or path to the element) that has a type error. On large files this can be a problem. If you have nested objects it might be harder to find so ideally a stack of keys that form a path would be described if possible.

See stack overflow questions

http://stackoverflow.com/questions/24325210/get-field-name-that-errs-in-go-json-unmarshal

http://stackoverflow.com/questions/21151765/json-cannot-unmarshal-string-into-go-value-of-type-int64

http://stackoverflow.com/questions/23582744/go-get-a-broken-json-field-name

Originally described in #10134 I have a possible solution there.

Issue 2:
> What steps will reproduce the problem?

// test.go
package main
import (
"flag"
"fmt"
"rand"
"runtime"
"sort"
)
func main() {
fmt.Printf("Hello, World!")
}

$go build test.go

> What is the expected output?
The tool either successfully compiles the program or produces a meaningful error message.

> What do you see instead?

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x455f80]

goroutine 1 [running]:
runtime.panic(0x669e68, 0xf8401ce7b0)
/usr/local/google/home/dvyukov/go_select/src/pkg/runtime/proc.c:1406 +0xac
runtime.panicstring(0x82dcb3, 0xf840002570)
/usr/local/google/home/dvyukov/go_select/src/pkg/runtime/runtime.c:128 +0xa3
runtime.sigpanic()
/usr/local/google/home/dvyukov/go_select/src/pkg/runtime/thread_linux.c:198 +0x168
go/build.(*Tree).PkgDir(0x0, 0xf8400432c0, 0x0, 0xf8401ad1c0)
/usr/local/google/home/dvyukov/go_select/src/pkg/go/build/path.go:52 +0xfb
main.(*builder).action(0xf840047000, 0x0, 0xf8401ad1c0, 0x1, 0xf8401ce7a0, ...)
/usr/local/google/home/dvyukov/go_select/src/cmd/go/build.go:327 +0xb8
main.(*builder).action(0xf840047000, 0x1, 0xf84001ce00, 0x6e69616d00000002,
0xf8401e8b0a, ...)
/usr/local/google/home/dvyukov/go_select/src/cmd/go/build.go:335 +0x208
main.runBuild(0x82abc0, 0xf840002020, 0x100000001, 0x0)
/usr/local/google/home/dvyukov/go_select/src/cmd/go/build.go:129 +0x386
main.main()
/usr/local/google/home/dvyukov/go_select/src/cmd/go/main.go:126 +0x2d8
runtime.main()
/usr/local/google/home/dvyukov/go_select/src/pkg/runtime/proc.c:231 +0x45
runtime.goexit()
/usr/local/google/home/dvyukov/go_select/src/pkg/runtime/proc.c:258

>Please use labels and text to provide additional information.
11662:b6e94b31350e tip
Issue 1:
The following program ICE's on the playpen (will update to git HEAD and check there):

fn main() {
for n in [1, 2, 3, 4].iter() {}
}

If you remove the for loop it is better, it will say "please add a suffix to 1" or something like that. (Maybe this was fixed by the recent changes in the for loop implementation?)

Exact ICE is

anon>:17:18: 17:27 error: internal compiler error: borrow-vec associated with bad sty: &ty_err
<anon>:17 for n in [1, 2, 3].iter() { }
^~~~~~~~~
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /build/rust-git/src/rust/src/libsyntax/ast_util.rs:784

Edit: The new for loop changes allow the above program to compile. But you can still access the bug with

fn main() {
let x = [1, 2, 3, 4].iter();
}

which ICEs even with git HEAD. (Above I said "if you remove the for loop it doesn't crash" but evidently I was wrong.)

Issue 2:
fn main() {
let v = &[];
let it = v.iter();
}

vec-ice.rs:3:13: 3:14 error: internal compiler error: borrow-vec associated with bad sty: &ty_err
vec-ice.rs:3 let it = v.iter();
^

(Doesn't happen with .slice.)
Issue 1:
Consider the following program that I run with Go 1.5.2 on 64-bit Fedora Linux:

package main
import "fmt"
func main() {
a := make([]byte, 185 * 1024 * 1024)
for i := 0; i < len(a); i += 4096 {
a[i] = 'x'
}
fmt.Printf("%c\n", a[0])
}

It allocates 185MB byte array and then forces OS to commit memory to it via touching all the pages. This programs runs OK and prints expected x even if I restrict the size of available virtual memory per process to 200MB using ulimit:

~/s> ulimit -S -v 204800
~/s> go run test.go
x

Now consider its modification like:

package main
import "fmt"
func main() {
a := make([]byte, 85 * 1024 * 1024)
a = nil
a = make([]byte, 150 * 1024 * 1024)
for i := 0; i < len(a); i += 4096 {
a[i] = 'x'
}
fmt.Printf("%c\n", a[0])
}

It allocates first 85MB, then clears the reference to the slice, and then allocates 150MB. This time under the same 200MB limit as set with ulimit it fails:

~/s> go run test.go
fatal error: runtime: out of memory

The same failure happens even with the explicit GC call after a = nil:

package main
import "fmt"
import "runtime"
func main() {
a := make([]byte, 85 * 1024 * 1024)
a = nil
runtime.GC()
a = make([]byte, 150 * 1024 * 1024)
for i := 0; i < len(a); i += 4096 {
a[i] = 'x'
}
fmt.Printf("%c\n", a[0])
}

Is it just a runtime bug? If not, how can I force the runtime to release a large allocation?

Issue 2:
by jan.newmarch:

www.google.com is blocked in China. So the test net.TestDialGoogle fails, aborting all
the rest of the tests. Preferred if failure is reported but the tests continue

--- FAIL: net.TestDialGoogle
-- 74.125.19.99:80 --
-- www.google.com:80 --
Dial("tcp4", "", "www.google.com:80") = _, dial tcp4 66.249.89.104:80: connection timed out

8g version 6288 release release.2010-09-15
Issue 1:
Bug report

Bug summary

Code for reproduction

#
plt.savefig('Photo.png', dpi=600, bbox_inches='tight')
#

Actual outcome

# If applicable, paste the console output here
# The output figure can be seen as below:

#

Expected outcome

Matplotlib version

Operating system: windows10 x64

Matplotlib version: 3.0.0

Matplotlib backend (print(matplotlib.get_backend())):

Python version: 3.5、3.6

Jupyter version (if applicable):

Other libraries:

The output figure file is strange: there is a lot of blank area on the output figure.

Issue 2:
Calling fig.tight_layout() on a figure with a 3d Axes inside will collapse the axes into a vertical line.

Minimal example:

import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

for tighten in False,True:
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.plot([1,2], [1,2], [1,2])
if tighten:
fig.tight_layout()

plt.show()

The following figures are produced with python 3.7, matplotlib 3.0.0 (also master):

There's also a warning that says

/home/user/matplotlib-env/lib/python3.7/site-packages/matplotlib/tight_layout.py:177: UserWarning: The left and right margins cannot be made large enough to accommodate all axes decorations.

but that's hardly surprising since there's no room for any decorations whatsoever.

May or may not be related to the recent-ish issues fixed by #11739 and #11627.
Issue 1:
In my case I have a http_proxy env variable on my development computer which passes all traffic to my vpn, however this proxy would fail to work when hostname is localhost, therefore when I'm testing my application it always fails because I setup my server at localhost, I want a method to force axios receiving a none for proxy config, currently if proxy property is null or undefined it will use the http_proxy env

Issue 2:
I have some endpoints that my proxy server doesn't handle well and in my NodeJS environment the http_proxy environment is set.

Can you honor the no_proxy environmental variable and/or allow a config option to disable proxy usage?

I'm using axios@0.13.1 for now.
Issue 1:
It would be nice if @CanActivate decorator would resolve some additional bindings if provided. For instance if the check I want to do during this step depends on some service that I've created, then I could do something like:

@CanActivate((myService: MyService) => { /* here I could use `myService` that was injected */ }, {
providers: [
MyService
]
})

I am aware that there is a ComponentInstruction passed to the function, but that is not of much help if I want to use anything else beyond just that.

Issue 2:
I'm submitting a ...

[x] feature request

Current behavior

Main motivation: print multiple object properties by using the async pipe with 1 network request

For array observables myObjects$: MyObject[] you can use the async pipe in the following way:

<div *ngFor="let myObject of myObjects$ | async">
<div>{{myObject.property1}}</div>
<div>{{myObject.property2}}</div>
<div>{{myObject.property3}}</div>
</div>

The code above will end in 1 network request.

For single object observables myObjects$: MyObject you can use the async pipe in the following way:

<div>
<div>{{(myObjects$ | async)?.property1}}</div>
<div>{{(myObjects$ | async)?.property2}}</div>
<div>{{(myObjects$ | async)?.property3}}</div>
</div>

The code above will end in 3 network requests :(

For sure you could cache the observable .publishReplay(1).refCount() (only 1 network request) but all together it looks odd.

Expected behavior

Add support for a local template variable e.g.:

<div *ngIf="let myObject = myObjects$ | async">
<div>{{myObject.property1}}</div>
<div>{{myObject.property2}}</div>
<div>{{myObject.property3}}</div>
</div>

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

Beautiful code for printing multiple object properties by using the async pipe with 1 network request.

Please tell us about your environment:

Linux

Angular version: 2.0.2

Browser: All

Language: TypeScript 2.0.3

Node (for AoT issues): 6.7.0