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

ParsingReultCache Object may cause Memory leak

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

3.1.0

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

Sharding-JDBC

Expected behavior

query data

Actual behavior

query data

Reason analyze (If you can)

Cache SQL 2.9G, Meybe Memory leak

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

select * from table where time

select id, user_id, room_id,, member_type from table_20190225 WHERE id = ? and dateline between ? and ?

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

Issue 2:
Question

For English only, other languages will not accept.

Before asking a question, make sure you have:

Multi data source problem

When the table name is repeated, the latter will override the former

For example:

X0 data source , table name: A1

X1 data source, table name: A1

During automatic routing, X1 data source will be executed and cannot be specified as x0 data source

Looking for solutions?

Googled your question.

Searched open and closed GitHub issues.

Read documentation: ShardingSphere Doc.

Please pay attention on issues you submitted, because we maybe need more details.

If no response anymore and we cannot reproduce it on current information, we will close it.
Issue 1:
Mac OSx 10.9 - Atom 0.115.0

Not sure if this is Atom's fault, but is the only editor doing it. When working on a file if I use "cmd + z" Atom reverts all changes made since I opened that file, not just the last change. Frustrating!

Issue 2:
Version 0.105.00

When initiating an undo oftentimes Atom will undo an excessive amount of changes, other times it does it character by character.

I've had undo revert a file to it's original condition or previous saved state after an hour of work by a single undo. What is worse, redo no longer works at all.

I am using Vim mode so this may be related, I believe it might be undo everything done during the current insert.
Issue 1:
$ rustc --version

rustc 1.2.0 (082e476 2015-08-03)

$ RUST_BACKTRACE=1 cargo build

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

thread 'rustc' panicked at 'assertion failed: index.end <= self.len()', ../src/libcore/slice.rs:544

stack backtrace:

1: 0x1058dd7b5 - sys::backtrace::write::hf5ea20500b66cd24uns

2: 0x1058e6013 - panicking::on_panic::hbe02cb0d925cad49iGw

3: 0x1058a1dd2 - rt::unwind::begin_unwind_inner::h12ba0ba9dffdecc2uow

4: 0x1058a2b29 - rt::unwind::begin_unwind_fmt::hadf0dbf11d345ebfAnw

5: 0x1058e5b9c - rust_begin_unwind

6: 0x105939d95 - panicking::panic_fmt::h987a4890059dc6e0H8B

7: 0x1059327e1 - panicking::panic::hfd3e1c225039d9cae7B

8: 0x1029106ae - astconv::finish_resolving_def_to_ty::he5ea7cd41915b99d76v

9: 0x1028cee6b - astconv::ast_ty_to_ty::hf914e7106582dfb2V8v

10: 0x10291bf9f - astconv::ast_ty_arg_to_ty::hd7f3449b6ed7d80f3Zv

11: 0x10291bc4a - vec::Vec.FromIterator::from_iter::h14554187055721803077

12: 0x102919bb7 - astconv::convert_angle_bracketed_parameters::h1f04abd7bdcd3d52H2u

13: 0x1028cc5aa - astconv::ast_path_substs_for_ty::h0a1cd0aaeb5403f5lLu

14: 0x102920de5 - astconv::ast_path_to_ty::h8c49a0891a1ce609Brv

15: 0x10290e149 - astconv::finish_resolving_def_to_ty::he5ea7cd41915b99d76v

16: 0x1028cee6b - astconv::ast_ty_to_ty::hf914e7106582dfb2V8v

17: 0x10291ce02 - astconv::convert_ty_with_lifetime_elision::h4459fb498cc71b5756u

18: 0x102925bfd - astconv::ty_of_method_or_bare_fn::haa63c3b9895211a0Now

19: 0x1029412b9 - collect::convert_method::h80cba98fe26dd14afLx

20: 0x10292f9b6 - collect::convert_item::h2cca9c39f6b8d796R0x

