Skip to content

Instantly share code, notes, and snippets.

View rationalism's full-sized avatar

Alyssa Vance rationalism

View GitHub Profile
@rationalism
rationalism / test.py
Created July 14, 2022 22:16
File moving code
def move_files(directory):
"""This function duplicates every JPEG and moves the copies
to a folder called 'bar'."""
import os
import shutil
import glob
import time
import random
import string
import sys
#
# multihead attention
#
def _in_projection_packed(
q: Tensor,
k: Tensor,
v: Tensor,
w: Tensor,
2016-10-21 15:53:17.799+0000 ERROR [o.n.b.v.r.i.ErrorReporter] Client triggered an unexpected error [UnknownError]: null. See debug.log for more details, reference 79477d1b-31bc-4c73-af5a-c364b4fa3d28.
2016-10-21 15:53:17.799+0000 ERROR [o.n.b.v.r.i.ErrorReporter] Client triggered an unexpected error [UnknownError]: null, reference 79477d1b-31bc-4c73-af5a-c364b4fa3d28.
java.lang.NullPointerException
at org.neo4j.cypher.internal.compiler.v3_0.commands.expressions.LabelsFunction.compute(LabelsFunction.scala:35)
at org.neo4j.cypher.internal.compiler.v3_0.commands.expressions.NullInNullOutExpression.apply(NullInNullOutExpression.scala:30)
at org.neo4j.cypher.internal.compiler.v3_0.pipes.ProjectionPipe$$anonfun$internalCreateResults$1$$anonfun$apply$1.apply(ProjectionPipe.scala:48)
at org.neo4j.cypher.internal.compiler.v3_0.pipes.ProjectionPipe$$anonfun$internalCreateResults$1$$anonfun$apply$1.apply(ProjectionPipe.scala:46)
at scala.collection.immutable.Map$Map1.foreach(Map.
description "Run Neo4j"
start on runlevel startup
stop on runlevel shutdown
2016-10-16 04:00:13.107+0000 INFO [o.n.b.BackupImpl] Incremental backup started...
2016-10-16 04:00:13.107+0000 INFO [o.n.b.BackupImpl] Incremental backup finished.
2016-10-16 04:08:50.393+0000 INFO [o.n.k.i.e.EnterpriseFacadeFactory] Shutdown started
2016-10-16 04:08:50.394+0000 INFO [o.n.k.i.e.EnterpriseFacadeFactory] Database is now unavailable
2016-10-16 04:08:50.401+0000 INFO [o.n.b.BackupServer] BackupServer communication server shutting down and unbinding from 0.0.0.0/0.0.0.0:6362
2016-10-16 04:08:54.602+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [615276]: Starting check pointing...
2016-10-16 04:08:54.602+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Check Pointing triggered by database shutdown [615276]: Starting store flush...
2016-10-16 04:08:54.636+0000 INFO [o.n.k.i.s.c.CountsTracker] About to rotate counts store at transaction 615276 to [/home/ubuntu/neo4j/neo4j-enterprise-3.0.5/data/databases/graph.db/neostore.counts.db.b], from [/home/ubun
2016-10-12 21:43:42.835+0000 INFO [o.n.k.NeoStoreDataSource] Recovery required from position LogPosition{logVersion=123, byteOffset=87041530}
2016-10-12 21:43:50.033+0000 INFO [o.n.k.i.s.c.CountsTracker] About to rotate counts store at transaction 568755 to [/home/ubuntu/neo4j/neo4j-enterprise-3.0.5/data/databases/graph.db/neostore.counts.db.\
b], from [/home/ubuntu/neo4j/neo4j-enterprise-3.0.5/data/databases/graph.db/neostore.counts.db.a].
2016-10-12 21:43:50.074+0000 INFO [o.n.k.i.s.c.CountsTracker] Successfully rotated counts store at transaction 568755 to [/home/ubuntu/neo4j/neo4j-enterprise-3.0.5/data/databases/graph.db/neostore.count\
s.db.b], from [/home/ubuntu/neo4j/neo4j-enterprise-3.0.5/data/databases/graph.db/neostore.counts.db.a].
2016-10-12 21:43:52.725+0000 INFO [o.n.k.i.s.DynamicArrayStore] Rebuilding id generator for[/home/ubuntu/neo4j/neo4j-enterprise-3.0.5/data/databases/graph.db/neostore.nodestore.db.labels] ...
2016-10-12 21:43:52.730+0000 INFO [o.n.k.i.s.DynamicArrayStore] [/home/ubu
@rationalism
rationalism / gist:c489a1d8e6151e387f216c13b769f2e5
Created September 21, 2016 05:21
Neo4j/JVM memory settings
2016-09-19 02:41:28.042+0000 INFO [o.n.k.i.DiagnosticsManager] System memory information:
2016-09-19 02:41:28.050+0000 INFO [o.n.k.i.DiagnosticsManager] Total Physical memory: 7.80 GB
2016-09-19 02:41:28.050+0000 INFO [o.n.k.i.DiagnosticsManager] Free Physical memory: 2.42 GB
2016-09-19 02:41:28.050+0000 INFO [o.n.k.i.DiagnosticsManager] Committed virtual memory: 4.33 GB
2016-09-19 02:41:28.050+0000 INFO [o.n.k.i.DiagnosticsManager] Total swap space: 0.00 B
2016-09-19 02:41:28.050+0000 INFO [o.n.k.i.DiagnosticsManager] Free swap space: 0.00 B
2016-09-19 02:41:28.051+0000 INFO [o.n.k.i.DiagnosticsManager] JVM memory information:
2016-09-19 02:41:28.051+0000 INFO [o.n.k.i.DiagnosticsManager] Free memory: 85.33 MB
2016-09-19 02:41:28.051+0000 INFO [o.n.k.i.DiagnosticsManager] Total memory: 126.00 MB
2016-09-19 02:41:28.051+0000 INFO [o.n.k.i.DiagnosticsManager] Max memory: 1.95 GB
@rationalism
rationalism / gist:374958231d436734c9e6374b878eb0b1
Created September 21, 2016 04:58
Neo4j debug.log stack trace
2016-09-21 04:40:36.290+0000 ERROR [o.n.b.v.r.i.ErrorReporter] Client triggered an unexpected error [UnknownError]: Node[1141572,used=false,rel=-1,prop=-1,labels=Inline(0x0:[]),light,secondaryUnitId=-1] \
not in use, reference ef52d97f-c326-4043-9e9e-6fb02a842f17. Node[1141572,used=false,rel=-1,prop=-1,labels=Inline(0x0:[]),light,secondaryUnitId=-1] not in use
org.neo4j.kernel.impl.store.InvalidRecordException: Node[1141572,used=false,rel=-1,prop=-1,labels=Inline(0x0:[]),light,secondaryUnitId=-1] not in use
at org.neo4j.kernel.impl.store.record.RecordLoad.verify(RecordLoad.java:63)
at org.neo4j.kernel.impl.store.CommonAbstractStore.verifyAfterReading(CommonAbstractStore.java:1265)
at org.neo4j.kernel.impl.store.CommonAbstractStore.readIntoRecord(CommonAbstractStore.java:1049)
at org.neo4j.kernel.impl.store.CommonAbstractStore.getRecord(CommonAbstractStore.java:1027)
at org.neo4j.kernel.impl.transaction.state.Loaders$1.load(Loaders.java:141)
at org.neo4j.kernel.i
2016-08-12 05:17:19.867+0000 ERROR [o.n.b.v.r.i.ErrorReporter] Client triggered an unexpected error [UnknownError]: (ArrayBuffer(1110642, (recon,person_user_1062118), null),null) (of class scala.Tuple2). See debug.log for more details, reference d5f93672-e0d7-414b-b97b-df5da4d35deb.
2016-08-12 05:17:19.867+0000 ERROR [o.n.b.v.r.i.ErrorReporter] Client triggered an unexpected error [UnknownError]: (ArrayBuffer(1110642, (recon,person_user_1062118), null),null) (of class scala.Tuple2), reference d5f93672-e0d7-414b-b97b-df5da4d35deb. (ArrayBuffer(1110642, (recon,person_user_1062118), null),null) (of class scala.Tuple2)
scala.MatchError: (ArrayBuffer(1110642, (recon,person_user_1062118), null),null) (of class scala.Tuple2)
at org.neo4j.cypher.internal.compiler.v3_0.commands.predicates.Equivalent$$anonfun$wrapEager$1.apply(Equivalent.scala:129)
at org.neo4j.cypher.internal.compiler.v3_0.commands.predicates.Equivalent$$anonfun$wrapEager$1.apply(Equivalent.scala:129)
at scala.collection.TraversableOnce$$anonfun$fo
Caused by: edu.stanford.nlp.util.MetaClass$ClassCreationException: MetaClass couldn't create public edu.stanford.nlp.time.TimeExpressionExtractorImpl(java.lang.String,java.util.Properties) with args [sutime, {}]
at edu.stanford.nlp.util.MetaClass$ClassFactory.createInstance(MetaClass.java:235)
at edu.stanford.nlp.util.MetaClass.createInstance(MetaClass.java:380)
at edu.stanford.nlp.util.ReflectionLoading.loadByReflection(ReflectionLoading.java:38)
... 62 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)