WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Bug Report

Which version of ShardingSphere did you use?

master - b31a543

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

ShardingSphere-Proxy MySQL

Expected behavior

Batched update succeed.

Actual behavior

Exception in thread "main" java.sql.SQLException: Unsupported command: [COM_SET_OPTION]
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3978)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3914)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2530)
at com.mysql.jdbc.MysqlIO.disableMultiQueries(MysqlIO.java:3670)
at com.mysql.jdbc.PreparedStatement.executePreparedBatchAsMultiStatement(PreparedStatement.java:1492)
at com.mysql.jdbc.PreparedStatement.executeBatchInternal(PreparedStatement.java:1303)
at com.mysql.jdbc.StatementImpl.executeBatch(StatementImpl.java:970)
at icu.wwj.MySQLBatchedUpdate.main(MySQLBatchedUpdate.java:18)

Reason analyze (If you can)

MySQL JDBC driver enable rewriteBatchedStatements=true.

Example codes for reproduce this issue (such as a github link).

try (Connection connection = DriverManager.getConnection("jdbc:mysql://127.0.0.1:13306/sbtest?useSSL=false&rewriteBatchedStatements=true", "root", "root")) {
connection.setAutoCommit(false);
try (PreparedStatement preparedStatement = connection.prepareStatement("update sbtest2 set k=k+1 where id = ?")) {
for (int i = 0; i < 10; i++) {
preparedStatement.setInt(1, i + 1);
preparedStatement.addBatch();
}
preparedStatement.executeBatch();
}
connection.rollback();
}

How

Supports COM_SET_OPTION.

Handle multi-statements update in COM_QUERY executor.

Issue 2:
Issue 1:
I'm new to Julia. I wonder why the loop in the following code isn't unrolled.

The operator '*' here is pure and have no side effects. I've checked @code_native for the same code with native types and it's looks it's unrolled correctly.

function test(n::Int, count::Int)
A = rand(n, n)
x = rand(n)
y = zeros(n)
tic()
for i = 1 : count
y = A * x
end
toq()
return y
end

lang: Julia v3.11

OS: Windows/Linux

Issue 2:
This seems inconsistent and undesirable:

julia> a = fill(1)
0-dimensional Array{Int64, 0}:
1

julia> Float64.(a)
1.0

julia> map(Float64, a)
0-dimensional Array{Float64, 0}:
1.0
Issue 1:
Migrated issue, originally created by Wichert Akkerman (@wichert)

I need to build a trigram index for a set of columns in PostgreSQL. The SQL statement looks like this:

CREATE INDEX trgm_idx ON my_table USING gist
(language, (coalesce(col1, '') || ' ' || coalesce(col2, '')) gist_trgm_ops);

My attempt to do this using SQLAlchemy looks like this:

schema.Index('trgm_idx',
Mytable.language,
(func.coalesce(Mytable.col1, '') + ' ' + func.coalesce(MyTable.col2, '')).label('foo'),
postgresql_ops={
'foo': 'pg_trgm',
},
postgresql_using='gist')

I use label() just to get a key I can pass to postgresql_ops. Unfortunately this does not work. This is the generated SQL:

CREATE INDEX trgm_idx ON my_table USING gist (language, (coalesce(col1, '') || ' ' || coalesce(col2, '')))

Attachments: issue3432.py | test.py

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

this works in general, but fails on at least the Postgresql dialect because it is linking each expression to a column. See https://bitbucket.org/zzzeek/alembic/issue/222/support-functional-indexes-with for how alembic works around this.

from sqlalchemy import *
from sqlalchemy.schema import CreateIndex
from sqlalchemy.dialects import postgresql

m = MetaData()
t = Table('x', m)
idx = Index('foo', text("lower(c)"))
idx._set_parent(t)

print CreateIndex(idx).compile(dialect=postgresql.dialect())

output:

CREATE INDEX foo ON x ()

Index should be a lot more forgiving for indexes that have non-column expressions in it, and we should also provide for a "table" keyword.
Issue 1:
Issues like #774 & #972 are fine as long as the new entry-point can have vendors & commons.js extracted the same as main.js.

Resolving this requires exporting a different webpack config, but the signature requires return config;, as return [config, otherEntryConfig]; fails.

