WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
When I execute the following SQL in the apache-shardingsphere-5.0.0-RC1-SNAPSHOT-shardingsphere-proxy-bin, the following error is reported：

select product_id, apply_id from coupon_activity_map inner join coupon_products_map on coupon_activity_map.coupon_apply_id = coupon_products_map.apply_id where product_id in (1900080401,100022,20468821) and coupon_activity_map.activity_end_date > '2021-08-03 10:39:11';

ERROR 1815 (HY000): Internal error: exception while executing query: class java.sql.Timestamp cannot be cast to class java.lang.Long (java.sql.Timestamp is in module java.sql of loader 'platform'; java.lang.Long is in module java.base of loader 'bootstrap')

the proxy logs as follows:

Caused by: java.lang.ClassCastException: class java.sql.Timestamp cannot be cast to class java.lang.Long (java.sql.Timestamp is in module java.sql of loader 'platform'; java.lang.Long is in module java.base of loader 'bootstrap')

at Buzz.execute(Unknown Source)

at Buzz.execute(Unknown Source)

at org.apache.calcite.interpreter.TableScanNode.lambda$createEnumerable$1(TableScanNode.java:270)

at org.apache.calcite.linq4j.EnumerableDefaults$28.moveNext(EnumerableDefaults.java:3667)

at org.apache.calcite.linq4j.TransformedEnumerator.moveNext(TransformedEnumerator.java:35)

at org.apache.calcite.linq4j.EnumerableDefaults.toLookup_(EnumerableDefaults.java:3563)

at org.apache.calcite.linq4j.EnumerableDefaults$14.enumerator(EnumerableDefaults.java:2621)

at org.apache.calcite.linq4j.EnumerableDefaults$MergeJoinEnumerator.getLeftEnumerator(EnumerableDefaults.java:4137)

at org.apache.calcite.linq4j.EnumerableDefaults$MergeJoinEnumerator.leftMoveNext(EnumerableDefaults.java:4153)

at org.apache.calcite.linq4j.EnumerableDefaults$MergeJoinEnumerator.start(EnumerableDefaults.java:4174)

at org.apache.calcite.linq4j.EnumerableDefaults$MergeJoinEnumerator.(EnumerableDefaults.java:4132)

at org.apache.calcite.linq4j.EnumerableDefaults$13.enumerator(EnumerableDefaults.java:2187)

at Baz$7$1.(Unknown Source)

at Baz$7.enumerator(Unknown Source)

at org.apache.calcite.linq4j.AbstractEnumerable.iterator(AbstractEnumerable.java:33)

at org.apache.calcite.avatica.MetaImpl.createCursor(MetaImpl.java:90)

at org.apache.calcite.avatica.AvaticaResultSet.execute(AvaticaResultSet.java:184)

at org.apache.calcite.jdbc.CalciteResultSet.execute(CalciteResultSet.java:64)

at org.apache.calcite.jdbc.CalciteResultSet.execute(CalciteResultSet.java:43)

at org.apache.calcite.avatica.AvaticaConnection.executeQueryInternal(AvaticaConnection.java:573)

... 16 common frames omitted

Issue 2:
Bug Report

Which version of ShardingSphere did you use?

master

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

Proxy

Actual behavior

When using server PreparedStatement to execute TCL, the transaction state in BackendConnection is incorrect.
Issue 1:
Apache Airflow version

2.1.4 (latest released)

Operating System

Ubuntu 20.04.3 LTS (Focal Fossa)

Versions of Apache Airflow Providers

apache-airflow-providers-apache-hive==2.0.0

apache-airflow-providers-cncf-kubernetes==2.0.2; python_version >= "3.6" and python_version < "4.0"

apache-airflow-providers-ftp==2.0.1; python_version >= "3.6" and python_version < "4.0"

apache-airflow-providers-http==2.0.1; python_version >= "3.6" and python_version < "4.0"

apache-airflow-providers-imap==2.0.1; python_version >= "3.6" and python_version < "4.0"

apache-airflow-providers-oracle==2.0.1

apache-airflow-providers-postgres==2.2.0

apache-airflow-providers-sqlite==2.0.1; python_version >= "3.6" and python_version < "4.0"

apache-airflow-providers-ssh==2.1.1

Deployment

Virtualenv installation

Deployment details

Dag Graph UI:

Dag Tree View (same time):

What happened

Statuses of Tasks: 'running', 'queued' don't update inside TaskGroup. New task statuses appear only with reclick on TaskGroup.

What you expected to happen

I expect that statuses of Tasks are actual. Withou reclick on TaskGroup

How to reproduce

Create TaskGroup with Task, run DAG, close DAG window and u will see empty statuses of tasks.

Anything else

Problem occurs always.

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Apache Airflow version

2.1.4 (latest released)