21: 0x102928706 - collect::collect_item_types::hf0bc00065ee6508bW7w

22: 0x10297948a - check_crate::h117ec0c1269afe619fD

23: 0x1021bad16 - driver::phase_3_run_analysis_passes::closure.15766

24: 0x1021b9204 - middle::ty::with_ctxt::h14728011725879770170

25: 0x1021b400a - driver::phase_3_run_analysis_passes::h16713467199444562124

26: 0x102197107 - driver::compile_input::hb6d2be5b0fa2247fTba

27: 0x10227313f - run_compiler::h21d74b88eec3fe3bx7b

28: 0x1022709f3 - boxed::F.FnBox::call_box::h1689969825914258414

29: 0x1022701b7 - rt::unwind::try::try_fn::h11273853850686318048

30: 0x105970cc8 - rust_try_inner

31: 0x105970cb5 - rust_try

32: 0x1058cfc95 - rt::unwind::try::inner_try::h480e3107f6a4b5b9nkw

33: 0x1022703e8 - boxed::F.FnBox::call_box::h888215220722514405

34: 0x1058e4a9d - sys:🧵:Thread:🆕:thread_start::hdb3d925f69c5da4aHIv

35: 0x7fff9916d267 - _pthread_body

36: 0x7fff9916d1e4 - _pthread_start

Any guidance on finding the code which is tickling this would be appreciated as I am dead in the water.

Thanks.

Issue 2:
with rustc 1.0.0-nightly (1576142 2015-03-01) (built 2015-03-01)

use std::iter::IntoIterator::IntoIter;
fn main()
{
let mul2 = |x:IntoIter| x.iter().map(|x| x);
}
Issue 1:
Since JSX is a global namespace, it is not possible to use typings declared in a module for its Element or ElementClass.

When writing a module, it would then be convenient to write something like ;

import {MyEltType, JSX} from 'my-custom-jsx-lib'

var myelt = <div> ...</div>

and have typescript check Element, ElementClass and so on on its local JSX instance.

Also, when not providing any JSX namespace but having a factory that has a return type, the compiler crashes nastily with a

/usr/lib/node_modules/typescript/lib/tsc.js:33078
throw e;
^

TypeError: Cannot read property 'flags' of undefined
at isRelatedTo (/usr/lib/node_modules/typescript/lib/tsc.js:16013:32)
at checkTypeRelatedTo (/usr/lib/node_modules/typescript/lib/tsc.js:15941:26)
at checkTypeAssignableTo (/usr/lib/node_modules/typescript/lib/tsc.js:15819:20)
at isTypeAssignableTo (/usr/lib/node_modules/typescript/lib/tsc.js:15813:20)
at getJsxElementAttributesType (/usr/lib/node_modules/typescript/lib/tsc.js:18463:47)
at checkJsxOpeningLikeElement (/usr/lib/node_modules/typescript/lib/tsc.js:18564:40)
at checkJsxSelfClosingElement (/usr/lib/node_modules/typescript/lib/tsc.js:18265:13)
at checkExpressionWorker (/usr/lib/node_modules/typescript/lib/tsc.js:20439:28)
at checkExpression (/usr/lib/node_modules/typescript/lib/tsc.js:20349:42)
at checkExpressionCached (/usr/lib/node_modules/typescript/lib/tsc.js:20310:38)

Issue 2:
TypeScript Version:

1.8.2

Code

tsconfig.json:

{
"compilerOptions": {
"jsx": "react"
},
"files": [
"app.tsx"
]
}

app.tsx:

function Test() { }
<Test></Test>

Expected behavior:

Successful compilation, because undefined JSX.Element should be treated as any type.

Actual behavior:

Throws exception:

typescript/lib/tsc.js:32989

throw e;

^

TypeError: Cannot read property 'flags' of undefined

at isRelatedTo (typescript\lib\tsc.js:15954:32)

at checkTypeRelatedTo (typescript\lib\tsc.js:15882:26)

