Unnamed: 0 int64 0 6.7k | func stringlengths 12 89.6k | target bool 2
classes | project stringlengths 45 151 |
|---|---|---|---|
2,200 | private class StartDatabaseAgainKit implements RepairKit
{
private final int serverId;
private final ManagedCluster cluster;
public StartDatabaseAgainKit( ManagedCluster cluster, int serverId )
{
this.cluster = cluster;
this.serverId = serverId;
}... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,201 | {
@Override
public void addClusterMemberListener( ClusterMemberListener listener )
{
// noop
}
@Override
public void removeClusterMemberListener( ClusterMember... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,202 | {
@Override
public void stop() throws Throwable
{
graphDatabase.get().shutdown();
}
} ); | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,203 | {
@Override
public HighlyAvailableGraphDatabase apply( HighlyAvailableGraphDatabaseProxy from )
{
return from.get();
}
}, members.values() ); | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,204 | {
@Override
public GraphDatabaseService call() throws Exception
{
return graphDatabaseBuilder.newGraphDatabase();
}
}; | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,205 | private static final class HighlyAvailableGraphDatabaseProxy
{
private GraphDatabaseService result;
private Future<GraphDatabaseService> untilThen;
private final ExecutorService executor;
public HighlyAvailableGraphDatabaseProxy( final GraphDatabaseBuilder graphDatabaseBuilder )... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,206 | {
@Override
public Void call() throws Exception
{
try
{
wrapped.shutdown();
}
catch ( Throwable throwable )
{
th... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,207 | {
@Override
public Void call() throws Exception
{
try
{
wrapped.stop();
}
catch ( Throwable throwable )
{
throw ... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,208 | {
@Override
public Void call() throws Exception
{
try
{
wrapped.start();
}
catch ( Throwable throwable )
{
throw... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,209 | {
@Override
public Void call() throws Exception
{
try
{
wrapped.init();
}
catch ( Throwable throwable )
{
throw ... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,210 | private static final class FutureLifecycleAdapter<T extends Lifecycle> extends LifecycleAdapter
{
private final T wrapped;
private Future<Void> currentFuture;
private final ExecutorService starter;
public FutureLifecycleAdapter( T toWrap)
{
wrapped = toWrap;
... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,211 | {
@Override
public void initializeStoreDir( int serverId, File storeDir ) throws IOException
{
copyRecursively( seedDir, storeDir );
}
} ); | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,212 | {
@Override
public boolean accept( ManagedCluster item )
{
for ( HighlyAvailableGraphDatabaseProxy member : item.members.values() )
{
try
{
member.get().beginTx().close();
... | false | enterprise_ha_src_test_java_org_neo4j_test_ha_ClusterManager.java |
2,213 | {
@Override
public void release() throws IOException
{
lock.release();
}
}; | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralFileSystemAbstraction.java |
2,214 | private static class DynamicByteBuffer
{
private static final int[] SIZES;
/**
* Holds a set of pools of unused BytBuffers, where pools are implemented by {@link Queue}s.
* Each pool contains only {@link ByteBuffer} of the same size. This way, we have pools for
* diff... | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralFileSystemAbstraction.java |
2,215 | private static class EphemeralFileChannel extends FileChannel implements Positionable
{
final FileStillOpenException openedAt;
private final EphemeralFileData data;
private long position = 0;
EphemeralFileChannel( EphemeralFileData data, FileStillOpenException opened )
{... | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralFileSystemAbstraction.java |
2,216 | private static class ChainedMultipleExceptionsStrategy extends MultipleExceptionsStrategy
{
@Override
Throwable aggregate( List<Throwable> failures )
{
Throwable result = null;
for ( Throwable throwable : failures )
{
Throwable last = t... | false | community_kernel_src_test_java_org_neo4j_test_impl_MultipleExceptionsStrategy.java |
2,217 | public class HTTP
{
private static final Builder BUILDER = new Builder().withHeaders( "Accept", "application/json" );
private static final Client CLIENT = new Client();
public static Builder withHeaders( Map<String, String> headers )
{
return BUILDER.withHeaders( headers );
}
public s... | false | community_server_src_test_java_org_neo4j_test_server_HTTP.java |
2,218 | {
@Override
public Void call() throws Exception
{
ServerHolder.ensureNotRunning();
return null;
}
} ); | false | community_server_src_test_java_org_neo4j_test_server_ExclusiveServerTestBase.java |
2,219 | public class ExclusiveServerTestBase
{
@Rule
public TemporaryFolder folder = new TemporaryFolder();
@Rule
public Mute mute = muteAll();
@BeforeClass
public static final void ensureServerNotRunning() throws Exception
{
muteAll().call( new Callable<Void>()
{
@Overr... | false | community_server_src_test_java_org_neo4j_test_server_ExclusiveServerTestBase.java |
2,220 | public class EntityOutputFormat extends OutputFormat
{
private Representation representation;
public EntityOutputFormat( RepresentationFormat format, URI baseUri, ExtensionInjector extensions )
{
super( format, baseUri, extensions );
}
@Override
protected Response response( Response.Re... | false | community_server_src_test_java_org_neo4j_test_server_EntityOutputFormat.java |
2,221 | public class Properties implements Answer<Object>, Iterable<String>
{
public static Properties properties( Property... properties )
{
return new Properties( properties );
}
public static Properties properties( Map<String, Object> properties )
{
return new Properties( properties );
... | false | community_kernel_src_test_java_org_neo4j_test_mocking_Properties.java |
2,222 | public class Link
{
public static Link link( Relationship relationship, Node node )
{
if ( relationship.getStartNode().getId() == node.getId() )
{
return new Link( node, relationship );
}
if ( relationship.getEndNode().getId() == node.getId() )
{
r... | false | community_kernel_src_test_java_org_neo4j_test_mocking_Link.java |
2,223 | {
@Override
public Iterator<T> answer( InvocationOnMock invocation ) throws Throwable
{
return iterable.iterator();
}
}; | false | community_kernel_src_test_java_org_neo4j_test_mocking_GraphMock.java |
2,224 | public class GraphMock
{
public static Label[] labels( String... names )
{
Label[] labels = new Label[names.length];
for ( int i = 0; i < labels.length; i++ )
{
labels[i] = DynamicLabel.label( names[i] );
}
return labels;
}
public static Node node( lo... | false | community_kernel_src_test_java_org_neo4j_test_mocking_GraphMock.java |
2,225 | public abstract class MultipleExceptionsStrategy
{
public static void assertEmpty( List<Throwable> failures ) throws Throwable
{
if ( failures.isEmpty() ) return;
if ( failures.size() == 1 ) throw failures.get( 0 );
throw strategy.aggregate( failures );
}
public static void asse... | false | community_kernel_src_test_java_org_neo4j_test_impl_MultipleExceptionsStrategy.java |
2,226 | private static class EphemeralFileData
{
private static final ThreadLocal<byte[]> SCRATCH_PAD = new ThreadLocal<byte[]>()
{
@Override
protected byte[] initialValue()
{
return new byte[1024];
}
};
private final Dynami... | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralFileSystemAbstraction.java |
2,227 | class JUnitMultipleExceptions extends MultipleExceptionsStrategy
{
{
// Make sure that we can access the JUnit MultipleFailureException type
try
{
MultipleFailureException.assertEmpty( Collections.<Throwable>emptyList() );
}
catch ( Throwable e )
{
... | false | community_kernel_src_test_java_org_neo4j_test_impl_JUnitMultipleExceptions.java |
2,228 | public static class Factory implements IdGeneratorFactory
{
private final Map<IdType, IdGenerator> generators = new EnumMap<IdType, IdGenerator>( IdType.class );
@Override
public IdGenerator open( FileSystemAbstraction fs, File fileName, int grabSize, IdType idType, long highId )
... | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralIdGenerator.java |
2,229 | public class EphemeralIdGenerator implements IdGenerator
{
public static class Factory implements IdGeneratorFactory
{
private final Map<IdType, IdGenerator> generators = new EnumMap<IdType, IdGenerator>( IdType.class );
@Override
public IdGenerator open( FileSystemAbstraction fs, File ... | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralIdGenerator.java |
2,230 | static class LocalPosition implements Positionable
{
private long position;
public LocalPosition( long position )
{
this.position = position;
}
@Override
public long pos()
{
return position;
}
@Override
pu... | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralFileSystemAbstraction.java |
2,231 | @SuppressWarnings( "serial" )
private static class FileStillOpenException extends Exception
{
private final String filename;
FileStillOpenException( String filename )
{
super( "File still open: [" + filename + "]" );
this.filename = filename;
}
} | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralFileSystemAbstraction.java |
2,232 | private static class EphemeralFileLock extends java.nio.channels.FileLock
{
private EphemeralFileData file;
EphemeralFileLock(EphemeralFileChannel channel, EphemeralFileData file)
{
super(channel, 0, Long.MAX_VALUE, false);
this.file = file;
file.lock... | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralFileSystemAbstraction.java |
2,233 | {
@Override
protected EphemeralFileChannel fetchNextOrNull()
{
while ( refs.hasNext() )
{
EphemeralFileChannel channel = refs.next().get();
if ( channel != null ) return ch... | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralFileSystemAbstraction.java |
2,234 | {
@Override
protected byte[] initialValue()
{
return new byte[1024];
}
}; | false | community_kernel_src_test_java_org_neo4j_test_impl_EphemeralFileSystemAbstraction.java |
2,235 | private static class BatchInternalJettyServletResponse extends InternalJettyServletResponse {
private final ServletOutputStream output;
public BatchInternalJettyServletResponse(ServletOutputStream output) {
this.output = output;
}
@Override
public ServletOutputS... | false | community_server_src_main_java_org_neo4j_server_rest_web_StreamingBatchOperations.java |
2,236 | public class StreamingBatchOperations extends BatchOperations
{
private static final Logger LOGGER = Log.getLogger(StreamingBatchOperations.class);
private StreamingBatchOperationResults results;
public StreamingBatchOperations( WebServer webServer )
{
super( webServer );
}
public voi... | false | community_server_src_main_java_org_neo4j_server_rest_web_StreamingBatchOperations.java |
2,237 | public class RestfulGraphDatabaseTest
{
private static final String NODE_AUTO_INDEX = "node_auto_index";
private static final String RELATIONSHIP_AUTO_INDEX = "relationship_auto_index";
private static final String BASE_URI = "http://neo4j.org/";
private static final String NODE_SUBPATH = "node/";
pr... | false | community_server_src_test_java_org_neo4j_server_rest_web_RestfulGraphDatabaseTest.java |
2,238 | public class SecurityRulesModuleTest
{
@Test
public void shouldStopCleanlyEvenWhenItHasntBeenStarted()
{
new SecurityRulesModule( null, null, DevNullLoggingService.DEV_NULL ).stop();
}
} | false | community_server_src_test_java_org_neo4j_server_modules_SecurityRulesModuleTest.java |
2,239 | public class RESTApiModuleTest
{
@Test
public void shouldRegisterASingleUri() throws Exception
{
WebServer webServer = mock( WebServer.class );
Configuration config = new PropertiesConfiguration();
String path = "/db/data";
config.addProperty( Configurator.REST_API_PATH_PROP... | false | community_server_src_test_java_org_neo4j_server_modules_RESTApiModuleTest.java |
2,240 | public class RESTApiModule implements ServerModule
{
private PluginManager plugins;
private final Configuration config;
private final WebServer webServer;
private final Database database;
private GuardingRequestFilter requestTimeLimitFilter;
private final ConsoleLogger log;
private final Log... | false | community_server_src_main_java_org_neo4j_server_modules_RESTApiModule.java |
2,241 | public class Neo4jBrowserModule implements ServerModule
{
private static final String DEFAULT_NEO4J_BROWSER_PATH = "/browser";
private static final String DEFAULT_NEO4J_BROWSER_STATIC_WEB_CONTENT_LOCATION = "browser";
private final Configuration config;
private final WebServer webServer;
private final... | false | community_server_src_main_java_org_neo4j_server_modules_Neo4jBrowserModule.java |
2,242 | public class ManagementApiModuleTest
{
@Test
public void shouldRegisterASingleUri() throws Exception
{
WebServer webServer = mock( WebServer.class );
CommunityNeoServer neoServer = mock( CommunityNeoServer.class );
when( neoServer.baseUri() ).thenReturn( new URI( "http://localhost:7... | false | community_server_src_test_java_org_neo4j_server_modules_ManagementApiModuleTest.java |
2,243 | public class ManagementApiModule implements ServerModule
{
private final Configuration config;
private final WebServer webServer;
private final ConsoleLogger log;
public ManagementApiModule(WebServer webServer, Configuration config, Logging logging)
{
this.webServer = webServer;
this.config = c... | false | community_server_src_main_java_org_neo4j_server_modules_ManagementApiModule.java |
2,244 | public class ExtensionInitializer
{
private final Iterable<PluginLifecycle> lifecycles;
private final NeoServer neoServer;
public ExtensionInitializer( NeoServer neoServer )
{
this.neoServer = neoServer;
lifecycles = Service.load( PluginLifecycle.class );
}
public Collection<In... | false | community_server_src_main_java_org_neo4j_server_modules_ExtensionInitializer.java |
2,245 | public class DiscoveryModuleTest
{
@Rule
public Mute mute = Mute.mute( Mute.System.err, Mute.System.out );
@SuppressWarnings( "unchecked" )
@Test
public void shouldRegisterAtRootByDefault() throws Exception
{
WebServer webServer = mock( WebServer.class );
CommunityNeoServer... | false | community_server_src_test_java_org_neo4j_server_modules_DiscoveryModuleTest.java |
2,246 | public class DiscoveryModule implements ServerModule
{
private static final String ROOT_PATH = "/";
private final WebServer webServer;
private final ConsoleLogger log;
public DiscoveryModule( WebServer webServer, Logging logging )
{
this.webServer = webServer;
this.log = logging.ge... | false | community_server_src_main_java_org_neo4j_server_modules_DiscoveryModule.java |
2,247 | public class SimpleConsoleFormatter extends Formatter
{
private final PatternLayoutEncoder encoder;
public SimpleConsoleFormatter()
{
LoggerContext context = new LoggerContext();
Map<String, String> converters = new HashMap<String, String>();
converters.put("module", ModuleConverte... | false | community_server_src_main_java_org_neo4j_server_logging_SimpleConsoleFormatter.java |
2,248 | public class NeoLogFilter implements Filter
{
@Override
public boolean isLoggable( LogRecord logRecord )
{
String loggerName = logRecord.getLoggerName();
return loggerName.startsWith( "org.neo4j.server" )
&& !loggerName.startsWith( "org.neo4j.server.storemigration" );
}
} | false | community_server_src_main_java_org_neo4j_server_logging_NeoLogFilter.java |
2,249 | public class JettyLoggerAdapterTest
{
@Test
public void testSafeFormat() throws Exception
{
assertEquals( "Failed to format message: ?", safeFormat( "%" ) );
assertEquals( "Failed to format message: Program?20Files", safeFormat( "Program%20Files" ) );
assertEquals( "Failed to format ... | false | community_server_src_test_java_org_neo4j_server_logging_JettyLoggerAdapterTest.java |
2,250 | public class JettyLoggerAdapter implements Logger
{
private static final String SYSTEM = "SYSTEM";
private final Logging logging;
private final StringLogger logger;
public JettyLoggerAdapter( Logging logging )
{
this.logging = logging;
this.logger = StringLogger.SYSTEM;
}
... | false | community_server_src_main_java_org_neo4j_server_logging_JettyLoggerAdapter.java |
2,251 | public class Transactor
{
private final org.neo4j.server.helpers.UnitOfWork unitOfWork;
private final GraphDatabaseService graphDb;
public Transactor( GraphDatabaseService graphDb, UnitOfWork unitOfWork )
{
this.unitOfWork = unitOfWork;
this.graphDb = graphDb;
}
public void ex... | false | community_server_src_test_java_org_neo4j_server_helpers_Transactor.java |
2,252 | private static class DeleteAllSchema implements UnitOfWork
{
private final GraphDatabaseAPI db;
public DeleteAllSchema( GraphDatabaseAPI db )
{
this.db = db;
}
@Override
public void doWork()
{
deleteAllIndexRules();
de... | false | community_server_src_test_java_org_neo4j_server_helpers_ServerHelper.java |
2,253 | private static class DeleteAllData implements UnitOfWork
{
private final GraphDatabaseAPI db;
public DeleteAllData( GraphDatabaseAPI db )
{
this.db = db;
}
@Override
public void doWork()
{
deleteAllNodesAndRelationships();
... | false | community_server_src_test_java_org_neo4j_server_helpers_ServerHelper.java |
2,254 | public class ServerHelper
{
public static void cleanTheDatabase( final NeoServer server )
{
if ( server == null )
{
return;
}
rollbackAllOpenTransactions( server );
cleanTheDatabase( server.getDatabase().getGraph() );
removeLogs( server );
}
... | false | community_server_src_test_java_org_neo4j_server_helpers_ServerHelper.java |
2,255 | 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,256 | {
final int size = length();
int pos = 0;
@Override
public boolean hasNext()
{
return pos < size;
}
@Override
public T next()
{
... | false | community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java |
2,257 | private static abstract class PrimitiveArray<A, T> extends PropertyArray<A, T>
{
@Override
public Iterator<T> iterator()
{
return new Iterator<T>()
{
final int size = length();
int pos = 0;
@Override
... | false | community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java |
2,258 | public class SecurityRulesModule implements ServerModule
{
private final WebServer webServer;
private final Configuration config;
private final ConsoleLogger log;
private SecurityFilter mountedFilter;
public SecurityRulesModule( WebServer webServer, Configuration config, Logging logging )
{
... | false | community_server_src_main_java_org_neo4j_server_modules_SecurityRulesModule.java |
2,259 | public class StatisticModule implements ServerModule
{
private final StatisticFilter filter;
private final WebServer webServer;
private final Configuration config;
public StatisticModule(WebServer webServer, StatisticCollector requestStatistics, Configuration config)
{
this.webServer = webServer;... | false | community_server_src_main_java_org_neo4j_server_modules_StatisticModule.java |
2,260 | {
@Override
@SuppressWarnings( "boxing" )
public byte[] getClonedArray()
{
byte[] result = new byte[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,261 | public class ThirdPartyJAXRSModule implements ServerModule
{
private final Configurator configurator;
private final WebServer webServer;
private final ExtensionInitializer extensionInitializer;
private List<ThirdPartyJaxRsPackage> packages;
private final ConsoleLogger log;
public ThirdPartyJAXRSModule(... | false | community_server_src_main_java_org_neo4j_server_modules_ThirdPartyJAXRSModule.java |
2,262 | class NodeTypeCaster extends TypeCaster
{
@Override
Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException
{
return parameters.getNode( graphDb, name );
}
@Override
Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameters, Stri... | false | community_server_src_main_java_org_neo4j_server_plugins_NodeTypeCaster.java |
2,263 | public class MapTypeCaster extends TypeCaster
{
@Override
Object get( GraphDatabaseAPI graphDb, ParameterList parameters,
String name ) throws BadInputException
{
return parameters.getMap(name);
}
@Override
Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameter... | false | community_server_src_main_java_org_neo4j_server_plugins_MapTypeCaster.java |
2,264 | class LongTypeCaster extends TypeCaster
{
@Override
Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException
{
return parameters.getLong( name );
}
@Override
Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameters, String name )... | false | community_server_src_main_java_org_neo4j_server_plugins_LongTypeCaster.java |
2,265 | abstract class ListParameterExtractor extends ParameterExtractor
{
ListParameterExtractor( TypeCaster caster, Class<?> type, Parameter param, Description description )
{
super( caster, type, param, description );
}
@Override
Object extract( GraphDatabaseAPI graphDb, Object source, Parameter... | false | community_server_src_main_java_org_neo4j_server_plugins_ListParameterExtractor.java |
2,266 | class IntegerTypeCaster extends TypeCaster
{
@Override
Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException
{
return parameters.getInteger( name );
}
@Override
Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameters, String ... | false | community_server_src_main_java_org_neo4j_server_plugins_IntegerTypeCaster.java |
2,267 | {
@Override
public Evaluation evaluate( Path path )
{
if ( path.length() < depth )
{
return Evaluation.INCLUDE_AND_CONTINUE;
}
... | false | community_server-plugin-test_src_test_java_org_neo4j_server_plugins_GraphCloner.java |
2,268 | @Description( "Clones a subgraph (an example taken from a community mailing list requirement)" )
public class GraphCloner extends ServerPlugin
{
public GraphCloner()
{
super( "GraphCloner" );
}
@PluginTarget( Node.class )
public Node clonedSubgraph( @Source Node startNode, @Parameter( name... | false | community_server-plugin-test_src_test_java_org_neo4j_server_plugins_GraphCloner.java |
2,269 | @Description( "Here you can describe your plugin. It will show up in the description of the methods." )
public class FunctionalTestPlugin extends ServerPlugin
{
public static final String CREATE_NODE = "createNode";
public static final String GET_CONNECTED_NODES = "connected_nodes";
static String _string;
... | false | community_server-plugin-test_src_test_java_org_neo4j_server_plugins_FunctionalTestPlugin.java |
2,270 | class FloatTypeCaster extends TypeCaster
{
@Override
Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException
{
return parameters.getFloat( name );
}
@Override
Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameters, String name... | false | community_server_src_main_java_org_neo4j_server_plugins_FloatTypeCaster.java |
2,271 | public class ExtensionListingFunctionalTest extends SharedServerTestBase
{
private static FunctionalTestHelper functionalTestHelper;
@BeforeClass
public static void setupServer() throws IOException
{
functionalTestHelper = new FunctionalTestHelper( SharedServerTestBase.server() );
}
@B... | false | community_server-plugin-test_src_test_java_org_neo4j_server_plugins_ExtensionListingFunctionalTest.java |
2,272 | class DoubleTypeCaster extends TypeCaster
{
@Override
Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException
{
return parameters.getDouble( name );
}
@Override
Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameters, String na... | false | community_server_src_main_java_org_neo4j_server_plugins_DoubleTypeCaster.java |
2,273 | abstract class DataExtractor
{
abstract Object extract( GraphDatabaseAPI graphDb, Object source, ParameterList parameters )
throws BadInputException;
void describe( ParameterDescriptionConsumer consumer )
{
}
} | false | community_server_src_main_java_org_neo4j_server_plugins_DataExtractor.java |
2,274 | public class CloneSubgraphPluginTest extends ExclusiveServerTestBase
{
private static final RelationshipType KNOWS = DynamicRelationshipType.withName( "knows" );
private static final RelationshipType WORKED_FOR = DynamicRelationshipType.withName( "worked_for" );
private static NeoServer server;
private... | false | community_server-plugin-test_src_test_java_org_neo4j_server_plugins_CloneSubgraphPluginTest.java |
2,275 | class CharacterTypeCaster extends TypeCaster
{
@Override
Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException
{
return parameters.getCharacter( name );
}
@Override
Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameters, Str... | false | community_server_src_main_java_org_neo4j_server_plugins_CharacterTypeCaster.java |
2,276 | class ByteTypeCaster extends TypeCaster
{
@Override
Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException
{
return parameters.getByte( name );
}
@Override
Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameters, String name )... | false | community_server_src_main_java_org_neo4j_server_plugins_ByteTypeCaster.java |
2,277 | class BooleanTypeCaster extends TypeCaster
{
@Override
Object get( GraphDatabaseAPI graphDb, ParameterList parameters, String name ) throws BadInputException
{
return parameters.getBoolean( name );
}
@Override
Object[] getList( GraphDatabaseAPI graphDb, ParameterList parameters, String ... | false | community_server_src_main_java_org_neo4j_server_plugins_BooleanTypeCaster.java |
2,278 | public final class BadPluginInvocationException extends Exception
{
public BadPluginInvocationException( Throwable cause )
{
super( cause );
}
} | false | community_server-api_src_main_java_org_neo4j_server_plugins_BadPluginInvocationException.java |
2,279 | public class WebAdminModule implements ServerModule
{
private static final String DEFAULT_WEB_ADMIN_PATH = "/webadmin";
private static final String DEFAULT_WEB_ADMIN_STATIC_WEB_CONTENT_LOCATION = "webadmin-html";
private final WebServer webServer;
private final ConsoleLogger log;
public WebAdminMo... | false | community_server_src_main_java_org_neo4j_server_modules_WebAdminModule.java |
2,280 | public class ThirdPartyJAXRSModuleTest
{
@Test
public void shouldReportThirdPartyPackagesAtSpecifiedMount() throws Exception
{
WebServer webServer = mock( WebServer.class );
CommunityNeoServer neoServer = mock( CommunityNeoServer.class );
when( neoServer.baseUri() ).thenReturn( new ... | false | community_server_src_test_java_org_neo4j_server_modules_ThirdPartyJAXRSModuleTest.java |
2,281 | private static abstract class BoxedArray<A, T> extends PropertyArray<A, T>
{
private final T[] array;
BoxedArray( T[] array )
{
this.array = array;
}
@Override
public int length()
{
return array.length;
}
@Overrid... | false | community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java |
2,282 | {
@Override
public boolean[] getClonedArray()
{
return property.clone();
}
@Override
public int length()
{
return property.length;
}
@Override
@SuppressWarnin... | false | community_server-api_src_main_java_org_neo4j_server_helpers_PropertyTypeDispatcher.java |
2,283 | public abstract class ParameterList
{
private final Map<String, Object> data;
public ParameterList( Map<String, Object> data )
{
this.data = data;
}
private static abstract class Converter<T>
{
abstract T convert( GraphDatabaseAPI graphDb, Object value )
throws ... | false | community_server-api_src_main_java_org_neo4j_server_plugins_ParameterList.java |
2,284 | private class TestCommunityNeoServer extends CommunityNeoServer
{
private final File configFile;
private TestCommunityNeoServer( Configurator propertyFileConfigurator, File configFile, Logging logging )
{
super( propertyFileConfigurator, logging );
this.configFil... | false | community_server_src_test_java_org_neo4j_server_helpers_CommunityServerBuilder.java |
2,285 | {
@Override
public String getFailureMessage()
{
return "mockFailure";
}
@Override
public boolean run()
{
return fa... | false | community_server_src_test_java_org_neo4j_server_helpers_CommunityServerBuilder.java |
2,286 | {
@Override
public boolean run()
{
return false;
}
@Override
public PreflightTask failedTask()
{
return new PreflightTask()
{
@Override
pu... | false | community_server_src_test_java_org_neo4j_server_helpers_CommunityServerBuilder.java |
2,287 | public class CommunityServerBuilder
{
protected LoggingFactory loggingFactory;
private String portNo = "7474";
private String maxThreads = null;
protected String dbDir = null;
private String webAdminUri = "/db/manage/";
private String webAdminDataUri = "/db/data/";
protected PreFlightTasks p... | false | community_server_src_test_java_org_neo4j_server_helpers_CommunityServerBuilder.java |
2,288 | public class GuardingRequestFilter implements Filter
{
private final Guard guard;
private final int timeout;
private final Timer timer = new Timer();
public GuardingRequestFilter( final Guard guard, final int timeout )
{
this.guard = guard;
this.timeout = timeout;
}
@Overr... | false | community_server_src_main_java_org_neo4j_server_guard_GuardingRequestFilter.java |
2,289 | private class TestEnterpriseNeoServer extends EnterpriseNeoServer
{
private final File configFile;
public TestEnterpriseNeoServer( Configurator propertyFileConfigurator, File configFile, Logging logging )
{
super( propertyFileConfigurator, logging );
this.configF... | false | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_helpers_EnterpriseServerBuilder.java |
2,290 | public class EnterpriseServerBuilder extends CommunityServerBuilder
{
protected EnterpriseServerBuilder( LoggingFactory loggingFactory )
{
super( loggingFactory );
}
public static EnterpriseServerBuilder server()
{
return server( IMPERMANENT_LOGGING );
}
public static Enter... | false | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_helpers_EnterpriseServerBuilder.java |
2,291 | public class EnterpriseServerIT
{
@Rule
public TemporaryFolder folder = new TemporaryFolder();
@Rule
public DumpPortListenerOnNettyBindFailure dumpPorts = new DumpPortListenerOnNettyBindFailure();
@Test
public void shouldBeAbleToStartInHAMode() throws Throwable
{
// Given
Fi... | false | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_functional_EnterpriseServerIT.java |
2,292 | {
@Override
public void evaluate() throws Throwable
{
try
{
base.evaluate();
}
catch ( Throwable failure )
{
for ( Throwable cause = failure; cause != null;... | false | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_functional_DumpPortListenerOnNettyBindFailure.java |
2,293 | public class DumpPortListenerOnNettyBindFailure implements TestRule
{
private final PrintWriter out;
public DumpPortListenerOnNettyBindFailure()
{
this(System.err);
}
public DumpPortListenerOnNettyBindFailure( OutputStream out )
{
this( new PrintWriter( out, true ) );
}
... | false | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_functional_DumpPortListenerOnNettyBindFailure.java |
2,294 | {
@Override
public void start()
{
try
{
Thread.sleep( 1000 * 5 );
}
catch ( InterruptedException e )
... | false | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_StartupTimeoutFunctionalTest.java |
2,295 | {
@Override
protected Iterable<ServerModule> createServerModules()
{
ServerModule slowModule = new ServerModule()
{
@Override
public void start()
{
try
... | false | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_StartupTimeoutFunctionalTest.java |
2,296 | {
@Override
protected Iterable<ServerModule> createServerModules()
{
return Arrays.asList();
}
}; | false | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_StartupTimeoutFunctionalTest.java |
2,297 | public class StartupTimeoutFunctionalTest
{
@Rule
public TargetDirectory.TestDirectory target = TargetDirectory.testDirForTest( getClass() );
public EnterpriseNeoServer server;
@After
public void stopServer()
{
if ( server != null )
{
server.stop();
serv... | false | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_StartupTimeoutFunctionalTest.java |
2,298 | public class StandaloneHaInfoFunctionalTest
{
private static EnterpriseNeoServer server;
@Before
public void before() throws IOException
{
server = createNonPersistentServer();
}
@After
public void after()
{
if ( server != null )
{
server.stop();
... | false | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_StandaloneHaInfoFunctionalTest.java |
2,299 | public class StandaloneClusterClientTestProxy
{
public static final String START_SIGNAL = "starting";
public static void main( String[] args )
{
// This sysout will be intercepted by the parent process and will trigger
// a start of a timeout. The whole reason for this class to be here is t... | false | enterprise_server-enterprise_src_test_java_org_neo4j_server_enterprise_StandaloneClusterClientTestProxy.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.