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(timeout=20000)
public void testMasterZKSessionRecoveryFailure() throws Exception {
MiniHBaseCluster cluster = TEST_UTIL.getHBaseCluster();
HMaster m = cluster.getMaster();
m.abort("Test recovery from zk session expired",
new KeeperException.SessionExpiredException());
assertFalse(m.isSto... | @Test(timeout=20000) void function() throws Exception { MiniHBaseCluster cluster = TEST_UTIL.getHBaseCluster(); HMaster m = cluster.getMaster(); m.abort(STR, new KeeperException.SessionExpiredException()); assertFalse(m.isStopped()); testSanity(); } | /**
* Master recovery when the znode already exists. Internally, this
* test differs from {@link #testMasterSessionExpired} because here
* the master znode will exist in ZK.
*/ | Master recovery when the znode already exists. Internally, this test differs from <code>#testMasterSessionExpired</code> because here the master znode will exist in ZK | testMasterZKSessionRecoveryFailure | {
"repo_name": "ddraj/hbase-trunk-mttr",
"path": "hbase-server/src/test/java/org/apache/hadoop/hbase/TestZooKeeper.java",
"license": "apache-2.0",
"size": 18894
} | [
"org.apache.hadoop.hbase.master.HMaster",
"org.apache.zookeeper.KeeperException",
"org.junit.Assert",
"org.junit.Test"
] | import org.apache.hadoop.hbase.master.HMaster; import org.apache.zookeeper.KeeperException; import org.junit.Assert; import org.junit.Test; | import org.apache.hadoop.hbase.master.*; import org.apache.zookeeper.*; import org.junit.*; | [
"org.apache.hadoop",
"org.apache.zookeeper",
"org.junit"
] | org.apache.hadoop; org.apache.zookeeper; org.junit; | 1,473,997 |
private Set<Path> checkForV1Files(Path targetDir) throws IOException {
LOG.info("Target dir is: " + targetDir);
if (!fs.exists(targetDir)) {
throw new IOException("The given path does not exist: " + targetDir);
}
if (isTableDir(fs, targetDir)) {
processedTables.add(targetDir);
return... | Set<Path> function(Path targetDir) throws IOException { LOG.info(STR + targetDir); if (!fs.exists(targetDir)) { throw new IOException(STR + targetDir); } if (isTableDir(fs, targetDir)) { processedTables.add(targetDir); return processTable(targetDir); } Set<Path> regionsWithHFileV1 = new HashSet<Path>(); FileStatus[] fs... | /**
* Takes a directory path, and lists out any HFileV1, if present.
* @param targetDir directory to start looking for HFilev1.
* @return set of Regions that have HFileV1
* @throws IOException
*/ | Takes a directory path, and lists out any HFileV1, if present | checkForV1Files | {
"repo_name": "grokcoder/pbase",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/util/HFileV1Detector.java",
"license": "apache-2.0",
"size": 15688
} | [
"java.io.IOException",
"java.util.HashSet",
"java.util.Set",
"org.apache.hadoop.fs.FileStatus",
"org.apache.hadoop.fs.Path"
] | import java.io.IOException; import java.util.HashSet; import java.util.Set; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.Path; | import java.io.*; import java.util.*; import org.apache.hadoop.fs.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 1,057,881 |
public static br.gov.camara.edemocracia.portlets.priorizacao.model.Voto[] findByU_PrevAndNext(
long votoId, long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws br.gov.camara.edemocracia.portlets.priorizacao.NoSuchVotoException,
com.liferay.port... | static br.gov.camara.edemocracia.portlets.priorizacao.model.Voto[] function( long votoId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws br.gov.camara.edemocracia.portlets.priorizacao.NoSuchVotoException, com.liferay.portal.kernel.exception.SystemException { return getPersistenc... | /**
* Returns the votos before and after the current voto in the ordered set where userId = ?.
*
* @param votoId the primary key of the current voto
* @param userId the user ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous... | Returns the votos before and after the current voto in the ordered set where userId = ? | findByU_PrevAndNext | {
"repo_name": "camaradosdeputadosoficial/edemocracia",
"path": "cd-priorizacao-portlet/src/main/java/br/gov/camara/edemocracia/portlets/priorizacao/service/persistence/VotoUtil.java",
"license": "lgpl-2.1",
"size": 30169
} | [
"br.gov.camara.edemocracia.portlets.priorizacao.model.Voto",
"com.liferay.portal.kernel.exception.SystemException",
"com.liferay.portal.kernel.util.OrderByComparator"
] | import br.gov.camara.edemocracia.portlets.priorizacao.model.Voto; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.util.OrderByComparator; | import br.gov.camara.edemocracia.portlets.priorizacao.model.*; import com.liferay.portal.kernel.exception.*; import com.liferay.portal.kernel.util.*; | [
"br.gov.camara",
"com.liferay.portal"
] | br.gov.camara; com.liferay.portal; | 831,384 |
private void constructTrail()
{
double frameOffset;
Rectangle2D frame;
if(direction == CurveDirection.ANTICLOCKWISE)
{
trail = Trail.arcByCenter(new Point2D.Double(
fittedCircle.getX(),
... | void function() { double frameOffset; Rectangle2D frame; if(direction == CurveDirection.ANTICLOCKWISE) { trail = Trail.arcByCenter(new Point2D.Double( fittedCircle.getX(), fittedCircle.getY()), start, end, fittedCircle.getHeight(), Arc2D.OPEN); arrow = Trail.arrowHead(end, new Point2D.Double( fittedCircle.getX(), fitte... | /**
* Construct trail.
*/ | Construct trail | constructTrail | {
"repo_name": "David-dp-/intentionperception-wayang-visualizer",
"path": "src/Wayang/GUI/Glazier/Draw/Figures/CurvedTrail.java",
"license": "mit",
"size": 6535
} | [
"java.awt.geom.Arc2D",
"java.awt.geom.Area",
"java.awt.geom.Ellipse2D",
"java.awt.geom.Point2D",
"java.awt.geom.Rectangle2D"
] | import java.awt.geom.Arc2D; import java.awt.geom.Area; import java.awt.geom.Ellipse2D; import java.awt.geom.Point2D; import java.awt.geom.Rectangle2D; | import java.awt.geom.*; | [
"java.awt"
] | java.awt; | 742,031 |
public static final SourceModel.Expr getFieldComment(SourceModel.Expr fieldDescription) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.getFieldComment), fieldDescription});
}
public static final QualifiedName getFieldComment =
... | static final SourceModel.Expr function(SourceModel.Expr fieldDescription) { return SourceModel.Expr.Application.make( new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.getFieldComment), fieldDescription}); } static final QualifiedName function = QualifiedName.make( CAL_DatabaseMetadata.MODULE_NAME, STR); | /**
* Returns the comment for a field description.
* @param fieldDescription (CAL type: <code>Cal.Data.DatabaseMetadata.FieldDescription</code>)
* @return (CAL type: <code>Cal.Core.Prelude.String</code>)
*/ | Returns the comment for a field description | getFieldComment | {
"repo_name": "levans/Open-Quark",
"path": "src/CAL_Libraries/src/org/openquark/cal/module/Cal/Data/CAL_DatabaseMetadata.java",
"license": "bsd-3-clause",
"size": 33187
} | [
"org.openquark.cal.compiler.QualifiedName",
"org.openquark.cal.compiler.SourceModel"
] | import org.openquark.cal.compiler.QualifiedName; import org.openquark.cal.compiler.SourceModel; | import org.openquark.cal.compiler.*; | [
"org.openquark.cal"
] | org.openquark.cal; | 160,434 |
@Override
@Deprecated
public boolean digestAuth(BareJID user, String digest, String id, String alg)
throws UserNotFoundException, TigaseDBException, AuthorizationException {
AuthRepository repo = getRepo(user.getDomain());
if (repo != null) {
return repo.digestAuth(user, digest, id, alg);
} else {
... | boolean function(BareJID user, String digest, String id, String alg) throws UserNotFoundException, TigaseDBException, AuthorizationException { AuthRepository repo = getRepo(user.getDomain()); if (repo != null) { return repo.digestAuth(user, digest, id, alg); } else { log.log(Level.WARNING, STR + user.getDomain() + STR)... | /**
* Method description
*
*
* @param user
* @param digest
* @param id
* @param alg
*
*
*
* @throws AuthorizationException
* @throws TigaseDBException
* @throws UserNotFoundException
*/ | Method description | digestAuth | {
"repo_name": "fanout/tigase-server",
"path": "src/main/java/tigase/db/AuthRepositoryMDImpl.java",
"license": "agpl-3.0",
"size": 8737
} | [
"java.util.logging.Level"
] | import java.util.logging.Level; | import java.util.logging.*; | [
"java.util"
] | java.util; | 19,152 |
public List<LogRecord> getLogRecords() {
return handler.getView();
}
public static final XStream XSTREAM = new XStream2();
static {
XSTREAM.alias("log",LogRecorder.class);
XSTREAM.alias("target",Target.class);
}
public static List<Level> LEVELS =
... | List<LogRecord> function() { return handler.getView(); } public static final XStream XSTREAM = new XStream2(); static { XSTREAM.alias("log",LogRecorder.class); XSTREAM.alias(STR,Target.class); } public static List<Level> LEVELS = Arrays.asList(Level.SEVERE, Level.WARNING, Level.INFO, Level.CONFIG, Level.FINE, Level.FIN... | /**
* Gets a view of the log records.
*/ | Gets a view of the log records | getLogRecords | {
"repo_name": "vivek/hudson",
"path": "core/src/main/java/hudson/logging/LogRecorder.java",
"license": "mit",
"size": 8469
} | [
"com.thoughtworks.xstream.XStream",
"hudson.util.XStream2",
"java.util.Arrays",
"java.util.List",
"java.util.logging.Level",
"java.util.logging.LogRecord"
] | import com.thoughtworks.xstream.XStream; import hudson.util.XStream2; import java.util.Arrays; import java.util.List; import java.util.logging.Level; import java.util.logging.LogRecord; | import com.thoughtworks.xstream.*; import hudson.util.*; import java.util.*; import java.util.logging.*; | [
"com.thoughtworks.xstream",
"hudson.util",
"java.util"
] | com.thoughtworks.xstream; hudson.util; java.util; | 2,432,078 |
public void setChildIndicator(Drawable childIndicator) {
mChildIndicator = childIndicator;
} | void function(Drawable childIndicator) { mChildIndicator = childIndicator; } | /**
* Sets the indicator to be drawn next to a child.
*
* @param childIndicator The drawable to be used as an indicator. If the
* child is the last child for a group, the state
* {@link android.R.attr#state_last} will be set.
*/ | Sets the indicator to be drawn next to a child | setChildIndicator | {
"repo_name": "haikuowuya/android_system_code",
"path": "src/android/widget/ExpandableListView.java",
"license": "apache-2.0",
"size": 47324
} | [
"android.graphics.drawable.Drawable"
] | import android.graphics.drawable.Drawable; | import android.graphics.drawable.*; | [
"android.graphics"
] | android.graphics; | 305,624 |
public void retrieveServiceTransactionDocument(String authorization, String transactionType, String documentCode) throws ApiException {
retrieveServiceTransactionDocumentWithHttpInfo(authorization, transactionType, documentCode);
} | void function(String authorization, String transactionType, String documentCode) throws ApiException { retrieveServiceTransactionDocumentWithHttpInfo(authorization, transactionType, documentCode); } | /**
* Retrieve service transactions
* Retrieve a single transaction
* @param authorization Bearer {auth} (required)
* @param transactionType Transaction Type (sale, purchase, receipts or payment) (required)
* @param documentCode Document Code (required)
* @throws ApiException If fail to ca... | Retrieve service transactions Retrieve a single transaction | retrieveServiceTransactionDocument | {
"repo_name": "Avalara/avataxbr-clients",
"path": "java-client/src/main/java/io/swagger/client/api/ServiceCalculationsApi.java",
"license": "gpl-3.0",
"size": 60128
} | [
"io.swagger.client.ApiException"
] | import io.swagger.client.ApiException; | import io.swagger.client.*; | [
"io.swagger.client"
] | io.swagger.client; | 2,294,420 |
private Credential getCredentials() throws IOException {
String code = tokenField.getText();
HttpTransport transport = new NetHttpTransport();
JacksonFactory jsonFactory = new JacksonFactory();
String CLIENT_SECRET = "EPME5fbwiNLCcMsnj3jVoXeY";
// Step 2: Exchange -->
GoogleTokenResponse resp... | Credential function() throws IOException { String code = tokenField.getText(); HttpTransport transport = new NetHttpTransport(); JacksonFactory jsonFactory = new JacksonFactory(); String CLIENT_SECRET = STR; GoogleTokenResponse response = new GoogleAuthorizationCodeTokenRequest( transport, jsonFactory, CLIENT_ID, CLIEN... | /**
* Retrieve OAuth 2.0 credentials.
*
* @return OAuth 2.0 Credential instance.
* @throws IOException
*/ | Retrieve OAuth 2.0 credentials | getCredentials | {
"repo_name": "sih4sing5hong5/google-sites-liberation",
"path": "src/main/java/com/google/sites/liberation/util/GuiMain.java",
"license": "apache-2.0",
"size": 12574
} | [
"com.google.api.client.auth.oauth2.Credential",
"com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeTokenRequest",
"com.google.api.client.googleapis.auth.oauth2.GoogleCredential",
"com.google.api.client.googleapis.auth.oauth2.GoogleTokenResponse",
"com.google.api.client.http.HttpTransport",... | import com.google.api.client.auth.oauth2.Credential; import com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeTokenRequest; import com.google.api.client.googleapis.auth.oauth2.GoogleCredential; import com.google.api.client.googleapis.auth.oauth2.GoogleTokenResponse; import com.google.api.client.http.H... | import com.google.api.client.auth.oauth2.*; import com.google.api.client.googleapis.auth.oauth2.*; import com.google.api.client.http.*; import com.google.api.client.http.javanet.*; import com.google.api.client.json.jackson2.*; import java.io.*; | [
"com.google.api",
"java.io"
] | com.google.api; java.io; | 1,198,387 |
EList<ReadingQuality> getReadingQualities(); | EList<ReadingQuality> getReadingQualities(); | /**
* Returns the value of the '<em><b>Reading Qualities</b></em>' reference list.
* The list contents are of type {@link CIM.IEC61968.Metering.ReadingQuality}.
* It is bidirectional and its opposite is '{@link CIM.IEC61968.Metering.ReadingQuality#getIntervalReading <em>Interval Reading</em>}'.
* <!-- begin-use... | Returns the value of the 'Reading Qualities' reference list. The list contents are of type <code>CIM.IEC61968.Metering.ReadingQuality</code>. It is bidirectional and its opposite is '<code>CIM.IEC61968.Metering.ReadingQuality#getIntervalReading Interval Reading</code>'. If the meaning of the 'Reading Qualities' referen... | getReadingQualities | {
"repo_name": "georghinkel/ttc2017smartGrids",
"path": "solutions/ModelJoin/src/main/java/CIM/IEC61968/Metering/IntervalReading.java",
"license": "mit",
"size": 5979
} | [
"org.eclipse.emf.common.util.EList"
] | import org.eclipse.emf.common.util.EList; | import org.eclipse.emf.common.util.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,610,826 |
public static List<String> paginateString(String str, int maxLineLen, boolean excludeColorsFromLen) {
return paginateString(str, null, maxLineLen, excludeColorsFromLen);
} | static List<String> function(String str, int maxLineLen, boolean excludeColorsFromLen) { return paginateString(str, null, maxLineLen, excludeColorsFromLen); } | /**
* Splits a string into multiple string based on max character length specified
* for a line.
*
* @param str The string to split/paginate.
* @param maxLineLen The max length of a line.
* @param excludeColorsFromLen True to exclude color characters from leng... | Splits a string into multiple string based on max character length specified for a line | paginateString | {
"repo_name": "JCThePants/NucleusFramework",
"path": "src/com/jcwhatever/nucleus/utils/text/TextUtils.java",
"license": "mit",
"size": 44562
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 553,542 |
private Map getNamespace(final String namespace, final boolean addIfNew)
{
Map h = (Map) namespaceHash.get(namespace);
if (h == null && addIfNew)
{
h = addNamespace(namespace);
}
return h;
} | Map function(final String namespace, final boolean addIfNew) { Map h = (Map) namespaceHash.get(namespace); if (h == null && addIfNew) { h = addNamespace(namespace); } return h; } | /**
* returns the hash for the specified namespace, and if it doesn't exist
* will create a new one and add it to the namespaces
*
* @param namespace name of the namespace :)
* @param addIfNew flag to add a new namespace if it doesn't exist
* @return namespace Map of VMs or null if ... | returns the hash for the specified namespace, and if it doesn't exist will create a new one and add it to the namespaces | getNamespace | {
"repo_name": "diydyq/velocity-engine",
"path": "velocity-engine-core/src/main/java/org/apache/velocity/runtime/VelocimacroManager.java",
"license": "apache-2.0",
"size": 16322
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,593,771 |
public static String getTimesContacted() {
return Data.TIMES_CONTACTED;
} | static String function() { return Data.TIMES_CONTACTED; } | /**
* Get Data.TIMES_CONTACTED for EmailAddressAdapter.
*/ | Get Data.TIMES_CONTACTED for EmailAddressAdapter | getTimesContacted | {
"repo_name": "ZachLamb/appinventor-sources",
"path": "appinventor/components/src/com/google/appinventor/components/runtime/util/HoneycombMR1Util.java",
"license": "apache-2.0",
"size": 5714
} | [
"android.provider.ContactsContract"
] | import android.provider.ContactsContract; | import android.provider.*; | [
"android.provider"
] | android.provider; | 1,062,624 |
public void init(IWorkbench workbench, IStructuredSelection selection) {
this.selection = selection;
}
| void function(IWorkbench workbench, IStructuredSelection selection) { this.selection = selection; } | /**
* <p>
* We will accept the selection in the workbench to see if we can initialize from
* it.
* </p>
*
* @see IWorkbenchWizard#init(IWorkbench, IStructuredSelection)
*/ | We will accept the selection in the workbench to see if we can initialize from it. | init | {
"repo_name": "HyVar/DarwinSPL",
"path": "plugins/eu.hyvar.mspl.manifest.resource.hymanifest.ui/src-gen/eu/hyvar/mspl/manifest/resource/hymanifest/ui/HymanifestNewFileWizard.java",
"license": "apache-2.0",
"size": 6546
} | [
"org.eclipse.jface.viewers.IStructuredSelection",
"org.eclipse.ui.IWorkbench"
] | import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.ui.IWorkbench; | import org.eclipse.jface.viewers.*; import org.eclipse.ui.*; | [
"org.eclipse.jface",
"org.eclipse.ui"
] | org.eclipse.jface; org.eclipse.ui; | 581,816 |
private void dropAsItem() {
if (!boomerangThrown.isEmpty()) {
Entity owner = func_234616_v_();
//we have something to drop
if (owner instanceof PlayerEntity) {
PlayerEntity pl = (PlayerEntity) owner;
//try to give it to the player the nicest way possible
if (pl.getHeldIt... | void function() { if (!boomerangThrown.isEmpty()) { Entity owner = func_234616_v_(); if (owner instanceof PlayerEntity) { PlayerEntity pl = (PlayerEntity) owner; if (pl.getHeldItemMainhand().isEmpty()) { pl.setHeldItem(Hand.MAIN_HAND, boomerangThrown); boomerangThrown = ItemStack.EMPTY; } else { owner.entityDropItem(bo... | /**
* Drops any nonempty boomerangThrown stack and empties it, then calls remove() on self.
*/ | Drops any nonempty boomerangThrown stack and empties it, then calls remove() on self | dropAsItem | {
"repo_name": "PrinceOfAmber/Cyclic",
"path": "src/main/java/com/lothrazar/cyclic/item/boomerang/BoomerangEntity.java",
"license": "mit",
"size": 11264
} | [
"com.lothrazar.cyclic.util.UtilItemStack",
"net.minecraft.entity.Entity",
"net.minecraft.entity.player.PlayerEntity",
"net.minecraft.item.ItemStack",
"net.minecraft.util.Hand"
] | import com.lothrazar.cyclic.util.UtilItemStack; import net.minecraft.entity.Entity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; import net.minecraft.util.Hand; | import com.lothrazar.cyclic.util.*; import net.minecraft.entity.*; import net.minecraft.entity.player.*; import net.minecraft.item.*; import net.minecraft.util.*; | [
"com.lothrazar.cyclic",
"net.minecraft.entity",
"net.minecraft.item",
"net.minecraft.util"
] | com.lothrazar.cyclic; net.minecraft.entity; net.minecraft.item; net.minecraft.util; | 914,806 |
@Override
public JComponent getPrinterComponent() {
return null;
}
| JComponent function() { return null; } | /**
* Getter that returns the printer's component
*
* @return printer's component
*/ | Getter that returns the printer's component | getPrinterComponent | {
"repo_name": "dante-mx/openbravopos",
"path": "src-pos/com/openbravo/pos/printer/printer/DevicePrinterPrinter.java",
"license": "apache-2.0",
"size": 14079
} | [
"javax.swing.JComponent"
] | import javax.swing.JComponent; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 734,347 |
public static double getDouble(Construct c, Target t) {
return ArgumentValidation.getDouble(c, t);
} | static double function(Construct c, Target t) { return ArgumentValidation.getDouble(c, t); } | /**
* Alias to getNumber
*
* @param c
* @return
*/ | Alias to getNumber | getDouble | {
"repo_name": "Murreey/CommandHelper",
"path": "src/main/java/com/laytonsmith/core/Static.java",
"license": "gpl-3.0",
"size": 51833
} | [
"com.laytonsmith.core.constructs.Construct",
"com.laytonsmith.core.constructs.Target"
] | import com.laytonsmith.core.constructs.Construct; import com.laytonsmith.core.constructs.Target; | import com.laytonsmith.core.constructs.*; | [
"com.laytonsmith.core"
] | com.laytonsmith.core; | 1,868,516 |
@Nullable
public XValueMarkerProvider<?,?> createValueMarkerProvider() {
return null;
} | XValueMarkerProvider<?,?> function() { return null; } | /**
* Override this method to enable 'Mark Object' action
* @return new instance of {@link XValueMarkerProvider}'s implementation or {@code null} if 'Mark Object' feature isn't supported
*/ | Override this method to enable 'Mark Object' action | createValueMarkerProvider | {
"repo_name": "MichaelNedzelsky/intellij-community",
"path": "platform/xdebugger-api/src/com/intellij/xdebugger/XDebugProcess.java",
"license": "apache-2.0",
"size": 8236
} | [
"com.intellij.xdebugger.frame.XValueMarkerProvider"
] | import com.intellij.xdebugger.frame.XValueMarkerProvider; | import com.intellij.xdebugger.frame.*; | [
"com.intellij.xdebugger"
] | com.intellij.xdebugger; | 158,898 |
public TraktResponse getByTmpMedia(TemporaryMedia tmp) {
if (tmp.IsMovie()) {
if (tmp.getName() != null && tmp.getYear() > 1900) {
return getByTitleYear(tmp.getName(), tmp.getYear());
}
} else {
return getBySeasonEpisode(tmp.getName(), tmp.getSeaso... | TraktResponse function(TemporaryMedia tmp) { if (tmp.IsMovie()) { if (tmp.getName() != null && tmp.getYear() > 1900) { return getByTitleYear(tmp.getName(), tmp.getYear()); } } else { return getBySeasonEpisode(tmp.getName(), tmp.getSeason(), tmp.getEpisode()); } return null; } | /**
* Looks up omdb data by Title and if possible year. Best used with movies
*
* @param tmp TemporaryMedia with a title and maybe a year
* @return data found by omdb or null
*/ | Looks up omdb data by Title and if possible year. Best used with movies | getByTmpMedia | {
"repo_name": "we4sz/DAT076",
"path": "MovieFinder/src/main/java/edu/chalmers/dat076/moviefinder/service/TraktHandler.java",
"license": "mit",
"size": 5942
} | [
"edu.chalmers.dat076.moviefinder.model.TemporaryMedia",
"edu.chalmers.dat076.moviefinder.model.TraktResponse"
] | import edu.chalmers.dat076.moviefinder.model.TemporaryMedia; import edu.chalmers.dat076.moviefinder.model.TraktResponse; | import edu.chalmers.dat076.moviefinder.model.*; | [
"edu.chalmers.dat076"
] | edu.chalmers.dat076; | 982,959 |
default void onCues(EventTime eventTime, List<Cue> cues) {} | default void onCues(EventTime eventTime, List<Cue> cues) {} | /**
* Called when there is {@link Metadata} associated with the current playback time.
*
* @param eventTime The event time.
* @param metadata The metadata.
*/ | Called when there is <code>Metadata</code> associated with the current playback time | onMetadata | {
"repo_name": "google/ExoPlayer",
"path": "library/core/src/main/java/com/google/android/exoplayer2/analytics/AnalyticsListener.java",
"license": "apache-2.0",
"size": 52677
} | [
"com.google.android.exoplayer2.text.Cue",
"java.util.List"
] | import com.google.android.exoplayer2.text.Cue; import java.util.List; | import com.google.android.exoplayer2.text.*; import java.util.*; | [
"com.google.android",
"java.util"
] | com.google.android; java.util; | 2,439,857 |
public AmberEntityHome getEntityHome()
{
return ((EntityType) getTableType()).getHome();
} | AmberEntityHome function() { return ((EntityType) getTableType()).getHome(); } | /**
* Returns the entity home.
*/ | Returns the entity home | getEntityHome | {
"repo_name": "bertrama/resin",
"path": "modules/resin/src/com/caucho/amber/query/FromItem.java",
"license": "gpl-2.0",
"size": 5069
} | [
"com.caucho.amber.entity.AmberEntityHome",
"com.caucho.amber.type.EntityType"
] | import com.caucho.amber.entity.AmberEntityHome; import com.caucho.amber.type.EntityType; | import com.caucho.amber.entity.*; import com.caucho.amber.type.*; | [
"com.caucho.amber"
] | com.caucho.amber; | 1,062,416 |
public void doCancel_group(RunData data, Context context)
{
SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid());
Site site = (Site) state.getAttribute("site");
Group group = (Group) state.getAttribute("group");
// if the page was new, remove it
if ... | void function(RunData data, Context context) { SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid()); Site site = (Site) state.getAttribute("site"); Group group = (Group) state.getAttribute("group"); if ("true".equals(state.getAttribute(STR))) { site.removeGroup(gro... | /**
* cancel a group edit, return to the groups list
*/ | cancel a group edit, return to the groups list | doCancel_group | {
"repo_name": "ouit0408/sakai",
"path": "site/site-tool/tool/src/java/org/sakaiproject/site/tool/AdminSitesAction.java",
"license": "apache-2.0",
"size": 76844
} | [
"org.sakaiproject.cheftool.Context",
"org.sakaiproject.cheftool.JetspeedRunData",
"org.sakaiproject.cheftool.RunData",
"org.sakaiproject.event.api.SessionState",
"org.sakaiproject.site.api.Group",
"org.sakaiproject.site.api.Site"
] | import org.sakaiproject.cheftool.Context; import org.sakaiproject.cheftool.JetspeedRunData; import org.sakaiproject.cheftool.RunData; import org.sakaiproject.event.api.SessionState; import org.sakaiproject.site.api.Group; import org.sakaiproject.site.api.Site; | import org.sakaiproject.cheftool.*; import org.sakaiproject.event.api.*; import org.sakaiproject.site.api.*; | [
"org.sakaiproject.cheftool",
"org.sakaiproject.event",
"org.sakaiproject.site"
] | org.sakaiproject.cheftool; org.sakaiproject.event; org.sakaiproject.site; | 2,739,811 |
public void setItemMetaDataSet(Set itemMetaDataSet) {
this.itemMetaDataSet = itemMetaDataSet;
this.data.setItemMetaDataSet(itemMetaDataSet);
} | void function(Set itemMetaDataSet) { this.itemMetaDataSet = itemMetaDataSet; this.data.setItemMetaDataSet(itemMetaDataSet); } | /**
* Set item metadata set in ItemFacade and ItemFacade.data
* @param itemMetaDataSet
*/ | Set item metadata set in ItemFacade and ItemFacade.data | setItemMetaDataSet | {
"repo_name": "eemirtekin/Sakai-10.6-TR",
"path": "samigo/samigo-services/src/java/org/sakaiproject/tool/assessment/facade/ItemFacade.java",
"license": "apache-2.0",
"size": 32871
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 827,514 |
public void testCase15_textHasChanged() throws NoSuchMethodException, IllegalArgumentException,
IllegalAccessException, InvocationTargetException, NoSuchFieldException,
InterruptedException, InstantiationException, RemoteException {
ControllerImpl controllerInstance = ControllerImpl.... | void function() throws NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, NoSuchFieldException, InterruptedException, InstantiationException, RemoteException { ControllerImpl controllerInstance = ControllerImpl.getInstance(); UUID uuid1 = UUID.randomUUID(); ParcelUuid ta... | /**
* Test case to text has changed.
*
* @throws NoSuchMethodException
* @throws IllegalArgumentException
* @throws IllegalAccessException
* @throws InvocationTargetException
* @throws NoSuchFieldException
* @throws InterruptedException
*/ | Test case to text has changed | testCase15_textHasChanged | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "mediatek/packages/apps/RCSe/core/tests/src/com/mediatek/rcse/test/model/ControllerImplTest.java",
"license": "gpl-2.0",
"size": 68865
} | [
"android.os.Message",
"android.os.ParcelUuid",
"android.os.RemoteException",
"com.mediatek.rcse.api.Participant",
"com.mediatek.rcse.interfaces.ChatController",
"com.mediatek.rcse.interfaces.ChatModel",
"com.mediatek.rcse.mvc.ControllerImpl",
"com.mediatek.rcse.mvc.ModelImpl",
"com.mediatek.rcse.tes... | import android.os.Message; import android.os.ParcelUuid; import android.os.RemoteException; import com.mediatek.rcse.api.Participant; import com.mediatek.rcse.interfaces.ChatController; import com.mediatek.rcse.interfaces.ChatModel; import com.mediatek.rcse.mvc.ControllerImpl; import com.mediatek.rcse.mvc.ModelImpl; im... | import android.os.*; import com.mediatek.rcse.api.*; import com.mediatek.rcse.interfaces.*; import com.mediatek.rcse.mvc.*; import com.mediatek.rcse.test.*; import java.lang.reflect.*; import java.util.*; | [
"android.os",
"com.mediatek.rcse",
"java.lang",
"java.util"
] | android.os; com.mediatek.rcse; java.lang; java.util; | 76,540 |
@Transient
public Iterator<MatrixElement> getElementIterator() {
return getElements().iterator();
}
| Iterator<MatrixElement> function() { return getElements().iterator(); } | /**
* Return element iterator.
*
* @return
*/ | Return element iterator | getElementIterator | {
"repo_name": "TreeBASE/treebasetest",
"path": "treebase-core/src/main/java/org/cipres/treebase/domain/matrix/MatrixRow.java",
"license": "bsd-3-clause",
"size": 11378
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 2,241,868 |
@Override public void enterFilter(@NotNull AQLParser.FilterContext ctx) { } | @Override public void enterFilter(@NotNull AQLParser.FilterContext ctx) { } | /**
* {@inheritDoc}
* <p/>
* The default implementation does nothing.
*/ | The default implementation does nothing | exitLiteralString | {
"repo_name": "chriswhite199/jdbc-driver",
"path": "src/main/java/com/ibm/si/jaql/aql/AQLBaseListener.java",
"license": "apache-2.0",
"size": 13047
} | [
"org.antlr.v4.runtime.misc.NotNull"
] | import org.antlr.v4.runtime.misc.NotNull; | import org.antlr.v4.runtime.misc.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 2,190,143 |
public void testBlockedProducerUsageSendFailTimeout() throws Exception {
final ActiveMQConnection cx = (ActiveMQConnection)createConnection();
final ActiveMQDestination queue = createDestination("testqueue"); | void function() throws Exception { final ActiveMQConnection cx = (ActiveMQConnection)createConnection(); final ActiveMQDestination queue = createDestination(STR); | /**
* Test the case where the broker is blocked due to a memory limit
* with a fail timeout
* @throws Exception
*/ | Test the case where the broker is blocked due to a memory limit with a fail timeout | testBlockedProducerUsageSendFailTimeout | {
"repo_name": "ryanemerson/activemq-artemis",
"path": "tests/activemq5-unit-tests/src/test/java/org/apache/activemq/bugs/JmsTimeoutTest.java",
"license": "apache-2.0",
"size": 6202
} | [
"org.apache.activemq.ActiveMQConnection",
"org.apache.activemq.command.ActiveMQDestination"
] | import org.apache.activemq.ActiveMQConnection; import org.apache.activemq.command.ActiveMQDestination; | import org.apache.activemq.*; import org.apache.activemq.command.*; | [
"org.apache.activemq"
] | org.apache.activemq; | 1,702,596 |
public void setChannel(@Nonnull InputStream in, @Nonnull OutputStream out,
@Nonnull TaskListener taskListener,
@CheckForNull Channel.Listener listener) throws IOException, InterruptedException {
setChannel(in,out,taskListener.getLogger(),listener);
} | void function(@Nonnull InputStream in, @Nonnull OutputStream out, @Nonnull TaskListener taskListener, @CheckForNull Channel.Listener listener) throws IOException, InterruptedException { setChannel(in,out,taskListener.getLogger(),listener); } | /**
* Creates a {@link Channel} from the given stream and sets that to this agent.
*
* Same as {@link #setChannel(InputStream, OutputStream, OutputStream, Channel.Listener)}, but for
* {@link TaskListener}.
*/ | Creates a <code>Channel</code> from the given stream and sets that to this agent. Same as <code>#setChannel(InputStream, OutputStream, OutputStream, Channel.Listener)</code>, but for <code>TaskListener</code> | setChannel | {
"repo_name": "andresrc/jenkins",
"path": "core/src/main/java/hudson/slaves/SlaveComputer.java",
"license": "mit",
"size": 38862
} | [
"hudson.model.TaskListener",
"hudson.remoting.Channel",
"java.io.IOException",
"java.io.InputStream",
"java.io.OutputStream",
"javax.annotation.CheckForNull",
"javax.annotation.Nonnull"
] | import hudson.model.TaskListener; import hudson.remoting.Channel; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import javax.annotation.CheckForNull; import javax.annotation.Nonnull; | import hudson.model.*; import hudson.remoting.*; import java.io.*; import javax.annotation.*; | [
"hudson.model",
"hudson.remoting",
"java.io",
"javax.annotation"
] | hudson.model; hudson.remoting; java.io; javax.annotation; | 674,979 |
public void startBrowserProcessesAsync(final StartupCallback callback)
throws ProcessInitException {
assert ThreadUtils.runningOnUiThread() : "Tried to start the browser on the wrong thread.";
if (mStartupDone) {
// Browser process initialization has already been completed, s... | void function(final StartupCallback callback) throws ProcessInitException { assert ThreadUtils.runningOnUiThread() : STR; if (mStartupDone) { postStartupCompleted(callback); return; } mAsyncStartupCallbacks.add(callback); if (!mHasStartedInitializingBrowserProcess) { mHasStartedInitializingBrowserProcess = true; prepar... | /**
* Start the browser process asynchronously. This will set up a queue of UI thread tasks to
* initialize the browser process.
* <p/>
* Note that this can only be called on the UI thread.
*
* @param callback the callback to be called when browser startup is complete.
*/ | Start the browser process asynchronously. This will set up a queue of UI thread tasks to initialize the browser process. Note that this can only be called on the UI thread | startBrowserProcessesAsync | {
"repo_name": "7kbird/chrome",
"path": "content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java",
"license": "bsd-3-clause",
"size": 11368
} | [
"org.chromium.base.ThreadUtils",
"org.chromium.base.library_loader.ProcessInitException"
] | import org.chromium.base.ThreadUtils; import org.chromium.base.library_loader.ProcessInitException; | import org.chromium.base.*; import org.chromium.base.library_loader.*; | [
"org.chromium.base"
] | org.chromium.base; | 1,612,928 |
public static long hashSubRowLong(
final ReadableTable table, final int[] hashColumns, final int row) {
return hashSubRowLong(table, hashColumns, row, 0);
} | static long function( final ReadableTable table, final int[] hashColumns, final int row) { return hashSubRowLong(table, hashColumns, row, 0); } | /**
* Compute the hash code of the specified columns in the specified row of the given table.
*
* @param table the table containing the values to be hashed
* @param hashColumns the columns to be hashed. Order matters
* @param row the row containing the values to be hashed
* @return the hash code of th... | Compute the hash code of the specified columns in the specified row of the given table | hashSubRowLong | {
"repo_name": "uwescience/myria",
"path": "src/edu/washington/escience/myria/util/HashUtils.java",
"license": "bsd-3-clause",
"size": 9575
} | [
"edu.washington.escience.myria.storage.ReadableTable"
] | import edu.washington.escience.myria.storage.ReadableTable; | import edu.washington.escience.myria.storage.*; | [
"edu.washington.escience"
] | edu.washington.escience; | 2,632,066 |
public List<T> allData() {
return new ArrayList<>(this.pointerMap.values());
} | List<T> function() { return new ArrayList<>(this.pointerMap.values()); } | /**
* Gets all registered data.
*
* @return The collection of data.
*/ | Gets all registered data | allData | {
"repo_name": "Prof9/mmbn-randomizer",
"path": "src/rand/DataProvider.java",
"license": "mpl-2.0",
"size": 3159
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 638,164 |
public T callPublic(String baseUrl, KrakenApiMethod method, Class<T> result, Map<String, String> params) throws KrakenApiException {
try {
final String responseString = this.client.executePublicQuery(baseUrl, method.getUrl(apiVersion), params);
T res = new ObjectMapper().readValue(re... | T function(String baseUrl, KrakenApiMethod method, Class<T> result, Map<String, String> params) throws KrakenApiException { try { final String responseString = this.client.executePublicQuery(baseUrl, method.getUrl(apiVersion), params); T res = new ObjectMapper().readValue(responseString, result); if (!res.getError().is... | /**
* Call public kraken method
*
* @param baseUrl kraken base url
* @param method kraken method
* @param result result class
* @param params method parameters
* @return result
* @throws KrakenApiException
*/ | Call public kraken method | callPublic | {
"repo_name": "sbouclier/kraken-java-api-client",
"path": "src/main/java/com/github/sbouclier/HttpApiClient.java",
"license": "mit",
"size": 6326
} | [
"com.fasterxml.jackson.databind.ObjectMapper",
"java.io.IOException",
"java.util.Map"
] | import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.util.Map; | import com.fasterxml.jackson.databind.*; import java.io.*; import java.util.*; | [
"com.fasterxml.jackson",
"java.io",
"java.util"
] | com.fasterxml.jackson; java.io; java.util; | 2,322,707 |
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException {
stream.defaultReadObject();
this.stroke = SerialUtilities.readStroke(stream);
this.outlinePaint = SerialUtilities.readPaint(stream);
this.fillPaint = SerialUtilities.readPaint(... | void function(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject(); this.stroke = SerialUtilities.readStroke(stream); this.outlinePaint = SerialUtilities.readPaint(stream); this.fillPaint = SerialUtilities.readPaint(stream); } | /**
* Provides serialization support.
*
* @param stream the input stream (<code>null</code> not permitted).
*
* @throws IOException if there is an I/O error.
* @throws ClassNotFoundException if there is a classpath problem.
*/ | Provides serialization support | readObject | {
"repo_name": "simeshev/parabuild-ci",
"path": "3rdparty/jfreechart-1.0.5/source/org/jfree/chart/annotations/XYPolygonAnnotation.java",
"license": "lgpl-3.0",
"size": 12741
} | [
"java.io.IOException",
"java.io.ObjectInputStream",
"org.jfree.io.SerialUtilities"
] | import java.io.IOException; import java.io.ObjectInputStream; import org.jfree.io.SerialUtilities; | import java.io.*; import org.jfree.io.*; | [
"java.io",
"org.jfree.io"
] | java.io; org.jfree.io; | 2,669,420 |
public void setFsmTimeoutValue(String fsmTimeoutValue) throws JNCException {
setFsmTimeoutValue(new YangUInt16(fsmTimeoutValue));
} | void function(String fsmTimeoutValue) throws JNCException { setFsmTimeoutValue(new YangUInt16(fsmTimeoutValue)); } | /**
* Sets the value for child leaf "fsm-timeout",
* using a String value.
* @param fsmTimeoutValue used during instantiation.
*/ | Sets the value for child leaf "fsm-timeout", using a String value | setFsmTimeoutValue | {
"repo_name": "jnpr-shinma/yangfile",
"path": "hitel/src/hctaEpc/mmeSgsn/interface_/MmeM3ua.java",
"license": "apache-2.0",
"size": 44401
} | [
"com.tailf.jnc.YangUInt16"
] | import com.tailf.jnc.YangUInt16; | import com.tailf.jnc.*; | [
"com.tailf.jnc"
] | com.tailf.jnc; | 2,677,900 |
@Test
public void toBlockStoreLocation() {
StorageTier tier = mDir.getParentTier();
assertEquals(new BlockStoreLocation(tier.getTierAlias(), mDir.getDirIndex()),
mDir.toBlockStoreLocation());
} | void function() { StorageTier tier = mDir.getParentTier(); assertEquals(new BlockStoreLocation(tier.getTierAlias(), mDir.getDirIndex()), mDir.toBlockStoreLocation()); } | /**
* Tests the {@link StorageDir#toBlockStoreLocation()} method.
*/ | Tests the <code>StorageDir#toBlockStoreLocation()</code> method | toBlockStoreLocation | {
"repo_name": "aaudiber/alluxio",
"path": "core/server/worker/src/test/java/alluxio/worker/block/meta/StorageDirTest.java",
"license": "apache-2.0",
"size": 20761
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 70,958 |
private String getContainerPid(Path pidFilePath) throws Exception {
String containerIdStr =
ConverterUtils.toString(container.getContainerId());
String processId = null;
LOG.debug("Accessing pid for container " + containerIdStr
+ " from pid file " + pidFilePath);
int sleepCounter = 0;... | String function(Path pidFilePath) throws Exception { String containerIdStr = ConverterUtils.toString(container.getContainerId()); String processId = null; LOG.debug(STR + containerIdStr + STR + pidFilePath); int sleepCounter = 0; final int sleepInterval = 100; while (true) { processId = ProcessIdFileReader.getProcessId... | /**
* Loop through for a time-bounded interval waiting to
* read the process id from a file generated by a running process.
* @param pidFilePath File from which to read the process id
* @return Process ID
* @throws Exception
*/ | Loop through for a time-bounded interval waiting to read the process id from a file generated by a running process | getContainerPid | {
"repo_name": "HazelChen/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/launcher/ContainerLaunch.java",
"license": "apache-2.0",
"size": 31375
} | [
"org.apache.hadoop.fs.Path",
"org.apache.hadoop.yarn.server.nodemanager.util.ProcessIdFileReader",
"org.apache.hadoop.yarn.util.ConverterUtils"
] | import org.apache.hadoop.fs.Path; import org.apache.hadoop.yarn.server.nodemanager.util.ProcessIdFileReader; import org.apache.hadoop.yarn.util.ConverterUtils; | import org.apache.hadoop.fs.*; import org.apache.hadoop.yarn.server.nodemanager.util.*; import org.apache.hadoop.yarn.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 2,746,717 |
public String[] getChipTypes() {
Set s = this.suites.keySet();
final int size = s.size();
String[] result = new String[size];
int i = 0;
Iterator it = s.iterator();
while (it.hasNext())
result[i++] = (String) it.next();
return result;
} | String[] function() { Set s = this.suites.keySet(); final int size = s.size(); String[] result = new String[size]; int i = 0; Iterator it = s.iterator(); while (it.hasNext()) result[i++] = (String) it.next(); return result; } | /**
* Get the type list of the TestSuites
* @return An array string with the names of the types
*/ | Get the type list of the TestSuites | getChipTypes | {
"repo_name": "GenomicParisCentre/doelan",
"path": "src/main/java/fr/ens/transcriptome/doelan/data/QualityTestSuiteList.java",
"license": "gpl-2.0",
"size": 7589
} | [
"java.util.Iterator",
"java.util.Set"
] | import java.util.Iterator; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,582,900 |
public boolean isItemValidForSlot(int index, ItemStack stack)
{
return true;
} | boolean function(int index, ItemStack stack) { return true; } | /**
* Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
*/ | Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot | isItemValidForSlot | {
"repo_name": "danielyc/test-1.9.4",
"path": "build/tmp/recompileMc/sources/net/minecraft/entity/item/EntityMinecartContainer.java",
"license": "gpl-3.0",
"size": 10546
} | [
"net.minecraft.item.ItemStack"
] | import net.minecraft.item.ItemStack; | import net.minecraft.item.*; | [
"net.minecraft.item"
] | net.minecraft.item; | 330,205 |
public DatabaseSession login() {
DatabaseSession session;
session = project.createDatabaseSession();
session.login();
return session;
}
| DatabaseSession function() { DatabaseSession session; session = project.createDatabaseSession(); session.login(); return session; } | /**
* Return a connected session using the default login.
*/ | Return a connected session using the default login | login | {
"repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs",
"path": "foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/tests/unitofwork/changeflag/ALCTEmployeeSystem.java",
"license": "epl-1.0",
"size": 3397
} | [
"org.eclipse.persistence.sessions.DatabaseSession"
] | import org.eclipse.persistence.sessions.DatabaseSession; | import org.eclipse.persistence.sessions.*; | [
"org.eclipse.persistence"
] | org.eclipse.persistence; | 591,898 |
public AttributedCharacterIterator getSelectedText(Attribute[] attributes) {
return getReq().getSelectedText(attributes);
} | AttributedCharacterIterator function(Attribute[] attributes) { return getReq().getSelectedText(attributes); } | /**
* Calls the current client component's implementation of getSelectedText.
*/ | Calls the current client component's implementation of getSelectedText | getSelectedText | {
"repo_name": "mirkosertic/Bytecoder",
"path": "classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/sun/awt/im/InputMethodContext.java",
"license": "apache-2.0",
"size": 14560
} | [
"java.text.AttributedCharacterIterator"
] | import java.text.AttributedCharacterIterator; | import java.text.*; | [
"java.text"
] | java.text; | 2,089,612 |
// Relating objects
public Object objectForRelationshipType(String type) {
NSArray<CXManagedObject> objects = _resolvedArrayForRelationshipType(type);
return (objects == null ||
objects.count() == 0) ? null : objects.objectAtIndex(0);
} | Object function(String type) { NSArray<CXManagedObject> objects = _resolvedArrayForRelationshipType(type); return (objects == null objects.count() == 0) ? null : objects.objectAtIndex(0); } | /**
* Returns the first object found for the given relationship type.
*/ | Returns the first object found for the given relationship type | objectForRelationshipType | {
"repo_name": "gavineadie/Pachyderm",
"path": "Frameworks/Apollo/DataServices/Sources/org/pachyderm/apollo/data/CXManagedObject.java",
"license": "cc0-1.0",
"size": 27289
} | [
"com.webobjects.foundation.NSArray"
] | import com.webobjects.foundation.NSArray; | import com.webobjects.foundation.*; | [
"com.webobjects.foundation"
] | com.webobjects.foundation; | 1,887,232 |
Attribute getAttributeById(PerunSession sess, Group group, int id) throws WrongAttributeAssignmentException, AttributeNotExistsException; | Attribute getAttributeById(PerunSession sess, Group group, int id) throws WrongAttributeAssignmentException, AttributeNotExistsException; | /**
* Get particular group attribute
* @param sess
* @param group
* @param id
* @return
* @throws InternalErrorException
* @throws WrongAttributeAssignmentException
* @throws AttributeNotExistsException
*/ | Get particular group attribute | getAttributeById | {
"repo_name": "zlamalp/perun",
"path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/AttributesManagerBl.java",
"license": "bsd-2-clause",
"size": 244560
} | [
"cz.metacentrum.perun.core.api.Attribute",
"cz.metacentrum.perun.core.api.Group",
"cz.metacentrum.perun.core.api.PerunSession",
"cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException",
"cz.metacentrum.perun.core.api.exceptions.WrongAttributeAssignmentException"
] | import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Group; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException; import cz.metacentrum.perun.core.api.exceptions.WrongAttributeAssignmentException; | import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; | [
"cz.metacentrum.perun"
] | cz.metacentrum.perun; | 1,813,992 |
public static void putVideoScore(ClusterSet clusterSet) {
logger.info("------ Use Video ------");
boolean isCloseListCheck = parameter.getParameterNamedSpeaker().isCloseListCheck();
if (parameter.getParameterNamedSpeaker().isUseVideo()) {
double thr = parameter.getParameterNamedSpeaker().getThresholdVideo()... | static void function(ClusterSet clusterSet) { logger.info(STR); boolean isCloseListCheck = parameter.getParameterNamedSpeaker().isCloseListCheck(); if (parameter.getParameterNamedSpeaker().isUseVideo()) { double thr = parameter.getParameterNamedSpeaker().getThresholdVideo(); for (String name : clusterSet) { Cluster clu... | /**
* Put video score.
*
* @param clusterSet the cluster set
*/ | Put video score | putVideoScore | {
"repo_name": "Adirockzz95/GenderDetect",
"path": "src/src/fr/lium/experimental/spkDiarization/programs/SpeakerIdenificationDecision.java",
"license": "gpl-3.0",
"size": 38697
} | [
"fr.lium.experimental.spkDiarization.libClusteringData.speakerName.SpeakerName",
"fr.lium.experimental.spkDiarization.libNamedSpeaker.SpeakerNameUtils",
"fr.lium.spkDiarization.libClusteringData.Cluster",
"fr.lium.spkDiarization.libClusteringData.ClusterSet",
"fr.lium.spkDiarization.libModel.ModelScores"
] | import fr.lium.experimental.spkDiarization.libClusteringData.speakerName.SpeakerName; import fr.lium.experimental.spkDiarization.libNamedSpeaker.SpeakerNameUtils; import fr.lium.spkDiarization.libClusteringData.Cluster; import fr.lium.spkDiarization.libClusteringData.ClusterSet; import fr.lium.spkDiarization.libModel.M... | import fr.lium.*; import fr.lium.experimental.*; | [
"fr.lium",
"fr.lium.experimental"
] | fr.lium; fr.lium.experimental; | 723,605 |
public static Test suite() {
return new TestSuite(SerializationHelperTest.class);
} | static Test function() { return new TestSuite(SerializationHelperTest.class); } | /**
* Returns a test suite.
*
* @return the test suite
*/ | Returns a test suite | suite | {
"repo_name": "waikato-datamining/adams-base",
"path": "adams-core/src/test/java/adams/core/SerializationHelperTest.java",
"license": "gpl-3.0",
"size": 4979
} | [
"junit.framework.Test",
"junit.framework.TestSuite"
] | import junit.framework.Test; import junit.framework.TestSuite; | import junit.framework.*; | [
"junit.framework"
] | junit.framework; | 673,164 |
Session openNewSession(String userName, String password, String host, int port) throws JSchException;
| Session openNewSession(String userName, String password, String host, int port) throws JSchException; | /**
* Open a new SFTP session
* @param userName
* @param password
* @param host
* @param port
* @return
* @throws JSchException
*/ | Open a new SFTP session | openNewSession | {
"repo_name": "Sage-Bionetworks/file-proxy",
"path": "src/main/java/org/sagebionetworks/file/proxy/sftp/JcraftFactory.java",
"license": "mit",
"size": 484
} | [
"com.jcraft.jsch.JSchException",
"com.jcraft.jsch.Session"
] | import com.jcraft.jsch.JSchException; import com.jcraft.jsch.Session; | import com.jcraft.jsch.*; | [
"com.jcraft.jsch"
] | com.jcraft.jsch; | 2,173,505 |
public final BuilderT intercept(ClientInterceptor... interceptors) {
return intercept(Arrays.asList(interceptors));
} | final BuilderT function(ClientInterceptor... interceptors) { return intercept(Arrays.asList(interceptors)); } | /**
* Adds interceptors that will be called before the channel performs its real work. This is
* functionally equivalent to using {@link ClientInterceptors#intercept(Channel,
* ClientInterceptor...)}, but while still having access to the original {@code ChannelImpl}.
*/ | Adds interceptors that will be called before the channel performs its real work. This is functionally equivalent to using <code>ClientInterceptors#intercept(Channel, ClientInterceptor...)</code>, but while still having access to the original ChannelImpl | intercept | {
"repo_name": "aglne/grpc-java",
"path": "core/src/main/java/io/grpc/AbstractChannelBuilder.java",
"license": "bsd-3-clause",
"size": 4534
} | [
"java.util.Arrays"
] | import java.util.Arrays; | import java.util.*; | [
"java.util"
] | java.util; | 1,296,327 |
private void bindActiveSeriesItem(final SeriesViewHolder holder, int position) {
holder.mTextViewDate.setText(mListSeries.get(position).getSeriesDate());
int matchPlayPadding = (int) mRecyclerView.getResources().getDimension(R.dimen.match_play_text_padding);
int matchPlayHalfPadding = (int) ... | void function(final SeriesViewHolder holder, int position) { holder.mTextViewDate.setText(mListSeries.get(position).getSeriesDate()); int matchPlayPadding = (int) mRecyclerView.getResources().getDimension(R.dimen.match_play_text_padding); int matchPlayHalfPadding = (int) mRecyclerView.getResources().getDimension(R.dime... | /**
* Sets properties of a view holder for an active series item.
*
* @param holder view holder for active item
* @param position position of active item
*/ | Sets properties of a view holder for an active series item | bindActiveSeriesItem | {
"repo_name": "sunndog/bowling-companion",
"path": "BC-Free/app/src/main/java/ca/josephroque/bowlingcompanion/adapter/SeriesAdapter.java",
"license": "mit",
"size": 16917
} | [
"android.graphics.PorterDuff",
"android.preference.PreferenceManager",
"android.view.View",
"ca.josephroque.bowlingcompanion.Constants",
"ca.josephroque.bowlingcompanion.theme.Theme",
"ca.josephroque.bowlingcompanion.utilities.DisplayUtils",
"java.util.List"
] | import android.graphics.PorterDuff; import android.preference.PreferenceManager; import android.view.View; import ca.josephroque.bowlingcompanion.Constants; import ca.josephroque.bowlingcompanion.theme.Theme; import ca.josephroque.bowlingcompanion.utilities.DisplayUtils; import java.util.List; | import android.graphics.*; import android.preference.*; import android.view.*; import ca.josephroque.bowlingcompanion.*; import ca.josephroque.bowlingcompanion.theme.*; import ca.josephroque.bowlingcompanion.utilities.*; import java.util.*; | [
"android.graphics",
"android.preference",
"android.view",
"ca.josephroque.bowlingcompanion",
"java.util"
] | android.graphics; android.preference; android.view; ca.josephroque.bowlingcompanion; java.util; | 1,674,584 |
public Coordinates getValueCoordinates() {
return valueCoordinates;
} | Coordinates function() { return valueCoordinates; } | /**
* To get Value Coordinates.
* @return Coordinates
*/ | To get Value Coordinates | getValueCoordinates | {
"repo_name": "kuzavas/ephesoft",
"path": "dcma-batch/src/main/java/com/ephesoft/dcma/kvfinder/data/KeyValueFieldCarrier.java",
"license": "agpl-3.0",
"size": 5327
} | [
"com.ephesoft.dcma.batch.schema.Coordinates"
] | import com.ephesoft.dcma.batch.schema.Coordinates; | import com.ephesoft.dcma.batch.schema.*; | [
"com.ephesoft.dcma"
] | com.ephesoft.dcma; | 2,909,800 |
public void setType(List<Reference> type) {
this.type = type;
} | void function(List<Reference> type) { this.type = type; } | /**
* Sets the list of references to resource type elements.
*
* @param type
* The list of references to resource type elements.
*/ | Sets the list of references to resource type elements | setType | {
"repo_name": "debrief/debrief",
"path": "org.mwc.asset.comms/docs/restlet_src/org.restlet.ext.wadl/org/restlet/ext/wadl/ResourceInfo.java",
"license": "epl-1.0",
"size": 16991
} | [
"java.util.List",
"org.restlet.data.Reference"
] | import java.util.List; import org.restlet.data.Reference; | import java.util.*; import org.restlet.data.*; | [
"java.util",
"org.restlet.data"
] | java.util; org.restlet.data; | 612,098 |
@Override
public MEventListener appendOr(MEventListener other) {
return new Casting(idZone, Or.append(this.test, other.test), card);
}
| MEventListener function(MEventListener other) { return new Casting(idZone, Or.append(this.test, other.test), card); } | /**
* Create and returns an union of this event and the specified one. Both event
* must have the same type. Test(s) and events attributes may be groupped
* depending instance of this event. If no possible append is possible
* <code>null</code> is returned.
*
* @param other
* the event to... | Create and returns an union of this event and the specified one. Both event must have the same type. Test(s) and events attributes may be groupped depending instance of this event. If no possible append is possible <code>null</code> is returned | appendOr | {
"repo_name": "JoeyLeeuwinga/Firemox",
"path": "src/main/java/net/sf/firemox/event/Casting.java",
"license": "gpl-2.0",
"size": 4833
} | [
"net.sf.firemox.test.Or"
] | import net.sf.firemox.test.Or; | import net.sf.firemox.test.*; | [
"net.sf.firemox"
] | net.sf.firemox; | 2,006,707 |
@ApiModelProperty(example = "null", value = "ICMS rate")
public Double getRate() {
return rate;
} | @ApiModelProperty(example = "null", value = STR) Double function() { return rate; } | /**
* ICMS rate
* @return rate
**/ | ICMS rate | getRate | {
"repo_name": "Avalara/avataxbr-clients",
"path": "java-client/src/main/java/io/swagger/client/model/IcmsConfByState.java",
"license": "gpl-3.0",
"size": 16453
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 511,829 |
public Markup getAssociatedMarkup()
{
try
{
Markup markup = MarkupFactory.get().getMarkup(this, false);
// If we found markup for this container
if ((markup != null) && (markup != Markup.NO_MARKUP))
{
return markup;
}
return null;
}
catch (MarkupException ex)
{
// re-throw it. T... | Markup function() { try { Markup markup = MarkupFactory.get().getMarkup(this, false); if ((markup != null) && (markup != Markup.NO_MARKUP)) { return markup; } return null; } catch (MarkupException ex) { throw ex; } catch (MarkupNotFoundException ex) { throw ex; } catch (WicketRuntimeException ex) { throw new MarkupNotF... | /**
* Gets a fresh markup stream that contains the (immutable) markup resource for this class.
*
* @return A stream of MarkupElement elements. Null if not found.
*/ | Gets a fresh markup stream that contains the (immutable) markup resource for this class | getAssociatedMarkup | {
"repo_name": "klopfdreh/wicket",
"path": "wicket-core/src/main/java/org/apache/wicket/MarkupContainer.java",
"license": "apache-2.0",
"size": 61642
} | [
"org.apache.wicket.markup.Markup",
"org.apache.wicket.markup.MarkupException",
"org.apache.wicket.markup.MarkupFactory",
"org.apache.wicket.markup.MarkupNotFoundException"
] | import org.apache.wicket.markup.Markup; import org.apache.wicket.markup.MarkupException; import org.apache.wicket.markup.MarkupFactory; import org.apache.wicket.markup.MarkupNotFoundException; | import org.apache.wicket.markup.*; | [
"org.apache.wicket"
] | org.apache.wicket; | 226,196 |
private static EndpointAddress mkAddress(String destPeer, String pipeID) {
ID asID = ID.create(URI.create(destPeer));
return mkAddress(asID, pipeID);
} | static EndpointAddress function(String destPeer, String pipeID) { ID asID = ID.create(URI.create(destPeer)); return mkAddress(asID, pipeID); } | /**
* Convenience method for constructing an endpoint address from an id
*
* @param destPeer peer id
* @param serv the service name (if any)
* @param parm the service param (if any)
* @param endpointAddress for this peer id.
**/ | Convenience method for constructing an endpoint address from an id | mkAddress | {
"repo_name": "johnjianfang/jxse",
"path": "src/test/java/net/jxta/pipe/PipeTest.java",
"license": "apache-2.0",
"size": 12307
} | [
"java.net.URI",
"net.jxta.endpoint.EndpointAddress",
"net.jxta.id.ID"
] | import java.net.URI; import net.jxta.endpoint.EndpointAddress; import net.jxta.id.ID; | import java.net.*; import net.jxta.endpoint.*; import net.jxta.id.*; | [
"java.net",
"net.jxta.endpoint",
"net.jxta.id"
] | java.net; net.jxta.endpoint; net.jxta.id; | 1,259,886 |
List<String> getElements(); | List<String> getElements(); | /**
* XML root elements of components provided by plugin.
*
* @return List of element names
*/ | XML root elements of components provided by plugin | getElements | {
"repo_name": "tilioteo/hypothesis",
"path": "interfaces/src/main/java/org/hypothesis/interfaces/SlideComponentPlugin.java",
"license": "apache-2.0",
"size": 862
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,983,822 |
public static void configureFromDefaultDwrXml(Container container, ServletConfig servletConfig) throws IOException, ParserConfigurationException, SAXException
{
DwrXmlConfigurator local = new DwrXmlConfigurator();
local.setServletResourceName(servletConfig.getServletContext(), DwrConstants.DEFAU... | static void function(Container container, ServletConfig servletConfig) throws IOException, ParserConfigurationException, SAXException { DwrXmlConfigurator local = new DwrXmlConfigurator(); local.setServletResourceName(servletConfig.getServletContext(), DwrConstants.DEFAULT_DWR_XML); local.configure(container); } | /**
* Configure using the users dwr.xml that sits next in WEB-INF
* @param container The container to configure
* @throws ParserConfigurationException If the config file parse fails
* @throws IOException If the config file read fails
* @throws SAXException If the config file parse fails
*/ | Configure using the users dwr.xml that sits next in WEB-INF | configureFromDefaultDwrXml | {
"repo_name": "burris/dwr",
"path": "core/impl/main/java/org/directwebremoting/impl/StartupUtil.java",
"license": "apache-2.0",
"size": 36360
} | [
"java.io.IOException",
"javax.servlet.ServletConfig",
"javax.xml.parsers.ParserConfigurationException",
"org.directwebremoting.Container",
"org.directwebremoting.extend.DwrConstants",
"org.xml.sax.SAXException"
] | import java.io.IOException; import javax.servlet.ServletConfig; import javax.xml.parsers.ParserConfigurationException; import org.directwebremoting.Container; import org.directwebremoting.extend.DwrConstants; import org.xml.sax.SAXException; | import java.io.*; import javax.servlet.*; import javax.xml.parsers.*; import org.directwebremoting.*; import org.directwebremoting.extend.*; import org.xml.sax.*; | [
"java.io",
"javax.servlet",
"javax.xml",
"org.directwebremoting",
"org.directwebremoting.extend",
"org.xml.sax"
] | java.io; javax.servlet; javax.xml; org.directwebremoting; org.directwebremoting.extend; org.xml.sax; | 1,860,476 |
private void loadReport() throws JRException, PersistenceException {
ServletContext context = ((WebApplication) getApplication()).getServletContext();
pdfResource.loadReport(context.getRealPath(pdfResource.getDesignFilename()));
pdfResource.setReportDataSource(new JRTableModelDataSource(tabl... | void function() throws JRException, PersistenceException { ServletContext context = ((WebApplication) getApplication()).getServletContext(); pdfResource.loadReport(context.getRealPath(pdfResource.getDesignFilename())); pdfResource.setReportDataSource(new JRTableModelDataSource(tableModel)); TiTAUser currentUser = userS... | /**
* loads report and sets data source.
*
* @throws JRException JasperReports Exception
* @throws PersistenceException if user cannot be found
*/ | loads report and sets data source | loadReport | {
"repo_name": "tita/tita",
"path": "tita-wicket/src/main/java/at/ac/tuwien/ifs/tita/ui/evaluation/timeconsumer/MonthlyViewPage.java",
"license": "apache-2.0",
"size": 10590
} | [
"at.ac.tuwien.ifs.tita.entity.TiTAUser",
"at.ac.tuwien.ifs.tita.ui.login.TitaSession",
"javax.persistence.PersistenceException",
"javax.servlet.ServletContext",
"net.sf.jasperreports.engine.JRException",
"net.sf.jasperreports.engine.data.JRTableModelDataSource",
"org.apache.wicket.protocol.http.WebAppli... | import at.ac.tuwien.ifs.tita.entity.TiTAUser; import at.ac.tuwien.ifs.tita.ui.login.TitaSession; import javax.persistence.PersistenceException; import javax.servlet.ServletContext; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.data.JRTableModelDataSource; import org.apache.wicket.pr... | import at.ac.tuwien.ifs.tita.entity.*; import at.ac.tuwien.ifs.tita.ui.login.*; import javax.persistence.*; import javax.servlet.*; import net.sf.jasperreports.engine.*; import net.sf.jasperreports.engine.data.*; import org.apache.wicket.protocol.http.*; | [
"at.ac.tuwien",
"javax.persistence",
"javax.servlet",
"net.sf.jasperreports",
"org.apache.wicket"
] | at.ac.tuwien; javax.persistence; javax.servlet; net.sf.jasperreports; org.apache.wicket; | 2,570,934 |
public static BlockReader newBlockReader(String file,
ExtendedBlock block,
Token<BlockTokenIdentifier> blockToken,
long startOffset, long len,
boolean verifyChecksum,
String clientName,
Peer peer, DatanodeID datanodeID,
PeerCache peerCache,
CachingStrategy cachingStrate... | static BlockReader function(String file, ExtendedBlock block, Token<BlockTokenIdentifier> blockToken, long startOffset, long len, boolean verifyChecksum, String clientName, Peer peer, DatanodeID datanodeID, PeerCache peerCache, CachingStrategy cachingStrategy, Tracer tracer, int networkDistance) throws IOException { fi... | /**
* Create a new BlockReader specifically to satisfy a read.
* This method also sends the OP_READ_BLOCK request.
*
* @param file File location
* @param block The block object
* @param blockToken The block token for security
* @param startOffset The read offset, relative to block head
* @pa... | Create a new BlockReader specifically to satisfy a read. This method also sends the OP_READ_BLOCK request | newBlockReader | {
"repo_name": "dennishuo/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/impl/BlockReaderRemote.java",
"license": "apache-2.0",
"size": 16354
} | [
"java.io.BufferedOutputStream",
"java.io.DataOutputStream",
"java.io.IOException",
"org.apache.hadoop.hdfs.BlockReader",
"org.apache.hadoop.hdfs.PeerCache",
"org.apache.hadoop.hdfs.net.Peer",
"org.apache.hadoop.hdfs.protocol.DatanodeID",
"org.apache.hadoop.hdfs.protocol.ExtendedBlock",
"org.apache.h... | import java.io.BufferedOutputStream; import java.io.DataOutputStream; import java.io.IOException; import org.apache.hadoop.hdfs.BlockReader; import org.apache.hadoop.hdfs.PeerCache; import org.apache.hadoop.hdfs.net.Peer; import org.apache.hadoop.hdfs.protocol.DatanodeID; import org.apache.hadoop.hdfs.protocol.Extended... | import java.io.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.hdfs.net.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.hdfs.protocol.datatransfer.*; import org.apache.hadoop.hdfs.protocol.proto.*; import org.apache.hadoop.hdfs.security.token.block.*; import org.apache.hadoop.hdfs.ser... | [
"java.io",
"org.apache.hadoop",
"org.apache.htrace"
] | java.io; org.apache.hadoop; org.apache.htrace; | 1,768,766 |
private int getFrame(long pos) {
int sample = 1;
int len = frames.size();
MP4Frame frame = null;
for (int f = 0; f < len; f++) {
frame = frames.get(f);
if (pos == frame.getOffset()) {
sample = f;
break;
}
}
return sample;
}
/** {@inheritDoc} | int function(long pos) { int sample = 1; int len = frames.size(); MP4Frame frame = null; for (int f = 0; f < len; f++) { frame = frames.get(f); if (pos == frame.getOffset()) { sample = f; break; } } return sample; } /** {@inheritDoc} | /**
* Search through the frames by offset / position to find the sample.
*
* @param pos
* @return
*/ | Search through the frames by offset / position to find the sample | getFrame | {
"repo_name": "OpenCorrelate/red5load",
"path": "red5/src/main/java/org/red5/io/m4a/impl/M4AReader.java",
"license": "lgpl-3.0",
"size": 25037
} | [
"org.red5.io.mp4.MP4Frame"
] | import org.red5.io.mp4.MP4Frame; | import org.red5.io.mp4.*; | [
"org.red5.io"
] | org.red5.io; | 2,236,865 |
public boolean hasEnoughSpace() {
// The file must be valid and have enough space.
if (checkArchiveFile(checksumFile)
&& (FileUtils.getBytesFree(checksumFile) > minSpaceLeft)) {
return true;
}
return false;
} | boolean function() { if (checkArchiveFile(checksumFile) && (FileUtils.getBytesFree(checksumFile) > minSpaceLeft)) { return true; } return false; } | /**
* Method for testing where there is enough space left on local drive.
*
* @return Whether there is enough space left.
*/ | Method for testing where there is enough space left on local drive | hasEnoughSpace | {
"repo_name": "netarchivesuite/netarchivesuite-svngit-migration",
"path": "src/dk/netarkivet/archive/checksum/FileChecksumArchive.java",
"license": "lgpl-2.1",
"size": 33791
} | [
"dk.netarkivet.common.utils.FileUtils"
] | import dk.netarkivet.common.utils.FileUtils; | import dk.netarkivet.common.utils.*; | [
"dk.netarkivet.common"
] | dk.netarkivet.common; | 1,277,893 |
private void loadConfiguration() {
try {
repositoryProperties = new XMLConfiguration(new File(baseDirectory, PROPERTIES_FILE));
} catch (final ConfigurationException ce) {
throw new OLATRuntimeException("Error importing repository entry properties.", ce);
}
if (!repositoryProperties.getName().equals(PR... | void function() { try { repositoryProperties = new XMLConfiguration(new File(baseDirectory, PROPERTIES_FILE)); } catch (final ConfigurationException ce) { throw new OLATRuntimeException(STR, ce); } if (!repositoryProperties.getName().equals(PROP_ROOT)) { throw new AssertException(STR); } } | /**
* Read previousely exported Propertiesproperties
*/ | Read previousely exported Propertiesproperties | loadConfiguration | {
"repo_name": "RLDevOps/Demo",
"path": "src/main/java/org/olat/repository/RepositoryEntryImportExport.java",
"license": "apache-2.0",
"size": 6581
} | [
"com.anthonyeden.lib.config.ConfigurationException",
"com.anthonyeden.lib.config.XMLConfiguration",
"java.io.File",
"org.olat.core.logging.AssertException",
"org.olat.core.logging.OLATRuntimeException"
] | import com.anthonyeden.lib.config.ConfigurationException; import com.anthonyeden.lib.config.XMLConfiguration; import java.io.File; import org.olat.core.logging.AssertException; import org.olat.core.logging.OLATRuntimeException; | import com.anthonyeden.lib.config.*; import java.io.*; import org.olat.core.logging.*; | [
"com.anthonyeden.lib",
"java.io",
"org.olat.core"
] | com.anthonyeden.lib; java.io; org.olat.core; | 832,642 |
public KualiInteger add(KualiInteger addend) {
if (addend == null) {
throw new IllegalArgumentException("invalid (null) addend");
}
BigInteger sum = this.value.add(addend.value);
return new KualiInteger(sum);
} | KualiInteger function(KualiInteger addend) { if (addend == null) { throw new IllegalArgumentException(STR); } BigInteger sum = this.value.add(addend.value); return new KualiInteger(sum); } | /**
* Wraps BigDecimal's add method to accept and return KualiDecimal instances instead of BigDecimals, so that users of the class
* don't have to typecast the return value.
*
* @param addend
* @return result of adding the given addend to this value
* @throws IllegalArgumentException if t... | Wraps BigDecimal's add method to accept and return KualiDecimal instances instead of BigDecimals, so that users of the class don't have to typecast the return value | add | {
"repo_name": "ricepanda/rice-git3",
"path": "rice-middleware/core/api/src/main/java/org/kuali/rice/core/api/util/type/KualiInteger.java",
"license": "apache-2.0",
"size": 11414
} | [
"java.math.BigInteger"
] | import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 191,941 |
public void setProjection(Angle view, final List<Double> lstVals) throws ArrayIndexOutOfBoundsException {
if (lstVals.size() != this.getDataSize())
throw new ArrayIndexOutOfBoundsException("ProfileData#setHorizontalProfile: list size not equal to " + this.getDataSize());
... | void function(Angle view, final List<Double> lstVals) throws ArrayIndexOutOfBoundsException { if (lstVals.size() != this.getDataSize()) throw new ArrayIndexOutOfBoundsException(STR + this.getDataSize()); int index = 0; for (double dblVal : lstVals) this.setProjectionAt(view, index++, dblVal); } | /**
* Set the entire projection data array. Note that the
* given list must have length equal to the storage specified
* by <code>ProfileData#allocStorage(int)</code>.
*
* @param view projection view angle
* @param lstVals ordered list of projection data
*
* @t... | Set the entire projection data array. Note that the given list must have length equal to the storage specified by <code>ProfileData#allocStorage(int)</code> | setProjection | {
"repo_name": "EuropeanSpallationSource/openxal",
"path": "extensions/wirescan/src/main/java/xal/extension/wirescan/profile/ProfileData.java",
"license": "bsd-3-clause",
"size": 32856
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 998,913 |
public void testFromJsonEmptyQueryBody() throws IOException {
String query =
"{" +
"\"bool\" : {" +
" \"must\" : [ { } ]," +
" \"filter\" : { }," +
" \"must_not\" : [ { \"constant_score\" : {\"filter\" : { } } } ]" +
... | void function() throws IOException { String query = "{" + "\"bool\STR + STRmust\STR + STRfilter\STR + STRmust_not\STRconstant_score\STRfilter\STR + "}" + "}"; BoolQueryBuilder queryBuilder = (BoolQueryBuilder) parseQuery(query, ParseFieldMatcher.EMPTY); assertEquals(query, 0, queryBuilder.must().size()); assertEquals(q... | /**
* we ignore empty query bodies if we are not in strict mode
*/ | we ignore empty query bodies if we are not in strict mode | testFromJsonEmptyQueryBody | {
"repo_name": "awislowski/elasticsearch",
"path": "core/src/test/java/org/elasticsearch/index/query/BoolQueryBuilderTests.java",
"license": "apache-2.0",
"size": 21625
} | [
"java.io.IOException",
"org.elasticsearch.common.ParseFieldMatcher",
"org.hamcrest.CoreMatchers"
] | import java.io.IOException; import org.elasticsearch.common.ParseFieldMatcher; import org.hamcrest.CoreMatchers; | import java.io.*; import org.elasticsearch.common.*; import org.hamcrest.*; | [
"java.io",
"org.elasticsearch.common",
"org.hamcrest"
] | java.io; org.elasticsearch.common; org.hamcrest; | 2,339,241 |
@NotNull
@Required(value = false, nonEmpty = true)
@Convert(MavenDependencyTypeConverter.class)
GenericDomValue<String> getType(); | @Required(value = false, nonEmpty = true) @Convert(MavenDependencyTypeConverter.class) GenericDomValue<String> getType(); | /**
* Returns the value of the type child.
* <pre>
* <h3>Element http://maven.apache.org/POM/4.0.0:type documentation</h3>
* 4.0.0
* </pre>
*
* @return the value of the type child.
*/ | Returns the value of the type child. <code> Element HREF documentation 4.0.0 </code> | getType | {
"repo_name": "siosio/intellij-community",
"path": "plugins/maven/src/main/java/org/jetbrains/idea/maven/dom/model/MavenDomDependency.java",
"license": "apache-2.0",
"size": 3939
} | [
"com.intellij.util.xml.Convert",
"com.intellij.util.xml.GenericDomValue",
"com.intellij.util.xml.Required",
"org.jetbrains.idea.maven.dom.converters.MavenDependencyTypeConverter"
] | import com.intellij.util.xml.Convert; import com.intellij.util.xml.GenericDomValue; import com.intellij.util.xml.Required; import org.jetbrains.idea.maven.dom.converters.MavenDependencyTypeConverter; | import com.intellij.util.xml.*; import org.jetbrains.idea.maven.dom.converters.*; | [
"com.intellij.util",
"org.jetbrains.idea"
] | com.intellij.util; org.jetbrains.idea; | 1,923,771 |
public SymbolicPolynomial create(final IExpr exprPoly, boolean coefficient,
boolean checkNegativeExponents, boolean coefficientListMode)
throws ArithmeticException, ClassCastException {
int ix = ExpVectorSymbolic.indexVar(exprPoly, getVars());
if (ix >= 0) {
ExpVectorSymbolic e = new ExpVect... | SymbolicPolynomial function(final IExpr exprPoly, boolean coefficient, boolean checkNegativeExponents, boolean coefficientListMode) throws ArithmeticException, ClassCastException { int ix = ExpVectorSymbolic.indexVar(exprPoly, getVars()); if (ix >= 0) { ExpVectorSymbolic e = new ExpVectorSymbolic(vars.argSize(), ix, F.... | /**
* Create a <code>Polynomial</code> from the given <code>exprPoly</code>.
*
* @param exprPoly the polynomial expression
* @param coefficient set to <code>true</code> if called by the <code>Coefficient()</code>
* function
* @param checkNegativeExponents if <code>true</code> don't allow negati... | Create a <code>Polynomial</code> from the given <code>exprPoly</code> | create | {
"repo_name": "axkr/symja_android_library",
"path": "symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/polynomials/symbolicexponent/SymbolicPolynomialRing.java",
"license": "gpl-3.0",
"size": 45623
} | [
"org.matheclipse.core.generic.Predicates",
"org.matheclipse.core.interfaces.IExpr",
"org.matheclipse.core.interfaces.ISymbol"
] | import org.matheclipse.core.generic.Predicates; import org.matheclipse.core.interfaces.IExpr; import org.matheclipse.core.interfaces.ISymbol; | import org.matheclipse.core.generic.*; import org.matheclipse.core.interfaces.*; | [
"org.matheclipse.core"
] | org.matheclipse.core; | 1,065,771 |
public static Object parse(String str)
throws Exception
{
if (str.length() == 0)
throw new Exception("Cannot parse empty strings");
Object[] parseSpaces = removeWhiteSpace(str, 0);
str = (String) parseSpaces[0];
char first = str.charAt(0);
Object result = null;
Boolean hasNull = fa... | static Object function(String str) throws Exception { if (str.length() == 0) throw new Exception(STR); Object[] parseSpaces = removeWhiteSpace(str, 0); str = (String) parseSpaces[0]; char first = str.charAt(0); Object result = null; Boolean hasNull = false; if ((first == '-') (Character.isDigit(first))) { result = pars... | /**
* parse
*
* Parse a JSON string and return an object that corresponds to the value
* described in that string. See README.md for further details.
*
* @param str
* , a String of JSON code
* @return the java Object represented by the inputted string
* @throws Exception
* @pre ... | parse Parse a JSON string and return an object that corresponds to the value described in that string. See README.md for further details | parse | {
"repo_name": "sivash/JSONProject",
"path": "src/edu/grinnell/csc207/JSONUtils.java",
"license": "gpl-2.0",
"size": 33557
} | [
"java.lang.Character"
] | import java.lang.Character; | import java.lang.*; | [
"java.lang"
] | java.lang; | 2,543,209 |
private static void init() {
if (service == null) {
// TODO: 2017-09-29 write in link here for universal setter / base class for logging
service = new RetrofitClient.Builder(FirebaseEndpoints.class, FIREBASE_BASE_URL)
.setCustomConverterFactory(new CustomConverter... | static void function() { if (service == null) { service = new RetrofitClient.Builder(FirebaseEndpoints.class, FIREBASE_BASE_URL) .setCustomConverterFactory(new CustomConverterFactory()) .setLogLevel(HttpLoggingInterceptor.Level.BODY) .setTimeouts(PGMacTipsConstants.ONE_MINUTE, PGMacTipsConstants.ONE_MINUTE) .build().bu... | /**
* Init function
*/ | Init function | init | {
"repo_name": "PGMacDesign/PGMacUtilities",
"path": "library/src/main/java/com/pgmacdesign/pgmactips/firebaseutilities/FirebaseMessagingUtilities.java",
"license": "apache-2.0",
"size": 10557
} | [
"com.pgmacdesign.pgmactips.misc.PGMacTipsConstants",
"com.pgmacdesign.pgmactips.networkclasses.retrofitutilities.CustomConverterFactory",
"com.pgmacdesign.pgmactips.networkclasses.retrofitutilities.RetrofitClient"
] | import com.pgmacdesign.pgmactips.misc.PGMacTipsConstants; import com.pgmacdesign.pgmactips.networkclasses.retrofitutilities.CustomConverterFactory; import com.pgmacdesign.pgmactips.networkclasses.retrofitutilities.RetrofitClient; | import com.pgmacdesign.pgmactips.misc.*; import com.pgmacdesign.pgmactips.networkclasses.retrofitutilities.*; | [
"com.pgmacdesign.pgmactips"
] | com.pgmacdesign.pgmactips; | 164,071 |
public SipProfileState getProfileState(SipProfile account) {
if (!created || account == null) {
return null;
}
if (account.id == SipProfile.INVALID_ID) {
return null;
}
SipProfileState accountInfo = new SipProfileState(account);
Cursor c = serv... | SipProfileState function(SipProfile account) { if (!created account == null) { return null; } if (account.id == SipProfile.INVALID_ID) { return null; } SipProfileState accountInfo = new SipProfileState(account); Cursor c = service.getContentResolver().query( ContentUris.withAppendedId(SipProfile.ACCOUNT_STATUS_ID_URI_B... | /**
* Get the dynamic state of the profile
*
* @param account the sip profile from database. Important field is id.
* @return the dynamic sip profile state
*/ | Get the dynamic state of the profile | getProfileState | {
"repo_name": "ccalleu/halo-halo",
"path": "CSipSimple/src/com/csipsimple/pjsip/PjSipService.java",
"license": "gpl-3.0",
"size": 94513
} | [
"android.content.ContentUris",
"android.database.Cursor",
"com.csipsimple.api.SipProfile",
"com.csipsimple.api.SipProfileState",
"com.csipsimple.utils.Log",
"java.util.ArrayList"
] | import android.content.ContentUris; import android.database.Cursor; import com.csipsimple.api.SipProfile; import com.csipsimple.api.SipProfileState; import com.csipsimple.utils.Log; import java.util.ArrayList; | import android.content.*; import android.database.*; import com.csipsimple.api.*; import com.csipsimple.utils.*; import java.util.*; | [
"android.content",
"android.database",
"com.csipsimple.api",
"com.csipsimple.utils",
"java.util"
] | android.content; android.database; com.csipsimple.api; com.csipsimple.utils; java.util; | 1,255,954 |
@Override
public boolean createDatabase(final String database)
throws PersistenceException {
if (GenericValidator.isBlankOrNull(database)) {
throw new IllegalArgumentException("database not specified");
}
final Timer timer = Metric
.newTimer("Docu... | boolean function(final String database) throws PersistenceException { if (GenericValidator.isBlankOrNull(database)) { throw new IllegalArgumentException(STR); } final Timer timer = Metric .newTimer(STR); try { File base = new File(dir, database); if (base.exists()) { return false; } else { return base.mkdirs(); } } fin... | /**
* This method creates a new database on the document database server.
*
* @param database
* - name of the database
* @return - true if created the database successfully
* @throws PersistenceException
* is thrown when error occurs while creating the database... | This method creates a new database on the document database server | createDatabase | {
"repo_name": "xingh/docusearch",
"path": "src/main/java/com/plexobject/docusearch/persistence/file/DocumentRepositoryImpl.java",
"license": "gpl-3.0",
"size": 16450
} | [
"com.plexobject.docusearch.metrics.Metric",
"com.plexobject.docusearch.metrics.Timer",
"com.plexobject.docusearch.persistence.PersistenceException",
"java.io.File",
"org.apache.commons.validator.GenericValidator"
] | import com.plexobject.docusearch.metrics.Metric; import com.plexobject.docusearch.metrics.Timer; import com.plexobject.docusearch.persistence.PersistenceException; import java.io.File; import org.apache.commons.validator.GenericValidator; | import com.plexobject.docusearch.metrics.*; import com.plexobject.docusearch.persistence.*; import java.io.*; import org.apache.commons.validator.*; | [
"com.plexobject.docusearch",
"java.io",
"org.apache.commons"
] | com.plexobject.docusearch; java.io; org.apache.commons; | 2,190,583 |
public static OtherName decode(ASN1Primitive primitive) throws IOException {
ASN1Primitive object = decodeTagged(primitive, GeneralNameType.OTHER_NAME_TAG);
ASN1Primitive[] sequence = decodeSequence(object, 2, 2);
String oid = decodePrimitive(sequence[0], ASN1ObjectIdentifier.class).getId();
byte[] nameBytes... | static OtherName function(ASN1Primitive primitive) throws IOException { ASN1Primitive object = decodeTagged(primitive, GeneralNameType.OTHER_NAME_TAG); ASN1Primitive[] sequence = decodeSequence(object, 2, 2); String oid = decodePrimitive(sequence[0], ASN1ObjectIdentifier.class).getId(); byte[] nameBytes = sequence[1].g... | /**
* Decode {@code OtherName} from an ASN.1 data object.
*
* @param primitive The ASN.1 data object to decode.
* @return The decoded other name object.
* @throws IOException if an I/O error occurs during decoding.
*/ | Decode OtherName from an ASN.1 data object | decode | {
"repo_name": "hdecarne/certmgr",
"path": "src/main/java/de/carne/certmgr/certs/x509/OtherName.java",
"license": "gpl-3.0",
"size": 2931
} | [
"java.io.IOException",
"org.bouncycastle.asn1.ASN1ObjectIdentifier",
"org.bouncycastle.asn1.ASN1Primitive"
] | import java.io.IOException; import org.bouncycastle.asn1.ASN1ObjectIdentifier; import org.bouncycastle.asn1.ASN1Primitive; | import java.io.*; import org.bouncycastle.asn1.*; | [
"java.io",
"org.bouncycastle.asn1"
] | java.io; org.bouncycastle.asn1; | 410,928 |
public Observable<ServiceResponse<AdvisorListResultInner>> listByDatabaseWithServiceResponseAsync(String resourceGroupName, String serverName, String databaseName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")... | Observable<ServiceResponse<AdvisorListResultInner>> function(String resourceGroupName, String serverName, String databaseName) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (serverName == null) { throw new IllegalArgumentException(STR); } if (databaseName == null) { throw new IllegalA... | /**
* Returns a list of database advisors.
*
* @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.
* @param serverName The name of the server.
* @param databaseName The name of the datab... | Returns a list of database advisors | listByDatabaseWithServiceResponseAsync | {
"repo_name": "navalev/azure-sdk-for-java",
"path": "sdk/sql/mgmt-v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/DatabaseAdvisorsInner.java",
"license": "mit",
"size": 23035
} | [
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.rest.ServiceResponse; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 2,104,455 |
protected void processPayloads(Collection<byte[]> payLoads, int start, int end) {
for (final byte[] thePayload : payLoads) {
payloadScore = function.currentScore(doc, fieldName, start, end,
payloadsSeen, payloadScore, similarity.scorePayload(doc, fieldName,
spans.start(), s... | void function(Collection<byte[]> payLoads, int start, int end) { for (final byte[] thePayload : payLoads) { payloadScore = function.currentScore(doc, fieldName, start, end, payloadsSeen, payloadScore, similarity.scorePayload(doc, fieldName, spans.start(), spans.end(), thePayload, 0, thePayload.length)); ++payloadsSeen;... | /**
* By default, uses the {@link PayloadFunction} to score the payloads, but
* can be overridden to do other things.
*
* @param payLoads The payloads
* @param start The start position of the span being scored
* @param end The end position of the span being scored
*
* @see Span... | By default, uses the <code>PayloadFunction</code> to score the payloads, but can be overridden to do other things | processPayloads | {
"repo_name": "fnp/pylucene",
"path": "lucene-java-3.5.0/lucene/src/java/org/apache/lucene/search/payloads/PayloadNearQuery.java",
"license": "apache-2.0",
"size": 8529
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 959,561 |
@Override
public int getSolidColor() {
return Color.BLACK;
}
| int function() { return Color.BLACK; } | /**
* Per SDK: <b><i> Override this if your view is known to always be drawn on
* top of a solid color background, and needs to draw fading edges. Returning
* a non-zero color enables t he view system to optimize the drawing of the
* fading edges. If you do return a non-zero color, the alpha should ... | top of a solid color background, and needs to draw fading edges. Returning a non-zero color enables t he view system to optimize the drawing of the fading edges. If you do return a non-zero color, the alpha should be set to 0xFF. | getSolidColor | {
"repo_name": "Belogron/a-mp-droid",
"path": "src/com/mediaportal/ampdroid/lists/Gallery3D.java",
"license": "gpl-2.0",
"size": 8974
} | [
"android.graphics.Color"
] | import android.graphics.Color; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 2,149,068 |
public void clearIEF() {
bufferImageGraphics.setColor(Color.BLACK);
bufferImageGraphics.clearRect(2, 2, gelCanvasRectangle.width - 3, 45);
bufferImageGraphics.fillRect(2, 2, gelCanvasRectangle.width - 3, 45); //trying to turn canvas black
bufferImageGraphics.setColor(Color.RED);
... | void function() { bufferImageGraphics.setColor(Color.BLACK); bufferImageGraphics.clearRect(2, 2, gelCanvasRectangle.width - 3, 45); bufferImageGraphics.fillRect(2, 2, gelCanvasRectangle.width - 3, 45); bufferImageGraphics.setColor(Color.RED); bufferImageGraphics.drawRect(2, 2, gelCanvasRectangle.width - 3, 45); graphic... | /**
* This method clears the IEF animation area.
*/ | This method clears the IEF animation area | clearIEF | {
"repo_name": "RITJBF/JBioFramework",
"path": "src/main/java/Electro2D/GelCanvas.java",
"license": "mit",
"size": 36384
} | [
"java.awt.Color"
] | import java.awt.Color; | import java.awt.*; | [
"java.awt"
] | java.awt; | 2,803,015 |
private Object forwardParse(final String text) throws ParseException {
try {
return parser.parseObject(text);
} catch (ParseException exception) {
int shift = 0;
int errorOffset = exception.getErrorOffset();
for (Replacement r = replacements; r != null... | Object function(final String text) throws ParseException { try { return parser.parseObject(text); } catch (ParseException exception) { int shift = 0; int errorOffset = exception.getErrorOffset(); for (Replacement r = replacements; r != null; r = r.next) { if (errorOffset < r.lower) { break; } if (errorOffset < r.upper)... | /**
* Parses a WKT. This method delegates the work to the {@link #parser}, but catch the exception
* in case of failure. The exception is rethrown with the {@linkplain
* ParseException#getErrorIndex error index} adjusted in order to point to the character in the
* original text (before substitutions... | Parses a WKT. This method delegates the work to the <code>#parser</code>, but catch the exception in case of failure. The exception is rethrown with the ParseException#getErrorIndex error index adjusted in order to point to the character in the original text (before substitutions) | forwardParse | {
"repo_name": "geotools/geotools",
"path": "modules/library/referencing/src/main/java/org/geotools/referencing/wkt/Preprocessor.java",
"license": "lgpl-2.1",
"size": 20635
} | [
"java.text.ParseException"
] | import java.text.ParseException; | import java.text.*; | [
"java.text"
] | java.text; | 2,356,790 |
public CompletableFuture<Boolean> canLookupAsync(TopicName topicName, String role,
AuthenticationDataSource authenticationData) {
CompletableFuture<Boolean> finalResult = new CompletableFuture<Boolean>();
canProduceAsync(topicName, role, authenticationData).whenComplete((produceAuthorize... | CompletableFuture<Boolean> function(TopicName topicName, String role, AuthenticationDataSource authenticationData) { CompletableFuture<Boolean> finalResult = new CompletableFuture<Boolean>(); canProduceAsync(topicName, role, authenticationData).whenComplete((produceAuthorized, ex) -> { if (ex == null) { if (produceAuth... | /**
* Check whether the specified role can perform a lookup for the specified topic.
*
* For that the caller needs to have producer or consumer permission.
*
* @param topicName
* @param role
* @return
* @throws Exception
*/ | Check whether the specified role can perform a lookup for the specified topic. For that the caller needs to have producer or consumer permission | canLookupAsync | {
"repo_name": "merlimat/pulsar",
"path": "pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/AuthorizationService.java",
"license": "apache-2.0",
"size": 12846
} | [
"java.util.concurrent.CompletableFuture",
"org.apache.pulsar.broker.authentication.AuthenticationDataSource",
"org.apache.pulsar.common.naming.TopicName"
] | import java.util.concurrent.CompletableFuture; import org.apache.pulsar.broker.authentication.AuthenticationDataSource; import org.apache.pulsar.common.naming.TopicName; | import java.util.concurrent.*; import org.apache.pulsar.broker.authentication.*; import org.apache.pulsar.common.naming.*; | [
"java.util",
"org.apache.pulsar"
] | java.util; org.apache.pulsar; | 146,214 |
// ===================================================================================
// Find DBMeta
// ===========
public static DBMeta findDBMeta(String tab... | static DBMeta function(String tableFlexibleName) { DBMeta dbmeta = byTableFlexibleName(tableFlexibleName); if (dbmeta == null) { String msg = STR + tableFlexibleName; throw new DBMetaNotFoundException(msg); } return dbmeta; } | /**
* Find DB meta by table flexible name. (accept quoted name and schema prefix)
* @param tableFlexibleName The flexible name of table. (NotNull)
* @return The instance of DB meta. (NotNull)
* @throws org.dbflute.exception.DBMetaNotFoundException When the DB meta is not found.
*/ | Find DB meta by table flexible name. (accept quoted name and schema prefix) | findDBMeta | {
"repo_name": "y-kajikuri/door",
"path": "src/main/java/org/door/dbflute/allcommon/DBMetaInstanceHandler.java",
"license": "apache-2.0",
"size": 13652
} | [
"org.dbflute.dbmeta.DBMeta",
"org.dbflute.exception.DBMetaNotFoundException"
] | import org.dbflute.dbmeta.DBMeta; import org.dbflute.exception.DBMetaNotFoundException; | import org.dbflute.dbmeta.*; import org.dbflute.exception.*; | [
"org.dbflute.dbmeta",
"org.dbflute.exception"
] | org.dbflute.dbmeta; org.dbflute.exception; | 128,811 |
public boolean addInvite(String username) {
if(this.blockedPlayers.contains(username))
return false;
MinecraftServer.getServer().getConfigurationManager().getPlayerByUsername(username).addChatComponentMessage(new ChatComponentText("You have been invited to " + this.textName + ". You can accept this invitat... | boolean function(String username) { if(this.blockedPlayers.contains(username)) return false; MinecraftServer.getServer().getConfigurationManager().getPlayerByUsername(username).addChatComponentMessage(new ChatComponentText(STR + this.textName + STR + this.saveName + STR)); if(this.isPublic) return true; if(this.invites... | /**
* Invites a player to the faction, returns false if they are blocked.
*/ | Invites a player to the faction, returns false if they are blocked | addInvite | {
"repo_name": "candyninja001/Factions",
"path": "src/main/java/candy/factions/faction/Faction.java",
"license": "lgpl-3.0",
"size": 10009
} | [
"net.minecraft.server.MinecraftServer",
"net.minecraft.util.ChatComponentText"
] | import net.minecraft.server.MinecraftServer; import net.minecraft.util.ChatComponentText; | import net.minecraft.server.*; import net.minecraft.util.*; | [
"net.minecraft.server",
"net.minecraft.util"
] | net.minecraft.server; net.minecraft.util; | 1,901,628 |
public static void essay2() throws Exception {
cartouche(2);
final Process process = new ProcessBuilder(WMIC_TEST_COMMAND_LINE).start();
if (process.waitFor() == 0) {
final File file = File.createTempFile(ProcessOutputEssay.class.getSimpleName() + "-", ".txt");
try (final InputStream in = process.... | static void function() throws Exception { cartouche(2); final Process process = new ProcessBuilder(WMIC_TEST_COMMAND_LINE).start(); if (process.waitFor() == 0) { final File file = File.createTempFile(ProcessOutputEssay.class.getSimpleName() + "-", ".txt"); try (final InputStream in = process.getInputStream(); final Out... | /**
* Execute the Windows command, transfer the resulting process output stream into a temporary file, and finally dump the content of the temporary file.
* @throws Exception in case of unexpected error
*/ | Execute the Windows command, transfer the resulting process output stream into a temporary file, and finally dump the content of the temporary file | essay2 | {
"repo_name": "ffays/interview",
"path": "src/main/java/eu/fays/sandbox/windows/ProcessOutputEssay.java",
"license": "gpl-3.0",
"size": 4347
} | [
"eu.fays.sandbox.text.HexDump",
"java.io.File",
"java.io.FileInputStream",
"java.io.FileOutputStream",
"java.io.InputStream",
"java.io.OutputStream"
] | import eu.fays.sandbox.text.HexDump; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; | import eu.fays.sandbox.text.*; import java.io.*; | [
"eu.fays.sandbox",
"java.io"
] | eu.fays.sandbox; java.io; | 1,607,548 |
void applyPolicy(String serviceName, String policy) throws ClusteringFault; | void applyPolicy(String serviceName, String policy) throws ClusteringFault; | /**
* Apply a policy to a service
*
* @param serviceName The name of the service to which this policy needs to be applied
* @param policy The serialized policy to be applied to the service
* @throws ClusteringFault If an error occurs while applying service policies
*/ | Apply a policy to a service | applyPolicy | {
"repo_name": "intalio/axis2",
"path": "modules/kernel/src/org/apache/axis2/clustering/configuration/ConfigurationManager.java",
"license": "apache-2.0",
"size": 5640
} | [
"org.apache.axis2.clustering.ClusteringFault"
] | import org.apache.axis2.clustering.ClusteringFault; | import org.apache.axis2.clustering.*; | [
"org.apache.axis2"
] | org.apache.axis2; | 1,881,614 |
public void streamFile( String downloadLink, JarProtocol fileProtocol ) throws IOException;//End Method | void function( String downloadLink, JarProtocol fileProtocol ) throws IOException; | /**
* Method to stream the item found at the given download link location.
* @param downloadLink the location to stream from.
* @param fileProtocol the {@link JarProtocol} for the {@link java.io.File} to stream to. This will
* be overwritten regardless of the state.
* @throws IOException if any exce... | Method to stream the item found at the given download link location | streamFile | {
"repo_name": "DanGrew/JUPA",
"path": "JsonUpgradingPersistenceArchitecture/src/uk/dangrew/jupa/update/stream/FileStreamer.java",
"license": "apache-2.0",
"size": 1337
} | [
"java.io.IOException",
"uk.dangrew.sd.logging.location.JarProtocol"
] | import java.io.IOException; import uk.dangrew.sd.logging.location.JarProtocol; | import java.io.*; import uk.dangrew.sd.logging.location.*; | [
"java.io",
"uk.dangrew.sd"
] | java.io; uk.dangrew.sd; | 1,978,741 |
private long findLatestTxIDInStore() throws IOException {
long txid = 0;
byte[] value = deletedStore.get(LATEST_TXID);
if (value != null) {
txid = Longs.fromByteArray(value);
}
return txid;
} | long function() throws IOException { long txid = 0; byte[] value = deletedStore.get(LATEST_TXID); if (value != null) { txid = Longs.fromByteArray(value); } return txid; } | /**
* There is no need to lock before reading because
* it's only used in construct method.
*
* @return latest txid.
* @throws IOException
*/ | There is no need to lock before reading because it's only used in construct method | findLatestTxIDInStore | {
"repo_name": "szegedim/hadoop",
"path": "hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogImpl.java",
"license": "apache-2.0",
"size": 11810
} | [
"com.google.common.primitives.Longs",
"java.io.IOException"
] | import com.google.common.primitives.Longs; import java.io.IOException; | import com.google.common.primitives.*; import java.io.*; | [
"com.google.common",
"java.io"
] | com.google.common; java.io; | 1,643,268 |
public void removeAllModified() {
Base.removeAll(this.model, this.getResource(), MODIFIED);
} | void function() { Base.removeAll(this.model, this.getResource(), MODIFIED); } | /**
* Removes all values of property DateModified * [Generated from RDFReactor
* template rule #removeall1dynamic]
*/ | Removes all values of property DateModified * [Generated from RDFReactor template rule #removeall1dynamic] | removeAllModified | {
"repo_name": "m0ep/master-thesis",
"path": "source/apis/rdf2go/rdf2go-sioc/src/main/java/org/rdfs/sioc/Thing.java",
"license": "mit",
"size": 317844
} | [
"org.ontoware.rdfreactor.runtime.Base"
] | import org.ontoware.rdfreactor.runtime.Base; | import org.ontoware.rdfreactor.runtime.*; | [
"org.ontoware.rdfreactor"
] | org.ontoware.rdfreactor; | 1,084,126 |
public synchronized final Map<K, V> snapshot() {
return new LinkedHashMap<K, V>(map);
} | synchronized final Map<K, V> function() { return new LinkedHashMap<K, V>(map); } | /**
* Returns a copy of the current contents of the cache, ordered from least
* recently accessed to most recently accessed.
*/ | Returns a copy of the current contents of the cache, ordered from least recently accessed to most recently accessed | snapshot | {
"repo_name": "couchbase/couchbase-lite-java-core",
"path": "vendor/sqlite/src/java/com/couchbase/lite/internal/database/util/LruCache.java",
"license": "apache-2.0",
"size": 12791
} | [
"java.util.LinkedHashMap",
"java.util.Map"
] | import java.util.LinkedHashMap; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 822,243 |
public void execStmtsAsUnit(Iterable<String> stmts) throws Exception {
try (Connection conn = connect()) {
Sql.execStmtsAsUnit(conn, stmts);
}
}
| void function(Iterable<String> stmts) throws Exception { try (Connection conn = connect()) { Sql.execStmtsAsUnit(conn, stmts); } } | /**
* Execute sql-statements as a unit, i.e. commit if all succeed, rollback on
* error
*/ | Execute sql-statements as a unit, i.e. commit if all succeed, rollback on error | execStmtsAsUnit | {
"repo_name": "phucnguyen81/jeran",
"path": "src/main/java/lou/jeran/db/Db.java",
"license": "mit",
"size": 2547
} | [
"java.sql.Connection"
] | import java.sql.Connection; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,404,148 |
protected synchronized Connection getConnection() throws IOException, TimeoutException {
if (this.conn == null || !this.conn.isOpen()) {
LOG.debug("The existing connection is closed or not opened yet.");
openConnection();
return this.conn;
} else {
ope... | synchronized Connection function() throws IOException, TimeoutException { if (this.conn == null !this.conn.isOpen()) { LOG.debug(STR); openConnection(); return this.conn; } else { openConnection(); return this.conn; } } | /**
* Returns the exiting open connection or opens a new one
*/ | Returns the exiting open connection or opens a new one | getConnection | {
"repo_name": "gnodet/camel",
"path": "components/camel-rabbitmq/src/main/java/org/apache/camel/component/rabbitmq/RabbitMQConsumer.java",
"license": "apache-2.0",
"size": 7777
} | [
"com.rabbitmq.client.Connection",
"java.io.IOException",
"java.util.concurrent.TimeoutException"
] | import com.rabbitmq.client.Connection; import java.io.IOException; import java.util.concurrent.TimeoutException; | import com.rabbitmq.client.*; import java.io.*; import java.util.concurrent.*; | [
"com.rabbitmq.client",
"java.io",
"java.util"
] | com.rabbitmq.client; java.io; java.util; | 2,615,740 |
public TransitionAlpha createTAlpha(String transitionId,
MediaItem afterMediaItem, MediaItem beforeMediaItem, long durationMs,
int behavior, String maskFilename, int blendingPercent, boolean invert) {
TransitionAlpha transA = null;
transA = new TransitionAlpha(transitionId, after... | TransitionAlpha function(String transitionId, MediaItem afterMediaItem, MediaItem beforeMediaItem, long durationMs, int behavior, String maskFilename, int blendingPercent, boolean invert) { TransitionAlpha transA = null; transA = new TransitionAlpha(transitionId, afterMediaItem, beforeMediaItem, durationMs, behavior, m... | /**
*This Method creates object of Type TranistionAlpha
*
* @return TranistionAlpha object
*/ | This Method creates object of Type TranistionAlpha | createTAlpha | {
"repo_name": "JSDemos/android-sdk-20",
"path": "src/com/android/mediaframeworktest/VideoEditorHelper.java",
"license": "apache-2.0",
"size": 18384
} | [
"android.media.videoeditor.MediaItem",
"android.media.videoeditor.TransitionAlpha"
] | import android.media.videoeditor.MediaItem; import android.media.videoeditor.TransitionAlpha; | import android.media.videoeditor.*; | [
"android.media"
] | android.media; | 506,125 |
public void start() throws HibernateException;
public void stop(); | void start() throws HibernateException; public void function(); | /**
* Unbind the <tt>SessionFactory</tt> or stub from JNDI
*/ | Unbind the SessionFactory or stub from JNDI | stop | {
"repo_name": "raedle/univis",
"path": "lib/hibernate-3.1.3/src/org/hibernate/jmx/HibernateServiceMBean.java",
"license": "lgpl-2.1",
"size": 8107
} | [
"org.hibernate.HibernateException"
] | import org.hibernate.HibernateException; | import org.hibernate.*; | [
"org.hibernate"
] | org.hibernate; | 1,600,510 |
public Conditions createConditions(DateTime notBefore, DateTime notAfter, String audienceURI) {
Conditions conditions = conditionsBuilder.buildObject();
conditions.setNotBefore(notBefore);
conditions.setNotOnOrAfter(notAfter);
// AudienceRestriction audienceRestriction = audienceRe... | Conditions function(DateTime notBefore, DateTime notAfter, String audienceURI) { Conditions conditions = conditionsBuilder.buildObject(); conditions.setNotBefore(notBefore); conditions.setNotOnOrAfter(notAfter); return conditions; } | /**
* Creates the conditions.
*
* @param notBefore the not before
* @param notAfter the not after
* @param audienceURI the audience uri
* @return the conditions
*/ | Creates the conditions | createConditions | {
"repo_name": "healthreveal/CONNECT",
"path": "Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/callback/openSAML/OpenSAML2ComponentBuilder.java",
"license": "bsd-3-clause",
"size": 32385
} | [
"org.joda.time.DateTime",
"org.opensaml.saml2.core.Conditions"
] | import org.joda.time.DateTime; import org.opensaml.saml2.core.Conditions; | import org.joda.time.*; import org.opensaml.saml2.core.*; | [
"org.joda.time",
"org.opensaml.saml2"
] | org.joda.time; org.opensaml.saml2; | 2,488,173 |
public boolean flush() throws DBException {
boolean flushed = false;
//TODO : record transaction as a valuable flush ?
if (isTransactional)
{logManager.flushToLog(true);}
if (!BrokerPool.FORCE_CORRUPTION) {
flushed = flushed | super.flush();
flushe... | boolean function() throws DBException { boolean flushed = false; if (isTransactional) {logManager.flushToLog(true);} if (!BrokerPool.FORCE_CORRUPTION) { flushed = flushed super.flush(); flushed = flushed dataCache.flush(); } return flushed; } | /**
* Flush all buffers to disk.
*
* @return Description of the Return Value
* @exception DBException Description of the Exception
*/ | Flush all buffers to disk | flush | {
"repo_name": "shabanovd/exist",
"path": "src/org/exist/storage/dom/DOMFile.java",
"license": "lgpl-2.1",
"size": 152253
} | [
"org.exist.storage.BrokerPool",
"org.exist.storage.btree.DBException"
] | import org.exist.storage.BrokerPool; import org.exist.storage.btree.DBException; | import org.exist.storage.*; import org.exist.storage.btree.*; | [
"org.exist.storage"
] | org.exist.storage; | 518,596 |
// Sort based on the timestamp which is the first long in the
// data/stream
long timestamp1 = ((long) (entry1[0] & TIME_MASK)) << 56
| ((long) (entry1[1] & TIME_MASK)) << 48
| ((long) (entry1[2] & TIME_MASK)) << 40
| ((long) (entry1[3] & TIME_MASK)) << 32
| ((long) (entry1[4] & TIME_MASK)... | long timestamp1 = ((long) (entry1[0] & TIME_MASK)) << 56 ((long) (entry1[1] & TIME_MASK)) << 48 ((long) (entry1[2] & TIME_MASK)) << 40 ((long) (entry1[3] & TIME_MASK)) << 32 ((long) (entry1[4] & TIME_MASK)) << 24 ((long) (entry1[5] & TIME_MASK)) << 16 ((long) (entry1[6] & TIME_MASK)) << 8 (long) (entry1[7] & TIME_MASK)... | /**
* The compare() implementation, descending based on the timestamp
*/ | The compare() implementation, descending based on the timestamp | compare | {
"repo_name": "yuuhhe/microlog",
"path": "net/sf/microlog/midp/DescendingComparator.java",
"license": "apache-2.0",
"size": 2136
} | [
"javax.microedition.rms.RecordComparator"
] | import javax.microedition.rms.RecordComparator; | import javax.microedition.rms.*; | [
"javax.microedition"
] | javax.microedition; | 65,215 |
private void checkIteratorHasNext() {
Iterator<Cache.Entry<Object, Object>> iter = jcache(0).iterator();
assertEquals(iter.hasNext(), iter.hasNext());
while (iter.hasNext())
iter.next();
assertFalse(iter.hasNext());
} | void function() { Iterator<Cache.Entry<Object, Object>> iter = jcache(0).iterator(); assertEquals(iter.hasNext(), iter.hasNext()); while (iter.hasNext()) iter.next(); assertFalse(iter.hasNext()); } | /**
* If hasNext() is called repeatedly, it should return the same result.
*/ | If hasNext() is called repeatedly, it should return the same result | checkIteratorHasNext | {
"repo_name": "nivanov/ignite",
"path": "modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheConfigVariationsFullApiTest.java",
"license": "apache-2.0",
"size": 198796
} | [
"java.util.Iterator",
"javax.cache.Cache"
] | import java.util.Iterator; import javax.cache.Cache; | import java.util.*; import javax.cache.*; | [
"java.util",
"javax.cache"
] | java.util; javax.cache; | 1,629,379 |
@Test
public void testSerializeValid() throws AuthenticationException {
final FileMockContext mockContext = new FileMockContext(InstrumentationRegistry.getContext());
final DefaultTokenCacheStore mockCache = new DefaultTokenCacheStore(mockContext);
addFRTCacheItem(mockCache);
fin... | void function() throws AuthenticationException { final FileMockContext mockContext = new FileMockContext(InstrumentationRegistry.getContext()); final DefaultTokenCacheStore mockCache = new DefaultTokenCacheStore(mockContext); addFRTCacheItem(mockCache); final AuthenticationContext context = getAuthenticationContext(moc... | /**
* Test the serialize() function where the cache store has the FoCI token
* for the user the function is expected to return the serialized string of
* the BlobContainer object which contain the FoCI token cache item for the
* user
*/ | Test the serialize() function where the cache store has the FoCI token for the user the function is expected to return the serialized string of the BlobContainer object which contain the FoCI token cache item for the user | testSerializeValid | {
"repo_name": "iambmelt/azure-activedirectory-library-for-android",
"path": "adal/src/androidTest/java/com/microsoft/aad/adal/AuthenticationContextTest.java",
"license": "apache-2.0",
"size": 147982
} | [
"android.support.test.InstrumentationRegistry",
"org.junit.Assert"
] | import android.support.test.InstrumentationRegistry; import org.junit.Assert; | import android.support.test.*; import org.junit.*; | [
"android.support",
"org.junit"
] | android.support; org.junit; | 462,130 |
public void addImage(View v)
{
//startActivityForResult(new Intent(this, GalleryActivity.class), 1);
Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType("image/*");
//intent.setAction(Intent.ACTION_GET_CONTENT);
//startActivityForResult(Intent.createChooser(intent, "Elegir Imagen", SELECT_PICTU... | void function(View v) { Intent intent = new Intent(Intent.ACTION_PICK); intent.setType(STR); startActivityForResult(intent, SELECT_PICTURE); } | /**
* Lanza un intent para buscar la imagen
* @param v component que activo el evento
*/ | Lanza un intent para buscar la imagen | addImage | {
"repo_name": "NickCis/7552-taller-prog-2-2015-C1",
"path": "client/src/whatsapp/client/ProfileConfigurationActivity.java",
"license": "gpl-3.0",
"size": 10476
} | [
"android.content.Intent",
"android.view.View"
] | import android.content.Intent; import android.view.View; | import android.content.*; import android.view.*; | [
"android.content",
"android.view"
] | android.content; android.view; | 2,030,368 |
public DeploymentInfoesClient getDeploymentInfoes() {
return this.deploymentInfoes;
}
private final TagRulesClient tagRules; | DeploymentInfoesClient function() { return this.deploymentInfoes; } private final TagRulesClient tagRules; | /**
* Gets the DeploymentInfoesClient object to access its operations.
*
* @return the DeploymentInfoesClient object.
*/ | Gets the DeploymentInfoesClient object to access its operations | getDeploymentInfoes | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/implementation/MicrosoftElasticImpl.java",
"license": "mit",
"size": 13680
} | [
"com.azure.resourcemanager.elastic.fluent.DeploymentInfoesClient",
"com.azure.resourcemanager.elastic.fluent.TagRulesClient"
] | import com.azure.resourcemanager.elastic.fluent.DeploymentInfoesClient; import com.azure.resourcemanager.elastic.fluent.TagRulesClient; | import com.azure.resourcemanager.elastic.fluent.*; | [
"com.azure.resourcemanager"
] | com.azure.resourcemanager; | 2,416,671 |
public void actionPerformed(ActionEvent evt) {
Object eventSource = evt.getSource();
if (eventSource == this) {
if (isArgument) {
changeArgumentToQualification(unqualifiedName, moduleName);
} else {
... | void function(ActionEvent evt) { Object eventSource = evt.getSource(); if (eventSource == this) { if (isArgument) { changeArgumentToQualification(unqualifiedName, moduleName); } else { changeAmbiguityToQualification(unqualifiedName, moduleName, type); } } } | /**
* Converts the identifier to the proper qualification
*
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/ | Converts the identifier to the proper qualification | actionPerformed | {
"repo_name": "levans/Open-Quark",
"path": "src/Quark_Gems/src/org/openquark/gems/client/CodeGemEditor.java",
"license": "bsd-3-clause",
"size": 145683
} | [
"java.awt.event.ActionEvent"
] | import java.awt.event.ActionEvent; | import java.awt.event.*; | [
"java.awt"
] | java.awt; | 410,742 |
final Map<String, String> result = new HashMap<String, String>(super.getContentFormat());
result.put("port", Integer.toString(port));
result.put("address", inetAddress.getHostAddress());
return result;
} | final Map<String, String> result = new HashMap<String, String>(super.getContentFormat()); result.put("port", Integer.toString(port)); result.put(STR, inetAddress.getHostAddress()); return result; } | /**
* Gets this AbstractSocketManager's content format. Specified by:
* <ul>
* <li>Key: "port" Value: provided "port" param</li>
* <li>Key: "address" Value: provided "address" param</li>
* </ul>
*
* @return Map of content format keys supporting AbstractSocketManager
*/ | Gets this AbstractSocketManager's content format. Specified by: Key: "port" Value: provided "port" param Key: "address" Value: provided "address" param | getContentFormat | {
"repo_name": "elitecodegroovy/log4j2",
"path": "log4j-core/src/main/java/org/apache/logging/log4j/core/net/AbstractSocketManager.java",
"license": "apache-2.0",
"size": 2736
} | [
"java.util.HashMap",
"java.util.Map"
] | import java.util.HashMap; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,782,049 |
public void refresh()
{
((DefaultTreeModel) tree.getModel()).reload();
} | void function() { ((DefaultTreeModel) tree.getModel()).reload(); } | /**
* Reloads the directory viewer
*/ | Reloads the directory viewer | refresh | {
"repo_name": "inversion/ciderspe",
"path": "src/cider/client/gui/DirectoryViewComponent.java",
"license": "gpl-3.0",
"size": 8810
} | [
"javax.swing.tree.DefaultTreeModel"
] | import javax.swing.tree.DefaultTreeModel; | import javax.swing.tree.*; | [
"javax.swing"
] | javax.swing; | 704,178 |
@Nonnull
public ReportRootGetMailboxUsageMailboxCountsRequest expand(@Nonnull final String value) {
addExpandOption(value);
return this;
} | ReportRootGetMailboxUsageMailboxCountsRequest function(@Nonnull final String value) { addExpandOption(value); return this; } | /**
* Sets the expand clause for the request
*
* @param value the expand clause
* @return the updated request
*/ | Sets the expand clause for the request | expand | {
"repo_name": "microsoftgraph/msgraph-sdk-java",
"path": "src/main/java/com/microsoft/graph/requests/ReportRootGetMailboxUsageMailboxCountsRequest.java",
"license": "mit",
"size": 2884
} | [
"com.microsoft.graph.requests.ReportRootGetMailboxUsageMailboxCountsRequest",
"javax.annotation.Nonnull"
] | import com.microsoft.graph.requests.ReportRootGetMailboxUsageMailboxCountsRequest; import javax.annotation.Nonnull; | import com.microsoft.graph.requests.*; import javax.annotation.*; | [
"com.microsoft.graph",
"javax.annotation"
] | com.microsoft.graph; javax.annotation; | 342,524 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.