at checkTypeAssignableTo (typescript\lib\tsc.js:15760:20)

at isTypeAssignableTo (typescript\lib\tsc.js:15754:20)

at getJsxElementAttributesType (typescript\lib\tsc.js:18394:47)

at checkJsxOpeningLikeElement (typescript\lib\tsc.js:18495:40)

at checkJsxElement (typescript\lib\tsc.js:18200:13)

at checkExpressionWorker (typescript\lib\tsc.js:20367:28)

at checkExpression (typescript\lib\tsc.js:20279:42)

at checkExpressionStatement (typescript\lib\tsc.js:21539:13)
Issue 1:
/usr/local/lib/python3.5/dist-packages/IPython/core/interactiveshell.py:2728: DtypeWarning: Columns (17) have mixed types. Specify dtype option on import or set low_memory=False.

interactivity=interactivity, compiler=compiler, result=result)

Problem description

I'm getting a mixed data type warning in a column. The column number is shown as 17. However it isn't clear if the error is in 18 th column considering the column index starts at 0 or 17th column by general counting.

It would be better and easier if the column name also shows up in the warning message to avoid ambiguity and confusion.

Thanks,

Arun

Issue 2:
The output columns from get_dummies() are binary by nature, changing this default from float64 to int8 would save 7 bytes per dummy.

df=pd.DataFrame({ 'x':[1,2,3] })
pd.get_dummies(df.x)
Issue 1:
How to debug "Multiple widgets used the same GlobalKey"?

What output after press 'W' in the console, should more helpful for this?

Logs

Another exception was thrown: Child with id 134 is invisible and should not be added to tree.

Another exception was thrown: Child with id 134 is invisible and should not be added to tree.

Another exception was thrown: Child with id 134 is invisible and should not be added to tree.

Another exception was thrown: Multiple widgets used the same GlobalKey.

Another exception was thrown: Duplicate GlobalKey detected in widget tree.

Flutter Doctor

[✓] Flutter (on Mac OS X 10.13.2 17C88, locale en-HK, channel master)

• Flutter at /Users/-/wa/flutter/flutter

• Framework revision 598c042 (33 hours ago), 2018-01-02 16:29:00 -0800

• Engine revision 0a93f9f

• Tools Dart version 1.25.0-dev.11.0

• Engine Dart version 2.0.0-edge.e122f4825726035e4579471ef83848b1aa796444

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.3)

• Android SDK at /Users/-/Library/Android/sdk

• Android NDK at /Users/-/Library/Android/sdk/ndk-bundle

• Platform android-26, build-tools 26.0.3

• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)

• Xcode at /Applications/Xcode.app/Contents/Developer

• Xcode 9.2, Build version 9C40b

• ios-deploy 1.9.2

• CocoaPods version 1.3.1

[✓] Android Studio (version 3.0)

• Android Studio at /Applications/Android Studio.app/Contents

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Community Edition (version 2017.3)

• Flutter plugin version 20.0.3

• Dart plugin version 173.3727.108

Issue 2:
Hi folks ,

flutter has crashed when i tried to run the application 'flutter run'

please find the attached log

flutter_01.log
Issue 1:
On a page with many dynamic components, it can be slow to render the page. If we can stream components down when it's ready asynchronously, we can improve the initial byte speed.

See example:

https://github.com/aickin/react-dom-stream

Issue 2:
I suggest to stream-render pages > 50KB (hypothetical stream overhead) to reduce TTFB and CPU load.

Inferno offers streamAsString, streamAsStaticMarkup, streamQueueAsString, streamQueueAsStaticMarkup with inferno-server (master). As of 1.2.1, the stream renderer was experimental and 10-15% slower than renderToString. Should wait for 1.3 (currently RC3).

React with aickin/react-dom-stream, which replaces renderToString and renderToStaticMarkup.

thysultan/dio.js with renderToStream (SSR/renderToStream.js).

