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
@Test() public void testCreateExtensibleMatchFilterBytesNoAT() throws Exception { MatchedValuesFilter f = MatchedValuesFilter.createExtensibleMatchFilter(null, "foo", "bar".getBytes("UTF-8")); f = MatchedValuesFilter.decode(f.encode()); f = MatchedValuesFilter.create(f....
@Test() void function() throws Exception { MatchedValuesFilter f = MatchedValuesFilter.createExtensibleMatchFilter(null, "foo", "bar".getBytes("UTF-8")); f = MatchedValuesFilter.decode(f.encode()); f = MatchedValuesFilter.create(f.toFilter()); assertEquals(f.getMatchType(), (byte) 0xA9); assertNull(f.getAttributeType()...
/** * Tests the {@code createExtensibleMatchFilter} method with a matching rule * ID and byte[] value but no attribute type. * * @throws Exception If an unexpected problem occurs. */
Tests the createExtensibleMatchFilter method with a matching rule ID and byte[] value but no attribute type
testCreateExtensibleMatchFilterBytesNoAT
{ "repo_name": "UnboundID/ldapsdk", "path": "tests/unit/src/com/unboundid/ldap/sdk/controls/MatchedValuesFilterTestCase.java", "license": "gpl-2.0", "size": 59944 }
[ "org.testng.annotations.Test" ]
import org.testng.annotations.Test;
import org.testng.annotations.*;
[ "org.testng.annotations" ]
org.testng.annotations;
2,740,293
Reader getClobAsCharacterStream(ResultSet rs, int columnIndex) throws SQLException;
Reader getClobAsCharacterStream(ResultSet rs, int columnIndex) throws SQLException;
/** * Retrieve the given column as character stream from the given ResultSet. * Might simply invoke {@code ResultSet.getCharacterStream} or work with * {@code ResultSet.getClob}, depending on the database and driver. * @param rs the ResultSet to retrieve the content from * @param columnIndex the column index ...
Retrieve the given column as character stream from the given ResultSet. Might simply invoke ResultSet.getCharacterStream or work with ResultSet.getClob, depending on the database and driver
getClobAsCharacterStream
{ "repo_name": "boggad/jdk9-sample", "path": "sample-catalog/spring-jdk9/src/spring.jdbc/org/springframework/jdbc/support/lob/LobHandler.java", "license": "mit", "size": 9683 }
[ "java.io.Reader", "java.sql.ResultSet", "java.sql.SQLException" ]
import java.io.Reader; import java.sql.ResultSet; import java.sql.SQLException;
import java.io.*; import java.sql.*;
[ "java.io", "java.sql" ]
java.io; java.sql;
2,342,139
public static long decodeZigZag64(final long n) { return (n >>> 1) ^ -(n & 1); } // ----------------------------------------------------------------- private final byte[] buffer; private int bufferSize; private int bufferSizeAfterLimit; private int bufferPos; private final ...
static long function(final long n) { return (n >>> 1) ^ -(n & 1); } private final byte[] buffer; private int bufferSize; private int bufferSizeAfterLimit; private int bufferPos; private final InputStream input; private int lastTag; private int packedLimit = 0; private int totalBytesRetired; private int currentLimit = I...
/** * Decode a ZigZag-encoded 64-bit value. ZigZag encodes signed integers into values that can be efficiently encoded * with varint. (Otherwise, negative values must be sign-extended to 64 bits to be varint encoded, thus always * taking 10 bytes on the wire.) * * @param n * An...
Decode a ZigZag-encoded 64-bit value. ZigZag encodes signed integers into values that can be efficiently encoded with varint. (Otherwise, negative values must be sign-extended to 64 bits to be varint encoded, thus always taking 10 bytes on the wire.)
decodeZigZag64
{ "repo_name": "Shvid/protostuff", "path": "protostuff-core/src/main/java/io/protostuff/CodedInput.java", "license": "apache-2.0", "size": 40683 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,027,075
static String getRealTaskLogFilePath(String location, LogName filter) throws IOException { return FileUtil.makeShellPath(new File(location, filter.toString())); } static class LogFileDetail { final static String LOCATION = "LOG_DIR:"; String location; long start; long length; }
static String getRealTaskLogFilePath(String location, LogName filter) throws IOException { return FileUtil.makeShellPath(new File(location, filter.toString())); } static class LogFileDetail { final static String LOCATION = STR; String location; long start; long length; }
/** * Get the real task-log file-path * * @param location Location of the log-file. This should point to an * attempt-directory. * @param filter * @return * @throws IOException */
Get the real task-log file-path
getRealTaskLogFilePath
{ "repo_name": "InMobi/hadoop", "path": "src/mapred/org/apache/hadoop/mapred/TaskLog.java", "license": "apache-2.0", "size": 24091 }
[ "java.io.File", "java.io.IOException", "org.apache.hadoop.fs.FileUtil" ]
import java.io.File; import java.io.IOException; import org.apache.hadoop.fs.FileUtil;
import java.io.*; import org.apache.hadoop.fs.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
260,091
private void completeWithExitCode(int exitCode) { result.set(exitCode); if (!isTestShuttingDown.get()) { // Wait at the barrier for the test to assert on status, unless the test is shutting down. try { barrier.await(); } catch (InterruptedException | BrokenBarrierExcept...
void function(int exitCode) { result.set(exitCode); if (!isTestShuttingDown.get()) { try { barrier.await(); } catch (InterruptedException BrokenBarrierException ex) { } } }
/** * Marks the Future associated with this CommandState completed with the given exit code, then * waits at the barrier for the test thread to catch up. */
Marks the Future associated with this CommandState completed with the given exit code, then waits at the barrier for the test thread to catch up
completeWithExitCode
{ "repo_name": "Asana/bazel", "path": "src/test/java/com/google/devtools/build/lib/runtime/CommandInterruptionTest.java", "license": "apache-2.0", "size": 18888 }
[ "java.util.concurrent.BrokenBarrierException" ]
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,486,790
@Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); } return itemPropertyDescriptors; }
List<IItemPropertyDescriptor> function(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); } return itemPropertyDescriptors; }
/** * This returns the property descriptors for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This returns the property descriptors for the adapted class.
getPropertyDescriptors
{ "repo_name": "mlanoe/x-vhdl", "path": "plugins/net.mlanoe.language.vhdl.edit/src-gen/net/mlanoe/language/vhdl/statement/provider/ComponentInstantiationStatementItemProvider.java", "license": "gpl-3.0", "size": 6782 }
[ "java.util.List", "org.eclipse.emf.edit.provider.IItemPropertyDescriptor" ]
import java.util.List; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import java.util.*; import org.eclipse.emf.edit.provider.*;
[ "java.util", "org.eclipse.emf" ]
java.util; org.eclipse.emf;
523,091
protected NewTestStructureHandler createNewTestStructureHandler(TestFlow lastSelection, IEclipseContext context) { if (lastSelection instanceof TestCase) { return ContextInjectionFactory.make(NewCaseHandler.class, context); } if (lastSelection instanceof TestScenario) { return ContextInjectionFactory.mak...
NewTestStructureHandler function(TestFlow lastSelection, IEclipseContext context) { if (lastSelection instanceof TestCase) { return ContextInjectionFactory.make(NewCaseHandler.class, context); } if (lastSelection instanceof TestScenario) { return ContextInjectionFactory.make(NewScenarioHandler.class, context); } return...
/** * Builder method to create the matching new handler. * * @param context * EclipseContext to create the new handler. * @param lastSelection * TestStructure to be cloned. * @return new handler matching the teststructure. */
Builder method to create the matching new handler
createNewTestStructureHandler
{ "repo_name": "test-editor/test-editor", "path": "ui/org.testeditor.ui/src/main/java/org/testeditor/ui/handlers/CloneTestStructureHandler.java", "license": "epl-1.0", "size": 4510 }
[ "org.eclipse.e4.core.contexts.ContextInjectionFactory", "org.eclipse.e4.core.contexts.IEclipseContext", "org.testeditor.core.model.teststructure.TestCase", "org.testeditor.core.model.teststructure.TestFlow", "org.testeditor.core.model.teststructure.TestScenario" ]
import org.eclipse.e4.core.contexts.ContextInjectionFactory; import org.eclipse.e4.core.contexts.IEclipseContext; import org.testeditor.core.model.teststructure.TestCase; import org.testeditor.core.model.teststructure.TestFlow; import org.testeditor.core.model.teststructure.TestScenario;
import org.eclipse.e4.core.contexts.*; import org.testeditor.core.model.teststructure.*;
[ "org.eclipse.e4", "org.testeditor.core" ]
org.eclipse.e4; org.testeditor.core;
1,269,020
public Object clone() throws CloneNotSupportedException { AbstractDataset clone = (AbstractDataset) super.clone(); clone.listenerList = new EventListenerList(); return clone; }
Object function() throws CloneNotSupportedException { AbstractDataset clone = (AbstractDataset) super.clone(); clone.listenerList = new EventListenerList(); return clone; }
/** * Returns a clone of the dataset. The cloned dataset will NOT include the * {@link DatasetChangeListener} references that have been registered with * this dataset. * * @return A clone. * * @throws CloneNotSupportedException if the dataset does not support * ...
Returns a clone of the dataset. The cloned dataset will NOT include the <code>DatasetChangeListener</code> references that have been registered with this dataset
clone
{ "repo_name": "linuxuser586/jfreechart", "path": "source/org/jfree/data/general/AbstractDataset.java", "license": "lgpl-2.1", "size": 9667 }
[ "javax.swing.event.EventListenerList" ]
import javax.swing.event.EventListenerList;
import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
482,211
protected ResultSetId createResultSetId() { return new ResultSetId(System.nanoTime()); }
ResultSetId function() { return new ResultSetId(System.nanoTime()); }
/** * Create a unique result set id to get the correct query back from the cluster. * * @return Result Set id generated with current system time. */
Create a unique result set id to get the correct query back from the cluster
createResultSetId
{ "repo_name": "sjaco002/vxquery", "path": "vxquery-cli/src/main/java/org/apache/vxquery/cli/VXQuery.java", "license": "apache-2.0", "size": 17331 }
[ "org.apache.hyracks.api.dataset.ResultSetId" ]
import org.apache.hyracks.api.dataset.ResultSetId;
import org.apache.hyracks.api.dataset.*;
[ "org.apache.hyracks" ]
org.apache.hyracks;
1,722,605
public void responsePhase1Handler(Response resp, RoRequest req) throws IOException { int sts = resp.getStatusCode(); if (sts < 301 || sts > 307 || sts == 304) { if (lastURI != null) // it's been redirected resp.setEffectiveURI(lastURI); } }
void function(Response resp, RoRequest req) throws IOException { int sts = resp.getStatusCode(); if (sts < 301 sts > 307 sts == 304) { if (lastURI != null) resp.setEffectiveURI(lastURI); } }
/** * Invoked by the HTTPClient. */
Invoked by the HTTPClient
responsePhase1Handler
{ "repo_name": "luttero/Maud", "path": "src/HTTPClient/RedirectionModule.java", "license": "bsd-3-clause", "size": 14391 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,389,195
PersistenceManagerEventHandlerResponse postUpdate(PersistenceManager persistenceManager, Entity entity, PersistencePackage persistencePackage) throws ServiceException;
PersistenceManagerEventHandlerResponse postUpdate(PersistenceManager persistenceManager, Entity entity, PersistencePackage persistencePackage) throws ServiceException;
/** * Called after an update * * @param persistenceManager the PersistenceManager instance making the call * @param entity the result of the update * @param persistencePackage the descriptive information for the call * @return the response containing any changes, status or additional data ...
Called after an update
postUpdate
{ "repo_name": "akdasari/SparkAdmin", "path": "spark-open-admin-platform/src/main/java/org/sparkcommerce/openadmin/server/service/persistence/PersistenceManagerEventHandler.java", "license": "apache-2.0", "size": 8652 }
[ "org.sparkcommerce.common.exception.ServiceException", "org.sparkcommerce.openadmin.dto.Entity", "org.sparkcommerce.openadmin.dto.PersistencePackage" ]
import org.sparkcommerce.common.exception.ServiceException; import org.sparkcommerce.openadmin.dto.Entity; import org.sparkcommerce.openadmin.dto.PersistencePackage;
import org.sparkcommerce.common.exception.*; import org.sparkcommerce.openadmin.dto.*;
[ "org.sparkcommerce.common", "org.sparkcommerce.openadmin" ]
org.sparkcommerce.common; org.sparkcommerce.openadmin;
191,641
return DjDeploymentRfcStatesRecord.class; } public final TableField<DjDeploymentRfcStatesRecord, Integer> STATE_ID = createField("state_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); public final TableField<DjDeploymentRfcStatesRecord, String> STATE_NAME = createField("state_...
return DjDeploymentRfcStatesRecord.class; } public final TableField<DjDeploymentRfcStatesRecord, Integer> STATE_ID = createField(STR, org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, STRstate_nameSTRSTRdj_deployment_rfc_statesSTR"); } /** * {@inheritDoc}
/** * The class holding records for this type */
The class holding records for this type
getRecordType
{ "repo_name": "gauravlall/oneops", "path": "crawler/src/generated-sources/java/com/oneops/crawler/jooq/cms/tables/DjDeploymentRfcStates.java", "license": "apache-2.0", "size": 4235 }
[ "com.oneops.crawler.jooq.cms.tables.records.DjDeploymentRfcStatesRecord", "org.jooq.TableField" ]
import com.oneops.crawler.jooq.cms.tables.records.DjDeploymentRfcStatesRecord; import org.jooq.TableField;
import com.oneops.crawler.jooq.cms.tables.records.*; import org.jooq.*;
[ "com.oneops.crawler", "org.jooq" ]
com.oneops.crawler; org.jooq;
519,763
public static IPermutationCode createSimplePermutationCode( int hamming_distance, int no_elements) { logger.info("Created new Simple Permutation Code with d = " + hamming_distance + " and n = " + no_elements); return new SimplePermutationCode(hamming_distance, no_elements); }
static IPermutationCode function( int hamming_distance, int no_elements) { logger.info(STR + hamming_distance + STR + no_elements); return new SimplePermutationCode(hamming_distance, no_elements); }
/** * Creates a <code>IPermutationCode</code> that uses a simple * comparison of permutations to check for suitability. * * @param hamming_distance * The minimum distance between permutations * @param no_elements * The number of elements in the Permutation. * @return A new...
Creates a <code>IPermutationCode</code> that uses a simple comparison of permutations to check for suitability
createSimplePermutationCode
{ "repo_name": "jfdm/perma-search", "path": "src/uk/ac/stand/cs/jfdm/cs4099/grouptheory/IPermutationCode.java", "license": "gpl-3.0", "size": 4223 }
[ "uk.ac.stand.cs.jfdm.cs4099.grouptheory.impl.SimplePermutationCode" ]
import uk.ac.stand.cs.jfdm.cs4099.grouptheory.impl.SimplePermutationCode;
import uk.ac.stand.cs.jfdm.cs4099.grouptheory.impl.*;
[ "uk.ac.stand" ]
uk.ac.stand;
621,643
return requireNonNull(mActionStrip); }
return requireNonNull(mActionStrip); }
/** * Returns the {@link ActionStrip} for this template or {@code null} if not set. * * @see Builder#setActionStrip(ActionStrip) */
Returns the <code>ActionStrip</code> for this template or null if not set
getActionStrip
{ "repo_name": "AndroidX/androidx", "path": "car/app/app/src/main/java/androidx/car/app/navigation/model/NavigationTemplate.java", "license": "apache-2.0", "size": 16524 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
1,026,544
public CallHandle loadStructuredData(SecurityContext ctx, Object dataObject, long userID, AgentEventListener observer) { BatchCallTree cmd = new StructuredAnnotationLoader(ctx, StructuredAnnotationLoader.ALL, dataObject, userID); return cmd.exec(observer); }
CallHandle function(SecurityContext ctx, Object dataObject, long userID, AgentEventListener observer) { BatchCallTree cmd = new StructuredAnnotationLoader(ctx, StructuredAnnotationLoader.ALL, dataObject, userID); return cmd.exec(observer); }
/** * Implemented as specified by the view interface. * @see MetadataHandlerView#loadStructuredData(SecurityContext, DataObject, * long, AgentEventListener) */
Implemented as specified by the view interface
loadStructuredData
{ "repo_name": "dominikl/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/views/MetadataHandlerViewImpl.java", "license": "gpl-2.0", "size": 17269 }
[ "org.openmicroscopy.shoola.env.data.views.calls.StructuredAnnotationLoader", "org.openmicroscopy.shoola.env.event.AgentEventListener" ]
import org.openmicroscopy.shoola.env.data.views.calls.StructuredAnnotationLoader; import org.openmicroscopy.shoola.env.event.AgentEventListener;
import org.openmicroscopy.shoola.env.data.views.calls.*; import org.openmicroscopy.shoola.env.event.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
2,857,950
private long freeMemory() { updatePeakMemoryUsed(); long memoryFreed = 0; for (MemoryBlock block : allocatedPages) { memoryFreed += block.size(); freePage(block); } allocatedPages.clear(); currentPage = null; pageCursor = 0; return memoryFreed; }
long function() { updatePeakMemoryUsed(); long memoryFreed = 0; for (MemoryBlock block : allocatedPages) { memoryFreed += block.size(); freePage(block); } allocatedPages.clear(); currentPage = null; pageCursor = 0; return memoryFreed; }
/** * Free this sorter's data pages. * * @return the number of bytes freed. */
Free this sorter's data pages
freeMemory
{ "repo_name": "michalsenkyr/spark", "path": "core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeExternalSorter.java", "license": "apache-2.0", "size": 24978 }
[ "org.apache.spark.unsafe.memory.MemoryBlock" ]
import org.apache.spark.unsafe.memory.MemoryBlock;
import org.apache.spark.unsafe.memory.*;
[ "org.apache.spark" ]
org.apache.spark;
2,013,983
@Test public void testRegister() { UserRegistration sampleUser = new UserRegistration("Petr Aubrecht", "aubi", "aubi@example.com", "abc"); UserRegistration responseMsg = target.path("/registration/register") .request(MediaType.APPLICATION_JSON).post(Entity.entity(sampleUser, Medi...
void function() { UserRegistration sampleUser = new UserRegistration(STR, "aubi", STR, "abc"); UserRegistration responseMsg = target.path(STR) .request(MediaType.APPLICATION_JSON).post(Entity.entity(sampleUser, MediaType.APPLICATION_JSON_TYPE), UserRegistration.class); assertEquals(sampleUser, responseMsg); }
/** * Test registration */
Test registration
testRegister
{ "repo_name": "Compeet/application-server", "path": "compeet-server/src/test/java/cz/mgn/compeet/RegisterTest.java", "license": "gpl-3.0", "size": 3730 }
[ "cz.mgn.compeet.model.UserRegistration", "javax.ws.rs.client.Entity", "javax.ws.rs.core.MediaType", "org.junit.Assert" ]
import cz.mgn.compeet.model.UserRegistration; import javax.ws.rs.client.Entity; import javax.ws.rs.core.MediaType; import org.junit.Assert;
import cz.mgn.compeet.model.*; import javax.ws.rs.client.*; import javax.ws.rs.core.*; import org.junit.*;
[ "cz.mgn.compeet", "javax.ws", "org.junit" ]
cz.mgn.compeet; javax.ws; org.junit;
2,508,616
private boolean isProtectedAccessible(Symbol sym, ClassSymbol c, Type site) { while (c != null && !(c.isSubClass(sym.owner) && (c.flags() & INTERFACE) == 0 && ((sym .flags() & STATIC) != 0 || sym.kind == TYP || site.tsym.isSubClass(c)))) c = c.owner.enclClass(); return c != null; }
boolean function(Symbol sym, ClassSymbol c, Type site) { while (c != null && !(c.isSubClass(sym.owner) && (c.flags() & INTERFACE) == 0 && ((sym .flags() & STATIC) != 0 sym.kind == TYP site.tsym.isSubClass(c)))) c = c.owner.enclClass(); return c != null; }
/** * Is given protected symbol accessible if it is selected from given site * and the selection takes place in given class? * * @param sym * The symbol with protected access * @param c * The class where the access takes place * @site The type of the qualifier */
Is given protected symbol accessible if it is selected from given site and the selection takes place in given class
isProtectedAccessible
{ "repo_name": "nileshpatelksy/hello-pod-cast", "path": "archive/FILE/Compiler/java_GJC1.42_src/src/com/sun/tools/javac/v8/comp/Resolve.java", "license": "apache-2.0", "size": 42456 }
[ "com.sun.tools.javac.v8.code.Symbol", "com.sun.tools.javac.v8.code.Type" ]
import com.sun.tools.javac.v8.code.Symbol; import com.sun.tools.javac.v8.code.Type;
import com.sun.tools.javac.v8.code.*;
[ "com.sun.tools" ]
com.sun.tools;
2,693,580
public boolean getPodcastFolderExists() { boolean podcastFolderExists = false; if (getResourceToolExists()) { // we know resources tool exists, but need to know if podcast folder // does try { podcastFolderExists = podcastService.checkPodcastFolder(); } catch (InUseException e) { LOG.inf...
boolean function() { boolean podcastFolderExists = false; if (getResourceToolExists()) { try { podcastFolderExists = podcastService.checkPodcastFolder(); } catch (InUseException e) { LOG.info(STR + STR + podcastService.getSiteId(), e); setErrorMessage(INTERNAL_ERROR_ALERT); } catch (PermissionException e) { LOG.warn(ST...
/** * Determines if the podcast folder exists. If it does not, it will attempt * to create it. * * @return boolean * TRUE if folder exists, FALSE otherwise. */
Determines if the podcast folder exists. If it does not, it will attempt to create it
getPodcastFolderExists
{ "repo_name": "ouit0408/sakai", "path": "podcasts/podcasts-app/src/java/org/sakaiproject/tool/podcasts/podHomeBean.java", "license": "apache-2.0", "size": 60014 }
[ "org.sakaiproject.exception.InUseException", "org.sakaiproject.exception.PermissionException" ]
import org.sakaiproject.exception.InUseException; import org.sakaiproject.exception.PermissionException;
import org.sakaiproject.exception.*;
[ "org.sakaiproject.exception" ]
org.sakaiproject.exception;
2,265,461
public Timestamp getDateModified() { return (Timestamp) get(3); }
Timestamp function() { return (Timestamp) get(3); }
/** * Getter for <code>sugarcrm_4_12.sc_patienttype.date_modified</code>. */
Getter for <code>sugarcrm_4_12.sc_patienttype.date_modified</code>
getDateModified
{ "repo_name": "SmartMedicalServices/SpringJOOQ", "path": "src/main/java/com/sms/sis/db/tables/records/ScPatienttypeRecord.java", "license": "gpl-3.0", "size": 10801 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,782,899
public List<GridNode> getSurroundingNodes() { List<GridNode> nodes = new ArrayList<GridNode>(); Direction[] orderedDirs = Direction.getOrderedDirs(); for( int i = 0; i < orderedDirs.length; i++ ) { Direction direction = orderedDirs[i]; int newCol = col + direction.col...
List<GridNode> function() { List<GridNode> nodes = new ArrayList<GridNode>(); Direction[] orderedDirs = Direction.getOrderedDirs(); for( int i = 0; i < orderedDirs.length; i++ ) { Direction direction = orderedDirs[i]; int newCol = col + direction.col; int newRow = row + direction.row; if (isInRaster(newCol, newRow)) { ...
/** * Gets all surrounding {@link GridNode nodes}, starting from the most eastern. * * Note that the list contains all 8 directions, but some might be null, if outside a boundary * * @return the nodes surrounding the current node. */
Gets all surrounding <code>GridNode nodes</code>, starting from the most eastern. Note that the list contains all 8 directions, but some might be null, if outside a boundary
getSurroundingNodes
{ "repo_name": "formeppe/NewAge-JGrass", "path": "jgrassgears/src/main/java/org/jgrasstools/gears/libs/modules/GridNode.java", "license": "gpl-2.0", "size": 14390 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,764,423
public JRField[] getFields(JasperReport jasperReport) throws JRException, UnsupportedOperationException { ArrayList<JRDesignField> fields = new ArrayList<JRDesignField>(); String [] fieldNames = new String [] {"id", "published.name"}; for (String s : fieldNames) { JRDesignField field = new JRDesignField(...
JRField[] function(JasperReport jasperReport) throws JRException, UnsupportedOperationException { ArrayList<JRDesignField> fields = new ArrayList<JRDesignField>(); String [] fieldNames = new String [] {"id", STR}; for (String s : fieldNames) { JRDesignField field = new JRDesignField(); field.setName(s); field.setValueC...
/** * getFields * * Get the list of fields that are returned * * <pre> * Version Date Developer Description * 0.1 29/10/2012 Genevieve Turner(GT) Initial * </pre> * * @param jasperReport * @return * @throws JRException * @throws UnsupportedOperationException * @see net.sf.jasperreport...
getFields Get the list of fields that are returned <code> Version Date Developer Description 0.1 29/10/2012 Genevieve Turner(GT) Initial </code>
getFields
{ "repo_name": "anu-doi/anudc", "path": "report-datasource/src/main/java/au/edu/anu/datacommons/report/datasource/SolrDataSourceProvider.java", "license": "gpl-3.0", "size": 5059 }
[ "java.util.ArrayList", "net.sf.jasperreports.engine.JRException", "net.sf.jasperreports.engine.JRField", "net.sf.jasperreports.engine.JasperReport", "net.sf.jasperreports.engine.design.JRDesignField" ]
import java.util.ArrayList; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JRField; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.engine.design.JRDesignField;
import java.util.*; import net.sf.jasperreports.engine.*; import net.sf.jasperreports.engine.design.*;
[ "java.util", "net.sf.jasperreports" ]
java.util; net.sf.jasperreports;
1,387,885
public JsonObject getProvisioningTemplate() { return this.provisioningTemplate; }
JsonObject function() { return this.provisioningTemplate; }
/** * Describes how to provision additional servers (on scale-out). The * appearance of this document is cloud-specific. This document is passed * as-is to the {@link CloudPoolDriver}. * * @return */
Describes how to provision additional servers (on scale-out). The appearance of this document is cloud-specific. This document is passed as-is to the <code>CloudPoolDriver</code>
getProvisioningTemplate
{ "repo_name": "elastisys/scale.cloudpool", "path": "commons/src/main/java/com/elastisys/scale/cloudpool/commons/basepool/config/BaseCloudPoolConfig.java", "license": "apache-2.0", "size": 13701 }
[ "com.google.gson.JsonObject" ]
import com.google.gson.JsonObject;
import com.google.gson.*;
[ "com.google.gson" ]
com.google.gson;
473,864
public SchemaDescriptor getSystemSchemaDescriptor( ) throws StandardException;
SchemaDescriptor function( ) throws StandardException;
/** * Get the descriptor for the system schema. Schema descriptors include * authorization ids and schema ids. * * SQL92 allows a schema to specify a default character set - we will * not support this. * * @return The descriptor for the schema. * * @exception StandardException Thrown on failur...
Get the descriptor for the system schema. Schema descriptors include authorization ids and schema ids. SQL92 allows a schema to specify a default character set - we will not support this
getSystemSchemaDescriptor
{ "repo_name": "kavin256/Derby", "path": "java/engine/org/apache/derby/iapi/sql/dictionary/DataDictionary.java", "license": "apache-2.0", "size": 79425 }
[ "org.apache.derby.iapi.error.StandardException" ]
import org.apache.derby.iapi.error.StandardException;
import org.apache.derby.iapi.error.*;
[ "org.apache.derby" ]
org.apache.derby;
2,336,062
public @IntRange(from = 0) int getCopies() { return mCopies; }
@IntRange(from = 0) int function() { return mCopies; }
/** * Gets the number of copies. * * @return The number of copies or zero if not set. */
Gets the number of copies
getCopies
{ "repo_name": "xorware/android_frameworks_base", "path": "core/java/android/print/PrintJobInfo.java", "license": "apache-2.0", "size": 23439 }
[ "android.annotation.IntRange" ]
import android.annotation.IntRange;
import android.annotation.*;
[ "android.annotation" ]
android.annotation;
2,873,305
@Test public void testOpenDeletesObsoleteFiles() throws Exception, MessageSetSizeTooLargeException, SamsaStorageException, MessageSizeTooLargeException, InvalidMessageSizeException { final ByteBufferMessageSet set = TestUtils.singleMessageSet("test".getBytes()); final LogConfig config = logConfi...
void function() throws Exception, MessageSetSizeTooLargeException, SamsaStorageException, MessageSizeTooLargeException, InvalidMessageSizeException { final ByteBufferMessageSet set = TestUtils.singleMessageSet("test".getBytes()); final LogConfig config = logConfigBuilder.segmentSize(set.sizeInBytes() * 5).maxIndexSize(...
/** * Any files ending in .deleted should be removed when the log is re-opened. */
Any files ending in .deleted should be removed when the log is re-opened
testOpenDeletesObsoleteFiles
{ "repo_name": "bernd/samsa", "path": "src/test/java/com/github/bernd/samsa/LogTest.java", "license": "apache-2.0", "size": 43252 }
[ "com.github.bernd.samsa.message.ByteBufferMessageSet", "com.github.bernd.samsa.message.InvalidMessageSizeException", "com.github.bernd.samsa.message.MessageSetSizeTooLargeException", "com.github.bernd.samsa.message.MessageSizeTooLargeException" ]
import com.github.bernd.samsa.message.ByteBufferMessageSet; import com.github.bernd.samsa.message.InvalidMessageSizeException; import com.github.bernd.samsa.message.MessageSetSizeTooLargeException; import com.github.bernd.samsa.message.MessageSizeTooLargeException;
import com.github.bernd.samsa.message.*;
[ "com.github.bernd" ]
com.github.bernd;
2,724,830
void update(long duration, TimeUnit unit);
void update(long duration, TimeUnit unit);
/** * Updates the timer with the difference between current and start time. */
Updates the timer with the difference between current and start time
update
{ "repo_name": "nightcode/yaranga", "path": "core/src/org/nightcode/common/util/monitoring/Timer.java", "license": "apache-2.0", "size": 2787 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
666,479
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<MicrosoftGraphTodoTaskListInner> getListsAsync(String userId, String todoTaskListId) { final List<UsersTodoSelect> select = null; final List<UsersTodoExpand> expand = null; return getListsWithResponseAsync(userId, todoTaskListId, se...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<MicrosoftGraphTodoTaskListInner> function(String userId, String todoTaskListId) { final List<UsersTodoSelect> select = null; final List<UsersTodoExpand> expand = null; return getListsWithResponseAsync(userId, todoTaskListId, select, expand) .flatMap( (Response<MicrosoftG...
/** * Get lists from users. * * @param userId key: id of user. * @param todoTaskListId key: id of todoTaskList. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws OdataErrorMainException thrown if the request is rejected by server. * @throws Runtime...
Get lists from users
getListsAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/implementation/UsersTodosClientImpl.java", "license": "mit", "size": 48043 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphTodoTaskListInner", "com.azure.resourcemanager.authorization.fluent.models.UsersTodoExpand", "com.azure.resourcemanag...
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphTodoTaskListInner; import com.azure.resourcemanager.authorization.fluent.models.UsersTodoExpand; import com.az...
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.authorization.fluent.models.*; import java.util.*;
[ "com.azure.core", "com.azure.resourcemanager", "java.util" ]
com.azure.core; com.azure.resourcemanager; java.util;
2,225,473
@Test public void mergesWithConflictsDoOverride() { final YamlMapping expected = Yaml.createYamlMappingBuilder() .add("key1", "value1") .add("key2", "changed!") .add("key3", "value3") .build(); final YamlMapping original = Yaml.createYamlMappingBui...
void function() { final YamlMapping expected = Yaml.createYamlMappingBuilder() .add("key1", STR) .add("key2", STR) .add("key3", STR) .build(); final YamlMapping original = Yaml.createYamlMappingBuilder() .add("key1", STR) .add("key2", STR) .build(); final YamlMapping changed = Yaml.createYamlMappingBuilder() .add("key2...
/** * It should merge by overriding conflicting keys. */
It should merge by overriding conflicting keys
mergesWithConflictsDoOverride
{ "repo_name": "decorators-squad/camel", "path": "src/test/java/com/amihaiemil/eoyaml/extensions/MergedYamlMappingTest.java", "license": "bsd-3-clause", "size": 21616 }
[ "com.amihaiemil.eoyaml.Yaml", "com.amihaiemil.eoyaml.YamlMapping", "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers" ]
import com.amihaiemil.eoyaml.Yaml; import com.amihaiemil.eoyaml.YamlMapping; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers;
import com.amihaiemil.eoyaml.*; import org.hamcrest.*;
[ "com.amihaiemil.eoyaml", "org.hamcrest" ]
com.amihaiemil.eoyaml; org.hamcrest;
221,677
private static void insertRelationships(Set<Relationship> relationships) throws SQLException { for(Relationship relationship: relationships) relationship.insertDb(); }
static void function(Set<Relationship> relationships) throws SQLException { for(Relationship relationship: relationships) relationship.insertDb(); }
/** * Inserts all the specified relationships * in the DB. * * @param relationships * Relationships to be inserted. * * @throws SQLException * Problem while accessing the DB. */
Inserts all the specified relationships in the DB
insertRelationships
{ "repo_name": "CompNet/GooglePlusParser", "path": "src/tr/edu/gsu/googleplus/explorer/RelationshipExtractor.java", "license": "gpl-2.0", "size": 18345 }
[ "java.sql.SQLException", "java.util.Set", "tr.edu.gsu.googleplus.data.Relationship" ]
import java.sql.SQLException; import java.util.Set; import tr.edu.gsu.googleplus.data.Relationship;
import java.sql.*; import java.util.*; import tr.edu.gsu.googleplus.data.*;
[ "java.sql", "java.util", "tr.edu.gsu" ]
java.sql; java.util; tr.edu.gsu;
1,072,148
public void setBorderRadius(List<ArcBorderRadius> borderRadius) { // resets callback setBorderRadius((BorderRadiusCallback<DatasetContext>) null); // stores the value borderItemsHandler.setBorderItem(Property.BORDER_RADIUS, Property.CHARBA_BORDER_RADIUS_TYPE, borderRadius, BORDER_RADIUS_EMPTY_ARRAY); }
void function(List<ArcBorderRadius> borderRadius) { setBorderRadius((BorderRadiusCallback<DatasetContext>) null); borderItemsHandler.setBorderItem(Property.BORDER_RADIUS, Property.CHARBA_BORDER_RADIUS_TYPE, borderRadius, BORDER_RADIUS_EMPTY_ARRAY); }
/** * Sets the arc border radius objects. * * @param borderRadius the arc border radius objects. */
Sets the arc border radius objects
setBorderRadius
{ "repo_name": "pepstock-org/Charba", "path": "src/org/pepstock/charba/client/data/PieDataset.java", "license": "apache-2.0", "size": 23128 }
[ "java.util.List", "org.pepstock.charba.client.callbacks.BorderRadiusCallback", "org.pepstock.charba.client.callbacks.DatasetContext" ]
import java.util.List; import org.pepstock.charba.client.callbacks.BorderRadiusCallback; import org.pepstock.charba.client.callbacks.DatasetContext;
import java.util.*; import org.pepstock.charba.client.callbacks.*;
[ "java.util", "org.pepstock.charba" ]
java.util; org.pepstock.charba;
2,176,470
public String getContent( HttpServletRequest request, int nMode ) throws UserNotSignedException, SiteMessageException { // Handle site messages first ISiteMessageHandler handlerSiteMessage = SpringContextService.getBean( BEAN_SITE_MESSAGE_HANDLER ); if ( handlerSiteMessage.hasMessage( r...
String function( HttpServletRequest request, int nMode ) throws UserNotSignedException, SiteMessageException { ISiteMessageHandler handlerSiteMessage = SpringContextService.getBean( BEAN_SITE_MESSAGE_HANDLER ); if ( handlerSiteMessage.hasMessage( request ) ) { return handlerSiteMessage.getPage( request, nMode ); } Cont...
/** * Returns the content of a page according to the parameters found in the http request. One distinguishes article, page and xpage and the mode. * * @param request * The http request * @param nMode * The mode (normal or administration) * @return the html code f...
Returns the content of a page according to the parameters found in the http request. One distinguishes article, page and xpage and the mode
getContent
{ "repo_name": "lutece-platform/lutece-core", "path": "src/java/fr/paris/lutece/portal/web/StandaloneAppJspBean.java", "license": "bsd-3-clause", "size": 6809 }
[ "fr.paris.lutece.portal.service.content.ContentService", "fr.paris.lutece.portal.service.message.ISiteMessageHandler", "fr.paris.lutece.portal.service.message.SiteMessageException", "fr.paris.lutece.portal.service.portal.StandaloneAppService", "fr.paris.lutece.portal.service.security.UserNotSignedException"...
import fr.paris.lutece.portal.service.content.ContentService; import fr.paris.lutece.portal.service.message.ISiteMessageHandler; import fr.paris.lutece.portal.service.message.SiteMessageException; import fr.paris.lutece.portal.service.portal.StandaloneAppService; import fr.paris.lutece.portal.service.security.UserNotSi...
import fr.paris.lutece.portal.service.content.*; import fr.paris.lutece.portal.service.message.*; import fr.paris.lutece.portal.service.portal.*; import fr.paris.lutece.portal.service.security.*; import fr.paris.lutece.portal.service.spring.*; import javax.servlet.http.*;
[ "fr.paris.lutece", "javax.servlet" ]
fr.paris.lutece; javax.servlet;
1,687,640
public void setProposals(Map<String, String> proposalMap) { this.proposals = new ContentProposal[proposalMap.size()]; int i = 0; for (Map.Entry<String, String> entry : proposalMap.entrySet()) { ContentProposal proposal = new ContentProposal(entry.getKey(), entry.getValue()); ...
void function(Map<String, String> proposalMap) { this.proposals = new ContentProposal[proposalMap.size()]; int i = 0; for (Map.Entry<String, String> entry : proposalMap.entrySet()) { ContentProposal proposal = new ContentProposal(entry.getKey(), entry.getValue()); proposals[i++] = proposal; } }
/** * Set the Strings to be used as content proposals. * * @param items the array of Strings to be used as proposals. */
Set the Strings to be used as content proposals
setProposals
{ "repo_name": "sleicht/startexplorer", "path": "plugin/src/de/bastiankrol/startexplorer/preferences/StartExplorerContentProposalProvider.java", "license": "mit", "size": 3359 }
[ "de.bastiankrol.startexplorer.util.ContentProposal", "java.util.Map" ]
import de.bastiankrol.startexplorer.util.ContentProposal; import java.util.Map;
import de.bastiankrol.startexplorer.util.*; import java.util.*;
[ "de.bastiankrol.startexplorer", "java.util" ]
de.bastiankrol.startexplorer; java.util;
1,773,184
public interface HasDragResizeMoveHandlers extends HasHandlers { HandlerRegistration addDragResizeMoveHandler(DragResizeMoveHandler handler);
interface HasDragResizeMoveHandlers extends HasHandlers { HandlerRegistration function(DragResizeMoveHandler handler);
/** * Executed every time the mouse moves while drag-resizing. * @param handler the dragResizeMove handler * @return {@link com.google.gwt.event.shared.HandlerRegistration} used to remove this handler */
Executed every time the mouse moves while drag-resizing
addDragResizeMoveHandler
{ "repo_name": "will-gilbert/SmartGWT-Mobile", "path": "mobile/src/main/java/com/smartgwt/mobile/client/widgets/events/HasDragResizeMoveHandlers.java", "license": "unlicense", "size": 1194 }
[ "com.google.gwt.event.shared.HandlerRegistration", "com.google.gwt.event.shared.HasHandlers" ]
import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.event.shared.HasHandlers;
import com.google.gwt.event.shared.*;
[ "com.google.gwt" ]
com.google.gwt;
1,039,947
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<PrivateLinkResourceListResultInner>> listByClusterWithResponseAsync( String resourceGroupName, String clusterName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<PrivateLinkResourceListResultInner>> function( String resourceGroupName, String clusterName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (this.client.getSubscriptionId() == null) { ret...
/** * Lists the private link resources in a HDInsight cluster. * * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters f...
Lists the private link resources in a HDInsight cluster
listByClusterWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/implementation/PrivateLinkResourcesClientImpl.java", "license": "mit", "size": 19379 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.hdinsight.fluent.models.PrivateLinkResourceListResultInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.hdinsight.fluent.models.PrivateLinkResourceListResultInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.hdinsight.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,840,100
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<Void>> enableRecommendationWithResponseAsync( String resourceGroupName, String managedInstanceName, String databaseName, String schemaName, String tableName, String columnName, Context conte...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Void>> function( String resourceGroupName, String managedInstanceName, String databaseName, String schemaName, String tableName, String columnName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)...
/** * Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns). * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @para...
Enables sensitivity recommendations on a given column (recommendations are enabled by default on all columns)
enableRecommendationWithResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/implementation/ManagedDatabaseSensitivityLabelsClientImpl.java", "license": "mit", "size": 102432 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
1,508,086
public TravelReportFactoryService getReportFactoryService() { return reportFactoryService; }
TravelReportFactoryService function() { return reportFactoryService; }
/** * Gets the reportFactoryService property. * @return Returns the reportFactoryService. */
Gets the reportFactoryService property
getReportFactoryService
{ "repo_name": "ua-eas/kfs-devops-automation-fork", "path": "kfs-tem/src/main/java/org/kuali/kfs/module/tem/report/service/impl/TravelReportServiceImpl.java", "license": "agpl-3.0", "size": 6792 }
[ "org.kuali.kfs.module.tem.report.service.TravelReportFactoryService" ]
import org.kuali.kfs.module.tem.report.service.TravelReportFactoryService;
import org.kuali.kfs.module.tem.report.service.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
2,443,107
public static void stopJob(IStormController storm_controller, String job_name) throws Exception { storm_controller.stopJob(job_name); }
static void function(IStormController storm_controller, String job_name) throws Exception { storm_controller.stopJob(job_name); }
/** * Should stop a job on the storm cluster given the job_name, status of the stop can * be checked via getJobStats * * @param storm_controller * @param job_name * @throws Exception */
Should stop a job on the storm cluster given the job_name, status of the stop can be checked via getJobStats
stopJob
{ "repo_name": "robgil/Aleph2", "path": "aleph2_data_import_manager/src/com/ikanow/aleph2/data_import_manager/stream_enrichment/utils/StormControllerUtil.java", "license": "apache-2.0", "size": 19874 }
[ "com.ikanow.aleph2.data_import_manager.stream_enrichment.services.IStormController" ]
import com.ikanow.aleph2.data_import_manager.stream_enrichment.services.IStormController;
import com.ikanow.aleph2.data_import_manager.stream_enrichment.services.*;
[ "com.ikanow.aleph2" ]
com.ikanow.aleph2;
2,829,765
protected void dispatchMouseEvent(String eventType, Element targetElement, Element relatedElement, Point clientXY, GraphicsNodeMouseEvent evt, ...
void function(String eventType, Element targetElement, Element relatedElement, Point clientXY, GraphicsNodeMouseEvent evt, boolean cancelable, int bubbleLimit) { if (ctx12.mouseCaptureTarget != null) { NodeEventTarget net = null; if (targetElement != null) { net = (NodeEventTarget) targetElement; while (net != null && ...
/** * Dispatches a DOM MouseEvent according to the specified * parameters. * * @param eventType the event type * @param targetElement the target of the event * @param relatedElement the related target if any * @param clientXY the mouse coordinates in the cl...
Dispatches a DOM MouseEvent according to the specified parameters
dispatchMouseEvent
{ "repo_name": "srnsw/xena", "path": "plugins/image/ext/src/batik-1.7/sources/org/apache/batik/bridge/svg12/SVG12BridgeEventSupport.java", "license": "gpl-3.0", "size": 40784 }
[ "java.awt.Point", "org.apache.batik.dom.events.AbstractEvent", "org.apache.batik.dom.events.DOMMouseEvent", "org.apache.batik.dom.events.NodeEventTarget", "org.apache.batik.dom.util.DOMUtilities", "org.apache.batik.gvt.event.GraphicsNodeMouseEvent", "org.apache.batik.util.XMLConstants", "org.w3c.dom.E...
import java.awt.Point; import org.apache.batik.dom.events.AbstractEvent; import org.apache.batik.dom.events.DOMMouseEvent; import org.apache.batik.dom.events.NodeEventTarget; import org.apache.batik.dom.util.DOMUtilities; import org.apache.batik.gvt.event.GraphicsNodeMouseEvent; import org.apache.batik.util.XMLConstant...
import java.awt.*; import org.apache.batik.dom.events.*; import org.apache.batik.dom.util.*; import org.apache.batik.gvt.event.*; import org.apache.batik.util.*; import org.w3c.dom.*; import org.w3c.dom.events.*;
[ "java.awt", "org.apache.batik", "org.w3c.dom" ]
java.awt; org.apache.batik; org.w3c.dom;
2,156,596
@Nullable public AxisAlignedBB getCollisionBoundingBox() { return this.getEntityBoundingBox(); }
AxisAlignedBB function() { return this.getEntityBoundingBox(); }
/** * Returns the collision bounding box for this entity */
Returns the collision bounding box for this entity
getCollisionBoundingBox
{ "repo_name": "TheGreatAndPowerfulWeegee/wipunknown", "path": "build/tmp/recompileMc/sources/net/minecraft/entity/item/EntityBoat.java", "license": "gpl-3.0", "size": 35927 }
[ "net.minecraft.util.math.AxisAlignedBB" ]
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.*;
[ "net.minecraft.util" ]
net.minecraft.util;
1,207,138
public OffsetCommitTrigger getOffsetCommitTrigger() { for (Pipe pipe : pipes) { Stage stage = pipe.getStage().getStage(); if (stage instanceof Target && stage instanceof OffsetCommitTrigger) { return (OffsetCommitTrigger) stage; } } return null; }
OffsetCommitTrigger function() { for (Pipe pipe : pipes) { Stage stage = pipe.getStage().getStage(); if (stage instanceof Target && stage instanceof OffsetCommitTrigger) { return (OffsetCommitTrigger) stage; } } return null; }
/** * Retrieve OffsetCommitTrigger pipe. * * If it exists, null otherwise. */
Retrieve OffsetCommitTrigger pipe. If it exists, null otherwise
getOffsetCommitTrigger
{ "repo_name": "kunickiaj/datacollector", "path": "container/src/main/java/com/streamsets/datacollector/runner/PipeRunner.java", "license": "apache-2.0", "size": 7099 }
[ "com.streamsets.pipeline.api.OffsetCommitTrigger", "com.streamsets.pipeline.api.Stage", "com.streamsets.pipeline.api.Target" ]
import com.streamsets.pipeline.api.OffsetCommitTrigger; import com.streamsets.pipeline.api.Stage; import com.streamsets.pipeline.api.Target;
import com.streamsets.pipeline.api.*;
[ "com.streamsets.pipeline" ]
com.streamsets.pipeline;
1,338,061
@Test public void testOpen() { log.debug("testOpen"); int did = -1, tid = -1, sid = -1; for (int loop = 0; loop < NLOOPS; loop++) { did = tid = sid = -1; try { did = testDataset.open(); if (did >= 0) { tid = H5....
void function() { log.debug(STR); int did = -1, tid = -1, sid = -1; for (int loop = 0; loop < NLOOPS; loop++) { did = tid = sid = -1; try { did = testDataset.open(); if (did >= 0) { tid = H5.H5Dget_type(did); sid = H5.H5Dget_space(did); } } catch (final Exception ex) { fail(STR + ex); } assertTrue(did > 0); assertTrue(...
/** * Test method for {@link ncsa.hdf.object.h5.H5CompoundDS#open()}. * <p> * What to test: * <ul> * <li>open a dataset identifier * <li>get datatype and dataspace identifier for the dataset * <li>Repeat all above * </ul> */
Test method for <code>ncsa.hdf.object.h5.H5CompoundDS#open()</code>. What to test: open a dataset identifier get datatype and dataspace identifier for the dataset Repeat all above
testOpen
{ "repo_name": "rhchen/etrakr", "path": "rcp/net.sf.etrakr.persistent.hdf.test/src/net/sf/etrakr/persistent/hdf/test/testsuite/H5CompoundDSTest.java", "license": "epl-1.0", "size": 79713 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,895,503
public MessagelistenerType<T> removeActivationspec() { childNode.removeChildren("activationspec"); return this; } // --------------------------------------------------------------------------------------------------------|| // ClassName: MessagelistenerType ElementName: xsd:ID ElementType ...
MessagelistenerType<T> function() { childNode.removeChildren(STR); return this; }
/** * Removes the <code>activationspec</code> element * @return the current instance of <code>MessagelistenerType<T></code> */
Removes the <code>activationspec</code> element
removeActivationspec
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/connector16/MessagelistenerTypeImpl.java", "license": "epl-1.0", "size": 5351 }
[ "org.jboss.shrinkwrap.descriptor.api.connector16.MessagelistenerType" ]
import org.jboss.shrinkwrap.descriptor.api.connector16.MessagelistenerType;
import org.jboss.shrinkwrap.descriptor.api.connector16.*;
[ "org.jboss.shrinkwrap" ]
org.jboss.shrinkwrap;
1,533,659
public static void eachByte(File self, Closure closure) throws IOException { BufferedInputStream is = newInputStream(self); eachByte(is, closure); }
static void function(File self, Closure closure) throws IOException { BufferedInputStream is = newInputStream(self); eachByte(is, closure); }
/** * Traverse through each byte of this File * * @param self a File * @param closure a closure * @throws IOException if an IOException occurs. * @see #eachByte(java.io.InputStream, groovy.lang.Closure) * @since 1.0 */
Traverse through each byte of this File
eachByte
{ "repo_name": "xien777/yajsw", "path": "yajsw/wrapper/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java", "license": "lgpl-2.1", "size": 704150 }
[ "groovy.lang.Closure", "java.io.BufferedInputStream", "java.io.File", "java.io.IOException" ]
import groovy.lang.Closure; import java.io.BufferedInputStream; import java.io.File; import java.io.IOException;
import groovy.lang.*; import java.io.*;
[ "groovy.lang", "java.io" ]
groovy.lang; java.io;
2,416,173
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; jScrollPane1 = new javax.swing.JScrollPane(); directiveListPanel = new javax...
@SuppressWarnings(STR) void function() { java.awt.GridBagConstraints gridBagConstraints; jScrollPane1 = new javax.swing.JScrollPane(); directiveListPanel = new javax.swing.JPanel(); queryScrollPane = new javax.swing.JScrollPane(); queryGraphPanel = new GraphPanel(); toolBar = new javax.swing.JToolBar(); buttonPanel = n...
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "Anisorf/ENCODE", "path": "encode/src/org/wandora/application/gui/topicpanels/queryeditorpanel/QueryEditorComponent.java", "license": "gpl-3.0", "size": 18340 }
[ "javax.swing.JPanel" ]
import javax.swing.JPanel;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,549,043
private static void insert_component(ComponentPlacement.ComponentLocation p_location, String p_lib_key, ReadScopeParameter p_par) { app.freerouting.board.RoutingBoard routing_board = p_par.board_handling.get_routing_board(); app.freerouting.library.Package curr_front_package = routin...
static void function(ComponentPlacement.ComponentLocation p_location, String p_lib_key, ReadScopeParameter p_par) { app.freerouting.board.RoutingBoard routing_board = p_par.board_handling.get_routing_board(); app.freerouting.library.Package curr_front_package = routing_board.library.packages.get(p_lib_key, true); app.f...
/** * Inserts all board components belonging to the input library component. */
Inserts all board components belonging to the input library component
insert_component
{ "repo_name": "freerouting/freerouting", "path": "src/main/java/app/freerouting/designforms/specctra/Network.java", "license": "gpl-3.0", "size": 62959 }
[ "app.freerouting.board.RoutingBoard", "app.freerouting.geometry.planar.IntPoint", "app.freerouting.geometry.planar.Point", "app.freerouting.geometry.planar.Vector", "app.freerouting.logger.FRLogger", "app.freerouting.rules.DefaultItemClearanceClasses", "java.util.Collection", "java.util.LinkedList" ]
import app.freerouting.board.RoutingBoard; import app.freerouting.geometry.planar.IntPoint; import app.freerouting.geometry.planar.Point; import app.freerouting.geometry.planar.Vector; import app.freerouting.logger.FRLogger; import app.freerouting.rules.DefaultItemClearanceClasses; import java.util.Collection; import j...
import app.freerouting.board.*; import app.freerouting.geometry.planar.*; import app.freerouting.logger.*; import app.freerouting.rules.*; import java.util.*;
[ "app.freerouting.board", "app.freerouting.geometry", "app.freerouting.logger", "app.freerouting.rules", "java.util" ]
app.freerouting.board; app.freerouting.geometry; app.freerouting.logger; app.freerouting.rules; java.util;
326,732
public Page<NoticeParentRp> findAllByPage(int start, int countPerPage, String keyword, String noticeId, String classId, Integer sendStatus, Integer readStatus, Integer confirmStatus) throws Exception { List<Criterion> restrictions = new ArrayList<Criterion>(); restrictions.add(Restrictions.eq("notic...
Page<NoticeParentRp> function(int start, int countPerPage, String keyword, String noticeId, String classId, Integer sendStatus, Integer readStatus, Integer confirmStatus) throws Exception { List<Criterion> restrictions = new ArrayList<Criterion>(); restrictions.add(Restrictions.eq(STR, noticeId)); restrictions.add(Rest...
/** * Service to find a collection of entities by pages * * @param start start * @param countPerPage countPerPage * @param keyword keyword * @param noticeId noticeId * @param classId classId * @return Collection * @throws Exception */
Service to find a collection of entities by pages
findAllByPage
{ "repo_name": "iclockwork/percy", "path": "app-jxt-commons/src/main/java/com/iclockwork/percy/app/jxt/commons/model/repository/NoticeParentRpRepository.java", "license": "apache-2.0", "size": 5430 }
[ "com.iclockwork.percy.app.jxt.commons.model.entity.NoticeParentRp", "com.iclockwork.percy.framework.data.Page", "java.util.ArrayList", "java.util.List", "org.hibernate.criterion.Criterion", "org.hibernate.criterion.Order", "org.hibernate.criterion.Restrictions" ]
import com.iclockwork.percy.app.jxt.commons.model.entity.NoticeParentRp; import com.iclockwork.percy.framework.data.Page; import java.util.ArrayList; import java.util.List; import org.hibernate.criterion.Criterion; import org.hibernate.criterion.Order; import org.hibernate.criterion.Restrictions;
import com.iclockwork.percy.app.jxt.commons.model.entity.*; import com.iclockwork.percy.framework.data.*; import java.util.*; import org.hibernate.criterion.*;
[ "com.iclockwork.percy", "java.util", "org.hibernate.criterion" ]
com.iclockwork.percy; java.util; org.hibernate.criterion;
1,388,627
@GetMapping @Secured(action = ActionTypes.READ) public ObjectNode detail(HttpServletRequest request) throws Exception { String namespaceId = WebUtils.optional(request, CommonParams.NAMESPACE_ID, Constants.DEFAULT_NAMESPACE_ID); String serviceName = WebUtils.required(request, CommonP...
@Secured(action = ActionTypes.READ) ObjectNode function(HttpServletRequest request) throws Exception { String namespaceId = WebUtils.optional(request, CommonParams.NAMESPACE_ID, Constants.DEFAULT_NAMESPACE_ID); String serviceName = WebUtils.required(request, CommonParams.SERVICE_NAME); NamingUtils.checkServiceNameForma...
/** * Get detail information of specified instance. * * @param request http request * @return detail information of instance * @throws Exception any error during get */
Get detail information of specified instance
detail
{ "repo_name": "alibaba/nacos", "path": "naming/src/main/java/com/alibaba/nacos/naming/controllers/InstanceController.java", "license": "apache-2.0", "size": 20247 }
[ "com.alibaba.nacos.api.common.Constants", "com.alibaba.nacos.api.naming.CommonParams", "com.alibaba.nacos.api.naming.pojo.Instance", "com.alibaba.nacos.api.naming.utils.NamingUtils", "com.alibaba.nacos.auth.annotation.Secured", "com.alibaba.nacos.common.utils.JacksonUtils", "com.alibaba.nacos.core.utils...
import com.alibaba.nacos.api.common.Constants; import com.alibaba.nacos.api.naming.CommonParams; import com.alibaba.nacos.api.naming.pojo.Instance; import com.alibaba.nacos.api.naming.utils.NamingUtils; import com.alibaba.nacos.auth.annotation.Secured; import com.alibaba.nacos.common.utils.JacksonUtils; import com.alib...
import com.alibaba.nacos.api.common.*; import com.alibaba.nacos.api.naming.*; import com.alibaba.nacos.api.naming.pojo.*; import com.alibaba.nacos.api.naming.utils.*; import com.alibaba.nacos.auth.annotation.*; import com.alibaba.nacos.common.utils.*; import com.alibaba.nacos.core.utils.*; import com.alibaba.nacos.nami...
[ "com.alibaba.nacos", "com.fasterxml.jackson", "javax.servlet" ]
com.alibaba.nacos; com.fasterxml.jackson; javax.servlet;
2,292,675
@ApiModelProperty(example = "null", value = "name string") public String getName() { return name; }
@ApiModelProperty(example = "null", value = STR) String function() { return name; }
/** * name string * * @return name **/
name string
getName
{ "repo_name": "GoldenGnu/eve-esi", "path": "src/main/java/net/troja/eve/esi/model/UniverseIdsStation.java", "license": "apache-2.0", "size": 2680 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
2,169,731
public void zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source);
void function(double lowerPercent, double upperPercent, PlotRenderingInfo state, Point2D source);
/** * Zooms in on the domain axes. * * @param lowerPercent the new lower bound. * @param upperPercent the new upper bound. * @param state the plot state. * @param source the source point (in Java2D coordinates). */
Zooms in on the domain axes
zoomDomainAxes
{ "repo_name": "raedle/univis", "path": "lib/jfreechart-1.0.1/src/org/jfree/chart/plot/Zoomable.java", "license": "lgpl-2.1", "size": 3897 }
[ "java.awt.geom.Point2D" ]
import java.awt.geom.Point2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
885,865
public void connectReadExpression(DesiredRateExpression<?> expression) { ReadRecipeBuilder builder = new ReadRecipeBuilder(); expression.fillReadRecipe(this, builder); ReadRecipe recipe = builder.build(readExceptionCollector, readConnCollector); synchronized(lock) { readR...
void function(DesiredRateExpression<?> expression) { ReadRecipeBuilder builder = new ReadRecipeBuilder(); expression.fillReadRecipe(this, builder); ReadRecipe recipe = builder.build(readExceptionCollector, readConnCollector); synchronized(lock) { readRecipies.put(expression, recipe); } if (!recipe.getChannelReadRecipes...
/** * Connects the given expression. * <p> * This can be used for dynamic expression to add and connect child expressions. * The added expression will be automatically closed when the associated * reader is closed, if it's not disconnected first. * * @param expression the expression ...
Connects the given expression. This can be used for dynamic expression to add and connect child expressions. The added expression will be automatically closed when the associated reader is closed, if it's not disconnected first
connectReadExpression
{ "repo_name": "diirt/pvmanager", "path": "pvmanager-core/src/main/java/org/epics/pvmanager/PVDirector.java", "license": "gpl-2.0", "size": 15822 }
[ "org.epics.pvmanager.expression.DesiredRateExpression" ]
import org.epics.pvmanager.expression.DesiredRateExpression;
import org.epics.pvmanager.expression.*;
[ "org.epics.pvmanager" ]
org.epics.pvmanager;
1,662,071
private void configureMenu(Menu menu) { if (menu == null) { return; } // Set visibility of account/folder settings menu items if (mMessageListFragment == null) { menu.findItem(R.id.account_settings).setVisible(false); menu.findItem(R.id.folder_set...
void function(Menu menu) { if (menu == null) { return; } if (mMessageListFragment == null) { menu.findItem(R.id.account_settings).setVisible(false); menu.findItem(R.id.folder_settings).setVisible(false); } else { menu.findItem(R.id.account_settings).setVisible( mMessageListFragment.isSingleAccountMode()); menu.findItem...
/** * Hide menu items not appropriate for the current context. * * <p><strong>Note:</strong> * Please adjust the comments in {@code res/menu/message_list_option.xml} if you change the * visibility of a menu item in this method. * </p> * * @param menu * The {@link Men...
Hide menu items not appropriate for the current context. Note: Please adjust the comments in res/menu/message_list_option.xml if you change the visibility of a menu item in this method.
configureMenu
{ "repo_name": "G00fY2/k-9_material_design", "path": "k9mail/src/main/java/com/fsck/k9/activity/MessageList.java", "license": "apache-2.0", "size": 60345 }
[ "android.os.Build", "android.view.Menu", "android.view.MenuItem" ]
import android.os.Build; import android.view.Menu; import android.view.MenuItem;
import android.os.*; import android.view.*;
[ "android.os", "android.view" ]
android.os; android.view;
1,744,275
@ApiModelProperty(value = "The basic user resource") public SimpleUserResource getUser() { return user; }
@ApiModelProperty(value = STR) SimpleUserResource function() { return user; }
/** * The basic user resource * @return user **/
The basic user resource
getUser
{ "repo_name": "knetikmedia/knetikcloud-java-client", "path": "src/main/java/com/knetikcloud/model/FlagResource.java", "license": "apache-2.0", "size": 5396 }
[ "com.knetikcloud.model.SimpleUserResource", "io.swagger.annotations.ApiModelProperty" ]
import com.knetikcloud.model.SimpleUserResource; import io.swagger.annotations.ApiModelProperty;
import com.knetikcloud.model.*; import io.swagger.annotations.*;
[ "com.knetikcloud.model", "io.swagger.annotations" ]
com.knetikcloud.model; io.swagger.annotations;
2,035,401
static public void sendEmailAlert(String usr, boolean active, String pname) { if (userTriggersAlert(usr)) { String sub = "IRIS Action Plan Alert"; String msg = "User " + usr + (active ? " actived" : " deactivated") + " action plan " + "'" + pname + "' on " + new Date().toString(); String re...
static void function(String usr, boolean active, String pname) { if (userTriggersAlert(usr)) { String sub = STR; String msg = STR + usr + (active ? STR : STR) + STR + "'" + pname + STR + new Date().toString(); String recip = SystemAttrEnum. EMAIL_RECIPIENT_ACTION_PLAN.getString(); EmailHandler.sendEmail(sub, msg, recip...
/** Send an email alert. This method does not block. * @param usr User name. * @param active True if plan is being activated. * @param pname Plan name being activated. */
Send an email alert. This method does not block
sendEmailAlert
{ "repo_name": "CA-IRIS/mn-iris", "path": "src/us/mn/state/dot/tms/server/ActionPlanSystem.java", "license": "gpl-2.0", "size": 1943 }
[ "java.util.Date", "us.mn.state.dot.tms.SystemAttrEnum" ]
import java.util.Date; import us.mn.state.dot.tms.SystemAttrEnum;
import java.util.*; import us.mn.state.dot.tms.*;
[ "java.util", "us.mn.state" ]
java.util; us.mn.state;
1,802,775
public String getTitle() { Matcher m = Pattern.compile( "<title>(?<title>.*)</title>" ).matcher( page.getText() ); // Use a regex to extract the title from the page. I know that using regexes on HTML is tricky but it should work for well-written pages. if( m.find() ) return m.group( "title" ); // Get the title...
String function() { Matcher m = Pattern.compile( STR ).matcher( page.getText() ); if( m.find() ) return m.group( "title" ); return page.getPage().getFile(); }
/** * Get the title of the current page. * * @return The title of the current page. */
Get the title of the current page
getTitle
{ "repo_name": "phildyer/jbrowser", "path": "src/uk/ac/ncl/b4021656/browser/Viewport.java", "license": "mit", "size": 3384 }
[ "java.util.regex.Matcher", "java.util.regex.Pattern" ]
import java.util.regex.Matcher; import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
2,846,713
private static SortedOrthogonalRoomNeighbours calculate_neighbours(ExpansionRoom p_room, int p_net_no, ShapeSearchTree p_autoroute_search_tree, int p_room_id_no) { TileShape room_shape = p_room.get_shape(); if (!(room_shape instanceof IntBox)) { FRLogger.warn("Sor...
static SortedOrthogonalRoomNeighbours function(ExpansionRoom p_room, int p_net_no, ShapeSearchTree p_autoroute_search_tree, int p_room_id_no) { TileShape room_shape = p_room.get_shape(); if (!(room_shape instanceof IntBox)) { FRLogger.warn(STR); return null; } IntBox room_box = (IntBox) room_shape; CompleteExpansionRoo...
/** * Calculates all touching neighbours of p_room and sorts them in * counterclock sense around the boundary of the room shape. */
Calculates all touching neighbours of p_room and sorts them in counterclock sense around the boundary of the room shape
calculate_neighbours
{ "repo_name": "freerouting/freerouting", "path": "src/main/java/app/freerouting/autoroute/SortedOrthogonalRoomNeighbours.java", "license": "gpl-3.0", "size": 31678 }
[ "app.freerouting.board.Item", "app.freerouting.board.SearchTreeObject", "app.freerouting.board.ShapeSearchTree", "app.freerouting.datastructures.ShapeTree", "app.freerouting.geometry.planar.IntBox", "app.freerouting.geometry.planar.TileShape", "app.freerouting.logger.FRLogger", "java.util.Collection",...
import app.freerouting.board.Item; import app.freerouting.board.SearchTreeObject; import app.freerouting.board.ShapeSearchTree; import app.freerouting.datastructures.ShapeTree; import app.freerouting.geometry.planar.IntBox; import app.freerouting.geometry.planar.TileShape; import app.freerouting.logger.FRLogger; import...
import app.freerouting.board.*; import app.freerouting.datastructures.*; import app.freerouting.geometry.planar.*; import app.freerouting.logger.*; import java.util.*;
[ "app.freerouting.board", "app.freerouting.datastructures", "app.freerouting.geometry", "app.freerouting.logger", "java.util" ]
app.freerouting.board; app.freerouting.datastructures; app.freerouting.geometry; app.freerouting.logger; java.util;
689,244
boolean readBool() throws IOException;
boolean readBool() throws IOException;
/** * Read boolean. * * @return boolean. * @throws IOException. */
Read boolean
readBool
{ "repo_name": "dachengxi/EatDubbo", "path": "dubbo-common/src/main/java/com/alibaba/dubbo/common/serialize/DataInput.java", "license": "apache-2.0", "size": 1895 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,400,683
public void addCloseButtonActionListener(final ActionListener al) { this.closeListeners.add(al); }
void function(final ActionListener al) { this.closeListeners.add(al); }
/** * DOCUMENT ME! * * @param al DOCUMENT ME! */
DOCUMENT ME
addCloseButtonActionListener
{ "repo_name": "cismet/cismet-gui-commons", "path": "src/main/java/de/cismet/tools/gui/panels/AlertPanel.java", "license": "lgpl-3.0", "size": 13412 }
[ "java.awt.event.ActionListener" ]
import java.awt.event.ActionListener;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
2,132,152
void trace(long startTime, int count) { if (session.getTrace().isInfoEnabled()) { long time = System.currentTimeMillis() - startTime; String params = Trace.formatParams(parameters); session.getTrace().infoSQL(sqlStatement, params, count, time); } }
void trace(long startTime, int count) { if (session.getTrace().isInfoEnabled()) { long time = System.currentTimeMillis() - startTime; String params = Trace.formatParams(parameters); session.getTrace().infoSQL(sqlStatement, params, count, time); } }
/** * Print information about the statement executed if info trace level is * enabled. * * @param startTime when the statement was started * @param count the update count */
Print information about the statement executed if info trace level is enabled
trace
{ "repo_name": "titus08/frostwire-desktop", "path": "lib/jars-src/h2-1.3.164/org/h2/command/Prepared.java", "license": "gpl-3.0", "size": 10168 }
[ "org.h2.message.Trace" ]
import org.h2.message.Trace;
import org.h2.message.*;
[ "org.h2.message" ]
org.h2.message;
900,475
EReference getTypeScope_Number();
EReference getTypeScope_Number();
/** * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope#getNumber <em>Number</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Number</em>'. * @s...
Returns the meta object for the containment reference '<code>hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.TypeScope#getNumber Number</code>'.
getTypeScope_Number
{ "repo_name": "viatra/VIATRA-Generator", "path": "Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ApplicationConfigurationPackage.java", "license": "epl-1.0", "size": 236178 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,261,743
LdapEntry mapFromRegisteredService(final String dn, final RegisteredService svc);
LdapEntry mapFromRegisteredService(final String dn, final RegisteredService svc);
/** * Map from registered service to ldap. * * @param dn the dn * @param svc the svc * @return the ldap entry */
Map from registered service to ldap
mapFromRegisteredService
{ "repo_name": "icanfly/cas", "path": "cas-server-support-ldap/src/main/java/org/jasig/cas/adaptors/ldap/services/LdapRegisteredServiceMapper.java", "license": "apache-2.0", "size": 2397 }
[ "org.jasig.cas.services.RegisteredService", "org.ldaptive.LdapEntry" ]
import org.jasig.cas.services.RegisteredService; import org.ldaptive.LdapEntry;
import org.jasig.cas.services.*; import org.ldaptive.*;
[ "org.jasig.cas", "org.ldaptive" ]
org.jasig.cas; org.ldaptive;
1,419,082
private List<IToken> getCompletionsForIInfo(ICompletionState state, IPythonNature nature, IInfo iInfo) throws CompletionRecursionException { ICompletionState copy = state.getCopy(); String path = iInfo.getPath(); String act = iInfo.getName(); if (path != null) { ...
List<IToken> function(ICompletionState state, IPythonNature nature, IInfo iInfo) throws CompletionRecursionException { ICompletionState copy = state.getCopy(); String path = iInfo.getPath(); String act = iInfo.getName(); if (path != null) { act = path + "." + act; } copy.setActivationToken(act); ICodeCompletionASTManag...
/** * Gets completions given a module and related info. */
Gets completions given a module and related info
getCompletionsForIInfo
{ "repo_name": "siddhika1889/Pydev-Project", "path": "src/com/python/pydev/codecompletion/ctxinsensitive/CtxParticipant.java", "license": "epl-1.0", "size": 17771 }
[ "com.python.pydev.analysis.additionalinfo.IInfo", "java.util.Arrays", "java.util.List", "org.python.pydev.core.ICodeCompletionASTManager", "org.python.pydev.core.ICompletionState", "org.python.pydev.core.IModule", "org.python.pydev.core.IPythonNature", "org.python.pydev.core.IToken", "org.python.pyd...
import com.python.pydev.analysis.additionalinfo.IInfo; import java.util.Arrays; import java.util.List; import org.python.pydev.core.ICodeCompletionASTManager; import org.python.pydev.core.ICompletionState; import org.python.pydev.core.IModule; import org.python.pydev.core.IPythonNature; import org.python.pydev.core.ITo...
import com.python.pydev.analysis.additionalinfo.*; import java.util.*; import org.python.pydev.core.*; import org.python.pydev.core.structure.*;
[ "com.python.pydev", "java.util", "org.python.pydev" ]
com.python.pydev; java.util; org.python.pydev;
1,203,810
Annotation createErrorAnnotation(@NotNull ASTNode node, @Nullable String message);
Annotation createErrorAnnotation(@NotNull ASTNode node, @Nullable String message);
/** * Creates an error annotation with the specified message over the specified AST node. * * @param node the node over which the annotation is created. * @param message the error message. * @return the annotation (which can be modified to set additional annotation parameters) */
Creates an error annotation with the specified message over the specified AST node
createErrorAnnotation
{ "repo_name": "akosyakov/intellij-community", "path": "platform/analysis-api/src/com/intellij/lang/annotation/AnnotationHolder.java", "license": "apache-2.0", "size": 7924 }
[ "com.intellij.lang.ASTNode", "org.jetbrains.annotations.NotNull", "org.jetbrains.annotations.Nullable" ]
import com.intellij.lang.ASTNode; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable;
import com.intellij.lang.*; import org.jetbrains.annotations.*;
[ "com.intellij.lang", "org.jetbrains.annotations" ]
com.intellij.lang; org.jetbrains.annotations;
118,038
public WorkerProcessPool getWorkerProcessPool( ExecutionContext context, WorkerProcessParams paramsToUse) { ConcurrentMap<String, WorkerProcessPool> processPoolMap; String key; HashCode workerHash; if (paramsToUse.getWorkerProcessIdentity().isPresent() && context.getPersistentWorkerPools...
WorkerProcessPool function( ExecutionContext context, WorkerProcessParams paramsToUse) { ConcurrentMap<String, WorkerProcessPool> processPoolMap; String key; HashCode workerHash; if (paramsToUse.getWorkerProcessIdentity().isPresent() && context.getPersistentWorkerPools().isPresent()) { processPoolMap = context.getPersi...
/** * Returns an existing WorkerProcessPool for the given job params if one exists, otherwise creates * a new one. */
Returns an existing WorkerProcessPool for the given job params if one exists, otherwise creates a new one
getWorkerProcessPool
{ "repo_name": "zpao/buck", "path": "src/com/facebook/buck/worker/WorkerProcessPoolFactory.java", "license": "apache-2.0", "size": 6806 }
[ "com.facebook.buck.core.build.execution.context.ExecutionContext", "com.facebook.buck.event.ConsoleEvent", "com.google.common.base.Joiner", "com.google.common.hash.HashCode", "com.google.common.hash.Hashing", "java.nio.charset.StandardCharsets", "java.util.concurrent.ConcurrentMap" ]
import com.facebook.buck.core.build.execution.context.ExecutionContext; import com.facebook.buck.event.ConsoleEvent; import com.google.common.base.Joiner; import com.google.common.hash.HashCode; import com.google.common.hash.Hashing; import java.nio.charset.StandardCharsets; import java.util.concurrent.ConcurrentMap;
import com.facebook.buck.core.build.execution.context.*; import com.facebook.buck.event.*; import com.google.common.base.*; import com.google.common.hash.*; import java.nio.charset.*; import java.util.concurrent.*;
[ "com.facebook.buck", "com.google.common", "java.nio", "java.util" ]
com.facebook.buck; com.google.common; java.nio; java.util;
845,658
StackManipulation onHandle(HandleType type); } @HashCodeAndEqualsPlugin.Enhance protected static class OfGenericMethod implements WithImplicitInvocationTargetType { private final TypeDescription targetType; private final WithImplicitInvocationTargetType invo...
StackManipulation onHandle(HandleType type); } @HashCodeAndEqualsPlugin.Enhance protected static class OfGenericMethod implements WithImplicitInvocationTargetType { private final TypeDescription targetType; private final WithImplicitInvocationTargetType invocation; protected OfGenericMethod(TypeDescription targetType, ...
/** * Invokes the method via a {@code MethodHandle}. * * @param type The type of invocation. * @return A stack manipulation that represents a method call of the specified method via a method handle. */
Invokes the method via a MethodHandle
onHandle
{ "repo_name": "CodingFabian/byte-buddy", "path": "byte-buddy-dep/src/main/java/net/bytebuddy/implementation/bytecode/member/MethodInvocation.java", "license": "apache-2.0", "size": 22066 }
[ "net.bytebuddy.build.HashCodeAndEqualsPlugin", "net.bytebuddy.description.type.TypeDescription", "net.bytebuddy.implementation.bytecode.StackManipulation" ]
import net.bytebuddy.build.HashCodeAndEqualsPlugin; import net.bytebuddy.description.type.TypeDescription; import net.bytebuddy.implementation.bytecode.StackManipulation;
import net.bytebuddy.build.*; import net.bytebuddy.description.type.*; import net.bytebuddy.implementation.bytecode.*;
[ "net.bytebuddy.build", "net.bytebuddy.description", "net.bytebuddy.implementation" ]
net.bytebuddy.build; net.bytebuddy.description; net.bytebuddy.implementation;
1,361,544
public void display(ParticleData data, float offsetX, float offsetY, float offsetZ, float speed, int amount, Location center, Player... players) throws ParticleVersionException, ParticleDataException { display(data, offsetX, offsetY, offsetZ, speed, amount, center, Arrays.asList(players)); }
void function(ParticleData data, float offsetX, float offsetY, float offsetZ, float speed, int amount, Location center, Player... players) throws ParticleVersionException, ParticleDataException { display(data, offsetX, offsetY, offsetZ, speed, amount, center, Arrays.asList(players)); }
/** * Displays a particle effect which requires additional data and is only visible for the specified players * * @param data Data of the effect * @param offsetX Maximum distance particles can fly away from the center on the x-axis * @param offsetY Maximum distance particles can fly away from the center...
Displays a particle effect which requires additional data and is only visible for the specified players
display
{ "repo_name": "john180/Residence", "path": "src/com/bekvon/bukkit/residence/utils/ParticleEffects.java", "license": "gpl-3.0", "size": 60322 }
[ "java.util.Arrays", "org.bukkit.Location", "org.bukkit.entity.Player" ]
import java.util.Arrays; import org.bukkit.Location; import org.bukkit.entity.Player;
import java.util.*; import org.bukkit.*; import org.bukkit.entity.*;
[ "java.util", "org.bukkit", "org.bukkit.entity" ]
java.util; org.bukkit; org.bukkit.entity;
27,016
public ServiceFuture<ExpressRouteCrossConnectionInner> getByResourceGroupAsync(String resourceGroupName, String crossConnectionName, final ServiceCallback<ExpressRouteCrossConnectionInner> serviceCallback) { return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, cros...
ServiceFuture<ExpressRouteCrossConnectionInner> function(String resourceGroupName, String crossConnectionName, final ServiceCallback<ExpressRouteCrossConnectionInner> serviceCallback) { return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, crossConnectionName), serviceCallback)...
/** * Gets details about the specified ExpressRouteCrossConnection. * * @param resourceGroupName The name of the resource group (peering location of the circuit). * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param serviceCallback the ...
Gets details about the specified ExpressRouteCrossConnection
getByResourceGroupAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/network/v2020_04_01/implementation/ExpressRouteCrossConnectionsInner.java", "license": "mit", "size": 100923 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
670,251
public boolean isMultipleAdvertisementSupported() { if (getState() != STATE_ON) return false; try { mServiceLock.readLock().lock(); if (mService != null) return mService.isMultiAdvertisementSupported(); } catch (RemoteException e) { Log.e(TAG, "failed to g...
boolean function() { if (getState() != STATE_ON) return false; try { mServiceLock.readLock().lock(); if (mService != null) return mService.isMultiAdvertisementSupported(); } catch (RemoteException e) { Log.e(TAG, STR, e); } finally { mServiceLock.readLock().unlock(); } return false; }
/** * Return true if the multi advertisement is supported by the chipset * * @return true if Multiple Advertisement feature is supported */
Return true if the multi advertisement is supported by the chipset
isMultipleAdvertisementSupported
{ "repo_name": "xorware/android_frameworks_base", "path": "core/java/android/bluetooth/BluetoothAdapter.java", "license": "apache-2.0", "size": 97550 }
[ "android.os.RemoteException", "android.util.Log" ]
import android.os.RemoteException; import android.util.Log;
import android.os.*; import android.util.*;
[ "android.os", "android.util" ]
android.os; android.util;
332,847
public void start(final ParticleView p, boolean emitting) { if (p == null) throw new NullPointerException();
void function(final ParticleView p, boolean emitting) { if (p == null) throw new NullPointerException();
/** * Start Animation * @param p * @param emitting */
Start Animation
start
{ "repo_name": "ffournier/animations", "path": "app/src/main/java/com/animations/animations/lib/ParticleManager.java", "license": "apache-2.0", "size": 17090 }
[ "com.animations.animations.lib.view.ParticleView" ]
import com.animations.animations.lib.view.ParticleView;
import com.animations.animations.lib.view.*;
[ "com.animations.animations" ]
com.animations.animations;
1,077,548
private int getByte(ParserState s) throws EOBException, IOException { int c = 0; c = reader.read(); if (c == -1) { // EOBException is thrown if no more bytes in buffer. This exception is used to exit the parser when full // packet is not in buffer throw n...
int function(ParserState s) throws EOBException, IOException { int c = 0; c = reader.read(); if (c == -1) { throw new EOBException(); } return c; }
/** * Gets a single byte from reader input stream * * @param s used during debug to identify proper state transitioning * @return next byte from reader * @throws EOBException * @throws IOException */
Gets a single byte from reader input stream
getByte
{ "repo_name": "tavalin/openhab2-addons", "path": "addons/binding/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/handler/PentairBaseBridgeHandler.java", "license": "epl-1.0", "size": 17196 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,248,475
public String getMyNodeID() throws ClusterMgtException { ClusterManagementBeans clusterManagementBeans = new ClusterManagementBeans(); return clusterManagementBeans.getMyNodeID(); }
String function() throws ClusterMgtException { ClusterManagementBeans clusterManagementBeans = new ClusterManagementBeans(); return clusterManagementBeans.getMyNodeID(); }
/** * get the ID assigned by zookeeper to this node * * @return String node ID * @throws ClusterMgtException */
get the ID assigned by zookeeper to this node
getMyNodeID
{ "repo_name": "maheshika/carbon-business-messaging", "path": "components/andes/org.wso2.carbon.andes.cluster.mgt/src/main/java/org/wso2/carbon/andes/cluster/mgt/ClusterManagerService.java", "license": "apache-2.0", "size": 10740 }
[ "org.wso2.carbon.andes.cluster.mgt.internal.ClusterMgtException", "org.wso2.carbon.andes.cluster.mgt.internal.managementBeans.ClusterManagementBeans" ]
import org.wso2.carbon.andes.cluster.mgt.internal.ClusterMgtException; import org.wso2.carbon.andes.cluster.mgt.internal.managementBeans.ClusterManagementBeans;
import org.wso2.carbon.andes.cluster.mgt.internal.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
1,809,496
@Override public void start() { if (this.layout == null) { addError("No layout set for the appender named [" + name + "]."); return; } if (sri == null) { try { sri = new SplunkRestInput(user, pass, host, port, red, delivery.equals(STREAM) ? true : false, this.activationKey); ...
void function() { if (this.layout == null) { addError(STR + name + "]."); return; } if (sri == null) { try { sri = new SplunkRestInput(user, pass, host, port, red, delivery.equals(STREAM) ? true : false, this.activationKey); sri.setMaxQueueSize(maxQueueSize); sri.setDropEventsOnQueueFull(dropEventsOnQueueFull); } catch...
/** * Initialisation logic */
Initialisation logic
start
{ "repo_name": "damiendallimore/SplunkJavaLogging", "path": "src/com/splunk/logging/logback/appender/SplunkRestAppender.java", "license": "apache-2.0", "size": 4840 }
[ "com.splunk.logging.SplunkRestInput" ]
import com.splunk.logging.SplunkRestInput;
import com.splunk.logging.*;
[ "com.splunk.logging" ]
com.splunk.logging;
1,853,709
public void refresh(HelixDataAccessor accessor) { LOG.info("START: BasicClusterDataCache.refresh() for cluster " + _clusterName); long startTime = System.currentTimeMillis(); if (_propertyDataChangedMap.get(HelixConstants.ChangeType.EXTERNAL_VIEW)) { _propertyDataChangedMap.put(HelixConstants.Chang...
void function(HelixDataAccessor accessor) { LOG.info(STR + _clusterName); long startTime = System.currentTimeMillis(); if (_propertyDataChangedMap.get(HelixConstants.ChangeType.EXTERNAL_VIEW)) { _propertyDataChangedMap.put(HelixConstants.ChangeType.EXTERNAL_VIEW, false); _externalViewCache.refresh(accessor); } if (_pro...
/** * This refreshes the cluster data by re-fetching the data from zookeeper in an efficient way. * If we want to support multi-threading in the future, this method needs to be synchronized. * * @param accessor * * @return */
This refreshes the cluster data by re-fetching the data from zookeeper in an efficient way. If we want to support multi-threading in the future, this method needs to be synchronized
refresh
{ "repo_name": "lei-xia/helix", "path": "helix-core/src/main/java/org/apache/helix/common/caches/BasicClusterDataCache.java", "license": "apache-2.0", "size": 8430 }
[ "org.apache.helix.HelixConstants", "org.apache.helix.HelixDataAccessor" ]
import org.apache.helix.HelixConstants; import org.apache.helix.HelixDataAccessor;
import org.apache.helix.*;
[ "org.apache.helix" ]
org.apache.helix;
1,342,024
boolean isTaskMarkedStopped(TaskId taskId) { // We don't use the cache `stoppedTasks` because it isn't guaranteed to be up-to-date. try { return zookeeper.connection().checkExists().forPath(String.format(TASKS_STOPPED, taskId)) != null; } catch (RuntimeException e) { ...
boolean isTaskMarkedStopped(TaskId taskId) { try { return zookeeper.connection().checkExists().forPath(String.format(TASKS_STOPPED, taskId)) != null; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new RuntimeException(e); } }
/** * Check in Zookeeper whether the task has been stopped. * @param taskId the task ID to look up in Zookeeper * @return true if the task has been marked stopped */
Check in Zookeeper whether the task has been stopped
isTaskMarkedStopped
{ "repo_name": "alexandraorth/grakn", "path": "grakn-engine/src/main/java/ai/grakn/engine/tasks/manager/singlequeue/SingleQueueTaskManager.java", "license": "gpl-3.0", "size": 10169 }
[ "ai.grakn.engine.TaskId" ]
import ai.grakn.engine.TaskId;
import ai.grakn.engine.*;
[ "ai.grakn.engine" ]
ai.grakn.engine;
2,706,791
int addIfIsGoodTarget(DatanodeStorageInfo storage, Set<Node> excludedNodes, long blockSize, int maxNodesPerRack, boolean considerLoad, List<DatanodeStorageInfo> results, boolean avoidStaleNodes, StorageType storageType) { if (isGoodTarget(storag...
int addIfIsGoodTarget(DatanodeStorageInfo storage, Set<Node> excludedNodes, long blockSize, int maxNodesPerRack, boolean considerLoad, List<DatanodeStorageInfo> results, boolean avoidStaleNodes, StorageType storageType) { if (isGoodTarget(storage, blockSize, maxNodesPerRack, considerLoad, results, avoidStaleNodes, stor...
/** * If the given storage is a good target, add it to the result list and * update the set of excluded nodes. * @return -1 if the given is not a good target; * otherwise, return the number of nodes added to excludedNodes set. */
If the given storage is a good target, add it to the result list and update the set of excluded nodes
addIfIsGoodTarget
{ "repo_name": "jsrudani/HadoopHDFSProject", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockPlacementPolicyDefault.java", "license": "apache-2.0", "size": 31115 }
[ "java.util.List", "java.util.Set", "org.apache.hadoop.hdfs.StorageType", "org.apache.hadoop.net.Node" ]
import java.util.List; import java.util.Set; import org.apache.hadoop.hdfs.StorageType; import org.apache.hadoop.net.Node;
import java.util.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.net.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,100,028
@Override @XmlElement(name = "resourceFormat") public Collection<Format> getResourceFormats() { return resourceFormats = nonNullCollection(resourceFormats, Format.class); }
@XmlElement(name = STR) Collection<Format> function() { return resourceFormats = nonNullCollection(resourceFormats, Format.class); }
/** * Provides a description of the format of the resource(s). * * @return description of the format. * * @see org.apache.sis.metadata.iso.distribution.DefaultDistribution#getDistributionFormats() */
Provides a description of the format of the resource(s)
getResourceFormats
{ "repo_name": "Geomatys/sis", "path": "core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/identification/AbstractIdentification.java", "license": "apache-2.0", "size": 30038 }
[ "java.util.Collection", "javax.xml.bind.annotation.XmlElement", "org.opengis.metadata.distribution.Format" ]
import java.util.Collection; import javax.xml.bind.annotation.XmlElement; import org.opengis.metadata.distribution.Format;
import java.util.*; import javax.xml.bind.annotation.*; import org.opengis.metadata.distribution.*;
[ "java.util", "javax.xml", "org.opengis.metadata" ]
java.util; javax.xml; org.opengis.metadata;
2,340,634
public Table<String, String, ImmutableSet<String>> getInclusionRules() { return Tables.unmodifiableTable(inclusions); }
Table<String, String, ImmutableSet<String>> function() { return Tables.unmodifiableTable(inclusions); }
/** * Returns an unmodifiable view of the table of inclusion rules: rows are * metamodel URIs, columns are type names or WILDCARD (meaning all types in * the metamodel) and cells are either sets of slot names or a singleton set * with WILDCARD (meaning "all"). An empty table means "include everything". */
Returns an unmodifiable view of the table of inclusion rules: rows are metamodel URIs, columns are type names or WILDCARD (meaning all types in the metamodel) and cells are either sets of slot names or a singleton set with WILDCARD (meaning "all"). An empty table means "include everything"
getInclusionRules
{ "repo_name": "mondo-project/mondo-integration", "path": "uk.ac.york.mondo.integration.api/src/uk/ac/york/mondo/integration/api/EffectiveMetamodelRuleset.java", "license": "epl-1.0", "size": 10078 }
[ "com.google.common.collect.ImmutableSet", "com.google.common.collect.Table", "com.google.common.collect.Tables" ]
import com.google.common.collect.ImmutableSet; import com.google.common.collect.Table; import com.google.common.collect.Tables;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
1,840,815
public ServiceFuture<Void> beginOnlineRegionAsync(String resourceGroupName, String accountName, String region, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginOnlineRegionWithServiceResponseAsync(resourceGroupName, accountName, region), serviceCallback); }
ServiceFuture<Void> function(String resourceGroupName, String accountName, String region, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginOnlineRegionWithServiceResponseAsync(resourceGroupName, accountName, region), serviceCallback); }
/** * Online the specified region for the specified Azure Cosmos DB database account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param region Cosmos DB region, with spaces between words and ...
Online the specified region for the specified Azure Cosmos DB database account
beginOnlineRegionAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cosmos/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_04_01/implementation/DatabaseAccountsInner.java", "license": "mit", "size": 153860 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
407,398
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux<PollResult<ExpressRouteCircuitPeeringInner>, ExpressRouteCircuitPeeringInner> beginCreateOrUpdateAsync( String resourceGroupName, String circuitName, String peeringName, ExpressRouteCircuitPeeringInner peering...
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux<PollResult<ExpressRouteCircuitPeeringInner>, ExpressRouteCircuitPeeringInner> beginCreateOrUpdateAsync( String resourceGroupName, String circuitName, String peeringName, ExpressRouteCircuitPeeringInner peeringParameters);
/** * Creates or updates a peering in the specified express route circuits. * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the express route circuit. * @param peeringName The name of the peering. * @param peeringParameters Parameters supplied ...
Creates or updates a peering in the specified express route circuits
beginCreateOrUpdateAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitPeeringsClient.java", "license": "mit", "size": 20443 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.management.polling.PollResult", "com.azure.core.util.polling.PollerFlux", "com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitPeeringInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.PollerFlux; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitPeeringInner;
import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,310,431
void transform(ControlFlowGraph graph) throws OptimizationException;
void transform(ControlFlowGraph graph) throws OptimizationException;
/** * Transforms a graph by applying optimization or analysis operations. * * @param graph The control flow graph to operate on. * @throws OptimizationException If any error occurs during the transformation. */
Transforms a graph by applying optimization or analysis operations
transform
{ "repo_name": "sbreuils/EssaiCompile", "path": "api/src/main/java/de/gaalop/VisualizerStrategy.java", "license": "lgpl-3.0", "size": 624 }
[ "de.gaalop.cfg.ControlFlowGraph" ]
import de.gaalop.cfg.ControlFlowGraph;
import de.gaalop.cfg.*;
[ "de.gaalop.cfg" ]
de.gaalop.cfg;
2,483,815
FileStatus getFileStatus() { return this.fstatus; }
FileStatus getFileStatus() { return this.fstatus; }
/** * the filestatus of this object * @return the filestatus of this object */
the filestatus of this object
getFileStatus
{ "repo_name": "apurtell/hadoop", "path": "hadoop-tools/hadoop-archives/src/main/java/org/apache/hadoop/tools/HadoopArchives.java", "license": "apache-2.0", "size": 33538 }
[ "org.apache.hadoop.fs.FileStatus" ]
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,274,875
public PolygonSymbolizer createPolygonSymbolizer( Color fillColor, Color borderColor, double borderWidth) { return createPolygonSymbolizer( createStroke(borderColor, borderWidth), createFill(fillColor)); }
PolygonSymbolizer function( Color fillColor, Color borderColor, double borderWidth) { return createPolygonSymbolizer( createStroke(borderColor, borderWidth), createFill(fillColor)); }
/** * create a polygon symbolizer * * @param fillColor - the color to fill the polygon * @param borderColor - the outline color of the polygon * @param borderWidth - the width of the outline * * @return the new polygon symbolizer */
create a polygon symbolizer
createPolygonSymbolizer
{ "repo_name": "FUNCATE/TerraMobile", "path": "sldparser/src/main/geotools/styling/StyleBuilder.java", "license": "apache-2.0", "size": 60101 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,285,940
public static FileDescriptor newFileDescriptor(int fd) { FileDescriptor result = new FileDescriptor(); setFd(result, fd); return result; }
static FileDescriptor function(int fd) { FileDescriptor result = new FileDescriptor(); setFd(result, fd); return result; }
/** * Returns a new FileDescriptor whose internal integer is set to 'fd'. */
Returns a new FileDescriptor whose internal integer is set to 'fd'
newFileDescriptor
{ "repo_name": "openweave/openweave-core", "path": "third_party/android/platform-libcore/android-platform-libcore/luni/src/main/java/libcore/io/IoUtils.java", "license": "apache-2.0", "size": 2401 }
[ "java.io.FileDescriptor" ]
import java.io.FileDescriptor;
import java.io.*;
[ "java.io" ]
java.io;
813,680
public List<SpatialSpec> spatialIndexes() { return this.spatialIndexes; }
List<SpatialSpec> function() { return this.spatialIndexes; }
/** * Get list of spatial specifics. * * @return the spatialIndexes value */
Get list of spatial specifics
spatialIndexes
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/IndexingPolicy.java", "license": "mit", "size": 4632 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,140,464
public void post202Retry200() throws CloudException, IOException, InterruptedException { post202Retry200WithServiceResponseAsync().toBlocking().last().getBody(); }
void function() throws CloudException, IOException, InterruptedException { post202Retry200WithServiceResponseAsync().toBlocking().last().getBody(); }
/** * Long running post request, service returns a 500, then a 202 to the initial request, with 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. * * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serializ...
Long running post request, service returns a 500, then a 202 to the initial request, with 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success
post202Retry200
{ "repo_name": "tbombach/autorest", "path": "src/generator/AutoRest.Java.Azure.Tests/src/main/java/fixtures/lro/implementation/LRORetrysImpl.java", "license": "mit", "size": 81231 }
[ "com.microsoft.azure.CloudException", "java.io.IOException" ]
import com.microsoft.azure.CloudException; import java.io.IOException;
import com.microsoft.azure.*; import java.io.*;
[ "com.microsoft.azure", "java.io" ]
com.microsoft.azure; java.io;
2,520,749
@NonNull ExportBuilder<T> at(@NonNull String path);
ExportBuilder<T> at(@NonNull String path);
/** * Set the hierarchy where the feature is to be exported. The hierarchy * uses the separator {@code /}. * * @param path * path to export at * @return * self */
Set the hierarchy where the feature is to be exported. The hierarchy uses the separator /
at
{ "repo_name": "LevelFourAB/vibe", "path": "vibe-api/src/main/java/se/l4/vibe/ExportBuilder.java", "license": "apache-2.0", "size": 938 }
[ "edu.umd.cs.findbugs.annotations.NonNull" ]
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.*;
[ "edu.umd.cs" ]
edu.umd.cs;
649,628
public List<DatasetData> getDatasets() { return datasets; }
public List<DatasetData> getDatasets() { return datasets; }
/** * Returns the type of the newly created pixels set. * This value should only be set when the projection's algorithm is * <code>Sum projection</code>. * * @return See above. */
Returns the type of the newly created pixels set. This value should only be set when the projection's algorithm is <code>Sum projection</code>
getPixelsType
{ "repo_name": "ximenesuk/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/model/ProjectionParam.java", "license": "gpl-2.0", "size": 10401 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,528,917
@Override JobTargetListResult query(KapuaQuery query) throws KapuaException;
JobTargetListResult query(KapuaQuery query) throws KapuaException;
/** * Returns the {@link JobTargetListResult} with elements matching the provided query. * * @param query The {@link JobTargetQuery} used to filter results. * @return The {@link JobTargetListResult} with elements matching the query parameter. * @throws KapuaException * @since 1.0.0 */
Returns the <code>JobTargetListResult</code> with elements matching the provided query
query
{ "repo_name": "stzilli/kapua", "path": "service/job/api/src/main/java/org/eclipse/kapua/service/job/targets/JobTargetService.java", "license": "epl-1.0", "size": 1592 }
[ "org.eclipse.kapua.KapuaException", "org.eclipse.kapua.model.query.KapuaQuery" ]
import org.eclipse.kapua.KapuaException; import org.eclipse.kapua.model.query.KapuaQuery;
import org.eclipse.kapua.*; import org.eclipse.kapua.model.query.*;
[ "org.eclipse.kapua" ]
org.eclipse.kapua;
1,893,095
public void addDialogListener( org.pentaho.ui.xul.util.DialogController.DialogListener<Domain> listener ) { checkInitialized(); super.addDialogListener( listener ); listener.onDialogReady(); }
void function( org.pentaho.ui.xul.util.DialogController.DialogListener<Domain> listener ) { checkInitialized(); super.addDialogListener( listener ); listener.onDialogReady(); }
/** * Specified by <code>DialogController</code>. */
Specified by <code>DialogController</code>
addDialogListener
{ "repo_name": "SergeyTravin/data-access", "path": "core/src/main/java/org/pentaho/platform/dataaccess/datasource/wizard/EmbeddedWizard.java", "license": "apache-2.0", "size": 21352 }
[ "org.pentaho.metadata.model.Domain" ]
import org.pentaho.metadata.model.Domain;
import org.pentaho.metadata.model.*;
[ "org.pentaho.metadata" ]
org.pentaho.metadata;
2,843,705
public void setImportedFile(File f, Object result, int index);
void function(File f, Object result, int index);
/** * Sets the imported file. * * @param f The file imported. * @param result Depends on the result, it can be an image, an exception. * @param index The index of the UI components. */
Sets the imported file
setImportedFile
{ "repo_name": "hflynn/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/fsimporter/view/Importer.java", "license": "gpl-2.0", "size": 9204 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
919,384
@ApiModelProperty(value = "") public TokenDTO getToken() { return token; }
@ApiModelProperty(value = "") TokenDTO function() { return token; }
/** * Get token * @return token **/
Get token
getToken
{ "repo_name": "lalaji/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.store/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/dto/ApplicationKeyDTO.java", "license": "apache-2.0", "size": 5920 }
[ "io.swagger.annotations.ApiModelProperty", "org.wso2.carbon.apimgt.rest.api.store.dto.TokenDTO" ]
import io.swagger.annotations.ApiModelProperty; import org.wso2.carbon.apimgt.rest.api.store.dto.TokenDTO;
import io.swagger.annotations.*; import org.wso2.carbon.apimgt.rest.api.store.dto.*;
[ "io.swagger.annotations", "org.wso2.carbon" ]
io.swagger.annotations; org.wso2.carbon;
1,110,905
@Test public void doPoolUpdateWhenPoolIsProperlySized() throws Exception { // set up initial pool of size 2 DateTime now = UtcTime.now(); Machine booting = machine("i-1", PENDING, now.minus(1)); Machine active1 = machine("i-2", RUNNING, now.minus(2)); Machine terminated =...
void function() throws Exception { DateTime now = UtcTime.now(); Machine booting = machine("i-1", PENDING, now.minus(1)); Machine active1 = machine("i-2", RUNNING, now.minus(2)); Machine terminated = machine("i-4", TERMINATED, now.minus(4)); when(this.driverMock.listMachines()).thenReturn(machines(booting, active1, ter...
/** * Run a pool update iteration when pool size is {@code desiredSize} and * make no scaling action is taken. */
Run a pool update iteration when pool size is desiredSize and make no scaling action is taken
doPoolUpdateWhenPoolIsProperlySized
{ "repo_name": "elastisys/scale.cloudpool", "path": "commons/src/test/java/com/elastisys/scale/cloudpool/commons/basepool/TestBaseCloudPoolOperation.java", "license": "apache-2.0", "size": 79049 }
[ "com.elastisys.scale.cloudpool.api.types.Machine", "com.elastisys.scale.cloudpool.commons.basepool.BasePoolTestUtils", "com.elastisys.scale.commons.util.time.UtcTime", "org.hamcrest.CoreMatchers", "org.joda.time.DateTime", "org.junit.Assert", "org.mockito.Mockito" ]
import com.elastisys.scale.cloudpool.api.types.Machine; import com.elastisys.scale.cloudpool.commons.basepool.BasePoolTestUtils; import com.elastisys.scale.commons.util.time.UtcTime; import org.hamcrest.CoreMatchers; import org.joda.time.DateTime; import org.junit.Assert; import org.mockito.Mockito;
import com.elastisys.scale.cloudpool.api.types.*; import com.elastisys.scale.cloudpool.commons.basepool.*; import com.elastisys.scale.commons.util.time.*; import org.hamcrest.*; import org.joda.time.*; import org.junit.*; import org.mockito.*;
[ "com.elastisys.scale", "org.hamcrest", "org.joda.time", "org.junit", "org.mockito" ]
com.elastisys.scale; org.hamcrest; org.joda.time; org.junit; org.mockito;
2,857,256
@Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(EsbPackage.Literals.TASK_IMPLEMENTATION__TASK_PROPERTIES); } return childrenFeatures; }
Collection<? extends EStructuralFeature> function(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(EsbPackage.Literals.TASK_IMPLEMENTATION__TASK_PROPERTIES); } return childrenFeatures; }
/** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-...
This specifies how to implement <code>#getChildren</code> and is used to deduce an appropriate feature for an <code>org.eclipse.emf.edit.command.AddCommand</code>, <code>org.eclipse.emf.edit.command.RemoveCommand</code> or <code>org.eclipse.emf.edit.command.MoveCommand</code> in <code>#createCommand</code>.
getChildrenFeatures
{ "repo_name": "chanakaudaya/developer-studio", "path": "esb/org.wso2.developerstudio.eclipse.esb.edit/src/org/wso2/developerstudio/eclipse/esb/provider/TaskImplementationItemProvider.java", "license": "apache-2.0", "size": 6684 }
[ "java.util.Collection", "org.eclipse.emf.ecore.EStructuralFeature", "org.wso2.developerstudio.eclipse.esb.EsbPackage" ]
import java.util.Collection; import org.eclipse.emf.ecore.EStructuralFeature; import org.wso2.developerstudio.eclipse.esb.EsbPackage;
import java.util.*; import org.eclipse.emf.ecore.*; import org.wso2.developerstudio.eclipse.esb.*;
[ "java.util", "org.eclipse.emf", "org.wso2.developerstudio" ]
java.util; org.eclipse.emf; org.wso2.developerstudio;
2,107,374
protected void dropFewItems(boolean par1, int par2) { int var3 = 0; var3 = this.rand.nextInt(5); var3 += 2; for(int var4 = 0; var4 < var3; ++var4) { this.dropItem(Item.beefRaw.itemID, 1); } }
void function(boolean par1, int par2) { int var3 = 0; var3 = this.rand.nextInt(5); var3 += 2; for(int var4 = 0; var4 < var3; ++var4) { this.dropItem(Item.beefRaw.itemID, 1); } }
/** * Drop 0-15 items of this living's type */
Drop 0-15 items of this living's type
dropFewItems
{ "repo_name": "TheBasedRebel/ZoneSeek", "path": "ZoneSeek/common/entities/Eotyrannus.java", "license": "gpl-3.0", "size": 4847 }
[ "net.minecraft.item.Item" ]
import net.minecraft.item.Item;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
2,080,804
public void setManageClosureDependencies(List<String> entryPoints) { Preconditions.checkNotNull(entryPoints); manageClosureDependencies = true; manageClosureDependenciesEntryPoints = entryPoints; }
void function(List<String> entryPoints) { Preconditions.checkNotNull(entryPoints); manageClosureDependencies = true; manageClosureDependenciesEntryPoints = entryPoints; }
/** * Sort inputs by their goog.provide/goog.require calls. * * @param entryPoints Entry points to the program. Must be goog.provide'd * symbols. Any goog.provide'd symbols that are not a transitive * dependency of the entry points will be deleted. * Files without goog.provides, and their ...
Sort inputs by their goog.provide/goog.require calls
setManageClosureDependencies
{ "repo_name": "jayli/kissy", "path": "tools/module-compiler/src/com/google/javascript/jscomp/CompilerOptions.java", "license": "mit", "size": 32004 }
[ "com.google.common.base.Preconditions", "java.util.List" ]
import com.google.common.base.Preconditions; import java.util.List;
import com.google.common.base.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
846,976
public static <T> T fromJSON(final String json, final Class<T> c) throws IOException { return constructJackson().readValue(json, c); }
static <T> T function(final String json, final Class<T> c) throws IOException { return constructJackson().readValue(json, c); }
/** * fromJSON method will accept a JSON string and Class template * and will deserialize the JSON to that Class. * * NOTE: Written for perfomance thus NULL checks are not performed. * * @param <T> Type of the class object. * * @param json * A valid JSON document. * @param c * ...
fromJSON method will accept a JSON string and Class template and will deserialize the JSON to that Class
fromJSON
{ "repo_name": "sagneta/AdmitOne", "path": "src/main/java/com/admitone/utils/JSONUtils.java", "license": "mit", "size": 5085 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
858,716
protected Projection getIndeterminateTimeExtremaProjection(final SosIndeterminateTime indetTime) { if (indetTime.equals(SosIndeterminateTime.first)) { return Projections.min(AbstractValuedLegacyObservation.PHENOMENON_TIME_START); } else if (indetTime.equals(SosIndeterminateTime.latest)) ...
Projection function(final SosIndeterminateTime indetTime) { if (indetTime.equals(SosIndeterminateTime.first)) { return Projections.min(AbstractValuedLegacyObservation.PHENOMENON_TIME_START); } else if (indetTime.equals(SosIndeterminateTime.latest)) { return Projections.max(AbstractValuedLegacyObservation.PHENOMENON_TIM...
/** * Get projection for {@link SosIndeterminateTime} value * * @param indetTime * Value to get projection for * @return Projection to use to determine indeterminate time extrema */
Get projection for <code>SosIndeterminateTime</code> value
getIndeterminateTimeExtremaProjection
{ "repo_name": "ahuarte47/SOS", "path": "hibernate/common/src/main/java/org/n52/sos/ds/hibernate/dao/observation/AbstractValueDAO.java", "license": "gpl-2.0", "size": 9359 }
[ "org.hibernate.criterion.Projection", "org.hibernate.criterion.Projections", "org.n52.sos.ds.hibernate.entities.observation.legacy.AbstractValuedLegacyObservation", "org.n52.sos.ogc.sos.SosConstants" ]
import org.hibernate.criterion.Projection; import org.hibernate.criterion.Projections; import org.n52.sos.ds.hibernate.entities.observation.legacy.AbstractValuedLegacyObservation; import org.n52.sos.ogc.sos.SosConstants;
import org.hibernate.criterion.*; import org.n52.sos.ds.hibernate.entities.observation.legacy.*; import org.n52.sos.ogc.sos.*;
[ "org.hibernate.criterion", "org.n52.sos" ]
org.hibernate.criterion; org.n52.sos;
720,056
private void getAllPaths(File root, List<File> dirs) { dirs.add(root); if (root.isDirectory()) { File[] files = root.listFiles(); if (files != null) { for (File file : files) { if (file.isDirectory()) { getAllPaths(...
void function(File root, List<File> dirs) { dirs.add(root); if (root.isDirectory()) { File[] files = root.listFiles(); if (files != null) { for (File file : files) { if (file.isDirectory()) { getAllPaths(file, dirs); } } } } }
/** * If root is a dir, find all the subdir paths */
If root is a dir, find all the subdir paths
getAllPaths
{ "repo_name": "Ile2/struts2-showcase-demo", "path": "src/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingXMLWebApplicationContext.java", "license": "apache-2.0", "size": 8168 }
[ "java.io.File", "java.util.List" ]
import java.io.File; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,201,638
public Artifact getRuntimeMiddleman() { return this.runtimeMiddleman; }
Artifact function() { return this.runtimeMiddleman; }
/** * Returns the runtime middleman artifact. */
Returns the runtime middleman artifact
getRuntimeMiddleman
{ "repo_name": "mrdomino/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkActionBuilder.java", "license": "apache-2.0", "size": 63537 }
[ "com.google.devtools.build.lib.actions.Artifact" ]
import com.google.devtools.build.lib.actions.Artifact;
import com.google.devtools.build.lib.actions.*;
[ "com.google.devtools" ]
com.google.devtools;
2,577,968
public void updateRealAccountId(Consumer<Account.Id> setter) { if (getRealUser().isIdentifiedUser()) { setter.accept(getRealUser().getAccountId()); } }
void function(Consumer<Account.Id> setter) { if (getRealUser().isIdentifiedUser()) { setter.accept(getRealUser().getAccountId()); } }
/** * If the {@link #getRealUser()} has an account ID associated with it, call the given setter with * that ID. */
If the <code>#getRealUser()</code> has an account ID associated with it, call the given setter with that ID
updateRealAccountId
{ "repo_name": "GerritCodeReview/gerrit", "path": "java/com/google/gerrit/server/CurrentUser.java", "license": "apache-2.0", "size": 5883 }
[ "com.google.gerrit.entities.Account", "java.util.function.Consumer" ]
import com.google.gerrit.entities.Account; import java.util.function.Consumer;
import com.google.gerrit.entities.*; import java.util.function.*;
[ "com.google.gerrit", "java.util" ]
com.google.gerrit; java.util;
2,889,602