If an array of configs were supported by default, having separate build targets (e.g. #1245) & entry-points could be possible.

Issue 2:
Sometime that error show in log, I don't know when or how that error show up, it just show up random

It seem like I do something wrong but I don't know what

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

Expected Behavior

Not show error on random time

Current Behavior

Show error on random time

Steps to Reproduce (for bugs)

Just run and watch the log

Context

Your Environment

Tech
Version

next
5

node
9.1.0

OS
manjaro linux

browser

etc
Issue 1:
#57563 | new meta tracking issue

Old content

Tracking issue for rust-lang/rfcs#911.

This issue has been closed in favor of more targeted issues:

Locals, assignments, destructuring: #48821

Integration with patterns: #57240

Floating points: #57241

Panics: #51999

Loops: #52000

Control flow: #49146

Comparing raw pointers: #53020

Dereferencing raw pointers: #51911

Raw pointer to usize casts: #51910

Union field accesses: #51909

Warnings on long running evaluations: #49980

Constant propagation not causing errors: #28238

&mut T references and borrows: #57349

Things to be done before stabilizing:

Reach final decision :P

const unsafe fn declaration order #29107

write docs

CTFE = https://en.wikipedia.org/wiki/Compile_time_function_execution

Issue 2:
Since #14293 I have added the dummy lang items for the weak linking in my projects (or I am unable to build static libs). Now static libs are defining rust_eh_personality and rust_stack_exhausted which is causing linker errors due to duplicate definitions.

Note: This is only for static libs, rlibs are fine. See travis log here https://travis-ci.org/bharrisau/zinc/jobs/25774156
Issue 1:
The type_overflow lint does not catch integral literals larger than i64::MAX. I have to assume the problem is the overflow happens when generating the AST, and the lint operates on the AST, so it can't tell that it overflowed.

Example:

println!("{}", 9223372036854775808i64);
// prints -9223372036854775808
println!("{}", 18446744073709551615i64);
// prints -1

It does manage to catch 18446744073709551616, which is a parse error ("int literal is too large"). This is u64::MAX + 1, so the parser can definitively tell it's too large even though it doesn't know which integral type is being used.

Issue 2:
As per a FIXME in syntax::parse::lexer, check (maybe in the parser, definitely somewhere earlier than trans) that 32-bit and 64-bit floating-point literals are in the right range.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-iterate-with-javascript-for-loops has an issue. The initial code has a comment as //...using a "for loop" like above. but there is no for loop in the initial code. Please add the for loop example on the left panel to the above of the initial code.

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-iterate-with-javascript-for-loops has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

var myArray = [];

//Push the numbers zero through four to myArray using a “for loop" like above.

As per bug title
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/525 on 2007-10-29 by trac user ice999, assigned to unknown.

Versions:[[BR]][[BR]]

WinXP pro 5.1.2600 SP1[[BR]][[BR]]

python 2.5.1 win32 binary[[BR]]

ipython-0.8.1.win32 binary[[BR]]

matplotlib-0.90.1.win32-py2.5 binary[[BR]]

numpy-1.0.3.1.win32-py2.5 binary[[BR]]

pyreadline-1.3.win32 binary[[BR]]

pywin32-210.win32-py2.5 binary[[BR]]

scipy-0.6.0.win32-py2.5 binary[[BR]]

[[BR]]

[[BR]]

Error context:[[BR]]

[[BR]]

from numpy import matrix[[BR]]

from scipy.linalg import det[[BR]]

[[BR]]

A = matrix([[1,1,1],[4,4,3],[7,8,5]])[[BR]]

print det(A) ## Here det fails!![[BR]][[BR]][[BR]]

Issue 2:
Note from @mdhaber: This is a deep issue that is slated to be addressed as part of this project. Before composing a PR related to this issue, please comment below or - even better - consider resolving another open issue!

I think that the docstring of the scipy.stat.mean.cdf "the cumulative distribution function of the mean distribution." doesnot match with the scipy documentation. The documentation page of the scipy.stats.norm.cdf indicates that the second argument is

location. Yet, the docstring saying that it is the 3rd argument.

import scipy
scipy.stats.norm.cdf?

The docstring of the scipt.stats.mean.cdf

Signature: scipy.stats.norm.cdf(x, *args, **kwds)
Docstring:
Cumulative distribution function of the given RV.

Parameters
x : array_like
quantiles
arg1, arg2, arg3,... : array_like
The shape parameter(s) for the distribution (see docstring of the
instance object for more information)
loc : array_like, optional
location parameter (default=0)
scale : array_like, optional
scale parameter (default=1)

Returns
cdf : ndarray
Cumulative distribution function evaluated at `x`
File: ~/anaconda3/lib/python3.7/site-packages/scipy/stats/_distn_infrastructure.py
Type: method

Scipy/Numpy/Python version information:

1.2.1 1.16.2 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)
Issue 1:
Screenshot

