Unnamed: 0
int64
0
6.7k
func
stringlengths
12
89.6k
target
bool
2 classes
project
stringlengths
45
151
2,300
{ @Override public void joinedCluster( InstanceId member, URI memberUri ) { port.set( memberUri.getPort() ); latch.countDown(); clients[0].removeClusterListener( this ); } };
false
enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_StandaloneClusterClientIT.java
2,301
{ @Override public void enteredCluster( ClusterConfiguration configuration ) { latch.countDown(); client.removeClusterListener( this ); } } );
false
enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_StandaloneClusterClientIT.java
2,302
{ @Override public void run() { life.shutdown(); } } );
false
enterprise_server-enterprise_src_main_java_org_neo4j_server_enterprise_StandaloneClusterClient.java
2,303
public class ServerTestUtils { public static void writePropertyToFile( String name, String value, File propertyFile ) { Properties properties = loadProperties( propertyFile ); properties.setProperty( name, value ); storeProperties( propertyFile, properties ); } private static vo...
false
enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_ServerTestUtils.java
2,304
{ @Override public boolean run() { return true; } };
false
community_server_src_test_java_org_neo4j_server_helpers_CommunityServerBuilder.java
2,305
public final class FunctionalTestHelper { private final NeoServer server; private final GraphDbHelper helper; public static final Client CLIENT = Client.create(); private RestRequest request; public FunctionalTestHelper( NeoServer server ) { if ( server.getDatabase() == null ) ...
false
community_server_src_test_java_org_neo4j_server_helpers_FunctionalTestHelper.java
2,306
{ @Override public double[] getClonedArray() { return property.clone(); } @Override public int length() { return property.length; } @Override @SuppressWarning...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,307
{ private String[] array; @Override public void describeTo( Description descr ) { descr.appendText( "The array " ) .appendText( Arrays.toString( array ) ) .appendText( " does not contain <" ) ...
false
community_server_src_test_java_org_neo4j_server_helpers_FunctionalTestHelper.java
2,308
{ @Override public float[] getClonedArray() { return property.clone(); } @Override public int length() { return property.length; } @Override @SuppressWarnings...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,309
{ @Override public long[] getClonedArray() { return property.clone(); } @Override public int length() { return property.length; } @Override @SuppressWarnings(...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,310
{ @Override public int[] getClonedArray() { return property.clone(); } @Override public int length() { return property.length; } @Override @SuppressWarnings( ...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,311
{ @Override public short[] getClonedArray() { return property.clone(); } @Override public int length() { return property.length; } @Override @SuppressWarnings...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,312
{ @Override public char[] getClonedArray() { return property.clone(); } @Override public int length() { return property.length; } @Override @SuppressWarnings(...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,313
{ @Override public String[] getClonedArray() { return property.clone(); } }, param );
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,314
{ @Override @SuppressWarnings( "boxing" ) public boolean[] getClonedArray() { boolean[] result = new boolean[property.length]; for ( int i = 0; i < result.length; i++ ) result[i] = property[i]; re...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,315
{ @Override @SuppressWarnings( "boxing" ) public double[] getClonedArray() { double[] result = new double[property.length]; for ( int i = 0; i < result.length; i++ ) result[i] = property[i]; retur...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,316
{ @Override @SuppressWarnings( "boxing" ) public float[] getClonedArray() { float[] result = new float[property.length]; for ( int i = 0; i < result.length; i++ ) result[i] = property[i]; return r...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,317
{ @Override @SuppressWarnings( "boxing" ) public long[] getClonedArray() { long[] result = new long[property.length]; for ( int i = 0; i < result.length; i++ ) result[i] = property[i]; return resu...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,318
{ @Override @SuppressWarnings( "boxing" ) public int[] getClonedArray() { int[] result = new int[property.length]; for ( int i = 0; i < result.length; i++ ) result[i] = property[i]; return result;...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,319
{ @Override @SuppressWarnings( "boxing" ) public short[] getClonedArray() { short[] result = new short[property.length]; for ( int i = 0; i < result.length; i++ ) result[i] = property[i]; return r...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,320
{ @Override @SuppressWarnings( "boxing" ) public char[] getClonedArray() { char[] result = new char[property.length]; for ( int i = 0; i < result.length; i++ ) result[i] = property[i]; return resu...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,321
{ @Override public byte[] getClonedArray() { return property.clone(); } @Override public int length() { return property.length; } @Override @SuppressWarnings(...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,322
public abstract class PropertyTypeDispatcher<K, T> { public static abstract class PropertyArray<A, T> implements Iterable<T> { private PropertyArray() { } public abstract int length(); public abstract A getClonedArray(); public abstract Class<?> getType(); ...
false
community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java
2,323
{ @Override public Logging create( Configurator configurator ) { // Enough until the opposite is proven. This is only used by ServerBuilder, // which in turn is only used by tests. return DevNullLoggingService.DEV_NULL; } };
false
community_server_src_test_java_org_neo4j_server_helpers_LoggingFactory.java
2,324
{ @Override public Logging create( Configurator configurator ) { return DefaultLogging.createDefaultLogging( configurator.getDatabaseTuningProperties() ); } };
false
community_server_src_test_java_org_neo4j_server_helpers_LoggingFactory.java
2,325
{ @Override public Logging create( Configurator configurator ) { return logging; } };
false
community_server_src_test_java_org_neo4j_server_helpers_LoggingFactory.java
2,326
public abstract class LoggingFactory { public abstract Logging create( Configurator configurator ); public static LoggingFactory given( final Logging logging ) { return new LoggingFactory() { @Override public Logging create( Configurator configurator ) { ...
false
community_server_src_test_java_org_neo4j_server_helpers_LoggingFactory.java
2,327
class ParameterExtractor extends DataExtractor { final String name; final Class<?> type; final boolean optional; final String description; final TypeCaster caster; ParameterExtractor( TypeCaster caster, Class<?> type, Parameter param, Description description ) { this.caster = caster...
false
community_server_src_main_java_org_neo4j_server_plugins_ParameterExtractor.java
2,328
{ @Override String convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertString( value ); } @Override String[] newArray( int size ) { retu...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,329
public class JSONPrettifier { private static final Gson GSON = new GsonBuilder().setPrettyPrinting() .create(); private static final JsonParser JSON_PARSER = new JsonParser(); private static final ObjectMapper MAPPER = new ObjectMapper(); private static final ObjectWriter WRITER = MAPPER.wri...
false
community_server_src_test_java_org_neo4j_server_rest_JSONPrettifier.java
2,330
{ @Override public boolean run() { return true; } @Override public String getFailureMessage() { return "blah blah"; } };
false
community_server_src_test_java_org_neo4j_server_preflight_TestPreflightTasks.java
2,331
public class TestPerformUpgradeIfNecessary { public static final String HOME_DIRECTORY = TargetDirectory.forTest( TestPerformUpgradeIfNecessary.class ).makeGraphDbDir().getAbsolutePath(); public static final String STORE_DIRECTORY = HOME_DIRECTORY + "/data/graph.db"; @Test public void shouldExitImmedia...
false
community_server_src_test_java_org_neo4j_server_preflight_TestPerformUpgradeIfNecessary.java
2,332
public class TestPerformRecoveryIfNecessary { public static final String HOME_DIRECTORY = "target/" + TestPerformRecoveryIfNecessary.class.getSimpleName(); public static final String STORE_DIRECTORY = HOME_DIRECTORY + "/data/graph.db"; private static final String LINEBREAK = System.getProperty("line.separato...
false
community_server_src_test_java_org_neo4j_server_preflight_TestPerformRecoveryIfNecessary.java
2,333
@SuppressWarnings( "serial" ) public class PreflightFailedException extends RuntimeException { public PreflightFailedException( PreflightTask task ) { super( String.format( "Startup failed due to preflight task [%s]: %s", task.getClass(), task.getFailureMessage() ) ); } }
false
community_server_src_main_java_org_neo4j_server_preflight_PreflightFailedException.java
2,334
public class PreFlightTasks { private final PreflightTask[] tasks; private final ConsoleLogger log; private PreflightTask failedTask = null; public PreFlightTasks( Logging logging, PreflightTask... tasks ) { this.tasks = tasks; this.log = logging.getConsoleLog( getClass() ); } ...
false
community_server_src_main_java_org_neo4j_server_preflight_PreFlightTasks.java
2,335
public class PerformUpgradeIfNecessary implements PreflightTask { private String failureMessage = "Unable to upgrade database"; private final Configuration config; private final PrintStream out; private final Map<String, String> dbConfig; private final ConsoleLogger log; public PerformUpgradeIf...
false
community_server_src_main_java_org_neo4j_server_preflight_PerformUpgradeIfNecessary.java
2,336
public class PerformRecoveryIfNecessary implements PreflightTask { private final String failureMessage = "Unable to recover database"; private final Configuration config; private final PrintStream out; private final Map<String, String> dbConfig; private final ConsoleLogger log; public PerformRe...
false
community_server_src_main_java_org_neo4j_server_preflight_PerformRecoveryIfNecessary.java
2,337
public class HTTPLoggingPreparednessRuleTest { @Test public void shouldPassWhenExplicitlyDisabled() { // given Configuration config = new MapBasedConfiguration(); config.setProperty( Configurator.HTTP_LOGGING, "false" ); EnsurePreparedForHttpLogging rule = new EnsurePreparedForH...
false
community_server_src_test_java_org_neo4j_server_preflight_HTTPLoggingPreparednessRuleTest.java
2,338
public class EnsurePreparedForHttpLogging implements PreflightTask { private String failureMessage = ""; private Configuration config; public EnsurePreparedForHttpLogging(Configuration config) { this.config = config; } @Override public boolean run() { boolean enabled = co...
false
community_server_src_main_java_org_neo4j_server_preflight_EnsurePreparedForHttpLogging.java
2,339
public class EnsureNeo4jPropertiesExist implements PreflightTask { private static final String EMPTY_STRING = ""; private boolean passed = false; private boolean ran = false; protected String failureMessage = EMPTY_STRING; private Configuration config; public EnsureNeo4jPropertiesExist(Configu...
false
community_server_src_main_java_org_neo4j_server_preflight_EnsureNeo4jPropertiesExist.java
2,340
class UriTypeCaster extends TypeCaster { @Override Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException { return parameters.getUri( name ); } @Override Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) t...
false
community_server_src_main_java_org_neo4j_server_plugins_UriTypeCaster.java
2,341
class URLTypeCaster extends TypeCaster { @Override Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException { try { return parameters.getUri( name ) .toURL(); } catch ( MalformedURLException e ) ...
false
community_server_src_main_java_org_neo4j_server_plugins_URLTypeCaster.java
2,342
abstract class TypeCaster { abstract Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException; Object convert( Object[] result ) throws BadInputException { throw new BadInputException( "Cannot convert to primitive array: " + result ); } ...
false
community_server_src_main_java_org_neo4j_server_plugins_TypeCaster.java
2,343
class StringTypeCaster extends TypeCaster { @Override Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException { return parameters.getString( name ); } @Override Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameters, String na...
false
community_server_src_main_java_org_neo4j_server_plugins_StringTypeCaster.java
2,344
class SourceExtractor extends DataExtractor { SourceExtractor( Source source, Description description ) { } @Override Object extract( GraphDatabaseAPI graphDb, Object source, ParameterList parameters ) { return source; } }
false
community_server_src_main_java_org_neo4j_server_plugins_SourceExtractor.java
2,345
class ShortTypeCaster extends TypeCaster { @Override Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException { return parameters.getShort( name ); } @Override Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameters, String name...
false
community_server_src_main_java_org_neo4j_server_plugins_ShortTypeCaster.java
2,346
public abstract class ServerPlugin { final String name; /** * Create a server extension with the specified name. * * @param name the name of this extension. */ public ServerPlugin( String name ) { this.name = verifyName( name ); } /** * Create a server extensio...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ServerPlugin.java
2,347
{ @Override protected Iterator<PluginPoint> createNestedIterator( Map<String, PluginPoint> item ) { return item.values().iterator(); } };
false
community_server-api_src_main_java_org_neo4j_server_plugins_ServerExtender.java
2,348
public final class ServerExtender { @SuppressWarnings( "unchecked" ) private final Map<Class<?>, Map<String, PluginPoint>> targetToPluginMap = new HashMap(); private PluginPointFactory pluginPointFactory; ServerExtender( PluginPointFactory pluginPointFactory ) { this.pluginPointFactory = pl...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ServerExtender.java
2,349
private static abstract class ValueResult extends ResultConverter { private final RepresentationType type; ValueResult( RepresentationType type ) { this.type = type; } @Override final RepresentationType type() { return type; ...
false
community_server_src_main_java_org_neo4j_server_plugins_ResultConverter.java
2,350
public class TestPreflightTasks { @Test public void shouldPassWithNoRules() { PreFlightTasks check = new PreFlightTasks( DEV_NULL ); assertTrue( check.run() ); } @Test public void shouldRunAllHealthChecksToCompletionIfNonFail() { PreFlightTasks check = new PreFlightT...
false
community_server_src_test_java_org_neo4j_server_preflight_TestPreflightTasks.java
2,351
{ @Override public boolean run() { return false; } @Override public String getFailureMessage() { return "blah blah"; } };
false
community_server_src_test_java_org_neo4j_server_preflight_TestPreflightTasks.java
2,352
private static class ListResult extends ResultConverter { private final ResultConverter itemConverter; ListResult( ResultConverter itemConverter ) { this.itemConverter = itemConverter; } @Override @SuppressWarnings( "unchecked" ) Representati...
false
community_server_src_main_java_org_neo4j_server_plugins_ResultConverter.java
2,353
{ @Override public boolean run() { return true; } @Override public String getFailureMessage() { return "blah blah"; } };
false
community_server_src_test_java_org_neo4j_server_preflight_TestPreflightTasks.java
2,354
public class IndexNodeDocIT extends AbstractRestFunctionalTestBase { private static FunctionalTestHelper functionalTestHelper; private static GraphDbHelper helper; @BeforeClass public static void setupServer() { functionalTestHelper = new FunctionalTestHelper( server() ); helper = f...
false
community_server_src_test_java_org_neo4j_server_rest_IndexNodeDocIT.java
2,355
public class HtmlDocIT extends AbstractRestFunctionalTestBase { private long thomasAnderson; private long trinity; private long thomasAndersonLovesTrinity; private static FunctionalTestHelper functionalTestHelper; private static GraphDbHelper helper; @BeforeClass public static void setupSe...
false
community_server_src_test_java_org_neo4j_server_rest_HtmlDocIT.java
2,356
public class GetRelationshipPropertiesDocIT extends AbstractRestFunctionalTestBase { private static String baseRelationshipUri; private static FunctionalTestHelper functionalTestHelper; private static GraphDbHelper helper; @BeforeClass public static void setupServer() throws IOException { ...
false
community_server_src_test_java_org_neo4j_server_rest_GetRelationshipPropertiesDocIT.java
2,357
public class GetOnRootDocIT extends AbstractRestFunctionalTestBase { /** * The service root is your starting point to discover the REST API. It * contains the basic starting points for the database, and some version and * extension information. */ @Documented @Test @Graph("I know you...
false
community_server_src_test_java_org_neo4j_server_rest_GetOnRootDocIT.java
2,358
public class GetNodePropertiesDocIT extends AbstractRestFunctionalTestBase { private static FunctionalTestHelper functionalTestHelper; private RestRequest req; @BeforeClass public static void setupServer() throws IOException { functionalTestHelper = new FunctionalTestHelper( server() ); ...
false
community_server_src_test_java_org_neo4j_server_rest_GetNodePropertiesDocIT.java
2,359
public class GetIndexRootDocIT extends AbstractRestFunctionalTestBase { private static FunctionalTestHelper functionalTestHelper; @BeforeClass public static void setupServer() throws IOException { functionalTestHelper = new FunctionalTestHelper( server() ); } @Before public void cl...
false
community_server_src_test_java_org_neo4j_server_rest_GetIndexRootDocIT.java
2,360
class DocumentationData { private String payload; private MediaType payloadType = MediaType.APPLICATION_JSON_TYPE; public String title; public String description; public String uri; public String method; public int status; public String entity; public Map<String, String> requestHeade...
false
community_server_src_test_java_org_neo4j_server_rest_DocumentationData.java
2,361
public class DiscoveryServiceDocIT extends AbstractRestFunctionalTestBase { @Before public void cleanTheDatabase() { cleanDatabase(); } @Test public void shouldRespondWith200WhenRetrievingDiscoveryDocument() throws Exception { JaxRsResponse response = getDiscoveryDocument();...
false
community_server_src_test_java_org_neo4j_server_rest_DiscoveryServiceDocIT.java
2,362
public class DisableWADLDocIT extends AbstractRestFunctionalTestBase { private static FunctionalTestHelper functionalTestHelper; private static GraphDbHelper helper; @BeforeClass public static void setupServer() throws IOException { functionalTestHelper = new FunctionalTestHelper( server() ...
false
community_server_src_test_java_org_neo4j_server_rest_DisableWADLDocIT.java
2,363
public class DatabaseMetadataServiceDocIT extends AbstractRestFunctionalTestBase { private static FunctionalTestHelper functionalTestHelper; private static GraphDbHelper helper; @BeforeClass public static void setupServer() throws IOException { functionalTestHelper = new FunctionalTestHelpe...
false
community_server_src_test_java_org_neo4j_server_rest_DatabaseMetadataServiceDocIT.java
2,364
public class CypherDocIT extends AbstractRestFunctionalTestBase { /** * A simple query returning all nodes connected to some node, returning the * node and the name property, if it exists, otherwise `NULL`: */ @Test @Documented @Title( "Send a query" ) @Graph( nodes = { @...
false
community_server_src_test_java_org_neo4j_server_rest_CypherDocIT.java
2,365
public class CreateRelationshipDocTest extends AbstractRestFunctionalTestBase { /** * Upon successful creation of a relationship, the new relationship is * returned. */ @Test @Graph( "Joe knows Sara" ) @Documented @Title( "Create a relationship with properties" ) public vo...
false
community_server_src_test_java_org_neo4j_server_rest_CreateRelationshipDocTest.java
2,366
public class ConsoleDocTest extends AbstractRestFunctionalTestBase { /** * Paths can be returned * together with other return types by just * specifying returns. */ @Test @Documented @Graph( "I know you" ) public void testShell() throws Exception { String command = "ls"; ...
false
community_server_src_test_java_org_neo4j_server_rest_ConsoleDocTest.java
2,367
public class ConfigureBaseUriDocIT extends AbstractRestFunctionalTestBase { private static FunctionalTestHelper functionalTestHelper; @BeforeClass public static void setupServer() throws IOException { functionalTestHelper = new FunctionalTestHelper( server() ); } @Before public voi...
false
community_server_src_test_java_org_neo4j_server_rest_ConfigureBaseUriDocIT.java
2,368
public class CompactJsonDocIT extends AbstractRestFunctionalTestBase { private long thomasAnderson; private long trinity; private long thomasAndersonLovesTrinity; private static FunctionalTestHelper functionalTestHelper; private static GraphDbHelper helper; @BeforeClass public static void ...
false
community_server_src_test_java_org_neo4j_server_rest_CompactJsonDocIT.java
2,369
public class BatchOperationDocIT extends AbstractRestFunctionalTestBase { /** * Execute multiple operations in batch. * * This lets you execute multiple API calls through a single HTTP call, * significantly improving performance for large insert and update * operations. * * The ba...
false
community_server_src_test_java_org_neo4j_server_rest_BatchOperationDocIT.java
2,370
public class AutoIndexWithNonDefaultConfigurationThroughRESTAPIDocIT extends ExclusiveServerTestBase { private static CommunityNeoServer server; private static FunctionalTestHelper functionalTestHelper; @ClassRule public static TemporaryFolder staticFolder = new TemporaryFolder(); public @Rule...
false
community_server_src_test_java_org_neo4j_server_rest_AutoIndexWithNonDefaultConfigurationThroughRESTAPIDocIT.java
2,371
public class AutoIndexDocIT extends AbstractRestFunctionalTestBase { /** * Find node by query from an automatic index. * * See Find node by query for the actual query syntax. */ @Documented @Test @Graph( nodes = { @NODE( name = "I", setNameProperty = true ) }, autoIndexNodes = true ...
false
community_server_src_test_java_org_neo4j_server_rest_AutoIndexDocIT.java
2,372
public class AbstractRestFunctionalTestBase extends SharedServerTestBase implements GraphHolder { protected static final String NODES = "http://localhost:7474/db/data/node/"; public @Rule TestData<Map<String, Node>> data = TestData.producedThrough( GraphDescription.createGraphFor( this, true ) ...
false
community_server_src_test_java_org_neo4j_server_rest_AbstractRestFunctionalTestBase.java
2,373
{ @Override protected Representation underlyingObjectToObject( Object object ) { return itemConverter.convert( object ); } } );
false
community_server_src_main_java_org_neo4j_server_plugins_ResultConverter.java
2,374
{ @Override Representation convert( Object obj ) { return ValueRepresentation.number( ( (Number) obj ).intValue() ); } }, CHAR_RESULT = new ValueResult( RepresentationType.CHAR )
false
community_server_src_main_java_org_neo4j_server_plugins_ResultConverter.java
2,375
{ @Override Node convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertNode( graphDb, value ); } @Override Node[] newArray( int size ) { r...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,376
public class PluginLookupException extends Exception { PluginLookupException( String message ) { super( message ); } }
false
community_server-api_src_main_java_org_neo4j_server_plugins_PluginLookupException.java
2,377
public final class PluginInvocationFailureException extends Exception { PluginInvocationFailureException( Throwable cause ) { super( cause ); } }
false
community_server-api_src_main_java_org_neo4j_server_plugins_PluginInvocationFailureException.java
2,378
matches() { @Override boolean match( String pattern, String string ) { return string.matches( pattern ); } },
false
community_server-plugin-test_src_test_java_org_neo4j_server_plugins_PluginFunctionalTestHelper.java
2,379
end( "ends with" ) { @Override boolean match( String pattern, String string ) { return string.endsWith( pattern ); } },
false
community_server-plugin-test_src_test_java_org_neo4j_server_plugins_PluginFunctionalTestHelper.java
2,380
public static class RegExp extends TypeSafeMatcher<String> { enum MatchType { end( "ends with" ) { @Override boolean match( String pattern, String string ) { return string.endsWith( pattern ); ...
false
community_server-plugin-test_src_test_java_org_neo4j_server_plugins_PluginFunctionalTestHelper.java
2,381
public class PluginFunctionalTestHelper { public static Map<String, Object> makeGet( String url ) throws JsonParseException { JaxRsResponse response = new RestRequest().get(url); String body = getResponseText(response); response.close(); return deserializeMap(body); } prot...
false
community_server-plugin-test_src_test_java_org_neo4j_server_plugins_PluginFunctionalTestHelper.java
2,382
@SuppressWarnings( "unchecked" ) public class PluginFunctionalTest extends SharedServerTestBase { private static FunctionalTestHelper functionalTestHelper; @BeforeClass public static void setupServer() throws IOException { functionalTestHelper = new FunctionalTestHelper( SharedServerTestBase.se...
false
community_server-plugin-test_src_test_java_org_neo4j_server_plugins_PluginFunctionalTest.java
2,383
{ @Override public boolean accept( Relationship item ) { return item.getOtherNode( start ) .equals( end ); } } );
false
community_server-plugin-test_src_test_java_org_neo4j_server_plugins_Plugin.java
2,384
@Description( "Here you can describe your plugin. It will show up in the description of the methods." ) public class Plugin extends ServerPlugin { public static final String GET_CONNECTED_NODES = "connected_nodes"; static String _string; static Byte _byte; static Character _character; static Integer...
false
community_server-plugin-test_src_test_java_org_neo4j_server_plugins_Plugin.java
2,385
private static abstract class Converter<T> { abstract T convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException; abstract T[] newArray( int size ); }
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,386
{ @Override Double convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertDouble( value ); } @Override Double[] newArray( int size ) { retu...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,387
{ @Override Float convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertFloat( value ); } @Override Float[] newArray( int size ) { return ...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,388
{ @Override Short convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertShort( value ); } @Override Short[] newArray( int size ) { return ...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,389
{ @Override Boolean convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertBoolean( value ); } @Override Boolean[] newArray( int size ) { r...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,390
{ @Override Character convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertCharacter( value ); } @Override Character[] newArray( int size ) { ...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,391
{ @Override Byte convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertByte( value ); } @Override Byte[] newArray( int size ) { return new...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,392
{ @Override Long convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertLong( value ); } @Override Long[] newArray( int size ) { return new...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,393
{ @Override Integer convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertInteger( value ); } @Override Integer[] newArray( int size ) { r...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,394
{ @Override URI convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertURI( value ); } @Override URI[] newArray( int size ) { return new UR...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,395
{ @Override Relationship convert( GraphDatabaseAPI graphDb, Object value ) throws BadInputException { return convertRelationship( graphDb, value ); } @Override Relationship[] newArray( int size ) ...
false
community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java
2,396
@Provider public class PluginInvocatorProvider extends InjectableProvider<PluginInvocator> { private final AbstractNeoServer neoServer; public PluginInvocatorProvider( AbstractNeoServer neoServer ) { super( PluginInvocator.class ); this.neoServer = neoServer; } @Override public...
false
community_server_src_main_java_org_neo4j_server_plugins_PluginInvocatorProvider.java
2,397
public final class PluginManager implements ExtensionInjector, PluginInvocator { private final Map<String/*name*/, ServerExtender> extensions = new HashMap<String, ServerExtender>(); public PluginManager( Configuration serverConfig, Logging logging ) { this( serverConfig, ServerPlugin.load(), loggi...
false
community_server_src_main_java_org_neo4j_server_plugins_PluginManager.java
2,398
{ @Override @SuppressWarnings( "boxing" ) Representation convert( Object obj ) { return ValueRepresentation.bool( (Boolean) obj ); } }, INT_RESULT = new ValueResult( RepresentationType.INTEGER )
false
community_server_src_main_java_org_neo4j_server_plugins_ResultConverter.java
2,399
public class PluginManagerTest { private static PluginManager manager; private static GraphDatabaseAPI graphDb; @BeforeClass public static void loadExtensionManager() throws Exception { graphDb = (GraphDatabaseAPI) new TestGraphDatabaseFactory().newImpermanentDatabase(); manager = n...
false
community_server-plugin-test_src_test_java_org_neo4j_server_plugins_PluginManagerTest.java