Unnamed: 0 int64 0 6.7k | func stringlengths 12 89.6k | target bool 2
classes | project stringlengths 45 151 |
|---|---|---|---|
3,300 | public class SubGraphExporter
{
private final SubGraph graph;
public SubGraphExporter( SubGraph graph )
{
this.graph = graph;
}
public void export( PrintWriter out )
{
appendIndexes( out );
appendConstraints( out );
appendNodes( out );
appendRelationship... | false | community_cypher_cypher_src_main_java_org_neo4j_cypher_export_SubGraphExporter.java |
3,301 | {
@Override
public void close()
{
}
@Override
public boolean hasNext()
{
return inner.hasNext();
}
@Override
public Map<String, Object> next()
{
r... | false | community_cypher_cypher_src_test_java_org_neo4j_cypher_export_ExportTest.java |
3,302 | public class ExportTest
{
private final static String NL = System.getProperty( "line.separator" );
private GraphDatabaseService gdb;
private Transaction tx;
@Before
public void setUp() throws Exception
{
gdb = new TestGraphDatabaseFactory().newImpermanentDatabase();
tx = gdb.be... | false | community_cypher_cypher_src_test_java_org_neo4j_cypher_export_ExportTest.java |
3,303 | public class DatabaseSubGraph implements SubGraph
{
private final GraphDatabaseService gdb;
public DatabaseSubGraph( GraphDatabaseService gdb )
{
this.gdb = gdb;
}
public static SubGraph from( GraphDatabaseService gdb )
{
return new DatabaseSubGraph(gdb);
}
@Override
... | false | community_cypher_cypher_src_main_java_org_neo4j_cypher_export_DatabaseSubGraph.java |
3,304 | public class CypherResultSubGraph implements SubGraph
{
private final SortedMap<Long, Node> nodes = new TreeMap<>();
private final SortedMap<Long, Relationship> relationships = new TreeMap<>();
private final Collection<Label> labels = new HashSet<>();
private final Collection<IndexDefinition> indexes =... | false | community_cypher_cypher_src_main_java_org_neo4j_cypher_export_CypherResultSubGraph.java |
3,305 | @Ignore("Too costly to run by default but useful for testing resource clean up and indexing")
public class ManyMergesStressTest
{
private Random random = new Random();
private String[] SYLLABLES = new String[] { "Om", "Pa", "So", "Hu", "Ma", "Ni", "Ru", "Gu", "Ha", "Ta" };
private final static int TRIES =... | false | community_cypher_cypher_src_test_java_org_neo4j_cypher_ManyMergesStressTest.java |
3,306 | SCAN_RESISTANT
{
@Override
public WindowPoolFactory windowPoolFactory( Config config, StringLogger logger )
{
return new ScanResistantWindowPoolFactory( config, logger );
}
}; | false | enterprise_consistency-check_src_main_java_org_neo4j_consistency_store_windowpool_WindowPoolImplementation.java |
3,307 | MOST_FREQUENTLY_USED
{
@Override
public WindowPoolFactory windowPoolFactory( Config config, StringLogger logger )
{
return new DefaultWindowPoolFactory();
}
}, | false | enterprise_consistency-check_src_main_java_org_neo4j_consistency_store_windowpool_WindowPoolImplementation.java |
3,308 | class WindowPage extends Page<PersistenceWindow>
{
public final long firstRecord;
public WindowPage( long firstRecord )
{
this.firstRecord = firstRecord;
}
@Override
protected void evict(PersistenceWindow window)
{
window.close();
}
@Override
protected void hit... | false | enterprise_consistency-check_src_main_java_org_neo4j_consistency_store_windowpool_WindowPage.java |
3,309 | public class ScanResistantWindowPoolTest
{
@Test
public void shouldMapConsecutiveWindowsWithAppropriateBoundaries() throws Exception
{
// given
int bytesPerRecord = 10;
int targetBytesPerPage = 1000;
FileMapper fileMapper = mock( FileMapper.class );
ScanResistantWindo... | false | enterprise_consistency-check_src_test_java_org_neo4j_consistency_store_windowpool_ScanResistantWindowPoolTest.java |
3,310 | {
@Override
public void onStatistics( File storeFileName, int acquiredPages, int mappedPages, long samplePeriod )
{
// silent
}
}; | false | enterprise_consistency-check_src_main_java_org_neo4j_consistency_store_windowpool_ScanResistantWindowPoolFactory.java |
3,311 | public class ScanResistantWindowPoolFactory implements WindowPoolFactory
{
private final int targetBytesPerPage;
private final Cart cart;
private final int reportingInterval;
private final MappingStatisticsListener statisticsListener;
public ScanResistantWindowPoolFactory( Config configuration, Str... | false | enterprise_consistency-check_src_main_java_org_neo4j_consistency_store_windowpool_ScanResistantWindowPoolFactory.java |
3,312 | public class ScanResistantWindowPool implements WindowPool,
PageReplacementStrategy.Storage<PersistenceWindow, WindowPage>
{
private final File storeFileName;
private final FileMapper fileMapper;
private final PageReplacementStrategy replacementStrategy;
private final int bytesPerRecord;
pri... | false | enterprise_consistency-check_src_main_java_org_neo4j_consistency_store_windowpool_ScanResistantWindowPool.java |
3,313 | public class MappedWindowTest
{
@Test
public void shouldProvideBufferWithCorrectOffset() throws Exception
{
// given
ByteBuffer byteBuffer = allocateDirect( 150 );
byteBuffer.putInt( 15*5, 42 );
MappedWindow window = new MappedWindow( 10, 15, 100, (MappedByteBuffer) byteBuffe... | false | enterprise_consistency-check_src_test_java_org_neo4j_consistency_store_windowpool_MappedWindowTest.java |
3,314 | public class ExecutionResult implements ResourceIterable<Map<String,Object>>
{
private org.neo4j.cypher.ExecutionResult inner;
/**
* Constructor used by the Cypher framework. End-users should not
* create an ExecutionResult directly, but instead use the result
* returned from calling {@link Exec... | false | community_cypher_cypher_src_main_java_org_neo4j_cypher_javacompat_ExecutionResult.java |
3,315 | public class ExecutionResultTest
{
private GraphDatabaseAPI db;
private ExecutionEngine engine;
@Before
public void setUp() throws Exception
{
db = (GraphDatabaseAPI) new TestGraphDatabaseFactory().newImpermanentDatabaseBuilder()
.newGraphDatabase();
engine = new Exe... | false | community_cypher_cypher_src_test_java_org_neo4j_cypher_javacompat_ExecutionResultTest.java |
3,316 | public class GraphImpl implements Graph {
private final String[] value;
public GraphImpl(String[] value){
this.value = value;
}
@Override
public Class<? extends Annotation> annotationType()
{
return null;
}
@Override
public String[] value()
{
r... | false | community_cypher_cypher_src_test_java_org_neo4j_cypher_javacompat_GraphImpl.java |
3,317 | public class DarwinInstallation extends UnixInstallation
{
@Override
protected File getDefaultDirectory()
{
// cf. http://stackoverflow.com/questions/567874/how-do-i-find-the-users-documents-folder-with-java-in-os-x
return new File( new File( System.getProperty( "user.home" ) ), "Documents"... | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_osx_DarwinInstallation.java |
3,318 | class VariableSubstitutor
{
private static final Pattern DEFAULT_PATTERN = Pattern.compile( "\\$\\{([^\\}]+)\\}" );
private final Pattern pattern;
public VariableSubstitutor( Pattern pattern )
{
this.pattern = pattern;
}
public VariableSubstitutor()
{
this( DEFAULT_PATTERN ... | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_portable_VariableSubstitutor.java |
3,319 | {
@Override
public String apply( String name )
{
String var = System.getenv( name );
return var == null ? "" : var;
}
}; | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_portable_Template.java |
3,320 | public class Template
{
private final InputStream templateFile;
private final VariableSubstitutor substitutor;
private Function<String, String> substitutionFunction;
public Template( InputStream templateFile )
{
this.templateFile = templateFile;
substitutor = new VariableSubstitutor... | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_portable_Template.java |
3,321 | private static class PathAlreadyExistException extends RuntimeException
{
public PathAlreadyExistException( File path, String description )
{
super( format( "%s already exists but is not a %s.", description, path.getAbsolutePath() ) );
}
} | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_portable_PortableInstallation.java |
3,322 | private static class CannotMakeDirectory extends RuntimeException
{
public CannotMakeDirectory( File path, String description )
{
super( format( "Could not make %s %s", description, path.getAbsolutePath() ) );
}
} | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_portable_PortableInstallation.java |
3,323 | private static class CannotFindInstallationDirectory extends RuntimeException
{
public CannotFindInstallationDirectory( Exception cause )
{
super( cause );
}
} | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_portable_PortableInstallation.java |
3,324 | public abstract class PortableInstallation implements Installation
{
protected void mkdirs( File path, String description )
{
if ( path.exists() )
{
if ( !path.isDirectory() )
{
throw new PathAlreadyExistException( path, description );
}
... | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_portable_PortableInstallation.java |
3,325 | public abstract class PortableEnvironment implements Environment
{
protected void portableEditFile( File file ) throws IOException
{
if ( !file.exists() )
{
file.createNewFile();
}
getDesktop().edit( file );
}
protected boolean isPortableEditFileSupported()
... | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_portable_PortableEnvironment.java |
3,326 | {
@Override
public void run()
{
databaseActions.stop();
}
} ); | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_Neo4jDesktop.java |
3,327 | public class IntroDocTest implements GraphHolder
{
private static final String DOCS_TARGET = "target/docs/dev/general/";
public @Rule
TestData<JavaTestDocsGenerator> gen = TestData.producedThrough( JavaTestDocsGenerator.PRODUCER );
public @Rule
TestData<Map<String, Node>> data = TestData.producedThr... | false | community_cypher_cypher-docs_src_test_java_org_neo4j_cypher_javacompat_IntroDocTest.java |
3,328 | public final class Neo4jDesktop
{
public static void main( String[] args )
{
preStartInitialize();
Neo4jDesktop app = new Neo4jDesktop();
app.start();
}
public static void preStartInitialize()
{
PlatformUI.selectPlatformUI();
DesktopIdentification.register()... | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_Neo4jDesktop.java |
3,329 | public final class DesktopIdentification
{
/**
* Register Desktop as the means by which Neo4j was launched. This information is collected by UDC.
* @see org.neo4j.ext.udc.UdcConstants#UDC_PROPERTY_PREFIX
*/
public static void register()
{
System.setProperty( "neo4j.ext.udc.launcher", ... | false | packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_DesktopIdentification.java |
3,330 | public class RegularExpressionMatcher extends TypeSafeMatcher<String>
{
private final Pattern pattern;
public RegularExpressionMatcher( String pattern )
{
this( Pattern.compile( pattern ) );
}
public RegularExpressionMatcher( Pattern pattern )
{
this.pattern = pattern;
}
... | false | community_cypher_cypher_src_test_java_org_neo4j_cypher_javacompat_RegularExpressionMatcher.java |
3,331 | public class QueryStatistics
{
private final org.neo4j.cypher.QueryStatistics inner;
QueryStatistics( org.neo4j.cypher.QueryStatistics inner )
{
this.inner = inner;
}
/**
* Returns the number of nodes created by this query.
* @return the number of nodes created by this query.
... | false | community_cypher_cypher_src_main_java_org_neo4j_cypher_javacompat_QueryStatistics.java |
3,332 | public class JavaQueryDocTest
{
@Test
public void test()
{
JavaDocsGenerator gen = new JavaDocsGenerator( "java-cypher-queries", "dev/java" );
JavaQuery jq = new JavaQuery();
jq.run();
assertTrue( jq.columnsString.contains( "n," ) );
assertTrue( jq.columnsString.cont... | false | community_cypher_cypher-docs_src_test_java_org_neo4j_cypher_javacompat_JavaQueryDocTest.java |
3,333 | public class JavaQuery
{
private static final String DB_PATH = "target/java-query-db";
String resultString;
String columnsString;
String nodeResult;
String rows = "";
public static void main( String[] args )
{
JavaQuery javaQuery = new JavaQuery();
javaQuery.run();
}
... | false | community_cypher_cypher-docs_src_test_java_org_neo4j_cypher_javacompat_JavaQuery.java |
3,334 | public class JavaExecutionEngineDocTest
{
private static final ObjectMapper MAPPER = new ObjectMapper();
private static final ObjectWriter WRITER = MAPPER.writerWithDefaultPrettyPrinter();
private static final File docsTargetDir = new File( "target/docs/dev/general" );
private GraphDatabaseService db;
... | false | community_cypher_cypher-docs_src_test_java_org_neo4j_cypher_javacompat_JavaExecutionEngineDocTest.java |
3,335 | public class JavaCompatibilityTest
{
private GraphDatabaseService db;
private ExecutionEngine engine;
@Before
public void setUp() throws IOException
{
db = new TestGraphDatabaseFactory().newImpermanentDatabaseBuilder().newGraphDatabase();
engine = new ExecutionEngine( db );
}
... | false | community_cypher_cypher_src_test_java_org_neo4j_cypher_javacompat_JavaCompatibilityTest.java |
3,336 | public class Dijkstra<CostType> implements
SingleSourceSingleSinkShortestPath<CostType>
{
protected CostType startCost; // starting cost for both the start node and
// the end node
protected Node startNode, endNode;
protected RelationshipType[] costRelationTypes;
protected Direction relation... | false | community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_shortestpath_Dijkstra.java |
3,337 | protected class DijstraIterator implements Iterator<Node>
{
protected Node startNode;
// where do we come from
protected HashMap<Node, List<Relationship>> predecessors;
// observed distances not yet final
protected HashMap<Node, CostType> mySeen;
protected HashMap... | false | community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_shortestpath_Dijkstra.java |
3,338 | public class DijkstraPriorityQueueFibonacciImpl<CostType> implements
DijkstraPriorityQueue<CostType>
{
/**
* Data structure used for the internal priority heap
*/
protected class HeapObject
{
private Node node;
private CostType cost;
public HeapObject( Node node, CostT... | false | community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_shortestpath_DijkstraPriorityQueueFibonacciImpl.java |
3,339 | public class NodeIndexFacadeMethods
{
private static final FacadeMethod<Index<Node>> GET = new FacadeMethod<Index<Node>>( "IndexHits<T> get( String " +
"key, Object value )" )
{
@Override
public void call( Index<Node> self )
{
self.get( "foo", "bar" );
}
... | false | community_lucene-index_src_test_java_org_neo4j_graphdb_NodeIndexFacadeMethods.java |
3,340 | {
@Override
public void call( Node node )
{
consume( node.getRelationships() );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,341 | {
@Override
public void call( Node node )
{
node.delete();
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,342 | {
@Override
public void call( Node node )
{
consume( node.getPropertyKeys() );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,343 | {
@Override
public void call( Node node )
{
node.removeProperty( "foo" );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,344 | {
@Override
public void call( Node node )
{
node.setProperty( "foo", 42 );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,345 | {
@Override
public void call( Node node )
{
node.getProperty( "foo", 42 );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,346 | {
@Override
public void call( Node node )
{
consume( node.getLabels() );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,347 | {
@Override
public void call( Node node )
{
node.hasLabel( QUUX );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,348 | {
@Override
public void call( Node node )
{
node.removeLabel( QUUX );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,349 | {
@Override
public void call( Node node )
{
node.addLabel( QUUX );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,350 | {
@Override
public void call( Node node )
{
//noinspection deprecation
node.traverse( BREADTH_FIRST, DEPTH_ONE, ALL, FOO, BOTH, BAR, OUTGOING, BAZ, INCOMING );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,351 | {
@Override
public void call( Node node )
{
//noinspection deprecation
node.traverse( BREADTH_FIRST, DEPTH_ONE, ALL, FOO, BOTH, BAR, OUTGOING );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,352 | {
@Override
public void call( Node node )
{
//noinspection deprecation
node.traverse( BREADTH_FIRST, DEPTH_ONE, ALL, FOO, BOTH );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,353 | {
@Override
public void call( Node node )
{
node.getProperty( "foo" );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,354 | {
@Override
public void call( Node node )
{
node.createRelationshipTo( node, FOO );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,355 | {
@Override
public void call( Node node )
{
node.getSingleRelationship( FOO, BOTH );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,356 | {
@Override
public void call( Node node )
{
node.hasRelationship( FOO, BOTH );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,357 | {
@Override
public void call( Node node )
{
consume( node.getRelationships( FOO, BOTH ) );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,358 | {
@Override
public void call( Node node )
{
node.hasRelationship( BOTH );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,359 | {
@Override
public void call( Node node )
{
node.hasRelationship();
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,360 | {
@Override
public void call( Index<Node> self )
{
self.get( "foo", "bar" );
}
}; | false | community_lucene-index_src_test_java_org_neo4j_graphdb_NodeIndexFacadeMethods.java |
3,361 | {
@Override
public void call( Node node )
{
node.hasRelationship( BOTH, FOO );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,362 | {
@Override
public void call( Index<Node> self )
{
self.query( "foo", "bar" );
}
}; | false | community_lucene-index_src_test_java_org_neo4j_graphdb_NodeIndexFacadeMethods.java |
3,363 | {
@Override
public void call( Relationship relationship )
{
relationship.getProperty( "foo" );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_RelationshipFacadeMethods.java |
3,364 | {
@Override
public void call( Relationship relationship )
{
relationship.isType( withName( "foo" ) );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_RelationshipFacadeMethods.java |
3,365 | {
@Override
public void call( Relationship relationship )
{
relationship.getType();
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_RelationshipFacadeMethods.java |
3,366 | {
@SuppressWarnings("UnusedDeclaration")
@Override
public void call( Relationship relationship )
{
for ( Node node : relationship.getNodes() )
{
}
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_RelationshipFacadeMethods.java |
3,367 | {
@Override
public void call( Relationship relationship )
{
relationship.getOtherNode( null );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_RelationshipFacadeMethods.java |
3,368 | {
@Override
public void call( Relationship relationship )
{
relationship.hasProperty( "foo" );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_RelationshipFacadeMethods.java |
3,369 | @SuppressWarnings("UnusedDeclaration")
public class RelationshipFacadeMethods
{
private static final FacadeMethod<Relationship> HAS_PROPERTY =
new FacadeMethod<Relationship>( "boolean hasProperty( String key )" )
{
@Override
public void call( Relationship relationship )
{
... | false | community_kernel_src_test_java_org_neo4j_graphdb_RelationshipFacadeMethods.java |
3,370 | {
@Override
public Iterable<Relationship> expand( Path path, BranchState<STATE> state )
{
if ( path.length() == 0 )
{
return path.endNode().getRelationships( types );
}
else
{
... | false | community_kernel_src_main_java_org_neo4j_graphdb_PathExpanders.java |
3,371 | public abstract class PathExpanders
{
/**
* A very permissive {@link PathExpander} that follows any type in any direction.
*/
@SuppressWarnings("unchecked")
public static <STATE> PathExpander<STATE> allTypesAndDirections()
{
return StandardExpander.DEFAULT;
}
/**
* A very... | false | community_kernel_src_main_java_org_neo4j_graphdb_PathExpanders.java |
3,372 | public class PathExpanderBuilder
{
/**
* A {@link PathExpanderBuilder} that follows no relationships. You start with this and use
* {@link #add(RelationshipType, Direction)} to form a restrictive PathExpander with just a few expansion rules
* in it.
*/
public static PathExpanderBuilder empty... | false | community_kernel_src_main_java_org_neo4j_graphdb_PathExpanderBuilder.java |
3,373 | public class NotInTransactionException extends RuntimeException
{
public NotInTransactionException()
{
super();
}
public NotInTransactionException( String message )
{
super( message );
}
public NotInTransactionException( Throwable cause )
{
super( cause );
}... | false | community_kernel_src_main_java_org_neo4j_graphdb_NotInTransactionException.java |
3,374 | public class NotFoundException extends RuntimeException
{
public NotFoundException()
{
super();
}
public NotFoundException( String message )
{
super( message );
}
public NotFoundException( String message, Throwable cause )
{
super( message, cause );
}
p... | false | community_kernel_src_main_java_org_neo4j_graphdb_NotFoundException.java |
3,375 | {
@Override
public void call( Index<Node> self )
{
self.putIfAbsent( null, "foo", 42 );
}
}; | false | community_lucene-index_src_test_java_org_neo4j_graphdb_NodeIndexFacadeMethods.java |
3,376 | {
@Override
public void call( Index<Node> self )
{
self.delete();
}
}; | false | community_lucene-index_src_test_java_org_neo4j_graphdb_NodeIndexFacadeMethods.java |
3,377 | {
@Override
public void call( Index<Node> self )
{
self.remove( null );
}
}; | false | community_lucene-index_src_test_java_org_neo4j_graphdb_NodeIndexFacadeMethods.java |
3,378 | {
@Override
public void call( Index<Node> self )
{
self.remove( null, "foo" );
}
}; | false | community_lucene-index_src_test_java_org_neo4j_graphdb_NodeIndexFacadeMethods.java |
3,379 | {
@Override
public void call( Index<Node> self )
{
self.remove( null, "foo", 42 );
}
}; | false | community_lucene-index_src_test_java_org_neo4j_graphdb_NodeIndexFacadeMethods.java |
3,380 | {
@Override
public void call( Index<Node> self )
{
self.add( null, "foo", 42 );
}
}; | false | community_lucene-index_src_test_java_org_neo4j_graphdb_NodeIndexFacadeMethods.java |
3,381 | {
@Override
public void call( Index<Node> self )
{
self.query( "foo" );
}
}; | false | community_lucene-index_src_test_java_org_neo4j_graphdb_NodeIndexFacadeMethods.java |
3,382 | {
@Override
public void call( Node node )
{
consume( node.getRelationships( BOTH ) );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,383 | {
@Override
public void call( Node node )
{
node.hasRelationship( FOO );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_NodeFacadeMethods.java |
3,384 | {
@Override
public void run( FileSystemAbstraction fs, File storeDirectory )
{
try
{
File directory = labelScanStoreIndexDirectory( storeDirectory );
assertTrue( "We seem to want to delete the wrong direc... | false | community_lucene-index_src_test_java_org_neo4j_graphdb_LuceneLabelScanStoreChaosIT.java |
3,385 | {
@Override
protected boolean matchesSafely( Neo4jMatchers.Deferred<?> nodes, Description description )
{
int foundSize = nodes.collection().size();
if ( foundSize != expectedSize )
{
description.appendText(... | false | community_kernel_src_test_java_org_neo4j_graphdb_Neo4jMatchers.java |
3,386 | {
@Override
protected Iterable<ConstraintDefinition> manifest()
{
return db.schema().getConstraints( );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_Neo4jMatchers.java |
3,387 | {
@Override
protected Iterable<ConstraintDefinition> manifest()
{
return db.schema().getConstraints( label );
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_Neo4jMatchers.java |
3,388 | {
@Override
protected Iterable<String> manifest()
{
return propertyContainer.getPropertyKeys();
}
}; | false | community_kernel_src_test_java_org_neo4j_graphdb_Neo4jMatchers.java |
3,389 | {
@Override
protected boolean matches( Object item, Description mismatchDescription )
{
try ( Transaction ignored = db.beginTx() )
{
if ( inner.matches( item ) )
{
return true;
... | false | community_kernel_src_test_java_org_neo4j_graphdb_Neo4jMatchers.java |
3,390 | public class Neo4jMatchers
{
public static <T> Matcher<? super T> inTx( final GraphDatabaseService db, final Matcher<T> inner )
{
return new DiagnosingMatcher<T>()
{
@Override
protected boolean matches( Object item, Description mismatchDescription )
{
... | false | community_kernel_src_test_java_org_neo4j_graphdb_Neo4jMatchers.java |
3,391 | public class MandatoryTransactionsForUniquenessConstraintDefinitionTests
extends AbstractMandatoryTransactionsTest<ConstraintDefinition>
{
@Test
public void shouldRequireTransactionsWhenCallingMethodsOnUniquenessConstraintDefinitions() throws Exception
{
assertFacadeMethodsThrowNotInTransaction(... | false | community_kernel_src_test_java_org_neo4j_graphdb_MandatoryTransactionsForUniquenessConstraintDefinitionTests.java |
3,392 | public class MandatoryTransactionsForSchemaTests extends AbstractMandatoryTransactionsTest<Schema>
{
@Test
public void shouldRequireTransactionsWhenCallingMethodsOnSchema() throws Exception
{
assertFacadeMethodsThrowNotInTransaction( obtainEntity(), ALL_SCHEMA_FACADE_METHODS );
}
@Override
... | false | community_kernel_src_test_java_org_neo4j_graphdb_MandatoryTransactionsForSchemaTests.java |
3,393 | public class MandatoryTransactionsForRelationshipTests extends AbstractMandatoryTransactionsTest<Relationship>
{
@Test
public void shouldRequireTransactionsWhenCallingMethodsOnRelationshipFacade() throws Exception
{
assertFacadeMethodsThrowNotInTransaction( obtainEntity(), ALL_RELATIONSHIP_FACADE_ME... | false | community_kernel_src_test_java_org_neo4j_graphdb_MandatoryTransactionsForRelationshipTests.java |
3,394 | public class MandatoryTransactionsForRelationshipIndexFacadeTests extends AbstractMandatoryTransactionsTest<RelationshipIndex>
{
@Test
public void shouldRequireTransactionsWhenCallingMethodsOnRelationshipIndexFacade() throws Exception
{
assertFacadeMethodsThrowNotInTransaction( obtainEntity(), ALL_R... | false | community_lucene-index_src_test_java_org_neo4j_graphdb_MandatoryTransactionsForRelationshipIndexFacadeTests.java |
3,395 | public class MandatoryTransactionsForNodeTests extends AbstractMandatoryTransactionsTest<Node>
{
@Test
public void shouldRequireTransactionsWhenCallingMethodsOnNode() throws Exception
{
assertFacadeMethodsThrowNotInTransaction( obtainEntity(), ALL_NODE_FACADE_METHODS );
}
@Override
prot... | false | community_kernel_src_test_java_org_neo4j_graphdb_MandatoryTransactionsForNodeTests.java |
3,396 | public class MandatoryTransactionsForNodeIndexFacadeTests extends AbstractMandatoryTransactionsTest<Index<Node>>
{
@Test
public void shouldRequireTransactionsWhenCallingMethodsOnNodeIndexFacade() throws Exception
{
assertFacadeMethodsThrowNotInTransaction( obtainEntity(), ALL_NODE_INDEX_FACADE_METHO... | false | community_lucene-index_src_test_java_org_neo4j_graphdb_MandatoryTransactionsForNodeIndexFacadeTests.java |
3,397 | public class MandatoryTransactionsForIndexManagerFacadeTests extends AbstractMandatoryTransactionsTest<IndexManager>
{
@Test
public void shouldRequireTransactionsWhenCallingMethodsOnIndexManagerFacade() throws Exception
{
assertFacadeMethodsThrowNotInTransaction( obtainEntity(), ALL_INDEX_MANAGER_FA... | false | community_kernel_src_test_java_org_neo4j_graphdb_MandatoryTransactionsForIndexManagerFacadeTests.java |
3,398 | public class MandatoryTransactionsForIndexHitsFacadeTests
{
@Rule
public ImpermanentDatabaseRule dbRule = new ImpermanentDatabaseRule();
private IndexHits<Node> indexHits;
@Before
public void before() throws Exception
{
Index<Node> index = createIndex();
indexHits = queryIndex(... | false | community_lucene-index_src_test_java_org_neo4j_graphdb_MandatoryTransactionsForIndexHitsFacadeTests.java |
3,399 | public class MandatoryTransactionsForIndexDefinitionTests
extends AbstractMandatoryTransactionsTest<IndexDefinition>
{
@Test
public void shouldRequireTransactionsWhenCallingMethodsOnIndexDefinitions() throws Exception
{
assertFacadeMethodsThrowNotInTransaction( obtainEntity(), ALL_INDEX_DEFINITI... | false | community_kernel_src_test_java_org_neo4j_graphdb_MandatoryTransactionsForIndexDefinitionTests.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.