It would supersede #767. Preact does not support streaming (preactjs/preact#23 (comment)).
Issue 1:
I tried using the @types/xxxx package and had problems.

I tried using @types/whatwg-fetch and made sure it was in latest version and I keep getting the following error( Doesnt happen on typescript compiler 2.1.6)

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I upgraded to 2.3.2 which is the latest version

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @ryan-codingintrigue

Issue 2:
If you know how to fix the issue, make a pull request instead.

I tried using the @types/superagent package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @carnesen

With the merging of #36282, there is a problem. When using superagent in a node-only project, the introduction of the triple-slash directive

/// <reference lib="dom" />

results in the DOM typings being transparently added to the project. Since this is a node-only project, however, there is no DOM, and so code such as

window.setTimeout()

should result in a TypeScript error. Since the DOM typings are silently included, this is not the case, and can lead to subtle bugs in the codebase.

Is there a way that we can include node-only or browser-only typings into a project, so we can choose which to use?
Issue 1:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):

YES

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):

Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

VERSION="7 (Core)"

VERSION_ID="7"

CENTOS_MANTISBT_PROJECT_VERSION="7"

REDHAT_SUPPORT_PRODUCT_VERSION="7"

TensorFlow installed from (source or binary):

Source

TensorFlow version (use command below):

tf.VERSION = 1.2.1

tf.GIT_VERSION = v1.2.1-0-gb4957ff

tf.COMPILER_VERSION = v1.2.1-0-gb4957ff

Sanity check: array([1], dtype=int32)

Python version:

2.7

Bazel version (if compiling from source):

0.4.5

CUDA/cuDNN version:

CUDA8.0/CUDNN6.0

GPU model and memory:

GeForce GTX 1080 8113MiB

Exact command to reproduce:

See Source code

Describe the problem

As the title states, tf.image.resize_images returns different values compared to imresize in scipy or PIL. This is important because we expect the same behaviour for migrating code originally written using scipy.misc.imresize or PIL.

Source code / logs

import numpy as np
import tensorflow as tf
from scipy.misc import imresize

image = (255 * np.random.rand(127, 127, 3)).astype(np.uint8)
resize_size = [255, 255]

image_resized = tf.image.resize_images(image, resize_size, method=tf.image.ResizeMethod.BILINEAR)
with tf.Session() as sess:
image_resized_tf = sess.run(image_resized)

image_resized_np = imresize(image, resize_size, interp='bilinear')

diff = image_resized_np.astype(np.float32) - image_resized_tf.astype(np.float32)
print('resized image diff: {}'.format(np.mean(np.abs(diff))))
# resized image diff: 31.6155033112

Issue 2:
The tf.image.resize_images() seems to use a strange padding option, which one is not clear to me at the moment. I tried to replicate the bilinear interpolation with various padding options in for example skimage, but cant replicate the behaviour.

It would be nice to be able to set the padding option used in tf.images.resize_images(), or document what is used at least.

Example code for comparing the results of tf.images.resize_images() and skimage transform:

Looks like tf.images.resize_images() does some weird unsymmetrical padding!?

Using tensorflow 0.12.1:

import tensorflow as tf
import tensorlayer as tl
import numpy as np
import skimage
from scipy.misc import imread, imresize, imsave

sess = tf.InteractiveSession()

#create simple test image
imsize = 3
xa, ya = np.ogrid[:imsize, :imsize]
img = np.repeat((xa + ya)[..., np.newaxis], 3, 2) / float(imsize + imsize)

x = tf.placeholder(tf.float32, [1, imsize, imsize, 3])
y = tf.image.resize_images(x,(imsize*3, imsize*3))

sess.run(tf.global_variables_initializer())

upsampled_tf_result = sess.run(y, feed_dict={x: [img]})
upsampled_skimage_result = skimage.transform.rescale(img,
3,
mode='symmetric',
cval=0,
order=1,
preserve_range=False)