Operating System

Linux/Debian

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

What happened

When upgrading to latest release (2.1.4) from 2.1.3, Graph View does not properly display tasks statuses.

See:

All these tasks are in succeed or failed status in the Tree View, for the same Dag Run.

What you expected to happen

Graph View to display task statuses.

How to reproduce

As I can see, DAGs without tasks groups are not affected. So, probably just create a DAG with a task group. I can reproduce this with in local with the official docker image (python 3.8).

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
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.4.1

Operating System version: Linux 4.15.0-122-generic #124~16.04.1-Ubuntu SMP Thu Oct 15 16:08:36 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Java version: 1.8.0_201

Steps to reproduce this issue

Provide a method in service-side and return a large data( for example 4M).

Create a fixed threadpool(fox example,with 100 threads), and invoke the remote method in a loop.

After the loop finished, the memory about 400M was always kept by InternalThreadLocalMap.

Expected Result

After all finished, memory kept by InternalThreadLocalMap will be revoked by GC.

Actual Result

The memory about 400M was always kept by InternalThreadLocalMap.

More

The demo can reproduce this issue.

Other information I can provided:

The leak memory was created by FutureContext#futureTL, and data in threadlocal can be traced by InternalThreadLocal#VARIABLES_TO_REMOVE_INDEX, invoke method InternalThreadLocal#removeAll in consumer filter can free the memory, but I can't find any usages of this method. Now I add InternalThreadLocal#removeAll in an extended filter to solve this problem in my program.

If this is configuration error, thanks for your correction.

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.

The test dubbo-common,org.apache.dubbo.common.threadlocal.InternalThreadLocalTest.testSize is not idempotent and fails if run twice in the same JVM, because it pollutes state shared among tests.

Environment

Dubbo version: dubbo-2.7.8

Operating System version: macOS 10.15.6

Java version: 1.8.0_151

Steps to reproduce this issue

Run unit test InternalThreadLocalTest.testSize twice in the same JVM.

Expected Result

Specifically, when running InternalThreadLocalTest.testSize twice in the same JVM, both runs should pass.(The test should not modify shared states among the tests)

Actual Result

While the first run of InternalThreadLocalTest.testSize passes, the second run of the test fails with the following error:

error: org.opentest4j.AssertionFailedError: size method is wrong! ==>
Expected :1 Actual :3
at org.apache.dubbo.common.threadlocal.InternalThreadLocalTest.testSize(InternalThreadLocalTest.java)
Issue 1:
Bug:

If you click a bit quickly and sequentially group items #2 and #3, they both open. (should not occur). same thing can happen with any two groups, if cliked a bit more quick than normal speed, while browsing.

Feature Request:

Options variable: force one group item to be always visible, so that the user will not hide all groups together on a static layout page.

Issue 2:
Steps to reproduce the issue:

Goto: http://twitter.github.com/bootstrap/javascript.html#collapse

Expand third item, wait

Click on second and then quickly click on the first item

Both first and second panels will be expanded.
Issue 1:
$ cat example.json
{
"kind": "Pod",
"apiVersion": "v1",
"metadata": {
"name": "example",
},
"spec": {
"containers": [
{
"name": "example",
"image": "phusion/baseimage:latest",
"command": [
"echo", "hello"
],
},
],
}
}

