WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm trying to import a fairly large CSV file (~300MB) with the following structure:

id,type,internal,data
1,a,true,abc
2,b,false,def
1,a,true,ghi
3,a,true,jkl
4,c,true,mno
...

(note: based on the ID value there might be duplicates with different values in the data column, which we are not using)

I'm using the following script:

CREATE CONSTRAINT ON (t:Thread) ASSERT t.id IS UNIQUE;
CREATE INDEX ON :Thread(type);

USING PERIODIC COMMIT 1000
LOAD CSV WITH HEADERS FROM 'file:///thread.csv' AS line
MERGE (t:Thread{id:toint(line.id)})
ON CREATE SET
t.type = line.type,
t.internal = case line.internal WHEN 'true' THEN true ELSE false END;

For some reason no matter what I try, the periodic commit doesn't seem to work, and I usually get a java out of memory error. Also none of the inserts get commited.

If I limit the csv size, for example with a WITH line LIMIT 100000 then the code works fine, and I get the first 100k lines imported. The same code also works, and can import the whole file with neo4j 2.3 as well.

I'm using the default docker versions for both 2.3 and 3.0 for testing

Neo4j Version: neo4j docker, tag 3.0.0

API: neo4j-shell, through docker exec

Steps to reproduce

Pull the image: docker pull neo4j:3.0.0

Create a directory on the host that will be a mount for the data: mkdir /home/neo4j-data

Start a new container that mounts to this directory: docker run -d --name neo4j-test -p 7474:7474 -v /home/neo4j:/data neo4j:3.0.0

Generate a large CSV file, with the above mentioned schema

Copy the file and the import script over: docker cp thread.csv neo4j:/var/lib/neo4j/import; docker cp load.cyp neo4j:/var/lib/neo4j/import

Start the import process: docker exec -ti neo4j /var/lib/neo4j/bin/neo4j-shell -file /var/lib/neo4j/import/load.cyp

Expected behavior

The data should be imported

Actual behavior

ERROR (-v for expanded information):
Error occurred in server thread; nested exception is:
java.lang.OutOfMemoryError: Java heap space

Issue 2:
@nigelsmall: 'Hope I'm not raising a duplicate issue here (can't find it anywhere else) but am still having issues with CREATE UNIQUE (née RELATE) and array properties passed through parameters.

The error scenario can be recreated with:

curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"query":"START a0=node(120),b0=node(121) CREATE UNIQUE a0-[r0:`LIKES` {D0}]->b0 RETURN r0","params":{"D0":{"colours":["red","green"]}}}' http://localhost:7474/db/data/cypher

But works fine with:

curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"query":"START a0=node(120),b0=node(121) CREATE UNIQUE a0-[r0:`LIKES` {D0}]->b0 RETURN r0","params":{"D0":{"colours":"red"}}}' http://localhost:7474/db/data/cypher

The actual error returned is:

{
"message" : "Unknown property type on: [red, green], class java.util.ArrayList",
"exception" : "IllegalArgumentException",
"stacktrace" : [ "org.neo4j.kernel.impl.nioneo.store.PropertyStore.encodeValue(PropertyStore.java:570)",
.......
]
}

Cheers

Nige'
Issue 1:
I noticed that there seems to be an overflow happening with numpy.linalg.matrix_power when using large exponents.

In my opinion, this should at least raise an OverflowError.

np.version.git_revision
Out[8]: '68538b74483009c2c2d1644ef00397014f95a696'
np.version.full_version == '1.6.1'

In [10]: A
Out[10]:
array([[1, 2],
[1, 0]])

In [11]: np.linalg.matrix_power(A, 100)
Out[11]:
array([[-6148914691236517205, -6148914691236517206],
[ 6148914691236517205, 6148914691236517206]])

Issue 2:
I noticed that the numpy masked-array mean method returns different types when it probably should not:

import sys
sys.version
#'2.7.9 (v2.7.9:648dcafa7e5f, Dec 10 2014, 10:10:46) \n[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]'
import numpy as np
np.__version__
#'1.9.2'

A = np.ma.masked_equal([1,1,0], value=0)
B = np.ma.masked_equal([1,1,1], value=0) # no masked values

type(A.mean())
#numpy.float64
type(B.mean())
#numpy.ma.core.MaskedArray

Other numpy.ma.core.MaskedArray methods seem to be consistent

type( A.sum()) == type(B.sum())
# True
type( A.prod()) == type(B.prod())
# True
type( A.std()) == type(B.std())
# True
type( A.mean()) == type(B.mean())
# False

This kind of behavior seems undesirable.

It is worth pointing out that

C = np.ma.masked_array([1, 1, 1], mask=[False, False, False])
type(C.mean()) == type(A.mean())
# True

You can see my original stack overflow question here
Issue 1:
On challenge 55 I found that if you only name the indoor radio name='indoor-outdoor' it allows the user to continue. This assume everything else is right but the name= is missing for the outdoor radio. I suppose pretty minor.

Issue 2:
Code validates when it shouldn't.

This code validates:

<form action="/submit-cat-photo">
<input type='text' placeholder='cat photo URL' required>
<label><input type='radio' name='indoor-outdoor'> Indoor</label>
<label><input type='radio' name='This should be the same as above'> Outdoor</label>
<button type='submit'>Submit</button>
</form>

But the directions say that the two labels "should share a common name attribute. " like so:

<form action="/submit-cat-photo">
<input type='text' placeholder='cat photo URL' required>
<label><input type='radio' name='indoor-outdoor'> Indoor</label>
<label><input type='radio' name='indoor-outdoor'> Outdoor</label>
<button type='submit'>Submit</button>
</form>
Issue 1:
Hi everyone.

This issue is following #6950

The fix works on IE11. Unfortunately, it doesn't under Edge.

It seems that Edge is implementing innerHTML property on SVG tag, but in an inefficient way. Using it appends SVG text in the DOM tree, as it can be seen using the inspector, but Edge doesn't render anything... Unless you modify the svg string in the inspector...

See the codepen (updated to use React 15.3) under Edge to see that issue.

Of course, if we enforce Edge to use the hack, it works. I don't know how to enforce it except browser sniffing (grr...).

Issue 2:
This appears to be a bug in React with the Microsoft Edge browser. This was previously a bug in older Internet Explorer browsers as well, but appears to have been fixed by #6982 – unfortunately the fix did not resolve the issue in Edge.

I modified the codepen from the original issue to use React 15.3.0, which includes the above-referenced pull request, and demonstrates the bug in Edge:

http://codepen.io/anon/pen/QEYoLV

Here is the output of that Codepen in IE 11 – this is the expected behavior as innerHTML is not available in Internet Explorer, yet React 15.3 is still able to function:

And here is the output of the same Codepen in Edge 38:

