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
final ServiceLoader<T> loader = ServiceLoader.load(type); ArrayList<T> services = new ArrayList<>(); for (T service : loader) services.add(service); final T service; if (services.size() == 1) service = services.iterator().next(); else { if (s...
final ServiceLoader<T> loader = ServiceLoader.load(type); ArrayList<T> services = new ArrayList<>(); for (T service : loader) services.add(service); final T service; if (services.size() == 1) service = services.iterator().next(); else { if (services.isEmpty()) service = null; else throw new Error(STR + type.getName() +...
/** * Loads a service of the given type and ensures it has either one implementation or none. * * @param type The service's type. * @return The service implementation if found, or {@code null} if not. * @throws Error if more than one implementation of the service have been found. */
Loads a service of the given type and ensures it has either one implementation or none
loadSingletonServiceOrNull
{ "repo_name": "tbrooks8/quasar", "path": "quasar-core/src/main/java/co/paralleluniverse/common/util/ServiceUtil.java", "license": "gpl-3.0", "size": 2205 }
[ "java.util.ArrayList", "java.util.ServiceLoader" ]
import java.util.ArrayList; import java.util.ServiceLoader;
import java.util.*;
[ "java.util" ]
java.util;
636,593
public void commentLines() { queryPane.addUndoEdit(); int selectionStart = queryPane.getSelectionStart(); int selectionEnd = queryPane.getSelectionEnd(); boolean singleRow = (selectionStart == selectionEnd); int startRow = queryPane.getRowAt(selectionStart); int e...
void function() { queryPane.addUndoEdit(); int selectionStart = queryPane.getSelectionStart(); int selectionEnd = queryPane.getSelectionEnd(); boolean singleRow = (selectionStart == selectionEnd); int startRow = queryPane.getRowAt(selectionStart); int endRow = queryPane.getRowAt(selectionEnd); int endRowStartIndex = qu...
/** * Adds a comment tag to the beginning of the current line * or selected lines. */
Adds a comment tag to the beginning of the current line or selected lines
commentLines
{ "repo_name": "toxeh/ExecuteQuery", "path": "java/src/org/executequery/gui/editor/QueryEditorTextPanel.java", "license": "gpl-3.0", "size": 19009 }
[ "java.util.regex.Matcher", "javax.swing.text.BadLocationException" ]
import java.util.regex.Matcher; import javax.swing.text.BadLocationException;
import java.util.regex.*; import javax.swing.text.*;
[ "java.util", "javax.swing" ]
java.util; javax.swing;
502,635
boolean startTimeRecording(long nanoTime, long threadTicks, long threadId) { boolean result = false; final ResourceType resource = ResourceType.CPU_TIME; if (enableRecording(this, resource)) { for (int i = 0; i < elements.length; i++) { if (enableRecording(el...
boolean startTimeRecording(long nanoTime, long threadTicks, long threadId) { boolean result = false; final ResourceType resource = ResourceType.CPU_TIME; if (enableRecording(this, resource)) { for (int i = 0; i < elements.length; i++) { if (enableRecording(elements[i], resource)) { result = elements[i].startTimeRecordi...
/** * Start the time recording for this instance. * * @param nanoTime the current system time in nano seconds * @param threadTicks the current number of thread ticks * @param threadId the identifier of the thread causing the call * @return <code>true</code> if recording started on t...
Start the time recording for this instance
startTimeRecording
{ "repo_name": "SSEHUB/spassMeter", "path": "Instrumentation.ex/src/de/uni_hildesheim/sse/monitoring/runtime/recordingStrategies/AbstractMultipleRecorderElement.java", "license": "apache-2.0", "size": 22705 }
[ "de.uni_hildesheim.sse.monitoring.runtime.boot.ResourceType" ]
import de.uni_hildesheim.sse.monitoring.runtime.boot.ResourceType;
import de.uni_hildesheim.sse.monitoring.runtime.boot.*;
[ "de.uni_hildesheim.sse" ]
de.uni_hildesheim.sse;
338,885
protected boolean isActiveDefinition(XBLOMDefinitionElement def, Element imp) { DefinitionRecord defRec = (DefinitionRecord) definitions.get(def, imp); if (defRec == null) { return false; } return defRec == getActiveDefinition(defR...
boolean function(XBLOMDefinitionElement def, Element imp) { DefinitionRecord defRec = (DefinitionRecord) definitions.get(def, imp); if (defRec == null) { return false; } return defRec == getActiveDefinition(defRec.namespaceURI, defRec.localName); } protected class DefinitionRecord implements Comparable { public String ...
/** * Returns whether the given definition element is the active one * for its element name. */
Returns whether the given definition element is the active one for its element name
isActiveDefinition
{ "repo_name": "Uni-Sol/batik", "path": "sources/org/apache/batik/bridge/svg12/DefaultXBLManager.java", "license": "apache-2.0", "size": 70195 }
[ "org.apache.batik.dom.svg12.XBLOMDefinitionElement", "org.apache.batik.dom.svg12.XBLOMTemplateElement", "org.w3c.dom.Element" ]
import org.apache.batik.dom.svg12.XBLOMDefinitionElement; import org.apache.batik.dom.svg12.XBLOMTemplateElement; import org.w3c.dom.Element;
import org.apache.batik.dom.svg12.*; import org.w3c.dom.*;
[ "org.apache.batik", "org.w3c.dom" ]
org.apache.batik; org.w3c.dom;
2,580,355
SummaryFlowEntryWithLoad loadSummary(Device device, PortNumber pNumber);
SummaryFlowEntryWithLoad loadSummary(Device device, PortNumber pNumber);
/** * Obtain the summary load for the device with the given link or port. * * @param device the Device to query. * @param pNumber the port number to query. * @return summary flow entry load */
Obtain the summary load for the device with the given link or port
loadSummary
{ "repo_name": "kkkane/ONOS", "path": "core/api/src/main/java/org/onosproject/net/statistic/FlowStatisticService.java", "license": "apache-2.0", "size": 4615 }
[ "org.onosproject.net.Device", "org.onosproject.net.PortNumber" ]
import org.onosproject.net.Device; import org.onosproject.net.PortNumber;
import org.onosproject.net.*;
[ "org.onosproject.net" ]
org.onosproject.net;
1,233,681
public Set<Dependency<Label, Label, Object>> dependencies(Filter<Dependency<Label, Label, Object>> f, HeadFinder hf) { Set<Dependency<Label, Label, Object>> deps = Generics.newHashSet(); for (Tree t : this) { TreeGraphNode node = safeCast(t); if (node == null || node.isLeaf() || node.childre...
Set<Dependency<Label, Label, Object>> function(Filter<Dependency<Label, Label, Object>> f, HeadFinder hf) { Set<Dependency<Label, Label, Object>> deps = Generics.newHashSet(); for (Tree t : this) { TreeGraphNode node = safeCast(t); if (node == null node.isLeaf() node.children().length < 2) { continue; } TreeGraphNode h...
/** * Return a set of node-node dependencies, represented as Dependency * objects, for the Tree. * * @param hf The HeadFinder to use to identify the head of constituents. * If this is <code>null</code>, then nodes are assumed to already * be marked with their heads. * @re...
Return a set of node-node dependencies, represented as Dependency objects, for the Tree
dependencies
{ "repo_name": "PeterisP/LVTagger", "path": "src/main/java/edu/stanford/nlp/trees/TreeGraphNode.java", "license": "gpl-2.0", "size": 26846 }
[ "edu.stanford.nlp.ling.Label", "edu.stanford.nlp.util.Filter", "edu.stanford.nlp.util.Generics", "java.util.Set" ]
import edu.stanford.nlp.ling.Label; import edu.stanford.nlp.util.Filter; import edu.stanford.nlp.util.Generics; import java.util.Set;
import edu.stanford.nlp.ling.*; import edu.stanford.nlp.util.*; import java.util.*;
[ "edu.stanford.nlp", "java.util" ]
edu.stanford.nlp; java.util;
324,235
private static void initializeDefaults(Properties properties) { properties.put("flyway.locations", "filesystem:" + new File(getInstallationDir(), "sql").getAbsolutePath()); properties.put("flyway.jarDirs", new File(getInstallationDir(), "jars").getAbsolutePath()); }
static void function(Properties properties) { properties.put(STR, STR + new File(getInstallationDir(), "sql").getAbsolutePath()); properties.put(STR, new File(getInstallationDir(), "jars").getAbsolutePath()); }
/** * Initializes the properties with the default configuration for the command-line tool. * * @param properties The properties object to initialize. */
Initializes the properties with the default configuration for the command-line tool
initializeDefaults
{ "repo_name": "chrsoo/flyway", "path": "flyway-commandline/src/main/java/org/flywaydb/commandline/Main.java", "license": "apache-2.0", "size": 20752 }
[ "java.io.File", "java.util.Properties" ]
import java.io.File; import java.util.Properties;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,012,517
Post get(Long id) throws NotFoundException;
Post get(Long id) throws NotFoundException;
/** * Gets post with specified id * * @param id id of interested post * * @return post with specified id * * @throws org.jtalks.jcommune.plugin.api.exceptions.NotFoundException if no post with specified id found in database */
Gets post with specified id
get
{ "repo_name": "illerax/jcommune", "path": "jcommune-plugin-api/src/main/java/org/jtalks/jcommune/plugin/api/service/PluginPostService.java", "license": "lgpl-2.1", "size": 2349 }
[ "org.jtalks.jcommune.model.entity.Post", "org.jtalks.jcommune.plugin.api.exceptions.NotFoundException" ]
import org.jtalks.jcommune.model.entity.Post; import org.jtalks.jcommune.plugin.api.exceptions.NotFoundException;
import org.jtalks.jcommune.model.entity.*; import org.jtalks.jcommune.plugin.api.exceptions.*;
[ "org.jtalks.jcommune" ]
org.jtalks.jcommune;
1,095,349
public static boolean containsProperty(String propertyName, Properties properties) { return getProperty(propertyName, properties) != null; }
static boolean function(String propertyName, Properties properties) { return getProperty(propertyName, properties) != null; }
/** * Checks whether the property with the given name exists in the System or in the given properties. * * @param propertyName The property name, not null * @param properties The properties if not found in System, not null * @return True if the property exitsts */
Checks whether the property with the given name exists in the System or in the given properties
containsProperty
{ "repo_name": "DbMaintain/dbmaintain", "path": "dbmaintain/src/main/java/org/dbmaintain/config/PropertyUtils.java", "license": "apache-2.0", "size": 12149 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
2,511,443
public void connectClient(URI endpointURI) throws WSProxyException { try { analyticsSession = container.connectToServer(this, endpointURI); } catch (DeploymentException | IOException e) { String msg = "Error occurred while connecting to remote endpoint " + endpointURI.toStrin...
void function(URI endpointURI) throws WSProxyException { try { analyticsSession = container.connectToServer(this, endpointURI); } catch (DeploymentException IOException e) { String msg = STR + endpointURI.toString(); log.error(msg, e); throw new WSProxyException(msg, e); } }
/** * Create web socket client connection using {@link WebSocketContainer}. */
Create web socket client connection using <code>WebSocketContainer</code>
connectClient
{ "repo_name": "hasuniea/carbon-device-mgt", "path": "components/device-mgt/org.wso2.carbon.device.mgt.analytics.wsproxy/src/main/java/org/wso2/carbon/device/mgt/analytics/wsproxy/outbound/AnalyticsClient.java", "license": "apache-2.0", "size": 3870 }
[ "java.io.IOException", "javax.websocket.DeploymentException", "org.wso2.carbon.device.mgt.analytics.wsproxy.exception.WSProxyException" ]
import java.io.IOException; import javax.websocket.DeploymentException; import org.wso2.carbon.device.mgt.analytics.wsproxy.exception.WSProxyException;
import java.io.*; import javax.websocket.*; import org.wso2.carbon.device.mgt.analytics.wsproxy.exception.*;
[ "java.io", "javax.websocket", "org.wso2.carbon" ]
java.io; javax.websocket; org.wso2.carbon;
274,332
public byte getMonth() { Calendar cal = Calendar.getInstance(); cal.setTime((Date) spDate.getValue()); return (byte) (cal.get(Calendar.MONTH) + 1); }
byte function() { Calendar cal = Calendar.getInstance(); cal.setTime((Date) spDate.getValue()); return (byte) (cal.get(Calendar.MONTH) + 1); }
/** * Get the month the wage is valid in. * * @return The month the wage is valid in */
Get the month the wage is valid in
getMonth
{ "repo_name": "aidGer/aidGer", "path": "src/de/aidger/view/forms/HourlyWageEditorForm.java", "license": "gpl-3.0", "size": 11795 }
[ "java.util.Calendar", "java.util.Date" ]
import java.util.Calendar; import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,544,801
public OffsetDateTime firstActivityTimeUtc() { return this.innerProperties() == null ? null : this.innerProperties().firstActivityTimeUtc(); }
OffsetDateTime function() { return this.innerProperties() == null ? null : this.innerProperties().firstActivityTimeUtc(); }
/** * Get the firstActivityTimeUtc property: The time of the first activity in the incident. * * @return the firstActivityTimeUtc value. */
Get the firstActivityTimeUtc property: The time of the first activity in the incident
firstActivityTimeUtc
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/IncidentInner.java", "license": "mit", "size": 14980 }
[ "java.time.OffsetDateTime" ]
import java.time.OffsetDateTime;
import java.time.*;
[ "java.time" ]
java.time;
1,985,246
public void setJobEntry(int idx, JobEntryCopy jec) { jobcopies.set(idx, jec); }
void function(int idx, JobEntryCopy jec) { jobcopies.set(idx, jec); }
/** * Sets the job entry. * * @param idx the idx * @param jec the jec */
Sets the job entry
setJobEntry
{ "repo_name": "lihongqiang/kettle-4.4.0-stable", "path": "src/org/pentaho/di/job/JobMeta.java", "license": "apache-2.0", "size": 103745 }
[ "org.pentaho.di.job.entry.JobEntryCopy" ]
import org.pentaho.di.job.entry.JobEntryCopy;
import org.pentaho.di.job.entry.*;
[ "org.pentaho.di" ]
org.pentaho.di;
797,101
protected final void setSupportedModuleViewTypes( Collection<? extends ModuleViewType> moduleViewTypes) { this.supportedModuleViewTypes.clear(); this.supportedModuleViewTypes.addAll(moduleViewTypes); }
final void function( Collection<? extends ModuleViewType> moduleViewTypes) { this.supportedModuleViewTypes.clear(); this.supportedModuleViewTypes.addAll(moduleViewTypes); }
/** * Set the {@link ModuleViewType} objects that will be reported as * the {@link #getSupportedModuleViewTypes() supported ModuleView types}, * and will be passed to {@link #createModuleView(ModuleViewType)}. * * @param moduleViewTypes The supported {@link ModuleViewType} objects ...
Set the <code>ModuleViewType</code> objects that will be reported as the <code>#getSupportedModuleViewTypes() supported ModuleView types</code>, and will be passed to <code>#createModuleView(ModuleViewType)</code>
setSupportedModuleViewTypes
{ "repo_name": "javagl/Flow", "path": "flow-module-creation/src/main/java/de/javagl/flow/module/creation/AbstractModuleCreator.java", "license": "mit", "size": 8595 }
[ "de.javagl.flow.module.view.ModuleViewType", "java.util.Collection" ]
import de.javagl.flow.module.view.ModuleViewType; import java.util.Collection;
import de.javagl.flow.module.view.*; import java.util.*;
[ "de.javagl.flow", "java.util" ]
de.javagl.flow; java.util;
539,083
protected String replaceDpdkInterfaces(String xmlDesc, Map<String, DpdkTO> dpdkPortsMapping) throws TransformerException, ParserConfigurationException, IOException, SAXException { InputStream in = IOUtils.toInputStream(xmlDesc); DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance...
String function(String xmlDesc, Map<String, DpdkTO> dpdkPortsMapping) throws TransformerException, ParserConfigurationException, IOException, SAXException { InputStream in = IOUtils.toInputStream(xmlDesc); DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docFactory....
/** * Replace DPDK source path and target before migrations */
Replace DPDK source path and target before migrations
replaceDpdkInterfaces
{ "repo_name": "DaanHoogland/cloudstack", "path": "plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtMigrateCommandWrapper.java", "license": "apache-2.0", "size": 27377 }
[ "com.cloud.agent.api.to.DpdkTO", "java.io.IOException", "java.io.InputStream", "java.util.Map", "javax.xml.parsers.DocumentBuilder", "javax.xml.parsers.DocumentBuilderFactory", "javax.xml.parsers.ParserConfigurationException", "javax.xml.transform.TransformerException", "org.apache.commons.io.IOUtil...
import com.cloud.agent.api.to.DpdkTO; import java.io.IOException; import java.io.InputStream; import java.util.Map; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerException; import or...
import com.cloud.agent.api.to.*; import java.io.*; import java.util.*; import javax.xml.parsers.*; import javax.xml.transform.*; import org.apache.commons.io.*; import org.apache.commons.lang.*; import org.w3c.dom.*; import org.xml.sax.*;
[ "com.cloud.agent", "java.io", "java.util", "javax.xml", "org.apache.commons", "org.w3c.dom", "org.xml.sax" ]
com.cloud.agent; java.io; java.util; javax.xml; org.apache.commons; org.w3c.dom; org.xml.sax;
1,944,950
public static String sendPostData(String urll, String text, String key) throws IOException { String write = URLEncoder.encode(key, "UTF-8") + "=" + URLEncoder.encode(text, "UTF-8"); StringBuilder response = null; URL url = new URL(urll); HttpURLConnection connection = (HttpURLConnect...
static String function(String urll, String text, String key) throws IOException { String write = URLEncoder.encode(key, "UTF-8") + "=" + URLEncoder.encode(text, "UTF-8"); StringBuilder response = null; URL url = new URL(urll); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setReques...
/** * Send post data. * * @param urll the urll * @param text the text * @param key the key * @return the string * @throws IOException Signals that an I/O exception has occurred. */
Send post data
sendPostData
{ "repo_name": "dgelessus/ATLauncher", "path": "src/main/java/com/atlauncher/utils/Utils.java", "license": "gpl-3.0", "size": 70817 }
[ "com.atlauncher.App", "java.io.BufferedReader", "java.io.DataOutputStream", "java.io.IOException", "java.io.InputStreamReader", "java.net.HttpURLConnection", "java.net.URLEncoder" ]
import com.atlauncher.App; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URLEncoder;
import com.atlauncher.*; import java.io.*; import java.net.*;
[ "com.atlauncher", "java.io", "java.net" ]
com.atlauncher; java.io; java.net;
1,914,967
SqlOperator calciteOperator();
SqlOperator calciteOperator();
/** * Returns the SQL operator corresponding to this function. Should be a singleton. * * @return operator */
Returns the SQL operator corresponding to this function. Should be a singleton
calciteOperator
{ "repo_name": "dkhwangbo/druid", "path": "sql/src/main/java/org/apache/druid/sql/calcite/expression/SqlOperatorConversion.java", "license": "apache-2.0", "size": 1827 }
[ "org.apache.calcite.sql.SqlOperator" ]
import org.apache.calcite.sql.SqlOperator;
import org.apache.calcite.sql.*;
[ "org.apache.calcite" ]
org.apache.calcite;
996,871
//----------------------------------------------------------------------- public MarketDataProviderResolver getMarketDataProviderResolver() { return _marketDataProviderResolver; }
MarketDataProviderResolver function() { return _marketDataProviderResolver; }
/** * Gets the market data (for debugging). * @return the value of the property */
Gets the market data (for debugging)
getMarketDataProviderResolver
{ "repo_name": "McLeodMoores/starling", "path": "projects/component/src/main/java/com/opengamma/component/factory/engine/SpringViewProcessorComponentFactory.java", "license": "apache-2.0", "size": 39839 }
[ "com.opengamma.engine.marketdata.resolver.MarketDataProviderResolver" ]
import com.opengamma.engine.marketdata.resolver.MarketDataProviderResolver;
import com.opengamma.engine.marketdata.resolver.*;
[ "com.opengamma.engine" ]
com.opengamma.engine;
2,084,102
public List<Expression> getFromColumns() { return ImmutableList.copyOf(fromColumns); }
List<Expression> function() { return ImmutableList.copyOf(fromColumns); }
/** * Gets the FROM columns. * * @return The FROM columns. */
Gets the FROM columns
getFromColumns
{ "repo_name": "feedzai/pdb", "path": "src/main/java/com/feedzai/commons/sql/abstraction/dml/Query.java", "license": "apache-2.0", "size": 9883 }
[ "com.google.common.collect.ImmutableList", "java.util.List" ]
import com.google.common.collect.ImmutableList; import java.util.List;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
2,713,527
public GRADRECORD readGRADRECORD(int shapeNum, String name) throws IOException { GRADRECORD ret = new GRADRECORD(); newDumpLevel(name, "GRADRECORD"); ret.ratio = readUI8("ratio"); if (shapeNum >= 3) { ret.color = readRGBA("color"); } else { ret.color =...
GRADRECORD function(int shapeNum, String name) throws IOException { GRADRECORD ret = new GRADRECORD(); newDumpLevel(name, STR); ret.ratio = readUI8("ratio"); if (shapeNum >= 3) { ret.color = readRGBA("color"); } else { ret.color = readRGB("color"); } endDumpLevel(); return ret; }
/** * Reads one GRADRECORD value from the stream * * @param shapeNum 1 in DefineShape, 2 in DefineShape2... * @param name * @return GRADRECORD value * @throws IOException */
Reads one GRADRECORD value from the stream
readGRADRECORD
{ "repo_name": "crimefire/jpexs-decompiler", "path": "libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java", "license": "gpl-3.0", "size": 128299 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,365,478
@Override protected void onSessionClose(long sessionId, Map<Long, Object> responses) { SessionSemaphoreState state = sessionStates.get(sessionId); if (state != null) { // remove the session after release() because release() checks existence of the session if (state.acquir...
void function(long sessionId, Map<Long, Object> responses) { SessionSemaphoreState state = sessionStates.get(sessionId); if (state != null) { if (state.acquiredPermits > 0) { SemaphoreEndpoint endpoint = new SemaphoreEndpoint(sessionId, 0); ReleaseResult result = release(endpoint, newUnsecureUUID(), state.acquiredPermi...
/** * Releases permits of the closed session. */
Releases permits of the closed session
onSessionClose
{ "repo_name": "mdogan/hazelcast", "path": "hazelcast/src/main/java/com/hazelcast/cp/internal/datastructures/semaphore/Semaphore.java", "license": "apache-2.0", "size": 18048 }
[ "com.hazelcast.internal.util.UuidUtil", "java.util.Map" ]
import com.hazelcast.internal.util.UuidUtil; import java.util.Map;
import com.hazelcast.internal.util.*; import java.util.*;
[ "com.hazelcast.internal", "java.util" ]
com.hazelcast.internal; java.util;
2,421,890
private GroupFullInfo groupsUpdate(GroupUpdateArgs arg) throws GroupsUpdateException, DbxException { try { return client.rpcStyle(client.getHost().api, "2/team/groups/update", arg, ...
GroupFullInfo function(GroupUpdateArgs arg) throws GroupsUpdateException, DbxException { try { return client.rpcStyle(client.getHost().api, STR, arg, false, GroupUpdateArgs._writer, GroupFullInfo._reader, GroupUpdateError._reader); } catch (DbxRequestUtil.ErrorWrapper ew) { throw new GroupsUpdateException(ew.requestId,...
/** * Updates a group's name and/or external ID. Permission : Team member * management */
Updates a group's name and/or external ID. Permission : Team member management
groupsUpdate
{ "repo_name": "hunchee/dropbox-sdk-java", "path": "src/com/dropbox/core/v2/DbxTeam.java", "license": "mit", "size": 1014346 }
[ "com.dropbox.core.DbxException", "com.dropbox.core.DbxRequestUtil" ]
import com.dropbox.core.DbxException; import com.dropbox.core.DbxRequestUtil;
import com.dropbox.core.*;
[ "com.dropbox.core" ]
com.dropbox.core;
987,602
public void senderThread() { Thread.currentThread().setName( "Sender " + getViewName() ); while( messageSender!=null && !messageSender.isInterrupted() ) { try { Thread.sleep( CLIENT_UPDATE_INTERVAL ); if( serverBatchComplete ) { sendUpdates(); } ListIterator<ClientDataView> iter = client...
void function() { Thread.currentThread().setName( STR + getViewName() ); while( messageSender!=null && !messageSender.isInterrupted() ) { try { Thread.sleep( CLIENT_UPDATE_INTERVAL ); if( serverBatchComplete ) { sendUpdates(); } ListIterator<ClientDataView> iter = clientViews.listIterator(); while( iter.hasNext() ) { C...
/** * This monitors each element in the cache, sending any changed or * deleted elements to the client. If any client is closed it will * be deleted from the active client list. * * The start() method must be called after construction. * */
This monitors each element in the cache, sending any changed or deleted elements to the client. If any client is closed it will be deleted from the active client list. The start() method must be called after construction
senderThread
{ "repo_name": "rcorbish/LiveAggregator", "path": "src/main/java/com/rc/dataview/DataElementDataView.java", "license": "bsd-3-clause", "size": 24087 }
[ "java.util.ListIterator" ]
import java.util.ListIterator;
import java.util.*;
[ "java.util" ]
java.util;
616,222
private static GsonBuilder registerOffsetDateTime(GsonBuilder builder) { builder.registerTypeAdapter(OFFSET_DATE_TIME_TYPE, new OffsetDateTimeConverter()); return builder; }
static GsonBuilder function(GsonBuilder builder) { builder.registerTypeAdapter(OFFSET_DATE_TIME_TYPE, new OffsetDateTimeConverter()); return builder; }
/** * Registers the {@link OffsetDateTimeConverter} converter. * @param builder The GSON builder to register the converter with. * @return A reference to {@code builder}. */
Registers the <code>OffsetDateTimeConverter</code> converter
registerOffsetDateTime
{ "repo_name": "gkopff/gson-threeten-serialisers", "path": "src/test/java/com/fatboyindustrial/gsonjavatime/OffsetDateTimeConverterTest.java", "license": "mit", "size": 2946 }
[ "com.google.gson.GsonBuilder" ]
import com.google.gson.GsonBuilder;
import com.google.gson.*;
[ "com.google.gson" ]
com.google.gson;
1,424,471
public static boolean nextBoolean(Random random) { return random.nextBoolean(); }
static boolean function(Random random) { return random.nextBoolean(); }
/** * <p>Returns the next pseudorandom, uniformly distributed boolean value * from the given random sequence.</p> * * @param random the Random sequence generator. * @return the random boolean */
Returns the next pseudorandom, uniformly distributed boolean value from the given random sequence
nextBoolean
{ "repo_name": "glorycloud/GloryMail", "path": "CloudyMail/lib_src/org/apache/commons/lang/math/RandomUtils.java", "license": "apache-2.0", "size": 5719 }
[ "java.util.Random" ]
import java.util.Random;
import java.util.*;
[ "java.util" ]
java.util;
1,407,150
public void startDocument() throws SAXException { this.ejbFiles = new Hashtable(DEFAULT_HASH_TABLE_SIZE, 1); this.currentElement = null; inEJBRef = false; }
void function() throws SAXException { this.ejbFiles = new Hashtable(DEFAULT_HASH_TABLE_SIZE, 1); this.currentElement = null; inEJBRef = false; }
/** * SAX parser call-back method that is used to initialize the values of some * instance variables to ensure safe operation. * @throws SAXException on error */
SAX parser call-back method that is used to initialize the values of some instance variables to ensure safe operation
startDocument
{ "repo_name": "Mayo-WE01051879/mayosapp", "path": "Build/src/main/org/apache/tools/ant/taskdefs/optional/ejb/DescriptorHandler.java", "license": "mit", "size": 14798 }
[ "java.util.Hashtable", "org.xml.sax.SAXException" ]
import java.util.Hashtable; import org.xml.sax.SAXException;
import java.util.*; import org.xml.sax.*;
[ "java.util", "org.xml.sax" ]
java.util; org.xml.sax;
1,802,697
public void testCFII_ServerStartLater_Block() throws Exception { // ensure ensureServerClosed(); assertTrue(this.channel1.isBlocking()); statusNotConnected_NotPending(); // connect try { this.channel1.connect(localAddr1); fail("Should throw a C...
void function() throws Exception { ensureServerClosed(); assertTrue(this.channel1.isBlocking()); statusNotConnected_NotPending(); try { this.channel1.connect(localAddr1); fail(STR); } catch (ConnectException e) { } statusChannelClosed(); ensureServerOpen(); try { this.channel1.finishConnect(); fail(STR); } catch (Close...
/** * no server-->connect-->server open-->finish-->close */
no server-->connect-->server open-->finish-->close
testCFII_ServerStartLater_Block
{ "repo_name": "JSDemos/android-sdk-20", "path": "src/org/apache/harmony/tests/java/nio/channels/SocketChannelTest.java", "license": "apache-2.0", "size": 121673 }
[ "java.net.ConnectException", "java.nio.channels.ClosedChannelException" ]
import java.net.ConnectException; import java.nio.channels.ClosedChannelException;
import java.net.*; import java.nio.channels.*;
[ "java.net", "java.nio" ]
java.net; java.nio;
57,327
public IgniteInternalFuture<?> createFromTemplate(String cacheName) { try { CacheConfiguration cfg = getOrCreateConfigFromTemplate(cacheName); return dynamicStartCache(cfg, cacheName, null, true, true, true); } catch (IgniteCheckedException e) { throw U.c...
IgniteInternalFuture<?> function(String cacheName) { try { CacheConfiguration cfg = getOrCreateConfigFromTemplate(cacheName); return dynamicStartCache(cfg, cacheName, null, true, true, true); } catch (IgniteCheckedException e) { throw U.convertException(e); } }
/** * Dynamically starts cache using template configuration. * * @param cacheName Cache name. * @return Future that will be completed when cache is deployed. */
Dynamically starts cache using template configuration
createFromTemplate
{ "repo_name": "irudyak/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java", "license": "apache-2.0", "size": 174729 }
[ "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.configuration.CacheConfiguration", "org.apache.ignite.internal.IgniteInternalFuture", "org.apache.ignite.internal.util.typedef.internal.U" ]
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.configuration.CacheConfiguration; import org.apache.ignite.internal.IgniteInternalFuture; import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.*; import org.apache.ignite.configuration.*; import org.apache.ignite.internal.*; import org.apache.ignite.internal.util.typedef.internal.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,865,519
public void setVolume(int percent) { FloatControl vc = (FloatControl) line.getControl(FloatControl.Type.MASTER_GAIN); float tnr = (float)(100-percent)/100.0f*vc.getMinimum(); // Truncate the level to the possible bounds if (tnr < vc.getMinimum()) { tnr = vc.getMinimum(); } else if (tnr > vc.getMaxi...
void function(int percent) { FloatControl vc = (FloatControl) line.getControl(FloatControl.Type.MASTER_GAIN); float tnr = (float)(100-percent)/100.0f*vc.getMinimum(); if (tnr < vc.getMinimum()) { tnr = vc.getMinimum(); } else if (tnr > vc.getMaximum()) { tnr = vc.getMaximum(); } vc.setValue(tnr); }
/** Adjust the volume of this sound to the given value. * @param percent the percent of the default volume to set the sound to */
Adjust the volume of this sound to the given value
setVolume
{ "repo_name": "Dimondheart/JavaGameEngine", "path": "src/xyz/digitalcookies/objective/sound/Sound.java", "license": "apache-2.0", "size": 6238 }
[ "javax.sound.sampled.FloatControl" ]
import javax.sound.sampled.FloatControl;
import javax.sound.sampled.*;
[ "javax.sound" ]
javax.sound;
1,091,550
@JsonProperty("initiationType") public void setInitiationType(final InitiationType initiationType) { this.initiationType = initiationType; }
@JsonProperty(STR) void function(final InitiationType initiationType) { this.initiationType = initiationType; }
/** * Initiation type * <p> * String specifying the type of initiation process used for this contract, taken from the * [initiationType](http://ocds.open-contracting.org/standard/r/1__0__0/en/schema/codelists#initiation-type) * codelist. Currently only tender is supported. * (Required) ...
Initiation type String specifying the type of initiation process used for this contract, taken from the [initiationType](HREF) codelist. Currently only tender is supported. (Required)
setInitiationType
{ "repo_name": "devgateway/ocvn", "path": "persistence-mongodb/src/main/java/org/devgateway/ocds/persistence/mongo/Release.java", "license": "mit", "size": 18384 }
[ "com.fasterxml.jackson.annotation.JsonProperty" ]
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
1,309,741
public static boolean update(Map<String, Object> source, Map<String, Object> changes, boolean checkUpdatesAreUnequal) { boolean modified = false; for (Map.Entry<String, Object> changesEntry : changes.entrySet()) { if (!source.containsKey(changesEntry.getKey())) { // safe ...
static boolean function(Map<String, Object> source, Map<String, Object> changes, boolean checkUpdatesAreUnequal) { boolean modified = false; for (Map.Entry<String, Object> changesEntry : changes.entrySet()) { if (!source.containsKey(changesEntry.getKey())) { source.put(changesEntry.getKey(), changesEntry.getValue()); m...
/** * Updates the provided changes into the source. If the key exists in the changes, it overrides the one in source * unless both are Maps, in which case it recursively updated it. * * @param source the original map to be updated * @param changes the changes to u...
Updates the provided changes into the source. If the key exists in the changes, it overrides the one in source unless both are Maps, in which case it recursively updated it
update
{ "repo_name": "gfyoung/elasticsearch", "path": "server/src/main/java/org/elasticsearch/common/xcontent/XContentHelper.java", "license": "apache-2.0", "size": 18398 }
[ "java.util.Map", "java.util.Objects" ]
import java.util.Map; import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
1,270,915
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof DateAxis)) { return false; } DateAxis that = (DateAxis) obj; if (!ObjectUtilities.equal(this.timeZone, that.timeZone)) { ...
boolean function(Object obj) { if (obj == this) { return true; } if (!(obj instanceof DateAxis)) { return false; } DateAxis that = (DateAxis) obj; if (!ObjectUtilities.equal(this.timeZone, that.timeZone)) { return false; } if (!ObjectUtilities.equal(this.locale, that.locale)) { return false; } if (!ObjectUtilities.equa...
/** * Tests this axis for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */
Tests this axis for equality with an arbitrary object
equals
{ "repo_name": "sebkur/JFreeChart", "path": "src/main/java/org/jfree/chart/axis/DateAxis.java", "license": "lgpl-3.0", "size": 76547 }
[ "org.jfree.util.ObjectUtilities" ]
import org.jfree.util.ObjectUtilities;
import org.jfree.util.*;
[ "org.jfree.util" ]
org.jfree.util;
902,303
public void save(final OutputStream out, final CSVSyntax config) throws IOException { checkRegistry(); final CSVDataOutput output = new CSVDataOutput(out, config); output.write(iterator()); }
void function(final OutputStream out, final CSVSyntax config) throws IOException { checkRegistry(); final CSVDataOutput output = new CSVDataOutput(out, config); output.write(iterator()); }
/** * Writes the data to a CSV file. * * @param out the out * @param config the config * @throws IOException Signals that an I/O exception has occurred. */
Writes the data to a CSV file
save
{ "repo_name": "RaffaelBild/arx", "path": "src/main/org/deidentifier/arx/DataHandle.java", "license": "apache-2.0", "size": 36032 }
[ "java.io.IOException", "java.io.OutputStream", "org.deidentifier.arx.io.CSVDataOutput", "org.deidentifier.arx.io.CSVSyntax" ]
import java.io.IOException; import java.io.OutputStream; import org.deidentifier.arx.io.CSVDataOutput; import org.deidentifier.arx.io.CSVSyntax;
import java.io.*; import org.deidentifier.arx.io.*;
[ "java.io", "org.deidentifier.arx" ]
java.io; org.deidentifier.arx;
2,255,111
public List<String> getCheckoutPaths() { return checkoutPaths; }
List<String> function() { return checkoutPaths; }
/** * Returns a list of subdirectories to checkout. If empty, then the whole repository will be * checked out. */
Returns a list of subdirectories to checkout. If empty, then the whole repository will be checked out
getCheckoutPaths
{ "repo_name": "google/MOE", "path": "client/src/main/java/com/google/devtools/moe/client/project/RepositoryConfig.java", "license": "apache-2.0", "size": 7291 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
938,490
@ReportableProperty(order=5, value="Stream modes in descriptive form.", type=PropertyType.Descriptive) public List<String> getStreamModes() { return this.modes_d; }
@ReportableProperty(order=5, value=STR, type=PropertyType.Descriptive) List<String> function() { return this.modes_d; }
/** Get stream modes in descriptive form. * @return Stream modes */
Get stream modes in descriptive form
getStreamModes
{ "repo_name": "opf-labs/jhove2", "path": "src/main/java/org/jhove2/module/format/wave/bwf/MPEGFormatHeader.java", "license": "bsd-2-clause", "size": 11579 }
[ "java.util.List", "org.jhove2.annotation.ReportableProperty" ]
import java.util.List; import org.jhove2.annotation.ReportableProperty;
import java.util.*; import org.jhove2.annotation.*;
[ "java.util", "org.jhove2.annotation" ]
java.util; org.jhove2.annotation;
1,158,453
public Cancellable startDatafeedAsync(StartDatafeedRequest request, RequestOptions options, ActionListener<StartDatafeedResponse> listener) { return restHighLevelClient.performRequestAsyncAndParseEntity(request, MLRequestConverters::startDatafeed, ...
Cancellable function(StartDatafeedRequest request, RequestOptions options, ActionListener<StartDatafeedResponse> listener) { return restHighLevelClient.performRequestAsyncAndParseEntity(request, MLRequestConverters::startDatafeed, options, StartDatafeedResponse::fromXContent, listener, Collections.emptySet()); }
/** * Starts the given Machine Learning Datafeed asynchronously and notifies the listener on completion * <p> * For additional info * see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html"> * ML Start Datafeed documentation</a> * *...
Starts the given Machine Learning Datafeed asynchronously and notifies the listener on completion For additional info see ML Start Datafeed documentation
startDatafeedAsync
{ "repo_name": "robin13/elasticsearch", "path": "client/rest-high-level/src/main/java/org/elasticsearch/client/MachineLearningClient.java", "license": "apache-2.0", "size": 137368 }
[ "java.util.Collections", "org.elasticsearch.action.ActionListener", "org.elasticsearch.client.ml.StartDatafeedRequest", "org.elasticsearch.client.ml.StartDatafeedResponse" ]
import java.util.Collections; import org.elasticsearch.action.ActionListener; import org.elasticsearch.client.ml.StartDatafeedRequest; import org.elasticsearch.client.ml.StartDatafeedResponse;
import java.util.*; import org.elasticsearch.action.*; import org.elasticsearch.client.ml.*;
[ "java.util", "org.elasticsearch.action", "org.elasticsearch.client" ]
java.util; org.elasticsearch.action; org.elasticsearch.client;
2,687,614
PDColorSpace getColorSpace() throws IOException;
PDColorSpace getColorSpace() throws IOException;
/** * Returns the image's color space. * @throws IOException If there is an error getting the color space. */
Returns the image's color space
getColorSpace
{ "repo_name": "kalaspuffar/pdfbox", "path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImage.java", "license": "apache-2.0", "size": 8272 }
[ "java.io.IOException", "org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace" ]
import java.io.IOException; import org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace;
import java.io.*; import org.apache.pdfbox.pdmodel.graphics.color.*;
[ "java.io", "org.apache.pdfbox" ]
java.io; org.apache.pdfbox;
106,415
@Nullable public static List<WhatsNewItemModel> getWhatsNewItems(@NonNull String buildVersion, @NonNull List<WhatsNewModel> whatsNewModelsList) { final Version version; Version whatsNewVersion; try { version = new Ver...
static List<WhatsNewItemModel> function(@NonNull String buildVersion, @NonNull List<WhatsNewModel> whatsNewModelsList) { final Version version; Version whatsNewVersion; try { version = new Version(buildVersion); } catch (ParseException e) { logger.error(e, true); return null; } for (WhatsNewModel whatsNewModel : whatsN...
/** * Filter whats new messages according to the provided build version. * * @param buildVersion Provided build version. * @param whatsNewModelsList List which needs to be filtered. * @return Filtered list. */
Filter whats new messages according to the provided build version
getWhatsNewItems
{ "repo_name": "edx/edx-app-android", "path": "OpenEdXMobile/src/main/java/org/edx/mobile/util/WhatsNewUtil.java", "license": "apache-2.0", "size": 2027 }
[ "androidx.annotation.NonNull", "java.text.ParseException", "java.util.List", "org.edx.mobile.whatsnew.WhatsNewItemModel", "org.edx.mobile.whatsnew.WhatsNewModel" ]
import androidx.annotation.NonNull; import java.text.ParseException; import java.util.List; import org.edx.mobile.whatsnew.WhatsNewItemModel; import org.edx.mobile.whatsnew.WhatsNewModel;
import androidx.annotation.*; import java.text.*; import java.util.*; import org.edx.mobile.whatsnew.*;
[ "androidx.annotation", "java.text", "java.util", "org.edx.mobile" ]
androidx.annotation; java.text; java.util; org.edx.mobile;
2,487,710
public void mouseMoved(MouseEvent e) { // Nothing to do here. }
void function(MouseEvent e) { }
/** * Invoked when the mouse button has been moved on a component (with no * buttons no down). * * @param e the mouse event that occured */
Invoked when the mouse button has been moved on a component (with no buttons no down)
mouseMoved
{ "repo_name": "taciano-perez/JamVM-PH", "path": "src/classpath/javax/swing/plaf/basic/BasicTreeUI.java", "license": "gpl-2.0", "size": 115323 }
[ "java.awt.event.MouseEvent" ]
import java.awt.event.MouseEvent;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
573,365
protected void updateCircularProgressIndicator( @NonNull CircularProgressIndicator circularProgressIndicator, int progress) { circularProgressIndicator.setProgressCompat(progress, true); }
void function( @NonNull CircularProgressIndicator circularProgressIndicator, int progress) { circularProgressIndicator.setProgressCompat(progress, true); }
/** * Updates the circular progress indicator to show the specified progress. This is called every * time the "update" button is pressed. */
Updates the circular progress indicator to show the specified progress. This is called every time the "update" button is pressed
updateCircularProgressIndicator
{ "repo_name": "material-components/material-components-android", "path": "catalog/java/io/material/catalog/progressindicator/ProgressIndicatorIndeterminateDemoFragment.java", "license": "apache-2.0", "size": 5209 }
[ "androidx.annotation.NonNull", "com.google.android.material.progressindicator.CircularProgressIndicator" ]
import androidx.annotation.NonNull; import com.google.android.material.progressindicator.CircularProgressIndicator;
import androidx.annotation.*; import com.google.android.material.progressindicator.*;
[ "androidx.annotation", "com.google.android" ]
androidx.annotation; com.google.android;
1,830,185
public void setParent( LoggingObjectInterface parent ) { this.parent = parent; this.log = new LogChannel( this, parent ); this.logLevel = log.getLogLevel(); this.containerObjectId = log.getContainerObjectId(); if ( log.isDetailed() ) { log.logDetailed( BaseMessages.getString( PKG, "Trans.L...
void function( LoggingObjectInterface parent ) { this.parent = parent; this.log = new LogChannel( this, parent ); this.logLevel = log.getLogLevel(); this.containerObjectId = log.getContainerObjectId(); if ( log.isDetailed() ) { log.logDetailed( BaseMessages.getString( PKG, STR ) ); } if ( log.isDebug() ) { log.logDebug...
/** * Sets the parent logging object. * * @param parent * the new parent */
Sets the parent logging object
setParent
{ "repo_name": "ma459006574/pentaho-kettle", "path": "engine/src/org/pentaho/di/trans/Trans.java", "license": "apache-2.0", "size": 191984 }
[ "org.pentaho.di.core.logging.LogChannel", "org.pentaho.di.core.logging.LoggingObjectInterface", "org.pentaho.di.i18n.BaseMessages" ]
import org.pentaho.di.core.logging.LogChannel; import org.pentaho.di.core.logging.LoggingObjectInterface; import org.pentaho.di.i18n.BaseMessages;
import org.pentaho.di.core.logging.*; import org.pentaho.di.i18n.*;
[ "org.pentaho.di" ]
org.pentaho.di;
2,771,982
public void handleParticles(S2APacketParticles packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); if (packetIn.getParticleCount() == 0) { double d0 = (double)(packetIn.getParticleSpeed() * packetIn.getXOffset()); double d2 = ...
void function(S2APacketParticles packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); if (packetIn.getParticleCount() == 0) { double d0 = (double)(packetIn.getParticleSpeed() * packetIn.getXOffset()); double d2 = (double)(packetIn.getParticleSpeed() * packetIn.getYOffset()); double d...
/** * Spawns a specified number of particles at the specified location with a randomized displacement according to * specified bounds */
Spawns a specified number of particles at the specified location with a randomized displacement according to specified bounds
handleParticles
{ "repo_name": "tomtomtom09/CampCraft", "path": "build/tmp/recompileMc/sources/net/minecraft/client/network/NetHandlerPlayClient.java", "license": "gpl-3.0", "size": 95487 }
[ "net.minecraft.network.PacketThreadUtil", "net.minecraft.network.play.server.S2APacketParticles" ]
import net.minecraft.network.PacketThreadUtil; import net.minecraft.network.play.server.S2APacketParticles;
import net.minecraft.network.*; import net.minecraft.network.play.server.*;
[ "net.minecraft.network" ]
net.minecraft.network;
2,106,823
public ServiceResponse<Basic> getNull() throws ErrorException, IOException { Call<ResponseBody> call = service.getNull(); return getNullDelegate(call.execute()); }
ServiceResponse<Basic> function() throws ErrorException, IOException { Call<ResponseBody> call = service.getNull(); return getNullDelegate(call.execute()); }
/** * Get a basic complex type whose properties are null. * * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the Basic object wrapped in {@link ServiceResponse} if successful. */
Get a basic complex type whose properties are null
getNull
{ "repo_name": "John-Hart/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodycomplex/implementation/BasicsImpl.java", "license": "mit", "size": 16062 }
[ "com.microsoft.rest.ServiceResponse", "java.io.IOException" ]
import com.microsoft.rest.ServiceResponse; import java.io.IOException;
import com.microsoft.rest.*; import java.io.*;
[ "com.microsoft.rest", "java.io" ]
com.microsoft.rest; java.io;
942,016
public void setNorthPane(JComponent c) { replacePane(northPane, c); northPane = c; // the following is needed to make internal frames draggable when using // the JGoodies PlasticLookAndFeel, because it overrides the // createNorthPane() method and doesn't assign anything to the titlePane // ...
void function(JComponent c) { replacePane(northPane, c); northPane = c; if (c instanceof BasicInternalFrameTitlePane) titlePane = (BasicInternalFrameTitlePane) c; }
/** * This method sets the north pane to be the given JComponent. * * @param c The new north pane. */
This method sets the north pane to be the given JComponent
setNorthPane
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/javax/swing/plaf/basic/BasicInternalFrameUI.java", "license": "gpl-2.0", "size": 49056 }
[ "javax.swing.JComponent" ]
import javax.swing.JComponent;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
612,533
@Test(expected = IllegalStateException.class) public void testErrorPassesThruMap2() { Observable.error(new IllegalStateException()).map(new Func1<Object, Object>() {
@Test(expected = IllegalStateException.class) void function() { Observable.error(new IllegalStateException()).map(new Func1<Object, Object>() {
/** * We expect IllegalStateException to pass thru map. */
We expect IllegalStateException to pass thru map
testErrorPassesThruMap2
{ "repo_name": "eaglesjava/RxJava", "path": "src/test/java/rx/internal/operators/OperatorMapTest.java", "license": "apache-2.0", "size": 11039 }
[ "org.junit.Test" ]
import org.junit.Test;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,786,790
private synchronized void registerBlockPoolWithSecretManager( DatanodeRegistration bpRegistration, String blockPoolId) throws IOException { ExportedBlockKeys keys = bpRegistration.getExportedKeys(); if (!hasAnyBlockPoolRegistered) { hasAnyBlockPoolRegistered = true; isBlockTokenEnabled...
synchronized void function( DatanodeRegistration bpRegistration, String blockPoolId) throws IOException { ExportedBlockKeys keys = bpRegistration.getExportedKeys(); if (!hasAnyBlockPoolRegistered) { hasAnyBlockPoolRegistered = true; isBlockTokenEnabled = keys.isBlockTokenEnabled(); } else { if (isBlockTokenEnabled != k...
/** * After the block pool has contacted the NN, registers that block pool * with the secret manager, updating it with the secrets provided by the NN. * * @param bpRegistration * @param blockPoolId * @throws IOException */
After the block pool has contacted the NN, registers that block pool with the secret manager, updating it with the secrets provided by the NN
registerBlockPoolWithSecretManager
{ "repo_name": "srijeyanthan/hops", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java", "license": "apache-2.0", "size": 84524 }
[ "java.io.IOException", "org.apache.hadoop.hdfs.security.token.block.BlockTokenSecretManager", "org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys", "org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration" ]
import java.io.IOException; import org.apache.hadoop.hdfs.security.token.block.BlockTokenSecretManager; import org.apache.hadoop.hdfs.security.token.block.ExportedBlockKeys; import org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration;
import java.io.*; import org.apache.hadoop.hdfs.security.token.block.*; import org.apache.hadoop.hdfs.server.protocol.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,066,779
@Override public void setBinaryData(Object answer) { DecimalData decimalData = ExternalAppsUtils.asDecimalData(answer); mAnswer.setText(decimalData == null ? null : decimalData.getValue().toString()); Collect.getInstance().getFormController().setIndexWaitingForData(null); }
void function(Object answer) { DecimalData decimalData = ExternalAppsUtils.asDecimalData(answer); mAnswer.setText(decimalData == null ? null : decimalData.getValue().toString()); Collect.getInstance().getFormController().setIndexWaitingForData(null); }
/** * Allows answer to be set externally in {@Link FormEntryActivity}. */
Allows answer to be set externally in FormEntryActivity
setBinaryData
{ "repo_name": "max2me/collect", "path": "collect_app/src/main/java/org/odk/collect/android/widgets/ExDecimalWidget.java", "license": "apache-2.0", "size": 4289 }
[ "org.javarosa.core.model.data.DecimalData", "org.odk.collect.android.application.Collect", "org.odk.collect.android.external.ExternalAppsUtils" ]
import org.javarosa.core.model.data.DecimalData; import org.odk.collect.android.application.Collect; import org.odk.collect.android.external.ExternalAppsUtils;
import org.javarosa.core.model.data.*; import org.odk.collect.android.application.*; import org.odk.collect.android.external.*;
[ "org.javarosa.core", "org.odk.collect" ]
org.javarosa.core; org.odk.collect;
2,019,836
Rule FieldLength() { return Sequence(String("L:"), ZeroOrMore(WSP()).suppressNode(), NoteLengthStrict(), HeaderEol()).label(FieldLength); }
Rule FieldLength() { return Sequence(String("L:"), ZeroOrMore(WSP()).suppressNode(), NoteLengthStrict(), HeaderEol()).label(FieldLength); }
/** * Default note length * * field-length ::= %x4C.3A *WSP note-length-strict header-eol<p> * <tt>L:</tt> */
Default note length field-length ::= %x4C.3A *WSP note-length-strict header-eol
FieldLength
{ "repo_name": "Sciss/abc4j", "path": "abc/src/main/java/abc/parser/AbcGrammar.java", "license": "lgpl-3.0", "size": 72845 }
[ "org.parboiled.Rule" ]
import org.parboiled.Rule;
import org.parboiled.*;
[ "org.parboiled" ]
org.parboiled;
735,895
public Map<String, String> getMapHeaderRequestParams() { return mapHeaderRequestParams; }
Map<String, String> function() { return mapHeaderRequestParams; }
/** * HeaderParams Bean Methods - get, set & add * @return */
HeaderParams Bean Methods - get, set & add
getMapHeaderRequestParams
{ "repo_name": "InformaticaCloud/ReST-Connector-CustomAuth-Solutioning", "path": "ReST-CustomAuth/src/com/informatica/cloudlabs/adapter/rest/client/RequestInfo.java", "license": "epl-1.0", "size": 8068 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,508,950
protected void addAttribute(QName name, String value) { atts.addAttribute(name.getNamespaceURI(), name.getLocalName(), name.getQName(), CDATA, value); }
void function(QName name, String value) { atts.addAttribute(name.getNamespaceURI(), name.getLocalName(), name.getQName(), CDATA, value); }
/** * Adds a new attribute to the protected member variable "atts". * @param name name of the attribute * @param value value of the attribute */
Adds a new attribute to the protected member variable "atts"
addAttribute
{ "repo_name": "pellcorp/fop", "path": "src/java/org/apache/fop/render/xml/AbstractXMLRenderer.java", "license": "apache-2.0", "size": 9270 }
[ "org.apache.xmlgraphics.util.QName" ]
import org.apache.xmlgraphics.util.QName;
import org.apache.xmlgraphics.util.*;
[ "org.apache.xmlgraphics" ]
org.apache.xmlgraphics;
1,361,298
public void setItems(List<Item> items) { this.checkout.setItems(items); }
void function(List<Item> items) { this.checkout.setItems(items); }
/** * Sets the items/products list in this checkout request * * @see Item * * @param items */
Sets the items/products list in this checkout request
setItems
{ "repo_name": "pagseguro/java", "path": "source/pagseguro-api/src/br/com/uol/pagseguro/domain/PaymentRequest.java", "license": "apache-2.0", "size": 21162 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,639,588
List<Remote> remoteList(RemoteListRequest request) throws GitException;
List<Remote> remoteList(RemoteListRequest request) throws GitException;
/** * Show remotes. * * @param request * remote list request * @throws GitException * if any error occurs * @throws IllegalArgumentException * if remote <code>name</code> not found * @see RemoteListRequest */
Show remotes
remoteList
{ "repo_name": "stour/che", "path": "wsagent/che-core-api-git/src/main/java/org/eclipse/che/api/git/GitConnection.java", "license": "epl-1.0", "size": 15881 }
[ "java.util.List", "org.eclipse.che.api.git.shared.Remote", "org.eclipse.che.api.git.shared.RemoteListRequest" ]
import java.util.List; import org.eclipse.che.api.git.shared.Remote; import org.eclipse.che.api.git.shared.RemoteListRequest;
import java.util.*; import org.eclipse.che.api.git.shared.*;
[ "java.util", "org.eclipse.che" ]
java.util; org.eclipse.che;
601,038
ProcessInstanceBuilder transientVariables(Map<String, Object> transientVariables);
ProcessInstanceBuilder transientVariables(Map<String, Object> transientVariables);
/** * Sets the transient variables */
Sets the transient variables
transientVariables
{ "repo_name": "roberthafner/flowable-engine", "path": "modules/flowable5-engine/src/main/java/org/activiti5/engine/runtime/ProcessInstanceBuilder.java", "license": "apache-2.0", "size": 2969 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
280,359
public ServiceFuture<Void> deleteAsync(String resourceGroupName, String networkSecurityGroupName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, networkSecurityGroupName), serviceCallback); }
ServiceFuture<Void> function(String resourceGroupName, String networkSecurityGroupName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, networkSecurityGroupName), serviceCallback); }
/** * Deletes the specified network security group. * * @param resourceGroupName The name of the resource group. * @param networkSecurityGroupName The name of the network security group. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws...
Deletes the specified network security group
deleteAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/NetworkSecurityGroupsInner.java", "license": "mit", "size": 81333 }
[ "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;
399,692
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=UTF-8"); Sensor_functionDAO Sensor_functionDAOImpl = Sensor_functionDAOFactory.createSensor_functionDAOImpl...
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding("UTF-8"); response.setContentType(STR); Sensor_functionDAO Sensor_functionDAOImpl = Sensor_functionDAOFactory.createSensor_functionDAOImplm(); PrintWriter out = response.getWriter(...
/** * The doPost method of the servlet. <br> * * This method is called when a form has its tag value method equals to post. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @...
The doPost method of the servlet. This method is called when a form has its tag value method equals to post
doPost
{ "repo_name": "htzy/te", "path": "envirMonitor/src/com/monitor/servlet/ChangeSensorServlet.java", "license": "apache-2.0", "size": 4576 }
[ "java.io.IOException", "java.io.PrintWriter", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
1,126,501
TestSuite suite = new TestSuite(name); suite.addTestSuite(DBInJarTest.class); // Don't run with security manager, we need access to user.dir to archive // the database. return new CleanDatabaseTestSetup(SecurityManagerSetup.noSecurityManager(suite)) { pr...
TestSuite suite = new TestSuite(name); suite.addTestSuite(DBInJarTest.class); return new CleanDatabaseTestSetup(SecurityManagerSetup.noSecurityManager(suite)) { void function(Statement stmt) throws SQLException { stmt.execute(STR + STR + STR + STR + STR); } }; }
/** * Creates the procedure used in the test cases. * @exception SQLException if a database error occurs */
Creates the procedure used in the test cases
decorateSQL
{ "repo_name": "lpxz/grail-derby104", "path": "java/testing/org/apache/derbyTesting/functionTests/tests/lang/DBInJarTest.java", "license": "apache-2.0", "size": 5097 }
[ "java.sql.SQLException", "java.sql.Statement", "junit.framework.TestSuite", "org.apache.derbyTesting.junit.CleanDatabaseTestSetup", "org.apache.derbyTesting.junit.SecurityManagerSetup" ]
import java.sql.SQLException; import java.sql.Statement; import junit.framework.TestSuite; import org.apache.derbyTesting.junit.CleanDatabaseTestSetup; import org.apache.derbyTesting.junit.SecurityManagerSetup;
import java.sql.*; import junit.framework.*; import org.apache.*;
[ "java.sql", "junit.framework", "org.apache" ]
java.sql; junit.framework; org.apache;
142,275
public String toString() { DecimalFormat formatter = new DecimalFormat(" 0.000E0;-"); //$NON-NLS-1$ return toString(formatter).replaceAll("E(\\d+)", "E+$1"); //$NON-NLS-1$ //$NON-NLS-2$ }
String function() { DecimalFormat formatter = new DecimalFormat(STR); return toString(formatter).replaceAll(STR, "E+$1"); }
/** * Return a string representation of this vector. * <p> * This method creates a new {@link DecimalFormat} on every invocation with the format string "<tt> 0.000E0;-</tt>". * * @return the string representation */
Return a string representation of this vector. This method creates a new <code>DecimalFormat</code> on every invocation with the format string " 0.000E0;-"
toString
{ "repo_name": "RogueLogic/Big-Fusion", "path": "src/main/java/org/joml/Vector2d.java", "license": "mit", "size": 26964 }
[ "java.text.DecimalFormat" ]
import java.text.DecimalFormat;
import java.text.*;
[ "java.text" ]
java.text;
2,565,581
Iterable<Action> getRegisteredActions();
Iterable<Action> getRegisteredActions();
/** * Returns the actions that were registered so far with this analysis environment, that is, all * the actions that were created by the current target being analyzed. */
Returns the actions that were registered so far with this analysis environment, that is, all the actions that were created by the current target being analyzed
getRegisteredActions
{ "repo_name": "vt09/bazel", "path": "src/main/java/com/google/devtools/build/lib/analysis/AnalysisEnvironment.java", "license": "apache-2.0", "size": 5331 }
[ "com.google.devtools.build.lib.actions.Action" ]
import com.google.devtools.build.lib.actions.Action;
import com.google.devtools.build.lib.actions.*;
[ "com.google.devtools" ]
com.google.devtools;
1,208,724
private void attackAlgorithm(AiZone gameZone, int[][] matrice) throws StopRequestException { checkInterruption(); //Si le chemin n'est pas calcule on calcule le nouveau //chemin if (nextMoveAttack == null) { //On choisit l'hero le plus proche pour l'attaque. if (chosenEnemy == null) { Ai...
void function(AiZone gameZone, int[][] matrice) throws StopRequestException { checkInterruption(); if (nextMoveAttack == null) { if (chosenEnemy == null) { AiHero isEnemyExists = accessibleEnemyExists(gameZone); if (isEnemyExists == null) { chosenEnemy = this.closestHero(gameZone); } else { chosenEnemy = isEnemyExists;...
/** * Methode implementant l'algo d'attaque. * * @param gameZone * La zone du jeu. * @param matrice * La matrice representant la zone du jeu. * @throws StopRequestException * Description manquante ! */
Methode implementant l'algo d'attaque
attackAlgorithm
{ "repo_name": "vlabatut/totalboumboum", "path": "resources/ai/org/totalboumboum/ai/v200910/ais/mancuhanpinarer/v5/MancuhanPinarer.java", "license": "gpl-2.0", "size": 41068 }
[ "java.util.ArrayList", "java.util.List", "org.totalboumboum.ai.v200910.adapter.communication.StopRequestException", "org.totalboumboum.ai.v200910.adapter.data.AiHero", "org.totalboumboum.ai.v200910.adapter.data.AiTile", "org.totalboumboum.ai.v200910.adapter.data.AiZone" ]
import java.util.ArrayList; import java.util.List; import org.totalboumboum.ai.v200910.adapter.communication.StopRequestException; import org.totalboumboum.ai.v200910.adapter.data.AiHero; import org.totalboumboum.ai.v200910.adapter.data.AiTile; import org.totalboumboum.ai.v200910.adapter.data.AiZone;
import java.util.*; import org.totalboumboum.ai.v200910.adapter.communication.*; import org.totalboumboum.ai.v200910.adapter.data.*;
[ "java.util", "org.totalboumboum.ai" ]
java.util; org.totalboumboum.ai;
828,868
public void panRangeAxisByAxisRelation(double panRangePercent, PlotRenderingInfo info, Point2D source);
void function(double panRangePercent, PlotRenderingInfo info, Point2D source);
/** * Pans the range axis by <var>panRange</var> pixels. * * @param panRangePercent the range given as percentage of the axis range * @param info the plot info * @param source the source point where the pan action started. */
Pans the range axis by panRange pixels
panRangeAxisByAxisRelation
{ "repo_name": "oeway/IcyPlugins4EVA-NDE", "path": "plugins/oeway/viewers/Pannable.java", "license": "gpl-3.0", "size": 2001 }
[ "java.awt.geom.Point2D", "org.jfree.chart.plot.PlotRenderingInfo" ]
import java.awt.geom.Point2D; import org.jfree.chart.plot.PlotRenderingInfo;
import java.awt.geom.*; import org.jfree.chart.plot.*;
[ "java.awt", "org.jfree.chart" ]
java.awt; org.jfree.chart;
866,230
public org.pmiops.workbench.notebooks.ApiClient newNotebooksClient() { WorkbenchConfig workbenchConfig = workbenchConfigProvider.get(); final org.pmiops.workbench.notebooks.ApiClient apiClient = new org.pmiops.workbench.notebooks.ApiClient() .setBasePath(workbenchConfig.firecloud.leoBaseUr...
org.pmiops.workbench.notebooks.ApiClient function() { WorkbenchConfig workbenchConfig = workbenchConfigProvider.get(); final org.pmiops.workbench.notebooks.ApiClient apiClient = new org.pmiops.workbench.notebooks.ApiClient() .setBasePath(workbenchConfig.firecloud.leoBaseUrl) .setDebugging(workbenchConfig.firecloud.debu...
/** * Creates a Leonardo notebooks API client, unauthenticated. Most clients should use an * authenticated, request scoped bean instead of calling this directly. */
Creates a Leonardo notebooks API client, unauthenticated. Most clients should use an authenticated, request scoped bean instead of calling this directly
newNotebooksClient
{ "repo_name": "all-of-us/workbench", "path": "api/src/main/java/org/pmiops/workbench/notebooks/LeonardoApiClientFactory.java", "license": "bsd-3-clause", "size": 3554 }
[ "java.util.concurrent.TimeUnit", "org.pmiops.workbench.config.WorkbenchConfig", "org.pmiops.workbench.firecloud.FirecloudApiClientFactory", "org.pmiops.workbench.leonardo.ApiClient" ]
import java.util.concurrent.TimeUnit; import org.pmiops.workbench.config.WorkbenchConfig; import org.pmiops.workbench.firecloud.FirecloudApiClientFactory; import org.pmiops.workbench.leonardo.ApiClient;
import java.util.concurrent.*; import org.pmiops.workbench.config.*; import org.pmiops.workbench.firecloud.*; import org.pmiops.workbench.leonardo.*;
[ "java.util", "org.pmiops.workbench" ]
java.util; org.pmiops.workbench;
734,476
@Override // InterDatanodeProtocol public String updateReplicaUnderRecovery(final ExtendedBlock oldBlock, final long recoveryId, final long newBlockId, final long newLength) throws IOException { final String storageID = data.updateReplicaUnderRecovery(oldBlock, recoveryId, newBlockId, newLen...
@Override String function(final ExtendedBlock oldBlock, final long recoveryId, final long newBlockId, final long newLength) throws IOException { final String storageID = data.updateReplicaUnderRecovery(oldBlock, recoveryId, newBlockId, newLength); ExtendedBlock newBlock = new ExtendedBlock(oldBlock); newBlock.setGenera...
/** * Update replica with the new generation stamp and length. */
Update replica with the new generation stamp and length
updateReplicaUnderRecovery
{ "repo_name": "vesense/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java", "license": "apache-2.0", "size": 115899 }
[ "java.io.IOException", "org.apache.hadoop.hdfs.protocol.DatanodeID", "org.apache.hadoop.hdfs.protocol.ExtendedBlock", "org.apache.hadoop.hdfs.server.protocol.InterDatanodeProtocol", "org.apache.hadoop.hdfs.server.protocol.ReplicaRecoveryInfo" ]
import java.io.IOException; import org.apache.hadoop.hdfs.protocol.DatanodeID; import org.apache.hadoop.hdfs.protocol.ExtendedBlock; import org.apache.hadoop.hdfs.server.protocol.InterDatanodeProtocol; import org.apache.hadoop.hdfs.server.protocol.ReplicaRecoveryInfo;
import java.io.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.hdfs.server.protocol.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,247,540
return Optional.of(_string).isPresent() && validTypes.contains(_type) && _string.matches((String)expressions.get(_type)); }
return Optional.of(_string).isPresent() && validTypes.contains(_type) && _string.matches((String)expressions.get(_type)); }
/** * Validates a given string based on predefined rules. * Heavy lifting and rule enforcement done via regular expressions. * * See {@link java.util.Optional#of#isPresent()) Optional.isPresent()} for java 1.8 feature to validate input object param not null. * See {@link java.lang.String#matches(String) Stri...
Validates a given string based on predefined rules. Heavy lifting and rule enforcement done via regular expressions. See <code>java.util.Optional#of#isPresent()) Optional.isPresent()</code> for java 1.8 feature to validate input object param not null. See <code>java.lang.String#matches(String) String.matches(regex)</co...
isvalid
{ "repo_name": "casmong/logic-digest", "path": "com/research/digest/validate/Validator.java", "license": "gpl-3.0", "size": 8197 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
2,771,120
void setDebuggerEventSettings(DebuggerEventSettings eventSettings) throws DebugExceptionWrapper;
void setDebuggerEventSettings(DebuggerEventSettings eventSettings) throws DebugExceptionWrapper;
/** * Sets the event handling settings which are used to determine the debugger behavior on certain * debug events. * * @param eventSettings The debugger event settings instance. * * @throws DebugExceptionWrapper thrown if the message could not be sent to the debug client. */
Sets the event handling settings which are used to determine the debugger behavior on certain debug events
setDebuggerEventSettings
{ "repo_name": "guiquanz/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/debug/debugger/interfaces/IDebugger.java", "license": "apache-2.0", "size": 13711 }
[ "com.google.security.zynamics.binnavi.debug.debugger.DebugExceptionWrapper", "com.google.security.zynamics.binnavi.debug.models.targetinformation.DebuggerEventSettings" ]
import com.google.security.zynamics.binnavi.debug.debugger.DebugExceptionWrapper; import com.google.security.zynamics.binnavi.debug.models.targetinformation.DebuggerEventSettings;
import com.google.security.zynamics.binnavi.debug.debugger.*; import com.google.security.zynamics.binnavi.debug.models.targetinformation.*;
[ "com.google.security" ]
com.google.security;
1,746,007
private JSplitPane getJSplitPane() { if (jSplitPane == null) { jSplitPane = new JSplitPane(); jSplitPane.setLeftComponent(getTreePanel()); jSplitPane.setRightComponent(getContentPanel()); } return jSplitPane; }
JSplitPane function() { if (jSplitPane == null) { jSplitPane = new JSplitPane(); jSplitPane.setLeftComponent(getTreePanel()); jSplitPane.setRightComponent(getContentPanel()); } return jSplitPane; }
/** * This method initializes jSplitPane * * @return javax.swing.JSplitPane */
This method initializes jSplitPane
getJSplitPane
{ "repo_name": "NCIP/cagrid-core", "path": "caGrid/projects/gaards-ui/src/org/cagrid/gaards/ui/gridgrouper/browser/GroupManagementBrowser.java", "license": "bsd-3-clause", "size": 14698 }
[ "javax.swing.JSplitPane" ]
import javax.swing.JSplitPane;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
699,055
public URL getWSDLDocumentLocation() { try { return new URL(wsdlLocation); } catch (MalformedURLException e) { return null; } }
URL function() { try { return new URL(wsdlLocation); } catch (MalformedURLException e) { return null; } }
/** * Returns the location of the WSDL document used to prefill the data * (if one was used at all). * * @return URL URL pointing to the WSDL doc */
Returns the location of the WSDL document used to prefill the data (if one was used at all)
getWSDLDocumentLocation
{ "repo_name": "hugosato/apache-axis", "path": "src/org/apache/axis/client/Service.java", "license": "apache-2.0", "size": 34182 }
[ "java.net.MalformedURLException" ]
import java.net.MalformedURLException;
import java.net.*;
[ "java.net" ]
java.net;
467,741
public void updateApplicationStatus(int applicationId, String status) throws APIManagementException { Connection conn = null; PreparedStatement ps = null; try { conn = APIMgtDBUtil.getConnection(); conn.setAutoCommit(false); String updateSqlQuery = SQLCo...
void function(int applicationId, String status) throws APIManagementException { Connection conn = null; PreparedStatement ps = null; try { conn = APIMgtDBUtil.getConnection(); conn.setAutoCommit(false); String updateSqlQuery = SQLConstants.UPDATE_APPLICATION_STATUS_SQL; ps = conn.prepareStatement(updateSqlQuery); ps.se...
/** * Update the status of the Application creation process * * @param applicationId * @param status * @throws APIManagementException */
Update the status of the Application creation process
updateApplicationStatus
{ "repo_name": "charithag/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java", "license": "apache-2.0", "size": 345861 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.SQLException", "org.wso2.carbon.apimgt.api.APIManagementException", "org.wso2.carbon.apimgt.impl.dao.constants.SQLConstants", "org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.impl.dao.constants.SQLConstants; import org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil;
import java.sql.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.impl.dao.constants.*; import org.wso2.carbon.apimgt.impl.utils.*;
[ "java.sql", "org.wso2.carbon" ]
java.sql; org.wso2.carbon;
2,010,626
public void showHint(Point hint) { removeHighlighting(currentNeighborsHint); Border border = BorderFactory.createMatteBorder(3, 3, 3, 3, Color.magenta); highlightNeighbors(board[hint.y][hint.x], border, currentNeighborsHint); }
void function(Point hint) { removeHighlighting(currentNeighborsHint); Border border = BorderFactory.createMatteBorder(3, 3, 3, 3, Color.magenta); highlightNeighbors(board[hint.y][hint.x], border, currentNeighborsHint); }
/** * Zeigt bei einem Tastdruck auf H einen Hinweis an, welche Steine wegklickbar sind ( indem es dieseh highlighted ) * @param hint Point */
Zeigt bei einem Tastdruck auf H einen Hinweis an, welche Steine wegklickbar sind ( indem es dieseh highlighted )
showHint
{ "repo_name": "s3phir0th/SameGame", "path": "src/View/GameGUI.java", "license": "apache-2.0", "size": 12990 }
[ "java.awt.Color", "java.awt.Point", "javax.swing.BorderFactory", "javax.swing.border.Border" ]
import java.awt.Color; import java.awt.Point; import javax.swing.BorderFactory; import javax.swing.border.Border;
import java.awt.*; import javax.swing.*; import javax.swing.border.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,604,755
private void handleOnAfterMoveOrCopy(VfsItem sourceItem, VfsItem targetItem, MutableStatusHolder statusHolder) { if ((sourceItem != null) && shouldTakeAction(sourceItem)) { removeNuPkgFromRepositoryIfNeeded(sourceItem); } if (shouldTakeAction(targetItem)) { Propertie...
void function(VfsItem sourceItem, VfsItem targetItem, MutableStatusHolder statusHolder) { if ((sourceItem != null) && shouldTakeAction(sourceItem)) { removeNuPkgFromRepositoryIfNeeded(sourceItem); } if (shouldTakeAction(targetItem)) { Properties nuPkgProperties = targetItem.getProperties(); String nuPkgId = Id.extract(...
/** * If it's a nupkg recalculate the IDs latest version state for the repository */
If it's a nupkg recalculate the IDs latest version state for the repository
handleOnAfterMoveOrCopy
{ "repo_name": "alancnet/artifactory", "path": "backend/core/src/main/java/org/artifactory/repo/interceptor/NuGetCalculationInterceptor.java", "license": "apache-2.0", "size": 5501 }
[ "org.apache.commons.lang.StringUtils", "org.artifactory.addon.NuGetAddon", "org.artifactory.addon.nuget.NuGetProperties", "org.artifactory.common.MutableStatusHolder", "org.artifactory.fs.FileInfo", "org.artifactory.md.Properties", "org.artifactory.sapi.fs.VfsItem" ]
import org.apache.commons.lang.StringUtils; import org.artifactory.addon.NuGetAddon; import org.artifactory.addon.nuget.NuGetProperties; import org.artifactory.common.MutableStatusHolder; import org.artifactory.fs.FileInfo; import org.artifactory.md.Properties; import org.artifactory.sapi.fs.VfsItem;
import org.apache.commons.lang.*; import org.artifactory.addon.*; import org.artifactory.addon.nuget.*; import org.artifactory.common.*; import org.artifactory.fs.*; import org.artifactory.md.*; import org.artifactory.sapi.fs.*;
[ "org.apache.commons", "org.artifactory.addon", "org.artifactory.common", "org.artifactory.fs", "org.artifactory.md", "org.artifactory.sapi" ]
org.apache.commons; org.artifactory.addon; org.artifactory.common; org.artifactory.fs; org.artifactory.md; org.artifactory.sapi;
184,132
EReference getMarkovSchedulingState_Incomings();
EReference getMarkovSchedulingState_Incomings();
/** * Returns the meta object for the reference list '{@link turnus.model.analysis.scheduling.MarkovSchedulingState#getIncomings <em>Incomings</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference list '<em>Incomings</em>'. * @see turnus.model.analysis.schedulin...
Returns the meta object for the reference list '<code>turnus.model.analysis.scheduling.MarkovSchedulingState#getIncomings Incomings</code>'.
getMarkovSchedulingState_Incomings
{ "repo_name": "turnus/turnus", "path": "turnus.model/src/turnus/model/analysis/scheduling/SchedulingPackage.java", "license": "gpl-3.0", "size": 80069 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
518,454
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<MetadataEntityInner>> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<MetadataEntityInner>> function(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException(STR)); } if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } final Stri...
/** * Get the next page of items. * * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by serve...
Get the next page of items
listNextSinglePageAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/advisor/azure-resourcemanager-advisor/src/main/java/com/azure/resourcemanager/advisor/implementation/RecommendationMetadatasClientImpl.java", "license": "mit", "size": 17190 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedResponse", "com.azure.core.http.rest.PagedResponseBase", "com.azure.core.util.Context", "com.azure.resourcemanager.advisor.fluent.models.MetadataEntityInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.Context; import com.azure.resourcemanager.advisor.fluent.models.MetadataEntityInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.advisor.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,485,374
@Test public void constructWithQueryMap() { String scheme = "alluxio"; String authority = "host:1234"; String path = "/a"; Map<String, String> queryMap = new HashMap<>(); queryMap.put("key", "123"); queryMap.put(" k2 ", " v2 "); queryMap.put(" key: !*'();:@&=+$,/?#[]\"% ", " !*'();:@&=+$...
void function() { String scheme = STR; String authority = STR; String path = "/a"; Map<String, String> queryMap = new HashMap<>(); queryMap.put("keySTR123"); queryMap.put(STR, STR); queryMap.put(STR% STR !*'();:@&=+$,/?#[]\STR); queryMap.put(" key: %26 %3D %20 %25 %2B STR %26 %3D %20 %25 %2B "); AlluxioURI uri1 = new A...
/** * Tests the {@link AlluxioURI#AlluxioURI(String, Authority, String, Map)} constructor to build an * URI from its different components with a query map. */
Tests the <code>AlluxioURI#AlluxioURI(String, Authority, String, Map)</code> constructor to build an URI from its different components with a query map
constructWithQueryMap
{ "repo_name": "apc999/alluxio", "path": "core/common/src/test/java/alluxio/AlluxioURITest.java", "license": "apache-2.0", "size": 38243 }
[ "java.util.HashMap", "java.util.Map", "org.junit.Assert" ]
import java.util.HashMap; import java.util.Map; import org.junit.Assert;
import java.util.*; import org.junit.*;
[ "java.util", "org.junit" ]
java.util; org.junit;
1,900,401
ProcessInfo getProcessInfo() throws IOException;
ProcessInfo getProcessInfo() throws IOException;
/** * Get system level view of the Daemon process. * * @return returns system level view of the Daemon process. * * @throws IOException in case of errors */
Get system level view of the Daemon process
getProcessInfo
{ "repo_name": "pombredanne/brisk-hadoop-common", "path": "src/test/system/java/org/apache/hadoop/test/system/DaemonProtocol.java", "license": "apache-2.0", "size": 6833 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
828,629
public void rollback() { // jpa/1524 if (! isActiveTransaction()) throw new IllegalStateException("rollback() cannot be called when the entity transaction is not active."); setRollbackOnly(); PersistenceException exn = null; try { AmberConnection.this.rollback();...
void function() { if (! isActiveTransaction()) throw new IllegalStateException(STR); setRollbackOnly(); PersistenceException exn = null; try { AmberConnection.this.rollback(); } catch (Exception e) { exn = new PersistenceException(e); } finally { try { AmberConnection.this.afterCommit(false); } catch (PersistenceExcept...
/** * Rolls the current transaction back. */
Rolls the current transaction back
rollback
{ "repo_name": "dlitz/resin", "path": "modules/resin/src/com/caucho/amber/manager/AmberConnection.java", "license": "gpl-2.0", "size": 89822 }
[ "javax.persistence.PersistenceException" ]
import javax.persistence.PersistenceException;
import javax.persistence.*;
[ "javax.persistence" ]
javax.persistence;
2,310,831
static void setCustomSegments(Map<String,String> segments) { customSegments = new HashMap<>(); customSegments.putAll(segments); }
static void setCustomSegments(Map<String,String> segments) { customSegments = new HashMap<>(); customSegments.putAll(segments); }
/** * Adds developer provided custom segments for crash, * like versions of dependency libraries. */
Adds developer provided custom segments for crash, like versions of dependency libraries
setCustomSegments
{ "repo_name": "brainbeanapps/seeds-sdk-android", "path": "sdk/src/main/java/com/playseeds/android/sdk/CrashDetails.java", "license": "mit", "size": 13921 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
284,775
int n = select.size(); if (n > 64){ throw new RuntimeException("way too big for me"); } long count = 0; for (long l = 0; l < (1<<n); l++){ Set<Integer> indices = new SetLongBased(l); count ++; if (select.verify(indices)){ return indices; } } System.out.println("tested "+count+" confi...
int n = select.size(); if (n > 64){ throw new RuntimeException(STR); } long count = 0; for (long l = 0; l < (1<<n); l++){ Set<Integer> indices = new SetLongBased(l); count ++; if (select.verify(indices)){ return indices; } } System.out.println(STR+count+STR); return null; }
/** * Solve exponentially, uses 2^n steps and only works for n<64. * @param select Which problem to solve * @return Ths set which solves this problem or null if the problem has no solution. */
Solve exponentially, uses 2^n steps and only works for n<64
solve
{ "repo_name": "jrw77/NP-Playground", "path": "src/de/ostfalia/weimar/reduction/IndexSetSolveExp.java", "license": "apache-2.0", "size": 807 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,904,574
if (isEnabled()) { TreeComposite selectedNode = getSelectedNode(); // Get the required arguments for creating an // InputDialog. This includes a shell, a title and // message, and a validator for the dialog's String // value. Shell shell = Display.getCurrent().getActiveShell(); String di...
if (isEnabled()) { TreeComposite selectedNode = getSelectedNode(); Shell shell = Display.getCurrent().getActiveShell(); String dialogTitle = STR; String initialValue = selectedNode.getName(); String dialogMessage = STR + STRSTR\".";
/** * If the <code>Action</code> can be run, this prompts the user for a new * name for the selected node and updates the node's name if the provided * string is valid. */
If the <code>Action</code> can be run, this prompts the user for a new name for the selected node and updates the node's name if the provided string is valid
run
{ "repo_name": "eclipse/ice", "path": "org.eclipse.ice.client.widgets/src/org/eclipse/ice/client/widgets/RenameNodeTreeAction.java", "license": "epl-1.0", "size": 4440 }
[ "org.eclipse.ice.datastructures.form.TreeComposite", "org.eclipse.swt.widgets.Display", "org.eclipse.swt.widgets.Shell" ]
import org.eclipse.ice.datastructures.form.TreeComposite; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell;
import org.eclipse.ice.datastructures.form.*; import org.eclipse.swt.widgets.*;
[ "org.eclipse.ice", "org.eclipse.swt" ]
org.eclipse.ice; org.eclipse.swt;
2,889,167
protected Object getData(IntArrayWrapper id) { return data.getOrDefault(id, null); }
Object function(IntArrayWrapper id) { return data.getOrDefault(id, null); }
/** * Returns data * @param id - in ARX format * @return */
Returns data
getData
{ "repo_name": "RaffaelBild/arx", "path": "src/main/org/deidentifier/arx/framework/lattice/SolutionSpaceIntArray.java", "license": "apache-2.0", "size": 7304 }
[ "org.deidentifier.arx.framework.lattice.SolutionSpaceIntArray" ]
import org.deidentifier.arx.framework.lattice.SolutionSpaceIntArray;
import org.deidentifier.arx.framework.lattice.*;
[ "org.deidentifier.arx" ]
org.deidentifier.arx;
1,687,596
public Presentation copyPresentation(Id presentationId);
Presentation function(Id presentationId);
/** * Copy an existing presentation, * this will duplicate the presentation for the current owner, * does not include comments * * @param presentationId the id for a presentation * @return the copy of the presentation */
Copy an existing presentation, this will duplicate the presentation for the current owner, does not include comments
copyPresentation
{ "repo_name": "harfalm/Sakai-10.1", "path": "osp/presentation/api/src/java/org/theospi/portfolio/presentation/PresentationManager.java", "license": "apache-2.0", "size": 13104 }
[ "org.sakaiproject.metaobj.shared.model.Id", "org.theospi.portfolio.presentation.model.Presentation" ]
import org.sakaiproject.metaobj.shared.model.Id; import org.theospi.portfolio.presentation.model.Presentation;
import org.sakaiproject.metaobj.shared.model.*; import org.theospi.portfolio.presentation.model.*;
[ "org.sakaiproject.metaobj", "org.theospi.portfolio" ]
org.sakaiproject.metaobj; org.theospi.portfolio;
1,752,800
ValueModel getTarget();
ValueModel getTarget();
/** * Returns target model of association. * * @return ValueModel value model. */
Returns target model of association
getTarget
{ "repo_name": "apechinsky/srplib", "path": "srp-binding/src/main/java/org/srplib/binding/Binding.java", "license": "apache-2.0", "size": 677 }
[ "org.srplib.model.ValueModel" ]
import org.srplib.model.ValueModel;
import org.srplib.model.*;
[ "org.srplib.model" ]
org.srplib.model;
2,604,975
public static Set<VMGuestMetrics> getAll(Connection c) throws Types.BadServerResponse, XmlRpcException { String method_call = "VM_guest_metrics.get_all"; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session)}; Map response = c...
static Set<VMGuestMetrics> function(Connection c) throws Types.BadServerResponse, XmlRpcException { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session)}; Map response = c.dispatch(method_call, method_params); if(response.get(STR).equals(STR)) { Obj...
/** * Return a list of all the VM_guest_metrics instances known to the system. * * @return references to all objects */
Return a list of all the VM_guest_metrics instances known to the system
getAll
{ "repo_name": "cc14514/hq6", "path": "hq-plugin/xen-plugin/src/main/java/com/xensource/xenapi/VMGuestMetrics.java", "license": "unlicense", "size": 15257 }
[ "java.util.Map", "java.util.Set", "org.apache.xmlrpc.XmlRpcException" ]
import java.util.Map; import java.util.Set; import org.apache.xmlrpc.XmlRpcException;
import java.util.*; import org.apache.xmlrpc.*;
[ "java.util", "org.apache.xmlrpc" ]
java.util; org.apache.xmlrpc;
1,520,852
public int insert(DataValueDescriptor[] row) throws StandardException { doInsert(row); return 0; }
int function(DataValueDescriptor[] row) throws StandardException { doInsert(row); return 0; }
/** * Public Methods of This class:********************************************** * *************************** */
Public Methods of This class:
insert
{ "repo_name": "papicella/snappy-store", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/engine/access/heap/MemHeapController.java", "license": "apache-2.0", "size": 12212 }
[ "com.pivotal.gemfirexd.internal.iapi.error.StandardException", "com.pivotal.gemfirexd.internal.iapi.types.DataValueDescriptor" ]
import com.pivotal.gemfirexd.internal.iapi.error.StandardException; import com.pivotal.gemfirexd.internal.iapi.types.DataValueDescriptor;
import com.pivotal.gemfirexd.internal.iapi.error.*; import com.pivotal.gemfirexd.internal.iapi.types.*;
[ "com.pivotal.gemfirexd" ]
com.pivotal.gemfirexd;
860,605
registeredClasses.addAll(Arrays.asList(clazz)); } public BaseMessage() { }
registeredClasses.addAll(Arrays.asList(clazz)); } public BaseMessage() { }
/** * Method to hold all the classes that extend this one. * Should be called as soon as possible upon the start of the application. * * @param clazz Class that is extending this class */
Method to hold all the classes that extend this one. Should be called as soon as possible upon the start of the application
registerClass
{ "repo_name": "crazyfacka/rpi_wakeup_light", "path": "android/src/main/java/com/hairysoft/message/BaseMessage.java", "license": "mit", "size": 2847 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,441,202
public List<PLSQLargument> getArguments() { return arguments; }
List<PLSQLargument> function() { return arguments; }
/** * Return the PLSQL arguments. */
Return the PLSQL arguments
getArguments
{ "repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs", "path": "foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/platform/database/oracle/plsql/PLSQLStoredProcedureCall.java", "license": "epl-1.0", "size": 58729 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
953,388
public Query setParameters(List<Object> parameters) { if (parameters == null) { this.parameters = null; return this; } this.parameters = new Object[parameters.size()]; parameters.toArray(this.parameters); return this; }
Query function(List<Object> parameters) { if (parameters == null) { this.parameters = null; return this; } this.parameters = new Object[parameters.size()]; parameters.toArray(this.parameters); return this; }
/** * Set query parameters * @param parameters collection of parameters */
Set query parameters
setParameters
{ "repo_name": "erpcya/adempierePOS", "path": "base/src/org/compiere/model/Query.java", "license": "gpl-2.0", "size": 21817 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,315,078
public static <T> T lookupMandatoryBean(Exchange exchange, String name, Class<T> type) { T value = lookupBean(exchange, name, type); if (value == null) { throw new NoSuchBeanException(name); } return value; }
static <T> T function(Exchange exchange, String name, Class<T> type) { T value = lookupBean(exchange, name, type); if (value == null) { throw new NoSuchBeanException(name); } return value; }
/** * Performs a lookup in the registry of the mandatory bean name and throws an exception if it could not be found * * @param exchange the exchange * @param name the bean name * @param type the expected bean type * @return the bean * @throws NoSuchBeanException if no bean cou...
Performs a lookup in the registry of the mandatory bean name and throws an exception if it could not be found
lookupMandatoryBean
{ "repo_name": "neoramon/camel", "path": "camel-core/src/main/java/org/apache/camel/util/ExchangeHelper.java", "license": "apache-2.0", "size": 38035 }
[ "org.apache.camel.Exchange", "org.apache.camel.NoSuchBeanException" ]
import org.apache.camel.Exchange; import org.apache.camel.NoSuchBeanException;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
2,882,131
@SuppressWarnings("WeakerAccess") public <E extends Throwable> void initAndInspect(final InspectBody<E> inspectBody) throws AbortedScanException, RepositoryException, E { adminInitAndInspect(admin -> { final Session inspectSession = Util.wrapSessionReadOnly(admin); in...
@SuppressWarnings(STR) <E extends Throwable> void function(final InspectBody<E> inspectBody) throws AbortedScanException, RepositoryException, E { adminInitAndInspect(admin -> { final Session inspectSession = Util.wrapSessionReadOnly(admin); inspectBody.tryAccept(inspectSession); }); }
/** * Run arbitrary read-only session logic against a post-InitStage OakPAL session. * * @param inspectBody arbitrary logic to run against a Session * @param <E> an error type thrown by the inspectBody * @throws AbortedScanException for preinstall errors * @throws RepositoryExcepti...
Run arbitrary read-only session logic against a post-InitStage OakPAL session
initAndInspect
{ "repo_name": "adamcin/net.adamcin.oakpal", "path": "core/src/main/java/net/adamcin/oakpal/core/OakMachine.java", "license": "apache-2.0", "size": 50931 }
[ "javax.jcr.RepositoryException", "javax.jcr.Session" ]
import javax.jcr.RepositoryException; import javax.jcr.Session;
import javax.jcr.*;
[ "javax.jcr" ]
javax.jcr;
2,266,246
boolean matches( Auth auth, Resource current );
boolean matches( Auth auth, Resource current );
/** * Does the current user match this group * * @param auth * @return */
Does the current user match this group
matches
{ "repo_name": "skoulouzis/lobcder", "path": "milton/milton-caldav/src/main/java/com/ettrema/http/acl/DavPrincipal.java", "license": "apache-2.0", "size": 365 }
[ "com.bradmcevoy.http.Auth", "com.bradmcevoy.http.Resource" ]
import com.bradmcevoy.http.Auth; import com.bradmcevoy.http.Resource;
import com.bradmcevoy.http.*;
[ "com.bradmcevoy.http" ]
com.bradmcevoy.http;
1,690,080
public synchronized List<Job> queryAllJobsFromOwnerID(int userid) { String query = "SELECT * FROM jobs WHERE owner_id = ?"; List<Job> jobs = sql.query(query, new Object[]{userid}, new JobMapper() ); if(!jobs.isEmpty()) { return jobs; } return null; }
synchronized List<Job> function(int userid) { String query = STR; List<Job> jobs = sql.query(query, new Object[]{userid}, new JobMapper() ); if(!jobs.isEmpty()) { return jobs; } return null; }
/** * Returns a list of jobs owned/created by the specific user, returns null if none */
Returns a list of jobs owned/created by the specific user, returns null if none
queryAllJobsFromOwnerID
{ "repo_name": "themixhub/mixhub-open-source", "path": "src/main/java/online/themixhub/demo/sql/impl/JobSQL.java", "license": "apache-2.0", "size": 16325 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
793,068
protected void enterContainedTypeConstraint(Production node) throws ParseException { }
void function(Production node) throws ParseException { }
/** * Called when entering a parse tree node. * * @param node the node being entered * * @throws ParseException if the node analysis discovered errors */
Called when entering a parse tree node
enterContainedTypeConstraint
{ "repo_name": "richb-hanover/mibble-2.9.2", "path": "src/java/net/percederberg/mibble/asn1/Asn1Analyzer.java", "license": "gpl-2.0", "size": 275483 }
[ "net.percederberg.grammatica.parser.ParseException", "net.percederberg.grammatica.parser.Production" ]
import net.percederberg.grammatica.parser.ParseException; import net.percederberg.grammatica.parser.Production;
import net.percederberg.grammatica.parser.*;
[ "net.percederberg.grammatica" ]
net.percederberg.grammatica;
447,684
private void findAndRemovePrefixedNonVoidMethods( final MethodScope methodScope, final String prefix, final Class<?> returnType, final int paramCount, final List<Method> methodListToAppendTo) { final List<Method> matchingMethods = findAndRemove...
void function( final MethodScope methodScope, final String prefix, final Class<?> returnType, final int paramCount, final List<Method> methodListToAppendTo) { final List<Method> matchingMethods = findAndRemovePrefixedMethods(methodScope, prefix, returnType, false, paramCount); methodListToAppendTo.addAll(matchingMethod...
/** * As per {@link #findAndRemovePrefixedNonVoidMethods(org.apache.isis.core.metamodel.methodutils.MethodScope, String, Class, int, java.util.List)}, * but appends to provided {@link List} (collecting parameter pattern). */
As per <code>#findAndRemovePrefixedNonVoidMethods(org.apache.isis.core.metamodel.methodutils.MethodScope, String, Class, int, java.util.List)</code>, but appends to provided <code>List</code> (collecting parameter pattern)
findAndRemovePrefixedNonVoidMethods
{ "repo_name": "niv0/isis", "path": "core/metamodel/src/main/java/org/apache/isis/core/metamodel/specloader/specimpl/FacetedMethodsBuilder.java", "license": "apache-2.0", "size": 25535 }
[ "java.lang.reflect.Method", "java.util.List", "org.apache.isis.core.metamodel.methodutils.MethodScope" ]
import java.lang.reflect.Method; import java.util.List; import org.apache.isis.core.metamodel.methodutils.MethodScope;
import java.lang.reflect.*; import java.util.*; import org.apache.isis.core.metamodel.methodutils.*;
[ "java.lang", "java.util", "org.apache.isis" ]
java.lang; java.util; org.apache.isis;
1,788,420
Optional<CdoSnapshot> getLatest(GlobalId globalId);
Optional<CdoSnapshot> getLatest(GlobalId globalId);
/** * Latest snapshot of given object, * Optional#EMPTY if object is not versioned */
Latest snapshot of given object, Optional#EMPTY if object is not versioned
getLatest
{ "repo_name": "ramasinka/javers", "path": "javers-core/src/main/java/org/javers/repository/api/JaversRepository.java", "license": "apache-2.0", "size": 3492 }
[ "org.javers.common.collections.Optional", "org.javers.core.metamodel.object.CdoSnapshot", "org.javers.core.metamodel.object.GlobalId" ]
import org.javers.common.collections.Optional; import org.javers.core.metamodel.object.CdoSnapshot; import org.javers.core.metamodel.object.GlobalId;
import org.javers.common.collections.*; import org.javers.core.metamodel.object.*;
[ "org.javers.common", "org.javers.core" ]
org.javers.common; org.javers.core;
1,729,945
public void setConsumerServiceCallTrendData(Map<String, List<TimeSlotData>> graphData, long aggregationPeriod, int hourSpan, String graphTitle);
void function(Map<String, List<TimeSlotData>> graphData, long aggregationPeriod, int hourSpan, String graphTitle);
/** * Sets the consumer service call trend data. * * @param graphData * the graph data * @param aggregationPeriod * the aggregation period * @param hourSpan * the hour span * @param graphTitle * ...
Sets the consumer service call trend data
setConsumerServiceCallTrendData
{ "repo_name": "ebayopensource/turmeric-monitoring", "path": "mgmt-console/src/main/java/org/ebayopensource/turmeric/monitoring/client/presenter/ConsumerPresenter.java", "license": "apache-2.0", "size": 55975 }
[ "java.util.List", "java.util.Map", "org.ebayopensource.turmeric.monitoring.client.model.TimeSlotData" ]
import java.util.List; import java.util.Map; import org.ebayopensource.turmeric.monitoring.client.model.TimeSlotData;
import java.util.*; import org.ebayopensource.turmeric.monitoring.client.model.*;
[ "java.util", "org.ebayopensource.turmeric" ]
java.util; org.ebayopensource.turmeric;
2,404,798
private static Value encodeValue(String value, String charset) { if (MimeUtility.checkAscii(value) == MimeUtility.ALL_ASCII) return null; // no need to encode it byte[] b; // charset encoded bytes from the string try { b = value.getBytes(MimeUtility.javaCharset(charset)); } catch (UnsupportedEncoding...
static Value function(String value, String charset) { if (MimeUtility.checkAscii(value) == MimeUtility.ALL_ASCII) return null; byte[] b; try { b = value.getBytes(MimeUtility.javaCharset(charset)); } catch (UnsupportedEncodingException ex) { return null; } StringBuffer sb = new StringBuffer(b.length + charset.length() +...
/** * Encode a parameter value, if necessary. * If the value is encoded, a Value object is returned. * Otherwise, null is returned. * XXX - Could return a MultiValue object if parameter value is too long. */
Encode a parameter value, if necessary. If the value is encoded, a Value object is returned. Otherwise, null is returned. XXX - Could return a MultiValue object if parameter value is too long
encodeValue
{ "repo_name": "arthurzaczek/kolab-android", "path": "javamail/javax/mail/internet/ParameterList.java", "license": "gpl-3.0", "size": 25541 }
[ "java.io.UnsupportedEncodingException" ]
import java.io.UnsupportedEncodingException;
import java.io.*;
[ "java.io" ]
java.io;
47,842
protected JBlock createInnerEvalBlock() { return createInnerBlock(BlockType.EVAL); }
JBlock function() { return createInnerBlock(BlockType.EVAL); }
/** * Creates an inner braced and indented block for evaluation of the expression. * @return a newly created inner eval block */
Creates an inner braced and indented block for evaluation of the expression
createInnerEvalBlock
{ "repo_name": "parthchandra/incubator-drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/expr/ClassGenerator.java", "license": "apache-2.0", "size": 30005 }
[ "com.sun.codemodel.JBlock" ]
import com.sun.codemodel.JBlock;
import com.sun.codemodel.*;
[ "com.sun.codemodel" ]
com.sun.codemodel;
1,712,545
public void getCallSet(com.google.genomics.v1.GetCallSetRequest request, io.grpc.stub.StreamObserver<com.google.genomics.v1.CallSet> responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_GET_CALL_SET, getCallOptions()), request, responseObserver); } } public static fina...
void function(com.google.genomics.v1.GetCallSetRequest request, io.grpc.stub.StreamObserver<com.google.genomics.v1.CallSet> responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_GET_CALL_SET, getCallOptions()), request, responseObserver); } } public static final class VariantServiceV1BlockingStub extends io.g...
/** * <pre> * Gets a call set by ID. * For the definitions of call sets and other genomics resources, see * [Fundamentals of Google * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) * </pre> */
<code> Gets a call set by ID. For the definitions of call sets and other genomics resources, see [Fundamentals of Google Genomics](HREF) </code>
getCallSet
{ "repo_name": "speedycontrol/googleapis", "path": "output/com/google/genomics/v1/VariantServiceV1Grpc.java", "license": "apache-2.0", "size": 86208 }
[ "io.grpc.stub.ClientCalls", "io.grpc.stub.ServerCalls" ]
import io.grpc.stub.ClientCalls; import io.grpc.stub.ServerCalls;
import io.grpc.stub.*;
[ "io.grpc.stub" ]
io.grpc.stub;
1,559,985
@Override public void actionPerformed(ActionEvent e) { Object o; o = e.getSource(); if (o == menuFileOpen) { loadFile(); } else if (o == menuFileSave) { saveFile(); } else if (o == menuFileSaveAs) { saveFileAs(); } else if (o == menuFileClose) { closeFile(); } e...
void function(ActionEvent e) { Object o; o = e.getSource(); if (o == menuFileOpen) { loadFile(); } else if (o == menuFileSave) { saveFile(); } else if (o == menuFileSaveAs) { saveFileAs(); } else if (o == menuFileClose) { closeFile(); } else if (o == menuFileCloseAll) { closeAllFiles(); } else if (o == menuFileProperti...
/** * invoked when an action occurs * * @param e the action event */
invoked when an action occurs
actionPerformed
{ "repo_name": "runqingz/umple", "path": "Umplificator/UmplifiedProjects/weka-umplified-0/src/main/java/weka/gui/arffviewer/ArffViewerMainPanel.java", "license": "mit", "size": 30550 }
[ "java.awt.event.ActionEvent" ]
import java.awt.event.ActionEvent;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
32,314
private final String getContentDescription(Context context, int stateResId) { final String gadget = context.getString(getButtonDescription()); final String state = context.getString(stateResId); return context.getString(R.string.gadget_state_template, gadget, state); ...
final String function(Context context, int stateResId) { final String gadget = context.getString(getButtonDescription()); final String state = context.getString(stateResId); return context.getString(R.string.gadget_state_template, gadget, state); }
/** * Returns the gadget state template populated with the gadget * description and state. */
Returns the gadget state template populated with the gadget description and state
getContentDescription
{ "repo_name": "louis20150702/mytestgit", "path": "Settings/src/com/android/settings/widget/SettingsAppWidgetProvider.java", "license": "gpl-2.0", "size": 41515 }
[ "android.content.Context" ]
import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
132,960
private void setAttributeValue(TaskAttribute attribute, String value) { if (value != null) { attribute.setValue(value); } }
void function(TaskAttribute attribute, String value) { if (value != null) { attribute.setValue(value); } }
/** * Helper method for setting attribute values (mostly because nulls aren't allowed in * attribute values). */
Helper method for setting attribute values (mostly because nulls aren't allowed in attribute values)
setAttributeValue
{ "repo_name": "google/git-appraise-eclipse", "path": "core/src/com/google/appraise/eclipse/core/AppraiseReviewsTaskDataHandler.java", "license": "epl-1.0", "size": 17121 }
[ "org.eclipse.mylyn.tasks.core.data.TaskAttribute" ]
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.*;
[ "org.eclipse.mylyn" ]
org.eclipse.mylyn;
644,259
@Override public void spr2(char order, char Uplo, double alpha, INDArray X, INDArray Y, INDArray A) { if(X.data().dataType() == DataBuffer.Type.DOUBLE) dspr2(order,Uplo,X.length(),alpha,X,X.majorStride(),Y,Y.majorStride(),A); else sspr2(order, Uplo, X.length(), (float) al...
void function(char order, char Uplo, double alpha, INDArray X, INDArray Y, INDArray A) { if(X.data().dataType() == DataBuffer.Type.DOUBLE) dspr2(order,Uplo,X.length(),alpha,X,X.majorStride(),Y,Y.majorStride(),A); else sspr2(order, Uplo, X.length(), (float) alpha, X, X.majorStride(), Y, Y.majorStride(), A); }
/** * ?spr2 performs a rank-2 update of an n-by-n packed symmetric matrix a: * a := alpha*x*y' + alpha*y*x' + a. * * @param order * @param Uplo * @param alpha * @param X * @param Y * @param A */
?spr2 performs a rank-2 update of an n-by-n packed symmetric matrix a: a := alpha*x*y' + alpha*y*x' + a
spr2
{ "repo_name": "phvu/nd4j", "path": "nd4j-api/src/main/java/org/nd4j/linalg/api/blas/impl/BaseLevel2.java", "license": "apache-2.0", "size": 36776 }
[ "org.nd4j.linalg.api.buffer.DataBuffer", "org.nd4j.linalg.api.ndarray.INDArray" ]
import org.nd4j.linalg.api.buffer.DataBuffer; import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.api.buffer.*; import org.nd4j.linalg.api.ndarray.*;
[ "org.nd4j.linalg" ]
org.nd4j.linalg;
1,364,412