[drag & drop image(s) here!]

Description

Look at these two screenshots, imagine your browser switching from one to the other 4 times per seconds.

(I didn't manage to capture a video).

Resizing the screen doesn't change anything.

This is completely driving people mad :)

Issue 2:
superset_hmm.mov

See video where both vertical and horizontal scroll for the table is flashing initially, but is sometimes fixed when we click "Aggregate" and then switch back to "Raw Records". Doesn't always fix it however

How to reproduce the bug

Go to any Superset Table UI and select a column, then scrollbar starts flashing

Expected results

No flashing

Actual results

See video

Environment

(please complete the following information):

browser type and version: Chrome Version 107.0.5304.110 (Official Build) (arm64)

python version: python --version: Python 3.10.8

any feature flags active: none

Checklist

Make sure to follow these steps before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are 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.
Issue 1:
I have a video with 25 fps and 50 tbr, when i capture video the output is not as expected,

Observations:

1.set CV_CAP_PROP_POS_FRAMES to some position and start to capture, the captured frame won't match the actual frame (at that time) pos/time when i watch the video using vlc player

2.The number of frames captured is less than the frames captured directly using ffmpeg. Many frames at the start are missing

You can download the video from the specified link,

https://drive.google.com/open?id=1RPvNcaiMTNWTA8Pi5MOMT1i07FmPiFXR

How to simulate:

1.Dump all the frames using video capture from the beginning without using set position.

handler = cv2.VideoCapture()

fd = handler.open(filename)

ret,frame=handler.read()

index = 0

while frame is not None:

cv2.imwrite(str(index)+".jpg",frame)

ret,frame=handler.read()

index+=1

2.Set frame position to 5840 and try to match the frame dumped now and the previous one without set.

handler = cv2.VideoCapture()

fd = handler.open(filename)

ret,frame=handler.read()

handler.set(cv2.CAP_PROP_POS_FRAMES, 5340)

ret,frame=handler.read()

cv2.imwrite("using_set_"+str(5340)+".jpg",frame)

Output [5340.jpg] is not same as [using_set_5340.jpg]

Issue 2:
Example and confirmed effect:

http://answers.opencv.org/question/162781/videocaptureset-cap_prop_pos_frames-framenumber-not-exact-in-opencv-32-with-ffmpeg/
Issue 1:
Which is a big deal if you want to check access on many paths when generating a menu.

Typically you would Request::create('link path here') and then pass this request down to your access checkers before displaying it.

The drupal issue this comes from https://drupal.org/node/2078855

Running the test on https://drupal.org/node/2078855#comment-7837631 on PHP5.5 is faster (0.885 instead of 1.239) but still the introduced method there is 3 times faster.

Come up with a solution here, because i am pretty sure this will be a common problem to many sites not just Drupal.

Issue 2:
Hi,

I am using Symfony2.0.0,

I am working through the demo in The Book, and trying to generate the Hello Bundle.

When I try to generate the bundle by using the following command in my Terminal:

"php app/console generate:bundle --namespace=Acme/HelloBundle --format=yml"

but instead of giving me on-screen instructions, I get the following error:

"Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /Symfony/app/console on line 7"

I have literally installed Symfony2, configured my database through the on-screen instructions, and set up permissions as directed in The Book

This is the first thing I have attempted since that point

Do I have to manually set up a database table? Or should that auto-generate as part of the bundle? I wondered if that is why the parse error occurred

Thanks in advance

Barry
Issue 1:
If you render the repeated fields individually, e.g. form_row(field_name.first) and form_row(field_name.second), the fields will each be rendered an additional time when using form_rest(form).

