Unnamed: 0
int64
0
6.7k
func
stringlengths
12
89.6k
target
bool
2 classes
project
stringlengths
45
151
3,600
{ @Override public Iterator<Relationship> iterator() { return new ReverseArrayIterator<Relationship>( path ); } };
false
community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_util_PathImpl.java
3,601
{ @Override public Iterator<Relationship> iterator() { return new ArrayIterator<Relationship>( path ); } };
false
community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_util_PathImpl.java
3,602
{ Node current = start; int index = 0; public boolean hasNext() { return index <= path.length; } public Node next() { ...
false
community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_util_PathImpl.java
3,603
{ public Iterator<Node> iterator() { return new Iterator<Node>() { Node current = start; int index = 0; public boolean hasNext() { return index <= path...
false
community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_util_PathImpl.java
3,604
public final class PathImpl implements Path { public static final class Builder { private final Builder previous; private final Node start; private final Relationship relationship; private final int size; public Builder( Node start ) { if ( start == n...
false
community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_util_PathImpl.java
3,605
public static class DoubleVector { Map<Integer,Double> values = new HashMap<Integer,Double>(); /** * Increment a value in the vector. * @param index * @param increment */ public void incrementValue( Integer index, double increment ) { ...
false
community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_util_MatrixUtil.java
3,606
public static class DoubleMatrix { Map<Integer,DoubleVector> rows = new HashMap<Integer,DoubleVector>(); /** * Increment a value at a certain position. * @param rowIndex * @param columnIndex * @param increment */ public void incrementValue( I...
false
community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_util_MatrixUtil.java
3,607
public class MatrixUtil { /** * Vector of doubles */ public static class DoubleVector { Map<Integer,Double> values = new HashMap<Integer,Double>(); /** * Increment a value in the vector. * @param index * @param increment */ public void i...
false
community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_util_MatrixUtil.java
3,608
public class LiteDepthFirstSelector implements BranchSelector { private final Queue<TraversalBranch> superNodes = new LinkedList<TraversalBranch>(); private TraversalBranch current; private final int threshold; private final PathExpander expander; public LiteDepthFirstSelector( TraversalBranch ...
false
community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_util_LiteDepthFirstSelector.java
3,609
public class IntegerEvaluator implements CostEvaluator<Integer> { private String costpropertyName; public IntegerEvaluator( String costpropertyName ) { super(); this.costpropertyName = costpropertyName; } public Integer getCost( Relationship relationship, Direction direction ) ...
false
community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_util_IntegerEvaluator.java
3,610
public class IntegerComparator implements Comparator<Integer> { public int compare(Integer o1, Integer o2) { return o1 - o2; } }
false
community_graph-algo_src_main_java_org_neo4j_graphalgo_impl_util_IntegerComparator.java
3,611
public class DijkstraDirectionTest extends Neo4jAlgoTestCase { @Test public void testDijkstraDirection1() { graph.makeEdge( "s", "e" ); Dijkstra<Double> dijkstra = new Dijkstra<Double>( (double) 0, graph.getNode( "s" ), graph.getNode( "e" ), ne...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraDirectionTest.java
3,612
{ public Double getCost( Relationship relationship, Direction direction ) { assertEquals( Direction.OUTGOING, direction ); return 1.0; } }, new org.neo4j.graphalgo.impl.util.Double...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraDirectionTest.java
3,613
{ public Double getCost( Relationship relationship, Direction direction ) { assertEquals( Direction.INCOMING, direction ); return 1.0; } }, new org.neo4j.graphalgo.impl.util.Double...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraDirectionTest.java
3,614
{ @Override public void call( IndexManager indexManager ) { indexManager.existsForNodes( "foo" ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexManagerFacadeMethods.java
3,615
{ @Override public void call( IndexDefinition self ) { self.isConstraintIndex(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexDefinitionFacadeMethods.java
3,616
{ @Override public void call( IndexDefinition self ) { self.drop(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexDefinitionFacadeMethods.java
3,617
{ @Override public void call( IndexDefinition self ) { self.getPropertyKeys(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexDefinitionFacadeMethods.java
3,618
{ @Override public void call( IndexDefinition self ) { self.getLabel(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexDefinitionFacadeMethods.java
3,619
public class IndexDefinitionFacadeMethods { private static final FacadeMethod<IndexDefinition> GET_LABEL = new FacadeMethod<IndexDefinition>( "Label getLabel()" ) { @Override public void call( IndexDefinition self ) { self.getLabel(); }...
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexDefinitionFacadeMethods.java
3,620
{ @Override public void call( IndexCreator self ) { self.on( "property" ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexCreatorFacadeMethods.java
3,621
{ @Override public void call( IndexCreator self ) { self.on( "property" ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexCreatorFacadeMethods.java
3,622
public class IndexCreatorFacadeMethods { private static final FacadeMethod<IndexCreator> ON = new FacadeMethod<IndexCreator>( "IndexCreator on( String propertyKey )" ) { @Override public void call( IndexCreator self ) { self.on( "property" ); ...
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexCreatorFacadeMethods.java
3,623
{ @Override public void run() { try { db.beginTx(); result.set( Boolean.TRUE ); ...
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceTest.java
3,624
{ @Override public void run() { try(Transaction tx = db.beginTx()) { shutdown.countDown(); try { Thread.sleep( 2000 ); } ...
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceTest.java
3,625
{ @Override public void run() { try(Transaction tx = db.beginTx()) { started.countDown(); try { Thread.sleep( 2000 ); } ...
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceTest.java
3,626
@Ignore("JH: Working on this, part of the 1.9 merge for tuesday 12th") public class GraphDatabaseServiceTest { @Test public void givenShutdownDatabaseWhenBeginTxThenExceptionIsThrown() throws Exception { // Given GraphDatabaseService db = new TestGraphDatabaseFactory().newImpermanentDatabase...
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceTest.java
3,627
{ @Override public void call( GraphDatabaseService graphDatabaseService ) { graphDatabaseService.schema(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceFacadeMethods.java
3,628
{ @Override public void call( GraphDatabaseService graphDatabaseService ) { graphDatabaseService.getRelationshipTypes(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceFacadeMethods.java
3,629
{ @Override public void call( GraphDatabaseService graphDatabaseService ) { for ( Node node : graphDatabaseService.findNodesByLabelAndProperty( label( "bar" ), "baz", 23 ) ) { } } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceFacadeMethods.java
3,630
{ @Override public void call( GraphDatabaseService graphDatabaseService ) { for ( Node node : graphDatabaseService.getAllNodes() ) { } } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceFacadeMethods.java
3,631
{ @Override public void call( GraphDatabaseService graphDatabaseService ) { graphDatabaseService.getRelationshipById( 87 ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceFacadeMethods.java
3,632
{ @Override public void call( GraphDatabaseService graphDatabaseService ) { graphDatabaseService.getNodeById( 42 ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceFacadeMethods.java
3,633
{ @Override public void call( GraphDatabaseService graphDatabaseService ) { graphDatabaseService.createNode( label( "FOO" ) ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceFacadeMethods.java
3,634
public class IndexManagerFacadeMethods { private static final FacadeMethod<IndexManager> EXISTS_FOR_NODES = new FacadeMethod<IndexManager>( "boolean " + "existsForNodes( String indexName )" ) { @Override public void call( IndexManager indexManager ) { indexManager...
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexManagerFacadeMethods.java
3,635
{ @Override public void call( IndexManager indexManager ) { indexManager.forNodes( "foo" ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexManagerFacadeMethods.java
3,636
{ public Double getCost( Relationship relationship, Direction direction ) { assertEquals( Direction.OUTGOING, direction ); return 1.0; } }, new org.neo4j.graphalgo.impl.util.Double...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraDirectionTest.java
3,637
{ @Override public void call( IndexManager indexManager ) { indexManager.forNodes( "foo", null ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexManagerFacadeMethods.java
3,638
{ @Override public long nextId() { // Same exception as the one thrown by IdGeneratorImpl throw new ...
false
community_kernel_src_test_java_org_neo4j_graphdb_LabelsAcceptanceTest.java
3,639
{ @Override public IdGenerator open( FileSystemAbstraction fs, File fileName, int grabSize, IdType idType, long highId ) { switch ( idType ) { ...
false
community_kernel_src_test_java_org_neo4j_graphdb_LabelsAcceptanceTest.java
3,640
{ @Override protected IdGeneratorFactory createIdGeneratorFactory() { return new EphemeralIdGenerator.Factory() { @Override public IdGenerator open( FileSystemAbstraction fs, File fileName, int grabSize, ...
false
community_kernel_src_test_java_org_neo4j_graphdb_LabelsAcceptanceTest.java
3,641
{ @Override public String apply( Label label ) { return label.name(); } }, labels ), hasItems( Labels.MY_LABEL.name(), Labels.MY_OTHER_LABEL.name() ) );
false
community_kernel_src_test_java_org_neo4j_graphdb_LabelsAcceptanceTest.java
3,642
{ @Override public List<Label> apply( GraphDatabaseService db ) { List<Label> labels = new ArrayList<>(); for ( Label label : node.getLabels() ) { labels.add( label ); } return...
false
community_kernel_src_test_java_org_neo4j_graphdb_LabelsAcceptanceTest.java
3,643
{ @Override public Void apply( GraphDatabaseService db ) { for ( Label label : node.getLabels() ) { node.removeLabel( label ); } node.addLabel( label( "BAZQUX" ) ); return null...
false
community_kernel_src_test_java_org_neo4j_graphdb_LabelsAcceptanceTest.java
3,644
{ @Override public Void apply( GraphDatabaseService db ) { node.addLabel( label( "BAZQUX" ) ); return null; } } );
false
community_kernel_src_test_java_org_neo4j_graphdb_LabelsAcceptanceTest.java
3,645
{ @Override public Void apply( GraphDatabaseService db ) { node.addLabel( label( "FOOBAR" ) ); return null; } } );
false
community_kernel_src_test_java_org_neo4j_graphdb_LabelsAcceptanceTest.java
3,646
{ @Override public Node apply( GraphDatabaseService db ) { return db.createNode(); } } );
false
community_kernel_src_test_java_org_neo4j_graphdb_LabelsAcceptanceTest.java
3,647
public class LabelsAcceptanceTest { public @Rule ImpermanentDatabaseRule dbRule = new ImpermanentDatabaseRule(); private enum Labels implements Label { MY_LABEL, MY_OTHER_LABEL } /** https://github.com/neo4j/neo4j/issues/1279 */ @Test public void shouldInsertLabelsWithoutDu...
false
community_kernel_src_test_java_org_neo4j_graphdb_LabelsAcceptanceTest.java
3,648
public class LabelScanStoreIT { @Test public void shouldGetNodesWithCreatedLabel() throws Exception { // GIVEN Node node1 = createLabeledNode( Labels.First ); Node node2 = createLabeledNode( Labels.Second ); Node node3 = createLabeledNode( Labels.Third ); Node node4 =...
false
community_kernel_src_test_java_org_neo4j_graphdb_LabelScanStoreIT.java
3,649
public class InvalidTransactionTypeException extends RuntimeException { public InvalidTransactionTypeException(String message, Throwable cause) { super(message, cause); } }
false
community_kernel_src_main_java_org_neo4j_graphdb_InvalidTransactionTypeException.java
3,650
{ @Override protected Iterable<Label> manifest() { return myNode.getLabels(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexingAcceptanceTest.java
3,651
public class IndexingAcceptanceTest { /* This test is a bit interesting. It tests a case where we've got a property that sits in one * property block and the value is of a long type. So given that plus that there's an index for that * label/property, do an update that changes the long value into a value t...
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexingAcceptanceTest.java
3,652
{ @Override public void call( IndexManager indexManager ) { for ( String indexName : indexManager.relationshipIndexNames() ) { } } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexManagerFacadeMethods.java
3,653
{ @Override public void call( IndexManager indexManager ) { indexManager.forRelationships( "foo", null ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexManagerFacadeMethods.java
3,654
{ @Override public void call( IndexManager indexManager ) { indexManager.forRelationships( "foo" ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexManagerFacadeMethods.java
3,655
{ @Override public void call( IndexManager indexManager ) { indexManager.existsForRelationships( "foo" ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexManagerFacadeMethods.java
3,656
{ @Override public void call( IndexManager indexManager ) { for ( String indexName : indexManager.nodeIndexNames() ) { } } };
false
community_kernel_src_test_java_org_neo4j_graphdb_IndexManagerFacadeMethods.java
3,657
{ @Override public void call( GraphDatabaseService graphDatabaseService ) { graphDatabaseService.createNode(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceFacadeMethods.java
3,658
public class GraphDatabaseServiceFacadeMethods { static final FacadeMethod<GraphDatabaseService> CREATE_NODE = new FacadeMethod<GraphDatabaseService>( "Node createNode()" ) { @Override public void call( GraphDatabaseService graphDatabaseService ) { graphDatabaseServic...
false
community_kernel_src_test_java_org_neo4j_graphdb_GraphDatabaseServiceFacadeMethods.java
3,659
{ @Override public void call( GlobalGraphOperations self ) { self.getAllNodesWithLabel( DynamicLabel.label( "Label" ) ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GlobalGraphOperationsFacadeMethods.java
3,660
{ @Override public void call( GlobalGraphOperations self ) { self.getAllLabels(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GlobalGraphOperationsFacadeMethods.java
3,661
public abstract class SingleSourceShortestPathTest extends Neo4jAlgoTestCase { protected abstract SingleSourceShortestPath<Integer> getSingleSourceAlgorithm( Node startNode ); protected abstract SingleSourceShortestPath<Integer> getSingleSourceAlgorithm( Node startNode, Direction direction, Rel...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_SingleSourceShortestPathTest.java
3,662
{ public Integer getCost( Relationship relationship, Direction direction ) { return 1; } }, new org.neo4j.graphalgo.impl.util.IntegerAdder(),
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_SingleSourceShortestPathDijkstraTest.java
3,663
{ public Integer getCost( Relationship relationship, Direction direction ) { return 1; } }, new org.neo4j.graphalgo.impl.util.IntegerAdder(),
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_SingleSourceShortestPathDijkstraTest.java
3,664
public class SingleSourceShortestPathDijkstraTest extends SingleSourceShortestPathTest { protected SingleSourceShortestPath<Integer> getSingleSourceAlgorithm( Node startNode ) { return new SingleSourceShortestPathDijkstra<Integer>( 0, startNode, new CostEvaluator<Integer>() ...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_SingleSourceShortestPathDijkstraTest.java
3,665
public class SingleSourceShortestPathBFSTest extends SingleSourceShortestPathTest { protected SingleSourceShortestPath<Integer> getSingleSourceAlgorithm( Node startNode ) { SingleSourceShortestPathBFS sourceBFS = new SingleSourceShortestPathBFS( startNode, Direction.BOTH, MyRelTy...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_SingleSourceShortestPathBFSTest.java
3,666
{ public Double getCost( Relationship relationship, Direction direction ) { assertEquals( Direction.INCOMING, direction ); return 1.0; } }, new org.neo4j.graphalgo.impl.util.DoubleAdder(),
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_FloydWarshallTest.java
3,667
{ public Double getCost( Relationship relationship, Direction direction ) { assertEquals( Direction.OUTGOING, direction ); return 1.0; } }, new org.neo4j.graphalgo.impl.util.DoubleAdder(),
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_FloydWarshallTest.java
3,668
public class FloydWarshallTest extends Neo4jAlgoTestCase { /** * Test case for paths of length 0 and 1, and an impossible path */ @Test public void testMinimal() { graph.makeEdge( "a", "b", "cost", (double) 1 ); graph.makeEdge( "a", "c", "cost", (double) 1 ); graph.make...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_FloydWarshallTest.java
3,669
public class DijkstraTest extends Neo4jAlgoTestCase { protected Dijkstra<Double> getDijkstra( SimpleGraphBuilder graph, Double startCost, String startNode, String endNode ) { return new Dijkstra<Double>( startCost, graph.getNode( startNode ), graph.getNode( endNode ), Com...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraTest.java
3,670
{ public Double getCost( Relationship relationship, Direction direction ) { return 1.0; } }, new DoubleAdder(), new DoubleComparator(), Direction.BOTH,
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraMultipleRelationshipTypesTest.java
3,671
public class DijkstraMultipleRelationshipTypesTest extends Neo4jAlgoTestCase { protected Dijkstra<Double> getDijkstra( String startNode, String endNode, RelationshipType... relTypes ) { return new Dijkstra<Double>( 0.0, graph.getNode( startNode ), graph.getNode( endNode ), ne...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraMultipleRelationshipTypesTest.java
3,672
{ public Double getCost( Relationship relationship, Direction direction ) { return 1.0; } }, new DoubleAdder(), new DoubleComparator(), Direction.OUTGOING,
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraMultiplePathsTest.java
3,673
{ public Double getCost( Relationship relationship, Direction direction ) { return 1.0; } }, new DoubleAdder(), new DoubleComparator(), Direction.OUTGOING,
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraMultiplePathsTest.java
3,674
public class DijkstraMultiplePathsTest extends Neo4jAlgoTestCase { protected Dijkstra<Double> getDijkstra( SimpleGraphBuilder graph, Double startCost, String startNode, String endNode ) { return new Dijkstra<Double>( startCost, graph.getNode( startNode ), graph.getNode( endNode ), ...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraMultiplePathsTest.java
3,675
protected class TestIterator extends Dijkstra<Double>.DijstraIterator { public TestIterator( Node startNode, HashMap<Node,List<Relationship>> predecessors, HashMap<Node,Double> mySeen, HashMap<Node,Double> otherSeen, HashMap<Node,Double> myDist...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraIteratorTest.java
3,676
protected class TestDijkstra extends Dijkstra<Double> { public TestDijkstra() { super( 0.0, null, null, CommonEvaluators.doubleCostEvaluator( "cost" ), new DoubleAdder(), new DoubleComparator(), Direction.BOTH, MyRelTypes.R1 ); } prote...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraIteratorTest.java
3,677
public class DijkstraIteratorTest extends Neo4jAlgoTestCase { @Test public void testRun() { new TestDijkstra().runTest(); } protected class TestDijkstra extends Dijkstra<Double> { public TestDijkstra() { super( 0.0, null, null, CommonEvaluators.doubleCostEval...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraIteratorTest.java
3,678
class directionSavingCostEvaluator implements CostEvaluator<Double> { HashMap<Relationship, Direction> dirs; public directionSavingCostEvaluator( HashMap<Relationship, Direction> dirs ) { super(); this.dirs = dirs; } public Double...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraDirectionTest.java
3,679
{ public Double getCost( Relationship relationship, Direction direction ) { assertEquals( Direction.INCOMING, direction ); return 1.0; } }, new org.neo4j.graphalgo.impl.util.Double...
false
community_graph-algo_src_test_java_org_neo4j_graphalgo_shortestpath_DijkstraDirectionTest.java
3,680
public abstract class AbstractMandatoryTransactionsTest<T> { @Rule public EmbeddedDatabaseRule dbRule = new EmbeddedDatabaseRule(); public T obtainEntity() { GraphDatabaseService graphDatabaseService = dbRule.getGraphDatabaseService(); try ( Transaction tx = graphDatabaseService.beginT...
false
community_kernel_src_test_java_org_neo4j_graphdb_AbstractMandatoryTransactionsTest.java
3,681
public class ConstraintCreatorFacadeMethods { private static final FacadeMethod<ConstraintCreator> UNIQUE = new FacadeMethod<ConstraintCreator>( "ConstraintCreator unique()") { @Override public void call( ConstraintCreator self ) { self.assertPrope...
false
community_kernel_src_test_java_org_neo4j_graphdb_ConstraintCreatorFacadeMethods.java
3,682
{ @Override public void call( ConstraintCreator self ) { self.assertPropertyIsUnique( "property" ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_ConstraintCreatorFacadeMethods.java
3,683
{ @Override public <T> T select( Class<T> type, Iterable<T> candidates ) throws IllegalArgumentException { Iterator<T> iterator = candidates.iterator(); if ( !iterator.hasNext() ) throw new IllegalArgumentException( "Could n...
false
community_kernel_src_main_java_org_neo4j_graphdb_DependencyResolver.java
3,684
{ @Override public void call( GlobalGraphOperations self ) { self.getAllRelationshipTypes(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GlobalGraphOperationsFacadeMethods.java
3,685
{ @Override public void call( GlobalGraphOperations self ) { self.getAllRelationships(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GlobalGraphOperationsFacadeMethods.java
3,686
{ @Override public void call( GlobalGraphOperations self ) { self.getAllNodes(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_GlobalGraphOperationsFacadeMethods.java
3,687
public class GlobalGraphOperationsFacadeMethods { private static final FacadeMethod<GlobalGraphOperations> GET_ALL_NODES = new FacadeMethod<GlobalGraphOperations>( "Iterable<Node> getAllNodes()" ) { @Override public void call( GlobalGraphOperations self ) { ...
false
community_kernel_src_test_java_org_neo4j_graphdb_GlobalGraphOperationsFacadeMethods.java
3,688
public class FirstStartupIT { @Rule public TargetDirectory.TestDirectory testDir = TargetDirectory.testDirForTest( getClass() ); @Test public void shouldBeEmptyWhenFirstStarted() throws Exception { // When GraphDatabaseService db = new GraphDatabaseFactory().newEmbeddedDatabase( te...
false
community_kernel_src_test_java_org_neo4j_graphdb_FirstStartupIT.java
3,689
public abstract class FacadeMethod<T> { private final String methodSignature; public FacadeMethod( String methodSignature ) { this.methodSignature = methodSignature; } public abstract void call( T self ); @Override public String toString() { return methodSignature; ...
false
community_kernel_src_test_java_org_neo4j_graphdb_FacadeMethod.java
3,690
public final class DynamicRelationshipType implements RelationshipType { private final String name; private DynamicRelationshipType( final String name ) { if ( name == null ) { throw new IllegalArgumentException( "A relationship type cannot " ...
false
community_kernel_src_main_java_org_neo4j_graphdb_DynamicRelationshipType.java
3,691
public class DynamicLabel implements Label { /** * @param labelName the name of the label. * @return a {@link Label} instance for the given {@code labelName}. */ public static Label label( String labelName ) { return new DynamicLabel( labelName ); } private final String name;...
false
community_kernel_src_main_java_org_neo4j_graphdb_DynamicLabel.java
3,692
abstract class Adapter implements DependencyResolver { @SuppressWarnings( "rawtypes" ) private static final SelectionStrategy FIRST = new SelectionStrategy() { @Override public <T> T select( Class<T> type, Iterable<T> candidates ) throws IllegalArgumentException ...
false
community_kernel_src_main_java_org_neo4j_graphdb_DependencyResolver.java
3,693
{ @Override public void call( ConstraintCreator self ) { self.create(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_ConstraintCreatorFacadeMethods.java
3,694
public class DatabaseShutdownException extends RuntimeException { public DatabaseShutdownException( ) { super( "This database is shutdown." ); } }
false
community_kernel_src_main_java_org_neo4j_graphdb_DatabaseShutdownException.java
3,695
public class CreateAndDeleteNodesIT { public @Rule ImpermanentDatabaseRule dbRule = new ImpermanentDatabaseRule(); enum RelTypes implements RelationshipType { ASD } @Test public void addingALabelUsingAValidIdentifierShouldSucceed() throws Exception { // Given GraphData...
false
community_kernel_src_test_java_org_neo4j_graphdb_CreateAndDeleteNodesIT.java
3,696
public class ConstraintViolationException extends RuntimeException { public ConstraintViolationException( String msg ) { super(msg); } public ConstraintViolationException( String msg, Throwable cause ) { super(msg, cause); } }
false
community_kernel_src_main_java_org_neo4j_graphdb_ConstraintViolationException.java
3,697
{ @Override public void call( ConstraintDefinition self ) { self.getPropertyKeys(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_ConstraintDefinitionFacadeMethods.java
3,698
{ @Override public void call( ConstraintDefinition self ) { self.isConstraintType( ConstraintType.UNIQUENESS ); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_ConstraintDefinitionFacadeMethods.java
3,699
{ @Override public void call( ConstraintDefinition self ) { self.drop(); } };
false
community_kernel_src_test_java_org_neo4j_graphdb_ConstraintDefinitionFacadeMethods.java