Unnamed: 0 int64 0 6.45k | func stringlengths 37 143k | target class label 2
classes | project stringlengths 33 157 |
|---|---|---|---|
1,284 | @Test
public class LocalPaginatedStorageCreateCrashRestore {
private ODatabaseDocumentTx baseDocumentTx;
private ODatabaseDocumentTx testDocumentTx;
private File buildDir;
private final AtomicLong idGen = new AtomicLong();
private ExecutorService executorService = Executors.n... | 1no label | server_src_test_java_com_orientechnologies_orient_core_storage_impl_local_paginated_LocalPaginatedStorageCreateCrashRestore.java |
147 | public class OBinaryTypeSerializer implements OBinarySerializer<byte[]> {
private static final OBinaryConverter CONVERTER = OBinaryConverterFactory.getConverter();
public static final OBinaryTypeSerializer INSTANCE = new OBinaryTypeSerializer();
public static final byte ID = 17;
public int getObjectSize(int l... | 0true | commons_src_main_java_com_orientechnologies_common_serialization_types_OBinaryTypeSerializer.java |
35 | static final class ThenRun extends Completion {
final CompletableFuture<?> src;
final Runnable fn;
final CompletableFuture<Void> dst;
final Executor executor;
ThenRun(CompletableFuture<?> src,
Runnable fn,
CompletableFuture<Void> dst,
... | 0true | src_main_java_jsr166e_CompletableFuture.java |
209 | @SuppressWarnings("unchecked")
public class OStorageRemoteThread implements OStorageProxy {
private static AtomicInteger sessionSerialId = new AtomicInteger(-1);
private final OStorageRemote delegate;
private String serverURL;
private int sessionId;
public OStorageRemoteThread... | 1no label | client_src_main_java_com_orientechnologies_orient_client_remote_OStorageRemoteThread.java |
533 | @Deprecated
public class GatewaySnapshotRequestBuilder extends BroadcastOperationRequestBuilder<GatewaySnapshotRequest, GatewaySnapshotResponse, GatewaySnapshotRequestBuilder> {
public GatewaySnapshotRequestBuilder(IndicesAdminClient indicesClient) {
super((InternalIndicesAdminClient) indicesClient, new G... | 0true | src_main_java_org_elasticsearch_action_admin_indices_gateway_snapshot_GatewaySnapshotRequestBuilder.java |
764 | @Test(enabled = false)
public class OSBTreeBonsaiWAL extends OSBTreeBonsaiTest {
private String buildDirectory;
private String actualStorageDir;
private String expectedStorageDir;
private OWriteAheadLog ... | 1no label | core_src_test_java_com_orientechnologies_orient_core_index_sbtreebonsai_local_OSBTreeBonsaiWAL.java |
163 | @SuppressWarnings("unchecked")
public class OSynchEventAdapter<RESOURCE_TYPE, RESPONSE_TYPE> {
protected final LinkedHashMap<RESOURCE_TYPE, Object[]> queue = new LinkedHashMap<RESOURCE_TYPE, Object[]>();
public OSynchEventAdapter() {
}
public void registerCallbackCurrentThread(final RESOURCE_TYPE iResource) {
q... | 0true | commons_src_main_java_com_orientechnologies_common_synch_OSynchEventAdapter.java |
562 | public class PutMappingClusterStateUpdateRequest extends IndicesClusterStateUpdateRequest<PutMappingClusterStateUpdateRequest> {
private String type;
private String source;
private boolean ignoreConflicts = false;
PutMappingClusterStateUpdateRequest() {
}
public String type() {
ret... | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_put_PutMappingClusterStateUpdateRequest.java |
29 | public class BerkeleyBlueprintsTest extends TitanBlueprintsTest {
private static final String DEFAULT_SUBDIR = "standard";
private static final Logger log =
LoggerFactory.getLogger(BerkeleyBlueprintsTest.class);
@Override
public Graph generateGraph() {
return generateGraph(DEFAULT... | 0true | titan-berkeleyje_src_test_java_com_thinkaurelius_titan_blueprints_BerkeleyBlueprintsTest.java |
90 | public class ODFACommandStreamTest {
@Test
public void testNextCommand() throws Exception {
test("one;two", "one", "two");
}
@Test
public void testNextCommandQuotes() throws Exception {
test("Select 'one;'; Select \"t;w;o\"", "Select 'one;'", "Select \"t;w;o\"");
}
@Test
public void testNextCo... | 0true | commons_src_test_java_com_orientechnologies_common_console_ODFACommandStreamTest.java |
95 | public class Geoshape {
private static final SpatialContext CTX = SpatialContext.GEO;
/**
* The Type of a shape: a point, box, circle, or polygon
*/
public enum Type {
POINT, BOX, CIRCLE, POLYGON;
}
//coordinates[0] = latitudes, coordinates[1] = longitudes
private final floa... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Geoshape.java |
6,451 | class TribeClusterStateListener implements ClusterStateListener {
private final InternalNode tribeNode;
private final String tribeName;
TribeClusterStateListener(InternalNode tribeNode) {
this.tribeNode = tribeNode;
this.tribeName = tribeNode.settings().get(TRIBE_NA... | 1no label | src_main_java_org_elasticsearch_tribe_TribeService.java |
358 | public class NodesStatsRequestBuilder extends NodesOperationRequestBuilder<NodesStatsRequest, NodesStatsResponse, NodesStatsRequestBuilder> {
public NodesStatsRequestBuilder(ClusterAdminClient clusterClient) {
super((InternalClusterAdminClient) clusterClient, new NodesStatsRequest());
}
/**
*... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_stats_NodesStatsRequestBuilder.java |
2,590 | public class SocketConnector implements Runnable {
private static final int TIMEOUT = 3000;
private final TcpIpConnectionManager connectionManager;
private final Address address;
private final ILogger logger;
private final boolean silent;
public SocketConnector(TcpIpConnectionManager connectio... | 1no label | hazelcast_src_main_java_com_hazelcast_nio_SocketConnector.java |
5,788 | public class VersionFetchSubPhase implements FetchSubPhase {
@Override
public Map<String, ? extends SearchParseElement> parseElements() {
return ImmutableMap.of("version", new VersionParseElement());
}
@Override
public boolean hitsExecutionNeeded(SearchContext context) {
return fal... | 1no label | src_main_java_org_elasticsearch_search_fetch_version_VersionFetchSubPhase.java |
400 | static enum EvictionPolicy {
NONE, LRU, LFU
} | 0true | hazelcast-client_src_main_java_com_hazelcast_client_nearcache_ClientNearCache.java |
1,223 | public abstract class OStorageEmbedded extends OStorageAbstract {
protected final ORecordLockManager lockManager;
protected final String PROFILER_CREATE_RECORD;
protected final String PROFILER_READ_RECORD;
protected final String PROFILER_UPDATE_RECORD;
protected final Strin... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_OStorageEmbedded.java |
375 | public class ODatabaseFlat extends ODatabaseRecordTx {
public ODatabaseFlat(String iURL) {
super(iURL, ORecordFlat.RECORD_TYPE);
}
@SuppressWarnings("unchecked")
@Override
public ORecordIteratorCluster<ORecordFlat> browseCluster(final String iClusterName) {
return super.browseCluster(iClusterName, O... | 1no label | core_src_main_java_com_orientechnologies_orient_core_db_record_ODatabaseFlat.java |
1,538 | public static class Map extends Mapper<NullWritable, FaunusVertex, WritableComparable, Text> {
private String key;
private boolean isVertex;
private WritableHandler handler;
private String elementKey;
private SafeMapperOutputs outputs;
@Override
public void... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_transform_OrderMapReduce.java |
85 | public class ClientEngineImpl implements ClientEngine, CoreService,
ManagedService, MembershipAwareService, EventPublishingService<ClientEndpoint, ClientListener> {
public static final String SERVICE_NAME = "hz:core:clientEngine";
public static final int DESTROY_ENDPOINT_DELAY_MS = 1111;
public sta... | 1no label | hazelcast_src_main_java_com_hazelcast_client_ClientEngineImpl.java |
35 | public class SetCommand extends AbstractTextCommand {
ByteBuffer response;
private final String key;
private final int flag;
private final int expiration;
private final int valueLen;
private final boolean noreply;
private final ByteBuffer bbValue;
public SetCommand(TextCommandType type,... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_memcache_SetCommand.java |
1,477 | labels = OMultiValue.array(iParameters, String.class, new OCallable<Object, Object>() {
@Override
public Object call(final Object iArgument) {
return OStringSerializerHelper.getStringContent(iArgument);
}
}); | 1no label | graphdb_src_main_java_com_orientechnologies_orient_graph_sql_functions_OSQLFunctionMove.java |
146 | (new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
public sun.misc.Unsafe run() throws Exception {
Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class;
for (java.lang.reflect.Field f : k.getDeclaredFields()) {
f.setA... | 0true | src_main_java_jsr166e_extra_AtomicDouble.java |
94 | public interface NamedOperationManager {
Map<String, String> manageNamedParameters(Map<String, String> parameterMap);
} | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_service_operation_NamedOperationManager.java |
44 | public class InvalidIDException extends TitanException {
public InvalidIDException(String msg) {
super(msg);
}
public InvalidIDException(String msg, Throwable cause) {
super(msg, cause);
}
public InvalidIDException(Throwable cause) {
super(cause);
}
} | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_InvalidIDException.java |
358 | future.andThen(new ExecutionCallback<Integer>() {
@Override
public void onResponse(Integer response) {
result[0] = response.intValue();
semaphore.release();
}
@Override
public void onFailure(Throwable t) {
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_mapreduce_ClientMapReduceTest.java |
1,498 | public class CommitVerticesMapReduce {
// public static final String ACTION = Tokens.makeNamespace(CommitVerticesMapReduce.class) + ".action";
public enum Counters {
VERTICES_KEPT,
VERTICES_DROPPED,
OUT_EDGES_KEPT,
IN_EDGES_KEPT
}
public static org.apache.hadoop.conf.Co... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_sideeffect_CommitVerticesMapReduce.java |
1,878 | public class ListGridRecord {
protected ListGrid listGrid;
protected String id;
protected List<Field> fields = new ArrayList<Field>();
protected List<Field> hiddenFields = new ArrayList<Field>();
/**
* Convenience map keyed by the field name. Used to guarantee field ordering with header f... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_web_form_component_ListGridRecord.java |
1,117 | public class OSQLFunctionSum extends OSQLFunctionMathAbstract {
public static final String NAME = "sum";
private Number sum;
public OSQLFunctionSum() {
super(NAME, 1, -1);
}
public Object execute(final OIdentifiable iCurrentRecord, Object iCurrentResult, final Object[] iParameters,
OC... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_math_OSQLFunctionSum.java |
286 | public class PassthroughEncryptionModule implements EncryptionModule {
protected static final Logger LOG = LogManager.getLogger(PassthroughEncryptionModule.class);
protected RuntimeEnvironmentKeyResolver keyResolver = new SystemPropertyRuntimeEnvironmentKeyResolver();
public PassthroughEncryptionM... | 0true | common_src_main_java_org_broadleafcommerce_common_encryption_PassthroughEncryptionModule.java |
298 | transportService.sendRequest(node, action.name(), request, transportOptions, new BaseTransportResponseHandler<Response>() {
@Override
public Response newInstance() {
return action.newResponse();
}
@Override
public String executor() {
... | 0true | src_main_java_org_elasticsearch_action_TransportActionNodeProxy.java |
540 | public class DeleteMappingRequest extends AcknowledgedRequest<DeleteMappingRequest> {
private String[] indices;
private IndicesOptions indicesOptions = IndicesOptions.fromOptions(false, false, true, false);
private String[] types;
DeleteMappingRequest() {
}
/**
* Constructs a new delete ... | 0true | src_main_java_org_elasticsearch_action_admin_indices_mapping_delete_DeleteMappingRequest.java |
1,240 | public final class CeylonClasspathUtil {
private CeylonClasspathUtil() {
// utility class
}
/**
* Get the Ivy classpath container from the selection in the Java package view
*
* @param selection
* the selection
* @return
* @throws JavaModelException
*... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_core_classpath_CeylonClasspathUtil.java |
166 | public interface RetryableRequest {
} | 0true | hazelcast_src_main_java_com_hazelcast_client_RetryableRequest.java |
1,612 | public class ODeployDatabaseTask extends OAbstractReplicatedTask {
private static final long serialVersionUID = 1L;
// private static final String BACKUP_DIRECTORY = "tempBackups";
protected final static int CHUNK_MAX_SIZE = 1048576; // 1MB
public ODeployDatabaseTask() {
}
@Override
public Object ex... | 1no label | server_src_main_java_com_orientechnologies_orient_server_distributed_task_ODeployDatabaseTask.java |
155 | archiveStructuredContentTemplate.send(archiveStructuredContentDestination, new MessageCreator() {
public Message createMessage(Session session) throws JMSException {
HashMap<String, String> objectMap = new HashMap<String,String>(2);
objectMap.put("nameKey", baseNameKe... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_structure_message_jms_JMSArchivedStructuredContentPublisher.java |
1 | public class MultiPaxosServer
{
private AtomicBroadcastSerializer broadcastSerializer;
private ProtocolServer server;
public static void main( String[] args )
throws IOException, InvocationTargetException, IllegalAccessException
{
new MultiPaxosServer().start();
}
protected... | 1no label | enterprise_cluster_src_test_java_org_neo4j_cluster_protocol_atomicbroadcast_multipaxos_MultiPaxosServer.java |
3,262 | public class QueuePermission extends InstancePermission {
private static final int ADD = 0x4;
private static final int READ = 0x8;
private static final int REMOVE = 0x16;
private static final int LISTEN = 0x32;
private static final int ALL = ADD | REMOVE | READ | CREATE | DESTROY | LISTEN;
pub... | 1no label | hazelcast_src_main_java_com_hazelcast_security_permission_QueuePermission.java |
270 | public class EmailInfo implements Serializable {
private static final long serialVersionUID = 1L;
private String emailType;
private String emailTemplate;
private String subject;
private String fromAddress;
private String messageBody;
private List<Attachment> attachments = new ArrayList<Att... | 0true | common_src_main_java_org_broadleafcommerce_common_email_service_info_EmailInfo.java |
3,696 | public abstract class AbstractExecutorThreadFactory implements ThreadFactory {
protected final ClassLoader classLoader;
protected final ThreadGroup threadGroup;
public AbstractExecutorThreadFactory(ThreadGroup threadGroup, ClassLoader classLoader) {
this.threadGroup = threadGroup;
this.cla... | 1no label | hazelcast_src_main_java_com_hazelcast_util_executor_AbstractExecutorThreadFactory.java |
723 | createIndexAction.execute(new CreateIndexRequest(request.index()).cause("auto(delete api)").masterNodeTimeout(request.timeout()), new ActionListener<CreateIndexResponse>() {
@Override
public void onResponse(CreateIndexResponse result) {
innerExecute(reques... | 0true | src_main_java_org_elasticsearch_action_delete_TransportDeleteAction.java |
733 | public class DeleteByQueryRequestBuilder extends IndicesReplicationOperationRequestBuilder<DeleteByQueryRequest, DeleteByQueryResponse, DeleteByQueryRequestBuilder> {
private QuerySourceBuilder sourceBuilder;
public DeleteByQueryRequestBuilder(Client client) {
super((InternalClient) client, new Delete... | 0true | src_main_java_org_elasticsearch_action_deletebyquery_DeleteByQueryRequestBuilder.java |
347 | Thread t = new Thread(new Runnable() {
@Override
public void run() {
try {
Thread.sleep(request.delay.millis());
} catch (InterruptedException e) {
// ignore
}
... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_node_shutdown_TransportNodesShutdownAction.java |
8 | public class LabelAbbreviationsTest {
@Test
public void getAbbreviation() throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException {
AbbreviationsImpl availableAbbreviations = new AbbreviationsImpl("value");
availableAbbreviations.addPhrase("Amps", Collections.singletonLi... | 0true | tableViews_src_test_java_gov_nasa_arc_mct_abbreviation_impl_LabelAbbreviationsTest.java |
4,492 | class FinalizeRecoveryRequestHandler extends BaseTransportRequestHandler<RecoveryFinalizeRecoveryRequest> {
@Override
public RecoveryFinalizeRecoveryRequest newInstance() {
return new RecoveryFinalizeRecoveryRequest();
}
@Override
public String executor() {
... | 1no label | src_main_java_org_elasticsearch_indices_recovery_RecoveryTarget.java |
1,137 | public class OSQLMethodAsInteger extends OAbstractSQLMethod {
public static final String NAME = "asinteger";
public OSQLMethodAsInteger() {
super(NAME);
}
@Override
public Object execute(OIdentifiable iCurrentRecord, OCommandContext iContext, Object ioResult, Object[] iMethodParams) {
... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_method_misc_OSQLMethodAsInteger.java |
439 | static final class Fields {
static final XContentBuilderString TOTAL = new XContentBuilderString("total");
static final XContentBuilderString MASTER_ONLY = new XContentBuilderString("master_only");
static final XContentBuilderString DATA_ONLY = new XContentBuilderString("data... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsNodes.java |
3,259 | public abstract class NumberComparatorBase<T> extends NestedWrappableComparator<T> {
/**
* Adds numeric value at the specified doc to the specified slot.
*
* @param slot The specified slot
* @param doc The specified doc
*/
public abstract void add(int slot, int doc);
/**
*... | 1no label | src_main_java_org_elasticsearch_index_fielddata_fieldcomparator_NumberComparatorBase.java |
3,291 | protected static class Empty extends AtomicGeoPointFieldData<ScriptDocValues> {
private final int numDocs;
Empty(int numDocs) {
this.numDocs = numDocs;
}
@Override
public boolean isMultiValued() {
return false;
}
@Override
p... | 1no label | src_main_java_org_elasticsearch_index_fielddata_plain_AbstractGeoPointIndexFieldData.java |
26 | public class CacheLayer implements StoreReadLayer
{
private static final Function<? super SchemaRule, IndexDescriptor> TO_INDEX_RULE =
new Function<SchemaRule, IndexDescriptor>()
{
@Override
public IndexDescriptor apply( SchemaRule from )
{
IndexRule rule = (Index... | 1no label | community_kernel_src_main_java_org_neo4j_kernel_impl_api_store_CacheLayer.java |
4,476 | public class RecoverySource extends AbstractComponent {
public static class Actions {
public static final String START_RECOVERY = "index/shard/recovery/startRecovery";
}
private final TransportService transportService;
private final IndicesService indicesService;
private final RecoverySett... | 1no label | src_main_java_org_elasticsearch_indices_recovery_RecoverySource.java |
224 | public class RuntimeEnvironmentPropertiesManager implements BeanFactoryAware {
private static final Log LOG = LogFactory.getLog(RuntimeEnvironmentPropertiesManager.class);
protected ConfigurableBeanFactory beanFactory;
protected String prefix;
public String getPrefix() {
return prefix;
}... | 0true | common_src_main_java_org_broadleafcommerce_common_config_RuntimeEnvironmentPropertiesManager.java |
191 | public class TimeDTO {
@AdminPresentation(excluded = true)
private Calendar cal;
@AdminPresentation(friendlyName = "TimeDTO_Hour_Of_Day", fieldType = SupportedFieldType.BROADLEAF_ENUMERATION, broadleafEnumeration = "org.broadleafcommerce.common.time.HourOfDayType")
private Integer hour;
@AdminPre... | 0true | common_src_main_java_org_broadleafcommerce_common_TimeDTO.java |
213 | @LuceneTestCase.SuppressCodecs({"MockFixedIntBlock", "MockVariableIntBlock", "MockSep", "MockRandom", "Lucene3x"})
public class CustomPostingsHighlighterTests extends ElasticsearchLuceneTestCase {
@Test
public void testDiscreteHighlightingPerValue() throws Exception {
Directory dir = newDirectory();
... | 0true | src_test_java_org_apache_lucene_search_postingshighlight_CustomPostingsHighlighterTests.java |
57 | public class HttpPostCommand extends HttpCommand {
boolean nextLine;
boolean readyToReadData;
private ByteBuffer data;
private ByteBuffer line = ByteBuffer.allocate(500);
private String contentType;
private final SocketTextReader socketTextRequestReader;
private boolean chunked;
public... | 0true | hazelcast_src_main_java_com_hazelcast_ascii_rest_HttpPostCommand.java |
244 | public interface BroadleafCurrency extends Serializable {
public String getCurrencyCode();
public void setCurrencyCode(String code);
public String getFriendlyName();
public void setFriendlyName(String friendlyName);
public boolean getDefaultFlag();
public void setDefaultFlag(boolean defaul... | 0true | common_src_main_java_org_broadleafcommerce_common_currency_domain_BroadleafCurrency.java |
80 | public static class FieldOrder {
// General Fields
public static final int NAME = 1000;
public static final int URL = 2000;
public static final int TITLE = 3000;
public static final int ALT_TEXT = 4000;
public static final int MIME_TYPE =... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_domain_StaticAssetImpl.java |
629 | public class PlotView implements PlotAbstraction {
private final static Logger logger = LoggerFactory.getLogger(PlotView.class);
private static final Timer timer = new Timer();
// Manifestation holding this plot
private PlotViewManifestation plotUser;
// Used in time synchronization line mode.
private S... | 1no label | fastPlotViews_src_main_java_gov_nasa_arc_mct_fastplot_bridge_PlotView.java |
90 | public interface ObjectToInt<A> {int apply(A a); } | 0true | src_main_java_jsr166e_ConcurrentHashMapV8.java |
2,238 | public class ScriptScoreFunction extends ScoreFunction {
private final String sScript;
private final Map<String, Object> params;
private final SearchScript script;
public ScriptScoreFunction(String sScript, Map<String, Object> params, SearchScript script) {
super(CombineFunction.REPLACE... | 1no label | src_main_java_org_elasticsearch_common_lucene_search_function_ScriptScoreFunction.java |
1,177 | public class OQueryOperatorContainsValue extends OQueryOperatorEqualityNotNulls {
public OQueryOperatorContainsValue() {
super("CONTAINSVALUE", 5, false);
}
@Override
@SuppressWarnings("unchecked")
protected boolean evaluateExpression(final OIdentifiable iRecord, final OSQLFilterCondition iCondition, fi... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_operator_OQueryOperatorContainsValue.java |
1,467 | public class FindRefinementsVisitor extends Visitor implements NaturalVisitor {
private final Declaration declaration;
private Set<Tree.StatementOrArgument> declarationNodes =
new HashSet<Tree.StatementOrArgument>();
public FindRefinementsVisitor(Declaration declaration) {
thi... | 1no label | plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_util_FindRefinementsVisitor.java |
90 | public interface Duration extends Comparable<Duration> {
/**
* Returns the length of this duration in the given {@link TimeUnit}.
*
* @param unit
* @return
*/
public long getLength(TimeUnit unit);
/**
* Whether this duration is of zero length.
* @return
*/
publi... | 0true | titan-core_src_main_java_com_thinkaurelius_titan_core_attribute_Duration.java |
301 | public abstract class TranslatableException extends Exception {
protected int code;
/**
* Create a new exception instance
*
* @param code an integer code that represents this exception state
* @param message the message that will be posted to stack traces on the console (not necessarily in... | 0true | common_src_main_java_org_broadleafcommerce_common_exception_TranslatableException.java |
1,259 | public class OClusterLocal extends OSharedResourceAdaptive implements OCluster {
public static final int RECORD_SIZE = 11 + OVersionFactory.instance().getVersionSize();
public static final String TYPE = "PHYSICAL";
private static final int ... | 1no label | core_src_main_java_com_orientechnologies_orient_core_storage_impl_local_OClusterLocal.java |
113 | HazelcastTestSupport.assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
final NearCacheStats stats = map.getLocalMapStats().getNearCacheStats();
assertEquals(remainingSize, stats.getOwnedEntryCount());
}
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientNearCacheTest.java |
88 | private final class ClientPacketProcessor implements Runnable {
final ClientPacket packet;
private ClientPacketProcessor(ClientPacket packet) {
this.packet = packet;
}
@Override
public void run() {
Connection conn = packet.getConn();
Clie... | 1no label | hazelcast_src_main_java_com_hazelcast_client_ClientEngineImpl.java |
768 | public class IndexRequest extends ShardReplicationOperationRequest<IndexRequest> {
/**
* Operation type controls if the type of the index operation.
*/
public static enum OpType {
/**
* Index the source. If there an existing document with the id, it will
* be replaced.
... | 1no label | src_main_java_org_elasticsearch_action_index_IndexRequest.java |
1,488 | public static class Map extends Mapper<NullWritable, FaunusVertex, NullWritable, FaunusVertex> {
private boolean isVertex;
private ElementChecker startChecker;
private ElementChecker endChecker;
@Override
public void setup(final Mapper.Context context) throws IOException, I... | 1no label | titan-hadoop-parent_titan-hadoop-core_src_main_java_com_thinkaurelius_titan_hadoop_mapreduce_filter_IntervalFilterMap.java |
124 | client.getLifecycleService().addLifecycleListener(new LifecycleListener() {
@Override
public void stateChanged(LifecycleEvent event) {
connectedLatch.countDown();
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientReconnectTest.java |
30 | @Service("blLocaleFieldService")
public class LocaleFieldServiceImpl extends AbstractRuleBuilderFieldService {
@Override
public void init() {
fields.add(new FieldData.Builder()
.label("rule_localeName")
.name("friendlyName")
.operators("blcOperators_Text"... | 0true | admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_LocaleFieldServiceImpl.java |
1,336 | @Service("blSolrIndexService")
public class SolrIndexServiceImpl implements SolrIndexService {
private static final Log LOG = LogFactory.getLog(SolrIndexServiceImpl.class);
@Value("${solr.index.product.pageSize}")
protected int pageSize;
@Resource(name = "blProductDao")
protected ProductDao produc... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_search_service_solr_SolrIndexServiceImpl.java |
387 | new Thread() {
public void run() {
if (mm.tryLock(key) == false) {
tryLockFailed.countDown();
}
}
}.start(); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapLockTest.java |
300 | @RunWith(HazelcastSerialClassRunner.class)
@Category(QuickTest.class)
public class ClientLockWithTerminationTest {
private HazelcastInstance node1;
private HazelcastInstance node2;
private HazelcastInstance client1;
private HazelcastInstance client2;
private String keyOwnedByNode1;
@Before
... | 0true | hazelcast-client_src_test_java_com_hazelcast_client_lock_ClientLockWithTerminationTest.java |
142 | @Test
public class DoubleSerializerTest {
private static final int FIELD_SIZE = 8;
private static final Double OBJECT = Math.PI;
private ODoubleSerializer doubleSerializer;
byte[] stream = new byte[FIELD_SIZE];
@BeforeClass
public void beforeClass() {
doubleSerializer ... | 0true | commons_src_test_java_com_orientechnologies_common_serialization_types_DoubleSerializerTest.java |
396 | public class ClusterSearchShardsResponse extends ActionResponse implements ToXContent {
private ClusterSearchShardsGroup[] groups;
private DiscoveryNode[] nodes;
ClusterSearchShardsResponse() {
}
public ClusterSearchShardsGroup[] getGroups() {
return groups;
}
public DiscoveryNo... | 0true | src_main_java_org_elasticsearch_action_admin_cluster_shards_ClusterSearchShardsResponse.java |
115 | assertTrueEventually(new AssertTask() {
public void run() throws Exception {
NearCacheStats stats = clientMap.getLocalMapStats().getNearCacheStats();
assertEquals(0, stats.getOwnedEntryCount());
}
}); | 0true | hazelcast-client_src_test_java_com_hazelcast_client_ClientNearCacheTest.java |
110 | public class OUtils {
public static boolean equals(final Object a, final Object b) {
if (a == b)
return true;
if (a != null)
return a.equals(b);
return b.equals(a);
}
public static String camelCase(final String iText) {
return Character.toUpperCase(iText.charAt(0)) + iText.substring(... | 0true | commons_src_main_java_com_orientechnologies_common_io_OUtils.java |
436 | EventHandler<PortableMessage> handler = new EventHandler<PortableMessage>() {
@Override
public void handle(PortableMessage event) {
SerializationService serializationService = getContext().getSerializationService();
ClientClusterService clusterService = ge... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_proxy_ClientTopicProxy.java |
726 | public class IndexDeleteResponse extends ActionResponse {
private String index;
private int successfulShards;
private int failedShards;
private ShardDeleteResponse[] deleteResponses;
IndexDeleteResponse(String index, int successfulShards, int failedShards, ShardDeleteResponse[] deleteResponses) {
... | 0true | src_main_java_org_elasticsearch_action_delete_index_IndexDeleteResponse.java |
58 | public class AssetNotFoundException extends RuntimeException {
private static final long serialVersionUID = -6349160176427682630L;
public AssetNotFoundException() {
//do nothing
}
public AssetNotFoundException(Throwable cause) {
super(cause);
}
public AssetNotFoundException(St... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_common_AssetNotFoundException.java |
2,227 | public class FiltersFunctionScoreQuery extends Query {
public static class FilterFunction {
public final Filter filter;
public final ScoreFunction function;
public FilterFunction(Filter filter, ScoreFunction function) {
this.filter = filter;
this.function = function... | 1no label | src_main_java_org_elasticsearch_common_lucene_search_function_FiltersFunctionScoreQuery.java |
933 | public class OfferDeliveryType implements Serializable, BroadleafEnumerationType, Comparable<OfferDeliveryType> {
private static final long serialVersionUID = 1L;
private static final Map<String, OfferDeliveryType> TYPES = new LinkedHashMap<String, OfferDeliveryType>();
public static final OfferDeliv... | 1no label | core_broadleaf-framework_src_main_java_org_broadleafcommerce_core_offer_service_type_OfferDeliveryType.java |
6 | Collections.sort(abbreviationsForPhrase, new Comparator<String>() {
@Override
public int compare(String o1, String o2) {
return o1.length() - o2.length();
}
}); | 0true | tableViews_src_main_java_gov_nasa_arc_mct_abbreviation_impl_AbbreviationsManager.java |
746 | public class TransportExplainAction extends TransportShardSingleOperationAction<ExplainRequest, ExplainResponse> {
private final IndicesService indicesService;
private final ScriptService scriptService;
private final CacheRecycler cacheRecycler;
private final PageCacheRecycler pageCacheRecycler;
... | 1no label | src_main_java_org_elasticsearch_action_explain_TransportExplainAction.java |
480 | final EventHandler<PortableDistributedObjectEvent> eventHandler = new EventHandler<PortableDistributedObjectEvent>() {
public void handle(PortableDistributedObjectEvent e) {
final ObjectNamespace ns = new DefaultObjectNamespace(e.getServiceName(), e.getName());
Client... | 1no label | hazelcast-client_src_main_java_com_hazelcast_client_spi_ProxyManager.java |
1,575 | public class AdornedTargetList implements PersistencePerspectiveItem {
private static final long serialVersionUID = 1L;
private String collectionFieldName;
private String linkedObjectPath;
private String targetObjectPath;
private String adornedTargetEntityClassname;
private String adornedTarge... | 1no label | admin_broadleaf-open-admin-platform_src_main_java_org_broadleafcommerce_openadmin_dto_AdornedTargetList.java |
433 | static final class Fields {
static final XContentBuilderString COUNT = new XContentBuilderString("count");
} | 0true | src_main_java_org_elasticsearch_action_admin_cluster_stats_ClusterStatsIndices.java |
559 | public class TypedQueryBuilder<T> {
protected Class<T> rootClass;
protected String rootAlias;
protected List<TQRestriction> restrictions = new ArrayList<TQRestriction>();
protected Map<String, Object> paramMap = new HashMap<String, Object>();
/**
* Creates a new TypedQueryBuilder that wil... | 1no label | common_src_main_java_org_broadleafcommerce_common_util_dao_TypedQueryBuilder.java |
637 | @Component("blStatelessSessionFilter")
public class StatelessSessionFilter extends GenericFilterBean {
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException {
BLCRequestUtils.setOKtoUseSession(new ServletWebRequest... | 1no label | common_src_main_java_org_broadleafcommerce_common_web_filter_StatelessSessionFilter.java |
3 | public class OCompositeKey implements Comparable<OCompositeKey>, Serializable {
private static final long serialVersionUID = 1L;
/**
* List of heterogeneous values that are going to be stored in {@link OMVRBTree}.
*/
private final List<Object> keys;
private final Comparator<Object> comparato... | 0true | commons_src_main_java_com_orientechnologies_common_collection_OCompositeKey.java |
205 | public class ExistsFieldQueryExtension implements FieldQueryExtension {
public static final String NAME = "_exists_";
@Override
public Query query(QueryParseContext parseContext, String queryText) {
String fieldName = queryText;
Filter filter = null;
MapperService.SmartNameFieldMap... | 1no label | src_main_java_org_apache_lucene_queryparser_classic_ExistsFieldQueryExtension.java |
69 | public interface StaticAssetDao {
public StaticAsset readStaticAssetById(Long id);
public List<StaticAsset> readAllStaticAssets();
public void delete(StaticAsset asset);
public StaticAsset addOrUpdateStaticAsset(StaticAsset asset, boolean clearLevel1Cache);
public StaticAsset readStaticAsse... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_file_dao_StaticAssetDao.java |
595 | public class PlotConstants {
/*
* Default Plot Properties.
*/
public static final int DEFAULT_NUMBER_OF_SUBPLOTS = 1;
public static final boolean LOCAL_CONTROLS_ENABLED_BY_DEFAULT = true;
public static final YAxisMaximumLocationSetting DEFAULT_Y_AXIS_MAX_LOCATION_SETTING = YAxisMaximumLocationSetting.MAXIMUM_A... | 1no label | fastPlotViews_src_main_java_gov_nasa_arc_mct_fastplot_bridge_PlotConstants.java |
98 | @Repository("blPageDao")
public class PageDaoImpl implements PageDao {
private static SandBox DUMMY_SANDBOX = new SandBoxImpl();
{
DUMMY_SANDBOX.setId(-1l);
}
@PersistenceContext(unitName = "blPU")
protected EntityManager em;
@Resource(name="blEntityConfiguration")
protected Entit... | 0true | admin_broadleaf-contentmanagement-module_src_main_java_org_broadleafcommerce_cms_page_dao_PageDaoImpl.java |
49 | @SuppressWarnings("restriction")
public class OUnsafeByteArrayComparator implements Comparator<byte[]> {
public static final OUnsafeByteArrayComparator INSTANCE = new OUnsafeByteArrayComparator();
private static final Unsafe unsafe;
private static final int BYTE_ARRA... | 0true | commons_src_main_java_com_orientechnologies_common_comparator_OUnsafeByteArrayComparator.java |
1,124 | public class OSQLFunctionIf extends OSQLFunctionAbstract {
public static final String NAME = "if";
public OSQLFunctionIf() {
super(NAME, 2, 3);
}
@Override
public Object execute(final OIdentifiable iCurrentRecord, final Object iCurrentResult, final Object[] iFuncParams,
final OCommandContext iCon... | 1no label | core_src_main_java_com_orientechnologies_orient_core_sql_functions_misc_OSQLFunctionIf.java |
121 | public abstract class OAbstractProfiler extends OSharedResourceAbstract implements OProfilerMBean {
protected long recordingFrom = -1;
protected final Map<String, OProfilerHookValue> hooks = new ConcurrentHashMap<String, OProfilerHookValue>();
protected fina... | 0true | commons_src_main_java_com_orientechnologies_common_profiler_OAbstractProfiler.java |
1,481 | public class RoutingService extends AbstractLifecycleComponent<RoutingService> implements ClusterStateListener {
private static final String CLUSTER_UPDATE_TASK_SOURCE = "routing-table-updater";
private final ThreadPool threadPool;
private final ClusterService clusterService;
private final Allocatio... | 1no label | src_main_java_org_elasticsearch_cluster_routing_RoutingService.java |
264 | private static class Task implements Serializable, Callable {
@Override
public Object call() throws Exception {
counter.incrementAndGet();
return null;
}
} | 0true | hazelcast-client_src_test_java_com_hazelcast_client_executor_ExecutionDelayTest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.