method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
private URL buildUrl(String domain, String path, Map<String, String> parameters) throws MalformedURLException { if (path == null) { throw new IllegalArgumentException("null path"); } StringBuffer url = new StringBuffer(); url.append("https://" + domain + URL_FEED + path)...
URL function(String domain, String path, Map<String, String> parameters) throws MalformedURLException { if (path == null) { throw new IllegalArgumentException(STR); } StringBuffer url = new StringBuffer(); url.append(STR?STR=STR&"); } } } return new URL(url.toString()); }
/** * Builds a URL with parameters. * * @param domain the domain of the server * @param path the path to add to the protocol/host * @param parameters parameters to be added to the URL as key value pairs. * * @throws MalformedURLException */
Builds a URL with parameters
buildUrl
{ "repo_name": "mbshopM/openconcerto", "path": "Modules/Module Google Docs/src/org/openconcerto/modules/google/docs/GoogleDocsUtils.java", "license": "gpl-3.0", "size": 43386 }
[ "java.net.MalformedURLException", "java.util.Map" ]
import java.net.MalformedURLException; import java.util.Map;
import java.net.*; import java.util.*;
[ "java.net", "java.util" ]
java.net; java.util;
1,443,879
public static ModbusRequest createModbusRequest(int functionCode) { ModbusRequest request = null; switch (functionCode) { case Modbus.READ_MULTIPLE_REGISTERS: request = new ReadMultipleRegistersRequest(); break; case Modbus.READ_INPUT_REGISTERS: request = new ReadInputRegistersRequest(); break; ...
static ModbusRequest function(int functionCode) { ModbusRequest request = null; switch (functionCode) { case Modbus.READ_MULTIPLE_REGISTERS: request = new ReadMultipleRegistersRequest(); break; case Modbus.READ_INPUT_REGISTERS: request = new ReadInputRegistersRequest(); break; case Modbus.READ_EXCEPTION_STATUS: request...
/** * Factory method creating the required specialized <tt>ModbusRequest</tt> * instance. * * @param functionCode * the function code of the request as <tt>int</tt>. * @return a ModbusRequest instance specific for the given function type. */
Factory method creating the required specialized ModbusRequest instance
createModbusRequest
{ "repo_name": "graham22/Classic", "path": "j2modlite/src/main/java/ca/farrelltonsolar/j2modlite/msg/ModbusRequest.java", "license": "apache-2.0", "size": 6690 }
[ "ca.farrelltonsolar.j2modlite.Modbus" ]
import ca.farrelltonsolar.j2modlite.Modbus;
import ca.farrelltonsolar.j2modlite.*;
[ "ca.farrelltonsolar.j2modlite" ]
ca.farrelltonsolar.j2modlite;
1,495,794
private String readLine() throws IOException { String line = null; int newLineMatchByteCount; boolean isLastFilePart = no == 1; int i = currentLastBytePos; while (i > -1) { if (!isLastFilePart && i < avoidNewlineSplitBuffe...
String function() throws IOException { String line = null; int newLineMatchByteCount; boolean isLastFilePart = no == 1; int i = currentLastBytePos; while (i > -1) { if (!isLastFilePart && i < avoidNewlineSplitBufferSize) { createLeftOver(); break; } if ((newLineMatchByteCount = getNewLineMatchByteCount(data, i)) > 0 ) ...
/** * Reads a line. * * @return the line or null * @throws IOException if there is an error reading from the file */
Reads a line
readLine
{ "repo_name": "0x90sled/droidtowers", "path": "main/source/org/apach3/commons/io/input/ReversedLinesFileReader.java", "license": "mit", "size": 12476 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,412,738
public void setAspectRatio(@NonNull AspectRatio ratio) { if (mImpl.setAspectRatio(ratio)) { requestLayout(); } }
void function(@NonNull AspectRatio ratio) { if (mImpl.setAspectRatio(ratio)) { requestLayout(); } }
/** * Sets the aspect ratio of camera. * * @param ratio The {@link AspectRatio} to be set. */
Sets the aspect ratio of camera
setAspectRatio
{ "repo_name": "androidlli/work", "path": "PalmCarTreasure/library/src/main/java/com/google/android/cameraview/CameraView.java", "license": "apache-2.0", "size": 17613 }
[ "android.support.annotation.NonNull" ]
import android.support.annotation.NonNull;
import android.support.annotation.*;
[ "android.support" ]
android.support;
1,869,701
public Period keyFrameInterval() { return this.keyFrameInterval; }
Period function() { return this.keyFrameInterval; }
/** * Get the distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S). * * @return the keyFrameInterval value */
Get the distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S)
keyFrameInterval
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/mediaservices/mgmt-v2019_05_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2019_05_01_preview/Video.java", "license": "mit", "size": 3271 }
[ "org.joda.time.Period" ]
import org.joda.time.Period;
import org.joda.time.*;
[ "org.joda.time" ]
org.joda.time;
754,125
Promise<WorkspaceDto> updateEnvironment(String wsId, String envName, EnvironmentDto environmentUpdate);
Promise<WorkspaceDto> updateEnvironment(String wsId, String envName, EnvironmentDto environmentUpdate);
/** * Updates environment. * * @param wsId * workspace ID * @param environmentUpdate * the environment to update * @return a promise that resolves to the {@link WorkspaceDto}, or rejects with an error * @see WorkspaceService#updateEnvironment(String, String, Envir...
Updates environment
updateEnvironment
{ "repo_name": "Mirage20/che", "path": "ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/workspace/WorkspaceServiceClient.java", "license": "epl-1.0", "size": 10657 }
[ "org.eclipse.che.api.promises.client.Promise", "org.eclipse.che.api.workspace.shared.dto.EnvironmentDto", "org.eclipse.che.api.workspace.shared.dto.WorkspaceDto" ]
import org.eclipse.che.api.promises.client.Promise; import org.eclipse.che.api.workspace.shared.dto.EnvironmentDto; import org.eclipse.che.api.workspace.shared.dto.WorkspaceDto;
import org.eclipse.che.api.promises.client.*; import org.eclipse.che.api.workspace.shared.dto.*;
[ "org.eclipse.che" ]
org.eclipse.che;
1,043,200
private void createRelationshipType(CmsRelationType relType) { // relationship types RelationshipTypeDefinitionImpl relationshipType = new RelationshipTypeDefinitionImpl(); relationshipType.setBaseTypeId(BaseTypeId.CMIS_RELATIONSHIP); relationshipType.setParentTypeId(RELATIONSHIP_TY...
void function(CmsRelationType relType) { RelationshipTypeDefinitionImpl relationshipType = new RelationshipTypeDefinitionImpl(); relationshipType.setBaseTypeId(BaseTypeId.CMIS_RELATIONSHIP); relationshipType.setParentTypeId(RELATIONSHIP_TYPE_ID); relationshipType.setIsControllableAcl(Boolean.FALSE); relationshipType.se...
/** * Creates a CMIS relationship subtype for a given OpenCms relation type.<p> * * @param relType the OpenCms relation type */
Creates a CMIS relationship subtype for a given OpenCms relation type
createRelationshipType
{ "repo_name": "ggiudetti/opencms-core", "path": "src/org/opencms/cmis/CmsCmisTypeManager.java", "license": "lgpl-2.1", "size": 38733 }
[ "java.util.ArrayList", "java.util.List", "org.apache.chemistry.opencmis.commons.enums.BaseTypeId", "org.apache.chemistry.opencmis.commons.impl.dataobjects.RelationshipTypeDefinitionImpl", "org.opencms.relations.CmsRelationType" ]
import java.util.ArrayList; import java.util.List; import org.apache.chemistry.opencmis.commons.enums.BaseTypeId; import org.apache.chemistry.opencmis.commons.impl.dataobjects.RelationshipTypeDefinitionImpl; import org.opencms.relations.CmsRelationType;
import java.util.*; import org.apache.chemistry.opencmis.commons.enums.*; import org.apache.chemistry.opencmis.commons.impl.dataobjects.*; import org.opencms.relations.*;
[ "java.util", "org.apache.chemistry", "org.opencms.relations" ]
java.util; org.apache.chemistry; org.opencms.relations;
327,998
JsonNode curRoot = currentNode(); if (curRoot != null) { skipChildren(); return (T)curRoot; } return super.readValueAsTree(); }
JsonNode curRoot = currentNode(); if (curRoot != null) { skipChildren(); return (T)curRoot; } return super.readValueAsTree(); }
/** * Method helps to avoid copying of subtree during deserialization it into * UObject. */
Method helps to avoid copying of subtree during deserialization it into UObject
readValueAsTree
{ "repo_name": "kbase/java_common", "path": "src/us/kbase/common/service/JsonTreeTraversingParser.java", "license": "mit", "size": 2437 }
[ "com.fasterxml.jackson.databind.JsonNode" ]
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
499,156
public static Shell new_Shell(final Display display, final Canvas parent) { if (display == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (parent == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); SWT.error(SWT.ERROR_NOT_IMPLEMENTED); return null; // TODO: Uncomment this code once Display/Shell related issues are ironed...
static Shell function(final Display display, final Canvas parent) { if (display == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if (parent == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); SWT.error(SWT.ERROR_NOT_IMPLEMENTED); return null; }
/** * Creates a new <code>Shell</code>. This Shell is the root for * the SWT widgets that will be embedded within the AWT canvas. * * @param display the display for the new Shell * @param parent the parent <code>java.awt.Canvas</code> of the new Shell * @return a <code>Shell</code> to be the parent of the embed...
Creates a new <code>Shell</code>. This Shell is the root for the SWT widgets that will be embedded within the AWT canvas
new_Shell
{ "repo_name": "neelance/swt4ruby", "path": "swt4ruby/src/darwin-x86_32/org/eclipse/swt/awt/SWT_AWT.java", "license": "epl-1.0", "size": 7858 }
[ "java.awt.Canvas", "org.eclipse.swt.SWT", "org.eclipse.swt.widgets.Display", "org.eclipse.swt.widgets.Shell" ]
import java.awt.Canvas; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell;
import java.awt.*; import org.eclipse.swt.*; import org.eclipse.swt.widgets.*;
[ "java.awt", "org.eclipse.swt" ]
java.awt; org.eclipse.swt;
1,186,411
public List<BigDecimal> calculate(List<BigDecimal> list1, List<BigDecimal> list2, int begin, int length, MathContext mc) { List<BigDecimal> largest = list1.size() > list2.size() ? list1 : list2; List<BigDecimal> smallest = list1.size() < list2.size() ? list1 : list2; List<BigDecimal> result = new ArrayList...
List<BigDecimal> function(List<BigDecimal> list1, List<BigDecimal> list2, int begin, int length, MathContext mc) { List<BigDecimal> largest = list1.size() > list2.size() ? list1 : list2; List<BigDecimal> smallest = list1.size() < list2.size() ? list1 : list2; List<BigDecimal> result = new ArrayList<BigDecimal>(); int e...
/** * Performs the modulus operation on the values in the first list using the * values in the second list between the indices and returns the result. * Missing data points due to uneven list lengths are treated as zeroes. * @param List<BigDecimal> list1 the first list * @param List<BigDecimal> lis...
Performs the modulus operation on the values in the first list using the values in the second list between the indices and returns the result. Missing data points due to uneven list lengths are treated as zeroes
calculate
{ "repo_name": "jessemull/MicroFlex", "path": "src/main/java/com/github/jessemull/microflex/bigdecimalflex/math/ModulusBigDecimal.java", "license": "apache-2.0", "size": 20377 }
[ "java.math.BigDecimal", "java.math.MathContext", "java.util.ArrayList", "java.util.List" ]
import java.math.BigDecimal; import java.math.MathContext; import java.util.ArrayList; import java.util.List;
import java.math.*; import java.util.*;
[ "java.math", "java.util" ]
java.math; java.util;
1,890,651
public static ServerInfo getServerInfo(final RpcController controller, final AdminService.BlockingInterface admin) throws IOException { GetServerInfoRequest request = buildGetServerInfoRequest(); try { GetServerInfoResponse response = admin.getServerInfo(controller, request); return respon...
static ServerInfo function(final RpcController controller, final AdminService.BlockingInterface admin) throws IOException { GetServerInfoRequest request = buildGetServerInfoRequest(); try { GetServerInfoResponse response = admin.getServerInfo(controller, request); return response.getServerInfo(); } catch (ServiceExcept...
/** * A helper to get the info of a region server using admin protocol. * @return the server name */
A helper to get the info of a region server using admin protocol
getServerInfo
{ "repo_name": "JingchengDu/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java", "license": "apache-2.0", "size": 69138 }
[ "com.google.protobuf.RpcController", "com.google.protobuf.ServiceException", "java.io.IOException", "org.apache.hadoop.hbase.protobuf.generated.AdminProtos" ]
import com.google.protobuf.RpcController; import com.google.protobuf.ServiceException; import java.io.IOException; import org.apache.hadoop.hbase.protobuf.generated.AdminProtos;
import com.google.protobuf.*; import java.io.*; import org.apache.hadoop.hbase.protobuf.generated.*;
[ "com.google.protobuf", "java.io", "org.apache.hadoop" ]
com.google.protobuf; java.io; org.apache.hadoop;
858,070
EAttribute getWorkload_CoeffVarSeq();
EAttribute getWorkload_CoeffVarSeq();
/** * Returns the meta object for the attribute '{@link ucm.performance.Workload#getCoeffVarSeq <em>Coeff Var Seq</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Coeff Var Seq</em>'. * @see ucm.performance.Workload#getCoeffVarSeq() * @see #getWor...
Returns the meta object for the attribute '<code>ucm.performance.Workload#getCoeffVarSeq Coeff Var Seq</code>'.
getWorkload_CoeffVarSeq
{ "repo_name": "gmussbacher/seg.jUCMNav", "path": "src/ucm/performance/PerformancePackage.java", "license": "epl-1.0", "size": 47378 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,549,977
public Builder setJetAdjustment( final Money jetAdjustment ) { Utils.checkNull( jetAdjustment, "jetAdjustment" ); this.jetAdjustment = jetAdjustment; return this; }
Builder function( final Money jetAdjustment ) { Utils.checkNull( jetAdjustment, STR ); this.jetAdjustment = jetAdjustment; return this; }
/** * A credit given to a merchant or fee taken from the merchant * @param jetAdjustment the jetAdjustment to set * @return this */
A credit given to a merchant or fee taken from the merchant
setJetAdjustment
{ "repo_name": "SheepGuru/aerodrome-for-jet", "path": "src/main/java/com/buffalokiwi/aerodrome/jet/settlement/SettlementRec.java", "license": "apache-2.0", "size": 14154 }
[ "com.buffalokiwi.aerodrome.jet.Utils", "com.buffalokiwi.utils.Money" ]
import com.buffalokiwi.aerodrome.jet.Utils; import com.buffalokiwi.utils.Money;
import com.buffalokiwi.aerodrome.jet.*; import com.buffalokiwi.utils.*;
[ "com.buffalokiwi.aerodrome", "com.buffalokiwi.utils" ]
com.buffalokiwi.aerodrome; com.buffalokiwi.utils;
894,401
public AzureClient getAzureClient() { return this.azureClient; } private String subscriptionId;
AzureClient function() { return this.azureClient; } private String subscriptionId;
/** * Gets the {@link AzureClient} used for long running operations. * @return the azure client; */
Gets the <code>AzureClient</code> used for long running operations
getAzureClient
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/monitor/mgmt-v2016_03_01/src/main/java/com/microsoft/azure/management/monitor/v2016_03_01/implementation/MonitorManagementClientImpl.java", "license": "mit", "size": 7621 }
[ "com.microsoft.azure.AzureClient" ]
import com.microsoft.azure.AzureClient;
import com.microsoft.azure.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
265,079
public float lookupSeriesStroke(int series) { // otherwise look up the paint table Float result = getSeriesStroke(series); if (result==null && this.autoPopulateSeriesStroke) { DrawingSupplier supplier = getDrawingSupplier(); if (supplier != null) { re...
float function(int series) { Float result = getSeriesStroke(series); if (result==null && this.autoPopulateSeriesStroke) { DrawingSupplier supplier = getDrawingSupplier(); if (supplier != null) { result = supplier.getNextStroke(); setSeriesStroke(series, result, false); } } if (result == null) { result = this.baseStroke...
/** * Returns the stroke used to draw the items in a series. * * @param series * the series (zero-based index). * * @return The stroke (never <code>null</code>). * * @since JFreeChart 1.0.6 */
Returns the stroke used to draw the items in a series
lookupSeriesStroke
{ "repo_name": "djun100/afreechart", "path": "src/org/afree/chart/renderer/AbstractRenderer.java", "license": "lgpl-3.0", "size": 122597 }
[ "org.afree.chart.plot.DrawingSupplier" ]
import org.afree.chart.plot.DrawingSupplier;
import org.afree.chart.plot.*;
[ "org.afree.chart" ]
org.afree.chart;
419,988
protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (isLocked(req)) { resp.sendError(WebdavStatus.SC_LOCKED); return; } super.doPut(req, resp); String path = getRelativePath(req)...
void function(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (isLocked(req)) { resp.sendError(WebdavStatus.SC_LOCKED); return; } super.doPut(req, resp); String path = getRelativePath(req); lockNullResources.remove(path); }
/** * Process a POST request for the specified resource. * * @param request The servlet request we are processing * @param response The servlet response we are creating * * @exception IOException if an input/output error occurs * @exception ServletException if a servlet-specifi...
Process a POST request for the specified resource
doPut
{ "repo_name": "c-rainstorm/jerrydog", "path": "src/main/java/org/apache/catalina/servlets/WebdavServlet.java", "license": "gpl-3.0", "size": 108768 }
[ "java.io.IOException", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; 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,169,740
@Override public LabelPosition getY() { return getValue(Property.Y, LabelPosition.values(), defaultValues.getY()); }
LabelPosition function() { return getValue(Property.Y, LabelPosition.values(), defaultValues.getY()); }
/** * Returns the anchor position of label on vertical dimension. * * @return the anchor position of label on vertical dimension. */
Returns the anchor position of label on vertical dimension
getY
{ "repo_name": "pepstock-org/Charba", "path": "src/org/pepstock/charba/client/annotation/AlignPosition.java", "license": "apache-2.0", "size": 6621 }
[ "org.pepstock.charba.client.annotation.enums.LabelPosition" ]
import org.pepstock.charba.client.annotation.enums.LabelPosition;
import org.pepstock.charba.client.annotation.enums.*;
[ "org.pepstock.charba" ]
org.pepstock.charba;
2,345,819
private void renameIndexTables(AccumuloTable oldTable, AccumuloTable newTable) { if (!oldTable.isIndexed()) { return; } if (!tableManager.exists(oldTable.getIndexTableName())) { throw new PrestoException(ACCUMULO_TABLE_DNE, format("Table %s does not exist", oldTa...
void function(AccumuloTable oldTable, AccumuloTable newTable) { if (!oldTable.isIndexed()) { return; } if (!tableManager.exists(oldTable.getIndexTableName())) { throw new PrestoException(ACCUMULO_TABLE_DNE, format(STR, oldTable.getIndexTableName())); } if (tableManager.exists(newTable.getIndexTableName())) { throw new ...
/** * Renames the index tables (if applicable) for the old table to the new table. * * @param oldTable Old AccumuloTable * @param newTable New AccumuloTable */
Renames the index tables (if applicable) for the old table to the new table
renameIndexTables
{ "repo_name": "facebook/presto", "path": "presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloClient.java", "license": "apache-2.0", "size": 42687 }
[ "com.facebook.presto.accumulo.metadata.AccumuloTable", "com.facebook.presto.spi.PrestoException", "java.lang.String" ]
import com.facebook.presto.accumulo.metadata.AccumuloTable; import com.facebook.presto.spi.PrestoException; import java.lang.String;
import com.facebook.presto.accumulo.metadata.*; import com.facebook.presto.spi.*; import java.lang.*;
[ "com.facebook.presto", "java.lang" ]
com.facebook.presto; java.lang;
2,507,793
public ExpressionClause<AssertionClause> predicate() { ExpressionClause<AssertionClause> clause = new ExpressionClause<AssertionClause>(this); addPredicate(clause); return clause; }
ExpressionClause<AssertionClause> function() { ExpressionClause<AssertionClause> clause = new ExpressionClause<AssertionClause>(this); addPredicate(clause); return clause; }
/** * Adds the given predicate to this assertion clause */
Adds the given predicate to this assertion clause
predicate
{ "repo_name": "koscejev/camel", "path": "camel-core/src/main/java/org/apache/camel/component/mock/AssertionClause.java", "license": "apache-2.0", "size": 5540 }
[ "org.apache.camel.builder.ExpressionClause" ]
import org.apache.camel.builder.ExpressionClause;
import org.apache.camel.builder.*;
[ "org.apache.camel" ]
org.apache.camel;
2,063,292
public VDI copy(Connection c, SR sr) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = "VDI.copy"; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalli...
VDI function(Connection c, SR sr) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(sr)}; Map response = c.dispatch(method_call, me...
/** * Make a fresh VDI in the specified SR and copy the supplied VDI's data to the new disk * * @param sr The destination SR * @return The reference of the newly created VDI. */
Make a fresh VDI in the specified SR and copy the supplied VDI's data to the new disk
copy
{ "repo_name": "mufaddalq/cloudstack-datera-driver", "path": "deps/XenServerJava/src/com/xensource/xenapi/VDI.java", "license": "apache-2.0", "size": 84941 }
[ "com.xensource.xenapi.Types", "java.util.Map", "org.apache.xmlrpc.XmlRpcException" ]
import com.xensource.xenapi.Types; import java.util.Map; import org.apache.xmlrpc.XmlRpcException;
import com.xensource.xenapi.*; import java.util.*; import org.apache.xmlrpc.*;
[ "com.xensource.xenapi", "java.util", "org.apache.xmlrpc" ]
com.xensource.xenapi; java.util; org.apache.xmlrpc;
963,006
private void copy(QTreeNode selNode) { clipboard = selNode; if (selNode.getType() == QUESTION) { categoryPasteItem.setEnabled(true); experimentPasteItem.setEnabled(false); } else if (selNode.getType() == CATEGORY) { categoryPasteItem.setEnabled(false); ...
void function(QTreeNode selNode) { clipboard = selNode; if (selNode.getType() == QUESTION) { categoryPasteItem.setEnabled(true); experimentPasteItem.setEnabled(false); } else if (selNode.getType() == CATEGORY) { categoryPasteItem.setEnabled(false); experimentPasteItem.setEnabled(true); } }
/** * Copies the given node. * * @param selNode * the node to be copied */
Copies the given node
copy
{ "repo_name": "feigensp/Prophet", "path": "src/de/uni_passau/fim/infosun/prophet/experimentEditor/qTree/QTree.java", "license": "gpl-3.0", "size": 19229 }
[ "de.uni_passau.fim.infosun.prophet.util.qTree.QTreeNode" ]
import de.uni_passau.fim.infosun.prophet.util.qTree.QTreeNode;
import de.uni_passau.fim.infosun.prophet.util.*;
[ "de.uni_passau.fim" ]
de.uni_passau.fim;
1,506,981
return new ArrayList<Object>(serializedObjects.values()); }
return new ArrayList<Object>(serializedObjects.values()); }
/** * Returns an unmodifiable list of the objects that have been serialized. * @return */
Returns an unmodifiable list of the objects that have been serialized
serializedObjects
{ "repo_name": "aleksandarmilicevic/squander", "path": "src/edu/mit/csail/sdg/squander/serializer/Serializer.java", "license": "gpl-3.0", "size": 7898 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,624,812
public Observable<ServiceResponse<Page<NamespaceResourceInner>>> listSinglePageAsync(final String resourceGroupName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (this.client.subscriptio...
Observable<ServiceResponse<Page<NamespaceResourceInner>>> function(final String resourceGroupName) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (this.client.apiVersion() == null) { throw new Illega...
/** * Lists the available namespaces within a resourceGroup. * ServiceResponse<PageImpl<NamespaceResourceInner>> * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription * @throws IllegalArgumentException thr...
Lists the available namespaces within a resourceGroup
listSinglePageAsync
{ "repo_name": "martinsawicki/azure-sdk-for-java", "path": "azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NamespacesInner.java", "license": "mit", "size": 118543 }
[ "com.microsoft.azure.Page", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
2,079,478
private JComponent buildNamingComponent() { JPanel content = new JPanel(); content.setBorder(BorderFactory.createTitledBorder("File Naming")); JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); panel.add(fullName); panel.add(partialName); JPanel pp = new JPanel(); ...
JComponent function() { JPanel content = new JPanel(); content.setBorder(BorderFactory.createTitledBorder(STR)); JPanel panel = new JPanel(); panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)); panel.add(fullName); panel.add(partialName); JPanel pp = new JPanel(); pp.setLayout(new BoxLayout(pp, BoxLayout.Y_AXIS));...
/** * Builds and lays out the components displaying the naming options. * * @return See above. */
Builds and lays out the components displaying the naming options
buildNamingComponent
{ "repo_name": "dpwrussell/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/fsimporter/chooser/ImportDialog.java", "license": "gpl-2.0", "size": 52010 }
[ "java.awt.GridBagConstraints", "java.awt.GridBagLayout", "javax.swing.BorderFactory", "javax.swing.Box", "javax.swing.BoxLayout", "javax.swing.JComponent", "javax.swing.JPanel", "org.openmicroscopy.shoola.util.ui.UIUtilities" ]
import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.BorderFactory; import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JComponent; import javax.swing.JPanel; import org.openmicroscopy.shoola.util.ui.UIUtilities;
import java.awt.*; import javax.swing.*; import org.openmicroscopy.shoola.util.ui.*;
[ "java.awt", "javax.swing", "org.openmicroscopy.shoola" ]
java.awt; javax.swing; org.openmicroscopy.shoola;
887,842
public Iterable<VirtualPort> changeJsonToPort(JsonNode vPortNodes) { checkNotNull(vPortNodes, JSON_NOT_NULL); Map<VirtualPortId, VirtualPort> vportMap = new HashMap<VirtualPortId, VirtualPort>(); Map<String, String> strMap = new HashMap<String, String>(); VirtualPortId id = Virtu...
Iterable<VirtualPort> function(JsonNode vPortNodes) { checkNotNull(vPortNodes, JSON_NOT_NULL); Map<VirtualPortId, VirtualPort> vportMap = new HashMap<VirtualPortId, VirtualPort>(); Map<String, String> strMap = new HashMap<String, String>(); VirtualPortId id = VirtualPortId.portId(vPortNodes.get("id").asText()); String ...
/** * Returns a collection of virtualPorts from subnetNodes. * * @param vPortNodes the virtualPort json node * @return virtualPorts a collection of virtualPorts */
Returns a collection of virtualPorts from subnetNodes
changeJsonToPort
{ "repo_name": "rvhub/onos", "path": "apps/vtnweb/src/main/java/org/onosproject/vtnweb/resources/VirtualPortWebResource.java", "license": "apache-2.0", "size": 18097 }
[ "com.fasterxml.jackson.databind.JsonNode", "com.google.common.base.Preconditions", "java.util.Collection", "java.util.Collections", "java.util.HashMap", "java.util.HashSet", "java.util.Map", "java.util.Set", "org.onlab.packet.MacAddress", "org.onosproject.net.DeviceId", "org.onosproject.vtnrsc.A...
import com.fasterxml.jackson.databind.JsonNode; import com.google.common.base.Preconditions; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.onlab.packet.MacAddress; import org.onosproject.net.DeviceId;...
import com.fasterxml.jackson.databind.*; import com.google.common.base.*; import java.util.*; import org.onlab.packet.*; import org.onosproject.net.*; import org.onosproject.vtnrsc.*;
[ "com.fasterxml.jackson", "com.google.common", "java.util", "org.onlab.packet", "org.onosproject.net", "org.onosproject.vtnrsc" ]
com.fasterxml.jackson; com.google.common; java.util; org.onlab.packet; org.onosproject.net; org.onosproject.vtnrsc;
1,639,478
private Control layoutPicker(UserPickerMiniModel model) { ElementPickerComposite<TablePickerDialog> picker = this.createPicker(parent, model); DataBindingContext bindingContext = new DataBindingContext(); IObservableValue uiElement = SWTObservables.observeText(picker.getTextField(), SWT.Modify); IObservabl...
Control function(UserPickerMiniModel model) { ElementPickerComposite<TablePickerDialog> picker = this.createPicker(parent, model); DataBindingContext bindingContext = new DataBindingContext(); IObservableValue uiElement = SWTObservables.observeText(picker.getTextField(), SWT.Modify); IObservableValue modelElement = Bea...
/** * Layout the script table. * * @param parent * the parent composite * @param model * * @return the layouted table */
Layout the script table
layoutPicker
{ "repo_name": "NABUCCO/org.nabucco.testautomation", "path": "org.nabucco.testautomation.ui.rcp/src/main/man/org/nabucco/testautomation/ui/rcp/multipage/engine/masterdetail/detail/configuration/widget/UserPickerWidgetCreator.java", "license": "epl-1.0", "size": 7475 }
[ "org.eclipse.core.databinding.DataBindingContext", "org.eclipse.core.databinding.beans.BeansObservables", "org.eclipse.core.databinding.observable.value.IObservableValue", "org.eclipse.jface.databinding.swt.SWTObservables", "org.eclipse.swt.widgets.Control", "org.nabucco.framework.plugin.base.component.ne...
import org.eclipse.core.databinding.DataBindingContext; import org.eclipse.core.databinding.beans.BeansObservables; import org.eclipse.core.databinding.observable.value.IObservableValue; import org.eclipse.jface.databinding.swt.SWTObservables; import org.eclipse.swt.widgets.Control; import org.nabucco.framework.plugin....
import org.eclipse.core.databinding.*; import org.eclipse.core.databinding.beans.*; import org.eclipse.core.databinding.observable.value.*; import org.eclipse.jface.databinding.swt.*; import org.eclipse.swt.widgets.*; import org.nabucco.framework.plugin.base.component.newpicker.composite.element.*; import org.nabucco.f...
[ "org.eclipse.core", "org.eclipse.jface", "org.eclipse.swt", "org.nabucco.framework" ]
org.eclipse.core; org.eclipse.jface; org.eclipse.swt; org.nabucco.framework;
350,958
public void setDomainAxisLocation(AxisLocation location, boolean notify) { // delegate... setDomainAxisLocation(0, location, notify); }
void function(AxisLocation location, boolean notify) { setDomainAxisLocation(0, location, notify); }
/** * Sets the location of the domain axis and, if requested, sends a * {@link PlotChangeEvent} to all registered listeners. * * @param location the location (<code>null</code> not permitted). * @param notify notify listeners? * * @see #getDomainAxisLocation() */
Sets the location of the domain axis and, if requested, sends a <code>PlotChangeEvent</code> to all registered listeners
setDomainAxisLocation
{ "repo_name": "Epsilon2/Memetic-Algorithm-for-TSP", "path": "jfreechart-1.0.16/source/org/jfree/chart/plot/XYPlot.java", "license": "mit", "size": 199979 }
[ "org.jfree.chart.axis.AxisLocation" ]
import org.jfree.chart.axis.AxisLocation;
import org.jfree.chart.axis.*;
[ "org.jfree.chart" ]
org.jfree.chart;
2,198,030
private void checkRememberMe(WebAttributers was) { String remember = was.get(StaticDict.PAGE_PARAM_LOGIN_REMEMBER); String userName = was.get(StaticDict.PAGE_PARAM_LOGIN_NAME); if (remember == null || !StaticDict.PAGE_PARAM_LOGIN_REMEMBER_CHECKED_VAL.equals(remember)) { User user = securityService.getUs...
void function(WebAttributers was) { String remember = was.get(StaticDict.PAGE_PARAM_LOGIN_REMEMBER); String userName = was.get(StaticDict.PAGE_PARAM_LOGIN_NAME); if (remember == null !StaticDict.PAGE_PARAM_LOGIN_REMEMBER_CHECKED_VAL.equals(remember)) { User user = securityService.getUsers().findByName(userName); if (us...
/** * check if client chose the remember me option * @param was WebAttributers */
check if client chose the remember me option
checkRememberMe
{ "repo_name": "daileyet/webscheduler", "path": "src/main/java/com/openthinks/webscheduler/controller/WebSecurityController.java", "license": "apache-2.0", "size": 3890 }
[ "com.openthinks.easyweb.context.handler.WebAttributers", "com.openthinks.webscheduler.help.StaticDict", "com.openthinks.webscheduler.model.security.RememberMeCookie", "com.openthinks.webscheduler.model.security.User", "javax.servlet.http.Cookie" ]
import com.openthinks.easyweb.context.handler.WebAttributers; import com.openthinks.webscheduler.help.StaticDict; import com.openthinks.webscheduler.model.security.RememberMeCookie; import com.openthinks.webscheduler.model.security.User; import javax.servlet.http.Cookie;
import com.openthinks.easyweb.context.handler.*; import com.openthinks.webscheduler.help.*; import com.openthinks.webscheduler.model.security.*; import javax.servlet.http.*;
[ "com.openthinks.easyweb", "com.openthinks.webscheduler", "javax.servlet" ]
com.openthinks.easyweb; com.openthinks.webscheduler; javax.servlet;
2,003,793
public static Material copper(ColorModel c) { return new ConductiveMaterial( c.getContinuous(N_COPPER), c.getContinuous(K_COPPER), null); }
static Material function(ColorModel c) { return new ConductiveMaterial( c.getContinuous(N_COPPER), c.getContinuous(K_COPPER), null); }
/** * Creates a <code>Material</code> representing copper. * @param c The <code>ColorModel</code> to use. * @return A <code>Material</code> representing copper. */
Creates a <code>Material</code> representing copper
copper
{ "repo_name": "bwkimmel/jmist", "path": "jmist-core/src/main/java/ca/eandb/jmist/framework/material/Materials.java", "license": "mit", "size": 12642 }
[ "ca.eandb.jmist.framework.Material", "ca.eandb.jmist.framework.color.ColorModel" ]
import ca.eandb.jmist.framework.Material; import ca.eandb.jmist.framework.color.ColorModel;
import ca.eandb.jmist.framework.*; import ca.eandb.jmist.framework.color.*;
[ "ca.eandb.jmist" ]
ca.eandb.jmist;
695,716
public void testGenerateCertificates() throws Exception { CertificateFactory factory = CertificateFactory.getInstance("X.509"); // Testing the Certificates generation // on the base of PKCS7 SignedData object ByteArrayInputStream bais = new ByteArrayInputStream( Base...
void function() throws Exception { CertificateFactory factory = CertificateFactory.getInstance("X.509"); ByteArrayInputStream bais = new ByteArrayInputStream( Base64.decode(pkcs7so.getBytes("UTF-8"))); Collection certs = factory.generateCertificates(bais); assertNotNull(STR, certs); assertEquals(STR, 2, certs.size()); ...
/** * generateCertificates method testing. */
generateCertificates method testing
testGenerateCertificates
{ "repo_name": "rex-xxx/mt6572_x201", "path": "external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/CertificateFactory_ImplTest.java", "license": "gpl-2.0", "size": 34378 }
[ "java.io.ByteArrayInputStream", "java.security.cert.CertificateFactory", "java.security.cert.X509Certificate", "java.util.Collection", "java.util.Iterator", "org.apache.harmony.luni.util.Base64" ]
import java.io.ByteArrayInputStream; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; import java.util.Collection; import java.util.Iterator; import org.apache.harmony.luni.util.Base64;
import java.io.*; import java.security.cert.*; import java.util.*; import org.apache.harmony.luni.util.*;
[ "java.io", "java.security", "java.util", "org.apache.harmony" ]
java.io; java.security; java.util; org.apache.harmony;
429,832
public ASN1Primitive toASN1Primitive() { return attributes; }
ASN1Primitive function() { return attributes; }
/** * <pre> * Attributes ::= * SET SIZE(1..MAX) OF Attribute -- according to RFC 5652 * </pre> * @return */
<code> Attributes ::= SET SIZE(1..MAX) OF Attribute -- according to RFC 5652 </code>
toASN1Primitive
{ "repo_name": "sake/bouncycastle-java", "path": "src/org/bouncycastle/asn1/cms/Attributes.java", "license": "mit", "size": 1285 }
[ "org.bouncycastle.asn1.ASN1Primitive" ]
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.*;
[ "org.bouncycastle.asn1" ]
org.bouncycastle.asn1;
1,863,164
public SocketRepository getSocketRepository() { return socketRepository; }
SocketRepository function() { return socketRepository; }
/** * Gets the socket repository. * * @return the socket repository */
Gets the socket repository
getSocketRepository
{ "repo_name": "bmorrise/pentaho-kettle", "path": "engine/src/main/java/org/pentaho/di/trans/Trans.java", "license": "apache-2.0", "size": 199512 }
[ "org.pentaho.di.www.SocketRepository" ]
import org.pentaho.di.www.SocketRepository;
import org.pentaho.di.www.*;
[ "org.pentaho.di" ]
org.pentaho.di;
667,228
String getEntityContent(HttpResponse response) throws IOException { BufferedReader br = new BufferedReader( new InputStreamReader((response.getEntity().getContent()))); String output; System.err.println("Output from Server -> "); String json = ""; while ((outp...
String getEntityContent(HttpResponse response) throws IOException { BufferedReader br = new BufferedReader( new InputStreamReader((response.getEntity().getContent()))); String output; System.err.println(STR); String json = STRJSON:" + json); return json; }
/** * Reads http data whenever grab data from the server. Not our code (taken from the ES example * project) * @param response response from the elastic search server * @return a string with the json data retreived from the server * @throws IOException */
Reads http data whenever grab data from the server. Not our code (taken from the ES example project)
getEntityContent
{ "repo_name": "CMPUT301F15T14/AndroidDesignProject", "path": "app/src/main/java/ca/ualberta/t14/gametrader/NetworkController.java", "license": "gpl-2.0", "size": 26619 }
[ "java.io.BufferedReader", "java.io.IOException", "java.io.InputStreamReader", "org.apache.http.HttpResponse" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.apache.http.HttpResponse;
import java.io.*; import org.apache.http.*;
[ "java.io", "org.apache.http" ]
java.io; org.apache.http;
374,727
public Observable<ServiceResponse<Page<TldLegalAgreementInner>>> listAgreementsSinglePageAsync(final String name, final Boolean includePrivacy) { if (name == null) { throw new IllegalArgumentException("Parameter name is required and cannot be null."); } if (this.client.subscripti...
Observable<ServiceResponse<Page<TldLegalAgreementInner>>> function(final String name, final Boolean includePrivacy) { if (name == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); }
/** * Gets all legal agreements that user needs to accept before purchasing a domain. * Gets all legal agreements that user needs to accept before purchasing a domain. * ServiceResponse<PageImpl<TldLegalAgreementInner>> * @param name Name of the top-level domain. ServiceResponse<PageImpl<TldLegal...
Gets all legal agreements that user needs to accept before purchasing a domain. Gets all legal agreements that user needs to accept before purchasing a domain
listAgreementsSinglePageAsync
{ "repo_name": "anudeepsharma/azure-sdk-for-java", "path": "azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/TopLevelDomainsInner.java", "license": "mit", "size": 41955 }
[ "com.microsoft.azure.Page", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
1,978,163
private Intent createSettingsIntent() { return PreferencesLauncher.createIntentForSettingsPage( mApplicationContext, mAccountManagementFragment.getCanonicalName()); }
Intent function() { return PreferencesLauncher.createIntentForSettingsPage( mApplicationContext, mAccountManagementFragment.getCanonicalName()); }
/** * Creates an intent that launches the Chrome settings, and automatically opens the fragment * for signed in users. * * @return the intent for opening the settings */
Creates an intent that launches the Chrome settings, and automatically opens the fragment for signed in users
createSettingsIntent
{ "repo_name": "mogoweb/365browser", "path": "app/src/main/java/org/chromium/chrome/browser/sync/SyncNotificationController.java", "license": "apache-2.0", "size": 7846 }
[ "android.content.Intent", "org.chromium.chrome.browser.preferences.PreferencesLauncher" ]
import android.content.Intent; import org.chromium.chrome.browser.preferences.PreferencesLauncher;
import android.content.*; import org.chromium.chrome.browser.preferences.*;
[ "android.content", "org.chromium.chrome" ]
android.content; org.chromium.chrome;
2,816,740
public void stop() throws InterruptedException { webServer.stop(); } public static class StackServlet extends HttpServlet { private static final long serialVersionUID = -6284183679759467039L;
void function() throws InterruptedException { webServer.stop(); } public static class StackServlet extends HttpServlet { private static final long serialVersionUID = -6284183679759467039L;
/** * stop the server */
stop the server
stop
{ "repo_name": "sbyoun/i-mapreduce", "path": "src/core/org/apache/hadoop/http/HttpServer.java", "license": "apache-2.0", "size": 12634 }
[ "javax.servlet.http.HttpServlet" ]
import javax.servlet.http.HttpServlet;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
1,345,989
synchronized void recycleConnection(PooledConnection pc) { if (activeConnections.get() <= 0) { throw new AssertionError(); } activeConnections.decrementAndGet(); if (!isDisposed && activeConnections.get() < maxConnections) { recycledConnections.add(pc); } else { closeConnection(p...
synchronized void recycleConnection(PooledConnection pc) { if (activeConnections.get() <= 0) { throw new AssertionError(); } activeConnections.decrementAndGet(); if (!isDisposed && activeConnections.get() < maxConnections) { recycledConnections.add(pc); } else { closeConnection(pc); } if (activeConnections.get() >= max...
/** * This method usually puts the connection back into the pool. There are some * exceptions: if the pool is disposed, the connection is disposed as well. If * the pool is full, the connection is closed. * * @param pc * the pooled connection */
This method usually puts the connection back into the pool. There are some exceptions: if the pool is disposed, the connection is disposed as well. If the pool is full, the connection is closed
recycleConnection
{ "repo_name": "alibaba/wasp", "path": "src/main/java/com/alibaba/wasp/jdbcx/JdbcConnectionPool.java", "license": "apache-2.0", "size": 9535 }
[ "javax.sql.PooledConnection" ]
import javax.sql.PooledConnection;
import javax.sql.*;
[ "javax.sql" ]
javax.sql;
2,910,911
@Override public Repository getRepository() { return repository; }
Repository function() { return repository; }
/** * Gets the repository. * * @return the repository */
Gets the repository
getRepository
{ "repo_name": "kurtwalker/pentaho-kettle", "path": "engine/src/main/java/org/pentaho/di/base/AbstractMeta.java", "license": "apache-2.0", "size": 55564 }
[ "org.pentaho.di.repository.Repository" ]
import org.pentaho.di.repository.Repository;
import org.pentaho.di.repository.*;
[ "org.pentaho.di" ]
org.pentaho.di;
1,161,808
private void revokeInstallAppPolicy(org.wso2.emm.agent.beans.Operation operation) throws AndroidAgentException { String appIdentifier=null; try { JSONObject appData = new JSONObject(operation.getPayLoad().toString()); if (!appData.isNull(resources.getString(R.string.app_id...
void function(org.wso2.emm.agent.beans.Operation operation) throws AndroidAgentException { String appIdentifier=null; try { JSONObject appData = new JSONObject(operation.getPayLoad().toString()); if (!appData.isNull(resources.getString(R.string.app_identifier))) { appIdentifier = appData.getString(resources.getString(R...
/** * Revokes install app policy on the device (Particular app in the policy should be removed). * * @param operation - Operation object. */
Revokes install app policy on the device (Particular app in the policy should be removed)
revokeInstallAppPolicy
{ "repo_name": "Gayany/product-mdm", "path": "modules/mobile-agents/android/client/client/src/main/java/org/wso2/emm/agent/services/PolicyRevokeHandler.java", "license": "apache-2.0", "size": 9404 }
[ "org.json.JSONException", "org.json.JSONObject", "org.wso2.emm.agent.AndroidAgentException" ]
import org.json.JSONException; import org.json.JSONObject; import org.wso2.emm.agent.AndroidAgentException;
import org.json.*; import org.wso2.emm.agent.*;
[ "org.json", "org.wso2.emm" ]
org.json; org.wso2.emm;
2,798,204
void sendFeatureReplyConfiguration() throws IOException { // Ensure we receive the full packet via PacketIn OFSetConfig config = (OFSetConfig) factory .getMessage(OFType.SET_CONFIG); config.setMissSendLength((short) 0xffff) .setLengthU(OFSwitch...
void sendFeatureReplyConfiguration() throws IOException { OFSetConfig config = (OFSetConfig) factory .getMessage(OFType.SET_CONFIG); config.setMissSendLength((short) 0xffff) .setLengthU(OFSwitchConfig.MINIMUM_LENGTH); sw.write(config, null); sw.write(factory.getMessage(OFType.GET_CONFIG_REQUEST), null); OFStatisticsReq...
/** * Send the configuration requests we can only do after we have * the features reply * @throws IOException */
Send the configuration requests we can only do after we have the features reply
sendFeatureReplyConfiguration
{ "repo_name": "achanda/cachecontroller", "path": "src/main/java/net/floodlightcontroller/core/internal/Controller.java", "license": "apache-2.0", "size": 92483 }
[ "java.io.IOException", "java.util.List", "java.util.concurrent.Future", "net.floodlightcontroller.core.IOFSwitch", "org.openflow.protocol.OFSetConfig", "org.openflow.protocol.OFStatisticsRequest", "org.openflow.protocol.OFSwitchConfig", "org.openflow.protocol.OFType", "org.openflow.protocol.statisti...
import java.io.IOException; import java.util.List; import java.util.concurrent.Future; import net.floodlightcontroller.core.IOFSwitch; import org.openflow.protocol.OFSetConfig; import org.openflow.protocol.OFStatisticsRequest; import org.openflow.protocol.OFSwitchConfig; import org.openflow.protocol.OFType; import org....
import java.io.*; import java.util.*; import java.util.concurrent.*; import net.floodlightcontroller.core.*; import org.openflow.protocol.*; import org.openflow.protocol.statistics.*;
[ "java.io", "java.util", "net.floodlightcontroller.core", "org.openflow.protocol" ]
java.io; java.util; net.floodlightcontroller.core; org.openflow.protocol;
428,561
@Api public GeometryIndex getIndex() { return currentIndex; } private class GeometryIndexMapAdapter extends AbstractGeometryIndexMapHandler implements com.google.gwt.event.dom.client.MouseMoveHandler, com.google.gwt.event.dom.client.MouseOutHandler, com.google.gwt.event.dom.client.MouseOverHandler, Map...
GeometryIndex function() { return currentIndex; } private class GeometryIndexMapAdapter extends AbstractGeometryIndexMapHandler implements com.google.gwt.event.dom.client.MouseMoveHandler, com.google.gwt.event.dom.client.MouseOutHandler, com.google.gwt.event.dom.client.MouseOverHandler, MapDownHandler, MapUpHandler, Ma...
/** * Returns the index of the geometry part on which the event occurs. * * @return the index */
Returns the index of the geometry part on which the event occurs
getIndex
{ "repo_name": "geomajas/geomajas-project-client-gwt", "path": "plugin/editing/editing-javascript-api/src/main/java/org/geomajas/plugin/editing/jsapi/client/handler/JsGeometryIndexMapHandlerFactory.java", "license": "agpl-3.0", "size": 6711 }
[ "org.geomajas.gwt.client.handler.MapDownHandler", "org.geomajas.gwt.client.handler.MapDragHandler", "org.geomajas.gwt.client.handler.MapUpHandler", "org.geomajas.plugin.editing.client.handler.AbstractGeometryIndexMapHandler", "org.geomajas.plugin.editing.client.service.GeometryIndex", "org.geomajas.plugin...
import org.geomajas.gwt.client.handler.MapDownHandler; import org.geomajas.gwt.client.handler.MapDragHandler; import org.geomajas.gwt.client.handler.MapUpHandler; import org.geomajas.plugin.editing.client.handler.AbstractGeometryIndexMapHandler; import org.geomajas.plugin.editing.client.service.GeometryIndex; import or...
import org.geomajas.gwt.client.handler.*; import org.geomajas.plugin.editing.client.handler.*; import org.geomajas.plugin.editing.client.service.*; import org.geomajas.plugin.jsapi.client.map.controller.*;
[ "org.geomajas.gwt", "org.geomajas.plugin" ]
org.geomajas.gwt; org.geomajas.plugin;
2,347,571
List<SqlStatementData> getParameterAggregatedSqlStatements(SqlStatementData sqlStatementData);
List<SqlStatementData> getParameterAggregatedSqlStatements(SqlStatementData sqlStatementData);
/** * Returns a list of the SQL statements for a given template aggregated by the parameters. In * the template, only the platform id is extracted. If the template holds the SQL query string, * only objects with this query string will be returned. * * @param sqlStatementData * The template contai...
Returns a list of the SQL statements for a given template aggregated by the parameters. In the template, only the platform id is extracted. If the template holds the SQL query string, only objects with this query string will be returned
getParameterAggregatedSqlStatements
{ "repo_name": "ivansenic/inspectIT", "path": "inspectit.shared.cs/src/main/java/rocks/inspectit/shared/cs/cmr/service/ISqlDataAccessService.java", "license": "agpl-3.0", "size": 2643 }
[ "java.util.List", "rocks.inspectit.shared.all.communication.data.SqlStatementData" ]
import java.util.List; import rocks.inspectit.shared.all.communication.data.SqlStatementData;
import java.util.*; import rocks.inspectit.shared.all.communication.data.*;
[ "java.util", "rocks.inspectit.shared" ]
java.util; rocks.inspectit.shared;
909,505
protected void assertModelAttributeValues(ModelAndView mav, Map<String, Object> expectedModel) { try { ModelAndViewAssert.assertModelAttributeValues(mav, expectedModel); } catch (AssertionError e) { throw new AssertionFailedError(e.getMessage()); } }
void function(ModelAndView mav, Map<String, Object> expectedModel) { try { ModelAndViewAssert.assertModelAttributeValues(mav, expectedModel); } catch (AssertionError e) { throw new AssertionFailedError(e.getMessage()); } }
/** * Inspect the {@code expectedModel} to see if all elements in the * model appear and are equal. * @param mav ModelAndView to test against (never {@code null}) * @param expectedModel the expected model */
Inspect the expectedModel to see if all elements in the model appear and are equal
assertModelAttributeValues
{ "repo_name": "kingtang/spring-learn", "path": "spring-test/src/main/java/org/springframework/test/web/AbstractModelAndViewTests.java", "license": "gpl-3.0", "size": 5905 }
[ "java.util.Map", "junit.framework.AssertionFailedError", "org.springframework.web.servlet.ModelAndView" ]
import java.util.Map; import junit.framework.AssertionFailedError; import org.springframework.web.servlet.ModelAndView;
import java.util.*; import junit.framework.*; import org.springframework.web.servlet.*;
[ "java.util", "junit.framework", "org.springframework.web" ]
java.util; junit.framework; org.springframework.web;
2,615,722
protected static float getRawY(MotionEvent event, int pointerIndex) { float offset = event.getY() - event.getRawY(); if (pointerIndex < event.getPointerCount()) { return event.getY(pointerIndex) + offset; } return 0f; }
static float function(MotionEvent event, int pointerIndex) { float offset = event.getY() - event.getRawY(); if (pointerIndex < event.getPointerCount()) { return event.getY(pointerIndex) + offset; } return 0f; }
/** * MotionEvent has no getRawY(int) method; simulate it pending future API approval. */
MotionEvent has no getRawY(int) method; simulate it pending future API approval
getRawY
{ "repo_name": "xdtianyu/Gallery", "path": "app/src/main/java/org/xdty/gallery/view/gesture/TwoFingerGestureDetector.java", "license": "gpl-3.0", "size": 6306 }
[ "android.view.MotionEvent" ]
import android.view.MotionEvent;
import android.view.*;
[ "android.view" ]
android.view;
2,112,806
Node findParent(ArtifactContext context);
Node findParent(ArtifactContext context);
/** * Find parent node for context. * * @param context the context * @return parent node or null if cannot be found */
Find parent node for context
findParent
{ "repo_name": "ceylon/ceylon", "path": "cmr/api/src/main/java/org/eclipse/ceylon/cmr/api/CmrRepository.java", "license": "apache-2.0", "size": 2051 }
[ "org.eclipse.ceylon.cmr.spi.Node" ]
import org.eclipse.ceylon.cmr.spi.Node;
import org.eclipse.ceylon.cmr.spi.*;
[ "org.eclipse.ceylon" ]
org.eclipse.ceylon;
2,430,394
public Type toType(final ITypeBinding typeBinding, final TypeNameDecider typeNameDecider) { if (typeBinding == null) { throw new IllegalArgumentException(null, "typeBinding cannot be null"); //$NON-NLS-1$ } if (typeBinding.isParameterizedType()) { ParameterizedType type= ast.newParameterizedType(t...
Type function(final ITypeBinding typeBinding, final TypeNameDecider typeNameDecider) { if (typeBinding == null) { throw new IllegalArgumentException(null, STR); } if (typeBinding.isParameterizedType()) { ParameterizedType type= ast.newParameterizedType(toType(typeBinding.getErasure(), typeNameDecider)); List<Type> type...
/** * Converts a type binding into a type. * * @param typeBinding the type binding to convert * @param typeNameDecider decides on how the type should be referenced (simple * name or qualified name) * @return a new type */
Converts a type binding into a type
toType
{ "repo_name": "rpau/AutoRefactor", "path": "plugin/src/main/java/org/autorefactor/jdt/internal/corext/dom/ASTNodeFactory.java", "license": "epl-1.0", "size": 45059 }
[ "java.util.List", "org.autorefactor.util.IllegalArgumentException", "org.autorefactor.util.NotImplementedException", "org.eclipse.jdt.core.dom.ITypeBinding", "org.eclipse.jdt.core.dom.ParameterizedType", "org.eclipse.jdt.core.dom.Type", "org.eclipse.jdt.core.dom.WildcardType" ]
import java.util.List; import org.autorefactor.util.IllegalArgumentException; import org.autorefactor.util.NotImplementedException; import org.eclipse.jdt.core.dom.ITypeBinding; import org.eclipse.jdt.core.dom.ParameterizedType; import org.eclipse.jdt.core.dom.Type; import org.eclipse.jdt.core.dom.WildcardType;
import java.util.*; import org.autorefactor.util.*; import org.eclipse.jdt.core.dom.*;
[ "java.util", "org.autorefactor.util", "org.eclipse.jdt" ]
java.util; org.autorefactor.util; org.eclipse.jdt;
987,724
private SAXParserFactory saxParserFactory = null; public void setXslt(InputSource xsltresource) throws Exception { if ( saxParserFactory == null) { saxParserFactory = SAXParserFactory.newInstance(); saxParserFactory.setNamespaceAware(true); } TemplatesHandler th = factory.newTemplatesHandler(); Strin...
SAXParserFactory saxParserFactory = null; public void function(InputSource xsltresource) throws Exception { if ( saxParserFactory == null) { saxParserFactory = SAXParserFactory.newInstance(); saxParserFactory.setNamespaceAware(true); } TemplatesHandler th = factory.newTemplatesHandler(); String systemId = xsltresource....
/** * Set the xslt resource. * * @param xsltresource * an Input Source to the XSLT * @throws Exception */
Set the xslt resource
setXslt
{ "repo_name": "harfalm/Sakai-10.1", "path": "rwiki/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/service/impl/XSLTTransform.java", "license": "apache-2.0", "size": 4586 }
[ "javax.xml.parsers.SAXParser", "javax.xml.parsers.SAXParserFactory", "javax.xml.transform.sax.TemplatesHandler", "javax.xml.transform.sax.TransformerHandler", "org.xml.sax.InputSource", "org.xml.sax.XMLReader" ]
import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import javax.xml.transform.sax.TemplatesHandler; import javax.xml.transform.sax.TransformerHandler; import org.xml.sax.InputSource; import org.xml.sax.XMLReader;
import javax.xml.parsers.*; import javax.xml.transform.sax.*; import org.xml.sax.*;
[ "javax.xml", "org.xml.sax" ]
javax.xml; org.xml.sax;
2,453,361
protected final ArrayList<Item<DataType>> cloneItems() throws CloneNotSupportedException { ArrayList<Item<DataType>> clonedItems = new ArrayList<>(); for (Item<DataType> item : items) { clonedItems.add(item.clone()); } return clonedItems; }
final ArrayList<Item<DataType>> function() throws CloneNotSupportedException { ArrayList<Item<DataType>> clonedItems = new ArrayList<>(); for (Item<DataType> item : items) { clonedItems.add(item.clone()); } return clonedItems; }
/** * Creates and returns a deep copy of the list, which contains the adapter's underlying data. * * @return A deep copy of the list, which contains the adapter's underlying data, as an instance * of the type {@link ArrayList}. The list may not be null * @throws CloneNotSupportedException ...
Creates and returns a deep copy of the list, which contains the adapter's underlying data
cloneItems
{ "repo_name": "michael-rapp/AndroidAdapters", "path": "library/src/main/java/de/mrapp/android/adapter/list/AbstractListAdapter.java", "license": "apache-2.0", "size": 58612 }
[ "de.mrapp.android.adapter.datastructure.item.Item", "java.util.ArrayList" ]
import de.mrapp.android.adapter.datastructure.item.Item; import java.util.ArrayList;
import de.mrapp.android.adapter.datastructure.item.*; import java.util.*;
[ "de.mrapp.android", "java.util" ]
de.mrapp.android; java.util;
2,093,155
@Override public void registerByteSizeObserver( Map<K, V> map, ElementByteSizeObserver observer, Context context) throws Exception { observer.update(4L); for (Entry<K, V> entry : map.entrySet()) { keyCoder.registerByteSizeObserver( entry.getKey(), observer, context.nested()); ...
void function( Map<K, V> map, ElementByteSizeObserver observer, Context context) throws Exception { observer.update(4L); for (Entry<K, V> entry : map.entrySet()) { keyCoder.registerByteSizeObserver( entry.getKey(), observer, context.nested()); valueCoder.registerByteSizeObserver( entry.getValue(), observer, context.nes...
/** * Notifies ElementByteSizeObserver about the byte size of the * encoded value using this coder. */
Notifies ElementByteSizeObserver about the byte size of the encoded value using this coder
registerByteSizeObserver
{ "repo_name": "tyagihas/DataflowJavaSDK", "path": "sdk/src/main/java/com/google/cloud/dataflow/sdk/coders/MapCoder.java", "license": "apache-2.0", "size": 4950 }
[ "com.google.cloud.dataflow.sdk.util.common.ElementByteSizeObserver", "java.util.Map" ]
import com.google.cloud.dataflow.sdk.util.common.ElementByteSizeObserver; import java.util.Map;
import com.google.cloud.dataflow.sdk.util.common.*; import java.util.*;
[ "com.google.cloud", "java.util" ]
com.google.cloud; java.util;
2,000,143
static CodeBlock invokeAll( ImmutableSet<InjectionSite> injectionSites, ClassName generatedTypeName, CodeBlock instanceCodeBlock, TypeMirror instanceType, Function<DependencyRequest, CodeBlock> dependencyUsage, DaggerTypes types, KotlinMetadataUtil metadataUti...
static CodeBlock invokeAll( ImmutableSet<InjectionSite> injectionSites, ClassName generatedTypeName, CodeBlock instanceCodeBlock, TypeMirror instanceType, Function<DependencyRequest, CodeBlock> dependencyUsage, DaggerTypes types, KotlinMetadataUtil metadataUtil) { return injectionSites.stream() .map( injectionSite -> {...
/** * Invokes each of the injection methods for {@code injectionSites}, with the dependencies * transformed using the {@code dependencyUsage} function. * * @param instanceType the type of the {@code instance} parameter */
Invokes each of the injection methods for injectionSites, with the dependencies transformed using the dependencyUsage function
invokeAll
{ "repo_name": "dushmis/dagger", "path": "java/dagger/internal/codegen/writing/InjectionMethods.java", "license": "apache-2.0", "size": 25280 }
[ "com.google.auto.common.MoreElements", "com.google.common.collect.ImmutableSet", "com.squareup.javapoet.ClassName", "com.squareup.javapoet.CodeBlock", "java.util.function.Function", "javax.lang.model.type.TypeMirror" ]
import com.google.auto.common.MoreElements; import com.google.common.collect.ImmutableSet; import com.squareup.javapoet.ClassName; import com.squareup.javapoet.CodeBlock; import java.util.function.Function; import javax.lang.model.type.TypeMirror;
import com.google.auto.common.*; import com.google.common.collect.*; import com.squareup.javapoet.*; import java.util.function.*; import javax.lang.model.type.*;
[ "com.google.auto", "com.google.common", "com.squareup.javapoet", "java.util", "javax.lang" ]
com.google.auto; com.google.common; com.squareup.javapoet; java.util; javax.lang;
1,650,121
if(StringUtils.isNotBlank(credentialId)) { return credentialId; } if (GithubScm.ID.equals(scmId)) { return scmId; } return GithubEnterpriseScm.ID + ":" + DigestUtils.sha256Hex(apiUrl); }
if(StringUtils.isNotBlank(credentialId)) { return credentialId; } if (GithubScm.ID.equals(scmId)) { return scmId; } return GithubEnterpriseScm.ID + ":" + DigestUtils.sha256Hex(apiUrl); }
/** * Create proper credentialId for GitHub and GitHub Enterprise. * If null/empty credentialId value is passed in, will compute proper default value. * * @param scmId "github" or "github-enterprise" * @param apiUrl apiUrl, for enterprise only * @return credentialId */
Create proper credentialId for GitHub and GitHub Enterprise. If null/empty credentialId value is passed in, will compute proper default value
computeCredentialId
{ "repo_name": "jenkinsci/blueocean-plugin", "path": "blueocean-github-pipeline/src/main/java/io/jenkins/blueocean/blueocean_github_pipeline/GithubCredentialUtils.java", "license": "mit", "size": 877 }
[ "io.jenkins.blueocean.commons.DigestUtils", "org.apache.commons.lang.StringUtils" ]
import io.jenkins.blueocean.commons.DigestUtils; import org.apache.commons.lang.StringUtils;
import io.jenkins.blueocean.commons.*; import org.apache.commons.lang.*;
[ "io.jenkins.blueocean", "org.apache.commons" ]
io.jenkins.blueocean; org.apache.commons;
2,522,902
Writer write(Writer writer, int indentFactor, int indent) throws JSONException { try { boolean commanate = false; int length = this.length(); writer.write('['); if (length == 1) { JSONObject.writeValue(writer, myArrayList.get(0), indentFactor, indent); } else if (length != 0) { ...
Writer write(Writer writer, int indentFactor, int indent) throws JSONException { try { boolean commanate = false; int length = this.length(); writer.write('['); if (length == 1) { JSONObject.writeValue(writer, myArrayList.get(0), indentFactor, indent); } else if (length != 0) { final int newindent = indent + indentFact...
/** * Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added. * <p> * Warning: This method assumes that the data structure is acyclical. * * @param indentFactor The number of spaces to add to each level of indentation. * @param indent The indention of th...
Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added. Warning: This method assumes that the data structure is acyclical
write
{ "repo_name": "wskplho/jdroid", "path": "jdroid-java/src/main/java/com/jdroid/java/json/JSONArray.java", "license": "apache-2.0", "size": 27134 }
[ "java.io.IOException", "java.io.Writer" ]
import java.io.IOException; import java.io.Writer;
import java.io.*;
[ "java.io" ]
java.io;
753,609
private void afterBatch(BatchBackend backend) { Set<Class<?>> targetedClasses = searchFactoryImplementor.getIndexedTypesPolymorphic( rootEntities ); if ( this.optimizeAtEnd ) { backend.optimize( targetedClasses ); } backend.flush( targetedClasses ); }
void function(BatchBackend backend) { Set<Class<?>> targetedClasses = searchFactoryImplementor.getIndexedTypesPolymorphic( rootEntities ); if ( this.optimizeAtEnd ) { backend.optimize( targetedClasses ); } backend.flush( targetedClasses ); }
/** * Operations to do after all subthreads finished their work on index * * @param backend */
Operations to do after all subthreads finished their work on index
afterBatch
{ "repo_name": "emmanuelbernard/hibernate-ogm", "path": "core/src/main/java/org/hibernate/ogm/massindex/impl/BatchCoordinator.java", "license": "lgpl-2.1", "size": 5236 }
[ "java.util.Set", "org.hibernate.search.backend.impl.batch.BatchBackend" ]
import java.util.Set; import org.hibernate.search.backend.impl.batch.BatchBackend;
import java.util.*; import org.hibernate.search.backend.impl.batch.*;
[ "java.util", "org.hibernate.search" ]
java.util; org.hibernate.search;
1,104,067
public static void setStereotypeHierarchyTargetPanel(Profile profile,Property object,VisibleClass targetPanel,ProgressWorker thread){ String stereotypeName=STEREOTYPE_HIERARCHY_NAME; String stereotypeProperty="targetPanel"; Stereotype stereotypeObject=profile.getOwnedStereotype(stereotypeName); if(s...
static void function(Profile profile,Property object,VisibleClass targetPanel,ProgressWorker thread){ String stereotypeName=STEREOTYPE_HIERARCHY_NAME; String stereotypeProperty=STR; Stereotype stereotypeObject=profile.getOwnedStereotype(stereotypeName); if(stereotypeObject!=null) { thread.publishText(STR+stereotypeName...
/** * Applies Hierarchy stereotype to the UML Property element and sets the value of * the targetPanel property value for the Hierarchy stereotype. * @param profile UML profile that defines the Hierarchy stereotype * @param object UML Property element for which to apply Hierarchy stereotype an...
Applies Hierarchy stereotype to the UML Property element and sets the value of the targetPanel property value for the Hierarchy stereotype
setStereotypeHierarchyTargetPanel
{ "repo_name": "VladimirRadojcic/Master", "path": "KrokiMockupTool/src/kroki/app/utils/uml/stereotypes/PropertyStereotype.java", "license": "mit", "size": 33120 }
[ "org.eclipse.uml2.uml.Profile", "org.eclipse.uml2.uml.Property", "org.eclipse.uml2.uml.Stereotype" ]
import org.eclipse.uml2.uml.Profile; import org.eclipse.uml2.uml.Property; import org.eclipse.uml2.uml.Stereotype;
import org.eclipse.uml2.uml.*;
[ "org.eclipse.uml2" ]
org.eclipse.uml2;
2,331,684
private String decodePercent(String str) { String decoded = null; try { decoded = URLDecoder.decode(str, "UTF8"); } catch (UnsupportedEncodingException ignored) { } return decoded; }
String function(String str) { String decoded = null; try { decoded = URLDecoder.decode(str, "UTF8"); } catch (UnsupportedEncodingException ignored) { } return decoded; }
/** * Decode percent encoded <code>String</code> values. * * @param str the percent encoded <code>String</code> * @return expanded form of the input, for example "foo%20bar" becomes "foo bar" */
Decode percent encoded <code>String</code> values
decodePercent
{ "repo_name": "mfietz/AntennaPod", "path": "app/src/androidTest/java/de/test/antennapod/util/service/download/NanoHTTPD.java", "license": "mit", "size": 53580 }
[ "java.io.UnsupportedEncodingException", "java.net.URLDecoder" ]
import java.io.UnsupportedEncodingException; import java.net.URLDecoder;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
2,177,694
public void drawFocus() { if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { GL11.glPushMatrix(); GL11.glTranslated(movement.getPosition().getX(), movement .getPosition().getY(), -1); GL11.glRotated(movement.getDrawingAngle(), 0, 0, 1); focusAnimation.draw(); GL11.glPopMatrix(); } }
void function() { if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { GL11.glPushMatrix(); GL11.glTranslated(movement.getPosition().getX(), movement .getPosition().getY(), -1); GL11.glRotated(movement.getDrawingAngle(), 0, 0, 1); focusAnimation.draw(); GL11.glPopMatrix(); } }
/** * Draws the focused player animation */
Draws the focused player animation
drawFocus
{ "repo_name": "HarZe/java-danmaku-engine", "path": "JDE/src/com/jde/model/entity/player/Player.java", "license": "gpl-3.0", "size": 8471 }
[ "org.lwjgl.input.Keyboard" ]
import org.lwjgl.input.Keyboard;
import org.lwjgl.input.*;
[ "org.lwjgl.input" ]
org.lwjgl.input;
1,970,979
public List<String> getBuiltIndexes();
List<String> function();
/** * Returns a list of the names of the built column indexes for current store * @return list of the index names */
Returns a list of the names of the built column indexes for current store
getBuiltIndexes
{ "repo_name": "miguel0afd/cassandra-cqlMod", "path": "src/java/org/apache/cassandra/db/ColumnFamilyStoreMBean.java", "license": "apache-2.0", "size": 10878 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
671,638
public static void initReferenceTemplate(CFlags flags, boolean required) { initReferenceTemplate(flags, TEMPLATE_FLAG, required, ""); }
static void function(CFlags flags, boolean required) { initReferenceTemplate(flags, TEMPLATE_FLAG, required, ""); }
/** * Initialize the flag for specifying reference genome SDF * @param flags shared flags * @param required true if the reference is a required parameter */
Initialize the flag for specifying reference genome SDF
initReferenceTemplate
{ "repo_name": "RealTimeGenomics/rtg-tools", "path": "src/com/rtg/launcher/CommonFlags.java", "license": "bsd-2-clause", "size": 30102 }
[ "com.rtg.util.cli.CFlags" ]
import com.rtg.util.cli.CFlags;
import com.rtg.util.cli.*;
[ "com.rtg.util" ]
com.rtg.util;
1,124,749
protected void onAfterStop() { final SharedPreferences sharedPrefs = getSharedPreferencesForProfile(); if (sharedPrefs.getBoolean(PREFS_IS_FIRST_RUN, true)) { sharedPrefs.edit().putBoolean(PREFS_IS_FIRST_RUN, false).apply(); } }
void function() { final SharedPreferences sharedPrefs = getSharedPreferencesForProfile(); if (sharedPrefs.getBoolean(PREFS_IS_FIRST_RUN, true)) { sharedPrefs.edit().putBoolean(PREFS_IS_FIRST_RUN, false).apply(); } }
/** * Derived classes may call this if they require something to be done *after* they've * done their onStop() handling. */
Derived classes may call this if they require something to be done *after* they've done their onStop() handling
onAfterStop
{ "repo_name": "bill-mccloskey/searchfox", "path": "tests/tests/files/GeckoApp.java", "license": "mpl-2.0", "size": 104036 }
[ "android.content.SharedPreferences" ]
import android.content.SharedPreferences;
import android.content.*;
[ "android.content" ]
android.content;
1,772,687
@Override protected Object clone() throws CloneNotSupportedException { GridListSet<V> clone = (GridListSet<V>)super.clone(); clone.vals = (LinkedList<V>)vals.clone(); clone.comp = comp; clone.strict = strict; return clone; }
@Override Object function() throws CloneNotSupportedException { GridListSet<V> clone = (GridListSet<V>)super.clone(); clone.vals = (LinkedList<V>)vals.clone(); clone.comp = comp; clone.strict = strict; return clone; }
/** * Clones this set. * * @return Clone of this set. * @throws CloneNotSupportedException */
Clones this set
clone
{ "repo_name": "ptupitsyn/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/GridListSet.java", "license": "apache-2.0", "size": 14594 }
[ "java.util.LinkedList" ]
import java.util.LinkedList;
import java.util.*;
[ "java.util" ]
java.util;
764,948
private void create() { try { // Gather info... CombinationLookupMeta info = new CombinationLookupMeta(); getInfo( info ); String name = stepname; // new name might not yet be linked to other steps! StepMeta stepMeta = new StepMeta( BaseMessages.getString( PKG, "CombinationLo...
void function() { try { CombinationLookupMeta info = new CombinationLookupMeta(); getInfo( info ); String name = stepname; StepMeta stepMeta = new StepMeta( BaseMessages.getString( PKG, STR ), name, info ); RowMetaInterface prev = transMeta.getPrevStepFields( stepname ); SQLStatement sql = info.getSQLStatements( transM...
/** * Generate code for create table. Conversions done by database. */
Generate code for create table. Conversions done by database
create
{ "repo_name": "codek/pentaho-kettle", "path": "ui/src/org/pentaho/di/ui/trans/steps/combinationlookup/CombinationLookupDialog.java", "license": "apache-2.0", "size": 40238 }
[ "org.eclipse.swt.widgets.MessageBox", "org.pentaho.di.core.SQLStatement", "org.pentaho.di.core.exception.KettleException", "org.pentaho.di.core.row.RowMetaInterface", "org.pentaho.di.i18n.BaseMessages", "org.pentaho.di.trans.step.StepMeta", "org.pentaho.di.trans.steps.combinationlookup.CombinationLookup...
import org.eclipse.swt.widgets.MessageBox; import org.pentaho.di.core.SQLStatement; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.core.row.RowMetaInterface; import org.pentaho.di.i18n.BaseMessages; import org.pentaho.di.trans.step.StepMeta; import org.pentaho.di.trans.steps.combinationlook...
import org.eclipse.swt.widgets.*; import org.pentaho.di.core.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.core.row.*; import org.pentaho.di.i18n.*; import org.pentaho.di.trans.step.*; import org.pentaho.di.trans.steps.combinationlookup.*; import org.pentaho.di.ui.core.database.dialog.*; import org.p...
[ "org.eclipse.swt", "org.pentaho.di" ]
org.eclipse.swt; org.pentaho.di;
1,499,804
@Test public void getSecondaryNameServiceId() { Configuration conf = setupAddress(DFS_NAMENODE_SECONDARY_HTTP_ADDRESS_KEY); assertEquals("nn1", DFSUtil.getSecondaryNameServiceId(conf)); }
void function() { Configuration conf = setupAddress(DFS_NAMENODE_SECONDARY_HTTP_ADDRESS_KEY); assertEquals("nn1", DFSUtil.getSecondaryNameServiceId(conf)); }
/** * Test {@link DFSUtil#getSecondaryNameServiceId(Configuration)} to ensure * nameserviceId for backup node is determined based on matching the address * with local node's address */
Test <code>DFSUtil#getSecondaryNameServiceId(Configuration)</code> to ensure nameserviceId for backup node is determined based on matching the address with local node's address
getSecondaryNameServiceId
{ "repo_name": "jth/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSUtil.java", "license": "apache-2.0", "size": 35563 }
[ "org.apache.hadoop.conf.Configuration", "org.junit.Assert" ]
import org.apache.hadoop.conf.Configuration; import org.junit.Assert;
import org.apache.hadoop.conf.*; import org.junit.*;
[ "org.apache.hadoop", "org.junit" ]
org.apache.hadoop; org.junit;
907,072
public static Object sum(Iterator<Object> self, Object initialValue, Closure closure) { return sum(toList(self), initialValue, closure, false); }
static Object function(Iterator<Object> self, Object initialValue, Closure closure) { return sum(toList(self), initialValue, closure, false); }
/** * Sums the result of applying a closure to each item of an Iterator to some initial value. * <code>iter.sum(initVal, closure)</code> is equivalent to: * <code>iter.collect(closure).sum(initVal)</code>. The iterator will become * exhausted of elements after determining the sum value. * ...
Sums the result of applying a closure to each item of an Iterator to some initial value. <code>iter.sum(initVal, closure)</code> is equivalent to: <code>iter.collect(closure).sum(initVal)</code>. The iterator will become exhausted of elements after determining the sum value
sum
{ "repo_name": "mv2a/yajsw", "path": "src/groovy-patch/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java", "license": "apache-2.0", "size": 704164 }
[ "groovy.lang.Closure", "java.util.Iterator" ]
import groovy.lang.Closure; import java.util.Iterator;
import groovy.lang.*; import java.util.*;
[ "groovy.lang", "java.util" ]
groovy.lang; java.util;
1,565,447
public static final KeywordPlanAdGroupKeywordServiceClient create( KeywordPlanAdGroupKeywordServiceSettings settings) throws IOException { return new KeywordPlanAdGroupKeywordServiceClient(settings); }
static final KeywordPlanAdGroupKeywordServiceClient function( KeywordPlanAdGroupKeywordServiceSettings settings) throws IOException { return new KeywordPlanAdGroupKeywordServiceClient(settings); }
/** * Constructs an instance of KeywordPlanAdGroupKeywordServiceClient, using the given settings. The * channels are created based on the settings passed in, or defaults for any settings that are not * set. */
Constructs an instance of KeywordPlanAdGroupKeywordServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set
create
{ "repo_name": "googleads/google-ads-java", "path": "google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/services/KeywordPlanAdGroupKeywordServiceClient.java", "license": "apache-2.0", "size": 12679 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,071,891
@AfterClass public static void afterClass() { // Cleans up the datafile if it exists due to a failed test File dataFile = new File(System.getProperty("user.dir") + System.getProperty("file.separator") + "test.h5"); // If it exists, remove it if (dataFile.exists()) { dataFile.delete(); } }
static void function() { File dataFile = new File(System.getProperty(STR) + System.getProperty(STR) + STR); if (dataFile.exists()) { dataFile.delete(); } }
/** * <p> * Removes the test.h5 file after the tests fails (to keep the workspace * clean). * </p> * */
Removes the test.h5 file after the tests fails (to keep the workspace clean).
afterClass
{ "repo_name": "SmithRWORNL/ice", "path": "tests/org.eclipse.ice.reactor.test/src/org/eclipse/ice/reactor/test/LWReactorTester.java", "license": "epl-1.0", "size": 16145 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,537,870
public static <T> Iterator<T> flatIterators(@Nullable final Iterable<Iterator<T>> c) { return isEmpty(c) ? GridFunc.<T>emptyIterator() : new GridIteratorAdapter<T>() { private Iterator<? extends Iterator<T>> a = c.iterator(); private Iterator<T> b; ...
static <T> Iterator<T> function(@Nullable final Iterable<Iterator<T>> c) { return isEmpty(c) ? GridFunc.<T>emptyIterator() : new GridIteratorAdapter<T>() { private Iterator<? extends Iterator<T>> a = c.iterator(); private Iterator<T> b; private boolean moved = true; private boolean more;
/** * Flattens iterable-of-iterators and returns iterator over the * elements of the inner collections. This method doesn't create any * new collections or copies any elements. * * @param c Input iterable of iterators. * @return Iterator over the elements of given iterators. */
Flattens iterable-of-iterators and returns iterator over the elements of the inner collections. This method doesn't create any new collections or copies any elements
flatIterators
{ "repo_name": "f7753/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/lang/GridFunc.java", "license": "apache-2.0", "size": 159864 }
[ "java.util.Iterator", "org.jetbrains.annotations.Nullable" ]
import java.util.Iterator; import org.jetbrains.annotations.Nullable;
import java.util.*; import org.jetbrains.annotations.*;
[ "java.util", "org.jetbrains.annotations" ]
java.util; org.jetbrains.annotations;
607,142
public List getCommentListeners() { return this.commentListeners; }
List function() { return this.commentListeners; }
/** * Gets the list of comment listeners. * * @return a List of CommentListener instances */
Gets the list of comment listeners
getCommentListeners
{ "repo_name": "arshadalisoomro/pebble", "path": "src/main/java/net/sourceforge/pebble/event/EventListenerList.java", "license": "bsd-3-clause", "size": 5096 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,162,170
@Override public void setNString( int parameterIndex, String value ) throws SQLException { realCallableStatement.setNString( parameterIndex, value ); }
void function( int parameterIndex, String value ) throws SQLException { realCallableStatement.setNString( parameterIndex, value ); }
/** * Sets the designated paramter to the given <code>String</code> object. * The driver converts this to a SQL <code>NCHAR</code> or * <code>NVARCHAR</code> or <code>LONGNVARCHAR</code> value * (depending on the argument's * size relative to the driver's limits on <code>NVARCHAR</code> values) * when...
Sets the designated paramter to the given <code>String</code> object. The driver converts this to a SQL <code>NCHAR</code> or <code>NVARCHAR</code> or <code>LONGNVARCHAR</code> value (depending on the argument's size relative to the driver's limits on <code>NVARCHAR</code> values) when it sends it to the database
setNString
{ "repo_name": "mattyb149/pentaho-orientdb-jdbc", "path": "src/main/java/org/pentaho/community/di/database/orientdb/delegate/DelegateCallableStatement.java", "license": "apache-2.0", "size": 266443 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
567,488
static void assertEquals(Object expected, Object actual) { if (!Objects.equals(expected, actual)) { throw new AssertionError("Expected:\n" + expected + "\nbut got:\n" + actual); } }
static void assertEquals(Object expected, Object actual) { if (!Objects.equals(expected, actual)) { throw new AssertionError(STR + expected + STR + actual); } }
/** * Assert that the two (non-array) objects are equal. */
Assert that the two (non-array) objects are equal
assertEquals
{ "repo_name": "wesm/arrow", "path": "java/flight/flight-core/src/main/java/org/apache/arrow/flight/example/integration/IntegrationAssertions.java", "license": "apache-2.0", "size": 2382 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
2,652,272
// access to low level API public PTArcAnnotation getContainedItem(){ return item; } //getters giving LLAPI object
PTArcAnnotation function(){ return item; }
/** * Return encapsulated object */
Return encapsulated object
getContainedItem
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-PTNet/src/fr/lip6/move/pnml/ptnet/hlapi/PTArcAnnotationHLAPI.java", "license": "epl-1.0", "size": 8010 }
[ "fr.lip6.move.pnml.ptnet.PTArcAnnotation" ]
import fr.lip6.move.pnml.ptnet.PTArcAnnotation;
import fr.lip6.move.pnml.ptnet.*;
[ "fr.lip6.move" ]
fr.lip6.move;
1,162,283
public static Map<String, Object> flowModToStorageEntry(OFFlowMod fm, String sw, String name) { Map<String, Object> entry = new HashMap<String, Object>(); OFMatch match = fm.getMatch(); entry.put(StaticFlowEntryPusher.COLUMN_NAME, name); entry.put(StaticFlowEntryPusher.COLUMN_SWITCH,...
static Map<String, Object> function(OFFlowMod fm, String sw, String name) { Map<String, Object> entry = new HashMap<String, Object>(); OFMatch match = fm.getMatch(); entry.put(StaticFlowEntryPusher.COLUMN_NAME, name); entry.put(StaticFlowEntryPusher.COLUMN_SWITCH, sw); entry.put(StaticFlowEntryPusher.COLUMN_ACTIVE, Boo...
/** * Parses an OFFlowMod (and it's inner OFMatch) to the storage entry format. * @param fm The FlowMod to parse * @param sw The switch the FlowMod is going to be installed on * @param name The name of this static flow entry * @return A Map representation of the storage entry */
Parses an OFFlowMod (and it's inner OFMatch) to the storage entry format
flowModToStorageEntry
{ "repo_name": "schuza/odin-master", "path": "src/main/java/net/floodlightcontroller/staticflowentry/StaticFlowEntries.java", "license": "apache-2.0", "size": 32405 }
[ "java.util.Arrays", "java.util.HashMap", "java.util.Map", "net.floodlightcontroller.packet.IPv4", "org.openflow.protocol.OFFlowMod", "org.openflow.protocol.OFMatch", "org.openflow.util.HexString" ]
import java.util.Arrays; import java.util.HashMap; import java.util.Map; import net.floodlightcontroller.packet.IPv4; import org.openflow.protocol.OFFlowMod; import org.openflow.protocol.OFMatch; import org.openflow.util.HexString;
import java.util.*; import net.floodlightcontroller.packet.*; import org.openflow.protocol.*; import org.openflow.util.*;
[ "java.util", "net.floodlightcontroller.packet", "org.openflow.protocol", "org.openflow.util" ]
java.util; net.floodlightcontroller.packet; org.openflow.protocol; org.openflow.util;
125,792
// ! Children of the graph node. @Override List<T> getChildren();
List<T> getChildren();
/** * Returns a list of all children of the graph node. * * @return List of all children of the graph node. */
Returns a list of all children of the graph node
getChildren
{ "repo_name": "AmesianX/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/API/disassembly/IGraphNode.java", "license": "apache-2.0", "size": 1314 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,190,267
public final void renderShadowAtLocation( IPrimitiveRenderer idr, int iLabelPosition, Location lo, Label la ) throws ChartException { if ( !ChartUtil.isShadowDefined( la ) ) { return; } final ColorDefinition cdShadow = la.getShadowColor( ); if ( cdShadow == null ) { throw new ChartException( C...
final void function( IPrimitiveRenderer idr, int iLabelPosition, Location lo, Label la ) throws ChartException { if ( !ChartUtil.isShadowDefined( la ) ) { return; } final ColorDefinition cdShadow = la.getShadowColor( ); if ( cdShadow == null ) { throw new ChartException( ChartDeviceExtensionPlugin.ID, ChartException.RE...
/** * This method renders the 'shadow' at an offset from the text 'rotated * rectangle' subsequently rendered. * * @param ipr * @param iLabelPosition * The position of the label w.r.t. the location specified by * 'lo' * @param lo * The location (specified as a 2d poin...
This method renders the 'shadow' at an offset from the text 'rotated rectangle' subsequently rendered
renderShadowAtLocation
{ "repo_name": "sguan-actuate/birt", "path": "chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingTextRenderer.java", "license": "epl-1.0", "size": 68946 }
[ "java.awt.Graphics2D", "org.eclipse.birt.chart.device.IDeviceRenderer", "org.eclipse.birt.chart.device.IPrimitiveRenderer", "org.eclipse.birt.chart.device.extension.i18n.Messages", "org.eclipse.birt.chart.device.plugin.ChartDeviceExtensionPlugin", "org.eclipse.birt.chart.exception.ChartException", "org....
import java.awt.Graphics2D; import org.eclipse.birt.chart.device.IDeviceRenderer; import org.eclipse.birt.chart.device.IPrimitiveRenderer; import org.eclipse.birt.chart.device.extension.i18n.Messages; import org.eclipse.birt.chart.device.plugin.ChartDeviceExtensionPlugin; import org.eclipse.birt.chart.exception.ChartEx...
import java.awt.*; import org.eclipse.birt.chart.device.*; import org.eclipse.birt.chart.device.extension.i18n.*; import org.eclipse.birt.chart.device.plugin.*; import org.eclipse.birt.chart.exception.*; import org.eclipse.birt.chart.model.attribute.*; import org.eclipse.birt.chart.model.component.*; import org.eclipse...
[ "java.awt", "org.eclipse.birt" ]
java.awt; org.eclipse.birt;
358,842
// TODO help and headers private static final String[] FALCON_HELP = { "the env variable '" + FALCON_URL + "' is used as default value for the '-" + URL_OPTION + "' option", ...
static final String[] FALCON_HELP = { STR + FALCON_URL + STR + URL_OPTION + STR, STR + FalconClient.WS_HEADER_PREFIX + STR, }; public synchronized int function(final String[] args) throws Exception { CLIParser parser = new CLIParser(STR, FALCON_HELP); FalconAdminCLI adminCLI = new FalconAdminCLI(); FalconEntityCLI enti...
/** * Run a CLI programmatically. * <p/> * It does not exit the JVM. * <p/> * A CLI instance can be used only once. * * @param args options and arguments for the Oozie CLI. * @return '0' (success), '-1' (failure). */
Run a CLI programmatically. It does not exit the JVM. A CLI instance can be used only once
run
{ "repo_name": "pisaychuk/apache-falcon", "path": "client/src/main/java/org/apache/falcon/cli/FalconCLI.java", "license": "apache-2.0", "size": 14156 }
[ "org.apache.commons.cli.Options", "org.apache.falcon.client.FalconClient" ]
import org.apache.commons.cli.Options; import org.apache.falcon.client.FalconClient;
import org.apache.commons.cli.*; import org.apache.falcon.client.*;
[ "org.apache.commons", "org.apache.falcon" ]
org.apache.commons; org.apache.falcon;
602,492
public static <A, B> Predicate<A> compose( Predicate<B> predicate, Function<A, ? extends B> function) { return new CompositionPredicate<>(predicate, function); } /** * Returns a predicate that evaluates to {@code true} if the {@code CharSequence} being tested * contains any match for the given re...
static <A, B> Predicate<A> function( Predicate<B> predicate, Function<A, ? extends B> function) { return new CompositionPredicate<>(predicate, function); } /** * Returns a predicate that evaluates to {@code true} if the {@code CharSequence} being tested * contains any match for the given regular expression pattern. The...
/** * Returns the composition of a function and a predicate. For every {@code x}, the generated * predicate returns {@code predicate(function(x))}. * * @return the composition of the provided function and predicate */
Returns the composition of a function and a predicate. For every x, the generated predicate returns predicate(function(x))
compose
{ "repo_name": "EdwardLee03/guava", "path": "android/guava/src/com/google/common/base/Predicates.java", "license": "apache-2.0", "size": 22549 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
873,696
public PropertyNotPublicMatch newMatch(final Property pPr) { return PropertyNotPublicMatch.newMatch(pPr); }
PropertyNotPublicMatch function(final Property pPr) { return PropertyNotPublicMatch.newMatch(pPr); }
/** * Returns a new (partial) match. * This can be used e.g. to call the matcher with a partial match. * <p>The returned match will be immutable. Use {@link #newEmptyMatch()} to obtain a mutable match object. * @param pPr the fixed value of pattern parameter pr, or null if not bound. * @return the (...
Returns a new (partial) match. This can be used e.g. to call the matcher with a partial match. The returned match will be immutable. Use <code>#newEmptyMatch()</code> to obtain a mutable match object
newMatch
{ "repo_name": "ELTE-Soft/xUML-RT-Executor", "path": "plugins/hu.eltesoft.modelexecution.validation/src-gen/hu/eltesoft/modelexecution/validation/PropertyNotPublicMatcher.java", "license": "epl-1.0", "size": 10245 }
[ "hu.eltesoft.modelexecution.validation.PropertyNotPublicMatch", "org.eclipse.uml2.uml.Property" ]
import hu.eltesoft.modelexecution.validation.PropertyNotPublicMatch; import org.eclipse.uml2.uml.Property;
import hu.eltesoft.modelexecution.validation.*; import org.eclipse.uml2.uml.*;
[ "hu.eltesoft.modelexecution", "org.eclipse.uml2" ]
hu.eltesoft.modelexecution; org.eclipse.uml2;
500,117
public void updateTimes(IgniteUuid parentId, IgniteUuid fileId, String fileName, long accessTime, long modificationTime) throws IgniteCheckedException { if (busyLock.enterBusy()) { try { assert validTxState(false); // Start pessimistic transaction. ...
void function(IgniteUuid parentId, IgniteUuid fileId, String fileName, long accessTime, long modificationTime) throws IgniteCheckedException { if (busyLock.enterBusy()) { try { assert validTxState(false); IgniteInternalTx tx = metaCache.txStartEx(PESSIMISTIC, REPEATABLE_READ); try { Map<IgniteUuid, IgfsFileInfo> infoMa...
/** * Updates last access and last modification times. * * @param parentId File parent ID. * @param fileId File ID to update. * @param fileName File name to update. Must match file ID. * @param accessTime Access time to set. If {@code -1}, will not be updated. * @param modificationTim...
Updates last access and last modification times
updateTimes
{ "repo_name": "zzcclp/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/IgfsMetaManager.java", "license": "apache-2.0", "size": 123208 }
[ "java.util.Map", "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.igfs.IgfsConcurrentModificationException", "org.apache.ignite.igfs.IgfsPathNotFoundException", "org.apache.ignite.internal.processors.cache.transactions.IgniteInternalTx", "org.apache.ignite.lang.IgniteUuid" ]
import java.util.Map; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.igfs.IgfsConcurrentModificationException; import org.apache.ignite.igfs.IgfsPathNotFoundException; import org.apache.ignite.internal.processors.cache.transactions.IgniteInternalTx; import org.apache.ignite.lang.IgniteUuid;
import java.util.*; import org.apache.ignite.*; import org.apache.ignite.igfs.*; import org.apache.ignite.internal.processors.cache.transactions.*; import org.apache.ignite.lang.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
2,879,561
@Override public Set<String> checkPropertyIds(Set<String> propertyIds) { Set<String> supportedIds = new HashSet<String>(); for (String propertyId : propertyIds) { if (propertyId.startsWith(ZERO_PADDING_PARAM) || PropertyHelper.hasAggregateFunctionSuffix(propertyId)) { supportedIds.ad...
Set<String> function(Set<String> propertyIds) { Set<String> supportedIds = new HashSet<String>(); for (String propertyId : propertyIds) { if (propertyId.startsWith(ZERO_PADDING_PARAM) PropertyHelper.hasAggregateFunctionSuffix(propertyId)) { supportedIds.add(propertyId); } } propertyIds.removeAll(supportedIds); return p...
/** * Support properties with aggregate functions and metrics padding method. */
Support properties with aggregate functions and metrics padding method
checkPropertyIds
{ "repo_name": "arenadata/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/timeline/AMSPropertyProvider.java", "license": "apache-2.0", "size": 29688 }
[ "java.util.HashMap", "java.util.HashSet", "java.util.Map", "java.util.Set", "org.apache.ambari.server.controller.spi.Resource", "org.apache.ambari.server.controller.spi.TemporalInfo", "org.apache.ambari.server.controller.utilities.PropertyHelper", "org.apache.http.client.utils.URIBuilder" ]
import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.apache.ambari.server.controller.spi.Resource; import org.apache.ambari.server.controller.spi.TemporalInfo; import org.apache.ambari.server.controller.utilities.PropertyHelper; import org.apache.http.client.utils.U...
import java.util.*; import org.apache.ambari.server.controller.spi.*; import org.apache.ambari.server.controller.utilities.*; import org.apache.http.client.utils.*;
[ "java.util", "org.apache.ambari", "org.apache.http" ]
java.util; org.apache.ambari; org.apache.http;
1,052,597
protected void installRoutes() throws Exception { List<RouteBuilder> builders = new ArrayList<RouteBuilder>(); // lets add RoutesBuilder's added from references if (getBuilderRefs() != null) { for (RouteBuilderDefinition builderRef : getBuilderRefs()) { RoutesBui...
void function() throws Exception { List<RouteBuilder> builders = new ArrayList<RouteBuilder>(); if (getBuilderRefs() != null) { for (RouteBuilderDefinition builderRef : getBuilderRefs()) { RoutesBuilder routes = builderRef.createRoutes(getContext()); if (routes != null) { this.builders.add(routes); } else { throw new C...
/** * Strategy to install all available routes into the context */
Strategy to install all available routes into the context
installRoutes
{ "repo_name": "oscerd/camel", "path": "components/camel-core-xml/src/main/java/org/apache/camel/core/xml/AbstractCamelContextFactoryBean.java", "license": "apache-2.0", "size": 47269 }
[ "java.util.ArrayList", "java.util.List", "org.apache.camel.CamelException", "org.apache.camel.RoutesBuilder", "org.apache.camel.builder.RouteBuilder", "org.apache.camel.model.RouteBuilderDefinition" ]
import java.util.ArrayList; import java.util.List; import org.apache.camel.CamelException; import org.apache.camel.RoutesBuilder; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.model.RouteBuilderDefinition;
import java.util.*; import org.apache.camel.*; import org.apache.camel.builder.*; import org.apache.camel.model.*;
[ "java.util", "org.apache.camel" ]
java.util; org.apache.camel;
1,347,822
public static String getAcl(final HttpURLConnection request) { return request.getHeaderField(BlobConstants.BLOB_PUBLIC_ACCESS_HEADER); }
static String function(final HttpURLConnection request) { return request.getHeaderField(BlobConstants.BLOB_PUBLIC_ACCESS_HEADER); }
/** * Gets the ACL for the container from the response. * * @param request * the request object for this operation * @return the ACL value indicating the public access level for the container */
Gets the ACL for the container from the response
getAcl
{ "repo_name": "hnn-project/azure-content", "path": "demo/storage-demo/storage-demo-java/src/main/java/com/microsoft/azure/storage/blob/BlobResponse.java", "license": "mit", "size": 13442 }
[ "java.net.HttpURLConnection" ]
import java.net.HttpURLConnection;
import java.net.*;
[ "java.net" ]
java.net;
41,232
public void setContainerConditionHLAPI( ConditionHLAPI elem) { if (elem != null) item.setContainerCondition((Condition) elem.getContainedItem()); }
void function( ConditionHLAPI elem) { if (elem != null) item.setContainerCondition((Condition) elem.getContainedItem()); }
/** * set ContainerCondition */
set ContainerCondition
setContainerConditionHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-PT-HLPNG/src/fr/lip6/move/pnml/pthlpng/integers/hlapi/DivisionHLAPI.java", "license": "epl-1.0", "size": 69770 }
[ "fr.lip6.move.pnml.pthlpng.hlcorestructure.Condition", "fr.lip6.move.pnml.pthlpng.hlcorestructure.hlapi.ConditionHLAPI" ]
import fr.lip6.move.pnml.pthlpng.hlcorestructure.Condition; import fr.lip6.move.pnml.pthlpng.hlcorestructure.hlapi.ConditionHLAPI;
import fr.lip6.move.pnml.pthlpng.hlcorestructure.*; import fr.lip6.move.pnml.pthlpng.hlcorestructure.hlapi.*;
[ "fr.lip6.move" ]
fr.lip6.move;
2,327,270
public void _replaceAll() { requiredMethod("createReplaceDescriptor()"); oObj.replaceAll(Rdesc); XSearchDescriptor SDesc = oObj.createSearchDescriptor(); SDesc.setSearchString("**"); boolean res = (oObj.findFirst(SDesc) != null); // redo replacement Rdesc.setS...
void function() { requiredMethod(STR); oObj.replaceAll(Rdesc); XSearchDescriptor SDesc = oObj.createSearchDescriptor(); SDesc.setSearchString("**"); boolean res = (oObj.findFirst(SDesc) != null); Rdesc.setSearchString(mReplaceString); Rdesc.setReplaceString(mSearchString); oObj.replaceAll(Rdesc); res &= (oObj.findFirst...
/** * Replaces the text using descriptor created before. Then * search is performed in the target text. <p> * * Has <b> OK </b> status if the string '**' is found in * the text. <p> * * The following method tests are to be completed successfully before : * <ul> * <li> <code...
Replaces the text using descriptor created before. Then search is performed in the target text. Has OK status if the string '**' is found in the text. The following method tests are to be completed successfully before : <code> createReplaceDescriptor() </code> : replace descriptor is created.
_replaceAll
{ "repo_name": "sbbic/core", "path": "qadevOOo/tests/java/ifc/util/_XReplaceable.java", "license": "gpl-3.0", "size": 4682 }
[ "com.sun.star.util.XSearchDescriptor" ]
import com.sun.star.util.XSearchDescriptor;
import com.sun.star.util.*;
[ "com.sun.star" ]
com.sun.star;
1,852,466
public void layoutView(int viewMode) { int layoutMode = 0; // save list position Parcelable s = getListView().getLayoutManager().onSaveInstanceState(); StorePosition.setParentPosition(mFile.getFileId(), s); switch (viewMode) { case 0: ...
void function(int viewMode) { int layoutMode = 0; Parcelable s = getListView().getLayoutManager().onSaveInstanceState(); StorePosition.setParentPosition(mFile.getFileId(), s); switch (viewMode) { case 0: mLayoutManager = new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false); mAdapter.setResourceLa...
/** * Cahnging the layout view , list or grid * * @param viewMode */
Cahnging the layout view , list or grid
layoutView
{ "repo_name": "skymania/Cirrus", "path": "OCFileListFragment.java", "license": "gpl-2.0", "size": 21844 }
[ "android.content.SharedPreferences", "android.content.res.Configuration", "android.os.Parcelable", "android.support.v7.widget.GridLayoutManager", "android.support.v7.widget.LinearLayoutManager", "com.synox.android.datamodel.StorePosition" ]
import android.content.SharedPreferences; import android.content.res.Configuration; import android.os.Parcelable; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import com.synox.android.datamodel.StorePosition;
import android.content.*; import android.content.res.*; import android.os.*; import android.support.v7.widget.*; import com.synox.android.datamodel.*;
[ "android.content", "android.os", "android.support", "com.synox.android" ]
android.content; android.os; android.support; com.synox.android;
742,374
public boolean isExpired() { return SystemClock.elapsedRealtime() - mTimeLastSet > TIME_TO_LIVE; }
boolean function() { return SystemClock.elapsedRealtime() - mTimeLastSet > TIME_TO_LIVE; }
/** * Returns true if the data in this cache is stale and needs to be refreshed. Returns false * otherwise. */
Returns true if the data in this cache is stale and needs to be refreshed. Returns false otherwise
isExpired
{ "repo_name": "miswenwen/My_bird_work", "path": "Bird_work/我的项目/Contacts/Contacts_liuqipeng/src/com/yunos/alicontacts/model/AccountTypeManager.java", "license": "apache-2.0", "size": 35675 }
[ "android.os.SystemClock" ]
import android.os.SystemClock;
import android.os.*;
[ "android.os" ]
android.os;
127,086
public Vector<Song> getSongLibrary() { return songLibrary; }
Vector<Song> function() { return songLibrary; }
/** * Returns the search result of AutoDJ's song library * as a Vector of Song objects. * @return A Vector of Song objects. */
Returns the search result of AutoDJ's song library as a Vector of Song objects
getSongLibrary
{ "repo_name": "Raven24/AutoDJ", "path": "src/AutoDJ/AutoDJModel.java", "license": "gpl-3.0", "size": 4855 }
[ "java.util.Vector" ]
import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
309,208
Method get(int index) { return this.attributeMethods[index]; } /** * Determine if the attribute at the specified index could throw a * {@link TypeNotPresentException} when accessed. * @param index the index of the attribute to check * @return {@code true} if the attribute can throw a * {@link TypeNotP...
Method get(int index) { return this.attributeMethods[index]; } /** * Determine if the attribute at the specified index could throw a * {@link TypeNotPresentException} when accessed. * @param index the index of the attribute to check * @return {@code true} if the attribute can throw a * {@link TypeNotPresentException}
/** * Get the attribute at the specified index. * @param index the index of the attribute to return * @return the attribute method * @throws IndexOutOfBoundsException if the index is out of range * (<tt>index &lt; 0 || index &gt;= size()</tt>) */
Get the attribute at the specified index
get
{ "repo_name": "spring-projects/spring-framework", "path": "spring-core/src/main/java/org/springframework/core/annotation/AttributeMethods.java", "license": "apache-2.0", "size": 9567 }
[ "java.lang.reflect.Method" ]
import java.lang.reflect.Method;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,498,718
protected void createShardedIndex(String index, int shards, int replicas) throws IOException { CreateIndexRequest indexRequest = new CreateIndexRequest(index); indexRequest.settings(Settings.builder() .put("index.unassigned.node_left.delayed_timeout", "1s") ...
void function(String index, int shards, int replicas) throws IOException { CreateIndexRequest indexRequest = new CreateIndexRequest(index); indexRequest.settings(Settings.builder() .put(STR, "1s") .put(STR, shards) .put(STR, replicas) ); transportClient.admin().indices().create(indexRequest).actionGet(); }
/** * Creates an index with given name with 3 shards */
Creates an index with given name with 3 shards
createShardedIndex
{ "repo_name": "gurbuzali/hazelcast-jet", "path": "extensions/elasticsearch/elasticsearch-5/src/test/java/com/hazelcast/jet/elastic/BaseElasticTest.java", "license": "apache-2.0", "size": 10430 }
[ "java.io.IOException", "org.elasticsearch.action.admin.indices.create.CreateIndexRequest", "org.elasticsearch.common.settings.Settings" ]
import java.io.IOException; import org.elasticsearch.action.admin.indices.create.CreateIndexRequest; import org.elasticsearch.common.settings.Settings;
import java.io.*; import org.elasticsearch.action.admin.indices.create.*; import org.elasticsearch.common.settings.*;
[ "java.io", "org.elasticsearch.action", "org.elasticsearch.common" ]
java.io; org.elasticsearch.action; org.elasticsearch.common;
1,568,168
public void testStateTransitionMetaHandling() { ShardRouting shard = TestShardRouting.newShardRouting("test", 1, null, null, null, true, ShardRoutingState.UNASSIGNED, new UnassignedInfo(UnassignedInfo.Reason.INDEX_CREATED, null)); ShardRouting mutable = new ShardRouting(shard); assertThat(mu...
void function() { ShardRouting shard = TestShardRouting.newShardRouting("test", 1, null, null, null, true, ShardRoutingState.UNASSIGNED, new UnassignedInfo(UnassignedInfo.Reason.INDEX_CREATED, null)); ShardRouting mutable = new ShardRouting(shard); assertThat(mutable.unassignedInfo(), notNullValue()); mutable.initializ...
/** * The unassigned meta is kept when a shard goes to INITIALIZING, but cleared when it moves to STARTED. */
The unassigned meta is kept when a shard goes to INITIALIZING, but cleared when it moves to STARTED
testStateTransitionMetaHandling
{ "repo_name": "jbertouch/elasticsearch", "path": "core/src/test/java/org/elasticsearch/cluster/routing/UnassignedInfoTests.java", "license": "apache-2.0", "size": 24917 }
[ "org.hamcrest.Matchers" ]
import org.hamcrest.Matchers;
import org.hamcrest.*;
[ "org.hamcrest" ]
org.hamcrest;
1,948,929
private static JavaScriptObject unwrap() { return null; } private JSONNull() { }
static JavaScriptObject function() { return null; } private JSONNull() { }
/** * Called from {@link #getUnwrapper()}. */
Called from <code>#getUnwrapper()</code>
unwrap
{ "repo_name": "syntelos/gwtcc", "path": "src/com/google/gwt/json/client/JSONNull.java", "license": "apache-2.0", "size": 1583 }
[ "com.google.gwt.core.client.JavaScriptObject" ]
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.*;
[ "com.google.gwt" ]
com.google.gwt;
1,300,192
private void initDBColumnInfo() throws IOException { String[] colNames = options.getColumns(); if (null == colNames) { if (null != dbTableName) { colNames = connManager.getColumnNames(dbTableName); } else if (options.getCall() != null) { // Read procedure arguments from metadata ...
void function() throws IOException { String[] colNames = options.getColumns(); if (null == colNames) { if (null != dbTableName) { colNames = connManager.getColumnNames(dbTableName); } else if (options.getCall() != null) { colNames = connManager.getColumnNamesForProcedure(this.options .getCall()); } else { colNames = co...
/** * Get the column names to import. */
Get the column names to import
initDBColumnInfo
{ "repo_name": "icoding/sqoop", "path": "src/java/org/apache/sqoop/mapreduce/hcat/SqoopHCatUtilities.java", "license": "apache-2.0", "size": 46240 }
[ "java.io.IOException", "java.util.Arrays", "java.util.List" ]
import java.io.IOException; import java.util.Arrays; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,175,257
private Map<String, Setting<String>> loadProperties(ConfigType type, File file, boolean mandatory) throws ConfigurationException { if (file == null || !file.isFile()) { OutputController.getLogger().log("No " + type.toString() + " level " + DEPLOYMENT_PROPERTIES + " found."); ...
Map<String, Setting<String>> function(ConfigType type, File file, boolean mandatory) throws ConfigurationException { if (file == null !file.isFile()) { OutputController.getLogger().log(STR + type.toString() + STR + DEPLOYMENT_PROPERTIES + STR); if (!mandatory) { return null; } else { throw new ConfigurationException();...
/** * Loads the properties file, if one exists * * @param type the ConfigType to load * @param file the File to load Properties from * @param mandatory indicates if reading this file is mandatory * * @throws ConfigurationException if the file is mandatory but cannot be read */
Loads the properties file, if one exists
loadProperties
{ "repo_name": "GITNE/icedtea-web", "path": "netx/net/sourceforge/jnlp/config/DeploymentConfiguration.java", "license": "gpl-2.0", "size": 41007 }
[ "java.io.File", "java.io.IOException", "java.util.Map", "javax.naming.ConfigurationException", "net.sourceforge.jnlp.util.logging.OutputController" ]
import java.io.File; import java.io.IOException; import java.util.Map; import javax.naming.ConfigurationException; import net.sourceforge.jnlp.util.logging.OutputController;
import java.io.*; import java.util.*; import javax.naming.*; import net.sourceforge.jnlp.util.logging.*;
[ "java.io", "java.util", "javax.naming", "net.sourceforge.jnlp" ]
java.io; java.util; javax.naming; net.sourceforge.jnlp;
1,686,488
@Override protected void preProcessMultiOutgoingEdges(ProcessModel model, FlowNode node, Collection<ControlFlow<FlowNode>> outgoingControlFlows) throws TransformationException { String name = "post_" + node.getName(); Gateway g = new AndGateway(name); Collection<Boolean> conditional = new ArrayList<Boolean...
void function(ProcessModel model, FlowNode node, Collection<ControlFlow<FlowNode>> outgoingControlFlows) throws TransformationException { String name = "post_" + node.getName(); Gateway g = new AndGateway(name); Collection<Boolean> conditional = new ArrayList<Boolean>(); Collection<Boolean> attachedEventEdges = new Arr...
/** * Transform {@link Activity}s or {@link Event}s with multiple outgoing edges * by inserting additional {@link Gateway}s. * @param model to pre-process * @param node to analyze * @param outgoingControlFlows outgoing edges of current node * @throws TransformationException if an {@link OrGateway} shall be ...
Transform <code>Activity</code>s or <code>Event</code>s with multiple outgoing edges by inserting additional <code>Gateway</code>s
preProcessMultiOutgoingEdges
{ "repo_name": "tobiashoppe/promnicat", "path": "src/de/uni_potsdam/hpi/bpt/promnicat/modelConverter/BpmnToPetriNetConverter.java", "license": "gpl-3.0", "size": 22059 }
[ "java.util.ArrayList", "java.util.Collection", "org.jbpt.pm.AndGateway", "org.jbpt.pm.ControlFlow", "org.jbpt.pm.FlowNode", "org.jbpt.pm.Gateway", "org.jbpt.pm.OrGateway", "org.jbpt.pm.ProcessModel", "org.jbpt.pm.bpmn.BpmnControlFlow", "org.jbpt.throwable.TransformationException" ]
import java.util.ArrayList; import java.util.Collection; import org.jbpt.pm.AndGateway; import org.jbpt.pm.ControlFlow; import org.jbpt.pm.FlowNode; import org.jbpt.pm.Gateway; import org.jbpt.pm.OrGateway; import org.jbpt.pm.ProcessModel; import org.jbpt.pm.bpmn.BpmnControlFlow; import org.jbpt.throwable.Transformatio...
import java.util.*; import org.jbpt.pm.*; import org.jbpt.pm.bpmn.*; import org.jbpt.throwable.*;
[ "java.util", "org.jbpt.pm", "org.jbpt.throwable" ]
java.util; org.jbpt.pm; org.jbpt.throwable;
2,613,442
@Test public void step2_testCreateMetaDataFile() { ConcurrentHashMap<String, XmlMetadata> initialMap = TestConstants.getInitialMap(); metaFileUtil.updateMetadataMap(initialMap, ""); metaFileUtil.writeMetadataToFile(); Assert.assertEquals(true, metaFileUtil.isMetaFilePresent()); ...
void function() { ConcurrentHashMap<String, XmlMetadata> initialMap = TestConstants.getInitialMap(); metaFileUtil.updateMetadataMap(initialMap, ""); metaFileUtil.writeMetadataToFile(); Assert.assertEquals(true, metaFileUtil.isMetaFilePresent()); }
/** * Test the creation of metadata file. */
Test the creation of metadata file
step2_testCreateMetaDataFile
{ "repo_name": "prestoncarman/vxquery", "path": "vxquery-core/src/test/java/org/apache/vxquery/indexing/MetaFileUtilTest.java", "license": "apache-2.0", "size": 5486 }
[ "java.util.concurrent.ConcurrentHashMap", "org.apache.vxquery.runtime.functions.index.update.XmlMetadata", "org.junit.Assert" ]
import java.util.concurrent.ConcurrentHashMap; import org.apache.vxquery.runtime.functions.index.update.XmlMetadata; import org.junit.Assert;
import java.util.concurrent.*; import org.apache.vxquery.runtime.functions.index.update.*; import org.junit.*;
[ "java.util", "org.apache.vxquery", "org.junit" ]
java.util; org.apache.vxquery; org.junit;
1,967,048
@Override public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException { if (_dtdHandler != null) { _dtdHandler.unparsedEntityDecl(name, publicId, systemId, notationName); ...
void function(String name, String publicId, String systemId, String notationName) throws SAXException { if (_dtdHandler != null) { _dtdHandler.unparsedEntityDecl(name, publicId, systemId, notationName); } }
/** * Implements org.xml.sax.DTDHandler.unparsedEntityDecl() */
Implements org.xml.sax.DTDHandler.unparsedEntityDecl()
unparsedEntityDecl
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/trax/TransformerHandlerImpl.java", "license": "mit", "size": 15737 }
[ "org.xml.sax.SAXException" ]
import org.xml.sax.SAXException;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
82,681
QuotaRecommendation recommend(RestRequest restRequest) throws QuotaException;
QuotaRecommendation recommend(RestRequest restRequest) throws QuotaException;
/** * Makes a {@link QuotaRecommendation} for the restRequest. This method doesn't know the cost details and hence * makes the recommendation based on current quota usage. * @param restRequest {@link RestRequest} object. * @return QuotaRecommendation object with the recommendation. */
Makes a <code>QuotaRecommendation</code> for the restRequest. This method doesn't know the cost details and hence makes the recommendation based on current quota usage
recommend
{ "repo_name": "linkedin/ambry", "path": "ambry-api/src/main/java/com/github/ambry/quota/QuotaEnforcer.java", "license": "apache-2.0", "size": 2917 }
[ "com.github.ambry.rest.RestRequest" ]
import com.github.ambry.rest.RestRequest;
import com.github.ambry.rest.*;
[ "com.github.ambry" ]
com.github.ambry;
1,397,942
public String getOriginalTableName() throws SQLException { if ((this.originalTableName == null) && (this.originalTableNameStart != -1) && (this.originalTableNameLength != -1)) { this.originalTableName = getStringFromBytes( this.originalTableNameStart, this.originalTableNameLength); } return th...
String function() throws SQLException { if ((this.originalTableName == null) && (this.originalTableNameStart != -1) && (this.originalTableNameLength != -1)) { this.originalTableName = getStringFromBytes( this.originalTableNameStart, this.originalTableNameLength); } return this.originalTableName; }
/** * DOCUMENT ME! * * @return DOCUMENT ME! */
DOCUMENT ME
getOriginalTableName
{ "repo_name": "yyuu/libmysql-java", "path": "src/com/mysql/jdbc/Field.java", "license": "gpl-2.0", "size": 27411 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,308,566
boolean shallBeSkipped(Node node);
boolean shallBeSkipped(Node node);
/** * Called before any other callback on this node is called. The instance of the callback can then decide if the * walker shall continue to call the other callbacks and visit the children or not. * * @param node the node, which was reached by the tree walker * @return {@code true} if th...
Called before any other callback on this node is called. The instance of the callback can then decide if the walker shall continue to call the other callbacks and visit the children or not
shallBeSkipped
{ "repo_name": "tensorics/tensorics-core", "path": "src/java/org/tensorics/core/tree/walking/SkipNodeAndSubTreesCallback.java", "license": "apache-2.0", "size": 1720 }
[ "org.tensorics.core.tree.domain.Node" ]
import org.tensorics.core.tree.domain.Node;
import org.tensorics.core.tree.domain.*;
[ "org.tensorics.core" ]
org.tensorics.core;
1,073,208
private ClassFile.AnnotationInfo readAnnotation(ConstantPoolReader constantPool) { int typeIndex = reader.u2(); String annotationType = constantPool.utf8(typeIndex); int numElementValuePairs = reader.u2(); ImmutableMap.Builder<String, ElementValue> values = ImmutableMap.builder(); for (int e = 0; ...
ClassFile.AnnotationInfo function(ConstantPoolReader constantPool) { int typeIndex = reader.u2(); String annotationType = constantPool.utf8(typeIndex); int numElementValuePairs = reader.u2(); ImmutableMap.Builder<String, ElementValue> values = ImmutableMap.builder(); for (int e = 0; e < numElementValuePairs; e++) { int...
/** * Extracts an {@link @Retention} or {@link ElementType} {@link ClassFile.AnnotationInfo}, or else * skips over the annotation. */
Extracts an <code>@Retention</code> or <code>ElementType</code> <code>ClassFile.AnnotationInfo</code>, or else skips over the annotation
readAnnotation
{ "repo_name": "google/turbine", "path": "java/com/google/turbine/bytecode/ClassReader.java", "license": "apache-2.0", "size": 20035 }
[ "com.google.common.collect.ImmutableMap", "com.google.turbine.bytecode.ClassFile" ]
import com.google.common.collect.ImmutableMap; import com.google.turbine.bytecode.ClassFile;
import com.google.common.collect.*; import com.google.turbine.bytecode.*;
[ "com.google.common", "com.google.turbine" ]
com.google.common; com.google.turbine;
2,497,937
public void initialize(Object[] object) throws com.sun.star.uno.Exception { this.m_wizardContext = Properties.convertToPropertyValueArray(object); }
void function(Object[] object) throws com.sun.star.uno.Exception { this.m_wizardContext = Properties.convertToPropertyValueArray(object); }
/** This method is a member of the interface for initializing an object * directly after its creation. * @param object This array of arbitrary objects will be passed to the * component after its creation. * @throws com.sun.star.uno.Exception Every exception will not be handled, but w...
This method is a member of the interface for initializing an object directly after its creation
initialize
{ "repo_name": "sbbic/core", "path": "wizards/com/sun/star/wizards/report/CallReportWizard.java", "license": "gpl-3.0", "size": 8356 }
[ "com.sun.star.wizards.common.Properties" ]
import com.sun.star.wizards.common.Properties;
import com.sun.star.wizards.common.*;
[ "com.sun.star" ]
com.sun.star;
1,800,123
Set<VocabularyTerm> getTerms();
Set<VocabularyTerm> getTerms();
/** * Get an unmodifiable set of {@link VocabularyTerm} terms associated with {@link #getGeneId()} gene. * * @return an unmodifiable set of {@link VocabularyTerm} terms */
Get an unmodifiable set of <code>VocabularyTerm</code> terms associated with <code>#getGeneId()</code> gene
getTerms
{ "repo_name": "phenotips/phenotips", "path": "components/gene-panels/api/src/main/java/org/phenotips/panels/TermsForGene.java", "license": "agpl-3.0", "size": 2060 }
[ "java.util.Set", "org.phenotips.vocabulary.VocabularyTerm" ]
import java.util.Set; import org.phenotips.vocabulary.VocabularyTerm;
import java.util.*; import org.phenotips.vocabulary.*;
[ "java.util", "org.phenotips.vocabulary" ]
java.util; org.phenotips.vocabulary;
989,180