WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

Superset 0.19.1

Expected results

A normal Time Series - Line Chart.

Like this

Actual results

Steps to reproduce

I have a dimension have 'NULL'. What I mean is not all row have value.

Use this dimension as Group By.

Query.

More

I add a Filters into this form. The Filters is same dimension is 'event_name', relation is '!=', but the value I did not input anything.

Then, I can see the expected results.

I guess the reason is that default fill 0 into NULL, but my dimension is TEXT. Then occur unorderable types: str() > int().

And this is similar issue.

#3029

Issue 2:
Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

I installed the superset on one server(redhat os ) and connecting to redshift to perform a query.

I superseded that superset server might be slow when several users connect and use ...

Is there a way to install superset on multiple servers and load balancing when users connect?
Issue 1:
📝 Provide a description of the new feature

I would love to have Keyboard Manager to feature keyboard macros.

Issue 2:
Keyboard Manager should allow mapping complex keyboard events in Key and Mapped To parameters

Currently, the keyboard manager allows for remapping of simple keyboard events, such as single key-down, to a different keyboard event, which may include multiple modifiers (Ctrl, Shift, Alt). It would be a benefit to allow input parameters to be complex keyboard events including modifiers (Ctrl), multiple key events (holding down Shift (Left) and Shift (Right)), and key-up events (mapping Ctrl (Left) to be Ctrl on key-down and Esc on key-up).

The specific use-case I want to see is to replicate an AutoHotKey script that modifies the Caps Lock to Ctrl when pressed with another key, so Caps Lock - V would sendCtrl - V, but to send Esc on key-up if no other key is pressed. Additionally, the script also maps Shift (Left) and Shift (Right) combo to send Caps Lock.

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Issue 1:
issubset(x, y) is incredibly slow with vectors of strings compared with the equivalent isempty(setdiff(x, y)). This is because it uses elt in y rather than building a dictionary/set. Of course, issubset can be made even faster than setdiff when the result is false due to the possibility to short-circuit when encountering an element which does not appear in y.

julia> x = [@sprintf("id%010d", k) for k in 1:9999];

julia> y = [@sprintf("id%010d", k) for k in 1:10000];

julia> @time issubset(x, y)
0.388715 seconds (10.00 k allocations: 156.391 KiB)
true

julia> @time isempty(setdiff(x, y))
0.004538 seconds (17 allocations: 145.383 KiB)
true

Issue 2:
g = [1:10_000_000;]
m = sample(1:1_000_000, 40_000, replace=false)

@time z = intersect(g,m);
196.291597 seconds (20 allocations: 1.001 MB)

Here are two alternate intersections. The latter (isect2) does not preserve neither preserves order.

function isect(g,m)
is = []
for i in m
if i in g
push!(is,i)
end
end
return is
end

@time y = isect(g,m);
12.880327 seconds (40.00 k allocations: 1.611 MB)

function isect2(g,m)
is = []
gset = Set(g)
for i in m
if i in gset
push!(is,i)
end
end
return is
end

@time x = isect2(g,m);
1.430506 seconds (42.75 k allocations: 145.737 MB)

Set(z) == Set(y) == Set(x)
true
Issue 1:
Choose one: is this a bug report or feature request? Bug report.

Input Code

callee(castee: CastTo)

Babel Configuration (.babelrc, package.json, cli command)

Babylon with flow plugin enabled. Appears to affect both Babylon 6 and 7.

Expected Behavior

