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
private void remConf() throws ConfirmModSchemaException { try { // Remove options group, asking user to confirm full sync if necessary mCol.getDecks().remConf(mOptions.getLong("id")); // Run the CPU intensive re-sort operation in a ...
void function() throws ConfirmModSchemaException { try { mCol.getDecks().remConf(mOptions.getLong("id")); DeckTask.launchDeckTask(DeckTask.TASK_TYPE_CONF_REMOVE, mConfChangeHandler, new DeckTask.TaskData(new Object[] { mOptions })); mDeck.put("conf", 1); } catch (JSONException e) { throw new RuntimeException(e); } } }
/** * Remove the currently selected options group * @throws ConfirmModSchemaException */
Remove the currently selected options group
remConf
{ "repo_name": "mikeAopeneng/joyo-kanji", "path": "KanjiDroid/src/main/java/website/openeng/anki/DeckOptions.java", "license": "gpl-2.0", "size": 33380 }
[ "org.json.JSONException", "website.openeng.anki.exception.ConfirmModSchemaException", "website.openeng.async.DeckTask" ]
import org.json.JSONException; import website.openeng.anki.exception.ConfirmModSchemaException; import website.openeng.async.DeckTask;
import org.json.*; import website.openeng.anki.exception.*; import website.openeng.async.*;
[ "org.json", "website.openeng.anki", "website.openeng.async" ]
org.json; website.openeng.anki; website.openeng.async;
2,303,955
Pair<Integer, Long> stopRecordingDroppedFrames();
Pair<Integer, Long> stopRecordingDroppedFrames();
/** * Returns the number of frames dropped since starting **/
Returns the number of frames dropped since starting
stopRecordingDroppedFrames
{ "repo_name": "haowenbiao/AndroidProject", "path": "lottie-android-master/LottieSample/src/main/java/com/airbnb/lottie/samples/ILottieApplication.java", "license": "apache-2.0", "size": 268 }
[ "android.support.v4.util.Pair" ]
import android.support.v4.util.Pair;
import android.support.v4.util.*;
[ "android.support" ]
android.support;
1,389,237
private Animator createDialogSlideAnimator(boolean isEnter) { final float animHeight = -1f * mContainer.getHeight(); ObjectAnimator translateAnim; if (isEnter) { mContainer.setTranslationY(animHeight); translateAnim = ObjectAnimator.ofFloat(mContainer, View.TRANSLATIO...
Animator function(boolean isEnter) { final float animHeight = -1f * mContainer.getHeight(); ObjectAnimator translateAnim; if (isEnter) { mContainer.setTranslationY(animHeight); translateAnim = ObjectAnimator.ofFloat(mContainer, View.TRANSLATION_Y, 0f); translateAnim.setInterpolator(BakedBezierInterpolator.FADE_IN_CURVE...
/** * Create an animator to slide in the entire dialog from the top of the screen. */
Create an animator to slide in the entire dialog from the top of the screen
createDialogSlideAnimator
{ "repo_name": "Just-D/chromium-1", "path": "chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java", "license": "bsd-3-clause", "size": 42606 }
[ "android.animation.Animator", "android.animation.ObjectAnimator", "android.view.View", "org.chromium.ui.interpolators.BakedBezierInterpolator" ]
import android.animation.Animator; import android.animation.ObjectAnimator; import android.view.View; import org.chromium.ui.interpolators.BakedBezierInterpolator;
import android.animation.*; import android.view.*; import org.chromium.ui.interpolators.*;
[ "android.animation", "android.view", "org.chromium.ui" ]
android.animation; android.view; org.chromium.ui;
2,476,771
protected String getNamespace(HasMetadata entity) { String answer = KubernetesHelper.getNamespace(entity); if (Strings.isNullOrBlank(answer)) { answer = getNamespace(); } // lest make sure the namespace exists applyNamespace(answer); return answer; }
String function(HasMetadata entity) { String answer = KubernetesHelper.getNamespace(entity); if (Strings.isNullOrBlank(answer)) { answer = getNamespace(); } applyNamespace(answer); return answer; }
/** * Returns the namespace defined in the entity or the configured namespace */
Returns the namespace defined in the entity or the configured namespace
getNamespace
{ "repo_name": "chirino/fabric8v2", "path": "components/kubernetes-api/src/main/java/io/fabric8/kubernetes/api/Controller.java", "license": "apache-2.0", "size": 70148 }
[ "io.fabric8.kubernetes.api.model.HasMetadata", "io.fabric8.utils.Strings" ]
import io.fabric8.kubernetes.api.model.HasMetadata; import io.fabric8.utils.Strings;
import io.fabric8.kubernetes.api.model.*; import io.fabric8.utils.*;
[ "io.fabric8.kubernetes", "io.fabric8.utils" ]
io.fabric8.kubernetes; io.fabric8.utils;
1,320,680
@Override public void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) { // delegate 'info' and 'source' argument checks... CategoryPlot subplot = findSubplot(info, source); if (subplot != null) { ...
void function(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) { CategoryPlot subplot = findSubplot(info, source); if (subplot != null) { subplot.zoomRangeAxes(lowerPercent, upperPercent, info, source); } else { Iterator iterator = getSubplots().iterator(); while (iterator.hasNext()) { ...
/** * Zooms in on the range axes. * * @param lowerPercent the lower bound. * @param upperPercent the upper bound. * @param info the plot rendering info (<code>null</code> not permitted). * @param source the source point (<code>null</code> not permitted). */
Zooms in on the range axes
zoomRangeAxes
{ "repo_name": "sebkur/JFreeChart", "path": "src/main/java/org/jfree/chart/plot/CombinedDomainCategoryPlot.java", "license": "lgpl-3.0", "size": 25498 }
[ "java.awt.geom.Point2D", "java.util.Iterator" ]
import java.awt.geom.Point2D; import java.util.Iterator;
import java.awt.geom.*; import java.util.*;
[ "java.awt", "java.util" ]
java.awt; java.util;
2,279,538
@SuppressWarnings("unchecked") public MBeanInfoWrapper readMBeanInfo(InputStream in) throws ConversionException, IOException, ClassNotFoundException { JSONObject json = parseObject(in); MBeanInfoWrapper ret = new MBeanInfoWrapper(); if (USE_BASE64_FOR_MBEANINFO) { Object o = ...
@SuppressWarnings(STR) MBeanInfoWrapper function(InputStream in) throws ConversionException, IOException, ClassNotFoundException { JSONObject json = parseObject(in); MBeanInfoWrapper ret = new MBeanInfoWrapper(); if (USE_BASE64_FOR_MBEANINFO) { Object o = readSerialized(json.get(N_SERIALIZED)); if (!(o instanceof MBean...
/** * Decode a JSON document to retrieve an MBeanInfoWrapper instance. * * Note that all descriptors are of class ImmutableDescriptor. * * @param in The stream to read JSON from * @return The decoded MBeanInfoWrapper instance * @throws ConversionException If JSON uses unexpected struc...
Decode a JSON document to retrieve an MBeanInfoWrapper instance. Note that all descriptors are of class ImmutableDescriptor
readMBeanInfo
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.jmx.connector.client.rest/src/com/ibm/ws/jmx/connector/converter/JSONConverter.java", "license": "epl-1.0", "size": 184410 }
[ "com.ibm.json.java.JSONObject", "com.ibm.ws.jmx.connector.datatypes.ConversionException", "com.ibm.ws.jmx.connector.datatypes.MBeanInfoWrapper", "java.io.IOException", "java.io.InputStream", "java.util.HashMap", "java.util.Map", "javax.management.Descriptor", "javax.management.MBeanAttributeInfo", ...
import com.ibm.json.java.JSONObject; import com.ibm.ws.jmx.connector.datatypes.ConversionException; import com.ibm.ws.jmx.connector.datatypes.MBeanInfoWrapper; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Map; import javax.management.Descriptor; import javax.managem...
import com.ibm.json.java.*; import com.ibm.ws.jmx.connector.datatypes.*; import java.io.*; import java.util.*; import javax.management.*;
[ "com.ibm.json", "com.ibm.ws", "java.io", "java.util", "javax.management" ]
com.ibm.json; com.ibm.ws; java.io; java.util; javax.management;
2,671,631
@Override public synchronized Document mergeBackend() { if (getBackend() != null && getBackend().getStorage() != null && getMergeDocument() != null) { Document newDoc = getMergeDocument(); for (Map.Entry<String, BaseBean> lEntry : getBackend().getStorage() .entrySet()) { // check if bean shoul...
synchronized Document function() { if (getBackend() != null && getBackend().getStorage() != null && getMergeDocument() != null) { Document newDoc = getMergeDocument(); for (Map.Entry<String, BaseBean> lEntry : getBackend().getStorage() .entrySet()) { if (isBeanActive(lEntry.getKey())) { newDoc =getBeanTransformer().mer...
/** * Merges the current bean values with the XML stored in mMergeDocument * * @return Document with merged values or null if on of the input is empty */
Merges the current bean values with the XML stored in mMergeDocument
mergeBackend
{ "repo_name": "nuest/Sensor_SmartEditor", "path": "smartsensoreditor-api/src/main/java/org/n52/smartsensoreditor/service/BackendManagerServiceSML.java", "license": "apache-2.0", "size": 6135 }
[ "de.conterra.smarteditor.beans.BaseBean", "java.util.Map", "org.w3c.dom.Document" ]
import de.conterra.smarteditor.beans.BaseBean; import java.util.Map; import org.w3c.dom.Document;
import de.conterra.smarteditor.beans.*; import java.util.*; import org.w3c.dom.*;
[ "de.conterra.smarteditor", "java.util", "org.w3c.dom" ]
de.conterra.smarteditor; java.util; org.w3c.dom;
196,718
protected void sequence_UiMobileHorizontalLayoutAssigment(EObject context, UiHorizontalLayoutAssigment semanticObject) { genericSequencer.createSequence(context, semanticObject); }
void function(EObject context, UiHorizontalLayoutAssigment semanticObject) { genericSequencer.createSequence(context, semanticObject); }
/** * Constraint: * (element=UiMobileEmbeddable alignment=UiAlignment?) */
Constraint: (element=UiMobileEmbeddable alignment=UiAlignment?)
sequence_UiMobileHorizontalLayoutAssigment
{ "repo_name": "lunifera/lunifera-ecview-addons", "path": "org.lunifera.ecview.dsl/src-gen/org/lunifera/ecview/dsl/serializer/UIGrammarSemanticSequencer.java", "license": "epl-1.0", "size": 151691 }
[ "org.eclipse.emf.ecore.EObject", "org.lunifera.ecview.semantic.uimodel.UiHorizontalLayoutAssigment" ]
import org.eclipse.emf.ecore.EObject; import org.lunifera.ecview.semantic.uimodel.UiHorizontalLayoutAssigment;
import org.eclipse.emf.ecore.*; import org.lunifera.ecview.semantic.uimodel.*;
[ "org.eclipse.emf", "org.lunifera.ecview" ]
org.eclipse.emf; org.lunifera.ecview;
2,916,223
@FIXVersion(introduced="4.0") @TagNumRef(tagNum=TagNum.Side, required = true) public void setSide(Side side) { this.side = side; }
@FIXVersion(introduced="4.0") @TagNumRef(tagNum=TagNum.Side, required = true) void function(Side side) { this.side = side; }
/** * Message field setter. * @param side field value */
Message field setter
setSide
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/OrderModificationRequestMsg.java", "license": "gpl-3.0", "size": 149491 }
[ "net.hades.fix.message.anno.FIXVersion", "net.hades.fix.message.anno.TagNumRef", "net.hades.fix.message.type.Side", "net.hades.fix.message.type.TagNum" ]
import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.Side; import net.hades.fix.message.type.TagNum;
import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*;
[ "net.hades.fix" ]
net.hades.fix;
1,390,187
private CredentialComboBox getCred() { if (cred == null) { cred = new CredentialComboBox(); } return cred; }
CredentialComboBox function() { if (cred == null) { cred = new CredentialComboBox(); } return cred; }
/** * This method initializes cred * * @return javax.swing.JComboBox */
This method initializes cred
getCred
{ "repo_name": "NCIP/cagrid-core", "path": "caGrid/projects/gaards-ui/src/org/cagrid/gaards/ui/cds/SessionPanel.java", "license": "bsd-3-clause", "size": 4593 }
[ "org.cagrid.gaards.ui.common.CredentialComboBox" ]
import org.cagrid.gaards.ui.common.CredentialComboBox;
import org.cagrid.gaards.ui.common.*;
[ "org.cagrid.gaards" ]
org.cagrid.gaards;
1,881,415
void reset(ResetFrame frame, Consumer<Result<Void>> result);
void reset(ResetFrame frame, Consumer<Result<Void>> result);
/** * <p>Sends the given RST_STREAM {@code frame}.</p> * * @param frame The RST_FRAME to send. * @param result The result that gets notified when the frame has been sent. */
Sends the given RST_STREAM frame
reset
{ "repo_name": "hypercube1024/firefly", "path": "firefly-net/src/main/java/com/fireflysource/net/http/common/v2/stream/Stream.java", "license": "apache-2.0", "size": 9769 }
[ "com.fireflysource.common.sys.Result", "com.fireflysource.net.http.common.v2.frame.ResetFrame", "java.util.function.Consumer" ]
import com.fireflysource.common.sys.Result; import com.fireflysource.net.http.common.v2.frame.ResetFrame; import java.util.function.Consumer;
import com.fireflysource.common.sys.*; import com.fireflysource.net.http.common.v2.frame.*; import java.util.function.*;
[ "com.fireflysource.common", "com.fireflysource.net", "java.util" ]
com.fireflysource.common; com.fireflysource.net; java.util;
2,451,409
public static void setAnonymous(ClusterSet clusterSet) { logger.info("------ setAnonymous ------"); for (String idx : clusterSet) { Cluster cluster = clusterSet.getCluster(idx); String name = cluster.getName(); if (name.matches("[SC][0-9]+")) { String newName = name.replaceFirst("S", "speaker#"); ...
static void function(ClusterSet clusterSet) { logger.info(STR); for (String idx : clusterSet) { Cluster cluster = clusterSet.getCluster(idx); String name = cluster.getName(); if (name.matches(STR)) { String newName = name.replaceFirst("S", STR); cluster.setName(newName); logger.info(STR + name + STR + newName); } } Clu...
/** * Sets the anonymous. * * @param clusterSet the new anonymous */
Sets the anonymous
setAnonymous
{ "repo_name": "Adirockzz95/GenderDetect", "path": "src/src/fr/lium/experimental/spkDiarization/programs/SpeakerIdenificationDecision10.java", "license": "gpl-3.0", "size": 40757 }
[ "fr.lium.spkDiarization.libClusteringData.Cluster", "fr.lium.spkDiarization.libClusteringData.ClusterSet" ]
import fr.lium.spkDiarization.libClusteringData.Cluster; import fr.lium.spkDiarization.libClusteringData.ClusterSet;
import fr.lium.*;
[ "fr.lium" ]
fr.lium;
2,109,584
public Builder<BE, E> hop(Filter... filters) { selectExtender.path().with(filters); return this; }
Builder<BE, E> function(Filter... filters) { selectExtender.path().with(filters); return this; }
/** * Appends the provided set of filters to the current select candidates. * The filters are applied as path fragments. * * @param filters the set of filters to append as path fragments * @return this builder */
Appends the provided set of filters to the current select candidates. The filters are applied as path fragments
hop
{ "repo_name": "jpkrohling/hawkular-inventory", "path": "hawkular-inventory-api/src/main/java/org/hawkular/inventory/base/TraversalContext.java", "license": "apache-2.0", "size": 19277 }
[ "org.hawkular.inventory.api.filters.Filter" ]
import org.hawkular.inventory.api.filters.Filter;
import org.hawkular.inventory.api.filters.*;
[ "org.hawkular.inventory" ]
org.hawkular.inventory;
1,180,066
public TestingEventBuses.Event assertNext(final Predicate<TestingEventBuses.Event> predicate, Function<TestingEventBuses.Event, String> messageGen ) throws InterruptedException, TimeoutException { TestingEventBuses.Event nextEvent = _events.pollFirst(_defaultTimeoutValue, _defaultTimeoutUnit); ...
TestingEventBuses.Event function(final Predicate<TestingEventBuses.Event> predicate, Function<TestingEventBuses.Event, String> messageGen ) throws InterruptedException, TimeoutException { TestingEventBuses.Event nextEvent = _events.pollFirst(_defaultTimeoutValue, _defaultTimeoutUnit); if (null == nextEvent) { throw new...
/** Gets the next event from the queue and validates that it satisfies a given predicate. Blocking * assert. The event is removed from the internal queue regardless if the predicate has been * satisfied. * @param predicate the predicate to apply on the next event * @param assert error message generator *...
Gets the next event from the queue and validates that it satisfies a given predicate. Blocking assert. The event is removed from the internal queue regardless if the predicate has been satisfied
assertNext
{ "repo_name": "yukuai518/gobblin", "path": "gobblin-core/src/main/java/gobblin/writer/test/TestingEventBusAsserter.java", "license": "apache-2.0", "size": 6414 }
[ "com.google.common.base.Function", "com.google.common.base.Predicate", "java.util.concurrent.TimeoutException" ]
import com.google.common.base.Function; import com.google.common.base.Predicate; import java.util.concurrent.TimeoutException;
import com.google.common.base.*; import java.util.concurrent.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
337,064
hi.show();}</pre></noscript> * * @return LocationManager Object */ public LocationManager getLocationManager() { return impl.getLocationManager(); }
hi.show();}</pre></noscript> * * @return LocationManager Object */ LocationManager function() { return impl.getLocationManager(); }
/** * This method returns the platform Location Manager used for geofencing. This allows tracking the * user location in the background. Usage: * * <script src="https://gist.github.com/codenameone/b0fa5280bde905a8f0cd.js"></script> <noscript><pre>{@code public class GeofenceListenerImpl implements...
This method returns the platform Location Manager used for geofencing. This allows tracking the user location in the background. Usage:
getLocationManager
{ "repo_name": "codenameone/CodenameOne", "path": "CodenameOne/src/com/codename1/ui/Display.java", "license": "gpl-2.0", "size": 192339 }
[ "com.codename1.location.LocationManager" ]
import com.codename1.location.LocationManager;
import com.codename1.location.*;
[ "com.codename1.location" ]
com.codename1.location;
508,942
public static List<String> getLatestSyncLogFiles(Channel c) { String logPath = Config.get().getString(ConfigDefaults.SPACEWALK_REPOSYNC_LOG_PATH, "/var/log/rhn/reposync/"); File dir = new File(logPath); List<String> possibleList = new ArrayList<String>(); String[] d...
static List<String> function(Channel c) { String logPath = Config.get().getString(ConfigDefaults.SPACEWALK_REPOSYNC_LOG_PATH, STR); File dir = new File(logPath); List<String> possibleList = new ArrayList<String>(); String[] dirList = dir.list(); if (dirList != null) { for (String file : dirList) { if (file.startsWith(c...
/** * get the latest log file for spacewalk-repo-sync * @param c channel * @return the string of the filename (fully qualified) */
get the latest log file for spacewalk-repo-sync
getLatestSyncLogFiles
{ "repo_name": "dmacvicar/spacewalk", "path": "java/code/src/com/redhat/rhn/manager/channel/ChannelManager.java", "license": "gpl-2.0", "size": 105505 }
[ "com.redhat.rhn.common.conf.Config", "com.redhat.rhn.common.conf.ConfigDefaults", "com.redhat.rhn.domain.channel.Channel", "java.io.File", "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import com.redhat.rhn.common.conf.Config; import com.redhat.rhn.common.conf.ConfigDefaults; import com.redhat.rhn.domain.channel.Channel; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.List;
import com.redhat.rhn.common.conf.*; import com.redhat.rhn.domain.channel.*; import java.io.*; import java.util.*;
[ "com.redhat.rhn", "java.io", "java.util" ]
com.redhat.rhn; java.io; java.util;
1,312,042
public List<String> authorizedResources() { return this.authorizedResources; }
List<String> function() { return this.authorizedResources; }
/** * Get the authorizedResources property: List of Resource referred into query. * * @return the authorizedResources value. */
Get the authorizedResources property: List of Resource referred into query
authorizedResources
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-monitor/src/main/java/com/azure/resourcemanager/monitor/models/Source.java", "license": "mit", "size": 3789 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
467,858
protected void addError(int code, String key) { errorCodes = (int[]) ArrayUtil.resizeArray(errorCodes, errorCodes.length + 1); errorKeys = (String[]) ArrayUtil.resizeArray(errorKeys, errorKeys.length + 1); errorCodes[errorCodes.length - 1] = code; err...
void function(int code, String key) { errorCodes = (int[]) ArrayUtil.resizeArray(errorCodes, errorCodes.length + 1); errorKeys = (String[]) ArrayUtil.resizeArray(errorKeys, errorKeys.length + 1); errorCodes[errorCodes.length - 1] = code; errorKeys[errorKeys.length - 1] = key; }
/** * Adds the error code and the key to the list of errors. This list * is populated during construction or addition of elements and is used * outside this class to act upon the errors. */
Adds the error code and the key to the list of errors. This list is populated during construction or addition of elements and is used outside this class to act upon the errors
addError
{ "repo_name": "Julien35/dev-courses", "path": "tutoriel-spring-mvc/lib/hsqldb/src/org/hsqldb/persist/HsqlProperties.java", "license": "mit", "size": 17510 }
[ "org.hsqldb.lib.ArrayUtil" ]
import org.hsqldb.lib.ArrayUtil;
import org.hsqldb.lib.*;
[ "org.hsqldb.lib" ]
org.hsqldb.lib;
1,710,282
public static long getFileSize(String path) { if (StringUtils.isBlank(path)) { return -1; } File file = new File(path); return (file.exists() && file.isFile() ? file.length() : -1); }
static long function(String path) { if (StringUtils.isBlank(path)) { return -1; } File file = new File(path); return (file.exists() && file.isFile() ? file.length() : -1); }
/** * get file size * <ul> * <li>if path is null or empty, return -1</li> * <li>if path exist and it is a file, return file size, else return -1</li> * <ul> * * @param path * @return returns the length of this file in bytes. returns -1 if the file does not exist. */
get file size if path is null or empty, return -1 if path exist and it is a file, return file size, else return -1
getFileSize
{ "repo_name": "DesignQu/MVPFrames", "path": "Common/src/main/java/com/tool/common/utils/FileUtils.java", "license": "apache-2.0", "size": 26780 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,658,305
public ServiceFuture<Void> registerAsync(String userName, String registrationCode, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(registerWithServiceResponseAsync(userName, registrationCode), serviceCallback); }
ServiceFuture<Void> function(String userName, String registrationCode, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(registerWithServiceResponseAsync(userName, registrationCode), serviceCallback); }
/** * Register a user to a managed lab. * * @param userName The name of the user. * @param registrationCode The registration code of the lab. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameter...
Register a user to a managed lab
registerAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/labservices/mgmt-v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/GlobalUsersInner.java", "license": "mit", "size": 77728 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
2,744,732
private Collection<Protocol> protocolCollection; public Collection<Protocol> getProtocolCollection(){ return protocolCollection; }
Collection<Protocol> protocolCollection; public Collection<Protocol> function(){ return protocolCollection; }
/** * Retreives the value of protocolCollection attribue * @return protocolCollection **/
Retreives the value of protocolCollection attribue
getProtocolCollection
{ "repo_name": "NCIP/cagrid2", "path": "cagrid-mms/cagrid-mms-cadsr-impl/src/main/java/gov/nih/nci/cadsr/domain/Form.java", "license": "bsd-3-clause", "size": 2672 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,532,489
public Connection getConnection(boolean createIfNotPresent) throws DalDbException;
Connection function(boolean createIfNotPresent) throws DalDbException;
/** * Return the current JDBC Connection for this DalDatabase if it exists or <code>createIfNotPresent</code> * is true. Otherwise, return <code>null</code>. * @param createIfNotPresent * @return Connection or null * @throws DalDbException */
Return the current JDBC Connection for this DalDatabase if it exists or <code>createIfNotPresent</code> is true. Otherwise, return <code>null</code>
getConnection
{ "repo_name": "kddart/interopServer-DAL", "path": "src/main/com/diversityarrays/dal/db/SqlDalDatabase.java", "license": "gpl-3.0", "size": 1954 }
[ "java.sql.Connection" ]
import java.sql.Connection;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,678,553
Uri parse (String path) { if (path.startsWith("res:")) { return getUriForResourcePath(path); } else if (path.startsWith("file:///")) { return getUriFromPath(path); } else if (path.startsWith("file://")) { return getUriFromAsset(path); } el...
Uri parse (String path) { if (path.startsWith("res:")) { return getUriForResourcePath(path); } else if (path.startsWith(STRfile: return getUriFromAsset(path); } else if (path.startsWith("http")){ return getUriFromRemote(path); } return Uri.EMPTY; }
/** * The URI for a path. * * @param path * The given path */
The URI for a path
parse
{ "repo_name": "nozelrosario/Dcare", "path": "plugins/de.appplant.cordova.plugin.local-notification/src/android/notification/AssetUtil.java", "license": "apache-2.0", "size": 12251 }
[ "android.net.Uri" ]
import android.net.Uri;
import android.net.*;
[ "android.net" ]
android.net;
1,295,581
private static void subscribeToVirtChannel(Server server, User user, ValidatorResult result) { Channel virtChannel = ChannelManager.subscribeToChildChannelByOSProduct( user, server, ChannelManager.VT_OS_PRODUCT); log.debug("virtChannel search by OS product found: " + virt...
static void function(Server server, User user, ValidatorResult result) { Channel virtChannel = ChannelManager.subscribeToChildChannelByOSProduct( user, server, ChannelManager.VT_OS_PRODUCT); log.debug(STR + virtChannel); if (virtChannel == null) { log.debug(STR + STR); try { virtChannel = ChannelManager.subscribeToChil...
/** * Subscribe the system to the Red Hat Virtualization channel if necessary. * * This method should only ever be called in Satellite. * * @param server Server to schedule install for. * @param user User performing the operation. * @param result Validation result we'll be returning f...
Subscribe the system to the Red Hat Virtualization channel if necessary. This method should only ever be called in Satellite
subscribeToVirtChannel
{ "repo_name": "renner/spacewalk", "path": "java/code/src/com/redhat/rhn/manager/system/SystemManager.java", "license": "gpl-2.0", "size": 132498 }
[ "com.redhat.rhn.common.validator.ValidatorError", "com.redhat.rhn.common.validator.ValidatorResult", "com.redhat.rhn.common.validator.ValidatorWarning", "com.redhat.rhn.domain.channel.Channel", "com.redhat.rhn.domain.server.Server", "com.redhat.rhn.domain.user.User", "com.redhat.rhn.manager.channel.Chan...
import com.redhat.rhn.common.validator.ValidatorError; import com.redhat.rhn.common.validator.ValidatorResult; import com.redhat.rhn.common.validator.ValidatorWarning; import com.redhat.rhn.domain.channel.Channel; import com.redhat.rhn.domain.server.Server; import com.redhat.rhn.domain.user.User; import com.redhat.rhn....
import com.redhat.rhn.common.validator.*; import com.redhat.rhn.domain.channel.*; import com.redhat.rhn.domain.server.*; import com.redhat.rhn.domain.user.*; import com.redhat.rhn.manager.channel.*;
[ "com.redhat.rhn" ]
com.redhat.rhn;
1,058,410
public void alert(String givenValue){ final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setTitle(R.string.invalid_input); builder.setMessage(givenValue); builder.setPositiveButton(R.string.ok, null); builder.show(); }
void function(String givenValue){ final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setTitle(R.string.invalid_input); builder.setMessage(givenValue); builder.setPositiveButton(R.string.ok, null); builder.show(); }
/** * Sets up a simple alert pop-up that shows up when the user tries to insert invalid * text to a preference field. * * @param givenValue */
Sets up a simple alert pop-up that shows up when the user tries to insert invalid text to a preference field
alert
{ "repo_name": "BarCodeKey/BarCodeKey", "path": "app/src/main/java/app/preferences/SettingsFragment.java", "license": "mit", "size": 9161 }
[ "android.app.AlertDialog" ]
import android.app.AlertDialog;
import android.app.*;
[ "android.app" ]
android.app;
404,896
private void updateJobState(final Ticket ticket, final ExecutionState executionState) { final JobInfo jobInfo = getJobInfo(ticket); final QueueStage stage = getQueueStage(executionState); boolean postprocess = false; boolean updated = false; synchronized(jobInfo) { final QueueStage currentSt...
void function(final Ticket ticket, final ExecutionState executionState) { final JobInfo jobInfo = getJobInfo(ticket); final QueueStage stage = getQueueStage(executionState); boolean postprocess = false; boolean updated = false; synchronized(jobInfo) { final QueueStage currentStage = jobInfo.queueStage; if(currentStage ...
/** * ExecutionState's may be skipped, may come out of order. jobInfo.queueStage and jobInfo.jobProcessor may be not initialized yet. */
ExecutionState's may be skipped, may come out of order. jobInfo.queueStage and jobInfo.jobProcessor may be not initialized yet
updateJobState
{ "repo_name": "jmchilton/TINT", "path": "projects/TropixJobQueue/src/main/edu/umn/msi/tropix/common/jobqueue/impl/JobProcessorQueueImpl.java", "license": "epl-1.0", "size": 21510 }
[ "edu.umn.msi.tropix.common.jobqueue.QueueStage", "edu.umn.msi.tropix.common.jobqueue.execution.ExecutionState", "edu.umn.msi.tropix.common.jobqueue.progress.ProgressTrackable", "edu.umn.msi.tropix.common.jobqueue.ticket.Ticket", "edu.umn.msi.tropix.common.logging.ExceptionUtils" ]
import edu.umn.msi.tropix.common.jobqueue.QueueStage; import edu.umn.msi.tropix.common.jobqueue.execution.ExecutionState; import edu.umn.msi.tropix.common.jobqueue.progress.ProgressTrackable; import edu.umn.msi.tropix.common.jobqueue.ticket.Ticket; import edu.umn.msi.tropix.common.logging.ExceptionUtils;
import edu.umn.msi.tropix.common.jobqueue.*; import edu.umn.msi.tropix.common.jobqueue.execution.*; import edu.umn.msi.tropix.common.jobqueue.progress.*; import edu.umn.msi.tropix.common.jobqueue.ticket.*; import edu.umn.msi.tropix.common.logging.*;
[ "edu.umn.msi" ]
edu.umn.msi;
2,313,238
public ConcurrentHashMap<String, LogicalDevice> getLogicalDevices() { return logicalDevices; }
ConcurrentHashMap<String, LogicalDevice> function() { return logicalDevices; }
/** * Returns the list of logical devices. * * @return the logicalDevices */
Returns the list of logical devices
getLogicalDevices
{ "repo_name": "cschneider/openhab", "path": "bundles/binding/org.openhab.binding.rwesmarthome/src/main/java/org/openhab/binding/rwesmarthome/internal/communicator/RWESmarthomeSession.java", "license": "epl-1.0", "size": 10160 }
[ "java.util.concurrent.ConcurrentHashMap", "org.openhab.binding.rwesmarthome.internal.model.LogicalDevice" ]
import java.util.concurrent.ConcurrentHashMap; import org.openhab.binding.rwesmarthome.internal.model.LogicalDevice;
import java.util.concurrent.*; import org.openhab.binding.rwesmarthome.internal.model.*;
[ "java.util", "org.openhab.binding" ]
java.util; org.openhab.binding;
619,117
private String message(String pattern, Object ... params) { return path() + "::" + MessageFormat.format(pattern, params); }
String function(String pattern, Object ... params) { return path() + "::" + MessageFormat.format(pattern, params); }
/** * Format an assertion message, including the current path. * @param pattern * @param params */
Format an assertion message, including the current path
message
{ "repo_name": "rnc/apiman", "path": "test/common/src/main/java/io/apiman/test/common/json/JsonCompare.java", "license": "apache-2.0", "size": 18428 }
[ "java.text.MessageFormat" ]
import java.text.MessageFormat;
import java.text.*;
[ "java.text" ]
java.text;
2,407,230
public Object objectToData(Object object) { return object; } } private static class SupplierKeyBinding extends TupleBinding { private SupplierKeyBinding() { }
Object function(Object object) { return object; } } private static class SupplierKeyBinding extends TupleBinding { private SupplierKeyBinding() { }
/** * Return the entity as the stored data. There is nothing to do here * since the entity's key fields are transient. */
Return the entity as the stored data. There is nothing to do here since the entity's key fields are transient
objectToData
{ "repo_name": "zheguang/BerkeleyDB", "path": "examples/java/src/collections/ship/sentity/SampleViews.java", "license": "agpl-3.0", "size": 13415 }
[ "com.sleepycat.bind.tuple.TupleBinding" ]
import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.bind.tuple.*;
[ "com.sleepycat.bind" ]
com.sleepycat.bind;
1,237,337
protected String buildDocumentTitle(String title) { if (this.getVendorDetail() == null) { return title; } Integer vendorHeaderGeneratedIdentifier = this.getVendorDetail().getVendorHeaderGeneratedIdentifier(); VendorService vendorService = SpringContext.getBean(VendorServ...
String function(String title) { if (this.getVendorDetail() == null) { return title; } Integer vendorHeaderGeneratedIdentifier = this.getVendorDetail().getVendorHeaderGeneratedIdentifier(); VendorService vendorService = SpringContext.getBean(VendorService.class); Object[] indicators = new String[2]; boolean isEmployeeVe...
/** * build document title based on the properties of current document * * @param the default document title * @return the combine information of the given title and additional payment indicators */
build document title based on the properties of current document
buildDocumentTitle
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-purap/src/main/java/org/kuali/kfs/module/purap/document/PurchasingAccountsPayableDocumentBase.java", "license": "agpl-3.0", "size": 52309 }
[ "java.text.MessageFormat", "org.kuali.kfs.sys.KFSConstants", "org.kuali.kfs.sys.context.SpringContext", "org.kuali.kfs.vnd.document.service.VendorService" ]
import java.text.MessageFormat; import org.kuali.kfs.sys.KFSConstants; import org.kuali.kfs.sys.context.SpringContext; import org.kuali.kfs.vnd.document.service.VendorService;
import java.text.*; import org.kuali.kfs.sys.*; import org.kuali.kfs.sys.context.*; import org.kuali.kfs.vnd.document.service.*;
[ "java.text", "org.kuali.kfs" ]
java.text; org.kuali.kfs;
19,099
@Test public void testLoadReplicaDuringDecommissioning() { EasyMock.expect(throttler.canCreateReplicant(EasyMock.anyString())).andReturn(true).anyTimes(); final LoadQueuePeon mockPeon1 = createEmptyPeon(); final LoadQueuePeon mockPeon2 = createOneCallPeonMock(); final LoadQueuePeon mockPeon3 = cr...
void function() { EasyMock.expect(throttler.canCreateReplicant(EasyMock.anyString())).andReturn(true).anyTimes(); final LoadQueuePeon mockPeon1 = createEmptyPeon(); final LoadQueuePeon mockPeon2 = createOneCallPeonMock(); final LoadQueuePeon mockPeon3 = createOneCallPeonMock(); final LoadQueuePeon mockPeon4 = createOne...
/** * 2 tiers, 2 servers each, 1 server of the second tier is decommissioning. * Should not load a segment to the server that is decommssioning. */
2 tiers, 2 servers each, 1 server of the second tier is decommissioning. Should not load a segment to the server that is decommssioning
testLoadReplicaDuringDecommissioning
{ "repo_name": "monetate/druid", "path": "server/src/test/java/org/apache/druid/server/coordinator/rules/LoadRuleTest.java", "license": "apache-2.0", "size": 36167 }
[ "com.google.common.collect.ImmutableList", "com.google.common.collect.ImmutableMap", "org.apache.druid.server.coordinator.CoordinatorStats", "org.apache.druid.server.coordinator.DruidCluster", "org.apache.druid.server.coordinator.DruidClusterBuilder", "org.apache.druid.server.coordinator.LoadQueuePeon", ...
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import org.apache.druid.server.coordinator.CoordinatorStats; import org.apache.druid.server.coordinator.DruidCluster; import org.apache.druid.server.coordinator.DruidClusterBuilder; import org.apache.druid.server.coordinator....
import com.google.common.collect.*; import org.apache.druid.server.coordinator.*; import org.apache.druid.timeline.*; import org.easymock.*; import org.junit.*;
[ "com.google.common", "org.apache.druid", "org.easymock", "org.junit" ]
com.google.common; org.apache.druid; org.easymock; org.junit;
1,775,357
private Polygon getPolygon(double minX, double minY, double maxX, double maxY){ Point2D.Double origin = label.getOrigin(); double x[] = new double[] {minX, minX, maxX, maxX}; double y[] = new double[] {minY, maxY, maxY, minY}; //rotating the points if ne...
Polygon function(double minX, double minY, double maxX, double maxY){ Point2D.Double origin = label.getOrigin(); double x[] = new double[] {minX, minX, maxX, maxX}; double y[] = new double[] {minY, maxY, maxY, minY}; double rot = label.getStyling().rotation; if( rot != 0 ) rotatePoints(x,y,4,origin.x,origin.y,(Math.toR...
/** * Creates a JTS-Polygon from min/max values and returns it. */
Creates a JTS-Polygon from min/max values and returns it
getPolygon
{ "repo_name": "deegree/deegree3", "path": "deegree-core/deegree-core-rendering-2d/src/main/java/org/deegree/rendering/r2d/labelplacement/PointLabelPositionOptions.java", "license": "lgpl-2.1", "size": 10550 }
[ "java.awt.geom.Point2D", "org.locationtech.jts.geom.Coordinate", "org.locationtech.jts.geom.Polygon" ]
import java.awt.geom.Point2D; import org.locationtech.jts.geom.Coordinate; import org.locationtech.jts.geom.Polygon;
import java.awt.geom.*; import org.locationtech.jts.geom.*;
[ "java.awt", "org.locationtech.jts" ]
java.awt; org.locationtech.jts;
2,252,211
public void removeCachePool(String poolName) throws IOException { assert namesystem.hasWriteLock(); try { CachePoolInfo.validateName(poolName); CachePool pool = cachePools.remove(poolName); if (pool == null) { throw new InvalidRequestException( "Cannot remove non-ex...
void function(String poolName) throws IOException { assert namesystem.hasWriteLock(); try { CachePoolInfo.validateName(poolName); CachePool pool = cachePools.remove(poolName); if (pool == null) { throw new InvalidRequestException( STR + poolName); } Iterator<CacheDirective> iter = pool.getDirectiveList().iterator(); wh...
/** * Remove a cache pool. * * Only the superuser should be able to call this function. * * @param poolName * The name for the cache pool to remove. */
Remove a cache pool. Only the superuser should be able to call this function
removeCachePool
{ "repo_name": "apurtell/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/CacheManager.java", "license": "apache-2.0", "size": 46979 }
[ "java.io.IOException", "java.util.Iterator", "org.apache.hadoop.fs.InvalidRequestException", "org.apache.hadoop.hdfs.protocol.CacheDirective", "org.apache.hadoop.hdfs.protocol.CachePoolInfo" ]
import java.io.IOException; import java.util.Iterator; import org.apache.hadoop.fs.InvalidRequestException; import org.apache.hadoop.hdfs.protocol.CacheDirective; import org.apache.hadoop.hdfs.protocol.CachePoolInfo;
import java.io.*; import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.protocol.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
1,897,752
public static Map<String, Object> getDocumentProperties(DocumentLibraryPage documentLibraryPage, String filename) { DocumentDetailsPage docDetailsPage = documentLibraryPage.selectFile(filename).render(); return docDetailsPage.getProperties(); }
static Map<String, Object> function(DocumentLibraryPage documentLibraryPage, String filename) { DocumentDetailsPage docDetailsPage = documentLibraryPage.selectFile(filename).render(); return docDetailsPage.getProperties(); }
/** * assume that we are in the DocumentLibrary root * Return the properties details of a particular file from DocumentLibary * * @param documentLibraryPage * @param filename * @return */
assume that we are in the DocumentLibrary root Return the properties details of a particular file from DocumentLibary
getDocumentProperties
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/qa-share/src/main/java/org/alfresco/share/util/DocumentLibraryUtil.java", "license": "lgpl-3.0", "size": 2570 }
[ "java.util.Map", "org.alfresco.po.share.site.document.DocumentDetailsPage", "org.alfresco.po.share.site.document.DocumentLibraryPage" ]
import java.util.Map; import org.alfresco.po.share.site.document.DocumentDetailsPage; import org.alfresco.po.share.site.document.DocumentLibraryPage;
import java.util.*; import org.alfresco.po.share.site.document.*;
[ "java.util", "org.alfresco.po" ]
java.util; org.alfresco.po;
2,851,135
public SearchResultsCollection getResultSlice( DBconnection conn, ScrollParams scrollParams, String orderBy, String query_id) throws SQLException { ...
SearchResultsCollection function( DBconnection conn, ScrollParams scrollParams, String orderBy, String query_id) throws SQLException { CloneSummary[] searchResults = null; CloneSummary clone = null; ArrayList found = null; SearchResultsCollection searchCollection = new SearchResultsCollection(); StringBuffer query = ne...
/** * Retrieves requested slice of total result set * * @param conn An active connection to the database * @param scrollParams ScrollParams object containing data defining floor * and ceiling of result set * @param sessionID User's session id. Used to retrieve data from person * spe...
Retrieves requested slice of total result set
getResultSlice
{ "repo_name": "tair/tairwebapp", "path": "src/org/tair/search/dna/CloneSearcher.java", "license": "gpl-3.0", "size": 30422 }
[ "java.sql.ResultSet", "java.sql.SQLException", "java.util.ArrayList", "org.tair.tfc.DBconnection", "org.tair.utilities.ScrollParams", "org.tair.utilities.SearchResultsCollection" ]
import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import org.tair.tfc.DBconnection; import org.tair.utilities.ScrollParams; import org.tair.utilities.SearchResultsCollection;
import java.sql.*; import java.util.*; import org.tair.tfc.*; import org.tair.utilities.*;
[ "java.sql", "java.util", "org.tair.tfc", "org.tair.utilities" ]
java.sql; java.util; org.tair.tfc; org.tair.utilities;
1,651,961
protected void assertNode(String message, String expected, RexNode node) { String actual; if (node.isA(SqlKind.CAST) || node.isA(SqlKind.NEW_SPECIFICATION)) { // toString contains type (see RexCall.toString) actual = node.toString(); } else { actual = node + ":" + node.getType() + (node....
void function(String message, String expected, RexNode node) { String actual; if (node.isA(SqlKind.CAST) node.isA(SqlKind.NEW_SPECIFICATION)) { actual = node.toString(); } else { actual = node + ":" + node.getType() + (node.getType().isNullable() ? STR NOT NULL"); } assertEquals(expected, actual, message); }
/** * Asserts that a given node has expected string representation with account * of node type. * * @param message extra message that clarifies where the node came from * @param expected expected string representation of the node * @param node node to check */
Asserts that a given node has expected string representation with account of node type
assertNode
{ "repo_name": "vlsi/calcite", "path": "core/src/test/java/org/apache/calcite/rex/RexProgramTestBase.java", "license": "apache-2.0", "size": 7481 }
[ "org.apache.calcite.sql.SqlKind", "org.junit.jupiter.api.Assertions" ]
import org.apache.calcite.sql.SqlKind; import org.junit.jupiter.api.Assertions;
import org.apache.calcite.sql.*; import org.junit.jupiter.api.*;
[ "org.apache.calcite", "org.junit.jupiter" ]
org.apache.calcite; org.junit.jupiter;
196,306
void deleteUser(final DataLoadListener listener);
void deleteUser(final DataLoadListener listener);
/** * Delete user. * * @param listener the listener */
Delete user
deleteUser
{ "repo_name": "yonadev/yona-app-android", "path": "app/src/main/java/nu/yona/app/api/manager/AuthenticateManager.java", "license": "mpl-2.0", "size": 2853 }
[ "nu.yona.app.listener.DataLoadListener" ]
import nu.yona.app.listener.DataLoadListener;
import nu.yona.app.listener.*;
[ "nu.yona.app" ]
nu.yona.app;
1,908,346
public com.google.common.util.concurrent.ListenableFuture<com.google.container.v1.Operation> rollbackNodePoolUpgrade( com.google.container.v1.RollbackNodePoolUpgradeRequest request) { return futureUnaryCall( getChannel().newCall(getRollbackNodePoolUpgradeMethodHelper(), getCallOptions()), re...
com.google.common.util.concurrent.ListenableFuture<com.google.container.v1.Operation> function( com.google.container.v1.RollbackNodePoolUpgradeRequest request) { return futureUnaryCall( getChannel().newCall(getRollbackNodePoolUpgradeMethodHelper(), getCallOptions()), request); }
/** * <pre> * Roll back the previously Aborted or Failed NodePool upgrade. * This will be an no-op if the last upgrade successfully completed. * </pre> */
<code> Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last upgrade successfully completed. </code>
rollbackNodePoolUpgrade
{ "repo_name": "pongad/api-client-staging", "path": "generated/java/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java", "license": "bsd-3-clause", "size": 147597 }
[ "io.grpc.stub.ClientCalls" ]
import io.grpc.stub.ClientCalls;
import io.grpc.stub.*;
[ "io.grpc.stub" ]
io.grpc.stub;
2,509,973
public Builder addAllExpand(List<String> elements) { if (this.expand == null) { this.expand = new ArrayList<>(); } this.expand.addAll(elements); return this; }
Builder function(List<String> elements) { if (this.expand == null) { this.expand = new ArrayList<>(); } this.expand.addAll(elements); return this; }
/** * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and * subsequent calls adds additional elements to the original list. See {@link * ValueListListParams#expand} for the field documentation. */
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See <code>ValueListListParams#expand</code> for the field documentation
addAllExpand
{ "repo_name": "stripe/stripe-java", "path": "src/main/java/com/stripe/param/radar/ValueListListParams.java", "license": "mit", "size": 10366 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
991,549
@Nonnull public java.util.concurrent.CompletableFuture<ManagedMobileLobApp> putAsync(@Nonnull final ManagedMobileLobApp newManagedMobileLobApp) { return sendAsync(HttpMethod.PUT, newManagedMobileLobApp); }
java.util.concurrent.CompletableFuture<ManagedMobileLobApp> function(@Nonnull final ManagedMobileLobApp newManagedMobileLobApp) { return sendAsync(HttpMethod.PUT, newManagedMobileLobApp); }
/** * Creates a ManagedMobileLobApp with a new object * * @param newManagedMobileLobApp the object to create/update * @return a future with the result */
Creates a ManagedMobileLobApp with a new object
putAsync
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/ManagedMobileLobAppRequest.java", "license": "mit", "size": 7017 }
[ "com.microsoft.graph.http.HttpMethod", "com.microsoft.graph.models.ManagedMobileLobApp", "javax.annotation.Nonnull" ]
import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.models.ManagedMobileLobApp; import javax.annotation.Nonnull;
import com.microsoft.graph.http.*; import com.microsoft.graph.models.*; import javax.annotation.*;
[ "com.microsoft.graph", "javax.annotation" ]
com.microsoft.graph; javax.annotation;
2,184,542
private void testFailureLogFormatHelper(boolean checkIP, ApplicationId appId, ApplicationAttemptId attemptId, ContainerId containerId) { String fLog = RMAuditLogger.createFailureLog(USER, OPERATION, PERM, TARGET, DESC, appId, attemptId, containerId); StringBuilder expLog = new StringBuilder(...
void function(boolean checkIP, ApplicationId appId, ApplicationAttemptId attemptId, ContainerId containerId) { String fLog = RMAuditLogger.createFailureLog(USER, OPERATION, PERM, TARGET, DESC, appId, attemptId, containerId); StringBuilder expLog = new StringBuilder(); expLog.append(STR); if (checkIP) { InetAddress ip =...
/** * Test the AuditLog format for failure events. */
Test the AuditLog format for failure events
testFailureLogFormatHelper
{ "repo_name": "tseen/Federated-HDFS", "path": "tseenliu/FedHDFS-hadoop-src/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMAuditLogger.java", "license": "apache-2.0", "size": 8620 }
[ "java.net.InetAddress", "org.apache.hadoop.ipc.Server", "org.apache.hadoop.yarn.api.records.ApplicationAttemptId", "org.apache.hadoop.yarn.api.records.ApplicationId", "org.apache.hadoop.yarn.api.records.ContainerId", "org.apache.hadoop.yarn.server.resourcemanager.RMAuditLogger", "org.junit.Assert" ]
import java.net.InetAddress; import org.apache.hadoop.ipc.Server; import org.apache.hadoop.yarn.api.records.ApplicationAttemptId; import org.apache.hadoop.yarn.api.records.ApplicationId; import org.apache.hadoop.yarn.api.records.ContainerId; import org.apache.hadoop.yarn.server.resourcemanager.RMAuditLogger; import org...
import java.net.*; import org.apache.hadoop.ipc.*; import org.apache.hadoop.yarn.api.records.*; import org.apache.hadoop.yarn.server.resourcemanager.*; import org.junit.*;
[ "java.net", "org.apache.hadoop", "org.junit" ]
java.net; org.apache.hadoop; org.junit;
1,679,185
public static void register(String algorithmURI, String implementingClass) throws AlgorithmAlreadyRegisteredException { // check whether URI is already registered Class registeredClass = getImplementingClass(algorithmURI); if (registeredClass != null) { Object exArg...
static void function(String algorithmURI, String implementingClass) throws AlgorithmAlreadyRegisteredException { Class registeredClass = getImplementingClass(algorithmURI); if (registeredClass != null) { Object exArgs[] = { algorithmURI, registeredClass }; throw new AlgorithmAlreadyRegisteredException( STR, exArgs); } ...
/** * Method register * * @param algorithmURI * @param implementingClass * @throws AlgorithmAlreadyRegisteredException */
Method register
register
{ "repo_name": "haikuowuya/android_system_code", "path": "src/com/sun/org/apache/xml/internal/security/c14n/Canonicalizer.java", "license": "apache-2.0", "size": 11878 }
[ "com.sun.org.apache.xml.internal.security.exceptions.AlgorithmAlreadyRegisteredException" ]
import com.sun.org.apache.xml.internal.security.exceptions.AlgorithmAlreadyRegisteredException;
import com.sun.org.apache.xml.internal.security.exceptions.*;
[ "com.sun.org" ]
com.sun.org;
1,974,102
@Override public List<int[]> getInitialSetups(T owner) { List<int[]> result = new ArrayList<>(); List<PackData> vpd = owner.getDataSetups(); for (PackData pd:vpd) { result.add(pd.getBits()); owner.printBits(pd.getBits()); } return result; }
List<int[]> function(T owner) { List<int[]> result = new ArrayList<>(); List<PackData> vpd = owner.getDataSetups(); for (PackData pd:vpd) { result.add(pd.getBits()); owner.printBits(pd.getBits()); } return result; }
/** * Provides the initial gene setup. * * @param owner the owning the algorithm * @return the genes (0s and 1s) */
Provides the initial gene setup
getInitialSetups
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-weka/src/main/java/adams/opt/genetic/initialsetups/PackDataInitialSetupsProvider.java", "license": "gpl-3.0", "size": 2057 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,193,931
public static List<String> convertStringArrayToList(String[] data) { List<String> result = new ArrayList<String>(); for (int i = 0; i < data.length; i++) { result.add(data[i]); }// end for return result; }
static List<String> function(String[] data) { List<String> result = new ArrayList<String>(); for (int i = 0; i < data.length; i++) { result.add(data[i]); } return result; }
/** * Convenience method to converts an array of <code>String</code> to a * <code>List&lt;String&gt;</code>. * * @param data * an array of <code>String</code> * @return a new <code>List&lt;String&gt;</code> */
Convenience method to converts an array of <code>String</code> to a <code>List&lt;String&gt;</code>
convertStringArrayToList
{ "repo_name": "freeVM/freeVM", "path": "enhanced/java/classlib/modules/lang-management/src/main/java/org/apache/harmony/lang/management/ManagementUtils.java", "license": "apache-2.0", "size": 64134 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
659,995
public EventhubInner withCaptureDescription(CaptureDescription captureDescription) { if (this.innerProperties() == null) { this.innerProperties = new EventhubProperties(); } this.innerProperties().withCaptureDescription(captureDescription); return this; }
EventhubInner function(CaptureDescription captureDescription) { if (this.innerProperties() == null) { this.innerProperties = new EventhubProperties(); } this.innerProperties().withCaptureDescription(captureDescription); return this; }
/** * Set the captureDescription property: Properties of capture description. * * @param captureDescription the captureDescription value to set. * @return the EventhubInner object itself. */
Set the captureDescription property: Properties of capture description
withCaptureDescription
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/models/EventhubInner.java", "license": "mit", "size": 6666 }
[ "com.azure.resourcemanager.eventhubs.models.CaptureDescription" ]
import com.azure.resourcemanager.eventhubs.models.CaptureDescription;
import com.azure.resourcemanager.eventhubs.models.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
265,817
public MibValueSymbol getParent() { ObjectIdentifierValue oid; if (value instanceof ObjectIdentifierValue) { oid = ((ObjectIdentifierValue) value).getParent(); if (oid != null) { return oid.getSymbol(); } } return null; }
MibValueSymbol function() { ObjectIdentifierValue oid; if (value instanceof ObjectIdentifierValue) { oid = ((ObjectIdentifierValue) value).getParent(); if (oid != null) { return oid.getSymbol(); } } return null; }
/** * Returns the parent symbol in the OID tree. This is a * convenience method for value symbols that have object * identifier values. * * @return the parent symbol in the OID tree, or * null for none or if not applicable * * @see net.percederberg.mibble.value.ObjectIde...
Returns the parent symbol in the OID tree. This is a convenience method for value symbols that have object identifier values
getParent
{ "repo_name": "richb-hanover/mibble-2.9.2", "path": "src/java/net/percederberg/mibble/MibValueSymbol.java", "license": "gpl-2.0", "size": 10580 }
[ "net.percederberg.mibble.value.ObjectIdentifierValue" ]
import net.percederberg.mibble.value.ObjectIdentifierValue;
import net.percederberg.mibble.value.*;
[ "net.percederberg.mibble" ]
net.percederberg.mibble;
2,052,213
public boolean checkAxisMismatch() { int left = _path.getAxis(); int right = ((Step)_step).getAxis(); if (((left == Axis.ANCESTOR) || (left == Axis.ANCESTORORSELF)) && ((right == Axis.CHILD) || (right == Axis.DESCENDANT) || (right == Axis.DESCENDANTORS...
boolean function() { int left = _path.getAxis(); int right = ((Step)_step).getAxis(); if (((left == Axis.ANCESTOR) (left == Axis.ANCESTORORSELF)) && ((right == Axis.CHILD) (right == Axis.DESCENDANT) (right == Axis.DESCENDANTORSELF) (right == Axis.PARENT) (right == Axis.PRECEDING) (right == Axis.PRECEDINGSIBLING))) retu...
/** * This method is used to determine if this parent location path is a * combination of two step's with axes that will create duplicate or * unordered nodes. */
This method is used to determine if this parent location path is a combination of two step's with axes that will create duplicate or unordered nodes
checkAxisMismatch
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/compiler/ParentLocationPath.java", "license": "mit", "size": 9715 }
[ "com.sun.org.apache.xml.internal.dtm.Axis" ]
import com.sun.org.apache.xml.internal.dtm.Axis;
import com.sun.org.apache.xml.internal.dtm.*;
[ "com.sun.org" ]
com.sun.org;
1,510,911
void setPropertyReplacers(List<PropertyReplacer> propertyReplacers);
void setPropertyReplacers(List<PropertyReplacer> propertyReplacers);
/** * Setter for the components property substitutions * * @param propertyReplacers */
Setter for the components property substitutions
setPropertyReplacers
{ "repo_name": "jruchcolo/rice-cd", "path": "rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/uif/component/Component.java", "license": "apache-2.0", "size": 45039 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
625,826
public static MethodDeclaration findParentMethodDeclaration(ASTNode node) { while (node != null) { if (node instanceof MethodDeclaration) { return (MethodDeclaration) node; } else if (node instanceof BodyDeclaration || node instanceof AnonymousClassDeclaration || node instanceof LambdaExpression) { ...
static MethodDeclaration function(ASTNode node) { while (node != null) { if (node instanceof MethodDeclaration) { return (MethodDeclaration) node; } else if (node instanceof BodyDeclaration node instanceof AnonymousClassDeclaration node instanceof LambdaExpression) { return null; } node= node.getParent(); } return null...
/** * The node's enclosing method declaration or <code>null</code> if * the node is not inside a method and is not a method declaration itself. * * @param node a node * @return the enclosing method declaration or <code>null</code> */
The node's enclosing method declaration or <code>null</code> if the node is not inside a method and is not a method declaration itself
findParentMethodDeclaration
{ "repo_name": "eclipse/flux", "path": "org.eclipse.flux.jdt.service/jdt ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java", "license": "bsd-3-clause", "size": 45693 }
[ "org.eclipse.jdt.core.dom.ASTNode", "org.eclipse.jdt.core.dom.AnonymousClassDeclaration", "org.eclipse.jdt.core.dom.BodyDeclaration", "org.eclipse.jdt.core.dom.LambdaExpression", "org.eclipse.jdt.core.dom.MethodDeclaration" ]
import org.eclipse.jdt.core.dom.ASTNode; import org.eclipse.jdt.core.dom.AnonymousClassDeclaration; import org.eclipse.jdt.core.dom.BodyDeclaration; import org.eclipse.jdt.core.dom.LambdaExpression; import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.jdt.core.dom.*;
[ "org.eclipse.jdt" ]
org.eclipse.jdt;
256,076
public static Image getImage(InputStream is) throws IOException { PngImage png = new PngImage(is); return png.getImage(); }
static Image function(InputStream is) throws IOException { PngImage png = new PngImage(is); return png.getImage(); }
/** Reads a PNG from a stream. * @param is the stream * @throws IOException on error * @return the image */
Reads a PNG from a stream
getImage
{ "repo_name": "shitalm/jsignpdf2", "path": "src/main/java/com/lowagie/text/pdf/codec/PngImage.java", "license": "gpl-2.0", "size": 35889 }
[ "com.lowagie.text.Image", "java.io.IOException", "java.io.InputStream" ]
import com.lowagie.text.Image; import java.io.IOException; import java.io.InputStream;
import com.lowagie.text.*; import java.io.*;
[ "com.lowagie.text", "java.io" ]
com.lowagie.text; java.io;
1,057,071
private static Collection<Object> normalizeCollection(Collection<?> collection) throws IllegalArgumentException { if (collection.size() == 0) { return Collections.emptyList(); } else { final List<Object> lst = new ArrayList<>(collection.size()); for (final Object ...
static Collection<Object> function(Collection<?> collection) throws IllegalArgumentException { if (collection.size() == 0) { return Collections.emptyList(); } else { final List<Object> lst = new ArrayList<>(collection.size()); for (final Object it : collection) { final Object normalized = normalizeType(it); lst.add(nor...
/** * Normalizes a collection. * * @param collection the collection that entries should be normalized * @return a collection that contains the normalized entries * @throws IllegalArgumentException if the type of the normalized values differ or an invalid type has been given */
Normalizes a collection
normalizeCollection
{ "repo_name": "AchimHentschel/smarthome", "path": "bundles/config/org.eclipse.smarthome.config.core/src/main/java/org/eclipse/smarthome/config/core/ConfigUtil.java", "license": "epl-1.0", "size": 6892 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Collections", "java.util.List" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,782,784
public HttpSessionContext getSessionContext() { if (sessionContext == null) sessionContext = new StandardSessionContext(); return (sessionContext); } // ----------------------------------------------HttpSession Public Methods
HttpSessionContext function() { if (sessionContext == null) sessionContext = new StandardSessionContext(); return (sessionContext); }
/** * Return the session context with which this session is associated. * * @deprecated As of Version 2.1, this method is deprecated and has no * replacement. It will be removed in a future version of the * Java Servlet API. */
Return the session context with which this session is associated
getSessionContext
{ "repo_name": "yuyupapa/OpenSource", "path": "apache-tomcat-6.0.48/java/org/apache/catalina/session/StandardSession.java", "license": "apache-2.0", "size": 60890 }
[ "javax.servlet.http.HttpSessionContext" ]
import javax.servlet.http.HttpSessionContext;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
2,654,173
public Path createSnapshot(Path path, String snapshotName) throws IOException { throw new UnsupportedOperationException(getClass().getSimpleName() + " doesn't support createSnapshot"); }
Path function(Path path, String snapshotName) throws IOException { throw new UnsupportedOperationException(getClass().getSimpleName() + STR); }
/** * Create a snapshot * @param path The directory where snapshots will be taken. * @param snapshotName The name of the snapshot * @return the snapshot path. */
Create a snapshot
createSnapshot
{ "repo_name": "Microsoft-CISL/hadoop-prototype", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java", "license": "apache-2.0", "size": 116772 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
215,867
public static Authorizations toAuthorizations(byte[] protoBytes) throws DeserializationException { if (protoBytes == null) return null; ClientProtos.Authorizations.Builder builder = ClientProtos.Authorizations.newBuilder(); ClientProtos.Authorizations proto = null; try { proto = builder.mergeFro...
static Authorizations function(byte[] protoBytes) throws DeserializationException { if (protoBytes == null) return null; ClientProtos.Authorizations.Builder builder = ClientProtos.Authorizations.newBuilder(); ClientProtos.Authorizations proto = null; try { proto = builder.mergeFrom(protoBytes).build(); } catch (Invalid...
/** * Convert a protocol buffer Authorizations bytes to a client Authorizations * * @param protoBytes * @return the converted client Authorizations * @throws DeserializationException */
Convert a protocol buffer Authorizations bytes to a client Authorizations
toAuthorizations
{ "repo_name": "lshmouse/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java", "license": "apache-2.0", "size": 118965 }
[ "com.google.protobuf.InvalidProtocolBufferException", "org.apache.hadoop.hbase.exceptions.DeserializationException", "org.apache.hadoop.hbase.protobuf.generated.ClientProtos", "org.apache.hadoop.hbase.security.visibility.Authorizations" ]
import com.google.protobuf.InvalidProtocolBufferException; import org.apache.hadoop.hbase.exceptions.DeserializationException; import org.apache.hadoop.hbase.protobuf.generated.ClientProtos; import org.apache.hadoop.hbase.security.visibility.Authorizations;
import com.google.protobuf.*; import org.apache.hadoop.hbase.exceptions.*; import org.apache.hadoop.hbase.protobuf.generated.*; import org.apache.hadoop.hbase.security.visibility.*;
[ "com.google.protobuf", "org.apache.hadoop" ]
com.google.protobuf; org.apache.hadoop;
186,510
T setContents(String data, Charset charset);
T setContents(String data, Charset charset);
/** * Set the contents of this {@link WriteableResource} to the given {@link String} using the specified encoding. */
Set the contents of this <code>WriteableResource</code> to the given <code>String</code> using the specified encoding
setContents
{ "repo_name": "forge/core", "path": "resources/api/src/main/java/org/jboss/forge/addon/resource/WriteableResource.java", "license": "epl-1.0", "size": 1944 }
[ "java.nio.charset.Charset" ]
import java.nio.charset.Charset;
import java.nio.charset.*;
[ "java.nio" ]
java.nio;
702,625
static int checkPositiveAndMakeMultipleOf32(int bits) { checkArgument(bits > 0, "Number of bits must be positive"); return (bits + 31) & ~31; } // TODO(kevinb): Maybe expose this class via a static Hashing method? @VisibleForTesting static final class ConcatenatedHashFunction extends AbstractComposit...
static int checkPositiveAndMakeMultipleOf32(int bits) { checkArgument(bits > 0, STR); return (bits + 31) & ~31; } static final class ConcatenatedHashFunction extends AbstractCompositeHashFunction { private final int bits; ConcatenatedHashFunction(HashFunction... functions) { super(functions); int bitSum = 0; for (HashF...
/** * Checks that the passed argument is positive, and ceils it to a multiple of 32. */
Checks that the passed argument is positive, and ceils it to a multiple of 32
checkPositiveAndMakeMultipleOf32
{ "repo_name": "mike10004/appengine-imaging", "path": "gaecompat-awt-imaging/src/common/com/gaecompat/repackaged/com/google/common/hash/Hashing.java", "license": "apache-2.0", "size": 15843 }
[ "com.gaecompat.repackaged.com.google.common.base.Preconditions" ]
import com.gaecompat.repackaged.com.google.common.base.Preconditions;
import com.gaecompat.repackaged.com.google.common.base.*;
[ "com.gaecompat.repackaged" ]
com.gaecompat.repackaged;
2,524,051
@SuppressWarnings("unchecked") public static FieldElement createFromParameters( Map<String, ?> params, FieldElementCollection collection, WorldLayers worlds) { if (!params.containsKey(CLASS_PROPERTY)) { throw new IllegalArgumentException("class not specified for element: " + para...
@SuppressWarnings(STR) static FieldElement function( Map<String, ?> params, FieldElementCollection collection, WorldLayers worlds) { if (!params.containsKey(CLASS_PROPERTY)) { throw new IllegalArgumentException(STR + params); } Class<? extends FieldElement> elementClass = null; String className = (String) params.get(CL...
/** * Creates and returns a FieldElement object from the given map of parameters. The class to * instantiate is given by the "class" property of the parameter map. Calls the no-argument * constructor of the default or custom class, and then calls initialize() passing the * parameter map and World. ...
Creates and returns a FieldElement object from the given map of parameters. The class to instantiate is given by the "class" property of the parameter map. Calls the no-argument constructor of the default or custom class, and then calls initialize() passing the parameter map and World
createFromParameters
{ "repo_name": "dozingcat/Vector-Pinball-Editor", "path": "src/com/dozingcatsoftware/vectorpinball/elements/FieldElement.java", "license": "gpl-3.0", "size": 10299 }
[ "com.dozingcatsoftware.vectorpinball.model.WorldLayers", "java.util.Map" ]
import com.dozingcatsoftware.vectorpinball.model.WorldLayers; import java.util.Map;
import com.dozingcatsoftware.vectorpinball.model.*; import java.util.*;
[ "com.dozingcatsoftware.vectorpinball", "java.util" ]
com.dozingcatsoftware.vectorpinball; java.util;
2,091,349
@IntRange(from = 0) public int getStartIndex() { return mStartIndex; }
@IntRange(from = 0) int function() { return mStartIndex; }
/** * Returns start index of the selected part of text. */
Returns start index of the selected part of text
getStartIndex
{ "repo_name": "AndroidX/androidx", "path": "textclassifier/textclassifier/src/main/java/androidx/textclassifier/TextSelection.java", "license": "apache-2.0", "size": 17092 }
[ "androidx.annotation.IntRange" ]
import androidx.annotation.IntRange;
import androidx.annotation.*;
[ "androidx.annotation" ]
androidx.annotation;
1,125,234
@Override public void writeToNBT(NBTTagCompound tCompound) { super.writeToNBT(tCompound); for (int i = 0; i < 24; i++) { if (inventory[i] != null) { NBTTagCompound tc = new NBTTagCompound(); inventory[i].writeToNBT(tc); tC...
void function(NBTTagCompound tCompound) { super.writeToNBT(tCompound); for (int i = 0; i < 24; i++) { if (inventory[i] != null) { NBTTagCompound tc = new NBTTagCompound(); inventory[i].writeToNBT(tc); tCompound.setTag(STR + i, tc); } } tCompound.setByte(STR, (byte) filterColor.ordinal()); tCompound.setByte("mode", (byt...
/** * This function gets called whenever the world/chunk is saved */
This function gets called whenever the world/chunk is saved
writeToNBT
{ "repo_name": "raulsmail/GlowPower", "path": "src/main/java/com/bluepowermod/tileentities/tier3/TileManager.java", "license": "gpl-3.0", "size": 11054 }
[ "net.minecraft.nbt.NBTTagCompound" ]
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.*;
[ "net.minecraft.nbt" ]
net.minecraft.nbt;
2,470,669
public Object readList(AbstractHessianInput in, int length, String type) throws HessianProtocolException, IOException { Deserializer deserializer = getDeserializer(type); if (deserializer != null) return deserializer.readList(in, length); else return new ...
Object function(AbstractHessianInput in, int length, String type) throws HessianProtocolException, IOException { Deserializer deserializer = getDeserializer(type); if (deserializer != null) return deserializer.readList(in, length); else return new CollectionDeserializer(ArrayList.class).readList(in, length); }
/** * Reads the object as a list. */
Reads the object as a list
readList
{ "repo_name": "mingbotang/dubbo", "path": "hessian-lite/src/main/java/com/alibaba/com/caucho/hessian/io/SerializerFactory.java", "license": "apache-2.0", "size": 25417 }
[ "java.io.IOException", "java.util.ArrayList" ]
import java.io.IOException; import java.util.ArrayList;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,840,267
public static <T> T findBy(final Collection<T> collection, final Filter<T> filter) { for (T element : collection) { if (filter.accept(element)) { return element; } } return null; }
static <T> T function(final Collection<T> collection, final Filter<T> filter) { for (T element : collection) { if (filter.accept(element)) { return element; } } return null; }
/** * Iterates the Collection and finds all object elements that match the Filter criteria. * <p/> * @param <T> the class type of the Collection elements. * @param collection the Collection of elements to iterate and filter. * @param filter the Filter applied to the Collection of elements in search of th...
Iterates the Collection and finds all object elements that match the Filter criteria.
findBy
{ "repo_name": "nchandrappa/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/util/CollectionUtils.java", "license": "apache-2.0", "size": 9119 }
[ "com.gemstone.gemfire.internal.lang.Filter", "java.util.Collection" ]
import com.gemstone.gemfire.internal.lang.Filter; import java.util.Collection;
import com.gemstone.gemfire.internal.lang.*; import java.util.*;
[ "com.gemstone.gemfire", "java.util" ]
com.gemstone.gemfire; java.util;
1,934,682
public boolean validateHighLowDate(String missingDateMessage) { lowDate = validateDate(lowDateStr, null, missingDateMessage ); highDate = validateDate(highDateStr, lowDateStr, missingDateMessage); if (lowDate == null || highDate == null ) { return false; ...
boolean function(String missingDateMessage) { lowDate = validateDate(lowDateStr, null, missingDateMessage ); highDate = validateDate(highDateStr, lowDateStr, missingDateMessage); if (lowDate == null highDate == null ) { return false; } if (highDate.getTime() < lowDate.getTime()) { Date tmpDate = highDate; highDate = lo...
/** * <ol> * <li>High date picks up low date if it ain't filled in, * <li>they can't both be empty * <li>they have to be well formed. * * @return true if valid, false otherwise */
High date picks up low date if it ain't filled in, they can't both be empty they have to be well formed
validateHighLowDate
{ "repo_name": "kalwar/openelisglobal-core", "path": "app/src/us/mn/state/health/lims/reports/action/implementation/Report.java", "license": "mpl-2.0", "size": 21163 }
[ "java.sql.Date" ]
import java.sql.Date;
import java.sql.*;
[ "java.sql" ]
java.sql;
345,439
protected final EditCoordinate getEC() { return OTFUtility.getEditCoordinate(); }
final EditCoordinate function() { return OTFUtility.getEditCoordinate(); }
/** * Returns the edit coordinate. * * @return the edit coordinate */
Returns the edit coordinate
getEC
{ "repo_name": "vaskaloidis/va-isaac-gui", "path": "import-export/src/main/java/gov/va/isaac/models/util/CommonBase.java", "license": "apache-2.0", "size": 1951 }
[ "gov.va.isaac.util.OTFUtility", "org.ihtsdo.otf.tcc.api.coordinate.EditCoordinate" ]
import gov.va.isaac.util.OTFUtility; import org.ihtsdo.otf.tcc.api.coordinate.EditCoordinate;
import gov.va.isaac.util.*; import org.ihtsdo.otf.tcc.api.coordinate.*;
[ "gov.va.isaac", "org.ihtsdo.otf" ]
gov.va.isaac; org.ihtsdo.otf;
1,009,697
private static String generateSqlFilter(Table table, ExpressionTree tree, List<Object> params, List<String> joins, boolean dbHasJoinCastBug) throws MetaException { assert table != null; if (tree.getRoot() == null) { return ""; } PartitionFilterGenerator visitor = new Partitio...
static String function(Table table, ExpressionTree tree, List<Object> params, List<String> joins, boolean dbHasJoinCastBug) throws MetaException { assert table != null; if (tree.getRoot() == null) { return STRUnable to push down SQL filter: STR(STR)"; }
/** * Generate the ANSI SQL92 filter for the given expression tree * @param table the table being queried * @param params the ordered parameters for the resulting expression * @param joins the joins necessary for the resulting expression * @return the string representation of the expression tre...
Generate the ANSI SQL92 filter for the given expression tree
generateSqlFilter
{ "repo_name": "scalingdata/Impala", "path": "thirdparty/hive-1.2.1.2.3.0.0-2557/src/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java", "license": "apache-2.0", "size": 73915 }
[ "java.util.List", "org.apache.hadoop.hive.metastore.api.MetaException", "org.apache.hadoop.hive.metastore.api.Table", "org.apache.hadoop.hive.metastore.parser.ExpressionTree" ]
import java.util.List; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.Table; import org.apache.hadoop.hive.metastore.parser.ExpressionTree;
import java.util.*; import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.parser.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,381,313
public EntityResolver getEntityResolver() { return platformUnmarshaller.getEntityResolver(); }
EntityResolver function() { return platformUnmarshaller.getEntityResolver(); }
/** * Get the EntityResolver set on this XMLUnmarshaller * @return the EntityResolver set on this XMLUnmarshaller */
Get the EntityResolver set on this XMLUnmarshaller
getEntityResolver
{ "repo_name": "RallySoftware/eclipselink.runtime", "path": "foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/internal/oxm/XMLUnmarshaller.java", "license": "epl-1.0", "size": 37054 }
[ "org.xml.sax.EntityResolver" ]
import org.xml.sax.EntityResolver;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
2,322,347
@Before public void ensureNoJobIsLingering() throws Exception { JobManagerCommunicationUtils.waitUntilNoJobIsRunning(flink.getLeaderGateway(timeout)); } // ------------------------------------------------------------------------ // Suite of Tests // // The tests here are all not activated (by an @Test ...
void function() throws Exception { JobManagerCommunicationUtils.waitUntilNoJobIsRunning(flink.getLeaderGateway(timeout)); }
/** * Makes sure that no job is on the JobManager any more from any previous tests that use * the same mini cluster. Otherwise, missing slots may happen. */
Makes sure that no job is on the JobManager any more from any previous tests that use the same mini cluster. Otherwise, missing slots may happen
ensureNoJobIsLingering
{ "repo_name": "DieBauer/flink", "path": "flink-connectors/flink-connector-kafka-base/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaConsumerTestBase.java", "license": "apache-2.0", "size": 85104 }
[ "org.apache.flink.streaming.connectors.kafka.testutils.JobManagerCommunicationUtils" ]
import org.apache.flink.streaming.connectors.kafka.testutils.JobManagerCommunicationUtils;
import org.apache.flink.streaming.connectors.kafka.testutils.*;
[ "org.apache.flink" ]
org.apache.flink;
2,272,208
public int nextInt() throws IOException { int p = peeked; if (p == PEEKED_NONE) { p = doPeek(); } int result; if (p == PEEKED_LONG) { result = (int) peekedLong; if (peekedLong != result) { // Make sure no precision was lost casting to 'int'. throw new NumberFormatExcepti...
int function() throws IOException { int p = peeked; if (p == PEEKED_NONE) { p = doPeek(); } int result; if (p == PEEKED_LONG) { result = (int) peekedLong; if (peekedLong != result) { throw new NumberFormatException(STR + peekedLong + locationString()); } peeked = PEEKED_NONE; pathIndices[stackSize - 1]++; return result...
/** * Returns the {@link JsonToken#NUMBER int} value of the next token, * consuming it. If the next token is a string, this method will attempt to * parse it as an int. If the next token's numeric value cannot be exactly * represented by a Java {@code int}, this method throws. * * @throws IllegalState...
Returns the <code>JsonToken#NUMBER int</code> value of the next token, consuming it. If the next token is a string, this method will attempt to parse it as an int. If the next token's numeric value cannot be exactly represented by a Java int, this method throws
nextInt
{ "repo_name": "google/sagetv", "path": "third_party/GSON/java/sage/epg/sd/gson/stream/JsonReader.java", "license": "apache-2.0", "size": 49785 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,178,215
public List<Issue> getEntries() { return issues; }
List<Issue> function() { return issues; }
/** * Returns a page is issues. * @return */
Returns a page is issues
getEntries
{ "repo_name": "heroicefforts/Viable", "path": "viable-android/src/net/heroicefforts/viable/android/rep/it/gdata/IssuesFeed.java", "license": "gpl-3.0", "size": 1155 }
[ "java.util.List", "net.heroicefforts.viable.android.dao.Issue" ]
import java.util.List; import net.heroicefforts.viable.android.dao.Issue;
import java.util.*; import net.heroicefforts.viable.android.dao.*;
[ "java.util", "net.heroicefforts.viable" ]
java.util; net.heroicefforts.viable;
2,468,357
// [START display_result] private static void displayQueryResults(Bigquery bigquery, String projectId, Job completedJob) throws IOException { GetQueryResultsResponse queryResult = bigquery.jobs() .getQueryResults( projectId, completedJob ...
static void function(Bigquery bigquery, String projectId, Job completedJob) throws IOException { GetQueryResultsResponse queryResult = bigquery.jobs() .getQueryResults( projectId, completedJob .getJobReference() .getJobId() ).execute(); List<TableRow> rows = queryResult.getRows(); System.out.print(STR); for (TableRow r...
/** * Makes an API call to the BigQuery API * * @param bigquery an authorized BigQuery client * @param projectId a string containing the current project ID * @param completedJob to the completed Job * @throws IOException */
Makes an API call to the BigQuery API
displayQueryResults
{ "repo_name": "googlearchive/bigquery-samples-java", "path": "src/main/java/com/google/cloud/bigquery/samples/BigQueryJavaGettingStarted.java", "license": "apache-2.0", "size": 11021 }
[ "com.google.api.services.bigquery.Bigquery", "com.google.api.services.bigquery.model.GetQueryResultsResponse", "com.google.api.services.bigquery.model.Job", "com.google.api.services.bigquery.model.TableCell", "com.google.api.services.bigquery.model.TableRow", "java.io.IOException", "java.util.List" ]
import com.google.api.services.bigquery.Bigquery; import com.google.api.services.bigquery.model.GetQueryResultsResponse; import com.google.api.services.bigquery.model.Job; import com.google.api.services.bigquery.model.TableCell; import com.google.api.services.bigquery.model.TableRow; import java.io.IOException; import ...
import com.google.api.services.bigquery.*; import com.google.api.services.bigquery.model.*; import java.io.*; import java.util.*;
[ "com.google.api", "java.io", "java.util" ]
com.google.api; java.io; java.util;
1,351,404
public void av_dict_copy(Pointer<Pointer<?>> dst, Pointer<?> src, int flags) { Lib.av_dict_copy(dst, src, flags); }
void function(Pointer<Pointer<?>> dst, Pointer<?> src, int flags) { Lib.av_dict_copy(dst, src, flags); }
/** * Copy entries from one AVDictionary struct into another. * * NOTE: * Metadata is read using the AV_DICT_IGNORE_SUFFIX flag. * * @param dst pointer to a pointer to a AVDictionary struct. If dst is null, * this function will allocate a struct for you and put it in dst. * @p...
Copy entries from one AVDictionary struct into another. Metadata is read using the AV_DICT_IGNORE_SUFFIX flag
av_dict_copy
{ "repo_name": "operutka/jlibav", "path": "jlibav/src/main/java/org/libav/avutil/bridge/AVUtilLibrary.java", "license": "lgpl-3.0", "size": 31604 }
[ "org.bridj.Pointer" ]
import org.bridj.Pointer;
import org.bridj.*;
[ "org.bridj" ]
org.bridj;
2,390,642
HttpStatus getErrorCode();
HttpStatus getErrorCode();
/** * Return error code of PNG picture (200 : no error, 400 : height or width less than or equal to 0, 404 : Country code does not exist) * * @return errorCode */
Return error code of PNG picture (200 : no error, 400 : height or width less than or equal to 0, 404 : Country code does not exist)
getErrorCode
{ "repo_name": "sgrillon14/flags-rest-service", "path": "project/src/main/java/com/sgrillon/flags/service/PngContainer.java", "license": "agpl-3.0", "size": 2355 }
[ "org.springframework.http.HttpStatus" ]
import org.springframework.http.HttpStatus;
import org.springframework.http.*;
[ "org.springframework.http" ]
org.springframework.http;
917,305
private int addOneForTwo() { List<Integer> solutions = new ArrayList<Integer>(); for (int i = 0; i < state.length; i++) { int[][] nextState = copy(state); tryMove(nextState, player, i); if (hasTwoInRow(nextState, player) == true) { solutions.add(i); } } // TODO It is better to form three ...
int function() { List<Integer> solutions = new ArrayList<Integer>(); for (int i = 0; i < state.length; i++) { int[][] nextState = copy(state); tryMove(nextState, player, i); if (hasTwoInRow(nextState, player) == true) { solutions.add(i); } } if (solutions.size() == 0) { return -1; } else { Collections.shuffle(solutions...
/** * Add one piece in order to to form two pieces in a row. * * @return Index of a column to play or -1 if rule is not applicable. */
Add one piece in order to to form two pieces in a row
addOneForTwo
{ "repo_name": "VelbazhdSoftwareLLC/Complica4", "path": "client/src/eu/veldsoft/complica4/model/ia/SimpleRulesArtificialIntelligence.java", "license": "gpl-3.0", "size": 12465 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
469,846
public static byte[] getBytes(File file) throws IOException { return getBytes(new FileInputStream(file)); }
static byte[] function(File file) throws IOException { return getBytes(new FileInputStream(file)); }
/** * Read the content of the File and returns it as a byte[]. * * @param file the file whose content we want to read * @return a String containing the content of the file * @throws IOException if an IOException occurs. * @since 1.7.1 */
Read the content of the File and returns it as a byte[]
getBytes
{ "repo_name": "xien777/yajsw", "path": "yajsw/wrapper/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java", "license": "lgpl-2.1", "size": 704150 }
[ "java.io.File", "java.io.FileInputStream", "java.io.IOException" ]
import java.io.File; import java.io.FileInputStream; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,416,102
public Attribute getLookupAttribute(String lookupAttrName) { return stream(getLookupAttributes()) .filter(lookupAttr -> lookupAttr.getName().equals(lookupAttrName)) .findFirst() .orElse(null); }
Attribute function(String lookupAttrName) { return stream(getLookupAttributes()) .filter(lookupAttr -> lookupAttr.getName().equals(lookupAttrName)) .findFirst() .orElse(null); }
/** * Get lookup attribute by name (case insensitive), returns null if not found * * @param lookupAttrName lookup attribute name * @return lookup attribute or <tt>null</tt> */
Get lookup attribute by name (case insensitive), returns null if not found
getLookupAttribute
{ "repo_name": "sidohaakma/molgenis", "path": "molgenis-data/src/main/java/org/molgenis/data/meta/model/EntityType.java", "license": "lgpl-3.0", "size": 24680 }
[ "com.google.common.collect.Streams" ]
import com.google.common.collect.Streams;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
1,856,778
public Tree<String> extractBestViterbiParse(int gState, int gp, int start, int end, List<String> sentence, boolean unaryAllowed) { // find sources of inside score // no backtraces so we can speed up the parsing for its primary use double bestScore = (unaryAllowed) ? iScorePostU[start][end][gState][gp] :...
Tree<String> function(int gState, int gp, int start, int end, List<String> sentence, boolean unaryAllowed) { double bestScore = (unaryAllowed) ? iScorePostU[start][end][gState][gp] : iScorePreU[start][end][gState][gp]; String goalStr = (String) tagNumberer.object(gState); if (end - start == 1) { if (!grammar.isGrammarT...
/** * Return the single best parse. Note that the returned tree may be missing * intermediate nodes in a unary chain because it parses with a unary-closed * grammar. */
Return the single best parse. Note that the returned tree may be missing intermediate nodes in a unary chain because it parses with a unary-closed grammar
extractBestViterbiParse
{ "repo_name": "text-machine-lab/CliRel", "path": "model/kim/berkeleyparser/src/edu/berkeley/nlp/PCFGLA/ConstrainedTwoChartsParser.java", "license": "apache-2.0", "size": 84171 }
[ "edu.berkeley.nlp.syntax.Tree", "edu.berkeley.nlp.util.ScalingTools", "java.util.ArrayList", "java.util.List" ]
import edu.berkeley.nlp.syntax.Tree; import edu.berkeley.nlp.util.ScalingTools; import java.util.ArrayList; import java.util.List;
import edu.berkeley.nlp.syntax.*; import edu.berkeley.nlp.util.*; import java.util.*;
[ "edu.berkeley.nlp", "java.util" ]
edu.berkeley.nlp; java.util;
2,269,315
@Test public void testSerialization() { TimeSeriesCollection c1 = new TimeSeriesCollection(createSeries()); TimeSeriesCollection c2 = (TimeSeriesCollection) TestUtils.serialised(c1); assertEquals(c1, c2); }
void function() { TimeSeriesCollection c1 = new TimeSeriesCollection(createSeries()); TimeSeriesCollection c2 = (TimeSeriesCollection) TestUtils.serialised(c1); assertEquals(c1, c2); }
/** * Serialize an instance, restore it, and check for equality. */
Serialize an instance, restore it, and check for equality
testSerialization
{ "repo_name": "oskopek/jfreechart-fse", "path": "src/test/java/org/jfree/data/time/TimeSeriesCollectionTest.java", "license": "lgpl-2.1", "size": 16958 }
[ "org.jfree.chart.TestUtils", "org.junit.Assert" ]
import org.jfree.chart.TestUtils; import org.junit.Assert;
import org.jfree.chart.*; import org.junit.*;
[ "org.jfree.chart", "org.junit" ]
org.jfree.chart; org.junit;
1,364,139
static public OutputStream createInputFile(MiniCluster cluster, String fileName) throws IOException { FileSystem fs = cluster.getFileSystem(); if (fs.exists(new Path(fileName))) { throw new IOException("File " + fileName + " already exists on the miniclust...
static OutputStream function(MiniCluster cluster, String fileName) throws IOException { FileSystem fs = cluster.getFileSystem(); if (fs.exists(new Path(fileName))) { throw new IOException(STR + fileName + STR); } return fs.create(new Path(fileName)); }
/** * Helper to create a dfs file on the MiniCluster dfs. This returns an * outputstream that can be used in test cases to write data. * * @param cluster * reference to the MiniCluster where the file should be created * @param fileName * pathname of the file to ...
Helper to create a dfs file on the MiniCluster dfs. This returns an outputstream that can be used in test cases to write data
createInputFile
{ "repo_name": "dmeister/pig-cll-gz", "path": "test/org/apache/pig/test/Util.java", "license": "apache-2.0", "size": 37825 }
[ "java.io.IOException", "java.io.OutputStream", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path" ]
import java.io.IOException; import java.io.OutputStream; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path;
import java.io.*; import org.apache.hadoop.fs.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
762,775
public void addAll(Collection<Pin> pins) { this.pins.addAll(pins); if (pinMap != null) for (Pin p : pins) pinMap.put(p, this); }
void function(Collection<Pin> pins) { this.pins.addAll(pins); if (pinMap != null) for (Pin p : pins) pinMap.put(p, this); }
/** * Add all given pins to the net. * Used during custom component connection. * * @param pins the pins */
Add all given pins to the net. Used during custom component connection
addAll
{ "repo_name": "hneemann/Digital", "path": "src/main/java/de/neemann/digital/draw/model/Net.java", "license": "gpl-3.0", "size": 9517 }
[ "de.neemann.digital.draw.elements.Pin", "java.util.Collection" ]
import de.neemann.digital.draw.elements.Pin; import java.util.Collection;
import de.neemann.digital.draw.elements.*; import java.util.*;
[ "de.neemann.digital", "java.util" ]
de.neemann.digital; java.util;
2,238,275
protected void percolateDownMaxHeap(final int index) { final Activation element = elements[index]; int hole = index; while ((hole * 2) <= size) { int child = hole * 2; // if we have a right child and that child can not be percolated // up then move onto ...
void function(final int index) { final Activation element = elements[index]; int hole = index; while ((hole * 2) <= size) { int child = hole * 2; if (child != size && compare(elements[child + 1], elements[child]) > 0) { child++; } if (compare(elements[child], element) <= 0) { break; } setElement( hole, elements[child] ...
/** * Percolates element down heap from the position given by the index. * <p> * Assumes it is a maximum heap. * * @param index the index of the element */
Percolates element down heap from the position given by the index. Assumes it is a maximum heap
percolateDownMaxHeap
{ "repo_name": "jomarko/drools", "path": "drools-core/src/main/java/org/drools/core/util/BinaryHeapQueue.java", "license": "apache-2.0", "size": 10118 }
[ "org.drools.core.spi.Activation" ]
import org.drools.core.spi.Activation;
import org.drools.core.spi.*;
[ "org.drools.core" ]
org.drools.core;
821,414
public static void loadFromJSONArrayChild(List<AbstractExpression> starter, JSONObject parent, String label, StmtTableScan tableScan) throws JSONException { if( parent.isNull(label) ) { return; } JSONArray jarray = parent.getJ...
static void function(List<AbstractExpression> starter, JSONObject parent, String label, StmtTableScan tableScan) throws JSONException { if( parent.isNull(label) ) { return; } JSONArray jarray = parent.getJSONArray(label); loadFromJSONArray(starter, jarray, tableScan); }
/** * For TVEs, it is only serialized column index and table index. In order to match expression, * there needs more information to revert back the table name, table alisa and column name. * By adding @param tableScan, the TVE will load table name, table alias and column name for TVE. * @param start...
For TVEs, it is only serialized column index and table index. In order to match expression, there needs more information to revert back the table name, table alisa and column name. By adding @param tableScan, the TVE will load table name, table alias and column name for TVE
loadFromJSONArrayChild
{ "repo_name": "wolffcm/voltdb", "path": "src/frontend/org/voltdb/expressions/AbstractExpression.java", "license": "agpl-3.0", "size": 37638 }
[ "java.util.List", "org.json_voltpatches.JSONArray", "org.json_voltpatches.JSONException", "org.json_voltpatches.JSONObject", "org.voltdb.planner.parseinfo.StmtTableScan" ]
import java.util.List; import org.json_voltpatches.JSONArray; import org.json_voltpatches.JSONException; import org.json_voltpatches.JSONObject; import org.voltdb.planner.parseinfo.StmtTableScan;
import java.util.*; import org.json_voltpatches.*; import org.voltdb.planner.parseinfo.*;
[ "java.util", "org.json_voltpatches", "org.voltdb.planner" ]
java.util; org.json_voltpatches; org.voltdb.planner;
398,198
public EarliestCheckpointMapSnapshot earliestCheckpointsMapSnapshot() { Map<UUID, Map<Integer, GroupStateSnapshot>> data = new HashMap<>(); synchronized (earliestCp) { Collection<CheckpointEntry> values = earliestCp.values(); for (CheckpointEntry cp : values) { ...
EarliestCheckpointMapSnapshot function() { Map<UUID, Map<Integer, GroupStateSnapshot>> data = new HashMap<>(); synchronized (earliestCp) { Collection<CheckpointEntry> values = earliestCp.values(); for (CheckpointEntry cp : values) { UUID checkpointId = cp.checkpointId(); if (data.containsKey(checkpointId)) continue; Ma...
/** * Creates a snapshot of {@link #earliestCp} map. * Guarded by checkpoint read lock. * * @return Snapshot of a map. */
Creates a snapshot of <code>#earliestCp</code> map. Guarded by checkpoint read lock
earliestCheckpointsMapSnapshot
{ "repo_name": "NSAmelchev/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/checkpoint/CheckpointHistory.java", "license": "apache-2.0", "size": 29146 }
[ "java.util.Collection", "java.util.HashMap", "java.util.Map", "java.util.Set", "java.util.stream.Collectors", "org.apache.ignite.internal.processors.cache.persistence.checkpoint.CheckpointEntry", "org.apache.ignite.internal.processors.cache.persistence.checkpoint.EarliestCheckpointMapSnapshot" ]
import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; import org.apache.ignite.internal.processors.cache.persistence.checkpoint.CheckpointEntry; import org.apache.ignite.internal.processors.cache.persistence.checkpoint.EarliestCheckpointMa...
import java.util.*; import java.util.stream.*; import org.apache.ignite.internal.processors.cache.persistence.checkpoint.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
1,114,526
public ConceptDescription getDescription(Locale locale) { return getDescription(locale, false); }
ConceptDescription function(Locale locale) { return getDescription(locale, false); }
/** * Finds the description of the concept in the given locale. Returns null if none found. * * @param locale * @return ConceptDescription attributed to the Concept in the given locale */
Finds the description of the concept in the given locale. Returns null if none found
getDescription
{ "repo_name": "MitchellBot/openmrs-core", "path": "api/src/main/java/org/openmrs/Concept.java", "license": "mpl-2.0", "size": 52648 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
1,156,668
public static char readChar(DataInputStream dis) throws IOException { return (char) dis.readByte(); }
static char function(DataInputStream dis) throws IOException { return (char) dis.readByte(); }
/** * Reads a single char from the stream * * @param dis the stream to read * @return the next character on the stream * * @throws IOException if an error occurs */
Reads a single char from the stream
readChar
{ "repo_name": "edwardtoday/PolyU_MScST", "path": "COMP5517/JavaSpeech/freetts-1.2.2-src/freetts-1.2.2/tools/FestVoxToFreeTTS/FindSTS.java", "license": "mit", "size": 30039 }
[ "java.io.DataInputStream", "java.io.IOException" ]
import java.io.DataInputStream; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
534,523
public void handleFileUpload(FileUploadEvent event) throws Exception { FacesContext fc = FacesContext.getCurrentInstance(); UploadedFile file = event.getFile(); if (! validFile(file, fc)) { return; } String context = getContext(); if ((context == null) || (action == null)) { UtilImpl.LOGGER.warn...
void function(FileUploadEvent event) throws Exception { FacesContext fc = FacesContext.getCurrentInstance(); UploadedFile file = event.getFile(); if (! validFile(file, fc)) { return; } String context = getContext(); if ((context == null) (action == null)) { UtilImpl.LOGGER.warning(STR); FacesMessage msg = new FacesMess...
/** * Process the file upload * * @param event */
Process the file upload
handleFileUpload
{ "repo_name": "skyvers/wildcat", "path": "skyve-web/src/main/java/org/skyve/impl/web/faces/beans/FileUpload.java", "license": "lgpl-2.1", "size": 8598 }
[ "java.io.IOException", "java.text.DecimalFormat", "javax.faces.application.FacesMessage", "javax.faces.context.ExternalContext", "javax.faces.context.FacesContext", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.apache.commons.io.FilenameUtils", "org.primefac...
import java.io.IOException; import java.text.DecimalFormat; import javax.faces.application.FacesMessage; import javax.faces.context.ExternalContext; import javax.faces.context.FacesContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.io.Filename...
import java.io.*; import java.text.*; import javax.faces.application.*; import javax.faces.context.*; import javax.servlet.http.*; import org.apache.commons.io.*; import org.primefaces.event.*; import org.primefaces.model.file.*; import org.skyve.*; import org.skyve.cache.*; import org.skyve.content.*; import org.skyve...
[ "java.io", "java.text", "javax.faces", "javax.servlet", "org.apache.commons", "org.primefaces.event", "org.primefaces.model", "org.skyve", "org.skyve.cache", "org.skyve.content", "org.skyve.domain", "org.skyve.impl", "org.skyve.metadata", "org.skyve.persistence" ]
java.io; java.text; javax.faces; javax.servlet; org.apache.commons; org.primefaces.event; org.primefaces.model; org.skyve; org.skyve.cache; org.skyve.content; org.skyve.domain; org.skyve.impl; org.skyve.metadata; org.skyve.persistence;
689,466
public static void validateSimple(String s, String legal) throws URISyntaxException { for (int i = 0; i < s.length(); i++) { char ch = s.charAt(i); if (!((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9...
static void function(String s, String legal) throws URISyntaxException { for (int i = 0; i < s.length(); i++) { char ch = s.charAt(i); if (!((ch >= 'a' && ch <= 'z') (ch >= 'A' && ch <= 'Z') (ch >= '0' && ch <= '9') legal.indexOf(ch) > -1)) { throw new URISyntaxException(s, STR, i); } } }
/** * Throws if {@code s} contains characters that are not letters, digits or * in {@code legal}. */
Throws if s contains characters that are not letters, digits or in legal
validateSimple
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "packages/apps/Exchange/src/com/android/exchange/utility/UriCodec.java", "license": "gpl-3.0", "size": 8416 }
[ "java.net.URISyntaxException" ]
import java.net.URISyntaxException;
import java.net.*;
[ "java.net" ]
java.net;
103,213
public static void removeDate(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Thing value) { Base.remove(model, instanceResource, DATE, value); }
static void function(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Thing value) { Base.remove(model, instanceResource, DATE, value); }
/** * Removes a value of property Date given as an instance of Thing * * @param model an RDF2Go model * @param resource an RDF2Go resource * @param value the value to be removed [Generated from RDFReactor template * rule #remove3static] */
Removes a value of property Date given as an instance of Thing
removeDate
{ "repo_name": "m0ep/master-thesis", "path": "source/apis/rdf2go/rdf2go-foaf/src/main/java/com/xmlns/foaf/Thing.java", "license": "mit", "size": 274766 }
[ "org.ontoware.rdf2go.model.Model", "org.ontoware.rdfreactor.runtime.Base" ]
import org.ontoware.rdf2go.model.Model; import org.ontoware.rdfreactor.runtime.Base;
import org.ontoware.rdf2go.model.*; import org.ontoware.rdfreactor.runtime.*;
[ "org.ontoware.rdf2go", "org.ontoware.rdfreactor" ]
org.ontoware.rdf2go; org.ontoware.rdfreactor;
2,809,696
public void setSplitterDraggingDrawable(Drawable splitterDraggingDrawable) { mSplitterDraggingDrawable = splitterDraggingDrawable; if (isDragging) { invalidate(); } }
void function(Drawable splitterDraggingDrawable) { mSplitterDraggingDrawable = splitterDraggingDrawable; if (isDragging) { invalidate(); } }
/** * Sets the drawable used for the splitter dragging overlay. * * @param splitterDraggingDrawable the drawable to use while dragging the splitter */
Sets the drawable used for the splitter dragging overlay
setSplitterDraggingDrawable
{ "repo_name": "MobiDevelop/android-split-pane-layout", "path": "split-pane-layout/src/main/java/com/mobidevelop/spl/widget/SplitPaneLayout.java", "license": "apache-2.0", "size": 28236 }
[ "android.graphics.drawable.Drawable" ]
import android.graphics.drawable.Drawable;
import android.graphics.drawable.*;
[ "android.graphics" ]
android.graphics;
1,486,369
public void checkRows( List<RowMetaAndData> rows1, List<RowMetaAndData> rows2, int fileNameColumn ) { int idx = 1; if ( rows1.size() != rows2.size() ) { fail( "Number of rows is not the same: " + rows1.size() + " and " + rows2.size() ); } Iterator<RowMetaAndData> it1 = rows1.iterator(); Iter...
void function( List<RowMetaAndData> rows1, List<RowMetaAndData> rows2, int fileNameColumn ) { int idx = 1; if ( rows1.size() != rows2.size() ) { fail( STR + rows1.size() + STR + rows2.size() ); } Iterator<RowMetaAndData> it1 = rows1.iterator(); Iterator<RowMetaAndData> it2 = rows2.iterator(); while ( it1.hasNext() && i...
/** * Check the 2 lists comparing the rows in order. If they are not the same fail the test. * * @param rows1 * set 1 of rows to compare * @param rows2 * set 2 of rows to compare * @param fileNameColumn * Number of the column containing the filename. This is only check...
Check the 2 lists comparing the rows in order. If they are not the same fail the test
checkRows
{ "repo_name": "tkafalas/pentaho-kettle", "path": "integration/src/it/java/org/pentaho/di/trans/steps/csvinput/CsvInputBase.java", "license": "apache-2.0", "size": 7468 }
[ "java.util.Iterator", "java.util.List", "org.pentaho.di.core.RowMetaAndData", "org.pentaho.di.core.exception.KettleValueException" ]
import java.util.Iterator; import java.util.List; import org.pentaho.di.core.RowMetaAndData; import org.pentaho.di.core.exception.KettleValueException;
import java.util.*; import org.pentaho.di.core.*; import org.pentaho.di.core.exception.*;
[ "java.util", "org.pentaho.di" ]
java.util; org.pentaho.di;
548,995
private boolean checkItem(Item item) { boolean result = true; if (item == null) { System.out.println("id not found"); result = false; } return result; } private class AddItem extends BaseAction { AddItem(String name) { ...
boolean function(Item item) { boolean result = true; if (item == null) { System.out.println(STR); result = false; } return result; } private class AddItem extends BaseAction { AddItem(String name) { super(name); }
/** * Checks item for null. * * @param item Item * @return true, if item != null */
Checks item for null
checkItem
{ "repo_name": "roman-sd/java-a-to-z", "path": "chapter_008/src/main/java/ru/sdroman/jdbc/tracker/MenuTracker.java", "license": "apache-2.0", "size": 7182 }
[ "ru.sdroman.jdbc.tracker.action.BaseAction", "ru.sdroman.jdbc.tracker.models.Item" ]
import ru.sdroman.jdbc.tracker.action.BaseAction; import ru.sdroman.jdbc.tracker.models.Item;
import ru.sdroman.jdbc.tracker.action.*; import ru.sdroman.jdbc.tracker.models.*;
[ "ru.sdroman.jdbc" ]
ru.sdroman.jdbc;
1,119,995
@SuppressWarnings("unchecked") public static <T> T[] reverse(T[] self, boolean mutate) { if (!mutate) { return (T[]) toList(new ReverseListIterator<T>(Arrays.asList(self))).toArray(); } List<T> items = Arrays.asList(self); Collections.reverse(items); System.ar...
@SuppressWarnings(STR) static <T> T[] function(T[] self, boolean mutate) { if (!mutate) { return (T[]) toList(new ReverseListIterator<T>(Arrays.asList(self))).toArray(); } List<T> items = Arrays.asList(self); Collections.reverse(items); System.arraycopy((T[])items.toArray(), 0, self, 0, items.size()); return self; }
/** * Reverse the items in an array. If mutate is true, the original array is modified in place and returned. * Otherwise, a new array containing the reversed items is produced. * * @param self an array * @param mutate true if the array itself should be reversed in place and returned, false i...
Reverse the items in an array. If mutate is true, the original array is modified in place and returned. Otherwise, a new array containing the reversed items is produced
reverse
{ "repo_name": "xien777/yajsw", "path": "yajsw/wrapper/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java", "license": "lgpl-2.1", "size": 704150 }
[ "java.util.Arrays", "java.util.Collections", "java.util.List" ]
import java.util.Arrays; import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,415,855
public byte[] engineCanonicalizeXPathNodeSet(NodeList xpathNodeSet) throws CanonicalizationException { return this.engineCanonicalizeXPathNodeSet( XMLUtils.convertNodelistToSet(xpathNodeSet) ); }
byte[] function(NodeList xpathNodeSet) throws CanonicalizationException { return this.engineCanonicalizeXPathNodeSet( XMLUtils.convertNodelistToSet(xpathNodeSet) ); }
/** * Method engineCanonicalizeXPathNodeSet * * @param xpathNodeSet * @return the c14n bytes * @throws CanonicalizationException */
Method engineCanonicalizeXPathNodeSet
engineCanonicalizeXPathNodeSet
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/c14n/CanonicalizerSpi.java", "license": "mit", "size": 5132 }
[ "com.sun.org.apache.xml.internal.security.utils.XMLUtils", "org.w3c.dom.NodeList" ]
import com.sun.org.apache.xml.internal.security.utils.XMLUtils; import org.w3c.dom.NodeList;
import com.sun.org.apache.xml.internal.security.utils.*; import org.w3c.dom.*;
[ "com.sun.org", "org.w3c.dom" ]
com.sun.org; org.w3c.dom;
1,451,162
public String getStorageAttributeValueByName(String attributeName, StorageEntity storageEntity, boolean attributeRequired, boolean attributeValueRequiredIfExists) throws IllegalStateException { boolean attributeExists = false; String attributeValue = null; for (StorageAttributeE...
String function(String attributeName, StorageEntity storageEntity, boolean attributeRequired, boolean attributeValueRequiredIfExists) throws IllegalStateException { boolean attributeExists = false; String attributeValue = null; for (StorageAttributeEntity attributeEntity : storageEntity.getAttributes()) { if (attribute...
/** * Gets attribute value by name from the storage entity while specifying whether the attribute is required and whether the attribute value is required. * * @param attributeName the attribute name (case insensitive) * @param storageEntity the storage entity * @param attributeRequired specifie...
Gets attribute value by name from the storage entity while specifying whether the attribute is required and whether the attribute value is required
getStorageAttributeValueByName
{ "repo_name": "FINRAOS/herd", "path": "herd-code/herd-service/src/main/java/org/finra/herd/service/helper/StorageHelper.java", "license": "apache-2.0", "size": 17059 }
[ "org.apache.commons.lang3.StringUtils", "org.finra.herd.model.jpa.StorageAttributeEntity", "org.finra.herd.model.jpa.StorageEntity" ]
import org.apache.commons.lang3.StringUtils; import org.finra.herd.model.jpa.StorageAttributeEntity; import org.finra.herd.model.jpa.StorageEntity;
import org.apache.commons.lang3.*; import org.finra.herd.model.jpa.*;
[ "org.apache.commons", "org.finra.herd" ]
org.apache.commons; org.finra.herd;
1,974,151
public Map<String, Map<String, EmployeeList>> getSortedWorkforce() { return sortedWorkforce; }
Map<String, Map<String, EmployeeList>> function() { return sortedWorkforce; }
/** * A getter method. * * @return the department's workforce */
A getter method
getSortedWorkforce
{ "repo_name": "gammalgris/jmul", "path": "Utilities/Persistence-Tests/legacy-src/test/jmul/datatypes/legacy/department/DepartmentGenderDetailsImpl.java", "license": "gpl-3.0", "size": 7379 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
55,573
private void initButtonsPanel() { JPanel panel = new JPanel(); BoxLayout layout = new BoxLayout(panel, BoxLayout.LINE_AXIS); panel.setLayout(layout); panel.add(Box.createHorizontalGlue()); backButton = new JButton("Retour"); backButton.addActionListener(this); panel.add(backButton); panel.add...
void function() { JPanel panel = new JPanel(); BoxLayout layout = new BoxLayout(panel, BoxLayout.LINE_AXIS); panel.setLayout(layout); panel.add(Box.createHorizontalGlue()); backButton = new JButton(STR); backButton.addActionListener(this); panel.add(backButton); panel.add(Box.createHorizontalGlue()); statButton = new J...
/** * Initialisation des boutons contenus dans ce panel. */
Initialisation des boutons contenus dans ce panel
initButtonsPanel
{ "repo_name": "thedoctor84/Projet2015", "path": "src/fr/univavignon/courbes/inter/stats/StatPanel.java", "license": "gpl-2.0", "size": 4286 }
[ "javax.swing.Box", "javax.swing.BoxLayout", "javax.swing.JButton", "javax.swing.JPanel" ]
import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JPanel;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,802,869
private Map<ValueNode, TypeExpr> getValueNodeToUnconstrainedTypeMap() { Map<ValueNode, TypeExpr> returnMap = new HashMap<ValueNode, TypeExpr>(); // Get the value nodes for the tuple and the items in the tuple. NTupleValueNode currentTupleValue = (NTupleValueNode)getVal...
Map<ValueNode, TypeExpr> function() { Map<ValueNode, TypeExpr> returnMap = new HashMap<ValueNode, TypeExpr>(); NTupleValueNode currentTupleValue = (NTupleValueNode)getValueNode(); int tupleSize = currentTupleValue.getTupleSize(); TypeExpr unconstrainedTupleType = getContext().getLeastConstrainedTypeExpr(); if (unconstr...
/** * Get a map from every value node managed by this editor to its least constrained type. * @return Map from every value node managed by this editor to its least constrained type. */
Get a map from every value node managed by this editor to its least constrained type
getValueNodeToUnconstrainedTypeMap
{ "repo_name": "levans/Open-Quark", "path": "src/Quark_Gems/src/org/openquark/gems/client/valueentry/TupleValueEditor.java", "license": "bsd-3-clause", "size": 14047 }
[ "java.util.HashMap", "java.util.Map", "org.openquark.cal.compiler.FieldName", "org.openquark.cal.compiler.TypeExpr", "org.openquark.cal.valuenode.NTupleValueNode", "org.openquark.cal.valuenode.ValueNode" ]
import java.util.HashMap; import java.util.Map; import org.openquark.cal.compiler.FieldName; import org.openquark.cal.compiler.TypeExpr; import org.openquark.cal.valuenode.NTupleValueNode; import org.openquark.cal.valuenode.ValueNode;
import java.util.*; import org.openquark.cal.compiler.*; import org.openquark.cal.valuenode.*;
[ "java.util", "org.openquark.cal" ]
java.util; org.openquark.cal;
1,239,113
public ServiceResponse<Void> putIntegerValid(Map<String, Integer> arrayBody) throws ErrorException, IOException, IllegalArgumentException { if (arrayBody == null) { throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); } Validator.validate(arr...
ServiceResponse<Void> function(Map<String, Integer> arrayBody) throws ErrorException, IOException, IllegalArgumentException { if (arrayBody == null) { throw new IllegalArgumentException(STR); } Validator.validate(arrayBody); Call<ResponseBody> call = service.putIntegerValid(arrayBody); return putIntegerValidDelegate(ca...
/** * Set dictionary value empty {"0": 1, "1": -1, "2": 3, "3": 300}. * * @param arrayBody the Map&lt;String, Integer&gt; value * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @throws IllegalArgumentExcept...
Set dictionary value empty {"0": 1, "1": -1, "2": 3, "3": 300}
putIntegerValid
{ "repo_name": "John-Hart/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodydictionary/implementation/DictionarysImpl.java", "license": "mit", "size": 172079 }
[ "com.microsoft.rest.ServiceResponse", "com.microsoft.rest.Validator", "java.io.IOException", "java.util.Map" ]
import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; import java.io.IOException; import java.util.Map;
import com.microsoft.rest.*; import java.io.*; import java.util.*;
[ "com.microsoft.rest", "java.io", "java.util" ]
com.microsoft.rest; java.io; java.util;
2,322,839
public static Throwable getError(Intent result) { return (Throwable) result.getSerializableExtra(Extra.ERROR); }
static Throwable function(Intent result) { return (Throwable) result.getSerializableExtra(Extra.ERROR); }
/** * Retrieve error that caused crop to fail * * @param result Result Intent * @return Throwable handled in CropImageActivity */
Retrieve error that caused crop to fail
getError
{ "repo_name": "mityung/XERUNG", "path": "Andriod/Xerung/Xerung/src/main/java/com/example/contactplusgroup/crop/Crop.java", "license": "apache-2.0", "size": 7548 }
[ "android.content.Intent" ]
import android.content.Intent;
import android.content.*;
[ "android.content" ]
android.content;
799,317
public void setRepositoryRoot(SVNUrl url);
void function(SVNUrl url);
/** * set the repository root url * @param url */
set the repository root url
setRepositoryRoot
{ "repo_name": "apicloudcom/APICloud-Studio", "path": "org.tigris.subversion.subclipse.core/src/org/tigris/subversion/subclipse/core/ISVNRepositoryLocation.java", "license": "gpl-3.0", "size": 4583 }
[ "org.tigris.subversion.svnclientadapter.SVNUrl" ]
import org.tigris.subversion.svnclientadapter.SVNUrl;
import org.tigris.subversion.svnclientadapter.*;
[ "org.tigris.subversion" ]
org.tigris.subversion;
2,911,962
public Image getImage() { return image; }
Image function() { return image; }
/** * Getter for property image. * * @return Value of property image. */
Getter for property image
getImage
{ "repo_name": "SafetyCulture/DroidText", "path": "app/src/main/java/com/lowagie/text/pdf/PdfPCell.java", "license": "lgpl-3.0", "size": 25767 }
[ "com.lowagie.text.Image" ]
import com.lowagie.text.Image;
import com.lowagie.text.*;
[ "com.lowagie.text" ]
com.lowagie.text;
2,604,855
@Override protected void rendezvousWithJms(final ProcessContext context, final ProcessSession processSession, final JMSConsumer consumer) throws ProcessException { final String destinationName = context.getProperty(DESTINATION).evaluateAttributeExpressions().getValue(); final String errorQueueNa...
void function(final ProcessContext context, final ProcessSession processSession, final JMSConsumer consumer) throws ProcessException { final String destinationName = context.getProperty(DESTINATION).evaluateAttributeExpressions().getValue(); final String errorQueueName = context.getProperty(ERROR_QUEUE).evaluateAttribu...
/** * Will construct a {@link FlowFile} containing the body of the consumed JMS * message (if {@link JMSResponse} returned by {@link JMSConsumer} is not * null) and JMS properties that came with message which are added to a * {@link FlowFile} as attributes, transferring {@link FlowFile} to * 's...
Will construct a <code>FlowFile</code> containing the body of the consumed JMS message (if <code>JMSResponse</code> returned by <code>JMSConsumer</code> is not null) and JMS properties that came with message which are added to a <code>FlowFile</code> as attributes, transferring <code>FlowFile</code> to 'success' <code>...
rendezvousWithJms
{ "repo_name": "jtstorck/nifi", "path": "nifi-nar-bundles/nifi-jms-bundle/nifi-jms-processors/src/main/java/org/apache/nifi/jms/processors/ConsumeJMS.java", "license": "apache-2.0", "size": 18636 }
[ "org.apache.nifi.processor.ProcessContext", "org.apache.nifi.processor.ProcessSession", "org.apache.nifi.processor.exception.ProcessException" ]
import org.apache.nifi.processor.ProcessContext; import org.apache.nifi.processor.ProcessSession; import org.apache.nifi.processor.exception.ProcessException;
import org.apache.nifi.processor.*; import org.apache.nifi.processor.exception.*;
[ "org.apache.nifi" ]
org.apache.nifi;
1,179,863