WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Do you want to request a feature or report a bug?

Bug.

What is the current behavior?

function Foo() {
return 'foo';
}

function Test() {
return <span><Foo />bar</span>;
}

Hydration of <Test /> to serverside rendered <Test /> produces following warning:

Warning: Text content did not match. Server: "foobar" Client: "foo"

What is the expected behavior?

No warning.

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

react@16.0.0

react-dom@16.0.0

Issue 2:
Observed this on react@16.0.0-beta.5

import React from 'react';
import { renderToString } from 'react-dom/server';

const B = () => 'b';

console.log(renderToString(<div>{'a'}<B />{'c'}</div>));

This renders as <div data-reactroot="">a<!-- -->bc</div>. If you try to hydrate this you'll get the error: Text content did not match. Server: "bc" Client: "b".
Issue 1:
Observed using numpy-1.11.2: If I create a masked array

X = np.ma.array(('a','b','c'), mask=(0,1,0))

then invoking X.filled() yields:

array(['a', 'N', 'c'], dtype='|S1')

Yet the documentation at https://docs.scipy.org/doc/numpy/reference/generated/numpy.ma.default_fill_value.html#numpy.ma.default_fill_value suggests that the string filling value should be ‘N/A’. The behaviour is analogous if I create a masked array

Y = np.ma.array(('aa','bb','cc'), mask=(0,1,0))

Then invoking Y.filled() yields:

array(['aa', 'N/', 'cc'], dtype='|S2')

This behaviour is especially problematic when the non-masked entries in the array already include the respective strings 'N', 'N/'.

Issue 2:
For string arrays of type S1 or S2, the default fill value in Numpy masked arrays (N/A) is not appropriate:

In [1]: from numpy import ma

In [2]: x = ma.array(['a', 'b', 'c'], dtype='S1', mask=[1,0,0])

In [3]: x.filled()
Out[3]:
array(['N', 'b', 'c'],
dtype='|S1')

In [4]: x.get_fill_value()
Out[4]: 'N/A'

this causes issues for codes that assume the fill value is present in the filled array and indicated masked values. It's not clear to me what the fill value should be, but I'd just thought I'd raise the question.

cc @taldcroft
Issue 1:
In pandas/pandas/io/parsers.py line 1000, np.uin8 is referred. It is an inexistent member in numpy. I suppose it's a typo for np.uint8.

Issue 2:
while using read_fwf I had a bug that had this line from parsers.py

https://github.com/pydata/pandas/blob/072e40b0b5beab36c2adda9e0bcbb26755e1928f/pandas/io/parsers.py#L989

in which there is a np.uin8 which I'm pretty sure should be a np.uint8

apologise if this has already been submitted - I did a search on uin8 and only got the offending line in the code.