Both the Flow docs (https://flow.org/en/docs/types/casting/) and the Flow parser flag this as a parse error.

The Flow parser says Unexpected token : at line 1, column 13

It should be necessary to wrap type casts in explicit ( ), so e.g. callee((castee: CastTo)).

Current Behavior

Parses successfully leaving an AST like

ExprStmt( CallExpression( callee, TypeCastExpression( castee, CastTo ) ) )

Possible Solution

I am working on a patch here: wcjohnson/babylon-lightscript@322842a

The patch is against a heavily modified Babylon but may be useful nonetheless.

The basic idea is to parse as TypeCastish and then convert back to TypeCastExpression only during parseParenAndDistinguishExpression. Any time a TypeCastish is seen outside of there, throw an unexpected type cast error.

Context

I work on the LightScript language, which uses a fork of Babylon as its parser. The LightScript issue that led to this issue is here: wcjohnson/lightscript#22

Your Environment

software
version(s)

Babylon
approximately 6.16.0

node
6

npm
5

Operating System
OS X

Issue 2:
Input Code

state.set('foo': bar)

Babylon/Babel Configuration

Flow syntax plugin enabled

Expected Behavior

Should be a syntax error

Current Behavior

We're currently parsing bar as a TypeCastExpression w/ a value of foo. Flow requires that you wrap a TypeCastExpression in parens, and we're allowing the parens for the CallExpression to be used right now, which the Flow parser does not allow.

Context: https://twitter.com/schep_/status/841741581589860355
Issue 1:
Robert Gacki opened SPR-9635 and commented

Lets say I have an annotated handler method:

@RequestMapping
public @ResponseBody FooResponse doFoo(@RequestBody FooRequest) {
}

And I have HttpMessageConverters that can convert various formats like XML and JSON by looking at the format extension of the MediaType's subtype. In the example, this would be:

application/vnd.foo-request+xml and application/vnd.foo-response+xml for converting from and to XML

application/vnd.foo-request+json and application/vnd.foo-response+json for converting from and to XML

I do not want to pollute my handler methods with the format because the format handling is delegated to the HttpMessageConverters:

@RequestMapping(consumes = "application/vnd.foo-request", produces = "application/vnd.foo-response")
public @ResponseBody FooResponse doFoo(@RequestBody FooRequest) {
}

The MediaType classes' include method does not allow this scenario. It checks whether the subtype without the suffix is a wildcard and therefore matching: application/*+xml includes application/vnd.foo-response+xml.

But it does not check the generalization: application/vnd.foo-response includes application/vnd.foo-response+xml or application/soap includes application/vnd.foo-response+json.

So my method, that does not want to know how about the RequestBody's / ResponseBody's serialized format, can not be found by the HandlerMapping (RequestMappingHandlerMapping).

Affects: 3.1.1

Issue Links:

#12560 MappingJacksonHttpMessageConverter default media type should include *+json ("duplicates")

Issue 2:
Victor opened SPR-843 and commented

In SchedulerFactoryBean class, the following method is intended to create a scheduler using the schedulerName param:

protected Scheduler createScheduler(SchedulerFactory schedulerFactory, String schedulerName)
throws SchedulerException {
if (schedulerName != null) {
return schedulerFactory.getScheduler(schedulerName);
}
else {
return schedulerFactory.getScheduler();
}
}

This, however, doesn't work because the "schedulerFactory.getScheduler(schedulerName)" in quartz is used to retrieve an exisiting instance instead of creating anything new. The result is you always got a NullPointerException if you set the schedulerName in bean config xml.

The quick fix is to change it to be as following:

protected Scheduler createScheduler(SchedulerFactory schedulerFactory, String schedulerName)
throws SchedulerException {
return schedulerFactory.getScheduler();
}

And specify the schedulerName and quartz instance name in the quartz properties, e.g.

<property name="schedulerName">
<value>cronSched</value>
</property>
<property name="quartzProperties">
<props>
<prop key="org.quartz.scheduler.instanceName">cronSched</prop>
</props>
</property>

There must be more elegant solution for this ;)

Affects: 1.1.5

Issue Links:

#5499 Multiple schedulers ("duplicates")
Issue 1:
Consider the following example:

const PairUnion = Union{Pair{Int,Int8},Pair{Int,UInt8}}

array = PairUnion[1=>0x2]

function pair1(a)
x, y = a[1]
x => y
end

function pair2(a)
xy = a[1]
x = xy.first
y = xy.second
x => y
end

function pair3(a)
xy = a[1]
x = first(xy)
y = last(xy)
x => y
end

Then:

julia> @btime pair1($array)
73.935 ns (1 allocation: 32 bytes)
1 => 0x02

julia> @btime pair2($array)
76.299 ns (1 allocation: 32 bytes)
1 => 0x02

julia> @btime pair3($array)
5.051 ns (0 allocations: 0 bytes)
1 => 0x02

When looking at @code_warntype, it looks like x and y are inferred to be Union{Int,Int8,UInt8} for pair1 and pair2, while in pair3 they are inferred as Int and Union{Int8,UInt8} as expected.