The problem seems to be that Edge has innerHTML, so it does not use the IE workaround code, yet Edge does not appear to be refreshing the DOM after updating – at least I can see the SVG contents added to the DOM using Inspect Element, but they are not visible in the browser.
Issue 1:
Thanks for the really fast reply. Interestingly this is a difference between SQLite and MySQL dialects. Bulk upsert in MySQL (see discussion #9328) works fine. I worked up a SSCCE for this also:

import sqlalchemy as db
import sqlalchemy.dialects.sqlite as sqlite
from sqlalchemy import delete, select, String
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column

class Base(DeclarativeBase):
pass

class User(Base):
__tablename__ = 'user'
id: Mapped[int] = mapped_column(primary_key=True)
name: Mapped[str] = mapped_column(String(30), nullable=False)
count: Mapped[int] = mapped_column(nullable=True)

engine = db.create_engine('sqlite:///:memory:')
conn = engine.connect()

# setup step 0 - ensure the table exists
Base().metadata.create_all(bind=engine)

# setup step 1 - clean out rows with id 1..5
del_stmt = delete(User).where(User.id.in_([1, 2, 3, 4, 5]))
conn.execute(del_stmt)
conn.commit()
sel_stmt = select(User)
users = list(conn.execute(sel_stmt))
print(f'Table size after cleanout: {len(users)}')

# setup step 2 - insert 4 rows
ins_stmt = sqlite.insert(User).values(
[
{'id': 1, 'name': 'x', 'count': 10},
{'id': 2, 'name': 'y', 'count': 20},
{'id': 3, 'name': 'w'}, # no count
{'id': 4, 'name': 'z', 'count': 40},
]
)
# FAILS HERE IF COUNT IS MISSING
conn.execute(ins_stmt)
conn.commit()
users = list(conn.execute(sel_stmt))
print(f'Table size after insert: {len(users)}')

# demonstrate upsert
ups_stmt = sqlite.insert(User).values(
[
{'id': 1, 'name': 'xx', 'count': 10},
{'id': 2, 'name': 'yy', 'count': 20},
{'id': 3, 'name': 'ww'}, # no count
{'id': 5, 'name': 'new', 'count': 50},
]
)
ups_stmt = ups_stmt.on_conflict_do_update(
index_elements=['id'],
set_=dict(
name=ups_stmt.excluded.name,
count=ups_stmt.excluded.count))
# if you want to see the compiled result
x = ups_stmt.compile(dialect=sqlite.dialect())
print(x.string, x.construct_params())
conn.execute(ups_stmt)
conn.commit()

users = list(conn.execute(sel_stmt))
print(f'Table size after upsert: {len(users)}')

Originally posted by @chrisinmtown in #9702 (reply in thread)

Error:

sqlalchemy.exc.CompileError: INSERT value for column ip_time.time is explicitly rendered as a boundparameter in the VALUES clause;
a Python-side value or SQL expression is required

Issue 2:
Migrated issue, originally created by Anonymous

If we have a self-referential, many-to-many relation (e.g. network of nodes), when we define a validator on one side of the symmetrical relationship (namely children), append works or doesn't work correctly depending on whether the data is commited or not. Works fine if there's no validator or changes are commited at the very end of operation.

An obvious workaround is to change the append to append to the other side of the relationship (ie. parent.children.append instead of children.parents.append), so I've set the ticket priority to low. However, something is definitely wrong with the code and this can be a manifestation of some nastier bug, ergo the ticket.

Self-contained test case is attached. My setup: SQLAlchemy 0.5.5, Python 2.5 on win32

Attachments: validator_bug.py | backref_validator_test.py
Issue 1:
Bug report

Bug summary

Modifying rcParams in the same cell where %matplotlib inline is called (for the first time) causes only a temporary change (within that cell). In later cells, the values of rcParams revert back.

Code for reproduction

Notice that even if inline is changed to some other backend, things work properly:

Matplotlib version

Operating system: Mac OS 10.13.4

Matplotlib version: 2.2.2

Matplotlib backend (print(matplotlib.get_backend())): nbAgg

Python version: 3.6.5

Jupyter version (if applicable): 4.4.0

Other libraries:

See also #11693, which seems to be another manifestation of the same bug.

Issue 2:
EDIT (jklymak) Old title is below:

Fundamental issue is that If you do a search on "radar plot matplotlib" you get sent here:

https://matplotlib.org/examples/api/radar_chart.html

This of course refers to 2.0.2 and /examples/ isn't a directory any more in our tree.

Robots should probably be redirected to the proper page.

It'd be nice if the old docs could get a version marker as per PR #10065

Example of radar chart (matplotlib v.2.1.1) doesn't work

I just tried to run the radar chart example on a Mac (MacOS 10.13.1) with python 3.5.4 and matplotlib 2.1.1. and the radars aren't displayed correctly.

I found that this is the set_varlabels function which shifts the radars. Without the line 189 : ax.set_varlabels(spoke_labels) the radars look like that (but without the labels).

As I'm new on matplotlib and python I didn't succeed in finding a solution.

Thank's for your help
Issue 1:
I am using the logstash 1.3.2 RPM found in this repository:

http://packages.elasticsearch.org/logstash/1.3/centos

I have set CONF_DIR to /etc/logstash/conf.d/*/.conf.

The asterisks seem to be messing with the regular expression used by pgrep to find the PID of the process that was started.

The process starts fine, but then the process cannot be killed when using the stop command on the init script. When issuing a restart, there will be duplicate processes.

Escaping the asterisks for pgrep allowed me to get the pid.

Either the asterisks need to be escaped or a different value besides the full ARGS list should be used to find the PID.

Also, in a somewhat related issue. It seems that in the init script for logstash, reads the ${DAEMON} variable in a few places, but it is never set. I think ${DAEMON} should probably be the ${JAVA} variable.

Issue 2:
HI,

I am working with Elasticsearch 2.1.0.

I have a requirement to specify the schema for my documents.

So i used the ElasticSearch Mapping functionality like this:

curl -XPUT 'http://localhost:9200/customer/external/_mapping' -d ' { "external" : { "properties" : { "example" : { "properties" : { "custom_property" : { "type" : "byte" } } } } } } '

It gets reflected in the schema mapping as well:

{
"customer" : {
"mappings" : {
"external" : {
"properties" : {
"first" : {
"type" : "long"
},
"example" : {
"properties" : {
"custom_property" : {
"type" : "byte"
},
"last" : {
"type" : "long"
}
}
}
}
}
}
}
}

I then added the value for this field like this:

curl -XPUT 'localhost:9200/customer/external/1?pretty' -d '{"example": {"custom_property": 12345}}'

And to my surprise it was saved successfully. Here is the output :

{
"_index" : "customer",
"_type" : "external",
"_id" : "1",
"_version" : 3,
"found" : true,
"_source":{"example": {"custom_property": 12345}}
}

I did some more investigation and found that the value is treated as short and not as byte.

There is a similar issue with float dataType as well. Can someone explain what may be causing this and how can this be rectified?

Thanks,

Anuj Kumar
Issue 1:
error code ↓↓↓↓

` ERROR in ../pc-react-next/src/index.js

Module build failed: SyntaxError: /Users/tezml/Desktop/pc-react-next/src/index.js: Unexpected token (362:9)

360 |	let {levels=[], names={}} = level1
361 |
> 362 |	return <div className={divider ? "cndzk-entrance-divider" : 'cndzk-entrance'} style={style}>`

import ↓↓↓↓

Issue 2:
transform-runtime plugin usage option for disabling polyfills is ignored when used to transpile code with async functions.

Input Code

I am able to reproduce the bug using the vue webpack template starter pack.

To create a fresh project:

$ npm install -g vue-cli
$ vue init webpack vue-test

This will install Vue 2.x version of the template.

For Vue 1.x use: vue init webpack#1.0 vue-test

? Project name vue-test
? Project description Playground for Vue!
? Author Suhas Karanth <sudo.suhas@gmail.com>
? Vue build runtime
? Install vue-router? Yes
? Use ESLint to lint your code? No
? Setup unit tests with Karma + Mocha? No
? Setup e2e tests with Nightwatch? No

vue-cli · Generated "vue-test".

To get started:

cd vue-test
npm install
npm run dev

Documentation can be found at https://vuejs-templates.github.io/webpack

$ cd vue-test/
$ npm install

Modify .babelrc to have ["transform-runtime", { "polyfill": false }].

Add the following to src/main.js:

async function test() {
await Promise.resolve(true);
}

Babel Configuration (.babelrc, cli command)

// .babelrc
{
"presets": [
["env", { "modules": false }],
"stage-2"
],
"plugins": [["transform-runtime", { "polyfill": false }]],
"comments": false,
"env": {
"test": {
"plugins": [ "istanbul" ]
}
}
}

// cli command
npm run build --report

Expected Behavior

Since polyfill option is disabled, core-js modules should not be exported.

Current Behavior

The polyfills are added despite the .babelrc config

Context

I am tying to export my choice of polyfill of promise library but the build ends up exporting both the polyfill library as well as the core-js promise version.

Your Environment

software
version

Babel
6.22.1

node
6.9.4

npm
3.10.10

Operating System
ubuntu 16.04
Issue 1:
Some public functions defined in numpy/core/records.py and accessible via the np.rec namespace have incomplete docstrings that do not fully comply with the numpydoc standard.

For example:

numpy/numpy/core/records.py

Lines 596 to 609
in
43ca3a5

def fromarrays(arrayList, dtype=None, shape=None, formats=None,

names=None, titles=None, aligned=False, byteorder=None):

""" create a record array from a (flat) list of arrays

>>> x1=np.array([1,2,3,4])

>>> x2=np.array(['a','dd','xyz','12'])

>>> x3=np.array([1.1,2,3,4])

>>> r = np.core.records.fromarrays([x1,x2,x3],names='a,b,c')

>>> print(r[1])

(2, 'dd', 2.0) # may vary

>>> x1[1]=34

>>> r.a

array([1, 2, 3, 4])

"""

At the very least, this docstring is missing the Parameters and Returns sections as well as the Examples header above the examples.

A listing of functions that this issue applies to in numpy/core/records.py

fromarrays

fromrecords

fromstring

fromfile

array

Additionally (perhaps a separate issue), there are two other functions which are "public" (i.e. name does not start with an underscore) though from context it appears that they may be intended only for internal use within the records submodule. They also do not have proper docstrings:

find_duplicate

get_remaining_size

Numpy/Python version information:

1.19.0.dev0+0b9b176 3.8.2 (default, Feb 26 2020, 22:21:03)

Issue 2:
Issue 1:
On IE edge mode, the form is set to dirty when initialized. I found that it said that was a bug in IE, but had been fixed. Now I am still facing this issue.

angular-ui/ui-mask#29

https://connect.microsoft.com/IE/feedback/details/899139/angular-js-ie11-form-control-dirty-attribute-always-true-if-placeholder-has-non-ascii-chars-and-required-attribute

Any ideas?

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

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Textarea element in form when binding model has initial state as dirty in IE

Expected behavior

Textarea element in form when binding model has initial state as pristine in IE

Minimal reproduction of the problem with instructions

Using ng-form with textarea element and bind model on that textarea

Plunker example: http://plnkr.co/edit/JEgKqSEXGpUDSRDuMXcD?p=preview

Inspect textarea in browser development tool. textarea and form element have ng-pristine CSS class in Chrome/Firefox/Edge while they have ng-dirty CSS class in IE.

Please tell us about your environment:

Angular version: 2.4.7

Browser: IE 11
Issue 1:
This issue is new as of 0.6.3121.0, and is happening for profiles I've had around for a long time.

Environment

Windows build number: 10.0.19023.0
Windows Terminal version: 0.6.3121.0

Steps to reproduce

Have an existing, custom profile in profiles.json that does not specify a startingDirectory.

Open a tab with that profile.

💥

Add startingDirectory to the profile in question.

Open a tab with that profile again.

No 💥

Expected behavior

No 💥

Actual behavior

💥

Issue 2:
From @srv-code in #3386:

Tab switcher pop-up like in other editor applications (e.g. in Visual Studio Code editor when pressed Ctrl+TAB).

It's quite impossible for me to grab a screenshot of this in action, but it's a little dialog that appears with each of the tab titles in it, and lets you up/down arrow through them.

This kinda reminds me of the "window switcher" (not sure if that's the correct name) in tmux: (on the right)

which lets you not only switch tabs, but directly to a child pane, and can even give you a preview (when the window is big enough)
Issue 1:
Alef Arendsen opened SPR-4 and commented

Mike's been talking about introducing OGNL support. Seems like a nice idea to me, though not really feasible for the 1.0 release I think. But hey, let's put it in here so we won't forget...

Mike's mail (December 2nd):

Or an even better idea... how about supporting OGNL within the Spring config files? (like Xwork does)

This would be awesome and I just found a second use case for it (the very minute Rob's email came in).

My use case - Maps.

The Map syntax is nice, but not very useful in practicality I'm finding as the key and value of the map are usually related, for instance I often want to put a list of referenced beans into a map, with ref.getName() (or some

method) called for the key.

At the moment I have to add a setBeans(List) method to my class, and then in that setter iterate and add to a map - smelly!

If we allowed OGNL expressions, it would be very simple to do this in the config file itself:

<property value="myMapProp">

<map>

<entry>

<key>$referencedBean.name</key>

<value><ref bean="referencedBean" /></value>

</entry>

... More entries

</map>

</property>

I'm sure there are a million other places where OGNL would be useful too, but AFAIK the above can't be done without it?

Or have I just been at this desk far too long?

M

Affects: 1.0 M4

Attachments:

patch.zip (4.40 kB)

Issue Links:

#5713 Introduce OGNL and OgnlExpressionFactoryBean ("is duplicated by")

Referenced from: commits spring-projects/spring-integration@e571034

8 votes, 6 watchers

Issue 2:
Kilian Matt opened SPR-9630 and commented

I tried to migrate an existing spring application from 3.0.5 to 3.1.2 and I've noticed a strange bug, that the injection of a provider works the first time but passes subsequent times.

It seems due the call of DependencyDescriptor.increaseNestingLevel() in the constructor of DependencyObjectFactory. Since the Descriptor is cached, the subsequent calls to BeanFactory.resolveDependency no longer return a Provider, but a reference to the bean.

I've attached a testcase, which reproduces the problem. The bug seems to be introduced in 3.1.1, according to my tests.

Affects: 3.1.1

Attachments:

ProviderInjectionTest.java (1.82 kB)

Issue Links:

#13819 @Inject Provider or @Autowired ObjectFactory issue with session scoped bean ("duplicates")

Referenced from: commits 6574393, d782558

2 votes, 7 watchers
Issue 1:
Bug Report

Current Behavior

After installed babel 7.0.0-rc.0, there're some warning messages like:

warning "@babel/plugin-transform-unicode-regex@7.0.0-rc.0" has incorrect peer dependency "@babel/core@>=7.0.0-beta.50 <7.0.0-rc.0".

Expected behavior/code

No warning message

Possible Solution

@hzoo I think in package.json peerDependencies should add <=7.0.0-rc.0 instead of <7.0.0-rc.0

Issue 2:
Bug Report

Current behaviour

The individual packagesdo not have a license file

Expected behaviour

I would expect a LICENSE file at the root of each package ( for example, here ) with the MIT license and attribution.

Possible Solution

Additional context

See previous issue where this was fixed for the preset-modules
Issue 1:
I'm doing some research on how to enable use of custom materials with THREE.Sprite.

Currently in THREE.SpritePlugin uniform binding is hardcoded. Why aren't the methods from WebGLRenderer used for this task? Is it because of incompatible uniforms?

If THREE.SpritePlugin used standard material infrastructure custom materials could be easily enabled just by checking material instance type in THREE.SpritePlugin.render(). Somehow like this:

for( i = 0; i < nSprites; i ++ ) {
sprite = sprites[ i ];
material = sprite.material;
if(typeof material == 'THREE.SpriteMaterial') {
//render using default material
} else {
//render using custom material
}
}

Usage of common material infrastructure would be appropriate to avoid too much code duplication in separate branches of that if-statement.

Issue 2:
Is it possible to update the shadows on a mesh when animating with morph targets? When you rotate a textured object the shadows rotate with it...

Thanks!