I just fixed on my arch source code to keep working on my problem (I'm an engineer not a software guy!). I will try and find time for a patch and test (I failed on my last one)

CHeers

Rick
Issue 1:
Hello, I want to use TorchScript to accelerate my training, but I found my cpu memory is going up and finally blow up, but if I don't use TorchScript, everything is fine. I have no idea if it's a bug, Can you give me some advice?

cc @suo

Issue 2:
Hello, I want to use TorchScript to accelerate my training, but I found my cpu memory is going up and finally blow up, but if I don't use TorchScript, everything is fine. I have no idea if it's a bug, Can you give me some advice?

cc @suo
Issue 1:
I need to create indexes in relationship to optimize my query. Cypher not support indexes in relationship ?

And I cannot create the follow constraint in relationship SHARED_REACTION:

CREATE CONSTRAINT ON ()-[sr:SHARED_REACTION]-() ASSERT EXISTS (sr.id)

Neo4j returns:

"Unable to create CONSTRAINT.."

Neo.DatabaseError.Schema.ConstraintCreationFailed

How can I create this constraint and to use indexes in relationship SHARED_REACTION ?

Issue 2:
NOTE: This description has been updated, the original description is at the bottom

While Neo4j primitives are read committed, Cypher composes these primitives together in ways that can lead to errors - notably cypher may read an entity that is subsequently deleted, and will then fail to perform some operation on it.

While this could be construed as a cypher issue, it is really an issue of isolation levels - we need to implement repeatable read isolation in the kernel to allow cypher to expose a single cypher statement as a read committed operation.

If you suspect an isolation issue

If you believe you are hitting a problem related to transaction isolation levels, please post a comment on this ticket with:

Any setup required

All cypher statements involved

What you expected the result to be

What the result actually is

Your Neo4j version, Java version and operating system

Workarounds

Lock the read set

Many (but not all) of the cases where this is an issue have a format like:

<match some stuff>
<perform some mutation>

For this category of statements, we suffer the same problem as SQL solves with SELECT ... FOR UPDATE. Cypher does not yet support a construct like that, but it can be emulated using the following pattern:

<match some stuff>
<set a property, for instance __lock__>
WITH <stuff>
<perform some mutation>

For example:

MATCH (n:Person)
SET n.__lock__ = 1
WITH n
SET n.description = "Some description"

Retry transaction

Particularly for small read operations and small writes, given the transactional nature of Neo4j, you can rollback and retry any transaction where a statement fails due to this issue. A common pattern for this is to model your query as a unit of work that can be retried.

Original message

@peterneubauer: 'See https://groups.google.com/group/neo4j/browse_thread/thread/9355edd2059d70e2/a51d06c894107327?lnk=gst&q=Concurrent+reading+and+deleting+on+relationships+leads+to+NotFoundException.+How+to+ignore%3F#a51d06c894107327 for background.

Example code is at http://code.google.com/p/graph-query-benchmarks/source/browse/trunk/graph-query-benchmarks/src/test/nz/ac/massey/cs/graphbenchmarks/spikes/neo4j/NeoIssues.java'
Issue 1:
Seen with Celery 3.1.20, Django 1.9

Steps to reproduce:

Set CELERY_RESULT_BACKEND to multiple memcache servers e.g. CELERY_RESULT_BACKEND = 'cache+memcached://127.0.0.1:11211;127.0.0.10:11211/'

Start a celery worker using ./manage.py celery worker

Result is a crash with stacktrace:

[2016-02-20 14:58:41,566: ERROR/MainProcess] Unrecoverable error: ValueError("invalid literal for int() with base 10: '11211;127.0.0.10'",)
Traceback (most recent call last):
File "/Users/malcolmbox/dev/tellybug/webserver/lib/python2.7/site-packages/celery/worker/__init__.py", line 206, in start
self.blueprint.start(self)
File "/Users/malcolmbox/dev/tellybug/webserver/lib/python2.7/site-packages/celery/bootsteps.py", line 119, in start
self.on_start()
File "/Users/malcolmbox/dev/tellybug/webserver/lib/python2.7/site-packages/celery/apps/worker.py", line 170, in on_start
string(self.colored.cyan(' \n', self.startup_info())),
File "/Users/malcolmbox/dev/tellybug/webserver/lib/python2.7/site-packages/celery/apps/worker.py", line 232, in startup_info
self.app.conf.CELERY_RESULT_BACKEND or 'disabled',
File "/Users/malcolmbox/dev/tellybug/webserver/lib/python2.7/site-packages/kombu/utils/url.py", line 63, in maybe_sanitize_url
return sanitize_url(url, mask)
File "/Users/malcolmbox/dev/tellybug/webserver/lib/python2.7/site-packages/kombu/utils/url.py", line 58, in sanitize_url
return as_url(*_parse_url(url), sanitize=True, mask=mask)
File "/Users/malcolmbox/dev/tellybug/webserver/lib/python2.7/site-packages/kombu/utils/url.py", line 24, in _parse_url
return (scheme, unquote(parts.hostname or '') or None, parts.port,
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urlparse.py", line 113, in port
port = int(port, 10)
ValueError: invalid literal for int() with base 10: '11211;127.0.0.10'

According to the documentation, this is a valid format for CELERY_RESULT_BACKEND, and this was working on previous versions of celery

This is happening during printing of the startup banner, so completely prevents the worker from starting.

Issue 2:
This breaks mongo backend, because of 33f1dc8. I believe maybe_sanitize_url doesn't play well with replica sets...

Full backtrace:

ValueError: invalid literal for int() with base 10: '53473,{snip}.mongolab.com'
File "celery/worker/__init__.py", line 206, in start
self.blueprint.start(self)
File "celery/bootsteps.py", line 119, in start
self.on_start()
File "celery/apps/worker.py", line 170, in on_start
string(self.colored.cyan(' \n', self.startup_info())),
File "celery/apps/worker.py", line 232, in startup_info
self.app.conf.CELERY_RESULT_BACKEND or 'disabled',
File "kombu/utils/url.py", line 63, in maybe_sanitize_url
return sanitize_url(url, mask)
File "kombu/utils/url.py", line 58, in sanitize_url
return as_url(*_parse_url(url), sanitize=True, mask=mask)
File "kombu/utils/url.py", line 24, in _parse_url
return (scheme, unquote(parts.hostname or '') or None, parts.port,
File "python2.7/urlparse.py", line 113, in port
port = int(port, 10)
Issue 1:
On the v2.0.0-0.3.beta1 tag I'm currently getting abnormally large task timings (all appear slightly different but start with 1447240...):

2015-11-11 11:32:28,585 p=6905 u=vagrant | TASK: Task 1 ------------------------1447240566.82s
2015-11-11 11:32:28,586 p=6905 u=vagrant | TASK: Task 2 ----------------------- 1447240365.34s
2015-11-11 11:32:28,586 p=6905 u=vagrant | TASK: Task 3 ----------------------- 1447240335.68s
2015-11-11 11:32:28,586 p=6905 u=vagrant | TASK: Task 4 ----------------------- 95.47s

However some of the tasks do appear to log an accurate time. I'm running in CentOS 6.7. I've been unable to identify a pattern in terms of if it is related to a specific module or action for a given task. It almost appears to be random. Wondering if anyone else has seen this on the Dev branch?

Issue 2:
Issue Type: Bug Report (2.0 regression)

Ansible Version: 2.0.0 (rc1)

Ansible Configuration: default

Environment: NA

Summary: For 1.9 callback plugins, playbook_on_stats was only called once at the end of the playbook run, regardless of number of plays. This made it effectively useful as an "on playbook finish" callback. In 2.0, playbook_on_stats is called at the end of every play, which breaks accumulator-style callbacks.

Steps To Reproduce:

Grab sample callback plugin from https://gist.github.com/nitzmahone/90a2510226f42c7f6e49, drop into callback_plugins. Run test_play.yml from same gist.

Expected Results:

ON STATS! should show up only once at the end of the playbook run (as it does in 1.9).

Actual Results:

ON STATS! shows up at the end of each play.

Filed on behalf of Callfire
Issue 1:
Bug Report

Why ModeConfiguration not support config 'driverClassName'?

When I Use default Mode(it's Standalone and H2 database), and run my applicatin in Tomcat

It will throws 'No suitable driver' Exception

Which version of ShardingSphere did you use?

5.3.2

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

ShardingSphere-JDBC

Expected behavior

no Exception

Actual behavior

has a Exception

Reason analyze (If you can)

'HikariDataSource' will get driver by 'DriverManager',although DriverManager has 'org.h2.Driver',but it's ClassLoader is 'java.net.URLClassLoader'

and current ClassLoader is 'ParallelWebappClassLoader',so it can't get the driver

I see the 'JDBCRepositoryPropertyKey' don't has 'driverClassName' key, and JDBCRepository.init() are no settings either.

I think this is a BUG.

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

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

Issue 2:
Bug Report

Which version of ShardingSphere did you use?

master branch

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

JDBC

Expected behavior

Daily Continuous Integration pass

Actual behavior

https://github.com/apache/shardingsphere/actions/workflows/ci-daily.yml

https://github.com/apache/shardingsphere/runs/7828266864?check_suite_focus=true

[INFO] Finished at: 2022-08-14T18:14:08Z
[INFO] ------------------------------------------------------------------------
Error: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.3.0:jar (attach-javadocs) on project shardingsphere-cluster-mode-repository-zookeeper-curator: MavenReportException: Error while generating Javadoc: Unable to execute javadoc command: Error while executing process. Cannot run program "cmd.exe" (in directory "D:\a\shardingsphere\shardingsphere\shardingsphere-mode\shardingsphere-mode-type\shardingsphere-cluster-mode\shardingsphere-cluster-mode-repository\shardingsphere-cluster-mode-repository-provider\shardingsphere-cluster-mode-repository-zookeeper-curator\target\apidocs"): CreateProcess error=267, The directory name is invalid -> [Help 1]

Reason analyze (If you can)

CreateProcess error=267, The directory name is invalid. And there're javadoc passed modules.

[INFO] shardingsphere-cluster-mode-core ................... SUCCESS [ 15.147 s]
[INFO] shardingsphere-cluster-mode-repository-provider .... SUCCESS [ 0.181 s]
[INFO] shardingsphere-cluster-mode-repository-zookeeper-curator FAILURE [ 7.488 s]
[INFO] shardingsphere-data-pipeline-core .................. SKIPPED

The directory path length is 267, more than 260, maybe it's caused by path length.

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

Example codes for reproduce this issue (such as a github link).
Issue 1:
Glide Version:

Integration libraries:

Device/Android Version:

Issue details / Repro steps / Use case background:

Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with(iv.getContext())
.load(url)
.placeholder(R.mipmap.avatar_default)
.error(R.mipmap.avatar_default)
.diskCacheStrategy(DiskCacheStrategy.NONE)
.transform(new GlideCircleTransform(iv.getContext()))
.into(iv);

Layout XML:

<FrameLayout xmlns:android="...

Stack trace / LogCat:

paste stack trace and/or log here

Issue 2:
I get the following error when trying to load an image from assets into ImageView after app was closed and restarted:

D/skia: --- SkImageDecoder::Factory returned null

The scenario in which this issue appears:

Android 5.0.1 (also tried on 5.1.1 - same issue)

Start app

Load animated image from assets into ImageView (image is loaded fine)

Make sure activity is destroyed

Restart activity

Try to load same image - get the above-mentioned errors

However (!), if I don't load image in step 2, but just close and restart app, and load image in step 5, there is no error - image is loaded fine.

Here is my code for loading image:

Glide.with(applicationContext)
.using(new AssetUriLoader(applicationContext))
.load(Uri.parse(assetPath))
.diskCacheStrategy(DiskCacheStrategy.ALL)
.into(imageView);

The AssetUriLoader is a custom loader suggested by vpratfr in the following ticket:

Loading images from assets

The ImageView is created programmatically:

RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(mImageViewWidth, mImageViewHeight);
ImageView imageView = new ImageView(getActivity());
params.leftMargin = 100;
params.topMargin = 100;
rl.addView(imageView, params);

If someone had this error after app is restarted, and found a solution, help would be greatly appreciated.
Issue 1:
The "vertical-align: middle" style property makes the a FlatButton label un-centered

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

Expected Behavior

Based on the material design guidelines the label text of a button is meant to be in the center

https://material.io/guidelines/components/buttons.html#buttons-style

Current Behavior

The first screenshot is a default FlatButton on the material-ui website ,

the distance under the label is smaller than the distance above

this is same element with "vertical-align: middle" turned off, now centered

Steps to Reproduce (for bugs)

Head to http://www.material-ui.com/#/components/flat-button

inspect one of the buttons' labels in your browser

disable "vertical-align: center"

Context

Adding a border to a FlatButton made it easy to notice the label wasn't centered

It also affected the CircularLoading element

Your Environment

Any using material-ui, including the current website (viewed 25th September 2017)

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I'd like to use the TablePagination component without a page size selector. Moreover, it would great if I can use a property like showPageSizeSelector or something like this to manage page size selector visibility. I've checked this article but have not found such a functionality described.
Issue 1:
Angular 2 is a great piece of software, but its biggest problem is that it's overly verbose. Has implicitly requesting a component's sibling template/css been discussed?

component

- component.js

- component.html

- component.css

I know it's less explicit, but it would encourage a standard pattern for organizing components. I think you're going to lose a lot of people with the verbosity as is. Unless we're going to go full hog and start writing CSS directly in our components, using an inline template string is an awful anti-pattern IMO.

Issue 2:
I'm using angular2-seed and throughout my project each component has html and css file with the same name as component ts file.

├── about
│ ├── about.html
│ ├── about.ts
│ └── about.css

where component ts file is:

import {Component} from 'angular2/angular2';

@Component({
selector: 'about',
templateUrl: './components/about/about.html',
styleUrls: ['./components/about/about/about.css']
})
export class About {}

Can you make templateUrl and styleUrls to be optional and if either of that field is absent the default value is generated for template/css, but only in case the file with that name exists. I.e.

let file = "'" + <component file name> + '.html'";
if(hasFile(file)) templateUrl = file; // templateUrl: ['component file name.html']

let file = "'" + <component file name> + '.html'";
if(hasFile(file)) styleUrls = file; // styleUrls: ['component file name.css']

Having these fields be optional will save a lot of dummy typings and make components code look clearer.

What do you think?
Issue 1:
I have an app design requirement to pick images on a custom layout, I can't have the native picker dialog pop-up.

So I need access to just the uris of all photos and videos in library, to implement my custom picker layout.

Therefore I'm requesting a method to return a list of the uris for all pictures/videos in the gallery, instead of the current one that opens a native picker dialog.

@collinjackson hopefully you can agree with me that this is a common designer request, hence it is a useful extension to your plugin, specially since it allows the modularizing of the logic from the layout

Issue 2:
Right now the picker defaults to single mode, it would be nice to be able to have a multi-mode, by passing a parameter when you launch it, then an array is returned of files instead of just one.

for android this might help speed things up

unique code

intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);

full example

Intent intent = new Intent();
intent.setType("image/*");
intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent,"Select Picture"), 1);

for iOS I think maybe using this library might help, and seems up to date.

https://github.com/hackiftekhar/IQMediaPickerController
Issue 1:
Hi,

First, thank you for your effort and hard work for creating this great react component!

I have an issue with the recently released beta-22 version.

I had an page displaying background image using the following style:

pageBackground: {
background: {
image: `url(${backgroundImg})`,
repeat: 'no-repeat',
size: 'cover',
position: 'center'
},
height: '100% !important'
}

The background image was simply do not show anything (blank), and there are no error in the console as well. This was working fine in version beta-21. Tested using Chrome, Firefox, and Edge

Using react version 16.2.0

Here is the sandbox for reproducing the issue:

https://codesandbox.io/s/vyl4jqmyx0

Thanks!

Issue 2:
Since JSS comes bundled in material-ui I am guessing that the problem is with your fork.

When I do

const styles = theme => ({
main: {
margin: [100, 50]
}
})

I get margin: 100px, 50px; Notice the comma between the values.

If id do just

const styles = theme => ({
main: {
margin: 100
}
})

it works fine
Issue 1:
Mathew Wyatt opened SPR-4054 and commented

When i have a "prototype" (defined as prototype in the spring-config) bean which implements the ApplicationContextAware interface, it is eagerly instantiated when the application context is loaded. Which means i have a bean floating around in space which i can not get reference to. It seems poor practice to have a floating unreferenced (unreferenced by me explicitly) bean floating around?... In my case, the floating bean is throwing runtime exceptions, because of dependencies on a swing ancestor component...

see post - http://forum.springframework.org/showthread.php?t=44522&highlight=ApplicationContextAware

Affects: 2.0.7

Issue Links:

#8790 ApplicationListeners cannot be lazy initialized ("is duplicated by")

#9921 Prototype beans that implement ApplicationListener shouldn't be created during container initialization

Issue 2:
Pavel Nemec opened SPR-9839 and commented

Detail description is on forum(see Reference URL)

use case: Custom RequestParamMethodArgumentResolver that would parse and validate serialized object received in request parameter.

found problems:

1)As opposed to default resolvers, custom resolver can't obtain messageConverters in constructor, because it's created before RequestMappingHandlerAdapter that registers custom resolvers and messageConverters.

2)HandlerMethodArgumentResolverComposite doesn't provide any way to place custom resolver before catch-all resolvers.

3)HttpMessageConverter doesn't provide any way to get instructed to read message from parameter instead of request body.

There is a workaround for all issues but one must dig in framework source code to find a solution.

Affects: 3.1.2

Reference URL: http://forum.springsource.org/showthread.php?130618-Custom-HandlerMethodArgumentResolver-that-uses-messageConverters