Dataset Viewer
Auto-converted to Parquet Duplicate
Unnamed: 0
int64
0
6.45k
func
stringlengths
37
161k
target
class label
2 classes
project
stringlengths
33
167
1,488
@SuppressWarnings("unchecked") public class OObjectDatabaseTxPooled extends OObjectDatabaseTx implements ODatabasePooled { private OObjectDatabasePool ownerPool; public OObjectDatabaseTxPooled(final OObjectDatabasePool iOwnerPool, final String iURL, final String iUserName, final String iUserPassword) { ...
1no label
object_src_main_java_com_orientechnologies_orient_object_db_OObjectDatabaseTxPooled.java
395
public final class BankersRounding { public static final int DEFAULT_SCALE = 2; public static final BigDecimal ZERO = setScale(0); public static int getScaleForCurrency(Currency currency) { if (currency != null) { return currency.getDefaultFractionDigits(); } else { ...
0true
common_src_main_java_org_broadleafcommerce_common_money_BankersRounding.java
385
public class DocumentationHover implements ITextHover, ITextHoverExtension, ITextHoverExtension2 { private CeylonEditor editor; public DocumentationHover(CeylonEditor editor) { this.editor = editor; } public IRegion getHoverRegion(ITextViewer textViewer, int offset) { ...
1no label
plugins_com.redhat.ceylon.eclipse.ui_src_com_redhat_ceylon_eclipse_code_hover_DocumentationHover.java
33
@Service("blProductFieldService") public class ProductFieldServiceImpl extends AbstractRuleBuilderFieldService { @Override public void init() { fields.add(new FieldData.Builder() .label("rule_productUrl") .name("url") .operators("blcOperators_Text") ...
0true
admin_broadleaf-admin-module_src_main_java_org_broadleafcommerce_admin_web_rulebuilder_service_ProductFieldServiceImpl.java
45
public class HeartbeatIAmAliveProcessor implements MessageProcessor { private final MessageHolder output; private final ClusterContext clusterContext; public HeartbeatIAmAliveProcessor( MessageHolder output, ClusterContext clusterContext ) { this.output = output; this.clusterContext = c...
1no label
enterprise_cluster_src_main_java_org_neo4j_cluster_protocol_heartbeat_HeartbeatIAmAliveProcessor.java
360
public class FilterDefinition { protected String name; protected List<FilterParameter> params; protected String entityImplementationClassName; public String getName() { return name; } public void setName(String name) { this.name = name; } public List<FilterParameter> ...
0true
common_src_main_java_org_broadleafcommerce_common_filter_FilterDefinition.java
2,090
public class PutAllOperation extends AbstractMapOperation implements PartitionAwareOperation, BackupAwareOperation { private MapEntrySet entrySet; private boolean initialLoad = false; private List<Map.Entry<Data, Data>> backupEntrySet; private List<RecordInfo> backupRecordInfos; public PutAllOpera...
1no label
hazelcast_src_main_java_com_hazelcast_map_operation_PutAllOperation.java
1,623
public class ClusterDynamicSettingsModule extends AbstractModule { private final DynamicSettings clusterDynamicSettings; public ClusterDynamicSettingsModule() { clusterDynamicSettings = new DynamicSettings(); clusterDynamicSettings.addDynamicSetting(AwarenessAllocationDecider.CLUSTER_ROUTING_A...
1no label
src_main_java_org_elasticsearch_cluster_settings_ClusterDynamicSettingsModule.java
53
public abstract class OAbstractLock implements OLock { @Override public <V> V callInLock(final Callable<V> iCallback) throws Exception { lock(); try { return iCallback.call(); } finally { unlock(); } } }
0true
commons_src_main_java_com_orientechnologies_common_concur_lock_OAbstractLock.java
515
public class SystemTimeTest extends TestCase { private TimeSource mockTimeSource; protected void setUp() throws Exception { super.setUp(); mockTimeSource = createMock(TimeSource.class); } protected void tearDown() throws Exception { SystemTime.reset(); super.tearDown();...
0true
common_src_test_java_org_broadleafcommerce_common_time_SystemTimeTest.java
326
public interface OStoragePhysicalClusterConfiguration extends OStorageClusterConfiguration { public OStorageFileConfiguration[] getInfoFiles(); public String getMaxSize(); }
0true
core_src_main_java_com_orientechnologies_orient_core_config_OStoragePhysicalClusterConfiguration.java
198
public class OJNADirectMemory implements ODirectMemory { private static final CLibrary C_LIBRARY = OCLibraryFactory.INSTANCE.library(); public static final OJNADirectMemory INSTANCE = new OJNADirectMemory(); @Override public long allocate(byte[] bytes) { final long pointer = allocate(bytes.length)...
0true
nativeos_src_main_java_com_orientechnologies_nio_OJNADirectMemory.java
78
@SuppressWarnings("serial") static final class MapReduceMappingsToDoubleTask<K,V> extends BulkTask<K,V,Double> { final ObjectByObjectToDouble<? super K, ? super V> transformer; final DoubleByDoubleToDouble reducer; final double basis; double result; MapReduceMappi...
0true
src_main_java_jsr166e_ConcurrentHashMapV8.java
454
executor.execute(new Runnable() { @Override public void run() { for (int i = 0; i < operations; i++) { map1.put("foo-" + i, "bar"); } } }, 60, EntryEventType.ADDED, operations, 0.75, map1, map2);
0true
hazelcast-client_src_test_java_com_hazelcast_client_replicatedmap_ClientReplicatedMapTest.java
76
public class OSharedResourceExternal extends OSharedResourceAbstract implements OSharedResource { @Override public void acquireExclusiveLock() { super.acquireExclusiveLock(); } @Override public void acquireSharedLock() { super.acquireSharedLock(); } @Override public void releaseExclusiveLock() { super....
0true
commons_src_main_java_com_orientechnologies_common_concur_resource_OSharedResourceExternal.java
463
new Thread(){ public void run() { try { semaphore.acquire(); latch.countDown(); } catch (InterruptedException e) { e.printStackTrace(); } } }.start();
0true
hazelcast-client_src_test_java_com_hazelcast_client_semaphore_ClientSemaphoreTest.java
3,673
public class ParentFieldMapper extends AbstractFieldMapper<Uid> implements InternalMapper, RootMapper { public static final String NAME = "_parent"; public static final String CONTENT_TYPE = "_parent"; public static class Defaults extends AbstractFieldMapper.Defaults { public static final String ...
1no label
src_main_java_org_elasticsearch_index_mapper_internal_ParentFieldMapper.java
733
public class CollectionCompareAndRemoveRequest extends CollectionRequest { private Set<Data> valueSet; private boolean retain; public CollectionCompareAndRemoveRequest() { } public CollectionCompareAndRemoveRequest(String name, Set<Data> valueSet, boolean retain) { super(name); t...
0true
hazelcast_src_main_java_com_hazelcast_collection_client_CollectionCompareAndRemoveRequest.java
872
public class TransportSearchQueryAndFetchAction extends TransportSearchTypeAction { @Inject public TransportSearchQueryAndFetchAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, SearchServiceTransportAction searchService, SearchPhaseCon...
0true
src_main_java_org_elasticsearch_action_search_type_TransportSearchQueryAndFetchAction.java
780
searchAction.execute(searchRequest, new ActionListener<SearchResponse>() { @Override public void onResponse(SearchResponse response) { listener.onResponse(response); } @Override p...
0true
src_main_java_org_elasticsearch_action_mlt_TransportMoreLikeThisAction.java
760
public class ListRemoveOperation extends CollectionBackupAwareOperation { private int index; private long itemId; public ListRemoveOperation() { } public ListRemoveOperation(String name, int index) { super(name); this.index = index; } @Override public boolean shouldBa...
0true
hazelcast_src_main_java_com_hazelcast_collection_list_ListRemoveOperation.java
310
public enum ResourceType { FILESYSTEM,CLASSPATH }
0true
common_src_main_java_org_broadleafcommerce_common_extensibility_context_MergeFileSystemAndClassPathXMLApplicationContext.java
99
@SuppressWarnings("restriction") public class OUnsafeMemory implements ODirectMemory { public static final OUnsafeMemory INSTANCE; protected static final Unsafe unsafe; private static final boolean unaligned; private static final long UNSAFE_COPY_THRESHOLD = 1024L * 1024L; static { OUn...
0true
commons_src_main_java_com_orientechnologies_common_directmemory_OUnsafeMemory.java
388
new Thread(){ public void run() { try { if(mm.tryLock(key, 10, TimeUnit.SECONDS)){ tryLockReturnsTrue.countDown(); } } catch (InterruptedException e) { e.printStackTrace(); ...
0true
hazelcast-client_src_test_java_com_hazelcast_client_multimap_ClientMultiMapLockTest.java
4,836
public class RestGetFieldMappingAction extends BaseRestHandler { @Inject public RestGetFieldMappingAction(Settings settings, Client client, RestController controller) { super(settings, client); controller.registerHandler(GET, "/_mapping/field/{fields}", this); controller.registerHandler...
1no label
src_main_java_org_elasticsearch_rest_action_admin_indices_mapping_get_RestGetFieldMappingAction.java
3,426
nodeEngine.getExecutionService().execute(ExecutionService.SYSTEM_EXECUTOR, new Runnable() { public void run() { try { ((InitializingObject) object).initialize(); ...
1no label
hazelcast_src_main_java_com_hazelcast_spi_impl_ProxyServiceImpl.java
512
public class TransportDeleteIndexAction extends TransportMasterNodeOperationAction<DeleteIndexRequest, DeleteIndexResponse> { private final MetaDataDeleteIndexService deleteIndexService; private final DestructiveOperations destructiveOperations; @Inject public TransportDeleteIndexAction(Settings setti...
1no label
src_main_java_org_elasticsearch_action_admin_indices_delete_TransportDeleteIndexAction.java
1,653
public abstract class Names { public static String randomNodeName(URL nodeNames) { BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(nodeNames.openStream(), Charsets.UTF_8)); int numberOfNames = 0; while (reader.readLine() != n...
1no label
src_main_java_org_elasticsearch_common_Names.java
3,722
private static final Comparator<ScheduledEntry> SCHEDULED_ENTRIES_COMPARATOR = new Comparator<ScheduledEntry>() { @Override public int compare(ScheduledEntry o1, ScheduledEntry o2) { if (o1.getScheduleStartTimeInNanos() > o2.getScheduleStartTimeInNanos()) { return 1; ...
1no label
hazelcast_src_main_java_com_hazelcast_util_scheduler_SecondsBasedEntryTaskScheduler.java
261
public interface OCommandContext { public enum TIMEOUT_STRATEGY { RETURN, EXCEPTION } public Object getVariable(String iName); public Object getVariable(String iName, Object iDefaultValue); public OCommandContext setVariable(final String iName, final Object iValue); public Map<String, Object> getVar...
0true
core_src_main_java_com_orientechnologies_orient_core_command_OCommandContext.java
377
public class TransportPutRepositoryAction extends TransportMasterNodeOperationAction<PutRepositoryRequest, PutRepositoryResponse> { private final RepositoriesService repositoriesService; @Inject public TransportPutRepositoryAction(Settings settings, TransportService transportService, ClusterService cluste...
1no label
src_main_java_org_elasticsearch_action_admin_cluster_repositories_put_TransportPutRepositoryAction.java
56
public interface OLock { public void lock(); public void unlock(); public <V> V callInLock(Callable<V> iCallback) throws Exception; }
0true
commons_src_main_java_com_orientechnologies_common_concur_lock_OLock.java
1,364
public class OStorageMemory extends OStorageEmbedded { private final List<ODataSegmentMemory> dataSegments = new ArrayList<ODataSegmentMemory>(); private final List<OClusterMemory> clusters = new ArrayList<OClusterMemory>(); private final Map<String, OClusterMemory> clusterMap = new...
1no label
core_src_main_java_com_orientechnologies_orient_core_storage_impl_memory_OStorageMemory.java
End of preview. Expand in Data Studio

Dataset Card for "java_unifiedbug_2_1"

More Information needed

Downloads last month
10