Hope this helps!

Issue 2:
Assume this scenario

The symfony application registers a listener with "prototype" scope in the service container

The application uses TraceableEventDispatcher

The application is dispatching the event which is listened by the service defined in step 1

What is problematic

TraceableEventDispatcher is trying to replace the original listener with the new WrappedListener.

The dispatcher correctly adds the new WrappedListener.

But it fails to remove the original listener.

Actual Result

The listener's method is invoked twice:

first call is in the WrappedListener

second call is in the original listener

Expected Result

Only one event is dispatched so only one invocation of the listener's method is expected.
Issue 1:
I have found that lstsq is sometimes throwing an exception; this is causing major problems because it's used in things like sklearn's LinearRegression class. I've included below a particular very simplified repro, but there appear to be an unpredictable but somewhat widespread set of circumstances that can trigger this bug.

Reproducing code example:

import matplotlib.pyplot as plt
import numpy as np
from scipy.linalg import lstsq

n = 9 # doesn't repro for n<=8

# Generate covariates and outcomes
X = np.arange(n).reshape(-1,1)
Y = X

# plot anything with dashed lines (doesn't repro with default line style!)
plt.plot([1,2], [3,4], '--')

lstsq(X,Y)

Error message

---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
12 plt.plot([1,2], [3,4], '--')
13
---> 14 lstsq(X,Y)

c:\Users\kebatt\source\repos\ProjectAliceCore\automl_venv\lib\site-packages\scipy\linalg\basic.py in lstsq(a, b, cond, overwrite_a, overwrite_b, check_finite, lapack_driver)
1222 if info < 0:
1223 raise ValueError('illegal value in %d-th argument of internal %s'
-> 1224 % (-info, lapack_driver))
1225 resids = np.asarray([], dtype=x.dtype)
1226 if m > n:

ValueError: illegal value in 4-th argument of internal None

Scipy/Numpy/Python version information:

1.5.2 1.19.2 sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)

I am running Windows 10 version 2004, so I assume this is at least somewhat related to numpy/numpy#16744, #12747, etc., but the manifestation is different.

Issue 2:
I have found that lstsq is sometimes unexpectedly throwing an exception; this is causing major problems because it's used in things like sklearn's LinearRegression class. I've included below a particular very simplified repro, but there appear to be an unpredictable but somewhat widespread set of circumstances that can trigger this bug.

Reproducing code example:

import matplotlib.pyplot as plt
import numpy as np
from scipy.linalg import lstsq

n = 9 # doesn't repro for n<=8

# Generate covariates and outcomes
X = np.arange(n).reshape(-1,1)
Y = X

# plot anything with dashed lines (doesn't repro with default line style!)
plt.plot([1,2], [3,4], '--')

lstsq(X,Y)

Error message

---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
12 plt.plot([1,2], [3,4], '--')
13
---> 14 lstsq(X,Y)

c:\Users\kebatt\source\repos\ProjectAliceCore\automl_venv\lib\site-packages\scipy\linalg\basic.py in lstsq(a, b, cond, overwrite_a, overwrite_b, check_finite, lapack_driver)
1222 if info < 0:
1223 raise ValueError('illegal value in %d-th argument of internal %s'
-> 1224 % (-info, lapack_driver))
1225 resids = np.asarray([], dtype=x.dtype)
1226 if m > n:

ValueError: illegal value in 4-th argument of internal None

Scipy/Numpy/Python version information:

1.5.2 1.19.2 sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)

I am running Windows 10 version 2004, so I assume this is at least somewhat related to numpy/numpy#16744, #12747, etc., but the manifestation is different.
Issue 1:
AnnouncerTest seems to be failing pretty regularly in TravisCI these days.

Specifically AnnouncerTest.testSessionKilled will often fail when checking the data in ZK

Issue 2:
io.druid.curator.announcement.AnnouncerTest

testSessionKilled(io.druid.curator.announcement.AnnouncerTest) Time elapsed: 2.233 sec <<< FAILURE!

java.lang.AssertionError: expected null, but was:<10,10,1451284237249,1451284237249,0,0,0,95111363629613057,25,0,10
Issue 1:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Radio button only fires the onChange event once for each option.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/84v837e9/).