(There's a syntax error in there somewhere, not sure where.)

$ kubectl create -f example.json

invalid character '}' looking for beginning of object key string

kubectl should include the line and column number so I can fix my json.

Issue 2:
Kubernetes version v1.3.0

Kubelet concatenates host /etc/resolv.conf and cluster domain entries for my pod, resulting in an invalid config (too many entries with duplicates). The max is only 6 search domains. Any more and DNS resolution breaks when trying to leverage search domains.

The example below has only cluster DNS entries, but illustrates the issue:

Host /etc/resolv.conf:

search default.svc.cluster.local svc.cluster.local cluster.local

nameserver 10.233.0.2

nameserver 10.90.0.1

options timeout:2

options attempts:2

Container /etc/resolv.conf:

kubectl run -i --tty busybox --image=busybox -- sh

(skip waiting text)

/ # cat /etc/resolv.conf

search default.svc.cluster.local svc.cluster.local cluster.local default.svc.cluster.local svc.cluster.local cluster.local

nameserver 10.233.0.2

options attempts:2

options ndots:5

I should be enable cluster DNS config in my host DNS settings and still have functional pod DNS. Kubelet should be intelligent enough to filter out duplicate search domain entries (or drop search domains beyond the 6th entry)
Issue 1:
Electron version: v0.37.5

Operating system: Fedora Workstation 23

As far as I can see in the latest version, <webview> is not working for me. The element is on the document but Electron seems to skip right over it. On the other hand <iframe> seems to work as expected. I have had it setup similar to the following:

`

<style>
.box {
height: 500px;
width: 500px;
}
</style>

IFrame

<iframe class="box" src="https://www.github.com/"></iframe>

Webview

`

Screenshot:

Note: I am aware that GitHub not loading in the iframe, that is NOT the error I am trying to report.

Issue 2:
I have a very little demo like this:

<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<webview src="https://www.google.com/" autosize="on" minwidth="576" minheight="432"></webview>
</body>
</html>

When I run the application, I get a blank page, nothing displayed. But if I add some script to the page, the webview will render. e.g.:

<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<script>console.log("Hello World");</script>
<webview src="http://www.baidu.com/" autosize="on" minwidth="576" minheight="432"></webview>
</body>
</html>
Issue 1:
I'm currently using Julia 1.7.0 and discovered some weird behaviour between minimum and Set{CartesianIndex}

julia> versioninfo()
Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
JULIA_LOAD_PATH = /home/doudou/Documents/Code/AdventofCode:@:@v#.#:@stdlib

The minimal reproducible code is the following:

s = Set(CartesianIndices((2, 2)))
#Set{CartesianIndex{2}} with 4 elements:
# CartesianIndex(2, 1)
# CartesianIndex(1, 1)
# CartesianIndex(2, 2)
# CartesianIndex(1, 2)

minimum(s)
#CartesianIndex(1, 1)

delete!(s, CartesianIndex(1, 1))
#Set{CartesianIndex{2}} with 3 elements:
# CartesianIndex(2, 1)
# CartesianIndex(2, 2)
# CartesianIndex(1, 2)

minimum(s)
#CartesianIndex(1, 1)

minimum(s) ∈ s
#false

pop!(s)
#Any element of s randomly

minimum(s) ∈ s
#true

This does not happens with other type (tried Int and some custom struct) inside the set and it seems a pop! puts everything back in order.

Issue 2:
Since If blocks are expressions, Julia's ternary operator is redundant since it is just a less readable alias for an if block. Furthermore, since Julia uses both : as a separate operator it leads to ambiguous parses in cases like whichrange()?1:2:3:4 (which returns 1 or 2:3:2 in Julia 0.6).

Deprecating the ?: syntax in favor of just pointing people to if blocks would make the language more consistent, it would eliminate the possibility of an ambiguous parse, and it would mean that people coming from Python or Matlab would have one less new bit of syntax to learn. Using if as a ternary expression is natural enough that I don't think that having the same syntax as C is of any benefit tbh.

Regarding the same tradeoff in other languages, Rust had both if expressions and ?: in beta, but deprecated ?: before 1.0. When someone put up a post-1.0 pull request in favor of adding (?:) it was overwhelmingly voted against

( rust-lang/rust#1698

rust-lang/rust#1705

rust-lang/rfcs#1362 ).
Issue 1:
Code Sample, a copy-pastable example if possible

I have not found an easy way to access a column of a multi index by name. Consider the following code:

import pandas as pd
df = pd.DataFrame([[1,1,10,200],
[1,2,11,201],
[1,3,12,202],
[2,1,13,210],
[2,2,14,230]],
columns=list('ABCD')).set_index(['A','B'])
ii = df.index

To access the values of column B i can e.g. do:

df.reset_index('B').B.tolist()

or

[v[1] for v in ii.tolist()]

Both of there are somewhat cumbersome What I'm proposing is to add similar shorcut access to a multiindex just like a dataframe. E.g.

ii.B

or

ii['B']

that would return the same list as in the two examples above.

output of pd.show_versions()

0.18.1

Issue 2:
Hi Wes,

I'm trying to read in a csv file with few header lines at the beginning of the file starting w/ a '#'. I tried to use skiprows specifying a list of the first n rows to skip as [0,1,2,3,..,n] but I keep getting Index has duplicates ['#'] error. Is this a bug or I'm doing something wrong? Also, will this be the best place to post such issues?

I'm using pandas v 0.6.0 with python 2.7.2

Thanks for the great work you are doing w/ pandas. I'm finding it very useful and saves me a lot of time analyzing time series data.

-Solomon
Issue 1:
If a metric is deleted, charts using it in a single-value MetricControl won't be able to replace it with another metric.

Screenshots

How to reproduce the bug

Add a saved metric to a chart using single-value metric select (e.g. Country Map or Pie Chart).

Save the chart

Delete said metric in Datasource editor and save.

Refresh the page.

Environment

Latest master

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

Reproduced the issue on versions:

0.17.0

0.17.3

Expected results

Exporting and importing dashboard anonymously should fail with an authorization error unless permissions were granted to the Public role.

Actual results

No authorization checks occur on dashboard export or import.

Dashboards and slices are successfully exported and will be imported without an owner ID (effectively creating a duplicate dashboard / slices)

Steps to reproduce

Install Superset

Configure a data source

Create a slice

Create a dashboard and add the slice

Note the ID of the dashboard

Use curl to export the dashboard to a pickle file (see below for actual command)

Optionally modify the existing dashboard

Use curl to import the dashboard

See that the imported dashboard is created without an owner

curl commands

Export the dashboard with a given ID:

This will export the dashboard with ID=6 and save the output as test.pickle

$ curl 'http://localhost:8088/dashboardmodelview/export_dashboards_form?id=6&action=go' -o test.pickle

Import the dashboard back into Superset:

This will import the above test.pickle file back into Superset

$ curl -X POST http://localhost:8088/superset/import_dashboards -F "file=@test.pickle"

Other details

OS is CentOS 7

Configuration has AUTH_ROLE_PUBLIC = 'Public'

The Public role has the default empty set of permissions
Issue 1:
Feature request for the opposite of #1603 (not to reverse it, but to add an option to disable it).

Currently: Atom will reopen files that were not closed from last time (within the same project)

Desired: An option to disable this, so that no additional files are opened when Atom starts

There is currently a hack for this, however, a configurable setting would be much more appropriate.

Using: Atom 0.198.0 on Linux

Thanks

Issue 2:
It's useful that atom can remember the files/folders you had open last time and then re-open them next time you start atom. I can't seem to figure out how to turn off this behavior though, I generally want to start clean each time I open atom.

Is there a config option to enable/disable this feature? Or could we implement a dialog box when closing atom that asks if you want it to remember what you had open?
Issue 1:
If state is currently:

{
foo: 123,
user: {typing: false, active: false}
}

Then calling this.setState({user: {typing: true}}) results in state being:

{
foo: 123,
user: {typing: true}
}

It would be great to have a setStateRecursively function and to make it clear in the setState documentation that it only merges one level deep before just replacing sub-states.

Issue 2:
You know people want it…
Issue 1:
If an exception is handled by exception handlers and a valid response is generated then the response should also be processed using process_response.

Issue 2:
Is flask run supposed to spin up a TLS listener if the app is configured with TLS?

Take this app.py:

if __name__ == "__main__":
app.run(ssl_context=('cert.pem', 'key.pem'))

If i run python app.py i get the expected Listening on https://... and all is well - note the https.

If i run flask run i get an HTTP listener, Listening on http://.... No TLS.

Is this expected behaviour? May i suggest mentioning this somewhere in the quickstart? - http://flask.pocoo.org/docs/0.12/quickstart/

Would be great if someone would lay out the difference between the two invocations.

Ref:

https://stackoverflow.com/questions/48518584/
Issue 1:
Challenge Waypoint: Target HTML Elements with Selectors Using jQuery has an issue.

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<script>
$(document).ready(function() {
$("button").addClass("animated bounce")
});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

Issue 2:
Challenge Waypoint: Use Hex Code for Specific Colors has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My answer is correct but wrongly flagged as erroneous.

My code:

<style>
body {
background-color: #000000;
}
</style>
Issue 1:
I was not able to find it, but is it possible to fetch dependencies from protected sources such as private GitHub or Azure DevOps repositories by providing an Authorization header with Personal Access Token?

Issue 2:
When importing the standard library without specifying a version, there are two warnings:

Implicitly using latest version (<version>) for <url>;

The import of "<url>" was redirected to "<new-url>".

But it shows wrong redirect and wrong latest version (older ones).

You could see on screenshots, that version offered by Deno is 0.151.0; but the real redirect refers to version 0.156.0:

Quick fix "Update specifier to its redirected specifier" updates the link to the outdated version.

Expected behavior:

When no version is defined, show real redirects in hints; follow real redirects on "quick fix".
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-pre-release/518/

Failed: Up {e2e.go}

error running up: exit status 1

Previous issues for this test: #33357 #33377 #33993

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

Failed: Up {e2e.go}

error running up: exit status 1

Previous issues for this test: #33357 #33377
Issue 1:
TypeScript Version:

1.8.0-beta

Code

for (const v of [1,2,3]);

Expected behavior:

A compiler error: re-assignment of const-variable in loop.

Actual behavior:

Compiled successfully.

Issue 2:
TypeScript Version:

1.8.7

Code

type OnlyNumberKeys = {[key: number]: any};
let a: OnlyNumberKeys = {};

a["abcd"] = 1; // No error?
let x = a["abcd"]; // No error?

type OnlyStringKeys = {[key: string]: any};
let b: OnlyStringKeys = {};

b[1234] = 1; // No error?
let y = b[1234]; // No error?

Expected behavior:

Should error

Actual behavior:

Doesn't error

(Sorry if this is a duplicate but a search did not yield anything on this)