Issue 2:
julia> a = ("foo" => "bar", "baz" => nothing);

julia> function f(a, i)
y = iterate(a, i)
if y !== nothing
(k, v), st = y
return k, v
end
return y
end

julia> @code_warntype f(a, 1)

infers to Union{Nothing, Tuple{Union{Nothing, String},Union{Nothing, String}}} In particular, k is inferred as k::Union{Nothing, String} but it could maybe be inferrable as a String.
Issue 1:
Q
A

Bug report?
no

Feature request?
yes

BC Break report?
no

RFC?
no

Symfony version
any

Real case scenario: I want to pass an extra parameter to a route (see docs), and the value of such parameter is an object. The typical example is a Uuid object (e.g. Ramsey\Uuid).

Problem is that PHP is not smart enough and it does not cast objects to string. See related bug on php.net.

Of couse, such feature could be easily obtained in a typical plain PHP context, since it's very easy to cast your object to a string.

In a typical Symfony context, instead, you can't easily cast strings, unless doing ugly things.

Example of not working code:

{# generated URL has no query string #}
<a href="{{ path('my_route', {foo: object.uuid}) }}">my link</a>

Example of working code, with ugly workaround:

{# generated URL has expected query string, e.g. ?foo=7ecff38e-4145-11e8-80b9-0242ac140004 #}
<a href="{{ path('my_route', {foo: object.uuid.__toString}) }}">my link</a>

My proposal is: inside doGenerate method of UrlGenerator class, Symfony should cast parameters to string before passing them to http_build_query

Issue 2:
For Symfony2 Router with the help of standart bundle (sensio extra) we can write ParamConverters to convert request param=>object. Is there any standart way to use reversed convertion?

Now we must do something like this:

path('DevBlogBundle_post_show',{'post':post.id})

While a better way would be:

path('DevBlogBundle_post_show',{'post':post})

I've found even example jist:

https://gist.github.com/stevelacey/3226510

Maybe, we should think about adding such functionality to future releases of, for example, sensioFrameworkExtra bundle?

If there is no such functionality, is bundle providing such extension would be needed?

Thanks.
Issue 1:
Keith Donald opened SPR-5406 and commented

Simple thing we can do:

Provide a TilesViewResolver subclass of UrlBasedViewResolver that configures the viewClass to be TilesView as a convenience

First noticed this when explaining configuring you need to configure a URL resolver for Tiles view proved quite complex. It's simpler to just say configure a Tiles view resolver.

Affects: 3.0 M1

Issue Links:

#10176 Provide first-class Tiles ViewResolver implementation ("is duplicated by")

#10359 Add TilesViewResolver to enable fallback if tiles definition does not exist

2 votes, 2 watchers

Issue 2:
Hannes Schmidt opened SPR-7867 and commented

Spring's annotation-based REST controllers support almost any combination of HTTP method and request/respond payload. For example, it is possible to write a controller method that accepts a DELETE with a request body object.

RestTemplate should IMHO mirror these capabilities and support request/response bodies for all methods regardless of whether a combination is allowed by the REST RFCs.

Alternatively, RestTemplate could make it easier to add support for these combinations in custom subclasses by making its various inner-classes protected.

Affects: 3.0.5

Issue Links:

#18637 RestTemplate doesnt support DELETE with RequestBody ("is duplicated by")

#16966 Add support for DELETE with body to RestTemplate through exchange method

5 votes, 7 watchers
Issue 1:
in collapse view, the above seems to happen on normal and inverse navbar when the brand name is not included. you can just about make out its outline in the top right behind the home link.

( apologies if this has already been spotted. )

Issue 2:
Hi,

I test version 3.0 RC1. I have a problem when I hive my website with my mobile. In Fact when I am on my home page and show my menu I don't hidden this menu. Why ? Because de first item on the nav is "active" and the button (show/hid) is in background.

I hope that I am clear.

best regards,

Lefandordinateur
Issue 1:
I've written a repro test here:

https://github.com/prashantv/listener-repro/blob/master/main.go

It basically does the following:

Start a listener

Create connectionsBeforeClose connections to the listener (which should succeed)

Close the listener

Create another connection to the listener

On the listener side, I expect to receive at most connectionsBeforeClose successful connections. Any extra connections causes the runTest method to return an error.

This works as expected on OSX, but on Linux, it seems to receive a successful connection after the listener has been closed.

Some things I noticed:

If connectionsBeforeClose is set to 0, then no unexpected connections are made after the listener is closed

The issue also disappears if I enableSleep

I would expect that a Listener will not accept any further socket attempts after Close has returned.

Issue 2:
Go version: go1.4.2

OS: Linux 3.13 x86_64

The following test demonstrates what I consider a bug:

package foo

import (
"log"
"net"
"testing"
)

const addr = "127.0.0.1:12345"

func TestXxx(t *testing.T) {
for i := 0; i < 100000; i++ {
log.Printf("Iteration %d", i+1)
l, err := net.Listen("tcp4", addr)
if err != nil {
t.Fatalf("Failed to listen on %s: %v", addr, err)
}
go func(l net.Listener) {
for {
_, err := l.Accept()
if err != nil {
return
}
}
}(l)
if err := l.Close(); err != nil {
t.Fatalf("Failed to close server: %v", err)
}
}
}

Briefly, within a loop it Listens on tcp port 12345, invokes a goroutine that calls Accept on the listener, and then Closes the listener. My expectation was that this would always pass regardless of scheduler behavior or number of loop iterations as I expected Close() would only return once the underlying socket is no longer in use.

Instead what I see is that it will sometimes pass, but often fails on the net.Listen call of subsequent loop iterations with an error that the address is already in use. I believe I understand the cause of the failure. netFD underlies the TCPListener and it's a reference counted object. A goroutine blocked on Accept will increment the reference count. Close() flips a flag on netFD to indicate the socket is considered closed which will make other netFD operations like Accept return errors indicating the socket is closed. The underlying OS socket is only closed once the reference count for the netFD has reached zero.

The end result is that an OS socket is only closed after TCPListener.Close() is invoked AND all goroutines that are blocked in TCPListener.Accept() are scheduled and return the expected error condition. It seems like more intuitive behavior would be for TCPListener.Close() to immediately close the underlying OS socket, and goroutines blocked in TCPListener.Accept() to return errors whenever they were next scheduled/run.
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.1

Operating System version: windows10

Java version: 1.8.0

Steps to reproduce this issue

I run the code, which is copied from dubbo-samples-consul.

run the docker-compose.yml

run provider

run consumer

Actual Result

Provider seems ok:

Consumer fails with error:

So I check the status of service on consul:

It seems that health check fails, but direct connection to service without registry is ok.

So is there anything that I do wrongly, or is there any difference on windows10?

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

Step to reproduce this issue

Config the protocol, but do not config the port parameter

Start the application integrating dubbo.

According the document, if user does not config the port of protocol, Dubbo will pick an available port that count from the default port dynamically.

But the actual result is that Dubbo just pick the default port. It does not pick an available port dynamically.

So should we modify the code or document ?
Issue 1:
It's common case for continuous deployment to change elasticsearch's client and index independently. This leads to the case when fieldValueFactorFunction is added to the client but index is not rebuilt yet. I use missing property. Unfortunately FieldValueFactorFunctionParser demands to have a field in a mapping, it throws exception otherwise. This means we can't deploy an client before index is updated despite having missing property set. The suggestion here is to look as missing in case of field in the document or mapping are missing.

Issue 2:
In the snippet below, index analyzertest1 has an analyzer defined with filters, and analyzertest2 - with filter. The latter works, the former doesn't (see also #16451).

When I specify filters inline, the situation is reversed: filters works, filter doesn't.

post analyzertest1
{
"settings": {
"analysis": {
"analyzer": {
"my_analyzer": {
"tokenizer": "standard",
"filters": ["lowercase"]
}
}
}
}
}

post analyzertest1/_analyze
{
"analyzer": "my_analyzer", "text": "ABCD"
}
// Result: "ABCD"

post analyzertest2
{
"settings": {
"analysis": {
"analyzer": {
"my_analyzer": {
"tokenizer": "standard",
"filter": ["lowercase", "stop"]
}
}
}
}
}

post analyzertest2/_analyze
{
"analyzer": "my_analyzer", "text": "ABCD"
}
// Result: "abcd"

post _analyze
{
"tokenizer": "standard",
"filter": ["lowercase"],
"text": "ABCD"
}
// Result: error "unknown parameter [filter]"

post _analyze
{
"tokenizer": "standard",
"filters": ["lowercase"],
"text": "ABCD"
}
// Result: "abcd"
Issue 1:
VSCode Version: 0.10.11

OS Version: Mac OS X Yosemite (10.10.5)

Default syntax highlighting

Issue persists when running VSCode with --disable-extensions

Syntax highlighting gets confused within for loop. Strings don't get recognized. Elements that follow a string are considered to be strings instead (as it seems to me).

After the for-loop there are still syntax highlighting errors but line 74 in screenshot looks fine again.

Steps to Reproduce:

Open new TypeScript file within Angular 2 project (aka create new component)

Create for loop (see Screenshot)

Issue 2:
Ported from microsoft/TypeScript-Sublime-Plugin#285

Related to microsoft/TypeScript-Sublime-Plugin#265.

Issue:

Correct:
Issue 1:
gelu = getattr(F, "gelu", _gelu_python)

should be changed to:

if torch.__version__ < '1.4.0':
gelu = _gelu_python
else:
gelu = getattr(F, "gelu", _gelu_python)

Issue 2:
🐛 Bug

BERT breaks during FP16 training due to the gelu function.

File "/home/user/miniconda/envs/py36/lib/python3.6/site-packages/transformers/modeling_bert.py", line 407, in forward

hidden_states, attention_mask, head_mask[i], encoder_hidden_states, encoder_attention_mask

File "/home/user/miniconda/envs/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 547, in __call__

result = self.forward(*input, **kwargs)

File "/home/user/miniconda/envs/py36/lib/python3.6/site-packages/transformers/modeling_bert.py", line 379, in forward

intermediate_output = self.intermediate(attention_output)

File "/home/user/miniconda/envs/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 547, in __call__

result = self.forward(*input, **kwargs)

File "/home/user/miniconda/envs/py36/lib/python3.6/site-packages/transformers/modeling_bert.py", line 332, in forward

hidden_states = self.intermediate_act_fn(hidden_states)

File "/home/user/miniconda/envs/py36/lib/python3.6/site-packages/torch/nn/functional.py", line 1125, in gelu

return torch._C._nn.gelu(input)

RuntimeError: "GeluCUDAKernelImpl" not implemented for 'Half'

Information

The reason this is happening is because in modeling_bert.py, in 2.4.1 we had:

def gelu(x):
""" Original Implementation of the gelu activation function in Google Bert repo when initially created.
For information: OpenAI GPT's gelu is slightly different (and gives slightly different results):
0.5 * x * (1 + torch.tanh(math.sqrt(2 / math.pi) * (x + 0.044715 * torch.pow(x, 3))))
Also see https://arxiv.org/abs/1606.08415
"""
return x * 0.5 * (1.0 + torch.erf(x / math.sqrt(2.0)))

...

ACT2FN = {"gelu": gelu, "relu": torch.nn.functional.relu, "swish": swish, "gelu_new": gelu_new, "mish": mish}

whereas in 2.5.0 we have:

ACT2FN = {"gelu": gelu, "relu": torch.nn.functional.relu, "swish": swish, "gelu_new": gelu_new, "mish": mish}

where gelu now comes from activations.py as:

gelu = getattr(F, "gelu", _gelu_python) on line 21.

Environment info

transformers version:

Platform: Linux

Python version: 3.6

PyTorch version (GPU?): 1.2.0 CUDA 10.0

Tensorflow version (GPU?): 2.5.0

Using GPU in script?: V100

Using distributed or parallel set-up in script?: No, but using Apex FP16 training
Issue 1:
Back in January, it was documented that an API to set window shape would be coming once an upstream bug was resolved. That bug was already "lower than Priority 1" at the time.

I'm curious if it would be possible to make a setting in the interim to just ignore all clicks and pass them through to whatever's underneath? I'd like to make an overlay type program and would effectively like to say my window shape is a 0x0 rectangle. In my case, I'd be fine with strictly Windows compatibility.

Issue 2:
As commented here, #949 (comment) - transparent windows unfortunately are of limited use unless you can click through the transparent area.

I noticed that in the documentation it is stated that this is blocked by an upstream bug. The nw.js project DOES have support for this, but i'm not sure how different their implementation is...

I think this is worth the issue to track discussion and implementation, so here it is.