print(np.allclose(upsampled_tf_result, upsampled_skimage_result))

imsave('upsampled_tf_result.png', np.squeeze(upsampled_tf_result))
imsave('upsampled_skimage_result.png', upsampled_skimage_result)
Issue 1:
Environment

Windows build number: [Version 10.0.18363.720]
PowerToys version: v0:19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Create and apply layout

Hide taskbar

Drag a window to a zone bordering the taskbar

Launch Zones Editor (to reapply layout)

Drag a window to a zone bordering the taskbar

Unhide taskbar

(repeat 3-5)

Expected behavior

This was the behavior prior to v0.19.0

Stretch layout to fill available screen (in-/excluding where taskbar would be or not, respectively) immediately after toggling taskbar

Zones Preview accurately represent layout

Actual behavior

Keeps previous stretching when toggling taskbar.

Will only re-stretch when re-applying layout after switching to a different one.

Area where taskbar would be is blank in zones preview, no matter if the layout includes the area (see above) or not.

Screenshots

Window not stretched into freed area after hiding taskbar (layout not reapplied)

Window stretched under taskbar (layout not reapplied after unhiding taskbar)

Area under taskbar blank in preview - layout was reapplied, so window would stretch correctly, but preview is not showing this

Issue 2:
Environment

Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones
Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%)

Steps to reproduce

Set Windows taskbar location to Top

Snap a window to a FancyZone (2 priority grid zones in my case)

Expected behavior

The window should snap to the full-height of the FancyZone below the task bar

Actual behavior

The window snaps behind the task bar (as shown with the green arrows)

The window leaves a gap underneath each window (as shown with the red arrows), which exposes the desktop background underneath

Screenshots
Issue 1:
I have a deployment where I need to be able to provide a password for sudo and I don't want to use the -K option as we like to fire up the deployment process complete automatically.

It would be nice if I have the option to specify the sudo_pass in the inventory file.

Issue 2:
When providing ansible_ssh_pass as a hostvar, such as from an inventory script, ansible should be capable of utilizing the already provided password for passworded sudo.
Issue 1:
I have a tab component inside a modal, when i change the tab modal 'show' event trigger.

http://jsfiddle.net/photonx/7zP8f/1/

Issue 2:
I have built this issue to discuss the approach for supporting RTL in the upcoming 3.1 version. Although it's too early for implementation code and pull requests, choosing the right approach now helps in the planning, and directing the efforts towards a specific goal (as many people have already volunteered for the task).

I think the biggest issue is the lack of a standard, or best practices for adding RTL support for themes and pages. First, I want to review some of the current practices for RTL support in different parts of the web.

WordPress: uses RTL overrides, in a single seperate file named rtl.css, auto-loaded by WordPress in right-to-left pages. explained here

Drupal 7: uses RTL overrides, in a separate file with -rtl.css prefix for every css file loaded by themes, etc. again, auto-loaded in right-to-left pages. explained here

Drupal 8: favors RTL overrides prefixed by [dir="rtl"], alongside the base css (no separate files). explained here; also, see the related discussion

RTL-This (a website dedicated to turning everything RTL): Has an article comparing different ways to add RTL to css here.

Another article by a css-expert (Jens O. Meiert): ... Indicate directionality by the dir attribute on the html element ... Avoid a separate RTL style sheet; find all declarations that specify anything specific to the left or right ... customize those declarations, and use some hook to apply them—like e.g. setting id="rtl" on the body element (well, you really want to use html[dir="rtl"]). article here.

Another popular approach is to prefix all RTL rules with a .rtl class (and possibly .ltr for base rules, to prevent overrides). per #3133, #6423, and the less-bidi model.

I'd suggest using an approach than could satisfy these different requirements by simple customizations.

I suggest keeping the RTL rules in a separate css file. Clearly, merging them into a single stylesheet (when required) would be a single copy-paste at the end of the base css.

