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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
public void setAssociatedTheme(String associatedTheme) {
this.associatedTheme = StringUtils.isBlank(associatedTheme) ? null : associatedTheme;
} | void function(String associatedTheme) { this.associatedTheme = StringUtils.isBlank(associatedTheme) ? null : associatedTheme; } | /**
* Sets the {@link #associatedTheme} to the given theme, or to null if the given theme is empty or blank
*
* @param associatedTheme the associatedTheme to set
*/ | Sets the <code>#associatedTheme</code> to the given theme, or to null if the given theme is empty or blank | setAssociatedTheme | {
"repo_name": "intranda/goobi-viewer-core",
"path": "goobi-viewer-core/src/main/java/io/goobi/viewer/model/cms/CMSNavigationItem.java",
"license": "gpl-2.0",
"size": 21918
} | [
"org.apache.commons.lang3.StringUtils"
] | import org.apache.commons.lang3.StringUtils; | import org.apache.commons.lang3.*; | [
"org.apache.commons"
] | org.apache.commons; | 317,152 |
void updateNotification() {
// Notifications should be hidden if the app is open.
if (mNotificationModel.isApplicationInForeground()) {
mNotificationManager.cancel(mNotificationModel.getUnexpiredTimerNotificationId());
return;
}
// Filter the timers to just i... | void updateNotification() { if (mNotificationModel.isApplicationInForeground()) { mNotificationManager.cancel(mNotificationModel.getUnexpiredTimerNotificationId()); return; } final List<Timer> unexpired = new ArrayList<>(); for (Timer timer : getMutableTimers()) { if (timer.isRunning() timer.isPaused()) { unexpired.add... | /**
* Updates the notification controlling unexpired timers. This notification is only displayed
* when the application is not open.
*/ | Updates the notification controlling unexpired timers. This notification is only displayed when the application is not open | updateNotification | {
"repo_name": "OrBin/SynClock-Android",
"path": "src/orbin/deskclock/data/TimerModel.java",
"license": "apache-2.0",
"size": 26562
} | [
"android.app.Notification",
"java.util.ArrayList",
"java.util.Collections",
"java.util.List"
] | import android.app.Notification; import java.util.ArrayList; import java.util.Collections; import java.util.List; | import android.app.*; import java.util.*; | [
"android.app",
"java.util"
] | android.app; java.util; | 107,977 |
@Deprecated
// TODO Remove in Smack 4.3
public static void setReplyToUnknownIqDefault(boolean replyToUnkownIqDefault) {
SmackConfiguration.UnknownIqRequestReplyMode mode;
if (replyToUnkownIqDefault) {
mode = SmackConfiguration.UnknownIqRequestReplyMode.replyServiceUnavailable;
... | static void function(boolean replyToUnkownIqDefault) { SmackConfiguration.UnknownIqRequestReplyMode mode; if (replyToUnkownIqDefault) { mode = SmackConfiguration.UnknownIqRequestReplyMode.replyServiceUnavailable; } else { mode = SmackConfiguration.UnknownIqRequestReplyMode.doNotReply; } SmackConfiguration.setUnknownIqR... | /**
* Set the default value used to determine if new connection will reply to unknown IQ requests. The pre-configured
* default is 'true'.
*
* @param replyToUnkownIqDefault
* @see #setReplyToUnknownIq(boolean)
* @deprecated Use {@link SmackConfiguration#setUnknownIqRequestReplyMode(org.jiv... | Set the default value used to determine if new connection will reply to unknown IQ requests. The pre-configured default is 'true' | setReplyToUnknownIqDefault | {
"repo_name": "vanitasvitae/smack-omemo",
"path": "smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java",
"license": "apache-2.0",
"size": 70738
} | [
"org.jivesoftware.smack.SmackConfiguration"
] | import org.jivesoftware.smack.SmackConfiguration; | import org.jivesoftware.smack.*; | [
"org.jivesoftware.smack"
] | org.jivesoftware.smack; | 1,379,520 |
public void testAddMixinTwice() throws RepositoryException, NotExecutableException {
Session session = testRootNode.getSession();
Node node = testRootNode.addNode(nodeName1, testNodeType);
String mixinName = NodeMixinUtil.getAddableMixinName(session, node);
if (mixinName == null) {
... | void function() throws RepositoryException, NotExecutableException { Session session = testRootNode.getSession(); Node node = testRootNode.addNode(nodeName1, testNodeType); String mixinName = NodeMixinUtil.getAddableMixinName(session, node); if (mixinName == null) { throw new NotExecutableException(STR); } assertTrue(n... | /**
* Test if adding the same mixin twice would be allowed.
*
* @throws RepositoryException
* @throws NotExecutableException
* @since JCR 2.0
*/ | Test if adding the same mixin twice would be allowed | testAddMixinTwice | {
"repo_name": "sdmcraft/jackrabbit",
"path": "jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeCanAddMixinTest.java",
"license": "apache-2.0",
"size": 6809
} | [
"javax.jcr.Node",
"javax.jcr.RepositoryException",
"javax.jcr.Session",
"org.apache.jackrabbit.test.NotExecutableException"
] | import javax.jcr.Node; import javax.jcr.RepositoryException; import javax.jcr.Session; import org.apache.jackrabbit.test.NotExecutableException; | import javax.jcr.*; import org.apache.jackrabbit.test.*; | [
"javax.jcr",
"org.apache.jackrabbit"
] | javax.jcr; org.apache.jackrabbit; | 68,793 |
@Override
public int hashCode() {
return Objects.hashCode(first, second);
} | int function() { return Objects.hashCode(first, second); } | /**
* Returns a hash code value for this object.
* @return hash code value of this object.
*/ | Returns a hash code value for this object | hashCode | {
"repo_name": "caskdata/coopr",
"path": "coopr-server/src/main/java/co/cask/coopr/common/utils/ImmutablePair.java",
"license": "apache-2.0",
"size": 3235
} | [
"com.google.common.base.Objects"
] | import com.google.common.base.Objects; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 1,607,911 |
@ManyToOne( cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY )
@org.hibernate.annotations.Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE})
@Basic( optional = true )
@JoinColumn(name = "enrollmentid", nullable = true )
public Enrollment getEnrollmentid() {
return this.en... | @ManyToOne( cascade = { CascadeType.PERSIST, CascadeType.MERGE }, fetch = FetchType.LAZY ) @org.hibernate.annotations.Cascade({org.hibernate.annotations.CascadeType.SAVE_UPDATE}) @Basic( optional = true ) @JoinColumn(name = STR, nullable = true ) Enrollment function() { return this.enrollmentid; } | /**
* Return the value associated with the column: enrollmentid.
* @return A Enrollment object (this.enrollmentid)
*/ | Return the value associated with the column: enrollmentid | getEnrollmentid | {
"repo_name": "servinglynk/servinglynk-hmis",
"path": "hmis-model-v2014/src/main/java/com/servinglynk/hmis/warehouse/model/v2014/Employment.java",
"license": "mpl-2.0",
"size": 11594
} | [
"javax.persistence.Basic",
"javax.persistence.CascadeType",
"javax.persistence.FetchType",
"javax.persistence.JoinColumn",
"javax.persistence.ManyToOne"
] | import javax.persistence.Basic; import javax.persistence.CascadeType; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; | import javax.persistence.*; | [
"javax.persistence"
] | javax.persistence; | 2,635,759 |
View getActiveView(int position) {
int index = position - mFirstActivePosition;
final View[] activeViews = mActiveViews;
if (index >=0 && index < activeViews.length) {
final View match = activeViews[index];
activeViews[index] = null;
return match;
}
return null;
} | View getActiveView(int position) { int index = position - mFirstActivePosition; final View[] activeViews = mActiveViews; if (index >=0 && index < activeViews.length) { final View match = activeViews[index]; activeViews[index] = null; return match; } return null; } | /**
* Get the view corresponding to the specified position. The view will be removed from
* mActiveViews if it is found.
*
* @param position The position to look up in mActiveViews
* @return The view if it is found, null otherwise
*/ | Get the view corresponding to the specified position. The view will be removed from mActiveViews if it is found | getActiveView | {
"repo_name": "ogunwale/yaps",
"path": "yaps/src/com/jess/ui/TwoWayAbsListView.java",
"license": "mit",
"size": 162391
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 1,683,720 |
@Override
public ReadableByteChannel getChannel() throws IOException {
if (canEncode()) {
return NioUtils.getChannel(this);
} else {
return getWrappedRepresentation().getChannel();
}
} | ReadableByteChannel function() throws IOException { if (canEncode()) { return NioUtils.getChannel(this); } else { return getWrappedRepresentation().getChannel(); } } | /**
* Returns a readable byte channel. If it is supported by a file a read-only
* instance of FileChannel is returned.
*
* @return A readable byte channel.
*/ | Returns a readable byte channel. If it is supported by a file a read-only instance of FileChannel is returned | getChannel | {
"repo_name": "zhangjunfang/eclipse-dir",
"path": "restlet/src/org/restlet/engine/application/EncodeRepresentation.java",
"license": "bsd-2-clause",
"size": 10782
} | [
"java.io.IOException",
"java.nio.channels.ReadableByteChannel",
"org.restlet.engine.io.NioUtils"
] | import java.io.IOException; import java.nio.channels.ReadableByteChannel; import org.restlet.engine.io.NioUtils; | import java.io.*; import java.nio.channels.*; import org.restlet.engine.io.*; | [
"java.io",
"java.nio",
"org.restlet.engine"
] | java.io; java.nio; org.restlet.engine; | 426,809 |
public boolean register(Object objectToRegister, String name, String context) {
if (registry != null) {
Object args[] = new Object[]{objectToRegister, name, context};
try {
registerComponent.invoke(registry, args);
if (log.isDeb... | boolean function(Object objectToRegister, String name, String context) { if (registry != null) { Object args[] = new Object[]{objectToRegister, name, context}; try { registerComponent.invoke(registry, args); if (log.isDebugEnabled()) { log.debug(STR + name + STR + context); } } catch (IllegalAccessException e) { log.er... | /**
* register using reflection. The perf hit is moot as jmx is
* all reflection anyway
*
* @param objectToRegister
* @param name
* @param context
*/ | register using reflection. The perf hit is moot as jmx is all reflection anyway | register | {
"repo_name": "hugosato/apache-axis",
"path": "src/org/apache/axis/management/Registrar.java",
"license": "apache-2.0",
"size": 6272
} | [
"java.lang.reflect.InvocationTargetException"
] | import java.lang.reflect.InvocationTargetException; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 1,293,720 |
@FIXVersion(introduced="4.3")
@TagNumRef(tagNum=TagNum.Price)
public Double getPrice() {
return price;
} | @FIXVersion(introduced="4.3") @TagNumRef(tagNum=TagNum.Price) Double function() { return price; } | /**
* Message field getter.
* @return field value
*/ | Message field getter | getPrice | {
"repo_name": "marvisan/HadesFIX",
"path": "Model/src/main/java/net/hades/fix/message/group/QuoteRequestRejectGroup.java",
"license": "gpl-3.0",
"size": 50378
} | [
"net.hades.fix.message.anno.FIXVersion",
"net.hades.fix.message.anno.TagNumRef",
"net.hades.fix.message.type.TagNum"
] | import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum; | import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*; | [
"net.hades.fix"
] | net.hades.fix; | 1,896,713 |
public AbstractObjectReader getReaderForFile(File file) {
return readerForFile(file);
} | AbstractObjectReader function(File file) { return readerForFile(file); } | /**
* Returns the reader for the specified file.
*
* @param file the file to determine a reader for
* @return the reader, null if none found
*/ | Returns the reader for the specified file | getReaderForFile | {
"repo_name": "waikato-datamining/adams-base",
"path": "adams-core/src/main/java/adams/gui/chooser/SerializationFileChooser.java",
"license": "gpl-3.0",
"size": 9704
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 640,805 |
private static Object[] sortAndFilter(Object[] data, Comparator<?> keyComparator) {
checkArgument(
data.length % 2 == 0, "You must provide an even number of key/value pair arguments.");
if (data.length == 0) {
return data;
}
mergeSort(data, keyComparator);
return dedupe(data, keyCo... | static Object[] function(Object[] data, Comparator<?> keyComparator) { checkArgument( data.length % 2 == 0, STR); if (data.length == 0) { return data; } mergeSort(data, keyComparator); return dedupe(data, keyComparator); } | /**
* Sorts and dedupes the key/value pairs in {@code data}. {@code null} values will be removed.
* Keys will be compared with the given {@link Comparator}.
*/ | Sorts and dedupes the key/value pairs in data. null values will be removed. Keys will be compared with the given <code>Comparator</code> | sortAndFilter | {
"repo_name": "open-telemetry/opentelemetry-java",
"path": "api/all/src/main/java/io/opentelemetry/api/internal/ImmutableKeyValuePairs.java",
"license": "apache-2.0",
"size": 8609
} | [
"io.opentelemetry.api.internal.Utils",
"java.util.Comparator"
] | import io.opentelemetry.api.internal.Utils; import java.util.Comparator; | import io.opentelemetry.api.internal.*; import java.util.*; | [
"io.opentelemetry.api",
"java.util"
] | io.opentelemetry.api; java.util; | 24,202 |
public final synchronized void removePets() {
for (Entity entity : pets)
entity.remove();
pets.clear();
} | final synchronized void function() { for (Entity entity : pets) entity.remove(); pets.clear(); } | /**
* Removes all pets from an object.
*/ | Removes all pets from an object | removePets | {
"repo_name": "DarthPixel/GameEngine",
"path": "src/de/slikey/game/player/PlayerClass.java",
"license": "mit",
"size": 4814
} | [
"org.bukkit.entity.Entity"
] | import org.bukkit.entity.Entity; | import org.bukkit.entity.*; | [
"org.bukkit.entity"
] | org.bukkit.entity; | 2,826,472 |
public PhylogeneticTreeItem subTree(
final Set<Sequence> visibleSequences) {
// copy the node
PhylogeneticTreeItem result = new PhylogeneticTreeItem();
result.setDistance(distance);
if (visibleSequences.contains(sequence)) {
result.setName(name);
} els... | PhylogeneticTreeItem function( final Set<Sequence> visibleSequences) { PhylogeneticTreeItem result = new PhylogeneticTreeItem(); result.setDistance(distance); if (visibleSequences.contains(sequence)) { result.setName(name); } else if (children.isEmpty()) { return null; } for (PhylogeneticTreeItem child : children) { if... | /**
* Creates a new tree that only contains the visible nodes. When a node has
* only one child, it is removed from the tree and its child is returned
* instead. When a node has no children, and is not visible, null is
* returned.
*
* @param visibleSequences
* the sequences... | Creates a new tree that only contains the visible nodes. When a node has only one child, it is removed from the tree and its child is returned instead. When a node has no children, and is not visible, null is returned | subTree | {
"repo_name": "jorenham/LifeTiles",
"path": "lifetiles-tree/src/main/java/nl/tudelft/lifetiles/tree/model/PhylogeneticTreeItem.java",
"license": "bsd-3-clause",
"size": 10138
} | [
"java.util.Set",
"nl.tudelft.lifetiles.core.util.SetUtils",
"nl.tudelft.lifetiles.sequence.model.Sequence"
] | import java.util.Set; import nl.tudelft.lifetiles.core.util.SetUtils; import nl.tudelft.lifetiles.sequence.model.Sequence; | import java.util.*; import nl.tudelft.lifetiles.core.util.*; import nl.tudelft.lifetiles.sequence.model.*; | [
"java.util",
"nl.tudelft.lifetiles"
] | java.util; nl.tudelft.lifetiles; | 1,248,760 |
@Test
public void testServerInVMInvocationOnLocalViewOfSLSB() throws Exception {
final Context jndiContext = new InitialContext();
final LocalEcho localEcho = (LocalEcho) jndiContext.lookup("ejb:" + APP_NAME + "/" + MODULE_NAME + "/" + DISTINCT_NAME + "/" + StatelessEcho.class.getSimpleName() + ... | void function() throws Exception { final Context jndiContext = new InitialContext(); final LocalEcho localEcho = (LocalEcho) jndiContext.lookup("ejb:" + APP_NAME + "/" + MODULE_NAME + "/" + DISTINCT_NAME + "/" + StatelessEcho.class.getSimpleName() + "!" + LocalEcho.class.getName()); final String message = STR; try { fi... | /**
* Test that an in-vm invocation on a local business interface, of a SLSB, using the ejb: namespace fails, since only
* remote view invocations are allowed for ejb: namespace
*
* @throws Exception
*/ | Test that an in-vm invocation on a local business interface, of a SLSB, using the ejb: namespace fails, since only remote view invocations are allowed for ejb: namespace | testServerInVMInvocationOnLocalViewOfSLSB | {
"repo_name": "xasx/wildfly",
"path": "testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/remote/view/LocalViewRemoteInvocationTestCase.java",
"license": "lgpl-2.1",
"size": 8338
} | [
"javax.naming.Context",
"javax.naming.InitialContext",
"org.junit.Assert"
] | import javax.naming.Context; import javax.naming.InitialContext; import org.junit.Assert; | import javax.naming.*; import org.junit.*; | [
"javax.naming",
"org.junit"
] | javax.naming; org.junit; | 2,595,521 |
@Test
public void testSkipExecutionProject() throws Exception {
final File projectCopy = this.resources
.getBasedir("skip-execution-project");
final File pom = new File(projectCopy, "pom.xml");
assumeNotNull("POM file should not be null.", pom);
assumeTrue("POM file should exist as file.",
pom.exist... | void function() throws Exception { final File projectCopy = this.resources .getBasedir(STR); final File pom = new File(projectCopy, STR); assumeNotNull(STR, pom); assumeTrue(STR, pom.exists() && pom.isFile()); final UpdateStylesheetsMojo myMojo = (UpdateStylesheetsMojo) this.rule .lookupConfiguredMojo(projectCopy, STR)... | /**
* Test method for
* {@link nl.geodienstencentrum.maven.plugin.sass.compiler.UpdateStylesheetsMojo#execute() },
* test the skip config parameter.
*
* @throws Exception if any
* @see
* nl.geodienstencentrum.maven.plugin.sass.compiler.UpdateStylesheetsMojo#execute()
*/ | Test method for <code>nl.geodienstencentrum.maven.plugin.sass.compiler.UpdateStylesheetsMojo#execute() </code>, test the skip config parameter | testSkipExecutionProject | {
"repo_name": "GeoDienstenCentrum/sass-maven-plugin",
"path": "src/test/java/nl/geodienstencentrum/maven/plugin/sass/compiler/UpdateStylesheetsMojoTest.java",
"license": "apache-2.0",
"size": 9004
} | [
"java.io.File",
"org.junit.Assert",
"org.junit.Assume"
] | import java.io.File; import org.junit.Assert; import org.junit.Assume; | import java.io.*; import org.junit.*; | [
"java.io",
"org.junit"
] | java.io; org.junit; | 1,564,142 |
@Override
public void doSave(IProgressMonitor progressMonitor)
{
// Save only resources that have actually changed.
//
final Map<Object, Object> saveOptions = new HashMap<Object, Object>();
// saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER)... | void function(IProgressMonitor progressMonitor) { saveOptions.put(Resource.OPTION_LINE_DELIMITER, Resource.OPTION_LINE_DELIMITER_UNSPECIFIED); | /**
* This is for implementing {@link IEditorPart} and simply saves the model file.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/ | This is for implementing <code>IEditorPart</code> and simply saves the model file. | doSave | {
"repo_name": "peterkir/org.eclipse.oomph",
"path": "plugins/org.eclipse.oomph.projectconfig.editor/src/org/eclipse/oomph/projectconfig/presentation/ProjectConfigEditor.java",
"license": "epl-1.0",
"size": 63263
} | [
"org.eclipse.core.runtime.IProgressMonitor",
"org.eclipse.emf.ecore.resource.Resource"
] | import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.ecore.resource.Resource; | import org.eclipse.core.runtime.*; import org.eclipse.emf.ecore.resource.*; | [
"org.eclipse.core",
"org.eclipse.emf"
] | org.eclipse.core; org.eclipse.emf; | 900,153 |
public Update addDouble(Enum<?> field, double d) throws Exception {
if (!field.getClass().equals(clazz)) {
throw new Exception("UpdateMap.addDouble(): Class missmatch!");
}
Update u = new Update(Type.DOUBLE, new Double(d));
map.put(field, u);
return u;
} | Update function(Enum<?> field, double d) throws Exception { if (!field.getClass().equals(clazz)) { throw new Exception(STR); } Update u = new Update(Type.DOUBLE, new Double(d)); map.put(field, u); return u; } | /**
* Adds a {@code double} update.
*
* @param field
* field name
* @param d
* double update value
* @return {@code Update} object
* @throws Exception
*/ | Adds a double update | addDouble | {
"repo_name": "pezi/treedb-cmdb",
"path": "src/main/java/at/treedb/at/treedb/db/UpdateMap.java",
"license": "lgpl-2.1",
"size": 13982
} | [
"at.treedb.db.Update"
] | import at.treedb.db.Update; | import at.treedb.db.*; | [
"at.treedb.db"
] | at.treedb.db; | 1,608,955 |
public List<ConfigurationMetadataProperty> getOptions() {
return options;
} | List<ConfigurationMetadataProperty> function() { return options; } | /**
* Return a list of application options.
*
* @return list of application options
*/ | Return a list of application options | getOptions | {
"repo_name": "markpollack/spring-cloud-dataflow",
"path": "spring-cloud-dataflow-rest-resource/src/main/java/org/springframework/cloud/dataflow/rest/resource/DetailedAppRegistrationResource.java",
"license": "apache-2.0",
"size": 4503
} | [
"java.util.List",
"org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty"
] | import java.util.List; import org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty; | import java.util.*; import org.springframework.boot.configurationmetadata.*; | [
"java.util",
"org.springframework.boot"
] | java.util; org.springframework.boot; | 2,379,937 |
protected ImageIcon getIcon(final PlayerID player) {
ImageIcon icon = m_mapPlayerImage.get(player);
if (icon == null && m_uiContext != null) {
final Image img = m_uiContext.getFlagImageFactory().getSmallFlag(player);
icon = new ImageIcon(img);
icon.setDescription(player.getName());
m_m... | ImageIcon function(final PlayerID player) { ImageIcon icon = m_mapPlayerImage.get(player); if (icon == null && m_uiContext != null) { final Image img = m_uiContext.getFlagImageFactory().getSmallFlag(player); icon = new ImageIcon(img); icon.setDescription(player.getName()); m_mapPlayerImage.put(player, icon); } return i... | /**
* Gets the small flag for a given PlayerID
*
* @param player
* the player to get the flag for
* @return ImageIcon small flag
*/ | Gets the small flag for a given PlayerID | getIcon | {
"repo_name": "simon33-2/triplea",
"path": "src/games/strategy/triplea/ui/StatPanel.java",
"license": "gpl-2.0",
"size": 18013
} | [
"games.strategy.engine.data.PlayerID",
"java.awt.Image",
"javax.swing.ImageIcon"
] | import games.strategy.engine.data.PlayerID; import java.awt.Image; import javax.swing.ImageIcon; | import games.strategy.engine.data.*; import java.awt.*; import javax.swing.*; | [
"games.strategy.engine",
"java.awt",
"javax.swing"
] | games.strategy.engine; java.awt; javax.swing; | 1,376,654 |
public long countUsers(CmsRequestContext requestContext, CmsUserSearchParameters searchParams) throws CmsException {
CmsDbContext dbc = m_dbContextFactory.getDbContext(requestContext);
try {
return m_driverManager.countUsers(dbc, searchParams);
} catch (Exception e) {
... | long function(CmsRequestContext requestContext, CmsUserSearchParameters searchParams) throws CmsException { CmsDbContext dbc = m_dbContextFactory.getDbContext(requestContext); try { return m_driverManager.countUsers(dbc, searchParams); } catch (Exception e) { dbc.report(null, Messages.get().container(Messages.ERR_COUNT... | /**
* Counts the total number of users which match the given search criteria.<p>
*
* @param requestContext the request context
* @param searchParams the search criteria object
*
* @return the number of users which match the search criteria
* @throws CmsException if something goes wron... | Counts the total number of users which match the given search criteria | countUsers | {
"repo_name": "sbonoc/opencms-core",
"path": "src/org/opencms/db/CmsSecurityManager.java",
"license": "lgpl-2.1",
"size": 287876
} | [
"org.opencms.file.CmsRequestContext",
"org.opencms.file.CmsUserSearchParameters",
"org.opencms.main.CmsException"
] | import org.opencms.file.CmsRequestContext; import org.opencms.file.CmsUserSearchParameters; import org.opencms.main.CmsException; | import org.opencms.file.*; import org.opencms.main.*; | [
"org.opencms.file",
"org.opencms.main"
] | org.opencms.file; org.opencms.main; | 2,580,030 |
@Override
public Object createObject(@NotNull final Attributes attributes)
throws Exception
{
final @Nullable String t_strLocal = attributes.getValue("local");
return new RefElement(t_strLocal);
} | Object function(@NotNull final Attributes attributes) throws Exception { final @Nullable String t_strLocal = attributes.getValue("local"); return new RefElement(t_strLocal); } | /**
* <p>Factory method called by {@link org.apache.commons.digester.FactoryCreateRule} to supply an
* object based on the element's attributes.
*
* @param attributes the element's attributes
* @throws Exception any exception thrown will be propagated upwards
*/ | Factory method called by <code>org.apache.commons.digester.FactoryCreateRule</code> to supply an object based on the element's attributes | createObject | {
"repo_name": "rydnr/queryj-rt",
"path": "queryj-templates-deprecated/src/test/java/cucumber/templates/xml/RefElementFactory.java",
"license": "gpl-2.0",
"size": 3151
} | [
"org.jetbrains.annotations.NotNull",
"org.jetbrains.annotations.Nullable",
"org.xml.sax.Attributes"
] | import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.xml.sax.Attributes; | import org.jetbrains.annotations.*; import org.xml.sax.*; | [
"org.jetbrains.annotations",
"org.xml.sax"
] | org.jetbrains.annotations; org.xml.sax; | 2,467,077 |
public HashMap<String, String> getAttributes() {
return attributes;
}
| HashMap<String, String> function() { return attributes; } | /**
* Gets the attributes.
*
* @return the attributes
*/ | Gets the attributes | getAttributes | {
"repo_name": "uol-cs-multiot/em4so-java",
"path": "core/src/main/java/org/mp/em4so/model/common/Element.java",
"license": "apache-2.0",
"size": 5497
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 996,723 |
log.debug("Storing message {} to session {}", messageID, session.getSessionIdentifier());
final Hashtable<String, XMLObject> messages = getMessages();
messages.put(messageID, message);
updateSession(messages);
}
| log.debug(STR, messageID, session.getSessionIdentifier()); final Hashtable<String, XMLObject> messages = getMessages(); messages.put(messageID, message); updateSession(messages); } | /**
* Stores a request message into the repository. RequestAbstractType must have an ID
* set. Any previous message with the same ID will be overwritten.
*
* @param messageID ID of message
* @param message message to be stored
*/ | Stores a request message into the repository. RequestAbstractType must have an ID set. Any previous message with the same ID will be overwritten | storeMessage | {
"repo_name": "izerui/pac4j",
"path": "pac4j-saml/src/main/java/org/pac4j/saml/storage/HttpSessionStorage.java",
"license": "apache-2.0",
"size": 6285
} | [
"java.util.Hashtable",
"org.opensaml.core.xml.XMLObject"
] | import java.util.Hashtable; import org.opensaml.core.xml.XMLObject; | import java.util.*; import org.opensaml.core.xml.*; | [
"java.util",
"org.opensaml.core"
] | java.util; org.opensaml.core; | 904,755 |
protected Buffer receive(byte[] bytes, int maxChunkSize) throws IOException {
writeChunked(received, bytes, maxChunkSize).readAll(process);
return process;
} | Buffer function(byte[] bytes, int maxChunkSize) throws IOException { writeChunked(received, bytes, maxChunkSize).readAll(process); return process; } | /**
* Fills up the receive buffer, hands off to process buffer and returns it for consuming.
* Expects receive and process buffers to be empty. Leaves the receive buffer empty and
* process buffer full.
*/ | Fills up the receive buffer, hands off to process buffer and returns it for consuming. Expects receive and process buffers to be empty. Leaves the receive buffer empty and process buffer full | receive | {
"repo_name": "square/okio",
"path": "okio/jvm/jmh/src/jmh/java/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.java",
"license": "apache-2.0",
"size": 10083
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 354,349 |
@Test
public void bootstrapNodeUpdateTest() {
LOG.info("BootstrapNodeUpdateTest started");
DynamicLoadManager dm = getDynamicLoadManager();
ConnectionInfo bsErrConnectionInfo = new ConnectionInfo(thriftHost, thriftPort + 1, ByteBuffer.wrap("Just array".getBytes()));
BootstrapNod... | void function() { LOG.info(STR); DynamicLoadManager dm = getDynamicLoadManager(); ConnectionInfo bsErrConnectionInfo = new ConnectionInfo(thriftHost, thriftPort + 1, ByteBuffer.wrap(STR.getBytes())); BootstrapNodeInfo bsErrNode = getBootstrapNodeInfo(bsErrConnectionInfo); dm.onNodeAdded(bsErrNode); try { Thread.sleep(2... | /**
* Test Bootstrap Node update
*/ | Test Bootstrap Node update | bootstrapNodeUpdateTest | {
"repo_name": "kallelzied/kaa",
"path": "server/control/src/test/java/org/kaaproject/kaa/server/control/service/loadmgmt/TestDynamicLoadManagerIT.java",
"license": "apache-2.0",
"size": 17803
} | [
"java.nio.ByteBuffer",
"org.junit.Assert",
"org.kaaproject.kaa.server.common.zk.gen.BootstrapNodeInfo",
"org.kaaproject.kaa.server.common.zk.gen.ConnectionInfo"
] | import java.nio.ByteBuffer; import org.junit.Assert; import org.kaaproject.kaa.server.common.zk.gen.BootstrapNodeInfo; import org.kaaproject.kaa.server.common.zk.gen.ConnectionInfo; | import java.nio.*; import org.junit.*; import org.kaaproject.kaa.server.common.zk.gen.*; | [
"java.nio",
"org.junit",
"org.kaaproject.kaa"
] | java.nio; org.junit; org.kaaproject.kaa; | 2,152,813 |
public FlexLayout direction(Orientation eDirection, boolean bReverse)
{
return _with(
() ->
{
this.eDirection = eDirection;
this.bReverse = bReverse;
});
} | FlexLayout function(Orientation eDirection, boolean bReverse) { return _with( () -> { this.eDirection = eDirection; this.bReverse = bReverse; }); } | /***************************************
* Sets the direction of the item flow. This defines the main axis of the
* flex layout flow. The secondary axis runs in the other direction,
* perpendicular to the main axis.
*
* @param eDirection The flow direction
* @param bReverse TRUE to reverse the flow dire... | Sets the direction of the item flow. This defines the main axis of the flex layout flow. The secondary axis runs in the other direction, perpendicular to the main axis | direction | {
"repo_name": "esoco/gewt",
"path": "src/main/java/de/esoco/ewt/layout/FlexLayout.java",
"license": "apache-2.0",
"size": 9635
} | [
"de.esoco.lib.property.Orientation"
] | import de.esoco.lib.property.Orientation; | import de.esoco.lib.property.*; | [
"de.esoco.lib"
] | de.esoco.lib; | 2,555,486 |
public Builder addLinkstampCompileOptions(List<String> linkstampCompileOptions) {
this.linkstampCompileOptions.addAll(linkstampCompileOptions);
return this;
} | Builder function(List<String> linkstampCompileOptions) { this.linkstampCompileOptions.addAll(linkstampCompileOptions); return this; } | /**
* Adds the given C++ compiler options to the list of options passed to the linkstamp
* compilation.
*/ | Adds the given C++ compiler options to the list of options passed to the linkstamp compilation | addLinkstampCompileOptions | {
"repo_name": "mrdomino/bazel",
"path": "src/main/java/com/google/devtools/build/lib/rules/cpp/LinkCommandLine.java",
"license": "apache-2.0",
"size": 37642
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,238,514 |
public static String getFromCompressedUnicode(
final byte[] string,
final int offset,
final int len) {
try {
return new String(string, offset, len, "ISO-8859-1");
} catch (UnsupportedEncodingException e) {
throw new InternalError();
}
} | static String function( final byte[] string, final int offset, final int len) { try { return new String(string, offset, len, STR); } catch (UnsupportedEncodingException e) { throw new InternalError(); } } | /**
* Read 8 bit data (in ISO-8859-1 codepage) into a (unicode) Java
* String and return.
* (In Excel terms, read compressed 8 bit unicode as a string)
*
* @param string byte array to read
* @param offset offset to read byte array
* @param len length to read byte array
... | Read 8 bit data (in ISO-8859-1 codepage) into a (unicode) Java String and return. (In Excel terms, read compressed 8 bit unicode as a string) | getFromCompressedUnicode | {
"repo_name": "sommerc/bioformats",
"path": "components/forks/poi/src/loci/poi/util/StringUtil.java",
"license": "gpl-2.0",
"size": 12844
} | [
"java.io.UnsupportedEncodingException"
] | import java.io.UnsupportedEncodingException; | import java.io.*; | [
"java.io"
] | java.io; | 1,861,687 |
public int getQueryTimeoutMs() throws SQLException {
checkClosed();
return timeout;
} | int function() throws SQLException { checkClosed(); return timeout; } | /**
* The queryTimeout limit is the number of milliseconds the driver will wait for a Statement to
* execute. If the limit is exceeded, a SQLException is thrown.
*
* @return the current query timeout limit in milliseconds; 0 = unlimited
* @throws SQLException if a database access error occurs
*/ | The queryTimeout limit is the number of milliseconds the driver will wait for a Statement to execute. If the limit is exceeded, a SQLException is thrown | getQueryTimeoutMs | {
"repo_name": "jamesthomp/pgjdbc",
"path": "pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java",
"license": "bsd-2-clause",
"size": 36339
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,781,639 |
public Boolean getStorageLock(Connection c) throws
BadServerResponse,
XenAPIException,
XmlRpcException {
String method_call = "VDI.get_storage_lock";
String session = c.getSessionReference();
Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(t... | Boolean function(Connection c) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)}; Map response = c.dispatch(method_call, method_params); Object result =... | /**
* Get the storage_lock field of the given VDI.
*
* @return value of the field
*/ | Get the storage_lock field of the given VDI | getStorageLock | {
"repo_name": "mufaddalq/cloudstack-datera-driver",
"path": "deps/XenServerJava/src/com/xensource/xenapi/VDI.java",
"license": "apache-2.0",
"size": 84941
} | [
"com.xensource.xenapi.Types",
"java.util.Map",
"org.apache.xmlrpc.XmlRpcException"
] | import com.xensource.xenapi.Types; import java.util.Map; import org.apache.xmlrpc.XmlRpcException; | import com.xensource.xenapi.*; import java.util.*; import org.apache.xmlrpc.*; | [
"com.xensource.xenapi",
"java.util",
"org.apache.xmlrpc"
] | com.xensource.xenapi; java.util; org.apache.xmlrpc; | 962,961 |
@CheckForNull
public Node getNode(String name) {
return name == null ? null : nodes.get(name);
} | Node function(String name) { return name == null ? null : nodes.get(name); } | /**
* Returns the named node.
*
* @param name the {@link Node#getNodeName()} of the node to retrieve.
* @return the {@link Node} or {@code null} if the node could not be found.
*/ | Returns the named node | getNode | {
"repo_name": "batmat/jenkins",
"path": "core/src/main/java/jenkins/model/Nodes.java",
"license": "mit",
"size": 13869
} | [
"hudson.model.Node"
] | import hudson.model.Node; | import hudson.model.*; | [
"hudson.model"
] | hudson.model; | 2,000,748 |
public static <E> Counter<E> multiplyInPlace(Counter<E> target, double multiplier) {
for (Entry<E, Double> entry : target.entrySet()) {
target.setCount(entry.getKey(), entry.getValue() * multiplier);
}
return target;
} | static <E> Counter<E> function(Counter<E> target, double multiplier) { for (Entry<E, Double> entry : target.entrySet()) { target.setCount(entry.getKey(), entry.getValue() * multiplier); } return target; } | /**
* Multiplies each value in target by the given multiplier, in place.
*
* @param target The values in this Counter will be multiplied by the
* multiplier
* @param multiplier The number by which to change each number in the Counter
*/ | Multiplies each value in target by the given multiplier, in place | multiplyInPlace | {
"repo_name": "knowlp/CoreNLP",
"path": "src/edu/stanford/nlp/stats/Counters.java",
"license": "gpl-2.0",
"size": 98538
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 608,215 |
@Override
public void sync(DataModel dataModel) {
// Build named-based maps from ID-based maps
this.thermostats_by_name = new HashMap<String, Thermostat>();
if (this.thermostat_id_list != null) {
for (String id : this.thermostat_id_list) {
if (dataModel.getDev... | void function(DataModel dataModel) { this.thermostats_by_name = new HashMap<String, Thermostat>(); if (this.thermostat_id_list != null) { for (String id : this.thermostat_id_list) { if (dataModel.getDevices() != null && dataModel.getDevices().getThermostats_by_id() != null) { Thermostat th = dataModel.getDevices().getT... | /**
* This method creates maps to device objects, using the list of device IDs that were deserialized from JSON.
*/ | This method creates maps to device objects, using the list of device IDs that were deserialized from JSON | sync | {
"repo_name": "computergeek1507/openhab",
"path": "bundles/binding/org.openhab.binding.nest/src/main/java/org/openhab/binding/nest/internal/messages/Structure.java",
"license": "epl-1.0",
"size": 13651
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 2,234,910 |
public static Node fromXML(TransformationGraph graph, Element xmlElement) throws XMLConfigurationException, AttributeNotFoundException {
XmlXPathReader aXmlXPathReader = null;
ComponentXMLAttributes xattribs = new ComponentXMLAttributes(xmlElement, graph);
String mappingURL = xattribs.getStringEx(XML_MAPPIN... | static Node function(TransformationGraph graph, Element xmlElement) throws XMLConfigurationException, AttributeNotFoundException { XmlXPathReader aXmlXPathReader = null; ComponentXMLAttributes xattribs = new ComponentXMLAttributes(xmlElement, graph); String mappingURL = xattribs.getStringEx(XML_MAPPING_URL_ATTRIBUTE, n... | /**
* Description of the Method
*
* @param nodeXML Description of Parameter
* @return Description of the Returned Value
* @throws AttributeNotFoundException
* @since May 21, 2002
*/ | Description of the Method | fromXML | {
"repo_name": "CloverETL/CloverETL-Engine",
"path": "cloveretl.component/src/org/jetel/component/XmlXPathReader.java",
"license": "lgpl-2.1",
"size": 17203
} | [
"org.jetel.exception.AttributeNotFoundException",
"org.jetel.exception.JetelException",
"org.jetel.exception.XMLConfigurationException",
"org.jetel.graph.Node",
"org.jetel.graph.TransformationGraph",
"org.jetel.util.XmlUtils",
"org.jetel.util.property.ComponentXMLAttributes",
"org.jetel.util.property.... | import org.jetel.exception.AttributeNotFoundException; import org.jetel.exception.JetelException; import org.jetel.exception.XMLConfigurationException; import org.jetel.graph.Node; import org.jetel.graph.TransformationGraph; import org.jetel.util.XmlUtils; import org.jetel.util.property.ComponentXMLAttributes; import o... | import org.jetel.exception.*; import org.jetel.graph.*; import org.jetel.util.*; import org.jetel.util.property.*; import org.w3c.dom.*; | [
"org.jetel.exception",
"org.jetel.graph",
"org.jetel.util",
"org.w3c.dom"
] | org.jetel.exception; org.jetel.graph; org.jetel.util; org.w3c.dom; | 138,225 |
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw logger.logExceptionAsError(new IllegalAr... | Configurable function(Duration defaultPollInterval) { this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, STR); if (this.defaultPollInterval.isNegative()) { throw logger.logExceptionAsError(new IllegalArgumentException(STR)); } return this; } | /**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
* @param defaultPollInterval the default poll interval.
* @return the configurable object itself.
*/ | Sets the default poll interval, used when service does not provide "Retry-After" header | withDefaultPollInterval | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/datalakeanalytics/azure-resourcemanager-datalakeanalytics/src/main/java/com/azure/resourcemanager/datalakeanalytics/DataLakeAnalyticsManager.java",
"license": "mit",
"size": 12306
} | [
"java.time.Duration",
"java.util.Objects"
] | import java.time.Duration; import java.util.Objects; | import java.time.*; import java.util.*; | [
"java.time",
"java.util"
] | java.time; java.util; | 2,756,361 |
return dateFormat.format(new Date(timeInMillis));
}
/**
* long time to string, format is {@link #DEFAULT_DATE_FORMAT} | return dateFormat.format(new Date(timeInMillis)); } /** * long time to string, format is {@link #DEFAULT_DATE_FORMAT} | /**
* long time to string
*
* @param timeInMillis
* @param dateFormat
* @return
*/ | long time to string | getTime | {
"repo_name": "whitelaning/WhiteRead",
"path": "app/src/main/java/com/whitelaning/whitefragment/factory/utils/UtilsTime.java",
"license": "apache-2.0",
"size": 2169
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,958,904 |
@Generated
@CVariable()
@MappedReturn(ObjCStringMapper.class)
public static native String NSForegroundColorAttributeName(); | @CVariable() @MappedReturn(ObjCStringMapper.class) static native String function(); | /**
* UIColor, default blackColor
*/ | UIColor, default blackColor | NSForegroundColorAttributeName | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/uikit/c/UIKit.java",
"license": "apache-2.0",
"size": 134869
} | [
"org.moe.natj.c.ann.CVariable",
"org.moe.natj.general.ann.MappedReturn",
"org.moe.natj.objc.map.ObjCStringMapper"
] | import org.moe.natj.c.ann.CVariable; import org.moe.natj.general.ann.MappedReturn; import org.moe.natj.objc.map.ObjCStringMapper; | import org.moe.natj.c.ann.*; import org.moe.natj.general.ann.*; import org.moe.natj.objc.map.*; | [
"org.moe.natj"
] | org.moe.natj; | 1,741,718 |
public static pseudoRangeCorType fromPerAligned(byte[] encodedBytes) {
pseudoRangeCorType result = new pseudoRangeCorType();
result.decodePerAligned(new BitStreamReader(encodedBytes));
return result;
} | static pseudoRangeCorType function(byte[] encodedBytes) { pseudoRangeCorType result = new pseudoRangeCorType(); result.decodePerAligned(new BitStreamReader(encodedBytes)); return result; } | /**
* Creates a new pseudoRangeCorType from encoded stream.
*/ | Creates a new pseudoRangeCorType from encoded stream | fromPerAligned | {
"repo_name": "google/supl-client",
"path": "src/main/java/com/google/location/suplclient/asn1/supl2/rrlp_components/SatElement.java",
"license": "apache-2.0",
"size": 36456
} | [
"com.google.location.suplclient.asn1.base.BitStreamReader"
] | import com.google.location.suplclient.asn1.base.BitStreamReader; | import com.google.location.suplclient.asn1.base.*; | [
"com.google.location"
] | com.google.location; | 1,604,462 |
Map<String, String> getPreferences(String userId, String filter) throws ServerException; | Map<String, String> getPreferences(String userId, String filter) throws ServerException; | /**
* Gets user preferences filtered with given regexp.
*
* <p>Note that this method must always return upgradable map, thus it may be used as:
*
* <pre>{@code
* Map<String, String> prefs = spi.getPreferences("user123", ".*key.*");
* prefs.put("new-key", "secret");
* prefs.setPreferences("user12... | Gets user preferences filtered with given regexp. Note that this method must always return upgradable map, thus it may be used as: <code>Map prefs = spi.getPreferences("user123", ".*key.*"); prefs.put("new-key", "secret"); prefs.setPreferences("user123", prefs); </code> | getPreferences | {
"repo_name": "TypeFox/che",
"path": "wsmaster/che-core-api-user/src/main/java/org/eclipse/che/api/user/server/spi/PreferenceDao.java",
"license": "epl-1.0",
"size": 2871
} | [
"java.util.Map",
"org.eclipse.che.api.core.ServerException"
] | import java.util.Map; import org.eclipse.che.api.core.ServerException; | import java.util.*; import org.eclipse.che.api.core.*; | [
"java.util",
"org.eclipse.che"
] | java.util; org.eclipse.che; | 688,525 |
MultiValued<String, String> getQueryStringParameters();
/**
* Returns the parameters, populated only if HTTP method is {@link Method#POST} | MultiValued<String, String> getQueryStringParameters(); /** * Returns the parameters, populated only if HTTP method is {@link Method#POST} | /**
* Returns the Query String parameters, populated only if HTTP method is {@link Method#GET}.
*
* @return the Query String parameters
*/ | Returns the Query String parameters, populated only if HTTP method is <code>Method#GET</code> | getQueryStringParameters | {
"repo_name": "simonetripodi/shs",
"path": "api/src/main/java/org/nnsoft/shs/http/Request.java",
"license": "mit",
"size": 4529
} | [
"org.nnsoft.shs.collections.MultiValued"
] | import org.nnsoft.shs.collections.MultiValued; | import org.nnsoft.shs.collections.*; | [
"org.nnsoft.shs"
] | org.nnsoft.shs; | 1,093,272 |
public static FSDataInputStream wrapIfNecessary(Configuration conf,
FSDataInputStream in) throws IOException {
if (isShuffleEncrypted(conf)) {
CryptoCodec cryptoCodec = CryptoCodec.getInstance(conf);
int bufferSize = getBufferSize(conf);
// Not going to be used... but still has to be read.... | static FSDataInputStream function(Configuration conf, FSDataInputStream in) throws IOException { if (isShuffleEncrypted(conf)) { CryptoCodec cryptoCodec = CryptoCodec.getInstance(conf); int bufferSize = getBufferSize(conf); IOUtils.readFully(in, new byte[8], 0, 8); byte[] iv = new byte[cryptoCodec.getCipherSuite().getA... | /**
* Wraps a given FSDataInputStream with a CryptoInputStream. The size of the
* data buffer required for the stream is specified by the
* "mapreduce.job.encrypted-intermediate-data.buffer.kb" Job configuration
* variable.
*
* @param conf
* @param in
* @return FSDataInputStream
* @throws IO... | Wraps a given FSDataInputStream with a CryptoInputStream. The size of the data buffer required for the stream is specified by the "mapreduce.job.encrypted-intermediate-data.buffer.kb" Job configuration variable | wrapIfNecessary | {
"repo_name": "bysslord/hadoop",
"path": "hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/CryptoUtils.java",
"license": "apache-2.0",
"size": 7340
} | [
"java.io.IOException",
"org.apache.commons.codec.binary.Base64",
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.crypto.CryptoCodec",
"org.apache.hadoop.fs.FSDataInputStream",
"org.apache.hadoop.fs.crypto.CryptoFSDataInputStream",
"org.apache.hadoop.io.IOUtils"
] | import java.io.IOException; import org.apache.commons.codec.binary.Base64; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.crypto.CryptoCodec; import org.apache.hadoop.fs.FSDataInputStream; import org.apache.hadoop.fs.crypto.CryptoFSDataInputStream; import org.apache.hadoop.io.IOUtils; | import java.io.*; import org.apache.commons.codec.binary.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.crypto.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.fs.crypto.*; import org.apache.hadoop.io.*; | [
"java.io",
"org.apache.commons",
"org.apache.hadoop"
] | java.io; org.apache.commons; org.apache.hadoop; | 2,047,212 |
public QueryJobConfiguration buildDemoChartInfoCounterQuery(
ParticipantCriteria participantCriteria) {
Map<String, QueryParameterValue> params = new HashMap<>();
String sqlTemplate =
DEMO_CHART_INFO_SQL_TEMPLATE
.replace("${genderOrSex}", participantCriteria.getGenderOrSexType().toS... | QueryJobConfiguration function( ParticipantCriteria participantCriteria) { Map<String, QueryParameterValue> params = new HashMap<>(); String sqlTemplate = DEMO_CHART_INFO_SQL_TEMPLATE .replace(STR, participantCriteria.getGenderOrSexType().toString()) .replace(STR, getAgeRangeSql(18, 44, participantCriteria.getAgeType()... | /**
* Provides counts with demographic info for charts defined by the provided {@link
* ParticipantCriteria}.
*/ | Provides counts with demographic info for charts defined by the provided <code>ParticipantCriteria</code> | buildDemoChartInfoCounterQuery | {
"repo_name": "all-of-us/workbench",
"path": "api/src/main/java/org/pmiops/workbench/cohortbuilder/CohortQueryBuilder.java",
"license": "bsd-3-clause",
"size": 14137
} | [
"com.google.cloud.bigquery.QueryJobConfiguration",
"com.google.cloud.bigquery.QueryParameterValue",
"java.util.HashMap",
"java.util.Map"
] | import com.google.cloud.bigquery.QueryJobConfiguration; import com.google.cloud.bigquery.QueryParameterValue; import java.util.HashMap; import java.util.Map; | import com.google.cloud.bigquery.*; import java.util.*; | [
"com.google.cloud",
"java.util"
] | com.google.cloud; java.util; | 70,429 |
private boolean processPreflight(ContainerRequestContext requestContext, ContainerResponseContext responseContext) {
boolean isCorsPreflight = false;
if (HTTP_OPTIONS_METHOD.equals(requestContext.getMethod())) {
// Look for the mandatory CORS preflight request headers
Strin... | boolean function(ContainerRequestContext requestContext, ContainerResponseContext responseContext) { boolean isCorsPreflight = false; if (HTTP_OPTIONS_METHOD.equals(requestContext.getMethod())) { String origin = getValue(requestContext.getHeaders(), ORIGIN_HEADER); String realRequestMethod = getValue(requestContext.get... | /**
* Process a preflight CORS request.
*
* @param requestContext
* @param responseContext
* @return true if it is a preflight request that has been processed.
*/ | Process a preflight CORS request | processPreflight | {
"repo_name": "philomatic/smarthome",
"path": "bundles/io/org.eclipse.smarthome.io.rest/src/main/java/org/eclipse/smarthome/io/rest/internal/filter/CorsFilter.java",
"license": "epl-1.0",
"size": 7072
} | [
"javax.ws.rs.container.ContainerRequestContext",
"javax.ws.rs.container.ContainerResponseContext",
"org.apache.commons.lang.StringUtils"
] | import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerResponseContext; import org.apache.commons.lang.StringUtils; | import javax.ws.rs.container.*; import org.apache.commons.lang.*; | [
"javax.ws",
"org.apache.commons"
] | javax.ws; org.apache.commons; | 2,635,121 |
private static void sendUserMsg(final Handler messageHandler, final String txt) {
Message msg = new Message();
msg.setTarget(messageHandler);
msg.what = MSG_NOTIFY_USER_ERROR;
msg.obj = txt;
msg.sendToTarget();
}
| static void function(final Handler messageHandler, final String txt) { Message msg = new Message(); msg.setTarget(messageHandler); msg.what = MSG_NOTIFY_USER_ERROR; msg.obj = txt; msg.sendToTarget(); } | /**
* Send back a update status message to the message handler.
* This is used for short messages to the user, like "Search had no result" etc.
*
* @param messageHandler
* @param txt
*/ | Send back a update status message to the message handler. This is used for short messages to the user, like "Search had no result" etc | sendUserMsg | {
"repo_name": "tskulbru/helladroid",
"path": "src/info/unyttig/helladroid/newzbin/NewzBinController.java",
"license": "gpl-3.0",
"size": 9647
} | [
"android.os.Handler",
"android.os.Message"
] | import android.os.Handler; import android.os.Message; | import android.os.*; | [
"android.os"
] | android.os; | 1,944,566 |
public void copyPackagesExcept(BuildState prev, Set<String> recompiled, Set<String> removed) {
for (String pkg : prev.packages().keySet()) {
// Do not copy recompiled or removed packages.
if (recompiled.contains(pkg) || removed.contains(pkg)) continue;
Module mnew = findM... | void function(BuildState prev, Set<String> recompiled, Set<String> removed) { for (String pkg : prev.packages().keySet()) { if (recompiled.contains(pkg) removed.contains(pkg)) continue; Module mnew = findModuleFromPackageName(pkg); Package pprev = prev.packages().get(pkg); mnew.addPackage(pprev); packages.put(pkg, ppre... | /**
* During an incremental compile we need to copy the old javac state
* information about packages that were not recompiled.
*/ | During an incremental compile we need to copy the old javac state information about packages that were not recompiled | copyPackagesExcept | {
"repo_name": "reprogrammer/jsr308-langtools",
"path": "src/share/classes/com/sun/tools/sjavac/BuildState.java",
"license": "gpl-2.0",
"size": 11022
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 340,596 |
default Function6<T6, T7, T8, T9, T10, T11, R> applyPartially(Tuple5<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5> args) {
return (v6, v7, v8, v9, v10, v11) -> apply(args.v1, args.v2, args.v3, args.v4, args.v5, v6, v7, v8, v9, v10, v11);
} | default Function6<T6, T7, T8, T9, T10, T11, R> applyPartially(Tuple5<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5> args) { return (v6, v7, v8, v9, v10, v11) -> apply(args.v1, args.v2, args.v3, args.v4, args.v5, v6, v7, v8, v9, v10, v11); } | /**
* Partially apply this function to the arguments.
*/ | Partially apply this function to the arguments | applyPartially | {
"repo_name": "jOOQ/jOOL",
"path": "jOOL/src/main/java/org/jooq/lambda/function/Function11.java",
"license": "apache-2.0",
"size": 18145
} | [
"org.jooq.lambda.tuple.Tuple5"
] | import org.jooq.lambda.tuple.Tuple5; | import org.jooq.lambda.tuple.*; | [
"org.jooq.lambda"
] | org.jooq.lambda; | 488,473 |
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Boolean> exists() {
return existsWithResponse().flatMap(FluxUtil::toMono);
} | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Boolean> function() { return existsWithResponse().flatMap(FluxUtil::toMono); } | /**
* Determines if the file this client represents exists in the cloud.
*
* <p><strong>Code Samples</strong></p>
*
* <!-- src_embed com.azure.storage.file.share.ShareFileAsyncClient.exists -->
* <pre>
* client.exists().subscribe(response -> System.out.printf("... | Determines if the file this client represents exists in the cloud. Code Samples <code> client.exists().subscribe(response -> System.out.printf("Exists? %b%n", response)); </code> | exists | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareFileAsyncClient.java",
"license": "mit",
"size": 172839
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.util.FluxUtil"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.FluxUtil; | import com.azure.core.annotation.*; import com.azure.core.util.*; | [
"com.azure.core"
] | com.azure.core; | 1,533,508 |
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<ManagementLockObjectInner>> createOrUpdateByScopeWithResponseAsync(
String scope, String lockName, ManagementLockObjectInner parameters); | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<ManagementLockObjectInner>> createOrUpdateByScopeWithResponseAsync( String scope, String lockName, ManagementLockObjectInner parameters); | /**
* Create or update a management lock by scope.
*
* @param scope The scope for the lock. When providing a scope for the assignment, use
* '/subscriptions/{subscriptionId}' for subscriptions,
* '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, a... | Create or update a management lock by scope | createOrUpdateByScopeWithResponseAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluent/ManagementLocksClient.java",
"license": "mit",
"size": 66646
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.resourcemanager.resources.fluent.models.ManagementLockObjectInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.resources.fluent.models.ManagementLockObjectInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.resources.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 231,835 |
@Override
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
super.tightMarshal2(wireFormat, o, dataOut, bs);
DataArrayResponse info = (DataArrayResponse) o;
tightMarshalObjectArray2(wireFormat, info.getData(), dataO... | void function(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); DataArrayResponse info = (DataArrayResponse) o; tightMarshalObjectArray2(wireFormat, info.getData(), dataOut, bs); } | /**
* Write a object instance to data output stream
*
* @param o
* the instance to be marshaled
* @param dataOut
* the output stream
* @throws IOException
* thrown if an error occurs
*/ | Write a object instance to data output stream | tightMarshal2 | {
"repo_name": "tabish121/OpenWire",
"path": "openwire-legacy/src/main/java/io/openwire/codec/v8/DataArrayResponseMarshaller.java",
"license": "apache-2.0",
"size": 4705
} | [
"io.openwire.codec.BooleanStream",
"io.openwire.codec.OpenWireFormat",
"io.openwire.commands.DataArrayResponse",
"java.io.DataOutput",
"java.io.IOException"
] | import io.openwire.codec.BooleanStream; import io.openwire.codec.OpenWireFormat; import io.openwire.commands.DataArrayResponse; import java.io.DataOutput; import java.io.IOException; | import io.openwire.codec.*; import io.openwire.commands.*; import java.io.*; | [
"io.openwire.codec",
"io.openwire.commands",
"java.io"
] | io.openwire.codec; io.openwire.commands; java.io; | 444,423 |
public void setBaseShapesVisible(boolean flag) {
if (this.baseShapesVisible != flag) {
this.baseShapesVisible = flag;
notifyListeners(new RendererChangeEvent(this));
}
}
// SHAPES FILLED | void function(boolean flag) { if (this.baseShapesVisible != flag) { this.baseShapesVisible = flag; notifyListeners(new RendererChangeEvent(this)); } } | /**
* Sets the flag that controls whether or not a shape is plotted at each
* data point.
*
* @param flag the flag.
*/ | Sets the flag that controls whether or not a shape is plotted at each data point | setBaseShapesVisible | {
"repo_name": "opensim-org/opensim-gui",
"path": "Gui/opensim/jfreechart/src/org/jfree/chart/renderer/xy/StandardXYItemRenderer.java",
"license": "apache-2.0",
"size": 36170
} | [
"org.jfree.chart.event.RendererChangeEvent"
] | import org.jfree.chart.event.RendererChangeEvent; | import org.jfree.chart.event.*; | [
"org.jfree.chart"
] | org.jfree.chart; | 2,417,493 |
@Override
public void onTravelElementLoad(ArrayList<LocalTravelElement> userTravelElementArrayList,
ArrayList<LocalTravelElement> friendTravelElementArrayList) {
//we know that parameters cannot both be null, but one of them could still be null
Log.d(TAG, "onT... | void function(ArrayList<LocalTravelElement> userTravelElementArrayList, ArrayList<LocalTravelElement> friendTravelElementArrayList) { Log.d(TAG, STR); ViewHolder viewHolder = getViewHolder(); if (viewHolder == null) { Log.d(TAG, STR); return; } final SuggestionsAdapter suggestionsAdapter = (SuggestionsAdapter) viewHold... | /**
* OnSuggestionsLoadedCallback implementation
* The data fragment has finished fetching travel elements for the user and friend. Call by SuggestionsActivity to update the view.
* @param userTravelElementArrayList
* @param friendTravelElementArrayList
*/ | OnSuggestionsLoadedCallback implementation The data fragment has finished fetching travel elements for the user and friend. Call by SuggestionsActivity to update the view | onTravelElementLoad | {
"repo_name": "yeelin/betweenus",
"path": "app/src/main/java/com/example/yeelin/projects/betweenus/fragment/SuggestionsListFragment.java",
"license": "mit",
"size": 21675
} | [
"android.util.Log",
"com.example.yeelin.projects.betweenus.adapter.SuggestionsAdapter",
"com.example.yeelin.projects.betweenus.data.LocalTravelElement",
"java.util.ArrayList"
] | import android.util.Log; import com.example.yeelin.projects.betweenus.adapter.SuggestionsAdapter; import com.example.yeelin.projects.betweenus.data.LocalTravelElement; import java.util.ArrayList; | import android.util.*; import com.example.yeelin.projects.betweenus.adapter.*; import com.example.yeelin.projects.betweenus.data.*; import java.util.*; | [
"android.util",
"com.example.yeelin",
"java.util"
] | android.util; com.example.yeelin; java.util; | 546,529 |
public static Where between(String column, Object value1, Object value2) {
StringBuilder builder = new StringBuilder("(");
SqlUtil.formatName(builder, column);
builder.append(" BETWEEN ? AND ? ")
.append(")");
Where where = new Where(builder);
where.setValues(... | static Where function(String column, Object value1, Object value2) { StringBuilder builder = new StringBuilder("("); SqlUtil.formatName(builder, column); builder.append(STR) .append(")"); Where where = new Where(builder); where.setValues(value1, value2); return where; } | /**
* "BETWEEN ... AND ..." condition
*
* @param column
* @param value1
* @param value2
* @return
*/ | "BETWEEN ... AND ..." condition | between | {
"repo_name": "hejunbinlan/RapidORM",
"path": "library/src/main/java/com/wangjie/rapidorm/core/generate/builder/Where.java",
"license": "apache-2.0",
"size": 7961
} | [
"com.wangjie.rapidorm.core.generate.statement.util.SqlUtil"
] | import com.wangjie.rapidorm.core.generate.statement.util.SqlUtil; | import com.wangjie.rapidorm.core.generate.statement.util.*; | [
"com.wangjie.rapidorm"
] | com.wangjie.rapidorm; | 1,845,417 |
public int canDisplayUpTo (char[] text, int start, int limit)
{
return peer.canDisplayUpTo
(this, new StringCharacterIterator (new String (text)), start, limit);
} | int function (char[] text, int start, int limit) { return peer.canDisplayUpTo (this, new StringCharacterIterator (new String (text)), start, limit); } | /**
* Checks how much of a given sequence of text can be mapped to glyphs in
* this font.
*
* @param text Array containing the text to check.
* @param start Position of first character to check in <code>text</code>.
* @param limit Position of last character to check in <code>text</code>.
*
* @return The... | Checks how much of a given sequence of text can be mapped to glyphs in this font | canDisplayUpTo | {
"repo_name": "aosm/gcc_40",
"path": "libjava/java/awt/Font.java",
"license": "gpl-2.0",
"size": 39444
} | [
"java.text.StringCharacterIterator"
] | import java.text.StringCharacterIterator; | import java.text.*; | [
"java.text"
] | java.text; | 345,228 |
public final Product getSourceProduct(String id) {
Assert.notNull(id, "id");
return context.getSourceProduct(id);
} | final Product function(String id) { Assert.notNull(id, "id"); return context.getSourceProduct(id); } | /**
* Gets the source product using the specified name.
*
* @param id the identifier
*
* @return the source product, or {@code null} if not found
*
* @see #getSourceProductId(Product)
*/ | Gets the source product using the specified name | getSourceProduct | {
"repo_name": "seadas/beam",
"path": "beam-gpf/src/main/java/org/esa/beam/framework/gpf/Operator.java",
"license": "gpl-3.0",
"size": 19001
} | [
"com.bc.ceres.core.Assert",
"org.esa.beam.framework.datamodel.Product"
] | import com.bc.ceres.core.Assert; import org.esa.beam.framework.datamodel.Product; | import com.bc.ceres.core.*; import org.esa.beam.framework.datamodel.*; | [
"com.bc.ceres",
"org.esa.beam"
] | com.bc.ceres; org.esa.beam; | 2,407,733 |
@Override
public boolean equals(final Object o) {
if (o == null || !(o instanceof Course)) {
return false;
}
if (this == o) {
return true;
}
Course course = (Course) o;
return Objects.equals(id, course.id)
&& Obj... | boolean function(final Object o) { if (o == null !(o instanceof Course)) { return false; } if (this == o) { return true; } Course course = (Course) o; return Objects.equals(id, course.id) && Objects.equals(title, course.title) && Objects.equals(description, course.description); } | /**
* equals method for Course.
*/ | equals method for Course | equals | {
"repo_name": "cs3250-team6/msubanner",
"path": "src/main/java/edu/msudenver/cs3250/group6/msubanner/entities/Course.java",
"license": "mit",
"size": 7971
} | [
"java.util.Objects"
] | import java.util.Objects; | import java.util.*; | [
"java.util"
] | java.util; | 2,359,882 |
public DataNode setBend_angle_x(IDataset bend_angle_x); | DataNode function(IDataset bend_angle_x); | /**
* <p>
* <b>Type:</b> NX_FLOAT
* <b>Units:</b> NX_ANGLE
* </p>
*
* @param bend_angle_x the bend_angle_x
*/ | Type: NX_FLOAT Units: NX_ANGLE | setBend_angle_x | {
"repo_name": "jamesmudd/dawnsci",
"path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXmirror.java",
"license": "epl-1.0",
"size": 17691
} | [
"org.eclipse.dawnsci.analysis.api.tree.DataNode",
"org.eclipse.january.dataset.IDataset"
] | import org.eclipse.dawnsci.analysis.api.tree.DataNode; import org.eclipse.january.dataset.IDataset; | import org.eclipse.dawnsci.analysis.api.tree.*; import org.eclipse.january.dataset.*; | [
"org.eclipse.dawnsci",
"org.eclipse.january"
] | org.eclipse.dawnsci; org.eclipse.january; | 2,570,121 |
public void addGoingOutNode(GraphNode<T> node) {
if (goingOutNodes == null) {
goingOutNodes = new ArrayList<GraphNode<T>>();
}
goingOutNodes.add(node);
} | void function(GraphNode<T> node) { if (goingOutNodes == null) { goingOutNodes = new ArrayList<GraphNode<T>>(); } goingOutNodes.add(node); } | /**
* Adds an outgoing node from the current node
*
* @param node The outgoing node
*/ | Adds an outgoing node from the current node | addGoingOutNode | {
"repo_name": "NBANDROIDTEAM/NBANDROID-V2",
"path": "nbandroid.core/src/main/java/org/nbandroid/netbeans/gradle/v2/layout/dependency/graph/GraphNode.java",
"license": "apache-2.0",
"size": 1639
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 1,716,423 |
Fieldable createField(String field, Object value); | Fieldable createField(String field, Object value); | /**
* This method creates the {@link Fieldable field} for the given
* <code>field</code> (name) and <code>value</code>.
*
* @param field is the name of the
* {@link net.sf.mmm.search.api.SearchEntry#getFieldAsString(String)
* field} to create.
* @param value is the value of the
* ... | This method creates the <code>Fieldable field</code> for the given <code>field</code> (name) and <code>value</code> | createField | {
"repo_name": "m-m-m/search",
"path": "search/engine/impl-lucene/src/main/java/net/sf/mmm/search/engine/impl/lucene/LuceneFieldManager.java",
"license": "apache-2.0",
"size": 4394
} | [
"org.apache.lucene.document.Fieldable"
] | import org.apache.lucene.document.Fieldable; | import org.apache.lucene.document.*; | [
"org.apache.lucene"
] | org.apache.lucene; | 1,786,103 |
Optional<Resource> getUsedResource(String accountId) throws NotFoundException, ServerException; | Optional<Resource> getUsedResource(String accountId) throws NotFoundException, ServerException; | /**
* Returns used resource by given account.
*
* @param accountId account id to fetch used resource
* @return used resource by given account
* @throws NotFoundException when account with specified id was not found
* @throws ServerException when some exception occurs on used resources fetching
*/ | Returns used resource by given account | getUsedResource | {
"repo_name": "akervern/che",
"path": "multiuser/api/che-multiuser-api-resource/src/main/java/org/eclipse/che/multiuser/resource/api/ResourceUsageTracker.java",
"license": "epl-1.0",
"size": 1125
} | [
"java.util.Optional",
"org.eclipse.che.api.core.NotFoundException",
"org.eclipse.che.api.core.ServerException",
"org.eclipse.che.multiuser.resource.model.Resource"
] | import java.util.Optional; import org.eclipse.che.api.core.NotFoundException; import org.eclipse.che.api.core.ServerException; import org.eclipse.che.multiuser.resource.model.Resource; | import java.util.*; import org.eclipse.che.api.core.*; import org.eclipse.che.multiuser.resource.model.*; | [
"java.util",
"org.eclipse.che"
] | java.util; org.eclipse.che; | 1,802,302 |
public void testTotalDegExpVectorIteratorInf() {
int n = 4;
Set<ExpVector> set = new TreeSet<ExpVector>((new TermOrder()).getDescendComparator());
ExpVectorIterable eiter = new ExpVectorIterable(n);
long t = 0;
for (ExpVector e : eiter) {
//System.out.println("e... | void function() { int n = 4; Set<ExpVector> set = new TreeSet<ExpVector>((new TermOrder()).getDescendComparator()); ExpVectorIterable eiter = new ExpVectorIterable(n); long t = 0; for (ExpVector e : eiter) { t++; if (t > 500L) { break; } assertFalse(STR, set.contains(e)); set.add(e); } } | /**
* Test total degree ExpVector iterator.
*
*/ | Test total degree ExpVector iterator | testTotalDegExpVectorIteratorInf | {
"repo_name": "breandan/java-algebra-system",
"path": "trc/edu/jas/ps/IteratorsTest.java",
"license": "gpl-2.0",
"size": 8505
} | [
"edu.jas.poly.ExpVector",
"edu.jas.poly.TermOrder",
"java.util.Set",
"java.util.TreeSet"
] | import edu.jas.poly.ExpVector; import edu.jas.poly.TermOrder; import java.util.Set; import java.util.TreeSet; | import edu.jas.poly.*; import java.util.*; | [
"edu.jas.poly",
"java.util"
] | edu.jas.poly; java.util; | 1,013,572 |
private static ByteBuffer serialize(Text key, Operator operator,
Value... values) {
int size = 1 + 4 + key.size() + (4 * values.length);
for (Value value : values) {
size += value.size();
}
ByteBuffer bytes = ByteBuffer.allocate(size);
bytes.put(operat... | static ByteBuffer function(Text key, Operator operator, Value... values) { int size = 1 + 4 + key.size() + (4 * values.length); for (Value value : values) { size += value.size(); } ByteBuffer bytes = ByteBuffer.allocate(size); bytes.put(operator != null ? (byte) operator.ordinal() : NULL_OPERATOR); bytes.putInt(key.siz... | /**
* Return the ByteBuffer with the serialized form appropriate for a
* RangeToken that describes {@code key} {@code operator} {@code values}.
*
* @param key
* @param operator
* @param values
* @return the ByteBuffer
*/ | Return the ByteBuffer with the serialized form appropriate for a RangeToken that describes key operator values | serialize | {
"repo_name": "hcuffy/concourse",
"path": "concourse-server/src/main/java/com/cinchapi/concourse/server/concurrent/RangeToken.java",
"license": "apache-2.0",
"size": 13914
} | [
"com.cinchapi.concourse.server.model.Text",
"com.cinchapi.concourse.server.model.Value",
"com.cinchapi.concourse.thrift.Operator",
"com.cinchapi.concourse.util.ByteBuffers",
"java.nio.ByteBuffer"
] | import com.cinchapi.concourse.server.model.Text; import com.cinchapi.concourse.server.model.Value; import com.cinchapi.concourse.thrift.Operator; import com.cinchapi.concourse.util.ByteBuffers; import java.nio.ByteBuffer; | import com.cinchapi.concourse.server.model.*; import com.cinchapi.concourse.thrift.*; import com.cinchapi.concourse.util.*; import java.nio.*; | [
"com.cinchapi.concourse",
"java.nio"
] | com.cinchapi.concourse; java.nio; | 2,167,703 |
public void decode(final File srcPath, final File destPath)
throws IOException
{
byte[] header = new byte[2048];
byte[] payload = new byte[65536];
byte[] decdat = new byte[44100*2*2];
final int WAV_HEADERSIZE = 8;
final short WAVE_FORMAT_SPEEX = (short) 0xa109;
fin... | void function(final File srcPath, final File destPath) throws IOException { byte[] header = new byte[2048]; byte[] payload = new byte[65536]; byte[] decdat = new byte[44100*2*2]; final int WAV_HEADERSIZE = 8; final short WAVE_FORMAT_SPEEX = (short) 0xa109; final String RIFF = "RIFF"; final String WAVE = "WAVE"; final S... | /**
* Decodes a spx file to wave.
* @param srcPath the Speex encoded source file.
* @param destPath the destination file.
* @exception IOException
*/ | Decodes a spx file to wave | decode | {
"repo_name": "srnsw/xena",
"path": "plugins/audio/ext/src/jspeex/src/java/org/xiph/speex/ant/JSpeexDecoderTask.java",
"license": "gpl-3.0",
"size": 25765
} | [
"java.io.EOFException",
"java.io.File",
"java.io.IOException"
] | import java.io.EOFException; import java.io.File; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,947,336 |
public void onKeyboardClick(KeyboardButtonEnum keyboardButtonEnum); | void function(KeyboardButtonEnum keyboardButtonEnum); | /**
* Receive the click of a button, just after a {@link android.view.View.OnClickListener} has fired.
* Called before {@link #onRippleAnimationEnd()}.
* @param keyboardButtonEnum The organized enum of the clicked button
*/ | Receive the click of a button, just after a <code>android.view.View.OnClickListener</code> has fired. Called before <code>#onRippleAnimationEnd()</code> | onKeyboardClick | {
"repo_name": "sfilmak/MakiLite",
"path": "app/src/main/java/com/sunshine/makilite/pin/interfaces/KeyboardButtonClickedListener.java",
"license": "gpl-3.0",
"size": 1129
} | [
"com.sunshine.makilite.pin.enums.KeyboardButtonEnum"
] | import com.sunshine.makilite.pin.enums.KeyboardButtonEnum; | import com.sunshine.makilite.pin.enums.*; | [
"com.sunshine.makilite"
] | com.sunshine.makilite; | 2,066,333 |
public OffsetDateTime observationEndTime() {
return this.innerProperties() == null ? null : this.innerProperties().observationEndTime();
} | OffsetDateTime function() { return this.innerProperties() == null ? null : this.innerProperties().observationEndTime(); } | /**
* Get the observationEndTime property: Observation end time.
*
* @return the observationEndTime value.
*/ | Get the observationEndTime property: Observation end time | observationEndTime | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/mysql/azure-resourcemanager-mysql/src/main/java/com/azure/resourcemanager/mysql/models/TopQueryStatisticsInput.java",
"license": "mit",
"size": 6722
} | [
"java.time.OffsetDateTime"
] | import java.time.OffsetDateTime; | import java.time.*; | [
"java.time"
] | java.time; | 927,796 |
public void charDataModified(Node contextNode, String oldValue,
String newValue) {
historyBrowser.addCommand
(createCharDataModifiedCommand(contextNode, oldValue, newValue));
} | void function(Node contextNode, String oldValue, String newValue) { historyBrowser.addCommand (createCharDataModifiedCommand(contextNode, oldValue, newValue)); } | /**
* Adds CharDataModifiedCommand to historyBrowser.
*
* @param contextNode
* The node whose nodeValue changed
* @param oldValue
* The old node value
* @param newValue
* The new node value
*/ | Adds CharDataModifiedCommand to historyBrowser | charDataModified | {
"repo_name": "git-moss/Push2Display",
"path": "lib/batik-1.8/sources/org/apache/batik/apps/svgbrowser/HistoryBrowserInterface.java",
"license": "lgpl-3.0",
"size": 42497
} | [
"org.w3c.dom.Node"
] | import org.w3c.dom.Node; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 401,818 |
private void drawLayout(Canvas canvas) {
final StaticLayout layout = textLayout;
if (layout == null) {
// Nothing to draw.
return;
}
int saveCount = canvas.save();
canvas.translate(textLeft, textTop);
if (Color.alpha(windowColor) > 0) {
paint.setColor(windowColor);
ca... | void function(Canvas canvas) { final StaticLayout layout = textLayout; if (layout == null) { return; } int saveCount = canvas.save(); canvas.translate(textLeft, textTop); if (Color.alpha(windowColor) > 0) { paint.setColor(windowColor); canvas.drawRect(-textPaddingX, 0, layout.getWidth() + textPaddingX, layout.getHeight... | /**
* Draws {@link #textLayout} into the provided canvas.
*
* @param canvas The canvas into which to draw.
*/ | Draws <code>#textLayout</code> into the provided canvas | drawLayout | {
"repo_name": "Furystorm/ExoPlayer",
"path": "library/src/main/java/com/google/android/exoplayer/text/CuePainter.java",
"license": "apache-2.0",
"size": 13195
} | [
"android.graphics.Canvas",
"android.graphics.Color",
"android.graphics.Paint",
"android.text.StaticLayout"
] | import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.text.StaticLayout; | import android.graphics.*; import android.text.*; | [
"android.graphics",
"android.text"
] | android.graphics; android.text; | 865,674 |
final HashSet set = new HashSet();
if (node.shortCut) {
set.add("<THAT>");
}
if (node.key != null) {
set.add(node.key);
}
if (node.map != null) {
set.addAll(node.map.keySet());
}
return set.size();
}
| final HashSet set = new HashSet(); if (node.shortCut) { set.add(STR); } if (node.key != null) { set.add(node.key); } if (node.map != null) { set.addAll(node.map.keySet()); } return set.size(); } | /**
* number of branches from node
*
* @param node
* Nodemapper object
* @return number of branches
*/ | number of branches from node | size | {
"repo_name": "BobbyFoster/alice-program-ab",
"path": "src/org/alicebot/ab/NodemapperOperator.java",
"license": "lgpl-3.0",
"size": 4365
} | [
"java.util.HashSet"
] | import java.util.HashSet; | import java.util.*; | [
"java.util"
] | java.util; | 722,517 |
public ServiceFuture<OpenidConnectProviderContractInner> getAsync(String resourceGroupName, String serviceName, String opid, final ServiceCallback<OpenidConnectProviderContractInner> serviceCallback) {
return ServiceFuture.fromHeaderResponse(getWithServiceResponseAsync(resourceGroupName, serviceName, opid),... | ServiceFuture<OpenidConnectProviderContractInner> function(String resourceGroupName, String serviceName, String opid, final ServiceCallback<OpenidConnectProviderContractInner> serviceCallback) { return ServiceFuture.fromHeaderResponse(getWithServiceResponseAsync(resourceGroupName, serviceName, opid), serviceCallback); ... | /**
* Gets specific OpenID Connect Provider.
*
* @param resourceGroupName The name of the resource group.
* @param serviceName The name of the API Management service.
* @param opid Identifier of the OpenID Connect Provider.
* @param serviceCallback the async ServiceCallback to handle succe... | Gets specific OpenID Connect Provider | getAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/apimanagement/mgmt-v2019_12_01/src/main/java/com/microsoft/azure/management/apimanagement/v2019_12_01/implementation/OpenIdConnectProvidersInner.java",
"license": "mit",
"size": 75179
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 2,434,369 |
public TextNode append(final String more) {
String text = _contents + more;
// First try a constructor which just takes a string.
try {
Constructor<? extends TextNode> constructor = getClass().getDeclaredConstructor(String.class);
return constructor.newInstance(text);
}
// Fall back ... | TextNode function(final String more) { String text = _contents + more; try { Constructor<? extends TextNode> constructor = getClass().getDeclaredConstructor(String.class); return constructor.newInstance(text); } catch (Exception e) { try { Constructor<? extends TextNode> constructor = getClass().getDeclaredConstructor(... | /**
* Construct a new TextNode of the same type by appending the text of the
* follower to this.
*/ | Construct a new TextNode of the same type by appending the text of the follower to this | append | {
"repo_name": "CoreFiling/reviki",
"path": "renderer-src/net/hillsdon/reviki/wiki/renderer/creole/ast/TextNode.java",
"license": "apache-2.0",
"size": 2208
} | [
"java.lang.reflect.Constructor"
] | import java.lang.reflect.Constructor; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 442,683 |
public final void getLastData(final String[] metricArray,
final RequestCallback callback) {
service.getLastData(metricArray, callback);
} | final void function(final String[] metricArray, final RequestCallback callback) { service.getLastData(metricArray, callback); } | /**
* Provide the last DataPoint received of the given metric.
*
* @param metricArray the metric we are looking for
* @param callback The callback to reply
*/ | Provide the last DataPoint received of the given metric | getLastData | {
"repo_name": "jackybourgeois/active-home",
"path": "org.active-home.context/src/main/java/org/activehome/context/ContextRequestHandler.java",
"license": "gpl-3.0",
"size": 7867
} | [
"org.activehome.com.RequestCallback"
] | import org.activehome.com.RequestCallback; | import org.activehome.com.*; | [
"org.activehome.com"
] | org.activehome.com; | 2,299,190 |
void dynaPick() {
dynaPick(refToCam4DynaPick);
}
Glyph lastDynaPicked = null;
SelectionListener sl; | void dynaPick() { dynaPick(refToCam4DynaPick); } Glyph lastDynaPicked = null; SelectionListener sl; | /**
* Compute the list of glyphs picked by the dynaspot cursor. The best picked
* glyph is returned.
*
* @see #dynaPick(Camera c)
*/ | Compute the list of glyphs picked by the dynaspot cursor. The best picked glyph is returned | dynaPick | {
"repo_name": "sharwell/zgrnbviewer",
"path": "org-tvl-netbeans-zgrviewer/src/fr/inria/zvtm/engine/DynaPicker.java",
"license": "lgpl-3.0",
"size": 16532
} | [
"fr.inria.zvtm.event.SelectionListener",
"fr.inria.zvtm.glyphs.Glyph"
] | import fr.inria.zvtm.event.SelectionListener; import fr.inria.zvtm.glyphs.Glyph; | import fr.inria.zvtm.event.*; import fr.inria.zvtm.glyphs.*; | [
"fr.inria.zvtm"
] | fr.inria.zvtm; | 2,247,412 |
public int getInt(String name) throws ParameterLoadException {
String value = getParamValue(name);
if (value == null || value.length() == 0) return INT_DEFAULT;
int ival = 0;
try {
ival = Integer.parseInt(value);
} catch (NumberFormatException e) {
Str... | int function(String name) throws ParameterLoadException { String value = getParamValue(name); if (value == null value.length() == 0) return INT_DEFAULT; int ival = 0; try { ival = Integer.parseInt(value); } catch (NumberFormatException e) { String errMsg = Messages.getFormattedString(STR, new String[] { name, Integer.c... | /**
* Gets int for a given name.
*
* @param name
* @return int
* @throws ParameterLoadException
*/ | Gets int for a given name | getInt | {
"repo_name": "bpg/dataloader",
"path": "src/main/java/com/salesforce/dataloader/config/Config.java",
"license": "bsd-3-clause",
"size": 37845
} | [
"com.salesforce.dataloader.exception.ParameterLoadException"
] | import com.salesforce.dataloader.exception.ParameterLoadException; | import com.salesforce.dataloader.exception.*; | [
"com.salesforce.dataloader"
] | com.salesforce.dataloader; | 144,432 |
public BufferedImage createGEImage(GraphicalElement ge, ProgressMonitor pm); | BufferedImage function(GraphicalElement ge, ProgressMonitor pm); | /**
* This method creates from the given GraphicalElement its raster representation as a bufferedImage.
* @param ge The GraphicalElement to render, not null
* @return A BufferedImage containing the representation of the GraphicalElement.
*/ | This method creates from the given GraphicalElement its raster representation as a bufferedImage | createGEImage | {
"repo_name": "SPalominos/map-composer",
"path": "MapComposer/src/main/java/org/orbisgis/mapcomposer/view/graphicalelement/RendererRaster.java",
"license": "gpl-3.0",
"size": 2093
} | [
"java.awt.image.BufferedImage",
"org.orbisgis.commons.progress.ProgressMonitor",
"org.orbisgis.mapcomposer.model.graphicalelement.interfaces.GraphicalElement"
] | import java.awt.image.BufferedImage; import org.orbisgis.commons.progress.ProgressMonitor; import org.orbisgis.mapcomposer.model.graphicalelement.interfaces.GraphicalElement; | import java.awt.image.*; import org.orbisgis.commons.progress.*; import org.orbisgis.mapcomposer.model.graphicalelement.interfaces.*; | [
"java.awt",
"org.orbisgis.commons",
"org.orbisgis.mapcomposer"
] | java.awt; org.orbisgis.commons; org.orbisgis.mapcomposer; | 2,509,709 |
private void verifySubclass() {
Class cl = getClass();
if (cl == ObjectOutputStream.class) {
return;
}
SecurityManager sm = System.getSecurityManager();
if (sm == null) {
return;
}
processQueue(Caches.subclassAuditsQueue, Caches.subclassAudits);
WeakClassKey key = new WeakClassKey(cl, Caches.subc... | void function() { Class cl = getClass(); if (cl == ObjectOutputStream.class) { return; } SecurityManager sm = System.getSecurityManager(); if (sm == null) { return; } processQueue(Caches.subclassAuditsQueue, Caches.subclassAudits); WeakClassKey key = new WeakClassKey(cl, Caches.subclassAuditsQueue); Boolean result = Ca... | /**
* Verifies that this (possibly subclass) instance can be constructed
* without violating security constraints: the subclass must not override
* security-sensitive non-final methods, or else the
* "enableSubclassImplementation" SerializablePermission is checked.
*/ | Verifies that this (possibly subclass) instance can be constructed without violating security constraints: the subclass must not override security-sensitive non-final methods, or else the "enableSubclassImplementation" SerializablePermission is checked | verifySubclass | {
"repo_name": "jgaltidor/VarJ",
"path": "analyzed_libs/jdk1.6.0_06_src/java/io/ObjectOutputStream.java",
"license": "mit",
"size": 78017
} | [
"java.io.ObjectStreamClass"
] | import java.io.ObjectStreamClass; | import java.io.*; | [
"java.io"
] | java.io; | 1,380,792 |
public static String getCurSingleFileOffset(String offset) {
String[] elements = offset.split(DELIMITER);
if (elements.length < 2) {
throw new SamzaException("Invalid offset for MultiFileHdfsReader: " + offset);
}
// Getting the remaining of the offset string in case the single file
// offse... | static String function(String offset) { String[] elements = offset.split(DELIMITER); if (elements.length < 2) { throw new SamzaException(STR + offset); } return offset.substring(elements[0].length() + 1); } | /**
* Get the offset within file from the offset string
* @param offset offset string that contains both file index and offset within file
* @return the single file offset part
*/ | Get the offset within file from the offset string | getCurSingleFileOffset | {
"repo_name": "fredji97/samza",
"path": "samza-hdfs/src/main/java/org/apache/samza/system/hdfs/reader/MultiFileHdfsReader.java",
"license": "apache-2.0",
"size": 7676
} | [
"org.apache.samza.SamzaException"
] | import org.apache.samza.SamzaException; | import org.apache.samza.*; | [
"org.apache.samza"
] | org.apache.samza; | 2,291,024 |
public AssetReportRefreshRequestOptions getOptions() {
return options;
} | AssetReportRefreshRequestOptions function() { return options; } | /**
* Get options
* @return options
**/ | Get options | getOptions | {
"repo_name": "plaid/plaid-java",
"path": "src/main/java/com/plaid/client/model/AssetReportRefreshRequest.java",
"license": "mit",
"size": 6872
} | [
"com.plaid.client.model.AssetReportRefreshRequestOptions"
] | import com.plaid.client.model.AssetReportRefreshRequestOptions; | import com.plaid.client.model.*; | [
"com.plaid.client"
] | com.plaid.client; | 2,322,720 |
public void setMessage(String command) throws IllegalArgumentException {
Validate.notNull(command, "Command cannot be null");
Validate.notEmpty(command, "Command cannot be empty");
this.message = command;
} | void function(String command) throws IllegalArgumentException { Validate.notNull(command, STR); Validate.notEmpty(command, STR); this.message = command; } | /**
* Sets the command that the player will send.
* <p>
* All commands begin with a special character; implementations do not
* consider the first character when executing the content.
*
* @param command New message that the player will send
* @throws IllegalArgumentException if comma... | Sets the command that the player will send. All commands begin with a special character; implementations do not consider the first character when executing the content | setMessage | {
"repo_name": "EvilSeph/Bukkit",
"path": "src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java",
"license": "gpl-3.0",
"size": 6071
} | [
"org.apache.commons.lang.Validate"
] | import org.apache.commons.lang.Validate; | import org.apache.commons.lang.*; | [
"org.apache.commons"
] | org.apache.commons; | 242,041 |
public ResultSetNode optimize(DataDictionary dataDictionary,
PredicateList predicateList,
double outerRows)
throws StandardException
{
Optimizer optimizer;
if (SanityManager.DEBUG)
SanityManager.ASSERT(selectSubquerys != null,
"selectSubquerys is expected to be non-null");... | ResultSetNode function(DataDictionary dataDictionary, PredicateList predicateList, double outerRows) throws StandardException { Optimizer optimizer; if (SanityManager.DEBUG) SanityManager.ASSERT(selectSubquerys != null, STR); if (wherePredicates != null) { for (int i = wherePredicates.size() - 1; i >= 0; i--) { if (((P... | /**
* Optimize this SelectNode. This means choosing the best access path
* for each table, among other things.
*
* @param dataDictionary The DataDictionary to use for optimization
* @param predicateList The predicate list to optimize against
* @param outerRows The number of outer joining rows
*
* @r... | Optimize this SelectNode. This means choosing the best access path for each table, among other things | optimize | {
"repo_name": "lpxz/grail-derby104",
"path": "java/engine/org/apache/derby/impl/sql/compile/SelectNode.java",
"license": "apache-2.0",
"size": 74735
} | [
"org.apache.derby.iapi.error.StandardException",
"org.apache.derby.iapi.services.sanity.SanityManager",
"org.apache.derby.iapi.sql.compile.Optimizer",
"org.apache.derby.iapi.sql.dictionary.DataDictionary"
] | import org.apache.derby.iapi.error.StandardException; import org.apache.derby.iapi.services.sanity.SanityManager; import org.apache.derby.iapi.sql.compile.Optimizer; import org.apache.derby.iapi.sql.dictionary.DataDictionary; | import org.apache.derby.iapi.error.*; import org.apache.derby.iapi.services.sanity.*; import org.apache.derby.iapi.sql.compile.*; import org.apache.derby.iapi.sql.dictionary.*; | [
"org.apache.derby"
] | org.apache.derby; | 4,521 |
////////////////////////////////////////////////////////
//Static finds //
////////////////////////////////////////////////////////
public static JTable findJTable(Container cont, ComponentChooser chooser, int index) {
return (JTable) findComponent(cont, n... | static JTable function(Container cont, ComponentChooser chooser, int index) { return (JTable) findComponent(cont, new JTableFinder(chooser), index); } | /**
* Searches JTable in container.
*
* @param cont Container to search component in.
* @param chooser org.netbeans.jemmy.ComponentChooser implementation.
* @param index Ordinal component index.
* @return JTable instance or null if component was not found.
*/ | Searches JTable in container | findJTable | {
"repo_name": "FauxFaux/jdk9-jdk",
"path": "test/sanity/client/lib/jemmy/src/org/netbeans/jemmy/operators/JTableOperator.java",
"license": "gpl-2.0",
"size": 88607
} | [
"java.awt.Container",
"javax.swing.JTable",
"org.netbeans.jemmy.ComponentChooser"
] | import java.awt.Container; import javax.swing.JTable; import org.netbeans.jemmy.ComponentChooser; | import java.awt.*; import javax.swing.*; import org.netbeans.jemmy.*; | [
"java.awt",
"javax.swing",
"org.netbeans.jemmy"
] | java.awt; javax.swing; org.netbeans.jemmy; | 2,858,085 |
@NonNull
DBRPMain<T> handler(int handlerId, @NonNull Object handler); | DBRPMain<T> handler(int handlerId, @NonNull Object handler); | /**
* Specifies what {@code handler} is associated with the {@code handlerId} in the previously
* given {@code layout}.
*/ | Specifies what handler is associated with the handlerId in the previously given layout | handler | {
"repo_name": "google/agera",
"path": "extensions/rvdatabinding/src/main/java/com/google/android/agera/rvdatabinding/DataBindingRepositoryPresenterCompilerStates.java",
"license": "apache-2.0",
"size": 4970
} | [
"android.support.annotation.NonNull"
] | import android.support.annotation.NonNull; | import android.support.annotation.*; | [
"android.support"
] | android.support; | 784,249 |
public static Set asDataObjects(IObject[] objects)
{
Set<DataObject> set = new HashSet<DataObject>();
if (objects == null) return set;
DataObject data;
for (int i = 0; i < objects.length; i++) {
data = asDataObject(objects[i]);
set.add(data);
}
... | static Set function(IObject[] objects) { Set<DataObject> set = new HashSet<DataObject>(); if (objects == null) return set; DataObject data; for (int i = 0; i < objects.length; i++) { data = asDataObject(objects[i]); set.add(data); } return set; } | /**
* Converts each {@link IObject element} of the array into its
* corresponding {@link DataObject}.
*
* @param objects The set of objects to convert.
* @return A set of {@link DataObject}s.
* @throws IllegalArgumentException If the set is <code>null</code>, doesn't
* contain {@link ... | Converts each <code>IObject element</code> of the array into its corresponding <code>DataObject</code> | asDataObjects | {
"repo_name": "joansmith/openmicroscopy",
"path": "components/blitz/src/omero/gateway/util/PojoMapper.java",
"license": "gpl-2.0",
"size": 26985
} | [
"java.util.HashSet",
"java.util.Set"
] | import java.util.HashSet; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,879,956 |
//@Test
public void testMultipleRules() throws RecognitionException {
datalog = parser.parse(CQ_STRINGS[3]);
EXPECTED_RULE_SIZE = 3;
List<CQIE> rules = datalog.getRules();
assertTrue("Mismatch rule size!",
rules.size() == EXPECTED_RULE_SIZE);
//----------//
// Rule #1 //
//----------//
//-- ... | datalog = parser.parse(CQ_STRINGS[3]); EXPECTED_RULE_SIZE = 3; List<CQIE> rules = datalog.getRules(); assertTrue(STR, rules.size() == EXPECTED_RULE_SIZE); Function head = rules.get(0).getHead(); assertNotNull(STR, head); uri = head.getFunctionSymbol().getName(); assertEquals(STR, uri, STRMismatch term size!STRMismatch ... | /**
* Testing Scenario #4
*
* @throws RecognitionException
*/ | Testing Scenario #4 | testMultipleRules | {
"repo_name": "ghxiao/ontop-spatial",
"path": "quest-test/src/test/java/it/unibz/krdb/obda/parser/DatalogParserTest.java",
"license": "apache-2.0",
"size": 34010
} | [
"it.unibz.krdb.obda.model.Function",
"it.unibz.krdb.obda.model.Term",
"it.unibz.krdb.obda.model.impl.FunctionalTermImpl",
"it.unibz.krdb.obda.model.impl.URIConstantImpl",
"it.unibz.krdb.obda.model.impl.ValueConstantImpl",
"java.util.List"
] | import it.unibz.krdb.obda.model.Function; import it.unibz.krdb.obda.model.Term; import it.unibz.krdb.obda.model.impl.FunctionalTermImpl; import it.unibz.krdb.obda.model.impl.URIConstantImpl; import it.unibz.krdb.obda.model.impl.ValueConstantImpl; import java.util.List; | import it.unibz.krdb.obda.model.*; import it.unibz.krdb.obda.model.impl.*; import java.util.*; | [
"it.unibz.krdb",
"java.util"
] | it.unibz.krdb; java.util; | 2,863,756 |
public void unregisterNewContentInstance(Connection connection, String sComponentId,
String sContainerType, String sContentType) throws ContentManagerException {
boolean bCloseConnection = false;
this.checkParameters(sComponentId, sContainerType, sContentType);
PreparedStatement prepStmt = null;
... | void function(Connection connection, String sComponentId, String sContainerType, String sContentType) throws ContentManagerException { boolean bCloseConnection = false; this.checkParameters(sComponentId, sContainerType, sContentType); PreparedStatement prepStmt = null; try { if (connection == null) { connection = DBUti... | /**
* When a generic component is uninstanciate, this function is called to unregister the
* association between container and content
* @param connection
* @param sComponentId
* @param sContainerType
* @param sContentType
* @throws ContentManagerException
*/ | When a generic component is uninstanciate, this function is called to unregister the association between container and content | unregisterNewContentInstance | {
"repo_name": "NicolasEYSSERIC/Silverpeas-Core",
"path": "lib-core/src/main/java/com/stratelia/silverpeas/contentManager/ContentManager.java",
"license": "agpl-3.0",
"size": 44006
} | [
"com.stratelia.silverpeas.silvertrace.SilverTrace",
"com.stratelia.webactiv.util.DBUtil",
"com.stratelia.webactiv.util.exception.SilverpeasException",
"java.sql.Connection",
"java.sql.PreparedStatement"
] | import com.stratelia.silverpeas.silvertrace.SilverTrace; import com.stratelia.webactiv.util.DBUtil; import com.stratelia.webactiv.util.exception.SilverpeasException; import java.sql.Connection; import java.sql.PreparedStatement; | import com.stratelia.silverpeas.silvertrace.*; import com.stratelia.webactiv.util.*; import com.stratelia.webactiv.util.exception.*; import java.sql.*; | [
"com.stratelia.silverpeas",
"com.stratelia.webactiv",
"java.sql"
] | com.stratelia.silverpeas; com.stratelia.webactiv; java.sql; | 336,444 |
@Override
public Set<TopicPartition> assignment() {
return assignment;
} | Set<TopicPartition> function() { return assignment; } | /**
* Get the timeout in milliseconds set by SinkTasks. Used by the Copycat framework.
* @return the backoff timeout in milliseconds.
*/ | Get the timeout in milliseconds set by SinkTasks. Used by the Copycat framework | assignment | {
"repo_name": "sonikagautami/TEST_Fork_Kafka-connect-hdfs",
"path": "src/test/java/io/confluent/connect/hdfs/HdfsSinkConnectorTestBase.java",
"license": "apache-2.0",
"size": 5929
} | [
"java.util.Set",
"org.apache.kafka.common.TopicPartition"
] | import java.util.Set; import org.apache.kafka.common.TopicPartition; | import java.util.*; import org.apache.kafka.common.*; | [
"java.util",
"org.apache.kafka"
] | java.util; org.apache.kafka; | 684,049 |
// TODO(conleyo) We will need to provide sorted URLs after distance is in place.
@VisibleForTesting
public List<UrlInfo> getUrls() {
return getUrls(false);
} | List<UrlInfo> function() { return getUrls(false); } | /**
* Get the list of URLs which are both nearby and resolved through PWS.
* @return A set of nearby and resolved URLs, sorted by distance.
*/ | Get the list of URLs which are both nearby and resolved through PWS | getUrls | {
"repo_name": "wuhengzhi/chromium-crosswalk",
"path": "chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java",
"license": "bsd-3-clause",
"size": 23635
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,151,013 |
private boolean setDialogListenerApp(Messenger m,
String appPkgName, boolean isReset) {
if (mForegroundAppPkgName != null && !mForegroundAppPkgName.equals(appPkgName)) {
if (isForegroundApp(mForegroundAppPkgName)) {
// The current dialog listener is foreground app's.... | boolean function(Messenger m, String appPkgName, boolean isReset) { if (mForegroundAppPkgName != null && !mForegroundAppPkgName.equals(appPkgName)) { if (isForegroundApp(mForegroundAppPkgName)) { if (DBG) logd(STR); return false; } sendDetachedMsg(WifiP2pManager.NOT_IN_FOREGROUND); } if (isReset) { if (DBG) logd(STR); ... | /**
* Set dialog listener application.
* @param m
* @param appPkgName if null, reset the listener.
* @param isReset if true, try to reset.
* @return
*/ | Set dialog listener application | setDialogListenerApp | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "frameworks/base/wifi/java/android/net/wifi/p2p/WifiP2pService.java",
"license": "gpl-2.0",
"size": 143712
} | [
"android.os.Messenger"
] | import android.os.Messenger; | import android.os.*; | [
"android.os"
] | android.os; | 2,900,143 |
public static VTimeZone create(Reader reader) {
VTimeZone vtz = new VTimeZone();
if (vtz.load(reader)) {
return vtz;
}
return null;
}
/**
* {@inheritDoc} | static VTimeZone function(Reader reader) { VTimeZone vtz = new VTimeZone(); if (vtz.load(reader)) { return vtz; } return null; } /** * {@inheritDoc} | /**
* Create a <code>VTimeZone</code> instance by RFC2445 VTIMEZONE data.
*
* @param reader The Reader for VTIMEZONE data input stream
* @return A <code>VTimeZone</code> initialized by the VTIMEZONE data or
* null if failed to load the rule from the VTIMEZONE data.
*
* @stable ICU 3... | Create a <code>VTimeZone</code> instance by RFC2445 VTIMEZONE data | create | {
"repo_name": "Miracle121/quickdic-dictionary.dictionary",
"path": "jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/util/VTimeZone.java",
"license": "apache-2.0",
"size": 81217
} | [
"java.io.Reader"
] | import java.io.Reader; | import java.io.*; | [
"java.io"
] | java.io; | 132,380 |
private static long readTimestamp(final long absPtr) {
long markerAndTs = GridUnsafe.getLong(absPtr);
// Clear last byte as it is occupied by page marker.
return markerAndTs & ~0xFF;
} | static long function(final long absPtr) { long markerAndTs = GridUnsafe.getLong(absPtr); return markerAndTs & ~0xFF; } | /**
* Read for timestamp from page in {@code absAddr} address.
*
* @param absPtr Absolute page address.
* @return Timestamp.
*/ | Read for timestamp from page in absAddr address | readTimestamp | {
"repo_name": "alexzaitzev/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/pagemem/PageMemoryImpl.java",
"license": "apache-2.0",
"size": 96630
} | [
"org.apache.ignite.internal.util.GridUnsafe"
] | import org.apache.ignite.internal.util.GridUnsafe; | import org.apache.ignite.internal.util.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 1,763,671 |
protected void startCatalogJanitorChore() {
Threads.setDaemonThreadRunning(catalogJanitorChore.getThread());
} | void function() { Threads.setDaemonThreadRunning(catalogJanitorChore.getThread()); } | /**
* Useful for testing purpose also where we have
* master restart scenarios.
*/ | Useful for testing purpose also where we have master restart scenarios | startCatalogJanitorChore | {
"repo_name": "wowoshen/hbase",
"path": "src/main/java/org/apache/hadoop/hbase/master/HMaster.java",
"license": "apache-2.0",
"size": 78961
} | [
"org.apache.hadoop.hbase.util.Threads"
] | import org.apache.hadoop.hbase.util.Threads; | import org.apache.hadoop.hbase.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 483,335 |
public void setYear(BigInteger year) {
if (year == null) {
this.eon = null;
this.year = DatatypeConstants.FIELD_UNDEFINED;
}
else {
BigInteger temp = year.remainder(BILLION_B);
this.year = temp.intValue();
setEon(year.subtract(temp... | void function(BigInteger year) { if (year == null) { this.eon = null; this.year = DatatypeConstants.FIELD_UNDEFINED; } else { BigInteger temp = year.remainder(BILLION_B); this.year = temp.intValue(); setEon(year.subtract(temp)); } } | /**
* <p>Set low and high order component of XSD <code>dateTime</code> year field.</p>
*
* <p>Unset this field by invoking the setter with a parameter value of <code>null</code>.</p>
*
* @param year value constraints summarized in <a href="#datetimefield-year">year field of date/time field map... | Set low and high order component of XSD <code>dateTime</code> year field. Unset this field by invoking the setter with a parameter value of <code>null</code> | setYear | {
"repo_name": "MirrorIP/msf-spaces-sdk-android",
"path": "src/org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl.java",
"license": "apache-2.0",
"size": 119490
} | [
"java.math.BigInteger",
"javax.xml.datatype.DatatypeConstants"
] | import java.math.BigInteger; import javax.xml.datatype.DatatypeConstants; | import java.math.*; import javax.xml.datatype.*; | [
"java.math",
"javax.xml"
] | java.math; javax.xml; | 26,829 |
public AtomicInteger getAvailableCredits() {
return availableCredits;
} | AtomicInteger function() { return availableCredits; } | /**
* To be used on tests only
*/ | To be used on tests only | getAvailableCredits | {
"repo_name": "andytaylor/activemq-artemis",
"path": "artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java",
"license": "apache-2.0",
"size": 51630
} | [
"java.util.concurrent.atomic.AtomicInteger"
] | import java.util.concurrent.atomic.AtomicInteger; | import java.util.concurrent.atomic.*; | [
"java.util"
] | java.util; | 1,507,667 |
@Override
public void actionPerformed(ActionEvent event) {
if (!preferencesDialog.isVisible()) {
preferencesDialog.setLocation(MouseInfo.getPointerInfo().getLocation());
preferencesDialog.setVisible(true);
} else {
preferencesDialog... | void function(ActionEvent event) { if (!preferencesDialog.isVisible()) { preferencesDialog.setLocation(MouseInfo.getPointerInfo().getLocation()); preferencesDialog.setVisible(true); } else { preferencesDialog.toFront(); } } } | /**
* Called when the action fires, this method opens the preferences dialog.
*
* @param event The action event.
*/ | Called when the action fires, this method opens the preferences dialog | actionPerformed | {
"repo_name": "drhee/toxoMine",
"path": "intermine/MineManager/installer/src/main/java/org/intermine/install/swing/ProjectEditor.java",
"license": "lgpl-2.1",
"size": 44331
} | [
"java.awt.MouseInfo",
"java.awt.event.ActionEvent"
] | import java.awt.MouseInfo; import java.awt.event.ActionEvent; | import java.awt.*; import java.awt.event.*; | [
"java.awt"
] | java.awt; | 1,860,188 |
// Test candidate user/groups links + manual added identityLink
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("identityLinkProcess");
Task task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleResult();
taskService.addUserIdent... | ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(STR); Task task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleResult(); taskService.addUserIdentityLink(task.getId(), "john", STR); assertEquals(3, taskService.getIdentityLinksForTask(task.getId()).size()); Htt... | /**
* Test getting all identity links. GET runtime/tasks/{taskId}/identitylinks
*/ | Test getting all identity links. GET runtime/tasks/{taskId}/identitylinks | testGetIdentityLinks | {
"repo_name": "zwets/flowable-engine",
"path": "modules/flowable-rest/src/test/java/org/flowable/rest/service/api/runtime/TaskIdentityLinkResourceTest.java",
"license": "apache-2.0",
"size": 12150
} | [
"com.fasterxml.jackson.databind.JsonNode",
"com.fasterxml.jackson.databind.node.ObjectNode",
"org.apache.http.HttpStatus",
"org.apache.http.client.methods.CloseableHttpResponse",
"org.apache.http.client.methods.HttpGet",
"org.flowable.engine.runtime.ProcessInstance",
"org.flowable.rest.service.api.RestU... | import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; import org.apache.http.HttpStatus; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.flowable.engine.runtime.ProcessInstance; import org.flowable.re... | import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.node.*; import org.apache.http.*; import org.apache.http.client.methods.*; import org.flowable.engine.runtime.*; import org.flowable.rest.service.api.*; import org.flowable.task.api.*; | [
"com.fasterxml.jackson",
"org.apache.http",
"org.flowable.engine",
"org.flowable.rest",
"org.flowable.task"
] | com.fasterxml.jackson; org.apache.http; org.flowable.engine; org.flowable.rest; org.flowable.task; | 2,177,096 |
public void run() {
LOG.info(dnRegistration + "In DataNode.run, data = " + data);
// start dataXceiveServer
dataXceiverServer.start();
while (shouldRun) {
try {
startDistributedUpgradeIfNeeded();
offerService();
} catch (Exception ex) {
LOG.error("Exceptio... | void function() { LOG.info(dnRegistration + STR + data); dataXceiverServer.start(); while (shouldRun) { try { startDistributedUpgradeIfNeeded(); offerService(); } catch (Exception ex) { LOG.error(STR + StringUtils.stringifyException(ex)); if (shouldRun) { try { Thread.sleep(5000); } catch (InterruptedException ie) { } ... | /**
* No matter what kind of exception we get, keep retrying to offerService().
* That's the loop that connects to the NameNode and provides basic DataNode
* functionality.
*
* Only stop when "shouldRun" is turned off (which can only happen at shutdown).
*/ | No matter what kind of exception we get, keep retrying to offerService(). That's the loop that connects to the NameNode and provides basic DataNode functionality. Only stop when "shouldRun" is turned off (which can only happen at shutdown) | run | {
"repo_name": "submergerock/avatar-hadoop",
"path": "build/hadoop-0.20.1-dev/src/hdfs/org/apache/hadoop/hdfs/server/datanode/DataNode.java",
"license": "apache-2.0",
"size": 66485
} | [
"org.apache.hadoop.util.StringUtils"
] | import org.apache.hadoop.util.StringUtils; | import org.apache.hadoop.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 727,658 |
public void testAgencyCampaignStatisticsDateError() throws XmlRpcException,
MalformedURLException {
Object[] params = new Object[] { sessionId, agencyId,
DateUtils.MAX_DATE_VALUE, DateUtils.MIN_DATE_VALUE };
try {
client.execute(AGENCY_CAMPAIGN_STATISTICS_METHOD, params);
fail(ErrorMessage.METHOD_E... | void function() throws XmlRpcException, MalformedURLException { Object[] params = new Object[] { sessionId, agencyId, DateUtils.MAX_DATE_VALUE, DateUtils.MIN_DATE_VALUE }; try { client.execute(AGENCY_CAMPAIGN_STATISTICS_METHOD, params); fail(ErrorMessage.METHOD_EXECUTED_SUCCESSFULLY_BUT_SHOULD_NOT_HAVE); } catch (XmlRp... | /**
* AgencyCampaignStatistics when end date is before start date
*
* @throws XmlRpcException
* @throws MalformedURLException
*/ | AgencyCampaignStatistics when end date is before start date | testAgencyCampaignStatisticsDateError | {
"repo_name": "Tate-ad/revive-adserver",
"path": "www/api/v1/xmlrpc/tests/unit/src/test/java/org/openx/agency/TestAgencyCampaignStatistics.java",
"license": "gpl-2.0",
"size": 6685
} | [
"java.net.MalformedURLException",
"org.apache.xmlrpc.XmlRpcException",
"org.openx.utils.DateUtils",
"org.openx.utils.ErrorMessage"
] | import java.net.MalformedURLException; import org.apache.xmlrpc.XmlRpcException; import org.openx.utils.DateUtils; import org.openx.utils.ErrorMessage; | import java.net.*; import org.apache.xmlrpc.*; import org.openx.utils.*; | [
"java.net",
"org.apache.xmlrpc",
"org.openx.utils"
] | java.net; org.apache.xmlrpc; org.openx.utils; | 2,886,769 |
public synchronized void
removeActionListener(ActionListener listener)
{
action_listeners = AWTEventMulticaster.remove(action_listeners, listener);
} | synchronized void function(ActionListener listener) { action_listeners = AWTEventMulticaster.remove(action_listeners, listener); } | /**
* Removes the specified listener from the list of action listeners
* for this object.
*
* @param listener The listener to remove from the list.
*/ | Removes the specified listener from the list of action listeners for this object | removeActionListener | {
"repo_name": "unofficial-opensource-apple/gcc_40",
"path": "libjava/java/awt/TextField.java",
"license": "gpl-2.0",
"size": 13896
} | [
"java.awt.event.ActionListener"
] | import java.awt.event.ActionListener; | import java.awt.event.*; | [
"java.awt"
] | java.awt; | 844,081 |
public static void assert2dXlArray(final XLArray xlArray, final double[] firstExpectedArray, final double[] secondExpectedArray) {
assertEquals(firstExpectedArray.length, secondExpectedArray.length);
final XLValue[][] xlValues = xlArray.getArray();
final int n = firstExpectedArray.length;
// array con... | static void function(final XLArray xlArray, final double[] firstExpectedArray, final double[] secondExpectedArray) { assertEquals(firstExpectedArray.length, secondExpectedArray.length); final XLValue[][] xlValues = xlArray.getArray(); final int n = firstExpectedArray.length; if (xlValues.length == 2) { assertEquals(xlV... | /**
* Tests that a range equals the expected values.
* @param xlArray
* the range
* @param firstExpectedArray
* the first row or column
* @param secondExpectedArray
* the second row or column
*/ | Tests that a range equals the expected values | assert2dXlArray | {
"repo_name": "McLeodMoores/xl4j",
"path": "xll-examples/src/test/java/com/mcleodmoores/xl4j/examples/TestUtils.java",
"license": "gpl-3.0",
"size": 7059
} | [
"com.mcleodmoores.xl4j.v1.api.values.XLArray",
"com.mcleodmoores.xl4j.v1.api.values.XLNumber",
"com.mcleodmoores.xl4j.v1.api.values.XLValue",
"org.testng.Assert"
] | import com.mcleodmoores.xl4j.v1.api.values.XLArray; import com.mcleodmoores.xl4j.v1.api.values.XLNumber; import com.mcleodmoores.xl4j.v1.api.values.XLValue; import org.testng.Assert; | import com.mcleodmoores.xl4j.v1.api.values.*; import org.testng.*; | [
"com.mcleodmoores.xl4j",
"org.testng"
] | com.mcleodmoores.xl4j; org.testng; | 1,139,059 |
public boolean equals(Object obj) {
if (obj == this) { // simple case
return true;
}
// now try to reject equality...
if (!super.equals(obj)) {
return false;
}
if (!(obj instanceof XYDrawableAnnotation)) {
return fals... | boolean function(Object obj) { if (obj == this) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof XYDrawableAnnotation)) { return false; } XYDrawableAnnotation that = (XYDrawableAnnotation) obj; if (this.x != that.x) { return false; } if (this.y != that.y) { return false; } if (this.width ... | /**
* Tests this annotation for equality with an arbitrary object.
*
* @param obj the object to test against.
*
* @return <code>true</code> or <code>false</code>.
*/ | Tests this annotation for equality with an arbitrary object | equals | {
"repo_name": "ibestvina/multithread-centiscape",
"path": "CentiScaPe2.1/src/main/java/org/jfree/chart/annotations/XYDrawableAnnotation.java",
"license": "mit",
"size": 7007
} | [
"org.jfree.util.ObjectUtilities"
] | import org.jfree.util.ObjectUtilities; | import org.jfree.util.*; | [
"org.jfree.util"
] | org.jfree.util; | 2,170,258 |
public T resolve(final FileContext fc, Path p) throws IOException {
int count = 0;
T in = null;
Path first = p;
// NB: More than one AbstractFileSystem can match a scheme, eg
// "file" resolves to LocalFs but could have come by RawLocalFs.
AbstractFileSystem fs = fc.getFSofPath(... | T function(final FileContext fc, Path p) throws IOException { int count = 0; T in = null; Path first = p; AbstractFileSystem fs = fc.getFSofPath(p); for (boolean isLink = true; isLink;) { try { in = next(fs, p); isLink = false; } catch (UnresolvedLinkException e) { if (count++ > MAX_PATH_LINKS) { throw new IOException(... | /**
* Performs the operation specified by the next function, calling it
* repeatedly until all symlinks in the given path are resolved.
* @param fc FileContext used to access file systems.
* @param p The path to resolve symlinks in.
* @return Generic type determined by the implementation of nex... | Performs the operation specified by the next function, calling it repeatedly until all symlinks in the given path are resolved | resolve | {
"repo_name": "dotunolafunmiloye/hadoop-common",
"path": "src/java/org/apache/hadoop/fs/FileContext.java",
"license": "apache-2.0",
"size": 90172
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 413,203 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.