method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
//<editor-fold defaultstate="collapsed" desc="Property implementations: evidenceConfidence, confidence, identifier"> public Confidence getEvidenceConfidence() { return this.identifier.getConfidence(); }
Confidence function() { return this.identifier.getConfidence(); }
/** * Get the value of evidenceConfidence * * @return the value of evidenceConfidence */
Get the value of evidenceConfidence
getEvidenceConfidence
{ "repo_name": "jeremylong/DependencyCheck", "path": "core/src/main/java/org/owasp/dependencycheck/analyzer/CPEAnalyzer.java", "license": "apache-2.0", "size": 58902 }
[ "org.owasp.dependencycheck.dependency.Confidence" ]
import org.owasp.dependencycheck.dependency.Confidence;
import org.owasp.dependencycheck.dependency.*;
[ "org.owasp.dependencycheck" ]
org.owasp.dependencycheck;
1,189,108
@Override public Map<String, String[]> getParameterMap() { // NOTE: The parameters in this map are not escaped, so when escaping is enabled, // its values may be different from those obtained via getParameter/getParameterValues return m_parameters; }
Map<String, String[]> function() { return m_parameters; }
/** * Returns a <code>Map</code> of the parameters of this request.<p> * * Request parameters are extra information sent with the request. * For HTTP servlets, parameters are contained in the query string * or posted form data.<p> * * @return a <code>Map</code> containing parameter n...
Returns a <code>Map</code> of the parameters of this request. Request parameters are extra information sent with the request. For HTTP servlets, parameters are contained in the query string or posted form data
getParameterMap
{ "repo_name": "it-tavis/opencms-core", "path": "src/org/opencms/flex/CmsFlexRequest.java", "license": "lgpl-2.1", "size": 29819 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,316,813
private Set<String> getExpectedInputParams(final Csar csar, final QName typeID, final String interfaceName, final String operationName) { final TOperation resolvedOperation; try { TEntityType entityType = ToscaEngine.resolveEntityTypeRefere...
Set<String> function(final Csar csar, final QName typeID, final String interfaceName, final String operationName) { final TOperation resolvedOperation; try { TEntityType entityType = ToscaEngine.resolveEntityTypeReference(csar, typeID); TInterface typeInterface = ToscaEngine.resolveInterface(csar, entityType, interface...
/** * Returns the input parameters of the given operation which are specified in the TOSCA definitions of the NodeType * or RelationshipType. * * @param csar The CSAR which contains the NodeType or RelationshipType with the operation * @param typeID ID of the NodeType or Relatio...
Returns the input parameters of the given operation which are specified in the TOSCA definitions of the NodeType or RelationshipType
getExpectedInputParams
{ "repo_name": "OpenTOSCA/container", "path": "org.opentosca.bus/org.opentosca.bus.management.service/src/main/java/org/opentosca/bus/management/service/impl/util/ParameterHandler.java", "license": "apache-2.0", "size": 16102 }
[ "java.util.Collections", "java.util.Optional", "java.util.Set", "java.util.stream.Collectors", "javax.xml.namespace.QName", "org.eclipse.winery.model.tosca.TEntityType", "org.eclipse.winery.model.tosca.TInterface", "org.eclipse.winery.model.tosca.TOperation", "org.eclipse.winery.model.tosca.TParamet...
import java.util.Collections; import java.util.Optional; import java.util.Set; import java.util.stream.Collectors; import javax.xml.namespace.QName; import org.eclipse.winery.model.tosca.TEntityType; import org.eclipse.winery.model.tosca.TInterface; import org.eclipse.winery.model.tosca.TOperation; import org.eclipse.w...
import java.util.*; import java.util.stream.*; import javax.xml.namespace.*; import org.eclipse.winery.model.tosca.*; import org.opentosca.container.core.common.*; import org.opentosca.container.core.engine.*; import org.opentosca.container.core.model.csar.*;
[ "java.util", "javax.xml", "org.eclipse.winery", "org.opentosca.container" ]
java.util; javax.xml; org.eclipse.winery; org.opentosca.container;
2,654,013
@Override public void componentOpened() { // change the cursor to "waiting cursor" for this operation this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); try { if (Case.existsCurrentCase()) { Case currentCase = Case.getCurrentCase();
void function() { this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); try { if (Case.existsCurrentCase()) { Case currentCase = Case.getCurrentCase();
/** * Called only when top component was closed on all workspaces before and * now is opened for the first time on some workspace. The intent is to * provide subclasses information about TopComponent's life cycle across all * existing workspaces. Subclasses will usually perform initializing tasks ...
Called only when top component was closed on all workspaces before and now is opened for the first time on some workspace. The intent is to provide subclasses information about TopComponent's life cycle across all existing workspaces. Subclasses will usually perform initializing tasks here
componentOpened
{ "repo_name": "kefir-/autopsy", "path": "Core/src/org/sleuthkit/autopsy/directorytree/DirectoryTreeTopComponent.java", "license": "apache-2.0", "size": 40567 }
[ "java.awt.Cursor", "org.sleuthkit.autopsy.casemodule.Case" ]
import java.awt.Cursor; import org.sleuthkit.autopsy.casemodule.Case;
import java.awt.*; import org.sleuthkit.autopsy.casemodule.*;
[ "java.awt", "org.sleuthkit.autopsy" ]
java.awt; org.sleuthkit.autopsy;
609,849
@Test public void testGetAttachmentContentWithoutContent() throws Exception { try { Task task = taskService.newTask(); taskService.saveTask(task); // Create URL-attachment Attachment urlAttachment = taskService .createAttachment("simpl...
void function() throws Exception { try { Task task = taskService.newTask(); taskService.saveTask(task); Attachment urlAttachment = taskService .createAttachment(STR, task.getId(), null, STR, STR, "http: taskService.saveAttachment(urlAttachment); closeResponse(executeRequest( new HttpGet(SERVER_URL_PREFIX + RestUrls.cre...
/** * Test getting the content for a single attachments for a task, for an attachment without content. GET runtime/tasks/{taskId}/attachments/{attachmentId}/content */
Test getting the content for a single attachments for a task, for an attachment without content. GET runtime/tasks/{taskId}/attachments/{attachmentId}/content
testGetAttachmentContentWithoutContent
{ "repo_name": "dbmalkovsky/flowable-engine", "path": "modules/flowable-rest/src/test/java/org/flowable/rest/service/api/runtime/TaskAttachmentResourceTest.java", "license": "apache-2.0", "size": 26712 }
[ "java.util.List", "org.apache.http.HttpStatus", "org.apache.http.client.methods.HttpGet", "org.flowable.engine.task.Attachment", "org.flowable.rest.service.api.RestUrls", "org.flowable.task.api.Task", "org.junit.Test" ]
import java.util.List; import org.apache.http.HttpStatus; import org.apache.http.client.methods.HttpGet; import org.flowable.engine.task.Attachment; import org.flowable.rest.service.api.RestUrls; import org.flowable.task.api.Task; import org.junit.Test;
import java.util.*; import org.apache.http.*; import org.apache.http.client.methods.*; import org.flowable.engine.task.*; import org.flowable.rest.service.api.*; import org.flowable.task.api.*; import org.junit.*;
[ "java.util", "org.apache.http", "org.flowable.engine", "org.flowable.rest", "org.flowable.task", "org.junit" ]
java.util; org.apache.http; org.flowable.engine; org.flowable.rest; org.flowable.task; org.junit;
2,828,313
public static void saveEventValues(final CConnection connection, final TraceList trace) throws CouldntSaveDataException { Preconditions.checkNotNull(connection, "IE02412: connection argument can not be null"); Preconditions.checkNotNull(trace, "IE02413: trace argument can not be null"); final Strin...
static void function(final CConnection connection, final TraceList trace) throws CouldntSaveDataException { Preconditions.checkNotNull(connection, STR); Preconditions.checkNotNull(trace, STR); final String query = STR + CTableNames.TRACE_EVENT_VALUES_TABLE + STR + STR; try { final PreparedStatement preparedStatement = ...
/** * Saves the event values of a trace. * * @param connection Connection to the database. * @param trace Trace whose event values are saved. * * @throws CouldntSaveDataException Thrown if the data could not be saved. */
Saves the event values of a trace
saveEventValues
{ "repo_name": "dgrif/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/Database/PostgreSQL/Functions/PostgreSQLTraceFunctions.java", "license": "apache-2.0", "size": 14734 }
[ "com.google.common.base.Preconditions", "com.google.security.zynamics.binnavi.Database", "com.google.security.zynamics.binnavi.debug.models.trace.TraceList", "com.google.security.zynamics.binnavi.debug.models.trace.TraceRegister", "com.google.security.zynamics.binnavi.debug.models.trace.interfaces.ITraceEve...
import com.google.common.base.Preconditions; import com.google.security.zynamics.binnavi.Database; import com.google.security.zynamics.binnavi.debug.models.trace.TraceList; import com.google.security.zynamics.binnavi.debug.models.trace.TraceRegister; import com.google.security.zynamics.binnavi.debug.models.trace.interf...
import com.google.common.base.*; import com.google.security.zynamics.binnavi.*; import com.google.security.zynamics.binnavi.debug.models.trace.*; import com.google.security.zynamics.binnavi.debug.models.trace.interfaces.*; import java.sql.*;
[ "com.google.common", "com.google.security", "java.sql" ]
com.google.common; com.google.security; java.sql;
1,242,196
public Threadable thread(Iterable<? extends Threadable> messages) { if (messages == null) { return null; } idTable = new HashMap<String,ThreadContainer>(); // walk through each Threadable element for (Threadable t : messages) { if (!t.isDummy()) { ...
Threadable function(Iterable<? extends Threadable> messages) { if (messages == null) { return null; } idTable = new HashMap<String,ThreadContainer>(); for (Threadable t : messages) { if (!t.isDummy()) { buildContainer(t); } } root = findRootSet(); idTable.clear(); idTable = null; pruneEmptyContainers(root); root.revers...
/** * The client passes in a list of Iterable objects, and * the Threader constructs a connected 'graph' of messages * @param messages iterable of messages to thread * @return null if messages == null or root.child == null * @since 3.0 */
The client passes in a list of Iterable objects, and the Threader constructs a connected 'graph' of messages
thread
{ "repo_name": "ossmeter/ossmeter", "path": "metric-providers/org.ossmeter.metricprovider.trans.threads/src/org/ossmeter/metricprovider/trans/newsgroups/threads/Threader.java", "license": "epl-1.0", "size": 16928 }
[ "java.util.HashMap", "org.apache.commons.net.nntp.Threadable" ]
import java.util.HashMap; import org.apache.commons.net.nntp.Threadable;
import java.util.*; import org.apache.commons.net.nntp.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
1,421,945
public Value replaceObjectLabel(ObjectLabel oldlabel, ObjectLabel newlabel) { if (oldlabel.equals(newlabel)) throw new AnalysisException("Equal object labels not expected"); if ((object_labels == null || !object_labels.contains(oldlabel)) && (getters == null || !getters.c...
Value function(ObjectLabel oldlabel, ObjectLabel newlabel) { if (oldlabel.equals(newlabel)) throw new AnalysisException(STR); if ((object_labels == null !object_labels.contains(oldlabel)) && (getters == null !getters.contains(oldlabel)) && (setters == null !setters.contains(oldlabel))) return this; Value r = new Value(...
/** * Returns a copy of this value where the given object label has been replaced, if present. * * @param oldlabel The object label to replace. * @param newlabel The object label to replace oldlabel with. */
Returns a copy of this value where the given object label has been replaced, if present
replaceObjectLabel
{ "repo_name": "cs-au-dk/TAJS", "path": "src/dk/brics/tajs/lattice/Value.java", "license": "apache-2.0", "size": 163702 }
[ "dk.brics.tajs.util.AnalysisException", "dk.brics.tajs.util.Collections", "java.util.Set" ]
import dk.brics.tajs.util.AnalysisException; import dk.brics.tajs.util.Collections; import java.util.Set;
import dk.brics.tajs.util.*; import java.util.*;
[ "dk.brics.tajs", "java.util" ]
dk.brics.tajs; java.util;
1,466,215
void updateTrackSelection(ExoTrackSelection trackSelection);
void updateTrackSelection(ExoTrackSelection trackSelection);
/** * Updates the track selection. * * @param trackSelection The new track selection instance. Must be equivalent to the previous one. */
Updates the track selection
updateTrackSelection
{ "repo_name": "ened/ExoPlayer", "path": "library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/SsChunkSource.java", "license": "apache-2.0", "size": 2391 }
[ "com.google.android.exoplayer2.trackselection.ExoTrackSelection" ]
import com.google.android.exoplayer2.trackselection.ExoTrackSelection;
import com.google.android.exoplayer2.trackselection.*;
[ "com.google.android" ]
com.google.android;
806,099
void removeEdgeListener(EdgeListener listener);
void removeEdgeListener(EdgeListener listener);
/** * Removes the specified EdgeListener from this graph. If listener is null, nothing happens. * @see EdgeListener */
Removes the specified EdgeListener from this graph. If listener is null, nothing happens
removeEdgeListener
{ "repo_name": "DimitrisAndreou/flexigraph", "path": "src/gr/forth/ics/graph/InspectableGraph.java", "license": "apache-2.0", "size": 14209 }
[ "gr.forth.ics.graph.event.EdgeListener" ]
import gr.forth.ics.graph.event.EdgeListener;
import gr.forth.ics.graph.event.*;
[ "gr.forth.ics" ]
gr.forth.ics;
2,195,197
public Future<AddressedEnvelope<DnsResponse, InetSocketAddress>> query( InetSocketAddress nameServerAddr, DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) { return query0(nameServerAddr, question, EMPTY_ADDITIONALS, promise); }
Future<AddressedEnvelope<DnsResponse, InetSocketAddress>> function( InetSocketAddress nameServerAddr, DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) { return query0(nameServerAddr, question, EMPTY_ADDITIONALS, promise); }
/** * Sends a DNS query with the specified question using the specified name server list. */
Sends a DNS query with the specified question using the specified name server list
query
{ "repo_name": "louxiu/netty", "path": "resolver-dns/src/main/java/io/netty/resolver/dns/DnsNameResolver.java", "license": "apache-2.0", "size": 40586 }
[ "io.netty.channel.AddressedEnvelope", "io.netty.handler.codec.dns.DnsQuestion", "io.netty.handler.codec.dns.DnsResponse", "io.netty.util.concurrent.Future", "io.netty.util.concurrent.Promise", "java.net.InetSocketAddress" ]
import io.netty.channel.AddressedEnvelope; import io.netty.handler.codec.dns.DnsQuestion; import io.netty.handler.codec.dns.DnsResponse; import io.netty.util.concurrent.Future; import io.netty.util.concurrent.Promise; import java.net.InetSocketAddress;
import io.netty.channel.*; import io.netty.handler.codec.dns.*; import io.netty.util.concurrent.*; import java.net.*;
[ "io.netty.channel", "io.netty.handler", "io.netty.util", "java.net" ]
io.netty.channel; io.netty.handler; io.netty.util; java.net;
1,391,350
//------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF public static DeliverableSwapFutureTrade.Meta meta() { return DeliverableSwapFutureTrade.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(DeliverableSwapFutureTrade.Meta.INSTANCE); }
static DeliverableSwapFutureTrade.Meta function() { return DeliverableSwapFutureTrade.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(DeliverableSwapFutureTrade.Meta.INSTANCE); }
/** * The meta-bean for {@code DeliverableSwapFutureTrade}. * @return the meta-bean, not null */
The meta-bean for DeliverableSwapFutureTrade
meta
{ "repo_name": "jeorme/OG-Platform", "path": "sesame/sesame-function/src/main/java/com/opengamma/sesame/trade/DeliverableSwapFutureTrade.java", "license": "apache-2.0", "size": 9541 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
563,035
HRegionLocation relocateRegion(final TableName tableName, final byte [] row) throws IOException;
HRegionLocation relocateRegion(final TableName tableName, final byte [] row) throws IOException;
/** * Find the location of the region of <i>tableName</i> that <i>row</i> * lives in, ignoring any value that might be in the cache. * @param tableName name of the table <i>row</i> is in * @param row row key you're trying to find the region of * @return HRegionLocation that describes where to find the re...
Find the location of the region of tableName that row lives in, ignoring any value that might be in the cache
relocateRegion
{ "repo_name": "HubSpot/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/ClusterConnection.java", "license": "apache-2.0", "size": 11928 }
[ "java.io.IOException", "org.apache.hadoop.hbase.HRegionLocation", "org.apache.hadoop.hbase.TableName" ]
import java.io.IOException; import org.apache.hadoop.hbase.HRegionLocation; import org.apache.hadoop.hbase.TableName;
import java.io.*; import org.apache.hadoop.hbase.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,426,038
public Map<String, Settings> getGroups(String settingPrefix, boolean ignoreNonGrouped) throws SettingsException { if (!Strings.hasLength(settingPrefix)) { throw new IllegalArgumentException("illegal setting prefix " + settingPrefix); } if (settingPrefix.charAt(settingPrefix.lengt...
Map<String, Settings> function(String settingPrefix, boolean ignoreNonGrouped) throws SettingsException { if (!Strings.hasLength(settingPrefix)) { throw new IllegalArgumentException(STR + settingPrefix); } if (settingPrefix.charAt(settingPrefix.length() - 1) != '.') { settingPrefix = settingPrefix + "."; } return getGr...
/** * Returns group settings for the given setting prefix. */
Returns group settings for the given setting prefix
getGroups
{ "repo_name": "fuchao01/elasticsearch", "path": "core/src/main/java/org/elasticsearch/common/settings/Settings.java", "license": "apache-2.0", "size": 52409 }
[ "java.util.Map", "org.elasticsearch.common.Strings" ]
import java.util.Map; import org.elasticsearch.common.Strings;
import java.util.*; import org.elasticsearch.common.*;
[ "java.util", "org.elasticsearch.common" ]
java.util; org.elasticsearch.common;
1,345,482
// retry of required fields acquisition public void generateFieldMapping( TransMeta transMeta, StepMeta stepMeta ) { try { if ( stepMeta != null ) { StepMetaInterface smi = stepMeta.getStepMetaInterface(); RowMetaInterface targetFields = smi.getRequiredFields( transMeta ); RowMetaI...
void function( TransMeta transMeta, StepMeta stepMeta ) { try { if ( stepMeta != null ) { StepMetaInterface smi = stepMeta.getStepMetaInterface(); RowMetaInterface targetFields = smi.getRequiredFields( transMeta ); RowMetaInterface sourceFields = transMeta.getPrevStepFields( stepMeta ); String[] source = sourceFields.g...
/** * Create a new SelectValues step in between this step and the previous. If the previous fields are not there, no * mapping can be made, same with the required fields. * * @param stepMeta * The target step to map against. */
Create a new SelectValues step in between this step and the previous. If the previous fields are not there, no mapping can be made, same with the required fields
generateFieldMapping
{ "repo_name": "gretchiemoran/pentaho-kettle", "path": "ui/src/org/pentaho/di/ui/spoon/Spoon.java", "license": "apache-2.0", "size": 337886 }
[ "java.util.List", "org.pentaho.di.core.SourceToTargetMapping", "org.pentaho.di.core.exception.KettleException", "org.pentaho.di.core.row.RowMetaInterface", "org.pentaho.di.core.row.ValueMetaInterface", "org.pentaho.di.trans.TransMeta", "org.pentaho.di.trans.step.StepMeta", "org.pentaho.di.trans.step.S...
import java.util.List; import org.pentaho.di.core.SourceToTargetMapping; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.core.row.RowMetaInterface; import org.pentaho.di.core.row.ValueMetaInterface; import org.pentaho.di.trans.TransMeta; import org.pentaho.di.trans.step.StepMeta; import org....
import java.util.*; import org.pentaho.di.core.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.core.row.*; import org.pentaho.di.trans.*; import org.pentaho.di.trans.step.*; import org.pentaho.di.trans.steps.selectvalues.*; import org.pentaho.di.ui.core.dialog.*;
[ "java.util", "org.pentaho.di" ]
java.util; org.pentaho.di;
2,365,540
public void dispatch(Dispatcher d, Class clazz, EventObject eventObj) { dispatch(m_listeners, d, clazz, eventObj); }
void function(Dispatcher d, Class clazz, EventObject eventObj) { dispatch(m_listeners, d, clazz, eventObj); }
/** * Dispatches an event to a set of event listeners using a specified * dispatcher object. * * @param d the dispatcher used to actually dispatch the event; this * varies according to the type of event listener. * @param clazz the class associated with the target event listener t...
Dispatches an event to a set of event listeners using a specified dispatcher object
dispatch
{ "repo_name": "maxliaops/Oscar", "path": "src/org/ungoverned/oscar/util/DispatchQueue.java", "license": "bsd-3-clause", "size": 15330 }
[ "java.util.EventObject" ]
import java.util.EventObject;
import java.util.*;
[ "java.util" ]
java.util;
1,237,030
@SuppressWarnings("unchecked") protected final N findNextLeafNode(Deque<N> stack) { N n = null; while ((n = stack.pollFirst()) != null) { if (n.getChildCount() == 0) { if (n.count() > 0) return n; } else ...
@SuppressWarnings(STR) final N function(Deque<N> stack) { N n = null; while ((n = stack.pollFirst()) != null) { if (n.getChildCount() == 0) { if (n.count() > 0) return n; } else { for (int i = n.getChildCount() - 1; i >= 0; i--) stack.addFirst((N) n.getChild(i)); } } return null; }
/** * Depth first search, in left-to-right order, of the node tree, using * an explicit stack, to find the next non-empty leaf node. */
Depth first search, in left-to-right order, of the node tree, using an explicit stack, to find the next non-empty leaf node
findNextLeafNode
{ "repo_name": "streamsupport/streamsupport", "path": "src/main/java/java8/util/stream/Nodes.java", "license": "gpl-2.0", "size": 107608 }
[ "java.util.Deque" ]
import java.util.Deque;
import java.util.*;
[ "java.util" ]
java.util;
2,075,882
private void createDefaultDB() throws MetaException { if (HMSHandler.createDefaultDB || !checkForDefaultDb) { return; } try { createDefaultDB_core(getMS()); } catch (InvalidObjectException e) { throw new MetaException(e.getMessage()); } catch (MetaException e) {...
void function() throws MetaException { if (HMSHandler.createDefaultDB !checkForDefaultDb) { return; } try { createDefaultDB_core(getMS()); } catch (InvalidObjectException e) { throw new MetaException(e.getMessage()); } catch (MetaException e) { throw e; } catch (Exception e) { assert (e instanceof RuntimeException); th...
/** * create default database if it doesn't exist * * @throws MetaException */
create default database if it doesn't exist
createDefaultDB
{ "repo_name": "grundprinzip/Impala", "path": "thirdparty/hive-0.13.1-cdh5.4.0-SNAPSHOT/src/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java", "license": "apache-2.0", "size": 197415 }
[ "org.apache.hadoop.hive.metastore.api.InvalidObjectException", "org.apache.hadoop.hive.metastore.api.MetaException" ]
import org.apache.hadoop.hive.metastore.api.InvalidObjectException; import org.apache.hadoop.hive.metastore.api.MetaException;
import org.apache.hadoop.hive.metastore.api.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
54,492
protected void addPower_1_realPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Triplex_meter_power_1_real_feature"), getString("_UI_PropertyD...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), VisGridPackage.eINSTANCE.getTriplex_meter_Power_1_real(), true, false, false, ItemPropertyDescrip...
/** * This adds a property descriptor for the Power 1real feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Power 1real feature.
addPower_1_realPropertyDescriptor
{ "repo_name": "mikesligo/visGrid", "path": "ie.tcd.gmf.visGrid.edit/src/visGrid/provider/Triplex_meterItemProvider.java", "license": "gpl-3.0", "size": 76922 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,071,559
@Test public void testUpdateTimeStamp() throws Exception { System.out.println("updateTimeStamp"); PowerStateType.PowerState.Builder powerState = PowerState.newBuilder(); long time = System.currentTimeMillis(); TimestampProcessor.updateTimestamp(time, powerState); assertEq...
void function() throws Exception { System.out.println(STR); PowerStateType.PowerState.Builder powerState = PowerState.newBuilder(); long time = System.currentTimeMillis(); TimestampProcessor.updateTimestamp(time, powerState); assertEquals(TimestampJavaTimeTransform.transform(time), powerState.getTimestamp(), STR); asse...
/** * Test of updateTimeStamp method, of class TimestampProcessor. */
Test of updateTimeStamp method, of class TimestampProcessor
testUpdateTimeStamp
{ "repo_name": "openbase/jul", "path": "extension/type/processing/src/test/java/org/openbase/jul/extension/type/processing/TimestampProcessorTest.java", "license": "lgpl-3.0", "size": 4293 }
[ "java.util.concurrent.TimeUnit", "org.junit.jupiter.api.Assertions", "org.openbase.type.domotic.state.PowerStateType" ]
import java.util.concurrent.TimeUnit; import org.junit.jupiter.api.Assertions; import org.openbase.type.domotic.state.PowerStateType;
import java.util.concurrent.*; import org.junit.jupiter.api.*; import org.openbase.type.domotic.state.*;
[ "java.util", "org.junit.jupiter", "org.openbase.type" ]
java.util; org.junit.jupiter; org.openbase.type;
2,468,548
@Test public void testEndInput() throws Exception { final OneInputStreamOperatorTestHarness<Integer, Integer> testHarness = createTestHarness(new DelayedAsyncFunction(10), -1, 2, AsyncDataStream.OutputMode.ORDERED); final long initialTime = 0L; final ConcurrentLinkedQueue<Object> expectedOutput = new Conc...
void function() throws Exception { final OneInputStreamOperatorTestHarness<Integer, Integer> testHarness = createTestHarness(new DelayedAsyncFunction(10), -1, 2, AsyncDataStream.OutputMode.ORDERED); final long initialTime = 0L; final ConcurrentLinkedQueue<Object> expectedOutput = new ConcurrentLinkedQueue<>(); expected...
/** * Delay a while before async invocation to check whether end input waits for all elements finished or not. */
Delay a while before async invocation to check whether end input waits for all elements finished or not
testEndInput
{ "repo_name": "mbode/flink", "path": "flink-streaming-java/src/test/java/org/apache/flink/streaming/api/operators/async/AsyncWaitOperatorTest.java", "license": "apache-2.0", "size": 37271 }
[ "java.util.concurrent.ConcurrentLinkedQueue", "org.apache.flink.streaming.api.datastream.AsyncDataStream", "org.apache.flink.streaming.api.watermark.Watermark", "org.apache.flink.streaming.runtime.streamrecord.StreamRecord", "org.apache.flink.streaming.util.OneInputStreamOperatorTestHarness", "org.apache....
import java.util.concurrent.ConcurrentLinkedQueue; import org.apache.flink.streaming.api.datastream.AsyncDataStream; import org.apache.flink.streaming.api.watermark.Watermark; import org.apache.flink.streaming.runtime.streamrecord.StreamRecord; import org.apache.flink.streaming.util.OneInputStreamOperatorTestHarness; i...
import java.util.concurrent.*; import org.apache.flink.streaming.api.datastream.*; import org.apache.flink.streaming.api.watermark.*; import org.apache.flink.streaming.runtime.streamrecord.*; import org.apache.flink.streaming.util.*;
[ "java.util", "org.apache.flink" ]
java.util; org.apache.flink;
1,054,269
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); Display display = wm.getDefaultDisplay(); Point size = new Point(); display.getSize(size); return size; }
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); Display display = wm.getDefaultDisplay(); Point size = new Point(); display.getSize(size); return size; }
/** * Returns the screen/display size */
Returns the screen/display size
getDisplaySize
{ "repo_name": "nbcklim/samples", "path": "MoviesArchive/tv/src/main/java/com/nbcnews/samplecode/moviesarchive/Utils.java", "license": "apache-2.0", "size": 2392 }
[ "android.content.Context", "android.graphics.Point", "android.view.Display", "android.view.WindowManager" ]
import android.content.Context; import android.graphics.Point; import android.view.Display; import android.view.WindowManager;
import android.content.*; import android.graphics.*; import android.view.*;
[ "android.content", "android.graphics", "android.view" ]
android.content; android.graphics; android.view;
1,847,197
private String getSettingsJson() { WebResource webResource = client.resource(getUrl()); try { ClientResponse response = webResource.accept("application/json").get(ClientResponse.class); String settingsString = response.getEntity(String.class); if (response.getStatus() != 200) { logger.warn("Failed...
String function() { WebResource webResource = client.resource(getUrl()); try { ClientResponse response = webResource.accept(STR).get(ClientResponse.class); String settingsString = response.getEntity(String.class); if (response.getStatus() != 200) { logger.warn(STR + response.getStatus()); return null; } return settings...
/** * Determines the settings of the Hue bridge as a Json raw data String. * * @return The settings of the bridge if they could be determined. Null * otherwise. */
Determines the settings of the Hue bridge as a Json raw data String
getSettingsJson
{ "repo_name": "MCherifiOSS/openhab", "path": "bundles/binding/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/hardware/HueBridge.java", "license": "epl-1.0", "size": 5041 }
[ "com.sun.jersey.api.client.ClientHandlerException", "com.sun.jersey.api.client.ClientResponse", "com.sun.jersey.api.client.WebResource" ]
import com.sun.jersey.api.client.ClientHandlerException; import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.WebResource;
import com.sun.jersey.api.client.*;
[ "com.sun.jersey" ]
com.sun.jersey;
1,197,492
public void setAxisLinePaint(Paint paint) { if (paint == null) { throw new IllegalArgumentException("Null 'paint' argument."); } this.axisLinePaint = paint; notifyListeners(new PlotChangeEvent(this)); }
void function(Paint paint) { if (paint == null) { throw new IllegalArgumentException(STR); } this.axisLinePaint = paint; notifyListeners(new PlotChangeEvent(this)); }
/** * Sets the paint used to draw the axis lines and sends a * {@link PlotChangeEvent} to all registered listeners. * * @param paint the paint (<code>null</code> not permitted). * * @see #getAxisLinePaint() * @since 1.0.4 */
Sets the paint used to draw the axis lines and sends a <code>PlotChangeEvent</code> to all registered listeners
setAxisLinePaint
{ "repo_name": "ibestvina/multithread-centiscape", "path": "CentiScaPe2.1/src/main/java/org/jfree/chart/plot/SpiderWebPlot.java", "license": "mit", "size": 54986 }
[ "java.awt.Paint", "org.jfree.chart.event.PlotChangeEvent" ]
import java.awt.Paint; import org.jfree.chart.event.PlotChangeEvent;
import java.awt.*; import org.jfree.chart.event.*;
[ "java.awt", "org.jfree.chart" ]
java.awt; org.jfree.chart;
346,225
public void updateStats(NetworkStats xtSnapshot, NetworkStats uidSnapshot, ArrayMap<String, NetworkIdentitySet> activeIfaces, ArrayMap<String, NetworkIdentitySet> activeUidIfaces, VpnInfo[] vpnArray, long currentTime) { StatsContext statsContext = new StatsCon...
void function(NetworkStats xtSnapshot, NetworkStats uidSnapshot, ArrayMap<String, NetworkIdentitySet> activeIfaces, ArrayMap<String, NetworkIdentitySet> activeUidIfaces, VpnInfo[] vpnArray, long currentTime) { StatsContext statsContext = new StatsContext(xtSnapshot, uidSnapshot, activeIfaces, activeUidIfaces, vpnArray,...
/** * Updates data usage statistics of registered observers and notifies if limits are reached. * * <p>It will update stats asynchronously, so it is safe to call from any thread. */
Updates data usage statistics of registered observers and notifies if limits are reached. It will update stats asynchronously, so it is safe to call from any thread
updateStats
{ "repo_name": "xorware/android_frameworks_base", "path": "services/core/java/com/android/server/net/NetworkStatsObservers.java", "license": "apache-2.0", "size": 18112 }
[ "android.net.NetworkStats", "android.util.ArrayMap", "com.android.internal.net.VpnInfo" ]
import android.net.NetworkStats; import android.util.ArrayMap; import com.android.internal.net.VpnInfo;
import android.net.*; import android.util.*; import com.android.internal.net.*;
[ "android.net", "android.util", "com.android.internal" ]
android.net; android.util; com.android.internal;
1,813,757
public static boolean isContained(String domain, String value, BatchData[] batches) { boolean contained = false; // if domain or value null, return false if (domain == null || value == null) return false; // check if statistic if (domain.equals(PlotConfig.customPlotDomainStatistics)) { for (Batc...
static boolean function(String domain, String value, BatchData[] batches) { boolean contained = false; if (domain == null value == null) return false; if (domain.equals(PlotConfig.customPlotDomainStatistics)) { for (BatchData b : batches) { if (b.getValues().getNames().contains(value)) { contained = true; continue; } }...
/** * Checks if the given value of the given domain is contained in atleast on * of the given batches. If yes, true is returned. * * @param domain * Domain to be checked. * @param value * Value to be checked. * @param batches * Array of batches to be checked. * @ret...
Checks if the given value of the given domain is contained in atleast on of the given batches. If yes, true is returned
isContained
{ "repo_name": "BenjaminSchiller/DNA", "path": "src/dna/plot/PlottingUtils.java", "license": "gpl-3.0", "size": 117803 }
[ "dna.series.data.BatchData", "dna.series.data.MetricData" ]
import dna.series.data.BatchData; import dna.series.data.MetricData;
import dna.series.data.*;
[ "dna.series.data" ]
dna.series.data;
1,052,514
public void delete() { final Map<String, BlobMetaData> blobs; try { blobs = blobContainer.listBlobs(); } catch (IOException e) { throw new IndexShardSnapshotException(shardId, "Failed to list content of gateway", e); } ...
void function() { final Map<String, BlobMetaData> blobs; try { blobs = blobContainer.listBlobs(); } catch (IOException e) { throw new IndexShardSnapshotException(shardId, STR, e); } Tuple<BlobStoreIndexShardSnapshots, Integer> tuple = buildBlobStoreIndexShardSnapshots(blobs); BlobStoreIndexShardSnapshots snapshots = tu...
/** * Delete shard snapshot */
Delete shard snapshot
delete
{ "repo_name": "PhaedrusTheGreek/elasticsearch", "path": "core/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardRepository.java", "license": "apache-2.0", "size": 45880 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "java.util.Map", "org.elasticsearch.common.blobstore.BlobMetaData", "org.elasticsearch.common.collect.Tuple", "org.elasticsearch.index.snapshots.IndexShardSnapshotException" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.elasticsearch.common.blobstore.BlobMetaData; import org.elasticsearch.common.collect.Tuple; import org.elasticsearch.index.snapshots.IndexShardSnapshotException;
import java.io.*; import java.util.*; import org.elasticsearch.common.blobstore.*; import org.elasticsearch.common.collect.*; import org.elasticsearch.index.snapshots.*;
[ "java.io", "java.util", "org.elasticsearch.common", "org.elasticsearch.index" ]
java.io; java.util; org.elasticsearch.common; org.elasticsearch.index;
504,078
@Test public void testMibWithErrors() throws Exception { if (parser.parseMib(new File(MIB_DIR, "NET-SNMP-MIB.txt"))) { Assert.fail("The NET-SNMP-MIB.txt file contains errors, so the MIB parser must generate errors."); } else { Assert.assertTrue(parser.getMissingDependenci...
void function() throws Exception { if (parser.parseMib(new File(MIB_DIR, STR))) { Assert.fail(STR); } else { Assert.assertTrue(parser.getMissingDependencies().isEmpty()); String errors = parser.getFormattedErrors(); Assert.assertNotNull(errors); System.err.println(errors); } }
/** * Test a MIB with internal errors. * * @throws Exception the exception */
Test a MIB with internal errors
testMibWithErrors
{ "repo_name": "aihua/opennms", "path": "features/mib-compiler/src/test/java/org/opennms/features/mibcompiler/JsmiMibParserTest.java", "license": "agpl-3.0", "size": 14925 }
[ "java.io.File", "org.junit.Assert" ]
import java.io.File; import org.junit.Assert;
import java.io.*; import org.junit.*;
[ "java.io", "org.junit" ]
java.io; org.junit;
678,812
public List<String> exportReportesTranBalSellado(String fileDir) throws Exception{ List<String> listPlanillaName = new ArrayList<String>(); int indiceArchivo = 0; //Genero el archivo de texto String idBalance = this.getId().toString(); String fileName = idBalance+"Sellados_"+indiceArchivo+".csv"; l...
List<String> function(String fileDir) throws Exception{ List<String> listPlanillaName = new ArrayList<String>(); int indiceArchivo = 0; String idBalance = this.getId().toString(); String fileName = idBalance+STR+indiceArchivo+".csv"; listPlanillaName.add(fileName); BufferedWriter buffer = this.createEncForPlanillaSella...
/** * Genera el Archivo de Planilla (*.cvs) para los Indeterminados generados en los Asentamientos. * * @param balance * @param fileDir * @return * @throws Exception */
Genera el Archivo de Planilla (*.cvs) para los Indeterminados generados en los Asentamientos
exportReportesTranBalSellado
{ "repo_name": "avdata99/SIAT", "path": "siat-1.0-SOURCE/src/buss/src/ar/gov/rosario/siat/bal/buss/bean/Balance.java", "license": "gpl-3.0", "size": 181568 }
[ "ar.gov.rosario.siat.base.iface.model.SiatParam", "coop.tecso.demoda.iface.helper.DateUtil", "coop.tecso.demoda.iface.helper.NumberUtil", "java.io.BufferedWriter", "java.io.FileWriter", "java.util.ArrayList", "java.util.List" ]
import ar.gov.rosario.siat.base.iface.model.SiatParam; import coop.tecso.demoda.iface.helper.DateUtil; import coop.tecso.demoda.iface.helper.NumberUtil; import java.io.BufferedWriter; import java.io.FileWriter; import java.util.ArrayList; import java.util.List;
import ar.gov.rosario.siat.base.iface.model.*; import coop.tecso.demoda.iface.helper.*; import java.io.*; import java.util.*;
[ "ar.gov.rosario", "coop.tecso.demoda", "java.io", "java.util" ]
ar.gov.rosario; coop.tecso.demoda; java.io; java.util;
1,834,564
@Test public void testBlocksAddedWhileInSafeMode() throws Exception { banner("Starting with NN0 active and NN1 standby, creating some blocks"); DFSTestUtil.createFile(fs, new Path("/test"), 3*BLOCK_SIZE, (short) 3, 1L); // Roll edit log so that, when the SBN restarts, it will load // the namespace d...
void function() throws Exception { banner(STR); DFSTestUtil.createFile(fs, new Path("/test"), 3*BLOCK_SIZE, (short) 3, 1L); nn0.getRpcServer().rollEditLog(); banner(STR); restartStandby(); assertSafeMode(nn1, 3, 3, 3, 0); banner(STR); DFSTestUtil.createFile(fs, new Path(STR), 5*BLOCK_SIZE, (short) 3, 1L); banner(STR); ...
/** * Similar to {@link #testBlocksAddedBeforeStandbyRestart()} except that * the new blocks are allocated after the SBN has restarted. So, the * blocks were not present in the original block reports at startup * but are reported separately by blockReceived calls. */
Similar to <code>#testBlocksAddedBeforeStandbyRestart()</code> except that the new blocks are allocated after the SBN has restarted. So, the blocks were not present in the original block reports at startup but are reported separately by blockReceived calls
testBlocksAddedWhileInSafeMode
{ "repo_name": "tseen/Federated-HDFS", "path": "tseenliu/FedHDFS-hadoop-src/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestHASafeMode.java", "license": "apache-2.0", "size": 32743 }
[ "org.apache.hadoop.fs.Path", "org.apache.hadoop.hdfs.DFSTestUtil", "org.junit.Test" ]
import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.DFSTestUtil; import org.junit.Test;
import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.junit.*;
[ "org.apache.hadoop", "org.junit" ]
org.apache.hadoop; org.junit;
422,877
public void testIncremental() { Instances icopy = new Instances(m_Instances); Instances result = null; boolean headerImmediate = false; try { headerImmediate = m_Filter.setInputFormat(icopy); } catch (Exception ex) { ex.printStackTrace(); fail("Exception thrown on setInputFormat...
void function() { Instances icopy = new Instances(m_Instances); Instances result = null; boolean headerImmediate = false; try { headerImmediate = m_Filter.setInputFormat(icopy); } catch (Exception ex) { ex.printStackTrace(); fail(STR + ex.getMessage()); } if (headerImmediate) { if (VERBOSE) System.err.println(STR); res...
/** * Test incremental operation. Each instance is removed as soon as it * is made available */
Test incremental operation. Each instance is removed as soon as it is made available
testIncremental
{ "repo_name": "ModelWriter/Deliverables", "path": "WP2/D2.5.2_Generation/Jeni/lib/weka-src/src/test/java/weka/filters/AbstractFilterTest.java", "license": "epl-1.0", "size": 29693 }
[ "java.io.StringWriter" ]
import java.io.StringWriter;
import java.io.*;
[ "java.io" ]
java.io;
1,055,548
public void writeHeader(Writer writer) throws IOException { if (_state != __MSG_EDITABLE) throw new IllegalStateException("Not MSG_EDITABLE"); _state = __MSG_BAD; writeRequestLine(writer); writer.write(HttpFields.__CRLF); _header.write(writer); _state = __MS...
void function(Writer writer) throws IOException { if (_state != __MSG_EDITABLE) throw new IllegalStateException(STR); _state = __MSG_BAD; writeRequestLine(writer); writer.write(HttpFields.__CRLF); _header.write(writer); _state = __MSG_SENDING; }
/** * Write the request header. Places the message in __MSG_SENDING state. * * @param writer Http output stream * @exception IOException IO problem */
Write the request header. Places the message in __MSG_SENDING state
writeHeader
{ "repo_name": "hugs/selenium", "path": "remote/server/src/java/org/openqa/jetty/http/HttpRequest.java", "license": "apache-2.0", "size": 39890 }
[ "java.io.IOException", "java.io.Writer" ]
import java.io.IOException; import java.io.Writer;
import java.io.*;
[ "java.io" ]
java.io;
1,328,458
public void start() throws IgniteCheckedException;
void function() throws IgniteCheckedException;
/** * Starts preloading. * * @throws IgniteCheckedException If start failed. */
Starts preloading
start
{ "repo_name": "ryanzz/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCachePreloader.java", "license": "apache-2.0", "size": 6355 }
[ "org.apache.ignite.IgniteCheckedException" ]
import org.apache.ignite.IgniteCheckedException;
import org.apache.ignite.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,671,629
@Test public void getEntityInsertCountAttribute() throws Exception { try { deployer.deploy(ARCHIVE_NAME); assertTrue("obtained entity-insert-count attribute from JPA persistence unit", 0 == getEntityInsertCount()); } finally { deployer.undeploy(ARCHIVE_NAME);...
void function() throws Exception { try { deployer.deploy(ARCHIVE_NAME); assertTrue(STR, 0 == getEntityInsertCount()); } finally { deployer.undeploy(ARCHIVE_NAME); } } private ManagementClient managementClient;
/** * Test that we can get the entity-insert-count attribute from the Hibernate 4 management statistics. * * @throws Exception */
Test that we can get the entity-insert-count attribute from the Hibernate 4 management statistics
getEntityInsertCountAttribute
{ "repo_name": "xasx/wildfly", "path": "testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/jpa/hibernate/management/ManagementTestCase.java", "license": "lgpl-2.1", "size": 4944 }
[ "org.jboss.as.arquillian.container.ManagementClient", "org.junit.Assert" ]
import org.jboss.as.arquillian.container.ManagementClient; import org.junit.Assert;
import org.jboss.as.arquillian.container.*; import org.junit.*;
[ "org.jboss.as", "org.junit" ]
org.jboss.as; org.junit;
1,959,794
public void addVarBinding(SnmpTrapBuilder trap, String name, String type, String encoding, String value) throws SnmpTrapHelperException { if (name == null) { throw new SnmpTrapHelperException("Name is null"); } VarBindFactory factory = (VarBindFactory) m_factoryMap.get(type); ...
void function(SnmpTrapBuilder trap, String name, String type, String encoding, String value) throws SnmpTrapHelperException { if (name == null) { throw new SnmpTrapHelperException(STR); } VarBindFactory factory = (VarBindFactory) m_factoryMap.get(type); if (factory == null) { throw new SnmpTrapHelperException(STR + typ...
/** * Create a new variable binding and add it to the specified SNMP V1 trap. * * @param trap * The trap to which the variable binding should be added. * @param name * The name (a.k.a. "id") of the variable binding to be created * @param type * Th...
Create a new variable binding and add it to the specified SNMP V1 trap
addVarBinding
{ "repo_name": "vishwaAbhinav/OpenNMS", "path": "opennms-services/src/main/java/org/opennms/netmgt/scriptd/helper/SnmpTrapHelper.java", "license": "gpl-2.0", "size": 48932 }
[ "org.opennms.netmgt.snmp.SnmpTrapBuilder" ]
import org.opennms.netmgt.snmp.SnmpTrapBuilder;
import org.opennms.netmgt.snmp.*;
[ "org.opennms.netmgt" ]
org.opennms.netmgt;
1,855,387
void acceptChildren(Visitor v) throws StandardException { super.acceptChildren(v); if (tableElementList != null) { tableElementList.accept(v); } }
void acceptChildren(Visitor v) throws StandardException { super.acceptChildren(v); if (tableElementList != null) { tableElementList.accept(v); } }
/** * Accept the visitor for all visitable children of this node. * * @param v the visitor * * @exception StandardException on error */
Accept the visitor for all visitable children of this node
acceptChildren
{ "repo_name": "SnappyDataInc/snappy-store", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/sql/compile/CreateTableNode.java", "license": "apache-2.0", "size": 35605 }
[ "com.pivotal.gemfirexd.internal.iapi.error.StandardException", "com.pivotal.gemfirexd.internal.iapi.sql.compile.Visitor" ]
import com.pivotal.gemfirexd.internal.iapi.error.StandardException; import com.pivotal.gemfirexd.internal.iapi.sql.compile.Visitor;
import com.pivotal.gemfirexd.internal.iapi.error.*; import com.pivotal.gemfirexd.internal.iapi.sql.compile.*;
[ "com.pivotal.gemfirexd" ]
com.pivotal.gemfirexd;
2,028,873
public void append(final String string, final boolean encode) { if (encode) { appendOptional(WebUtilities.encode(string)); } else { // unescaped content still has to be XML compliant. write(HtmlToXMLUtil.unescapeToXML(string)); } }
void function(final String string, final boolean encode) { if (encode) { appendOptional(WebUtilities.encode(string)); } else { write(HtmlToXMLUtil.unescapeToXML(string)); } }
/** * Appends the string to this XmlStringBuilder. XML values are not escaped. * * @param string the String to append. * @param encode true to encode the string before output, false to output as is */
Appends the string to this XmlStringBuilder. XML values are not escaped
append
{ "repo_name": "Joshua-Barclay/wcomponents", "path": "wcomponents-core/src/main/java/com/github/bordertech/wcomponents/XmlStringBuilder.java", "license": "gpl-3.0", "size": 9212 }
[ "com.github.bordertech.wcomponents.util.HtmlToXMLUtil" ]
import com.github.bordertech.wcomponents.util.HtmlToXMLUtil;
import com.github.bordertech.wcomponents.util.*;
[ "com.github.bordertech" ]
com.github.bordertech;
1,497,761
if (!Registry.keyTemplateMap().containsKey(name)) { throw new GeneralSecurityException("cannot find key template: " + name); } return Registry.keyTemplateMap().get(name); } private KeyTemplates() {}
if (!Registry.keyTemplateMap().containsKey(name)) { throw new GeneralSecurityException(STR + name); } return Registry.keyTemplateMap().get(name); } private KeyTemplates() {}
/** * Returns a key template that was registered with the {@link Registry} as {@code name}. * * @throws GeneralSecurityException if cannot find key template with name {@code name} in the * Registry * @since 1.6.0 */
Returns a key template that was registered with the <code>Registry</code> as name
get
{ "repo_name": "google/tink", "path": "java_src/src/main/java/com/google/crypto/tink/KeyTemplates.java", "license": "apache-2.0", "size": 1451 }
[ "java.security.GeneralSecurityException" ]
import java.security.GeneralSecurityException;
import java.security.*;
[ "java.security" ]
java.security;
1,974,131
public ContribuyenteDefinition getUnionConAtrVal(boolean formatValues4View) throws Exception { // Recupero la definicion de los atributos del contribuyente para la web // con sus valores por defecto. ContribuyenteDefinition contrDef4Web = Contribuyente.getDefinitionForWeb(); // Si n...
ContribuyenteDefinition function(boolean formatValues4View) throws Exception { ContribuyenteDefinition contrDef4Web = Contribuyente.getDefinitionForWeb(); if (this.getListIdsTitulares() == null this.getListIdsTitulares().length == 0){ this.getListTitularesCuentaLight(new Date()); } if (this.getListIdsTitulares() == nul...
/** * - Obtiene un ContribuyenteDefinition con los atributos valirizados correspondientes * a la union de los atributos de los contribuyentes(titulares) de la cuenta. * * - Teniendo en cuenta el peso del valor de los atributos, "Si" pesa mas que "No". * */
- Obtiene un ContribuyenteDefinition con los atributos valirizados correspondientes a la union de los atributos de los contribuyentes(titulares) de la cuenta. - Teniendo en cuenta el peso del valor de los atributos, "Si" pesa mas que "No"
getUnionConAtrVal
{ "repo_name": "avdata99/SIAT", "path": "siat-1.0-SOURCE/src/buss/src/ar/gov/rosario/siat/pad/buss/bean/Cuenta.java", "license": "gpl-3.0", "size": 164803 }
[ "ar.gov.rosario.siat.pad.iface.model.ConAtrDefinition", "ar.gov.rosario.siat.pad.iface.model.ContribuyenteDefinition", "coop.tecso.demoda.iface.helper.StringUtil", "java.util.Date", "java.util.List" ]
import ar.gov.rosario.siat.pad.iface.model.ConAtrDefinition; import ar.gov.rosario.siat.pad.iface.model.ContribuyenteDefinition; import coop.tecso.demoda.iface.helper.StringUtil; import java.util.Date; import java.util.List;
import ar.gov.rosario.siat.pad.iface.model.*; import coop.tecso.demoda.iface.helper.*; import java.util.*;
[ "ar.gov.rosario", "coop.tecso.demoda", "java.util" ]
ar.gov.rosario; coop.tecso.demoda; java.util;
654,204
private String inferMimeType(ServletRequest request) { String path = ((HttpServletRequest)request).getRequestURI(); ContextHandler.SContext sContext = (ContextHandler.SContext)config.getServletContext(); MimeTypes mimes = sContext.getContextHandler().getMimeTypes(); Buffer mimeBuffer = mimes...
String function(ServletRequest request) { String path = ((HttpServletRequest)request).getRequestURI(); ContextHandler.SContext sContext = (ContextHandler.SContext)config.getServletContext(); MimeTypes mimes = sContext.getContextHandler().getMimeTypes(); Buffer mimeBuffer = mimes.getMimeByExtension(path); return (mimeBu...
/** * Infer the mime type for the response based on the extension of the request * URI. Returns null if unknown. */
Infer the mime type for the response based on the extension of the request URI. Returns null if unknown
inferMimeType
{ "repo_name": "Shmuma/hadoop", "path": "src/core/org/apache/hadoop/http/HttpServer.java", "license": "apache-2.0", "size": 32245 }
[ "javax.servlet.ServletRequest", "javax.servlet.http.HttpServletRequest", "org.mortbay.io.Buffer", "org.mortbay.jetty.MimeTypes", "org.mortbay.jetty.handler.ContextHandler" ]
import javax.servlet.ServletRequest; import javax.servlet.http.HttpServletRequest; import org.mortbay.io.Buffer; import org.mortbay.jetty.MimeTypes; import org.mortbay.jetty.handler.ContextHandler;
import javax.servlet.*; import javax.servlet.http.*; import org.mortbay.io.*; import org.mortbay.jetty.*; import org.mortbay.jetty.handler.*;
[ "javax.servlet", "org.mortbay.io", "org.mortbay.jetty" ]
javax.servlet; org.mortbay.io; org.mortbay.jetty;
1,609,681
public static java.util.List extractInvestigationIndexList(ims.domain.ILightweightDomainFactory domainFactory, ims.ocs_if.vo.IfInvIdxLiteVoCollection voCollection) { return extractInvestigationIndexList(domainFactory, voCollection, null, new HashMap()); }
static java.util.List function(ims.domain.ILightweightDomainFactory domainFactory, ims.ocs_if.vo.IfInvIdxLiteVoCollection voCollection) { return extractInvestigationIndexList(domainFactory, voCollection, null, new HashMap()); }
/** * Create the ims.ocrr.configuration.domain.objects.InvestigationIndex list from the value object collection. * @param domainFactory - used to create existing (persistent) domain objects. * @param voCollection - the collection of value objects */
Create the ims.ocrr.configuration.domain.objects.InvestigationIndex list from the value object collection
extractInvestigationIndexList
{ "repo_name": "open-health-hub/openMAXIMS", "path": "openmaxims_workspace/ValueObjects/src/ims/ocs_if/vo/domain/IfInvIdxLiteVoAssembler.java", "license": "agpl-3.0", "size": 19754 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
2,159,365
Message selectByPrimaryKey(Integer id);
Message selectByPrimaryKey(Integer id);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table m_prj_message * * @mbg.generated Sat Apr 20 17:20:23 CDT 2019 */
This method was generated by MyBatis Generator. This method corresponds to the database table m_prj_message
selectByPrimaryKey
{ "repo_name": "esofthead/mycollab", "path": "mycollab-services/src/main/java/com/mycollab/module/project/dao/MessageMapper.java", "license": "agpl-3.0", "size": 4823 }
[ "com.mycollab.module.project.domain.Message" ]
import com.mycollab.module.project.domain.Message;
import com.mycollab.module.project.domain.*;
[ "com.mycollab.module" ]
com.mycollab.module;
901,877
public FrameworkMessage listenForMessageFromSimulationEngine( final SYSTEM_TYPE targetSystemType, final String clientID) { return commonMessagingImplementationAPI.listenForMessageFromSimulationEngine( targetSystemType, clientID); }
FrameworkMessage function( final SYSTEM_TYPE targetSystemType, final String clientID) { return commonMessagingImplementationAPI.listenForMessageFromSimulationEngine( targetSystemType, clientID); }
/** * Listen for message from simulation engine. * * @param targetSystemType * the target system type * @param clientID * the client ID * @return the framework message */
Listen for message from simulation engine
listenForMessageFromSimulationEngine
{ "repo_name": "OpenSimulationSystems/CABSF_Java", "path": "CommonSimulationFramework/src/org/simulationsystems/csf/common/internal/messaging/bridge/abstraction/CommonMessagingAbstraction.java", "license": "mit", "size": 4977 }
[ "org.simulationsystems.csf.common.csfmodel.messaging.messages.FrameworkMessage" ]
import org.simulationsystems.csf.common.csfmodel.messaging.messages.FrameworkMessage;
import org.simulationsystems.csf.common.csfmodel.messaging.messages.*;
[ "org.simulationsystems.csf" ]
org.simulationsystems.csf;
1,762,307
long dataContentLength(); /** * Read the data after a response. * <p> * Use this method to red the data after reading a data-enriched response. * Calling this method when the scope returned by {@linkplain #currentScope()} is not * {@linkplain #SCOPE_DATA} will result in a {@linkplain I...
long dataContentLength(); /** * Read the data after a response. * <p> * Use this method to red the data after reading a data-enriched response. * Calling this method when the scope returned by {@linkplain #currentScope()} is not * {@linkplain #SCOPE_DATA} will result in a {@linkplain IllegalStateException} error. * * @...
/** * Get the length of the data that follows the response * <p> * * @return a long representing the data length */
Get the length of the data that follows the response
dataContentLength
{ "repo_name": "pCloud/pcloud-networking-java", "path": "protocol/src/main/java/com/pcloud/networking/protocol/ProtocolResponseReader.java", "license": "apache-2.0", "size": 3290 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,858,785
@Override public InputStream get() throws IOException { throw new IOException("Can not read from virtual root"); }
InputStream function() throws IOException { throw new IOException(STR); }
/** * Can not read from virtual root * * @throws IOException * when called */
Can not read from virtual root
get
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.kernel.service/src/com/ibm/ws/kernel/service/location/internal/LocalDirectoryResource.java", "license": "epl-1.0", "size": 3864 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,585,209
public List<Post> selectModifiedPosts(final EnumSet<Post.Type> types, final long startTimestamp, final long startId, final int limit, final boolean withR...
List<Post> function(final EnumSet<Post.Type> types, final long startTimestamp, final long startId, final int limit, final boolean withResolve) throws SQLException { List<Post.Builder> builders = Lists.newArrayListWithExpectedSize(limit < 1024 ? limit : 1024); Connection conn = null; PreparedStatement stmt = null; Resul...
/** * Selects recently modified posts, in ascending order after a specified timestamp and id. * @param types The set of post type. May be {@code null} or empty for all types. * @param startTimestamp The timestamp after which posts were modified. * @param startId The start id. Posts that have timestamp t...
Selects recently modified posts, in ascending order after a specified timestamp and id
selectModifiedPosts
{ "repo_name": "attribyte/wpdb", "path": "src/main/java/org/attribyte/wp/db/DB.java", "license": "apache-2.0", "size": 100265 }
[ "com.codahale.metrics.Timer", "com.google.common.collect.Lists", "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.sql.Timestamp", "java.util.EnumSet", "java.util.List", "org.attribyte.util.SQLUtil", "org.attribyte.wp.model.Post" ]
import com.codahale.metrics.Timer; import com.google.common.collect.Lists; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Timestamp; import java.util.EnumSet; import java.util.List; import org.attribyte.util.SQLUtil; import org.att...
import com.codahale.metrics.*; import com.google.common.collect.*; import java.sql.*; import java.util.*; import org.attribyte.util.*; import org.attribyte.wp.model.*;
[ "com.codahale.metrics", "com.google.common", "java.sql", "java.util", "org.attribyte.util", "org.attribyte.wp" ]
com.codahale.metrics; com.google.common; java.sql; java.util; org.attribyte.util; org.attribyte.wp;
1,187,372
Application convert(ServiceInstance instance);
Application convert(ServiceInstance instance);
/** * Converts a service instance to a application to be registered. * * @param instance the service instance. * @return Application */
Converts a service instance to a application to be registered
convert
{ "repo_name": "librucha/spring-boot-admin", "path": "spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/discovery/ServiceInstanceConverter.java", "license": "apache-2.0", "size": 1116 }
[ "de.codecentric.boot.admin.model.Application", "org.springframework.cloud.client.ServiceInstance" ]
import de.codecentric.boot.admin.model.Application; import org.springframework.cloud.client.ServiceInstance;
import de.codecentric.boot.admin.model.*; import org.springframework.cloud.client.*;
[ "de.codecentric.boot", "org.springframework.cloud" ]
de.codecentric.boot; org.springframework.cloud;
2,585,311
protected void handleHelpRequest(HelpEvent event) { Object oldData = event.data; event.data = this; fireHelpRequested(event); event.data = oldData; }
void function(HelpEvent event) { Object oldData = event.data; event.data = this; fireHelpRequested(event); event.data = oldData; }
/** * Handles a help request from the underlying SWT control. * The default behavior is to fire a help request, * with the event's data modified to hold this viewer. * @param event the event * */
Handles a help request from the underlying SWT control. The default behavior is to fire a help request, with the event's data modified to hold this viewer
handleHelpRequest
{ "repo_name": "ControlSystemStudio/org.csstudio.iter", "path": "plugins/org.eclipse.jface/src/org/eclipse/jface/viewers/Viewer.java", "license": "epl-1.0", "size": 13139 }
[ "org.eclipse.swt.events.HelpEvent" ]
import org.eclipse.swt.events.HelpEvent;
import org.eclipse.swt.events.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,536,755
public Collection<String> getPresenceStates() { return presenceStates; } /** * Returns if the owner has subscribed to receive notification of new items only * or of new nodes only. When subscribed to a Leaf Node then only {@code items}
Collection<String> function() { return presenceStates; } /** * Returns if the owner has subscribed to receive notification of new items only * or of new nodes only. When subscribed to a Leaf Node then only {@code items}
/** * The presence states for which an entity wants to receive notifications. When the owner * is in any of the returned presence states then he is allowed to receive notifications. * * @return the presence states for which an entity wants to receive notifications. * (e.g. available, aw...
The presence states for which an entity wants to receive notifications. When the owner is in any of the returned presence states then he is allowed to receive notifications
getPresenceStates
{ "repo_name": "speedy01/Openfire", "path": "xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/NodeSubscription.java", "license": "apache-2.0", "size": 37062 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,439,297
private List<String> splitSentence(String sentence) { List<String> parts = new ArrayList<String>(); StringBuilder sentencePart = new StringBuilder(); Iterator<String> wordIterator = Arrays.asList(StringUtils.split(sentence, ' ')).iterator(); while (wordIterator.hasNext()) { ...
List<String> function(String sentence) { List<String> parts = new ArrayList<String>(); StringBuilder sentencePart = new StringBuilder(); Iterator<String> wordIterator = Arrays.asList(StringUtils.split(sentence, ' ')).iterator(); while (wordIterator.hasNext()) { String nextWord = wordIterator.next().trim(); if (wordLeng...
/** * Splits a sentence into multiple chunks if the sentence exceeds the {@link #maxSentenceLength}. * * @param sentence * The sentence to split * @return A list containing the split chunks of the sentence */
Splits a sentence into multiple chunks if the sentence exceeds the <code>#maxSentenceLength</code>
splitSentence
{ "repo_name": "computergeek1507/openhab", "path": "bundles/io/org.openhab.io.multimedia.tts.googletts/src/main/java/org/openhab/io/multimedia/internal/tts/GoogleTTSTextProcessor.java", "license": "epl-1.0", "size": 4404 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.Iterator", "java.util.List", "org.apache.commons.lang.StringUtils" ]
import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import org.apache.commons.lang.StringUtils;
import java.util.*; import org.apache.commons.lang.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
2,242,147
public void scaleGlobal(float X, float Y, float Z, Vector3D scalingPoint) { for (MTComponent c : this.getChildList()){ c.scaleGlobal(X, Y, Z, scalingPoint); if(visualComponentGroup!=null) { for(MTComponent comp : visualComponentGroup.getChildren()) { comp.scaleGlobal(X, Y, Z, scali...
void function(float X, float Y, float Z, Vector3D scalingPoint) { for (MTComponent c : this.getChildList()){ c.scaleGlobal(X, Y, Z, scalingPoint); if(visualComponentGroup!=null) { for(MTComponent comp : visualComponentGroup.getChildren()) { comp.scaleGlobal(X, Y, Z, scalingPoint); } } } }
/** * scales the polygon around the scalingPoint, currently dosent support scaling around the Z axis. * * @param X the x * @param Y the y * @param Z the z * @param scalingPoint the scaling point */
scales the polygon around the scalingPoint, currently dosent support scaling around the Z axis
scaleGlobal
{ "repo_name": "hkaj/CoFITS", "path": "mt4j/MT4j/extensions/org/mt4jx/input/inputProcessors/componentProcessors/Group3DProcessorNew/Cluster.java", "license": "gpl-2.0", "size": 8780 }
[ "org.mt4j.components.MTComponent", "org.mt4j.util.math.Vector3D" ]
import org.mt4j.components.MTComponent; import org.mt4j.util.math.Vector3D;
import org.mt4j.components.*; import org.mt4j.util.math.*;
[ "org.mt4j.components", "org.mt4j.util" ]
org.mt4j.components; org.mt4j.util;
1,201,512
public Date getCreatedTime() { return toDateFromLongFormat(createdTime); }
Date function() { return toDateFromLongFormat(createdTime); }
/** * The time the message was initially created. * * @return The time the message was initially created. */
The time the message was initially created
getCreatedTime
{ "repo_name": "dburgmann/fbRecommender", "path": "lib/restfb-1.6.11/source/library/com/restfb/types/Message.java", "license": "gpl-3.0", "size": 2455 }
[ "com.restfb.util.DateUtils", "java.util.Date" ]
import com.restfb.util.DateUtils; import java.util.Date;
import com.restfb.util.*; import java.util.*;
[ "com.restfb.util", "java.util" ]
com.restfb.util; java.util;
1,956,025
Set<Platform> retrievePlatformsInStudy(Study study);
Set<Platform> retrievePlatformsInStudy(Study study);
/** * Retrieve all platforms from a study. * @param study - object to use. * @return a set of platform from the study. */
Retrieve all platforms from a study
retrievePlatformsInStudy
{ "repo_name": "NCIP/caintegrator", "path": "caintegrator-war/src/gov/nih/nci/caintegrator/application/workspace/WorkspaceService.java", "license": "bsd-3-clause", "size": 5463 }
[ "gov.nih.nci.caintegrator.domain.genomic.Platform", "gov.nih.nci.caintegrator.domain.translational.Study", "java.util.Set" ]
import gov.nih.nci.caintegrator.domain.genomic.Platform; import gov.nih.nci.caintegrator.domain.translational.Study; import java.util.Set;
import gov.nih.nci.caintegrator.domain.genomic.*; import gov.nih.nci.caintegrator.domain.translational.*; import java.util.*;
[ "gov.nih.nci", "java.util" ]
gov.nih.nci; java.util;
692,478
public static ArrayList<Solutions<Variable<?>>> readFrontsFromFile(String filePath) throws FileNotFoundException, IOException { ArrayList<Solutions<Variable<?>>> result = new ArrayList<Solutions<Variable<?>>>(); BufferedReader reader = new BufferedReader(new FileReader(new File(filePath))); String line = ...
static ArrayList<Solutions<Variable<?>>> function(String filePath) throws FileNotFoundException, IOException { ArrayList<Solutions<Variable<?>>> result = new ArrayList<Solutions<Variable<?>>>(); BufferedReader reader = new BufferedReader(new FileReader(new File(filePath))); String line = reader.readLine(); Solutions<Va...
/** * Function that reads N sets of solutions from a file. * * @param filePath File path * @return The set of solutions in the archive. Each solution set is separated * in the file by a blank line. */
Function that reads N sets of solutions from a file
readFrontsFromFile
{ "repo_name": "jlrisco/hero", "path": "src/main/java/hero/core/problem/Solutions.java", "license": "gpl-3.0", "size": 6480 }
[ "java.io.BufferedReader", "java.io.File", "java.io.FileNotFoundException", "java.io.FileReader", "java.io.IOException", "java.util.ArrayList" ]
import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
983,363
Objects.requireNonNull(cache, "Cache must not be null"); return new CacheImpl<>(cache); }
Objects.requireNonNull(cache, STR); return new CacheImpl<>(cache); }
/** * Creates a Retry with default configuration. * * @param cache the wrapped JCache instance * @param <K> the type of key * @param <V> the type of value * @return a Cache */
Creates a Retry with default configuration
of
{ "repo_name": "RobWin/circuitbreaker-java8", "path": "resilience4j-cache/src/main/java/io/github/resilience4j/cache/Cache.java", "license": "apache-2.0", "size": 5151 }
[ "io.github.resilience4j.cache.internal.CacheImpl", "java.util.Objects" ]
import io.github.resilience4j.cache.internal.CacheImpl; import java.util.Objects;
import io.github.resilience4j.cache.internal.*; import java.util.*;
[ "io.github.resilience4j", "java.util" ]
io.github.resilience4j; java.util;
794,759
public static KeyRange convertToInclusiveExclusiveRange (KeyRange partialRange, RowKeySchema schema, ImmutableBytesWritable ptr) { // Ensure minMaxRange is lower inclusive and upper exclusive, as that's // what we need to intersect against for the HBase scan. byte[] lowerRange = partialRange...
static KeyRange function (KeyRange partialRange, RowKeySchema schema, ImmutableBytesWritable ptr) { byte[] lowerRange = partialRange.getLowerRange(); if (!partialRange.lowerUnbound()) { if (!partialRange.isLowerInclusive()) { lowerRange = ScanUtil.nextKey(lowerRange, schema, ptr); } } byte[] upperRange = partialRange.g...
/** * Converts a partially qualified KeyRange into a KeyRange with a * inclusive lower bound and an exclusive upper bound, widening * as necessary. */
Converts a partially qualified KeyRange into a KeyRange with a inclusive lower bound and an exclusive upper bound, widening as necessary
convertToInclusiveExclusiveRange
{ "repo_name": "ohadshacham/phoenix", "path": "phoenix-core/src/main/java/org/apache/phoenix/util/ScanUtil.java", "license": "apache-2.0", "size": 44595 }
[ "org.apache.hadoop.hbase.io.ImmutableBytesWritable", "org.apache.phoenix.query.KeyRange", "org.apache.phoenix.schema.RowKeySchema" ]
import org.apache.hadoop.hbase.io.ImmutableBytesWritable; import org.apache.phoenix.query.KeyRange; import org.apache.phoenix.schema.RowKeySchema;
import org.apache.hadoop.hbase.io.*; import org.apache.phoenix.query.*; import org.apache.phoenix.schema.*;
[ "org.apache.hadoop", "org.apache.phoenix" ]
org.apache.hadoop; org.apache.phoenix;
2,559,685
public Serializable context_getRollbackOnly() throws RemoteException;
Serializable function() throws RemoteException;
/** * Insert the method's description here. * Creation date: (09/21/2000 4:09:42 PM) */
Insert the method's description here. Creation date: (09/21/2000 4:09:42 PM)
context_getRollbackOnly
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.ejbcontainer.legacy_fat/test-applications/EJB2XSLRemoteSpecEJB.jar/src/com/ibm/ejb2x/base/spec/slr/ejb/SLRa.java", "license": "epl-1.0", "size": 6110 }
[ "java.io.Serializable", "java.rmi.RemoteException" ]
import java.io.Serializable; import java.rmi.RemoteException;
import java.io.*; import java.rmi.*;
[ "java.io", "java.rmi" ]
java.io; java.rmi;
606,933
protected void sequence_S_Species(ISerializationContext context, S_Species semanticObject) { genericSequencer.createSequence(context, semanticObject); }
void function(ISerializationContext context, S_Species semanticObject) { genericSequencer.createSequence(context, semanticObject); }
/** * Contexts: * S_Section returns S_Species * S_Species returns S_Species * Statement returns S_Species * S_Declaration returns S_Species * GamlDefinition returns S_Species * TypeDefinition returns S_Species * VarDefinition returns S_Species * ActionDefinition returns...
Contexts: S_Section returns S_Species S_Species returns S_Species Statement returns S_Species S_Declaration returns S_Species GamlDefinition returns S_Species TypeDefinition returns S_Species VarDefinition returns S_Species ActionDefinition returns S_Species Constraint: (key=_SpeciesKey firstFacet='name:'? name=ID face...
sequence_S_Species
{ "repo_name": "gama-platform/gama", "path": "msi.gama.lang.gaml/src-gen/msi/gama/lang/gaml/serializer/AbstractGamlSemanticSequencer.java", "license": "gpl-3.0", "size": 77218 }
[ "org.eclipse.xtext.serializer.ISerializationContext" ]
import org.eclipse.xtext.serializer.ISerializationContext;
import org.eclipse.xtext.serializer.*;
[ "org.eclipse.xtext" ]
org.eclipse.xtext;
126,383
public ServiceCall<Error> head410Async(final ServiceCallback<Error> serviceCallback) { return ServiceCall.create(head410Async(), serviceCallback); }
ServiceCall<Error> function(final ServiceCallback<Error> serviceCallback) { return ServiceCall.create(head410Async(), serviceCallback); }
/** * Return 410 status code - should be represented in the client as an error. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @return the {@link ServiceCall} object */
Return 410 status code - should be represented in the client as an error
head410Async
{ "repo_name": "haocs/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/http/implementation/HttpClientFailuresImpl.java", "license": "mit", "size": 78284 }
[ "com.microsoft.rest.ServiceCall", "com.microsoft.rest.ServiceCallback" ]
import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,421,731
public Iterator<GraphNode> nodeIterator();
Iterator<GraphNode> function();
/** * Returns an iterator for the nodes in the Graph. These iterators are fail safe. * * @return Iterator */
Returns an iterator for the nodes in the Graph. These iterators are fail safe
nodeIterator
{ "repo_name": "pegasus-isi/pegasus", "path": "src/edu/isi/pegasus/planner/partitioner/graph/Graph.java", "license": "apache-2.0", "size": 4972 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,350,012
protected void writeSoapRequest(URI requestUrl, EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { if (writer.isRequireWSSecurityUtilityNamespace()) { writer.writeAttributeValue("xmlns", EwsUtilities.WSSecurityUtilityNamespacePrefix, EwsUtili...
void function(URI requestUrl, EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { if (writer.isRequireWSSecurityUtilityNamespace()) { writer.writeAttributeValue("xmlns", EwsUtilities.WSSecurityUtilityNamespacePrefix, EwsUtilities.WSSecurityUtilityNamespace); } writer.writeStartDocu...
/** * Writes the autodiscover SOAP request. * * @param requestUrl Request URL. * @throws javax.xml.stream.XMLStreamException the xML stream exception * @throws microsoft.exchange.webservices.data.exception.ServiceXmlSerializationException the service xml serialization exception */
Writes the autodiscover SOAP request
writeSoapRequest
{ "repo_name": "relateiq/ews-java-api", "path": "src/main/java/microsoft/exchange/webservices/data/autodiscover/request/AutodiscoverRequest.java", "license": "mit", "size": 27497 }
[ "javax.xml.stream.XMLStreamException" ]
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.*;
[ "javax.xml" ]
javax.xml;
483,793
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) private void fancyShow(boolean immediate) { if (! immediate) { hideAnimator.cancel(); hideAnimator.alpha(1) .setDuration(getResources() .getInteger(android.R.integer.config_...
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) void function(boolean immediate) { if (! immediate) { hideAnimator.cancel(); hideAnimator.alpha(1) .setDuration(getResources() .getInteger(android.R.integer.config_shortAnimTime)) .setListener(null); } else setAlpha(1); }
/** Does fancy fade in effects for versions that support it. * @param immediate This indicates whether the transition * should be immediate or should fade in slowly. */
Does fancy fade in effects for versions that support it
fancyShow
{ "repo_name": "Mark-Lauman/AndroidTools", "path": "tools/src/main/java/ca/marklauman/tools/popups/PopupUndo.java", "license": "apache-2.0", "size": 7836 }
[ "android.annotation.TargetApi", "android.os.Build" ]
import android.annotation.TargetApi; import android.os.Build;
import android.annotation.*; import android.os.*;
[ "android.annotation", "android.os" ]
android.annotation; android.os;
1,925,137
int insertSelective(ProjectCustomizeView record);
int insertSelective(ProjectCustomizeView record);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table m_prj_customize_view * * @mbggenerated Mon Sep 21 13:52:03 ICT 2015 */
This method was generated by MyBatis Generator. This method corresponds to the database table m_prj_customize_view
insertSelective
{ "repo_name": "maduhu/mycollab", "path": "mycollab-services/src/main/java/com/esofthead/mycollab/module/project/dao/ProjectCustomizeViewMapper.java", "license": "agpl-3.0", "size": 5023 }
[ "com.esofthead.mycollab.module.project.domain.ProjectCustomizeView" ]
import com.esofthead.mycollab.module.project.domain.ProjectCustomizeView;
import com.esofthead.mycollab.module.project.domain.*;
[ "com.esofthead.mycollab" ]
com.esofthead.mycollab;
1,363,095
@CalledByNative public void showRepostFormWarningDialog(ContentViewCore contentViewCore) { }
void function(ContentViewCore contentViewCore) { }
/** * Report a form resubmission. The overwriter of this function should eventually call * either of ContentViewCore.ContinuePendingReload or ContentViewCore.CancelPendingReload. */
Report a form resubmission. The overwriter of this function should eventually call either of ContentViewCore.ContinuePendingReload or ContentViewCore.CancelPendingReload
showRepostFormWarningDialog
{ "repo_name": "TeamEOS/external_chromium_org", "path": "components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java", "license": "bsd-3-clause", "size": 5131 }
[ "org.chromium.content.browser.ContentViewCore" ]
import org.chromium.content.browser.ContentViewCore;
import org.chromium.content.browser.*;
[ "org.chromium.content" ]
org.chromium.content;
1,880,102
public static TermsOfServiceAcceptanceFrequency decode(final String tosAcceptanceFrequency) { if (StringUtil.isDefined(tosAcceptanceFrequency)) { for (TermsOfServiceAcceptanceFrequency current : TermsOfServiceAcceptanceFrequency.values()) { if (current.name().equalsIgnoreCase(tosAcceptanceFrequency)...
static TermsOfServiceAcceptanceFrequency function(final String tosAcceptanceFrequency) { if (StringUtil.isDefined(tosAcceptanceFrequency)) { for (TermsOfServiceAcceptanceFrequency current : TermsOfServiceAcceptanceFrequency.values()) { if (current.name().equalsIgnoreCase(tosAcceptanceFrequency)) { return current; } } }...
/** * Decode from a string value. * NEVER by default (even the given value is unknown). * @param tosAcceptanceFrequency * @return */
Decode from a string value. NEVER by default (even the given value is unknown)
decode
{ "repo_name": "auroreallibe/Silverpeas-Core", "path": "core-library/src/main/java/org/silverpeas/core/security/authentication/verifier/TermsOfServiceAcceptanceFrequency.java", "license": "agpl-3.0", "size": 3622 }
[ "org.silverpeas.core.util.StringUtil" ]
import org.silverpeas.core.util.StringUtil;
import org.silverpeas.core.util.*;
[ "org.silverpeas.core" ]
org.silverpeas.core;
1,168,553
private static Method requireMethod(final Method method) { return Objects.requireNonNull(method, "method"); }
static Method function(final Method method) { return Objects.requireNonNull(method, STR); }
/** * Throws NullPointerException if {@code method} is {@code null}. * * @param method The method to test. * @return The given method. * @throws NullPointerException if {@code method} is {@code null}. */
Throws NullPointerException if method is null
requireMethod
{ "repo_name": "apache/commons-lang", "path": "src/main/java/org/apache/commons/lang3/function/MethodInvokers.java", "license": "apache-2.0", "size": 11004 }
[ "java.lang.reflect.Method", "java.util.Objects" ]
import java.lang.reflect.Method; import java.util.Objects;
import java.lang.reflect.*; import java.util.*;
[ "java.lang", "java.util" ]
java.lang; java.util;
2,213,857
EList<ErpPersonScheduleStepRole> getSwitchingStepRoles();
EList<ErpPersonScheduleStepRole> getSwitchingStepRoles();
/** * Returns the value of the '<em><b>Switching Step Roles</b></em>' reference list. * The list contents are of type {@link gluemodel.CIM.IEC61970.Informative.InfOperations.ErpPersonScheduleStepRole}. * It is bidirectional and its opposite is '{@link gluemodel.CIM.IEC61970.Informative.InfOperations.ErpPersonSche...
Returns the value of the 'Switching Step Roles' reference list. The list contents are of type <code>gluemodel.CIM.IEC61970.Informative.InfOperations.ErpPersonScheduleStepRole</code>. It is bidirectional and its opposite is '<code>gluemodel.CIM.IEC61970.Informative.InfOperations.ErpPersonScheduleStepRole#getErpPerson Er...
getSwitchingStepRoles
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61970/Informative/InfERPSupport/ErpPerson.java", "license": "mit", "size": 36663 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,049,026
public Observable<ServiceResponse<Void>> beginDeleteWithServiceResponseAsync(String resourceGroupName, String azureFirewallName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (azureFirewa...
Observable<ServiceResponse<Void>> function(String resourceGroupName, String azureFirewallName) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (azureFirewallName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentEx...
/** * Deletes the specified Azure Firewall. * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse} object if su...
Deletes the specified Azure Firewall
beginDeleteWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/network/v2020_06_01/implementation/AzureFirewallsInner.java", "license": "mit", "size": 73008 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
612,643
public void bootstrapSession(ProtocolModel protocolModel, NetworkIdentity identity, @Nullable Channel channel, ChannelPipeline pipeline) { Preconditions.checkNotNull(identity); Protocol protocol = protocolModel.getProtocol(); log.debug("Bootstrapping session for protocol " + protocolModel + " ...
void function(ProtocolModel protocolModel, NetworkIdentity identity, @Nullable Channel channel, ChannelPipeline pipeline) { Preconditions.checkNotNull(identity); Protocol protocol = protocolModel.getProtocol(); log.debug(STR + protocolModel + STR + identity); SessionModel session = null; try { protocolModel.enterScope(...
/** * Preconditions: identity already has sending and listening addresses set */
Preconditions: identity already has sending and listening addresses set
bootstrapSession
{ "repo_name": "dmurph/protobee", "path": "core/src/main/java/org/protobee/session/handshake/HandshakeStateBootstrapper.java", "license": "bsd-2-clause", "size": 4336 }
[ "com.google.common.base.Preconditions", "com.google.common.eventbus.EventBus", "com.google.inject.Key", "java.util.Set", "javax.annotation.Nullable", "org.jboss.netty.channel.Channel", "org.jboss.netty.channel.ChannelHandler", "org.jboss.netty.channel.ChannelPipeline", "org.protobee.identity.Network...
import com.google.common.base.Preconditions; import com.google.common.eventbus.EventBus; import com.google.inject.Key; import java.util.Set; import javax.annotation.Nullable; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelHandler; import org.jboss.netty.channel.ChannelPipeline; import org...
import com.google.common.base.*; import com.google.common.eventbus.*; import com.google.inject.*; import java.util.*; import javax.annotation.*; import org.jboss.netty.channel.*; import org.protobee.identity.*; import org.protobee.modules.*; import org.protobee.protocol.*; import org.protobee.session.*; import org.prot...
[ "com.google.common", "com.google.inject", "java.util", "javax.annotation", "org.jboss.netty", "org.protobee.identity", "org.protobee.modules", "org.protobee.protocol", "org.protobee.session", "org.protobee.util" ]
com.google.common; com.google.inject; java.util; javax.annotation; org.jboss.netty; org.protobee.identity; org.protobee.modules; org.protobee.protocol; org.protobee.session; org.protobee.util;
1,709,605
@Test public void async_whenMultipleAndThenOnSameFuture() throws Exception { int callTimeout = 5000; Config config = new Config().setProperty(OPERATION_CALL_TIMEOUT_MILLIS.getName(), "" + callTimeout); TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(2); Haz...
void function() throws Exception { int callTimeout = 5000; Config config = new Config().setProperty(OPERATION_CALL_TIMEOUT_MILLIS.getName(), "" + callTimeout); TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(2); HazelcastInstance local = factory.newHazelcastInstance(config); final HazelcastInstanc...
/** * Tests if the future on a blocking operation can be shared by multiple threads. This tests fails in 3.6 because * only 1 thread will be able to swap out CONTINUE_WAIT and all other threads will fail with an OperationTimeoutExcepyion */
Tests if the future on a blocking operation can be shared by multiple threads. This tests fails in 3.6 because only 1 thread will be able to swap out CONTINUE_WAIT and all other threads will fail with an OperationTimeoutExcepyion
async_whenMultipleAndThenOnSameFuture
{ "repo_name": "Donnerbart/hazelcast", "path": "hazelcast/src/test/java/com/hazelcast/spi/impl/operationservice/impl/Invocation_BlockingTest.java", "license": "apache-2.0", "size": 24507 }
[ "com.hazelcast.concurrent.lock.InternalLockNamespace", "com.hazelcast.concurrent.lock.operations.LockOperation", "com.hazelcast.config.Config", "com.hazelcast.core.HazelcastInstance", "com.hazelcast.spi.InternalCompletableFuture", "com.hazelcast.spi.impl.NodeEngineImpl", "com.hazelcast.spi.impl.operatio...
import com.hazelcast.concurrent.lock.InternalLockNamespace; import com.hazelcast.concurrent.lock.operations.LockOperation; import com.hazelcast.config.Config; import com.hazelcast.core.HazelcastInstance; import com.hazelcast.spi.InternalCompletableFuture; import com.hazelcast.spi.impl.NodeEngineImpl; import com.hazelca...
import com.hazelcast.concurrent.lock.*; import com.hazelcast.concurrent.lock.operations.*; import com.hazelcast.config.*; import com.hazelcast.core.*; import com.hazelcast.spi.*; import com.hazelcast.spi.impl.*; import com.hazelcast.spi.impl.operationservice.*; import com.hazelcast.test.*;
[ "com.hazelcast.concurrent", "com.hazelcast.config", "com.hazelcast.core", "com.hazelcast.spi", "com.hazelcast.test" ]
com.hazelcast.concurrent; com.hazelcast.config; com.hazelcast.core; com.hazelcast.spi; com.hazelcast.test;
1,766,317
if (name.contains(SLASH_REPLACEMENT)) { throw new IllegalArgumentException( "Service names may not contain double underscores: " + name ); } String result = name; if (name.startsWith(PersisterUtils.PATH_DELIM_STR)) { // Trim any leading slash result = name.substring(Persis...
if (name.contains(SLASH_REPLACEMENT)) { throw new IllegalArgumentException( STR + name ); } String result = name; if (name.startsWith(PersisterUtils.PATH_DELIM_STR)) { result = name.substring(PersisterUtils.PATH_DELIM_STR.length()); } return result.replace(PersisterUtils.PATH_DELIM_STR, SLASH_REPLACEMENT); }
/** * Removes any slashes from the provided name and replaces them with double underscores. Any leading slash is * removed entirely. This is useful for sanitizing framework names, framework roles, and curator paths. * <p> * For example: * <ul> * <li>/path/to/service => path__to__service</li> * <li>...
Removes any slashes from the provided name and replaces them with double underscores. Any leading slash is removed entirely. This is useful for sanitizing framework names, framework roles, and curator paths. For example: /path/to/service => path__to__service path/to/some-service => path__to__some-service path__to__serv...
withEscapedSlashes
{ "repo_name": "mesosphere/dcos-commons", "path": "sdk/scheduler/src/main/java/com/mesosphere/sdk/scheduler/SchedulerUtils.java", "license": "apache-2.0", "size": 4685 }
[ "com.mesosphere.sdk.storage.PersisterUtils" ]
import com.mesosphere.sdk.storage.PersisterUtils;
import com.mesosphere.sdk.storage.*;
[ "com.mesosphere.sdk" ]
com.mesosphere.sdk;
718,110
public void setCodecs(List<IVideoStreamCodec> codecs) { VideoCodecFactory.codecs = codecs; }
void function(List<IVideoStreamCodec> codecs) { VideoCodecFactory.codecs = codecs; }
/** * Setter for codecs * * @param codecs * List of codecs */
Setter for codecs
setCodecs
{ "repo_name": "Red5/red5-server-common", "path": "src/main/java/org/red5/server/stream/VideoCodecFactory.java", "license": "apache-2.0", "size": 5099 }
[ "java.util.List", "org.red5.codec.IVideoStreamCodec" ]
import java.util.List; import org.red5.codec.IVideoStreamCodec;
import java.util.*; import org.red5.codec.*;
[ "java.util", "org.red5.codec" ]
java.util; org.red5.codec;
2,432,881
public Color getUnitBarColor() { if (model.getState() == DISCARDED) return null; if (model.getBrowser() == null) return null; return model.getBrowser().getUnitBarColor(); }
Color function() { if (model.getState() == DISCARDED) return null; if (model.getBrowser() == null) return null; return model.getBrowser().getUnitBarColor(); }
/** * Implemented as specified by the {@link ImViewer} interface. * @see ImViewer#getUnitBarColor() */
Implemented as specified by the <code>ImViewer</code> interface
getUnitBarColor
{ "repo_name": "emilroz/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerComponent.java", "license": "gpl-2.0", "size": 99557 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,472,563
public synchronized void addTitleChangedListener(TitleChangedListener li) { listeners.add(TitleChangedListener.class, li); }
synchronized void function(TitleChangedListener li) { listeners.add(TitleChangedListener.class, li); }
/** * Add a TitleChangedEvent listener */
Add a TitleChangedEvent listener
addTitleChangedListener
{ "repo_name": "truhanen/JSana", "path": "JSana/src_others/org/crosswire/bibledesktop/book/BibleViewPane.java", "license": "gpl-2.0", "size": 12958 }
[ "org.crosswire.common.swing.desktop.event.TitleChangedListener" ]
import org.crosswire.common.swing.desktop.event.TitleChangedListener;
import org.crosswire.common.swing.desktop.event.*;
[ "org.crosswire.common" ]
org.crosswire.common;
2,090,258
public static Test suite() { OpenCmsTestProperties.initialize(org.opencms.test.AllTests.TEST_PROPERTIES_PATH); TestSuite suite = new TestSuite(); suite.setName(TestChangeProperties.class.getName()); suite.addTest(new TestChangeProperties("testChangeResourcesRelativePath")); ...
static Test function() { OpenCmsTestProperties.initialize(org.opencms.test.AllTests.TEST_PROPERTIES_PATH); TestSuite suite = new TestSuite(); suite.setName(TestChangeProperties.class.getName()); suite.addTest(new TestChangeProperties(STR)); suite.addTest(new TestChangeProperties(STR)); TestSetup wrapper = new TestSetup...
/** * Test suite for this test class.<p> * * @return the test suite */
Test suite for this test class
suite
{ "repo_name": "it-tavis/opencms-core", "path": "test/org/opencms/file/TestChangeProperties.java", "license": "lgpl-2.1", "size": 6412 }
[ "junit.extensions.TestSetup", "junit.framework.Test", "junit.framework.TestSuite", "org.opencms.test.OpenCmsTestProperties" ]
import junit.extensions.TestSetup; import junit.framework.Test; import junit.framework.TestSuite; import org.opencms.test.OpenCmsTestProperties;
import junit.extensions.*; import junit.framework.*; import org.opencms.test.*;
[ "junit.extensions", "junit.framework", "org.opencms.test" ]
junit.extensions; junit.framework; org.opencms.test;
2,005,125
private void copyThumb(final FilePostParam file) throws IOException { File sourceThumbFile = new File(configuration.getThumbsPath() + File.separator + file.getType() + file.getFolder(), file.getName()); File destThumbFile = new File(configuration.getThumbsPath() + File.separator + type + this.cur...
void function(final FilePostParam file) throws IOException { File sourceThumbFile = new File(configuration.getThumbsPath() + File.separator + file.getType() + file.getFolder(), file.getName()); File destThumbFile = new File(configuration.getThumbsPath() + File.separator + type + this.currentFolder, file.getName()); if ...
/** * copy thumb file. * * @param file file to copy. * @throws IOException when ioerror occurs */
copy thumb file
copyThumb
{ "repo_name": "uttmkl/etno", "path": "sites/all/modules/CKFinder/ckfinder/_sources/CKFinder for Java/CKFinder/src/main/java/com/ckfinder/connector/handlers/command/CopyFilesCommand.java", "license": "gpl-2.0", "size": 10866 }
[ "com.ckfinder.connector.data.FilePostParam", "com.ckfinder.connector.utils.FileUtils", "java.io.File", "java.io.IOException" ]
import com.ckfinder.connector.data.FilePostParam; import com.ckfinder.connector.utils.FileUtils; import java.io.File; import java.io.IOException;
import com.ckfinder.connector.data.*; import com.ckfinder.connector.utils.*; import java.io.*;
[ "com.ckfinder.connector", "java.io" ]
com.ckfinder.connector; java.io;
1,994,552
private static TypeRef inferReturnTypeFromReturns(FunctionDefinition funDef, BuiltInTypeScope scope) { boolean hasNonVoidReturn = funDef.getBody() != null && funDef.getBody().hasNonVoidReturn(); if (hasNonVoidReturn) { return scope.getAnyTypeRef(); } else { return scope.getVoidTypeRef(); } }
static TypeRef function(FunctionDefinition funDef, BuiltInTypeScope scope) { boolean hasNonVoidReturn = funDef.getBody() != null && funDef.getBody().hasNonVoidReturn(); if (hasNonVoidReturn) { return scope.getAnyTypeRef(); } else { return scope.getVoidTypeRef(); } }
/** * Infers the return value type form all yield expressions in the body. * <p> * This is a poor man's type inference, meaning that the outcome is either {@code any} or {@code void}. (Similar to: * {@code AbstractFunctionDefinitionTypesBuilder}). */
Infers the return value type form all yield expressions in the body. This is a poor man's type inference, meaning that the outcome is either any or void. (Similar to: AbstractFunctionDefinitionTypesBuilder)
inferReturnTypeFromReturns
{ "repo_name": "lbeurerkellner/n4js", "path": "plugins/org.eclipse.n4js.ts/src/org/eclipse/n4js/ts/utils/TypeUtils.java", "license": "epl-1.0", "size": 59084 }
[ "org.eclipse.n4js.n4JS.FunctionDefinition", "org.eclipse.n4js.ts.scoping.builtin.BuiltInTypeScope", "org.eclipse.n4js.ts.typeRefs.TypeRef" ]
import org.eclipse.n4js.n4JS.FunctionDefinition; import org.eclipse.n4js.ts.scoping.builtin.BuiltInTypeScope; import org.eclipse.n4js.ts.typeRefs.TypeRef;
import org.eclipse.n4js.*; import org.eclipse.n4js.ts.*; import org.eclipse.n4js.ts.scoping.builtin.*;
[ "org.eclipse.n4js" ]
org.eclipse.n4js;
2,643,288
Set<? extends Element> getRootElements();
Set<? extends Element> getRootElements();
/** * Returns the root elements for annotation processing generated by the prior * round. * * @return the root elements for annotation processing generated by the prior * round, or an empty set if there were none */
Returns the root elements for annotation processing generated by the prior round
getRootElements
{ "repo_name": "w7cook/batch-javac", "path": "src/share/classes/javax/annotation/processing/RoundEnvironment.java", "license": "gpl-2.0", "size": 4725 }
[ "java.util.Set", "javax.lang.model.element.Element" ]
import java.util.Set; import javax.lang.model.element.Element;
import java.util.*; import javax.lang.model.element.*;
[ "java.util", "javax.lang" ]
java.util; javax.lang;
1,628,891
@Override public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { // Make sure our storage is reachable if(worldIn.getTileEntity(pos) != null...
boolean function(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { if(worldIn.getTileEntity(pos) != null && worldIn.getTileEntity(pos) instanceof TileBasicTank) { TileBasicTank fluidStorage = (TileBasicTank) worldIn.getTileEnti...
/** * Called when the block is clicked on * @return True to prevent future logic */
Called when the block is clicked on
onBlockActivated
{ "repo_name": "HickGamer/Better-Utilites", "path": "Reference Code/Neotech Code/java/com/teambrmodding/neotech/common/blocks/storage/BlockFluidStorage.java", "license": "lgpl-2.1", "size": 9210 }
[ "com.teambr.bookshelf.util.ClientUtils", "com.teambrmodding.neotech.common.tiles.storage.tanks.TileBasicTank", "net.minecraft.block.state.IBlockState", "net.minecraft.entity.player.EntityPlayer", "net.minecraft.util.EnumFacing", "net.minecraft.util.EnumHand", "net.minecraft.util.math.BlockPos", "net.m...
import com.teambr.bookshelf.util.ClientUtils; import com.teambrmodding.neotech.common.tiles.storage.tanks.TileBasicTank; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math...
import com.teambr.bookshelf.util.*; import com.teambrmodding.neotech.common.tiles.storage.tanks.*; import net.minecraft.block.state.*; import net.minecraft.entity.player.*; import net.minecraft.util.*; import net.minecraft.util.math.*; import net.minecraft.util.text.*; import net.minecraft.world.*; import net.minecraft...
[ "com.teambr.bookshelf", "com.teambrmodding.neotech", "net.minecraft.block", "net.minecraft.entity", "net.minecraft.util", "net.minecraft.world", "net.minecraftforge.fluids" ]
com.teambr.bookshelf; com.teambrmodding.neotech; net.minecraft.block; net.minecraft.entity; net.minecraft.util; net.minecraft.world; net.minecraftforge.fluids;
2,570,500
public Color getColorGeneralContent() { return m_ColorGeneralContent; }
Color function() { return m_ColorGeneralContent; }
/** * Returns the color to use for general content. * * @return the color */
Returns the color to use for general content
getColorGeneralContent
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-pdf/src/main/java/adams/flow/transformer/pdfproclet/SpreadSheet.java", "license": "gpl-3.0", "size": 24104 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,699,439
private DateTimePrinter requirePrinter() { DateTimePrinter printer = iPrinter; if (printer == null) { throw new UnsupportedOperationException("Printing not supported"); } return printer; } //----------------------------------------------------------------------- ...
DateTimePrinter function() { DateTimePrinter printer = iPrinter; if (printer == null) { throw new UnsupportedOperationException(STR); } return printer; } /** * Parses a datetime from the given text, at the given position, saving the * result into the fields of the given ReadWritableInstant. If the parse * succeeds, the...
/** * Checks whether printing is supported. * * @throws UnsupportedOperationException if printing is not supported */
Checks whether printing is supported
requirePrinter
{ "repo_name": "jorisdgff/Trade-Today", "path": "Third Party Libraries/joda-time-2.3/src/main/java/org/joda/time/format/DateTimeFormatter.java", "license": "unlicense", "size": 37627 }
[ "org.joda.time.ReadWritableInstant" ]
import org.joda.time.ReadWritableInstant;
import org.joda.time.*;
[ "org.joda.time" ]
org.joda.time;
1,400,218
@Test public void configureOSPFAreaTest() throws IOException, ProtocolException, ResourceException { startResource(); IOSPFv3Capability ospfv3Capability = (IOSPFv3Capability) routerResource.getCapability(InitializerTestHelper .getCapabilityInformation(TestsConstants.OSPFv3_CAPABILITY_TYPE)); ospfv3Cap...
void function() throws IOException, ProtocolException, ResourceException { startResource(); IOSPFv3Capability ospfv3Capability = (IOSPFv3Capability) routerResource.getCapability(InitializerTestHelper .getCapabilityInformation(TestsConstants.OSPFv3_CAPABILITY_TYPE)); ospfv3Capability.configureOSPFv3Area(ParamCreationHel...
/** * Test to check configureOSPFArea method */
Test to check configureOSPFArea method
configureOSPFAreaTest
{ "repo_name": "dana-i2cat/opennaas-routing-nfv", "path": "itests/router/src/test/java/org/opennaas/itests/router/ospf/OSPFv3IntegrationTest.java", "license": "lgpl-3.0", "size": 15210 }
[ "java.io.IOException", "org.junit.Assert", "org.opennaas.core.resources.ResourceException", "org.opennaas.core.resources.protocol.ProtocolException", "org.opennaas.core.resources.queue.QueueResponse", "org.opennaas.extensions.queuemanager.IQueueManagerCapability", "org.opennaas.extensions.router.capabil...
import java.io.IOException; import org.junit.Assert; import org.opennaas.core.resources.ResourceException; import org.opennaas.core.resources.protocol.ProtocolException; import org.opennaas.core.resources.queue.QueueResponse; import org.opennaas.extensions.queuemanager.IQueueManagerCapability; import org.opennaas.exten...
import java.io.*; import org.junit.*; import org.opennaas.core.resources.*; import org.opennaas.core.resources.protocol.*; import org.opennaas.core.resources.queue.*; import org.opennaas.extensions.queuemanager.*; import org.opennaas.extensions.router.capability.ospfv3.*; import org.opennaas.extensions.router.model.*; ...
[ "java.io", "org.junit", "org.opennaas.core", "org.opennaas.extensions", "org.opennaas.itests" ]
java.io; org.junit; org.opennaas.core; org.opennaas.extensions; org.opennaas.itests;
1,275,910
private BigDecimal getFastBigDecimal(int columnIndex) throws SQLException, NumberFormatException { byte[] bytes = this_row[columnIndex - 1]; if (bytes.length == 0) { throw FAST_NUMBER_FAILED; } int scale = 0; long val = 0; int start; boolean neg; if (bytes[0] == '-') { n...
BigDecimal function(int columnIndex) throws SQLException, NumberFormatException { byte[] bytes = this_row[columnIndex - 1]; if (bytes.length == 0) { throw FAST_NUMBER_FAILED; } int scale = 0; long val = 0; int start; boolean neg; if (bytes[0] == '-') { neg = true; start = 1; if (bytes.length == 1 bytes.length > 19) { t...
/** * Optimised byte[] to number parser. This code does not handle null values, so the caller must do * checkResultSet and handle null values prior to calling this function. * * @param columnIndex The column to parse. * @return The parsed number. * @throws SQLException If an error occurs while fetchin...
Optimised byte[] to number parser. This code does not handle null values, so the caller must do checkResultSet and handle null values prior to calling this function
getFastBigDecimal
{ "repo_name": "Gordiychuk/pgjdbc", "path": "pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java", "license": "bsd-2-clause", "size": 110362 }
[ "java.math.BigDecimal", "java.sql.SQLException" ]
import java.math.BigDecimal; import java.sql.SQLException;
import java.math.*; import java.sql.*;
[ "java.math", "java.sql" ]
java.math; java.sql;
426,815
public int read( byte[] b ) throws IOException { if ( sock == null || !sock.isConnected() ) { log.error( "++++ attempting to read from closed socket" ); throw new IOException( "++++ attempting to read from closed socket" ); } int count = 0; while ( count < b.length ) { int cnt = in.read( b...
int function( byte[] b ) throws IOException { if ( sock == null !sock.isConnected() ) { log.error( STR ); throw new IOException( STR ); } int count = 0; while ( count < b.length ) { int cnt = in.read( b, count, (b.length - count) ); count += cnt; } return count; }
/** * reads length bytes into the passed in byte array from dtream * * @param b byte array * @throws IOException if io problems during read */
reads length bytes into the passed in byte array from dtream
read
{ "repo_name": "ZhangPeng1990/crm", "path": "gdsap-framework/src/main/java/uk/co/quidos/cache/memcache/client/SockIOPool.java", "license": "apache-2.0", "size": 53661 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,538,808
public static MozuUrl updateEntityUrl(String entityListFullName, String id, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/platform/entitylists/{entityListFullName}/entities/{id}?responseFields={responseFields}"); formatter.formatUrl("entityListFullName", entityListFullName); formatt...
static MozuUrl function(String entityListFullName, String id, String responseFields) { UrlFormatter formatter = new UrlFormatter(STR); formatter.formatUrl(STR, entityListFullName); formatter.formatUrl("id", id); formatter.formatUrl(STR, responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation...
/** * Get Resource Url for UpdateEntity * @param entityListFullName The full name of the EntityList including namespace in name@nameSpace format * @param id Unique identifier of the customer segment to retrieve. * @param responseFields Use this field to include those fields which are not included by default. ...
Get Resource Url for UpdateEntity
updateEntityUrl
{ "repo_name": "lakshmi-nair/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/urls/platform/entitylists/EntityUrl.java", "license": "mit", "size": 5647 }
[ "com.mozu.api.MozuUrl", "com.mozu.api.utils.UrlFormatter" ]
import com.mozu.api.MozuUrl; import com.mozu.api.utils.UrlFormatter;
import com.mozu.api.*; import com.mozu.api.utils.*;
[ "com.mozu.api" ]
com.mozu.api;
2,796,051
private void incrementCounter( Map<byte[], Map<byte[], NavigableMap<byte[], Long>>> counters, byte[] row, byte[] family, byte[] qualifier, Long count) { Map<byte[], NavigableMap<byte[], Long>> families = counters.get(row); if (families == null) { families = Maps.newTreeMap(Bytes.BYTES_COMPA...
void function( Map<byte[], Map<byte[], NavigableMap<byte[], Long>>> counters, byte[] row, byte[] family, byte[] qualifier, Long count) { Map<byte[], NavigableMap<byte[], Long>> families = counters.get(row); if (families == null) { families = Maps.newTreeMap(Bytes.BYTES_COMPARATOR); counters.put(row, families); } Naviga...
/** * Helper function for {@link #coalesceIncrements} to increment a counter * value in the passed data structure. * * @param counters Nested data structure containing the counters. * @param row Row key to increment. * @param family Column family to increment. * @param qualifier Column qu...
Helper function for <code>#coalesceIncrements</code> to increment a counter value in the passed data structure
incrementCounter
{ "repo_name": "tinawenqiao/flume", "path": "flume-ng-sinks/flume-ng-hbase-sink/src/main/java/org/apache/flume/sink/hbase/HBaseSink.java", "license": "apache-2.0", "size": 21524 }
[ "com.google.common.collect.Maps", "java.util.Map", "java.util.NavigableMap", "org.apache.hadoop.hbase.util.Bytes" ]
import com.google.common.collect.Maps; import java.util.Map; import java.util.NavigableMap; import org.apache.hadoop.hbase.util.Bytes;
import com.google.common.collect.*; import java.util.*; import org.apache.hadoop.hbase.util.*;
[ "com.google.common", "java.util", "org.apache.hadoop" ]
com.google.common; java.util; org.apache.hadoop;
2,741,103
@Test @SmallTest @Feature("MultiWindow") public void testTabbedActivity2TaskRunning() { ChromeTabbedActivity activity2 = createSecondChromeTabbedActivity(mActivityTestRule.getActivity()); Assert.assertTrue(MultiWindowUtils.getInstance().getTabbedActivity2TaskRunning()); ...
@Feature(STR) void function() { ChromeTabbedActivity activity2 = createSecondChromeTabbedActivity(mActivityTestRule.getActivity()); Assert.assertTrue(MultiWindowUtils.getInstance().getTabbedActivity2TaskRunning()); activity2.finishAndRemoveTask(); MultiWindowUtils.getInstance().getTabbedActivityForIntent( mActivityTest...
/** * Tests that MultiWindowUtils properly tracks whether ChromeTabbedActivity2 is running. */
Tests that MultiWindowUtils properly tracks whether ChromeTabbedActivity2 is running
testTabbedActivity2TaskRunning
{ "repo_name": "ric2b/Vivaldi-browser", "path": "chromium/chrome/android/javatests/src/org/chromium/chrome/browser/multiwindow/MultiWindowUtilsTest.java", "license": "bsd-3-clause", "size": 15907 }
[ "org.chromium.base.test.util.Feature", "org.chromium.chrome.browser.ChromeTabbedActivity", "org.chromium.chrome.browser.multiwindow.MultiWindowTestHelper", "org.junit.Assert" ]
import org.chromium.base.test.util.Feature; import org.chromium.chrome.browser.ChromeTabbedActivity; import org.chromium.chrome.browser.multiwindow.MultiWindowTestHelper; import org.junit.Assert;
import org.chromium.base.test.util.*; import org.chromium.chrome.browser.*; import org.chromium.chrome.browser.multiwindow.*; import org.junit.*;
[ "org.chromium.base", "org.chromium.chrome", "org.junit" ]
org.chromium.base; org.chromium.chrome; org.junit;
1,391,885
public void close() { if (images != null) { try { images.close(); } catch (IOException e) { } images = null; } if (labels != null) { try { labels.close(); } catch (IOException e) { ...
void function() { if (images != null) { try { images.close(); } catch (IOException e) { } images = null; } if (labels != null) { try { labels.close(); } catch (IOException e) { } labels = null; } }
/** * Close any resources opened by the manager. */
Close any resources opened by the manager
close
{ "repo_name": "kinbod/deeplearning4j", "path": "deeplearning4j-core/src/main/java/org/deeplearning4j/datasets/mnist/MnistManager.java", "license": "apache-2.0", "size": 5680 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
61,000
public void glGetMultisample(int pname, int index, FloatBuffer val);
void function(int pname, int index, FloatBuffer val);
/** * Retrieves the location of a sample. * * @param pname the sample parameter name. * @param index the index of the sample whose position to query. * @param val an array to receive the position of the sample. */
Retrieves the location of a sample
glGetMultisample
{ "repo_name": "atomixnmc/jmonkeyengine", "path": "jme3-core/src/main/java/com/jme3/renderer/opengl/GLExt.java", "license": "bsd-3-clause", "size": 12932 }
[ "java.nio.FloatBuffer" ]
import java.nio.FloatBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
616,774
public ExpressionFactory getExpressionFactory();
ExpressionFactory function();
/** * <p> * Returns the JSP container's <code>ExpressionFactory</code> implementation * for EL use. * </p> * * @return an <code>ExpressionFactory</code> implementation */
Returns the JSP container's <code>ExpressionFactory</code> implementation for EL use.
getExpressionFactory
{ "repo_name": "plumer/codana", "path": "tomcat_files/8.0.22/JspApplicationContext.java", "license": "mit", "size": 2768 }
[ "javax.el.ExpressionFactory" ]
import javax.el.ExpressionFactory;
import javax.el.*;
[ "javax.el" ]
javax.el;
2,355,915
public List<String> getGenres() { return DBMovie.this.movieDAO .getGenresForMovie(DBMovie.this); }
List<String> function() { return DBMovie.this.movieDAO .getGenresForMovie(DBMovie.this); }
/** * This will return a list of all of the genres that this * movie fits into. * * @return the list of genres this movie is a part of. */
This will return a list of all of the genres that this movie fits into
getGenres
{ "repo_name": "posborne/mango-movie-manager", "path": "src/com/themangoproject/db/h2/DBMovie.java", "license": "mit", "size": 23949 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,489,785
public void addNotification(@NotNull Notification notification) { notifications.add(notification); NotificationContainerItem item = new NotificationContainerItem(notification, resources); item.setDelegate(this); int index = nGrid.getRowCount(); nGrid.resizeRows(index + 1); nGrid.setWidget(ind...
void function(@NotNull Notification notification) { notifications.add(notification); NotificationContainerItem item = new NotificationContainerItem(notification, resources); item.setDelegate(this); int index = nGrid.getRowCount(); nGrid.resizeRows(index + 1); nGrid.setWidget(index, 0, item); }
/** * Show notification in container. * * @param notification notification that need to show */
Show notification in container
addNotification
{ "repo_name": "akervern/che", "path": "ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/notification/NotificationContainer.java", "license": "epl-1.0", "size": 3300 }
[ "javax.validation.constraints.NotNull", "org.eclipse.che.ide.api.notification.Notification" ]
import javax.validation.constraints.NotNull; import org.eclipse.che.ide.api.notification.Notification;
import javax.validation.constraints.*; import org.eclipse.che.ide.api.notification.*;
[ "javax.validation", "org.eclipse.che" ]
javax.validation; org.eclipse.che;
158,626
@Test public void testSetSeriesToolTipGenerator() { XYPlot plot = (XYPlot) this.chart.getPlot(); XYItemRenderer renderer = plot.getRenderer(); StandardXYToolTipGenerator tt = new StandardXYToolTipGenerator(); renderer.setSeriesToolTipGenerator(0, tt); XYToolTipGener...
void function() { XYPlot plot = (XYPlot) this.chart.getPlot(); XYItemRenderer renderer = plot.getRenderer(); StandardXYToolTipGenerator tt = new StandardXYToolTipGenerator(); renderer.setSeriesToolTipGenerator(0, tt); XYToolTipGenerator tt2 = renderer.getToolTipGenerator(0, 0); assertSame(tt2, tt); }
/** * Check that setting a tool tip generator for a series does override the * default generator. */
Check that setting a tool tip generator for a series does override the default generator
testSetSeriesToolTipGenerator
{ "repo_name": "oskopek/jfreechart-fse", "path": "src/test/java/org/jfree/chart/XYStepAreaChartTest.java", "license": "lgpl-2.1", "size": 5681 }
[ "org.jfree.chart.labels.StandardXYToolTipGenerator", "org.jfree.chart.labels.XYToolTipGenerator", "org.jfree.chart.plot.XYPlot", "org.jfree.chart.renderer.xy.XYItemRenderer", "org.junit.Assert" ]
import org.jfree.chart.labels.StandardXYToolTipGenerator; import org.jfree.chart.labels.XYToolTipGenerator; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.XYItemRenderer; import org.junit.Assert;
import org.jfree.chart.labels.*; import org.jfree.chart.plot.*; import org.jfree.chart.renderer.xy.*; import org.junit.*;
[ "org.jfree.chart", "org.junit" ]
org.jfree.chart; org.junit;
645,888
public Factor getMarginal(Collection<Integer> varNums);
Factor function(Collection<Integer> varNums);
/** * Gets the normalized marginal distribution associated with the given * variables as a {@link Factor}. The returned factor is a probability * distribution; {@link #getPartitionFunction()} returns the normalization * constant used to convert the unnormalized probabilities into a * probability distrib...
Gets the normalized marginal distribution associated with the given variables as a <code>Factor</code>. The returned factor is a probability distribution; <code>#getPartitionFunction()</code> returns the normalization constant used to convert the unnormalized probabilities into a probability distribution
getMarginal
{ "repo_name": "jayantk/jklol", "path": "src/com/jayantkrish/jklol/inference/MarginalSet.java", "license": "bsd-2-clause", "size": 1932 }
[ "com.jayantkrish.jklol.models.Factor", "java.util.Collection" ]
import com.jayantkrish.jklol.models.Factor; import java.util.Collection;
import com.jayantkrish.jklol.models.*; import java.util.*;
[ "com.jayantkrish.jklol", "java.util" ]
com.jayantkrish.jklol; java.util;
1,809,234
public long putAndMoveToFirst( final char k, final long v ) { final char key[] = this.key; final boolean used[] = this.used; final int mask = this.mask; // The starting point. int pos = ( it.unimi.dsi.fastutil.HashCommon.murmurHash3( (k) ) ) & mask; // There's always an unused entry. while( used[ pos ] )...
long function( final char k, final long v ) { final char key[] = this.key; final boolean used[] = this.used; final int mask = this.mask; int pos = ( it.unimi.dsi.fastutil.HashCommon.murmurHash3( (k) ) ) & mask; while( used[ pos ] ) { if ( ( (k) == (key[ pos ]) ) ) { final long oldValue = value[ pos ]; value[ pos ] = v;...
/** Adds a pair to the map; if the key is already present, it is moved to the first position of the iteration order. * * @param k the key. * @param v the value. * @return the old value, or the {@linkplain #defaultReturnValue() default return value} if no value was present for the given key. */
Adds a pair to the map; if the key is already present, it is moved to the first position of the iteration order
putAndMoveToFirst
{ "repo_name": "karussell/fastutil", "path": "src/it/unimi/dsi/fastutil/chars/Char2LongLinkedOpenHashMap.java", "license": "apache-2.0", "size": 48436 }
[ "it.unimi.dsi.fastutil.HashCommon" ]
import it.unimi.dsi.fastutil.HashCommon;
import it.unimi.dsi.fastutil.*;
[ "it.unimi.dsi" ]
it.unimi.dsi;
2,352,163
private static String getString(String s, Param param, Messages messages) { if (s == null) { s = param.defaultString(); } else { if (s.length() < param.minLength()) { messages.addMessage(param.name(), param.message()); } if (par...
static String function(String s, Param param, Messages messages) { if (s == null) { s = param.defaultString(); } else { if (s.length() < param.minLength()) { messages.addMessage(param.name(), param.message()); } if (param.maxLength() >= 0) { if (s.length() > param.maxLength()) { messages.addMessage(param.name(), param....
/** * Returns a String value, considering the constraints given by Param. * @param s a string containing the value to convert. * @param param a Param annotation containing a group of default values and * constraints. * @param messages a Messages instance where errors during conversion wi...
Returns a String value, considering the constraints given by Param
getString
{ "repo_name": "ajaimes/cinnamon", "path": "src/main/java/com/cinnamonframework/ParameterManager.java", "license": "bsd-3-clause", "size": 20614 }
[ "com.cinnamonframework.annotations.Param", "java.util.regex.Pattern" ]
import com.cinnamonframework.annotations.Param; import java.util.regex.Pattern;
import com.cinnamonframework.annotations.*; import java.util.regex.*;
[ "com.cinnamonframework.annotations", "java.util" ]
com.cinnamonframework.annotations; java.util;
464,509
public static String asUTF8String(InputStream in) throws IOException { // Precondition check Validate.notNull(in, "Stream must be specified"); ByteArrayOutputStream out = new ByteArrayOutputStream(); copyWithClose(in, out); return new String(out.toByteArray(), CHARSET_UTF8); }
static String function(InputStream in) throws IOException { Validate.notNull(in, STR); ByteArrayOutputStream out = new ByteArrayOutputStream(); copyWithClose(in, out); return new String(out.toByteArray(), CHARSET_UTF8); }
/** * Obtains the contents of the specified stream * as a String in UTF-8 charset. * * @param in * @throws IllegalArgumentException If the stream was not specified */
Obtains the contents of the specified stream as a String in UTF-8 charset
asUTF8String
{ "repo_name": "aslakknutsen/arquillian-extension-xrebel", "path": "src/main/java/org/arquillian/extension/xrebel/IOUtil.java", "license": "apache-2.0", "size": 5962 }
[ "java.io.ByteArrayOutputStream", "java.io.IOException", "java.io.InputStream", "org.jboss.shrinkwrap.impl.base.Validate" ]
import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import org.jboss.shrinkwrap.impl.base.Validate;
import java.io.*; import org.jboss.shrinkwrap.impl.base.*;
[ "java.io", "org.jboss.shrinkwrap" ]
java.io; org.jboss.shrinkwrap;
2,634,336
public void serialize( TransformationCatalogEntry entry, JsonGenerator gen, SerializerProvider sp) throws IOException { gen.writeStartObject(); writeStringField( gen, TransformationCatalogKeywords.NAMESPACE.getReser...
void function( TransformationCatalogEntry entry, JsonGenerator gen, SerializerProvider sp) throws IOException { gen.writeStartObject(); writeStringField( gen, TransformationCatalogKeywords.NAMESPACE.getReservedName(), entry.getLogicalNamespace()); writeStringField( gen, TransformationCatalogKeywords.NAME.getReservedNam...
/** * Serializes contents into YAML representation * * @param entry * @param gen * @param sp * @throws IOException */
Serializes contents into YAML representation
serialize
{ "repo_name": "pegasus-isi/pegasus", "path": "src/edu/isi/pegasus/planner/catalog/transformation/TransformationCatalogEntry.java", "license": "apache-2.0", "size": 32053 }
[ "com.fasterxml.jackson.core.JsonGenerator", "com.fasterxml.jackson.databind.SerializerProvider", "edu.isi.pegasus.planner.catalog.classes.Profiles", "edu.isi.pegasus.planner.catalog.classes.SysInfo", "edu.isi.pegasus.planner.catalog.transformation.classes.Container", "edu.isi.pegasus.planner.catalog.trans...
import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import edu.isi.pegasus.planner.catalog.classes.Profiles; import edu.isi.pegasus.planner.catalog.classes.SysInfo; import edu.isi.pegasus.planner.catalog.transformation.classes.Container; import edu.isi.pegasus.plan...
import com.fasterxml.jackson.core.*; import com.fasterxml.jackson.databind.*; import edu.isi.pegasus.planner.catalog.classes.*; import edu.isi.pegasus.planner.catalog.transformation.classes.*; import java.io.*;
[ "com.fasterxml.jackson", "edu.isi.pegasus", "java.io" ]
com.fasterxml.jackson; edu.isi.pegasus; java.io;
2,610,541
static String getDropDownButtonHtml(FontIcon icon) { return "<div tabindex=\"0\" role=\"button\" class=\"v-button v-widget borderless v-button-borderless " + OpenCmsTheme.TOOLBAR_BUTTON + " v-button-" + OpenCmsTheme.TOOLBAR_BUTTON + "\"><span class=\"v-button...
static String getDropDownButtonHtml(FontIcon icon) { return STR0\STRbutton\STRv-button v-widget borderless v-button-borderless STR v-button-STR\STRv-button-wrap\">" + icon.getHtml() + STR; }
/** * Creates the button HTML for the given icon resource.<p> * * @param icon the icon * * @return the HTML */
Creates the button HTML for the given icon resource
getDropDownButtonHtml
{ "repo_name": "alkacon/opencms-core", "path": "src/org/opencms/ui/components/CmsToolBar.java", "license": "lgpl-2.1", "size": 28685 }
[ "com.vaadin.server.FontIcon" ]
import com.vaadin.server.FontIcon;
import com.vaadin.server.*;
[ "com.vaadin.server" ]
com.vaadin.server;
449,410
protected void adjustScale( int columnIndex, int scale ) throws SQLException { int colType = getColumnType(columnIndex); if ((colType == Types.DECIMAL) || (colType == Types.NUMERIC)) { if (scale < 0) throw newSQLException(SQLState.BAD_SCALE_VALUE, new Integer(scale)); try { Da...
void function( int columnIndex, int scale ) throws SQLException { int colType = getColumnType(columnIndex); if ((colType == Types.DECIMAL) (colType == Types.NUMERIC)) { if (scale < 0) throw newSQLException(SQLState.BAD_SCALE_VALUE, new Integer(scale)); try { DataValueDescriptor value = updateRow.getColumn(columnIndex);...
/** * <p> * Adjust the scale of a type. * </p> */
Adjust the scale of a type.
adjustScale
{ "repo_name": "viaper/DBPlus", "path": "DerbyHodgepodge/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet.java", "license": "apache-2.0", "size": 178663 }
[ "java.sql.SQLException", "java.sql.Types", "org.apache.derby.iapi.error.StandardException", "org.apache.derby.iapi.reference.SQLState", "org.apache.derby.iapi.types.DataValueDescriptor", "org.apache.derby.iapi.types.VariableSizeDataValue" ]
import java.sql.SQLException; import java.sql.Types; import org.apache.derby.iapi.error.StandardException; import org.apache.derby.iapi.reference.SQLState; import org.apache.derby.iapi.types.DataValueDescriptor; import org.apache.derby.iapi.types.VariableSizeDataValue;
import java.sql.*; import org.apache.derby.iapi.error.*; import org.apache.derby.iapi.reference.*; import org.apache.derby.iapi.types.*;
[ "java.sql", "org.apache.derby" ]
java.sql; org.apache.derby;
348,544