I suggest using overrides (vs mixins, or automated tools) in a separate .less file. Then, adding any combination of prefixes, or [dir= rules is as easy as a few lines of .less code. example:

[dir="rtl"] {
@include "bootstrap-rtl.less"
}

or

.ltr {
@include "bootstrap.less";
}

.rtl {
@include "bootstrap-rtl.less";
}
Issue 1:
Environment

Windows build number: 10.0.18362.175

Steps to reproduce

Even installing Ubuntu and Ubuntu 16LTS, the New Windows terminal does not recognize, does not appear the options to open the them in the tools menu, only appears PowerShell and the old Windows CMD.

Expected behavior

It is expected that the options of Ubuntu or any other system appear when choosing the terminal.

Actual behavior

The terminals of the systems simply do not appear in the new terminal.

Issue 2:
Ubuntu doesn't show up in the terminal. Its installed on my machine but the new terminal is recognizing it.
Issue 1:
eslint v8 was just released; the peerDependencies needs to be updated to include ^8.

Issue 2:
ESLint has released the first beta versions of v8 🎉

https://eslint.org/blog/2021/08/eslint-v8.0.0-beta.0-released

https://eslint.org/blog/2021/08/eslint-v8.0.0-beta.1-released

https://eslint.org/blog/2021/09/eslint-v8.0.0-beta.2-released

https://eslint.org/blog/2021/09/eslint-v8.0.0-rc.0-released

It would be awesome to have official ESLint 8 support. 👊

I'm happy to help where I can of course 🙂
Issue 1:
When an empty array is bound to the entity type (multiple: true), an error raises.

It comes from the ORMQueryBuilderLoader.php when it loads entities:

->setParameter($parameter, $values, Connection::PARAM_STR_ARRAY)

The test case here:

vlechemin@2b02323

Issue 2:
This is my form element:

$form->add($this->factory->createNamed('entity', 'job', null, array(
'class' => 'PDB\PlanningBundle\Entity\Job',
'property' => 'name',
'required' => false,
'multiple' => true,
'query_builder' => function(JobRepository $er) use ($project) {
...

If there is is nothing selected in this choice field, the field name isn't submitted and null is bound to the field. All leads to the following stack trace:

https://gist.github.com/1903637

In my opinion this is a problem of ChoicesToValuesTransformer in reverseTransform method where it should be

if (empty($array)) {
return array();
}

instead of

if (null === $array) {
return array();
}

and I'd add this to the tests:

public function testReverseTransformEmptyArray()
{
$this->assertSame(array(), $this->transformer->reverseTransform(array()));
}

This fixes my problem at least.

Do you agree? Then I'd submit a patch. How to add a pull request to this ticket?
Issue 1:
Pretty sure that "slasher([1, 2, 3], 2, [3]) should return [3]."

should actually be

"slasher([1, 2, 3], 2) should return [3]."

Issue 2:
I think this is a Typo the that at first lead me to confusion

in the Bonfire: Slasher Flick the Asserts to complete the Bonfire said

slasher([1, 2, 3], 2, [3]) should return [3].

slasher([1, 2, 3], 0) should return [1, 2, 3].

slasher([1, 2, 3], 9) should return [].

and I think the first one should say slasher([1, 2, 3], 2 ) should return [3]
Issue 1:
Environment

Windows build number: 18362.267
Windows Terminal version: 0.3.2142.0

Steps to reproduce

Open a directory in explorer.exe

Type 'wt' in the search bar to launch the terminal

Expected behavior

The terminal starting directory should be the same as the directory in explorer.exe.

Actual behavior

The terminal starting directory always use the startingDirectory value in the settings instead of the current directory.

Issue 2:
Description of the new feature/enhancement

The Find dialog in conhost does not persist its content so once the modal dialog is dismissed, bringing the dialog back up again results in an empty textbox

The feature request is to remember the last used string

Proposed technical implementation details (optional)