Demo code: https://jsfiddle.net/84v837e9/154/

What is the expected behavior?

Radio button should fire the onChange event whenever value is changed.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

Current latest version (15.6.1)

Issue 2:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

In React 15.6.1, this behaviour is changed; In 15.5.4, it fires the change event reliably.

15.6.1 - https://codesandbox.io/embed/VPA42ZnRo

15.5.4 - https://codesandbox.io/embed/JZ0mnE5oy

You'll need to have the console open to get the debugger statement.

In 15.6.1, the first change fires, but all subsequent changes do not fire. In 15.5.4, all changes fire.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

React 15.6.1 vs React 15.5.4; Chrome latest stable.
Issue 1:
**I'm submitting a bug report.

Current behavior

Calling markAsTouched on a FormGroup doesn't mark their children controls as touched.

Expected behavior

Calling markAsTouched on a FormGroup should set the touched flag of their children controls. Actually, the opposite method, markAsUntouched, is affecting the children controls.

Why markAsTouched doesn't work the same way?

Minimal reproduction of the problem with instructions

Repro:

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

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

I have some styles that rely on the touched state. In some cases and need to set manually the touched state for all the controls, for example, after the user clicks on the save button.

Angular version:

2.1

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

[x] bug report
[x] feature request

Current behavior

There are markAs methods that can manipulate a form's internal validation state. These are highly useful. However, they propagate to children only sometimes.

The following methods also mark their children:

markAsUnTouched

markAsPristine

These methods do not mark their children:

markAsTouched

markAsDirty

I'm not even sure what this method is for...

markAsPending

Expected behavior

All methods to mark validation should interact with their groups either always or optionally.

Alternatively, some basic iteration machinery should be introduced so that we may instrument our own state changes easily.

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

For example; I want to show validation when loading a record from the DB but I would prefer not to show validation when creating a new record. It would be convenient to to mark everything as dirty or at least touched (as my validation would key off of those states) at the form level.

Conceptually, considering the semantic meaning of FormGroup, it seems if a parent control is marked as dirty that would indicate the children are dirty as well. The same reasoning which was originally used to implement reset() and the other markAs functions that handle their children.

Angular version: 2.0.0

Browser: all

Language: all
Issue 1:
My current use case is a twitter post like edit box which highlights certain words with a different color. eg:

Issue 2:
When calling the method "jumpTo" on the ScrollController, the ListView builds every item between the current position and the "scrollTo" position;

This code snippet shows the problem. In the log, it will print every item , from 0 to 10000, wich takes a loooong time to run and freezes the entire application.

The desired behavior should be the list building only the last elements of the list.

class TestListViewBuilder extends StatelessWidget {
final _values = List.generate(10000, (index) => index);
final _controller = ScrollController();

@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
RaisedButton(
child: Text("Go to bottom"),
onPressed: () {
_controller.jumpTo(_controller.position.maxScrollExtent);
},
),
Expanded(
child: ListView.builder(
controller: _controller,
itemBuilder: (context, index) {
print("Building index $index");
return ListTile(title: Text("Index $index"));
},
itemCount: _values.length,
),
),
],
);
}
}

Flutter doctor:

[√] Flutter (Channel unknown, v0.11.9, on Microsoft Windows [versÃ£o 10.0.17134.407], locale pt-BR)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[√] Android Studio (version 3.2)
[√] IntelliJ IDEA Community Edition (version 2018.3)
[√] Connected device (1 available)

• No issues found!
Issue 1:
I'm working at a .php file and vs code crush at random, freeze is a more accurate description, wen i'm typing, open files, all i can say it's a behavior witch appeared after the last update. And i've noticed that intellisense remain opened long after i've finished typing the function. Yes i have the warning: "Cannot validate the php file. The php program was not found. Use the 'php.validate.executablePath' setting to configure the location of 'php'".

Didn't try with other type of files to see if this issue appear.

My version of SO: Microsoft Windows [Version 10.0.10586]

VSCode version:

Issue 2:
Sometimes editor just freeze. Kill task helps only. Have this problem at work and home.

I noticed that this started after latest update (0.10.1).

Working in PHP files.

Windows 10 64.